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:
“Philosophy is written in this grand bookI mean the universe
which stands continually open to our gaze, but it cannot be understood unless one first learns to comprehend the language and interpret the characters in which it is written. It is written in the language of mathematics, and its characters are triangles, circles, and other geometrical figures, without which it is humanly impossible to understand a single word of it.”
—Galileo Galilei (15641642)