lean2/tests/lean/run/fun.lean
Leonardo de Moura 364bba2129 feat(frontends/lean/inductive_cmd): prefix introduction rules with the name of the inductive datatype
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-09-04 17:26:36 -07:00

23 lines
389 B
Text

import logic struc.function
open function bool
variable f : num → bool
variable g : num → num
check f ∘ g ∘ g
check typeof id : num → num
check num → num ⟨is_typeof⟩ id
variable h : num → bool → num
check flip h
check flip h ff num.zero
check typeof flip h ff num.zero : num
variable f1 : num → num → bool
variable f2 : bool → num
check (f1 on f2) ff tt