# Formation rule

> Mediated Wiki article. Canonical URL: https://mediated.wiki/source/Formation_rule
> Markdown URL: https://mediated.wiki/source/Formation_rule.md
> Source: https://en.wikipedia.org/wiki/Formation_rule
> Source revision: 1288377632
> License: Creative Commons Attribution-ShareAlike 4.0 International (https://creativecommons.org/licenses/by-sa/4.0/)

{{Short description|Rule defining the correct structure of expressions in formal grammar}}
{{Formal languages}}

In [mathematical logic](/source/mathematical_logic), '''formation rules''' are rules for describing [well-formed words](/source/Formal_language) over the [alphabet](/source/Alphabet_(computer_science)) of a [formal language](/source/formal_language).<ref>{{Cite book |last=Hinman|first=Peter|title=Fundamentals of Mathematical Logic |date=2005 |url=https://www.routledge.com/Fundamentals-of-Mathematical-Logic/Hinman/p/book/9781568812625 |access-date=2022-11-17 |publisher=A K Peters/CRC Press |language=en |quote=Specifying the syntax of any language L follows a common pattern. First a set of symbols is given, and we define an L-expression to be any finite sequence of these symbols. Then we specify one or more sets of L-expressions which we regard as meaningful. The meaningful expressions are generally described as those constructed by following certain rules or algorithms, and the set of them is characterized as the smallest set of expressions which is closed under these formation rules.}}</ref> These rules only address the location and manipulation of the strings of the language. It does not describe anything else about a language, such as its [semantics](/source/semantics) (i.e. what the strings mean). (See also [formal grammar](/source/formal_grammar)).

==Formal language==
{{Main|Formal language}}
A ''formal language'' is an organized [set](/source/set_(mathematics)) of [symbol](/source/symbol)s the essential feature being that it can be precisely defined in terms of just the shapes and locations of those symbols. Such a language can be defined, then, without any [reference](/source/reference) to any [meaning](/source/meaning_(linguistics))s of any of its expressions; it can exist before any [interpretation](/source/interpretation_(logic)) is assigned to it—that is, before it has any meaning. A [formal grammar](/source/formal_grammar) determines which symbols and sets of symbols are [formula](/source/Formula_(mathematical_logic))s in a formal language.

== Formal systems ==
{{main|Formal system}}

A ''formal system'' (also called a ''logical calculus'', or a ''logical system'') consists of a formal language together with a [deductive apparatus](/source/deductive_apparatus) (also called a ''deductive system''). The deductive apparatus may consist of a set of [transformation rule](/source/transformation_rule)s (also called ''inference rules'') or a set of [axiom](/source/axiom)s, or have both. A formal system is used to [derive](/source/Proof_theory) one expression from one or more other expressions. Propositional and predicate calculi are examples of formal systems.

== Propositional and predicate logic ==
The formation rules of a [propositional calculus](/source/propositional_calculus) may, for instance, take a form such that;

* if we take Φ to be a propositional formula we can also take {{not}}Φ to be a formula;
* if we take Φ and Ψ to be a propositional formulas we can also take (Φ {{and}}  Ψ), (Φ {{imp}}  Ψ), (Φ {{or-}}  Ψ) and (Φ {{eqv}}  Ψ) to also be formulas.

A [predicate calculus](/source/predicate_calculus) will usually include all the same rules as a propositional calculus, with the addition of [quantifiers](/source/Quantifiers_(logic)) such that if we take Φ to be a formula of propositional logic and α as a [variable](/source/variable_(mathematics)) then we can take ({{all}}α)Φ and ({{exist}}α)Φ each to be formulas of our predicate calculus.

==See also==
*[finite-state automaton](/source/finite-state_automaton)

== References ==
<references />{{Mathematical logic}}

Category:Formal languages
Category:Propositional calculus
Category:Predicate logic
Category:Rules
Category:Syntax (logic)
Category:Logical truth

---
Adapted from the Wikipedia article [Formation rule](https://en.wikipedia.org/wiki/Formation_rule) by Wikipedia contributors ([contributor history](https://en.wikipedia.org/wiki/Formation_rule?action=history)). Available under [Creative Commons Attribution-ShareAlike 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/). Changes may have been made.
