- Well-formed formula
In
mathematical logic , a well-formed formula (often abbreviated WFF, pronounced "wiff" or "wuff") is asymbol or string of symbols (a formula) that is generated by theformal grammar of aformal language . To say that a string is a WFF with respect to a given formal grammar is equivalent to saying that belongs to the language generated by , i. e. . A formal language can be identified with the set of its WFFs.In formal logic, proofs are sequences of WFFs with certain properties, and the final WFF in the sequence is what is proven. This final WFF is called a
theorem when it plays a significant role in the theory being developed, or a lemma when it plays an accessory role in the proof of a theorem.Example
The well-formed formulae of the
propositional calculus are defined by the following formal grammar, written in BNF::
::= p | q | r | s | t | u | ... (arbitrary finite set of propositional variables): ::= | | ( ) | ( ) | ( ) | ( ) The sequence of symbols
:((("p" "q") ("r" "s")) ("q" "s"))
is a WFF because it is grammatically correct. The sequence of symbols
:(("p" "q")("qq"))"p"))
is not a WFF, because it does not conform to the grammar of .
Note that sometimes WFF may become very hard to read, owing to, for example, the proliferation of parentheses. To alleviate this last phenomenon, precedence rules are assumed among the operators, making some operators more binding than others. For example, assuming the precedence (from most binding to least binding) 1. 2. 3. 4. , the above correct expression may be written as:
:"p" "q" "r" "s" "q" "s"
This is, however, only a convention used to simplify the written representation of a WFF (commonly used in programming languages).
Trivia
"WFF" is part of an esoteric pun used in the name of "
WFF 'N PROOF : The Game of Modern Logic," by Layman Allen [cite news | first=Rachel | last=Ehrenberg | coauthors= | title=He's Positively Logical | date=Spring 2002 | publisher=University of Michigan | url=http://www.umich.edu/~newsinfo/MT/02/Spr02/mt9s02.html | work=Michigan Today | pages= | accessdate=2007-08-19 | language = ] , developed while he was atYale Law School (he was later a professor at theUniversity of Michigan ). The suite of games is designed to teach the principles of symbolic logic to children (inPolish notation ) [More technically,propositional logic using theFitch-style calculus .] . Its name is a pun on "whiffenpoof ", a nonsense word used as acheer atYale University made popular in "The Whiffenpoof Song" andThe Whiffenpoofs [Layman E. Allen."Toward Autotelic Learning of Mathematical Logic by the WFF 'N PROOF Games", Monographs of the Society for Research in Child Development, Vol. 30, No. 1, Mathematical Learning: Report of a Conference Sponsored by the Committee on Intellective Processes Research of the Social Science Research Council (1965), pp. 29-41. Acknowledges the pun.] .ee also
*
Atomic formula
*Ground expression
*Woodhull Freedom Foundation & Federation (acronym WFF)Notes
External links
* [http://www.cs.odu.edu/~toida/nerzic/content/logic/pred_logic/construction/wff_intro.html Well-Formed Formula for First Order Predicate Logic] - includes a short Java quiz.
* [http://www.apronus.com/provenmath/formulas.htm Well-Formed Formula at ProvenMath]
* [http://wffnproof.com/ WFF N PROOF game site]
Wikimedia Foundation. 2010.