lean2/tests/lean/run/fun.lean
Leonardo de Moura cbc81ea6c5 chore(*): minimize dependencies on tests
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-08-24 19:58:48 -07:00

23 lines
386 B
Text

import logic struc.function
using function num 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 zero
check typeof flip h ff zero : num
variable f1 : num → num → bool
variable f2 : bool → num
check (f1 on f2) ff tt