2014-09-16 14:58:54 -04:00
|
|
|
import logic algebra.function
|
2014-09-04 16:36:06 -07:00
|
|
|
open function bool
|
2014-07-24 16:29:39 -07:00
|
|
|
|
|
|
|
|
|
|
|
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-09-04 16:36:06 -07:00
|
|
|
check flip h ff num.zero
|
2014-07-24 16:29:39 -07:00
|
|
|
|
2014-09-04 16:36:06 -07:00
|
|
|
check typeof flip h ff num.zero : num
|
2014-07-24 16:29:39 -07:00
|
|
|
|
|
|
|
variable f1 : num → num → bool
|
|
|
|
variable f2 : bool → num
|
|
|
|
|
2014-07-28 19:58:57 -07:00
|
|
|
check (f1 on f2) ff tt
|