Textbook notes - Predicates and Quantifiers Flashcards
What two parts is the statement “x is greater than 3” made up of?
The variable “x” is the subject of the statement. The second part “is greater than 3” is the predicate.
If we have the statement “x is greater than 3”, how can this be denoted as P(x)?
We can set P to denote the predicate “is greater than 3”, and x is the variable.
When does the statement P(x) become propositional?
When a value is assigned to the variable X. There will be a truth value.
The statement P(x) is also known as?
It is said to be the value of the PROPOSITIONAL FUNCTION P at x.
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)?
J(Mary) is the only true statement here; the other two are false.
Let E(x,y) denote “x=y-2”. What are the truth values of the propositions E(5,7) and E(2,10)?
E(5,7) is true, E(2,10) is false.
What is a precondition?
A statement that describes valid input in computer programs.
What is a postcondition?
The conditions a program should satisfy when the program has run.
What are some words used in quantifications?
All, some, none, few