ArticleslgStudy

mathematics

Well-formed formula

Well-formed formula is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Well-formed formula rather than just read about it. In short: In mathematical logic, propositional logic, and predicate logic, a well-formed formula, abbreviated WFF or wff, often simply formula, is a finite sequence of symbols from a given alphabet, constructed following the formal grammar of a formal language. The abbreviation wff is pronounced "woof", or sometimes "wiff", "weff", or "whiff".

Key takeaways

  • Well-formed formula belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Well-formed formula to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Well-formed formula from memory before moving on to harder problems.

Reference excerpt

In mathematical logic, propositional logic, and predicate logic, a well-formed formula, abbreviated WFF or wff, often simply formula, is a finite sequence of symbols from a given alphabet, constructed following the formal grammar of a formal language. The abbreviation wff is pronounced "woof", or sometimes "wiff", "weff", or "whiff". A formal language can be identified with the set of formulas in the language. A formula is a syntactic object that can be given a semantic meaning by means of an interpretation. Two key uses of formulas are in propositional logic and predicate logic.

Introduction A key use of formulas is in propositional logic and predicate logic 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 formulas with certain properties, and the final formula in the sequence is what is proven. Although the term "formula" may be used for written marks (for instance, on a piece of paper or chalkboard), it is more precisely understood as the sequence of symbols being expressed, with the marks being a token instance of formula. This distinction between the vague notion of "property" and the inductively defined notion of well-formed formula has roots in Weyl's 1910 paper "Über die Definitionen der mathematischen Grundbegriffe". Thus the same formula may be written more than once, and a formula might in principle be so long that it cannot be written at all within the physical universe. Formulas themselves are syntactic objects. They are given meanings by interpretations. For example, in a propositional formula, each propositional variable may be interpreted as a concrete proposition, so that the overall formula expresses a relationship between these propositions. A formula need not be interpreted, however, to be considered solely as a formula.

Propositional calculus

The formulas of propositional calculus, also called propositional formulas, are expressions such as (A∧(B∨C)). Their definition begins with the arbitrary choice of a set V of propositional variables. The alphabet consists of the letters in V along with the symbols for the propositional connectives and parentheses "(" and ")", all of which are assumed to not be in V. The formulas will be certain expressions (that is, strings of symbols) over this alphabet. The formulas are inductively defined as follows:

Each propositional variable is, on its own, a formula. If φ is a formula, then ¬φ is a formula. If φ and ψ are formulas, and • is any binary connective, then ( φ • ψ) is a formula. Here • could be (but is not limited to) the usual operators ∨, ∧, →, or ↔. This definition can also be written as a formal grammar in Backus–Naur form, provided the set of variables is finite:

Using this grammar, the sequence of symbols

(((p → q) ∧ (r → s)) ∨ (¬q ∧ ¬s)) is a formula, because it is grammatically correct. The sequence of symbols

((p → q)→(qq))p)) is not a formula, because it does not conform to the grammar. A complex formula may be difficult to read, owing to, for example, the proliferation of parentheses. To alleviate this last phenomenon, precedence rules (akin to the standard mathematical order of operations) 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. ∨. Then the formula

(((p → q) ∧ (r → s)) ∨ (¬q ∧ ¬s)) may be abbreviated as

p → q ∧ r → s ∨ ¬q ∧ ¬s This is, however, only a convention used to simplify the written representation of a formula. If the precedence was assumed, for example, to be left-right associative, in following order: 1. ¬ 2. ∧ 3. ∨ 4. →, then the same formula above (without parentheses) would be rewritten as

(p → (q ∧ r)) → (s ∨ (¬q ∧ ¬s))

Predicate logic The definition of a formula in first-order logic 𝒬𝒮 is relative to the signature of the theory at hand. This signature specifies the constant symbols, predicate symbols, and function symbols of the theory at hand, along with the arities of the function and predicate 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.

Any variable is a term. Any constant symbol from the signature is a term an expression of the form f(t1,...,tn), where f is an n-ary function symbol, and t1,...,tn are terms, is again a term. The next step is to define the atomic formulas.

If t1 and t2 are terms then t1=t2 is an atomic formula If R is an n-ary predicate symbol, and t1,...,tn are terms, then R(t1,...,tn) is an atomic formula Finally, the set of formulas is defined to be the smallest set containing the set of atomic formulas such that the following holds:

¬ϕ is a formula when ϕ is a formula (ϕ∧ψ) and (ϕ∨ψ) are formulas when ϕ and ψ are formulas; ∃xϕ is a formula when x is a variable and ϕ is a formula; ∀xϕ is a formula when x is a variable and ϕ is a formula (alternatively, ∀xϕ could be defined as an abbreviation for ¬∃x¬ϕ). If a formula has no occurrences of ∃x or ∀x, for any variable x, then it is called quantifier-free. An existential formula is a formula starting with a sequence of existential quantification followed by a quantifier-free formula. The definition above has the property known as unique readability: if a formula is not atomic, then exactly one of the formation clauses was the last clause applied to construct it, so that each formula is produced from the atomic formulas in exactly one way and has a single main connective or initial quantifier. This ensures that the definition of satisfaction of a formula in an interpretation, which proceeds clause by clause, is coherent: at each stage of breaking down a formula, exactly one clause applies.

Atomic and open formulas

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Well-formed formula

Start with the simplest possible case. Write down what Well-formed formula claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Well-formed formula before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Well-formed formula ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Well-formed formula

In research
Well-formed formula appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Well-formed formula in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Well-formed formula is common in secondary-school and first-year university syllabi. It links to neighbouring topics Formal languages, Logical expressions, Mathematical logic, so understanding it makes those chapters shorter.
In everyday life
Look for Well-formed formula outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Well-formed formula” →

How to study Well-formed formula in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Well-formed formula means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Well-formed formula out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Well-formed formula in simple terms?

In mathematical logic, propositional logic, and predicate logic, a well-formed formula, abbreviated WFF or wff, often simply formula, is a finite sequence of symbols from a given alphabet, constructed following the formal grammar of a formal language. The abbreviation wff is pronounced "woof", or s…

Why does Well-formed formula matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Well-formed formula?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Well-formed formula.

Tags

  • Formal languages
  • Logical expressions
  • Mathematical logic
  • Metalogic
  • Syntax (logic)

Keep exploring