- alphabet
- finite set of symbols
- includes operators, constants, variables, etc.
- formulas are strings of symbols
- grammar
- defines well-formed formulas inductively
- axiom schemas
- axiom schemas are substitution schemes for generating well-formed formulas
- inference rules
- theorems are formulas that can be derived from axioms by inference rules
- theorems can be defined inductively as either substitutions of axiom schemes or applications of inference rules
- alphabet: {
A
,B
,C
, ...,Z
,bot
,->
,(
,)
} - grammar (in EBNF):
constant = "A" | "B" | "C" | ... | "Z";
formula = "bot" | constant | "(", formula, " -> ", formula, ")";
- axiom schemes:
- K:
(a -> (b -> a))
for well-formed formulasa
,b
- S:
((a -> (b -> c)) -> ((a -> b) -> (a -> c)))
for well-formed formulasa
,b
- falsity (aka bottom, absurdity):
(bot -> a)
for well-formed formulasa
- K:
- inference rules:
- modus ponens:
(a -> b)
,a
|-b
for well-formed formulasa
,b
- i.e. given well-formed formulas
a
andb
, if(a -> b)
anda
are theorems, thenb
is a theorem
- i.e. given well-formed formulas
- modus ponens: