Logic and Proofs Flashcards

1
Q

What is a proposition?

A

is a statement that is either true or false.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is logic?

A

is the study of formal reasoning

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a truth value?

A

is a value indicating whether the proposition is actually true or false.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a compound proposition?

A

is created by connecting individual propositions with logical operations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a logical operator

A

Combines propositions using a particular composition rule.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Conjunction operator.

A

“AND” both must be true

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does a truth table do?

A

shows the truth value of a compound proposition for every possible combination of truth values for the variables contained in the compound proposition.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Disjunction operator

A

“OR” (∨) operation and evaluates to true when one or both of the propositions are true.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the difference between inclusive and exclusive “or” operator?

A

exclusive or: evaluates to true when p is true and q is false or when q is true and p is false.

inclusive or: is the same as the disjunction (∨) operation and evaluates to true when one or both of the propositions are true.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How to use the negation operator to search for something specific online?

A

Type: [what you want to search] and “-“ [what you don’t want to search]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does the negation operator do? “-“

A

acts on just one proposition and has the effect of reversing the truth value of the proposition. The negation of proposition p is denoted ¬p and is read as “not p”.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How is the conditional operator represented?

A

The conditional operation is denoted with the symbol →. The proposition p → q is read “if p then q”..

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are p and q known as in a conditional proposition?

A

In p → q, the proposition p is called the hypothesis, and the proposition q is called the conclusion.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the converse of a conditional proposition?

A

The “reverse” of proposition. The converse of p → q is q → p.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the contrapositive of a conditional prop?

A

The reverse and negation of both props
The contrapositive of p → q is ¬q → ¬p.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the inverse of a conditional prop?

A

The negation of both props.
The inverse of p → q is ¬p → ¬q..

17
Q

What is a programming implementation of using conditional operation?

A

Data Validation: Ensuring that two pieces of data meet the same criteria. For example, validating that a password and its confirmation match.

18
Q

What is the biconditional operation?

A

biconditional operation
If p and q are propositions, the proposition “p if and only if q” is expressed with the biconditional operation and is denoted p ↔ q. .

19
Q

What is a tautology?

A

A compound proposition is a tautology if the proposition is always true, regardless of the truth value of the individual propositions that occur in it.

20
Q

What is a contradiction?

A

A compound proposition is a contradiction if the proposition is always false, regardless of the truth value of the individual propositions that occur in it.

21
Q

What does it mean for two compound propositions to be logically equivalent?

A

Two compound propositions are said to be logically equivalent if they have the same truth value regardless of the truth values of their individual propositions.

22
Q

What does De Morgan’s laws show you how to do?

A

De Morgan’s laws are logical equivalences that show how to correctly distribute a negation operation inside a parenthesized expression.

23
Q

What are the laws of propositional logic supposed to do?

A

laws of propositional logic to simplify the propositions making them easier to evaluate.

24
Q

What is a predicate?

A

A logical statement whose truth value is a function of one or more variables is called a predicate.

25
Q

What is the domain of a variable?

A

The domain of a variable in a predicate is the set of all possible values for the variable.

26
Q

What is a universal quantifier / universally quantified statement?

A

The symbol ∀ is a universal quantifier, and the statement ∀x P(x) is called a universally quantified statement.

27
Q

Why is ∀x P(x) a proposition?

A

because it is either true or false. ∀x P(x) is true if and only if P(n) is true for every n in the domain.

28
Q

What is a counterexample?

A

A counterexample for a universally quantified statement is an element in the domain for which the predicate is false.

29
Q

What is an existential quantifier / existentially quantified statement?

A

The symbol ∃ is an existential quantifier, and the statement ∃x P(x) is called an existentially quantified statement.

30
Q

What is a theorem?

A

A theorem is a statement that can be proven to be true.

31
Q

What is a proof?

A

A proof consists of a series of steps, each of which follows logically from assumptions or from previously proven statements, whose final step should result in the statement of the theorem being proven.

32
Q

What are axioms?

A

The proof of a theorem may make use of axioms, which are statements assumed to be true.

33
Q

Explain proof by exhaustion.

A

If the domain of a universal statement is small, it may be easiest to prove the statement by checking each element individually. A proof of this kind is called a proof by exhaustion.

34
Q

What is a counterexample?

A

A counterexample is an assignment of values to variables that shows that a universal statement is false.

35
Q

What is a direct proof?

A

In a direct proof of a conditional statement, the hypothesis p is assumed to be true and the conclusion c is proven as a direct result of the assumption.

36
Q

What is proof by contrapositive?

A

A proof by contrapositive proves a conditional theorem of the form p → c by showing that the contrapositive ¬c → ¬p is true.

37
Q

What is proof by contradiction (inderect proof)?

A

A proof by contradiction starts by assuming that the theorem is false and then shows that some logical inconsistency arises as a result of this assumption.

38
Q

What is proof by cases?

A

A proof by cases of a universal statement such as ∀x P(x) breaks the domain for the variable x into different classes and gives a different proof for each class.

39
Q

What is the parity of a number?

A

The parity of a number is whether that number is odd or even.