Textbook notes - Predicates and Quantifiers Flashcards

1
Q

What two parts is the statement “x is greater than 3” made up of?

A

The variable “x” is the subject of the statement. The second part “is greater than 3” is the predicate.

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

If we have the statement “x is greater than 3”, how can this be denoted as P(x)?

A

We can set P to denote the predicate “is greater than 3”, and x is the variable.

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

When does the statement P(x) become propositional?

A

When a value is assigned to the variable X. There will be a truth value.

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

The statement P(x) is also known as?

A

It is said to be the value of the PROPOSITIONAL FUNCTION P at x.

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

Let J(x) denote the statement ‘student x is failing math’. Student Mary is failing math, but Sophie and James are not failing math. What are the truth values of J(Mary), J(Sophie) and J(James)?

A

J(Mary) is the only true statement here; the other two are false.

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

Let E(x,y) denote “x=y-2”. What are the truth values of the propositions E(5,7) and E(2,10)?

A

E(5,7) is true, E(2,10) is false.

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

What is a precondition?

A

A statement that describes valid input in computer programs.

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

What is a postcondition?

A

The conditions a program should satisfy when the program has run.

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

What are some words used in quantifications?

A

All, some, none, few

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