2014-01-05 12:05:08 -08:00
|
|
|
import Real.
|
|
|
|
variable f {A : Type} (x y : A) : A
|
|
|
|
check f 10 20
|
|
|
|
check f 10
|
|
|
|
check @f
|
|
|
|
variable g {A : Type} (x1 x2 : A) {B : Type} (y1 y2 : B) : B
|
|
|
|
check g 10 20 true
|
|
|
|
check let r : Real -> Real -> Real := g 10 20
|
2013-12-10 09:48:24 -08:00
|
|
|
in r
|
2014-01-05 12:05:08 -08:00
|
|
|
check g 10
|
2014-01-09 08:33:52 -08:00
|
|
|
set_option pp::implicit true
|
2014-01-05 12:05:08 -08:00
|
|
|
check let r : Real -> Real -> Real := g 10 20
|
2013-12-10 09:48:24 -08:00
|
|
|
in r
|