Discrete maths 1 - propositional logic

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/45

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

46 Terms

1
New cards

Define proposition

A statement that is either true or false

2
New cards

Define a law (for propositional calculus)

a fact about a proposition that holds regardless of the truth values of the proposition

3
New cards

Define a tautology (informally)

A proposition that is always true, regardless of “what the world looks like” (what the truth values of the variables contained are)

4
New cards

define a tautology (formally)

A Boolean formula F with variables X1,...,Xn where the value of F is t for any assignment of true/false values to the variables Xi.

5
New cards

define indentically false (informally)

A proposition that is always false, regardless of “what the world looks like” (what the truth values of the variables contained are)

6
New cards

define indentically false (formally without tautology)

A Boolean formula F with variables X1,...,Xn where the value of F is f for any assignment of true/false values to the variables Xi

7
New cards

define indentically false (formally by tautology)

A Boolean formula F with variables X1,...,Xn where ¬F is a tautology

8
New cards

what is the smallest possible proposition (an “atomic” proposition)

a single variable that is either true or false (e.g. X)

9
New cards

What are connectives (for propositional calculus)

Symbols for combining (or modifying) propositions to form new propositions

10
New cards

Define x∧y

x∧y is true if both x and y are; it is false otherwise.

11
New cards

define x∨y

x∨y is true if either x or y is true, or if both are true; it is false otherwise.

12
New cards

define ¬x

¬x is true if x is false, it is false otherwise.

13
New cards

define x → y

x → y is false if x is true and y is false, it is true otherwise. 

14
New cards

in the proposition x →y, what is x called?

the antecedent

15
New cards

in the proposition x →y, what is y called?

the consequent

16
New cards

Given a collection of variables, X1...Xn, define boolean formulae (formally)

a string of symbols from the set {X1, … , Xn, ∧,∨,¬,→,(,) }

where any variable Xi is a boolean formula, and if F and G are Boolean formulae, so are (F ∧ G), (F ∨G), (F → G) and ¬F

17
New cards

define boolean formulae using BNF

F ::= X | (F ∧F) | (F ∨F) | (F →F) | ¬ F

(“the formula F is either a variable, the conjunction of two formulae, the disjunction of two formulae, the implication of two formulae, or the negation of a formula”)

18
New cards

What does it mean to “evaluate” a boolean formula (informally)?

assign truth values to each variable of the formula, then use the definitions of the connectives to find the truth value of the formula itself.

19
New cards

define valuation/truth assignment (formally)

A valuation v over Boolean variables X1 ...Xn is a function associating to each variable Xi a truth value v(Xi), either t or f.

20
New cards

How is the definition of a valuation written?

big curly bracket with conditions for the outcomes t and f, as in img.

<p>big curly bracket with conditions for the outcomes t and f, as in img.</p><p></p>
21
New cards

What is an inductive definition?

one that defines the value of the function on complex formulae in terms of its value on subformulae

22
New cards

define logical equivalence (between two statements)

A pair of formulae F1 and F2 are logically equivalent if F1 implies F2 AND F2 implies F1 i.e. F1 is true if and only if f2 is true

Written (F1 → F2)∧(F2 →F1) or F1 ≡ F2

23
New cards

define logical equivalence mathematically

F1 ≡ F2 if and only if v(F1) = v(F2) for every valuation v

24
New cards

What are the three basic laws of ∧ and ∨?

Commutativity

Associativity

Distributivty

25
New cards

state the commutative law

given variables X, Y, X∧Y ≡ Y∧X and X∨Y ≡ Y∨X

i.e. the arrangement of variables around a commutatve operator does not affect its valuation.

26
New cards

what type of boolean formula are all of the basic operator laws for con/disjunction

tautologies

27
New cards

What does the statement “logical equivalence is a congruence” mean?

If two formuale are equivalent, then their logical implications are also equivalent i.e. a formula can be replaced by its logical equivalent in any larger formula, and this will not affect the value of the formula for any inputs. 

28
New cards

state the associative law

For variables X, Y and Z, X∨(Y ∨Z) ≡ (X∨Y)∨Z

i.e. order of operation will not affect valuation of a formula

29
New cards

define the distributive law(s)

X∧(Y ∨Z)≡(X∧Y)∨(X∧Z) (disjunction over conjunction)

X∨(Y ∧Z)≡(X∨Y)∧(X∨Z) (conjunction over disjunction)

i.e. you can “split” an operator acting on a formula to multiple formulae that give the same outcome when connected

30
New cards

State De Morgan’s Law(s)

Given variables X and Y,

¬(X ∧Y) ≡ (¬X∨¬Y)

¬(X ∨Y) ≡ (¬X∧¬Y)

31
New cards

State the law of excluded middle

X ∨¬X

32
New cards

state the law of double negation

¬¬X ≡ X

33
New cards

State the law of proof by contradiction (reductio ad absurdum)

((¬X → Y)∧(¬X →¬Y)) → X

34
New cards

state the law of implication (the CNF of implication)

(X →Y) ≡ (¬X∨Y)

35
New cards

State the modus ponens law (law for going from x and x → y to y)

(X ∧(X →Y)) → Y

36
New cards

What does “reducing the problem of proving y to proving x” mean?

A method for proving a proposition y where we prove that x implies y, and then prove x to conclude y.

37
New cards

What is special about the NAND operator?

Any boolean formula can be written in terms of only NAND

38
New cards

Why is CNF important?

Makes designing circuits from logic easier

39
New cards

Define the Disjunctive Normal Form formally

F1 ∨F2 ∨···∨Fn

where each Fi is of the form L1 ∧L2 ∧···∧Lki

and each Li is either a variable, X, or the negation of a variable, ¬X

40
New cards

Define the Disjunctive Normal Form using BNF

L ::= X|¬X

C ::= L|(L∧C)

D ::= C|(C∨D)

41
New cards

What is the DNF theorem?

Every boolean formula is equivalent to one in DNF

42
New cards

What is the standard method for generatinjg DNFs using truth tables

Look at the truth table and define each possible combination of outcomes separately

e.g. if the formula is true when X = t, Y = t, Z = t

then it is true when X /\ Y /\ NOT Z

combining each “combination” using \/ will yield a DNF formula

43
New cards

What is the method for generating DNFs using laws

Get rid of all the → connectives using the law X → Y ≡ ¬X ∨Y

Push all the negations in as far as possible using the De Morgan laws and the law ¬¬X ≡ X.

Push all the conjunctions in as far as possible using distributive laws.

44
New cards

Define conjunctive normal form mathemativally

F1 ∧F2 ∧···∧Fn

where each Fi is of the form L1 ∨L2 ∨···∨Lki

and each Li is either a variable, X, or the negation of a variable, ¬X

45
New cards

What is the CNF theorem?

Every Boolean formula is equivalent to one in CNF

46
New cards

How could the CNF theorem be proved using the DNF theorem?

Using the DNF equivalent of a formula F, use De Morgan’s law to convert DNF to CNF