2014-01-05 20:05:08 +00:00
|
|
|
import Int.
|
|
|
|
import Real.
|
2014-01-05 19:03:35 +00:00
|
|
|
print 1/2
|
2014-01-05 20:05:08 +00:00
|
|
|
eval 4/6
|
2014-01-05 19:03:35 +00:00
|
|
|
print 3 div 2
|
2014-01-05 20:05:08 +00:00
|
|
|
variable x : Real
|
|
|
|
variable i : Int
|
|
|
|
variable n : Nat
|
2014-01-05 19:03:35 +00:00
|
|
|
print x + i + 1 + n
|
2014-01-09 16:33:52 +00:00
|
|
|
set_option lean::pp::coercion true
|
2014-01-05 19:03:35 +00:00
|
|
|
print x + i + 1 + n
|
|
|
|
print x * i + x
|
|
|
|
print x - i + x - x >= 0
|
|
|
|
print x < x
|
|
|
|
print x <= x
|
|
|
|
print x > x
|