|
|||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||
In computer science and mathematical logic, a well-formed formula or formula (often abbreviated WFF, pronounced "wiff" or "wuff") is a symbol or string of symbols that is generated by the formal grammar of a formal language. To say that a string A key use of WFFs is in propositional logic and predicate logics such as first-order logic. In those contexts, a formula is a string of symbols φ for which it makes sense to ask "is φ true?", once any free variables in φ have been instantiated. In formal logic, proofs can be represented by 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.
Propositional calculusThe well-formed formulae of the propositional calculus
This definition can also be written as a formal grammar in Backus–Naur form:
Using this grammar, the sequence of symbols
is a WFF because it is grammatically correct. The sequence of symbols
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.
This is, however, only a convention used to simplify the written representation of a WFF (commonly used in programming languages). Predicate logicThe definition of a formula in first-order logic is relative to the signature of the theory at hand. This signature specifies the constant symbols, relation symbols, and function symbols of the theory at hand, along with the arities of the function and relation symbols. The definition of a formula comes in several parts. First, the set of terms is defined recursively. Terms, informally, are expressions that represent objects from the domain of discourse.
The next step is to define the atomic formulas.
Finally, the set of WFFs is defined to be the smallest set containing the set of atomic WFFs such that the following holds:
If a formula has no occurrences of TriviaWFF is part of an esoteric pun used in the name of "WFF 'N PROOF: The Game of Modern Logic," by Layman Allen1, developed while he was at Yale Law School (he was later a professor at the University of Michigan). The suite of games is designed to teach the principles of symbolic logic to children (in Polish notation)2. Its name is a pun on whiffenpoof, a nonsense word used as a cheer at Yale University made popular in The Whiffenpoof Song and The Whiffenpoofs3. See alsoNotes
External links
|
| All Right Reserved © 2007, Designed by Stylish Blog. |