The Metamath Language
While the large database of proved theorems follows conventional ZFC set theory, the Metamath language is a metalanguage, suitable for developing a wide variety of formal systems.
The set of symbols that can be used for constructing formulas is declared using $c
and $v
statements; for example:
The grammar for formulas is specified using a combination of $f
and $a
statements; for example:
Axioms and rules of inference are specified with $a
statements along with ${
and $}
for block scoping; for example:
The metamath program can convert statements to more conventional TeX notation; for example, the modus ponens axiom from set.mm:
Using one construct, $a
statements, to capture syntactic rules, axiom schemas, and rules of inference provides a level of flexibility similar to higher order logical frameworks without a dependency on a complex type system.
Theorems (and derived rules of inference) are written with $p
statements; for example:
Note the inclusion of the proof in the $p
statement. It abbreviates the following detailed proof:
The "essential" form of the proof elides syntactic details, leaving a more conventional presentation:
1 a2 $a |- ( t + 0 ) = t 2 a2 $a |- ( t + 0 ) = t 3 a1 $a |- ( ( t + 0 ) = t -> ( ( t + 0 ) = t -> t = t ) ) 4 2,3 mp $a |- ( ( t + 0 ) = t -> t = t ) 5 1,4 mp $a |- t = tRead more about this topic: Metamath
Famous quotes containing the word language:
“Never resist a sentence you like, in which language takes its own pleasure and in which, after having abused it for so long, you are stupefied by its innocence.”
—Jean Baudrillard (b. 1929)