Could perhaps somebody explain me how to define if a formula is valid, satisfiable, or not satisfiable if
For a first-order model M and a variable assignment g we write M,g |= y.
A formula is
satisfiable iff for some model M and some assignment g: M,g |= y.
valid iff for all models M and all assignments g: M,g |=y.
I have some examples but I cannot apply the rules to them.
(P(x) v ¬P(x)) valid
(∀xP(x) v ∀x¬P(x)) satisfiable (not valid)
∃x(P(x) ^ ¬P(x)) not satisfiable
(∃x∀yR(x,y) -> ∀y∃xR(x,y)) valid
(∀y∃xR(x,y)) -> ∃x∀yR(x,y)) satisfiable (not valid)
You have to construct a model in which your formulas are mapped to truths; a model is a specification of a "universe", which is the set of objects on which your formulas apply (e.g., people, numbers, sets, and a list of all these that are in the universe ), a list of the predicates you use (i.e., the P(x), properties of the elements of the universe), and a specification of which predicates are satisfied by which members of the universe. Now, try constructing different universes so that your formulas are satisfied in all of them or some of them. You can also show that a sentence is valid by arriving at a contradiction when you assume its negation.
For example, for 2), we can have your universe be the set {$1,2$}, and $P(x)$:= "x is even". Then your sentence is not satisfied, because it is neither the case that all x's are even, nor all x's are odd ( but it is the case that all the x's live in Texas.)
You can also use truth trees, to help you see if counterexamples exist : http://en.wikipedia.org/wiki/Truth_tree. where you break down a sentence using the connectives. You try to see if there is an interpretation of the negation of the sentence where the negation is true. If there is no such interpretation, then your original sentence is a tautology, i.e., it is valid.