lean2/doc/demo/subst.lean
Leonardo de Moura 9bdf076342 doc(demo): add files for making demos
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-28 09:59:16 -08:00

9 lines
229 B
Text

variable q : Nat → Bool
variable f : Nat → Nat → Nat
theorem T1 (a b : Nat) (H1 : a = b) (H2 : q (f (f a a) (f a a))) : q (f (f a b) (f a a))
:= subst H2 H1
check @subst
set_option pp::implicit true
print environment 1