2014-08-15 20:27:18 +00:00
|
|
|
import standard struc.function
|
2014-07-24 23:29:39 +00:00
|
|
|
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
|
2014-07-29 02:58:57 +00:00
|
|
|
check flip h ff zero
|
2014-07-24 23:29:39 +00:00
|
|
|
|
2014-07-29 02:58:57 +00:00
|
|
|
check typeof flip h ff zero : num
|
2014-07-24 23:29:39 +00:00
|
|
|
|
|
|
|
variable f1 : num → num → bool
|
|
|
|
variable f2 : bool → num
|
|
|
|
|
2014-07-29 02:58:57 +00:00
|
|
|
check (f1 on f2) ff tt
|