previous up next
Go backward to Structural Induction
Go up to Top
Go forward to Simultaneous Induction
RISC-Linz logo

Example

E: Expression
E ::= zero | E1 * E2 | (E)
Proposition
All members of Expression have the same number of left parentheses as the number of right parentheses.
Proof
 
  1. zero: left(E) = 0 = right(E).
  2. E1*E2: left(E) = left(E1) + left(E2) = right(E1) + right(E2) = right(E).
  3. (E'): left(E) = 1 + left(E') = 1 + right(E') = right(E).

Author: Wolfgang Schreiner
Last Modification: October 13, 1997

previous up next