Well-formed formula

From Wikipedia, the free encyclopedia

(Redirected from Well-formed formulas)
Jump to: navigation, search

In logic, a well-formed formula (often abbreviated WFF, pronounced "wiff") is a string that is generated by a formal grammar. To say that a string \ S is a WFF with respect to a given formal grammar \ G is equivalent to saying that \ S belongs to the language generated by \ G, i.e. S \in \boldsymbol{L}(G).

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.

Contents

The well-formed formulae of the propositional calculus \mathcal{L} are defined by the following formal grammar, written in BNF:

 ::= p | q | r | s | t | u | ... (arbitrary finite set of propositional variables)
 ::= | \neg | (\wedge) | (\vee) | (\rightarrow) | (\leftrightarrow)

The sequence of symbols

(((p \rightarrow q) \wedge (r \rightarrow s)) \vee (\negq \wedge \negs))

is a WFF because it is grammatically correct. The sequence of symbols

((p \rightarrow q)\rightarrow(qq))p))

is not a WFF, because it does not conform to the grammar of \mathcal{L}.

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. \neg   2. \leftarrow, \rightarrow  3. \wedge  4. \vee, the above correct expression may be written as:

p \rightarrow q \wedge r \rightarrow s \vee \negq \wedge \negs

This is, however, only a convention used to simplify the written representation of a WFF (commonly used in programming languages).

WFF is part of an esoteric pun used in the name of "WFF 'N PROOF: The Game of Modern Logic," by Layman Allen[1], 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 Whiffenpoofs.[3]

  1. ^ Ehrenberg, Rachel. "He's Positively Logical", Michigan Today, University of Michigan, Spring 2002. Retrieved on 2007-08-19. 
  2. ^ More technically, propositional logic using the Fitch-style calculus.
  3. ^ 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.

Advanced Search
Included Web Search Engines


Safe Search

close

Top Matching Results

Occasionally Search.com will highlight specialized results that are based on the context of your query. Examples of specialized results include specific links to news, images, or video.

Top Matching Results may highlight information from other Search.com pages, content from the CNET Network of sites, or third party content. The listings are based purely on relevance. Search.com does not receive payment for listings in this section but our partners that provide this data may get paid for listing these products.

Sponsored Links

This section contains paid listings which have been purchased by companies that want to have their sites appear for specific search terms and related content. These listings are administered, sorted and maintained by a third party and are not endorsed by Search.com.

Search Results

Search.com sends your search query to several search engines at one time and integrates the results into one list which has been sorted by relevance using Search.com's proprietary algorithm. You can customize the list of search engines included in your metasearch from the preferences.

The search engines that are used in your metasearch may allow companies to pay to have their Web sites included within the results. To view the Paid Inclusion policy for a specific search engine, please visit their Web site. Search.com does not accept payment or share revenue with any search engine partner for listings in this section.