2014-08-25 02:58:48 +00:00
|
|
|
import data.num
|
2014-09-04 23:36:06 +00:00
|
|
|
|
2014-07-15 00:19:47 +00:00
|
|
|
|
|
|
|
namespace foo
|
2014-10-02 23:20:52 +00:00
|
|
|
constant le : num → num → Prop
|
2014-07-15 00:19:47 +00:00
|
|
|
axiom le_trans {a b c : num} : le a b → le b c → le a c
|
|
|
|
calc_trans le_trans
|
|
|
|
infix `≤`:50 := le
|
2014-08-07 23:59:08 +00:00
|
|
|
end foo
|
2014-07-15 00:19:47 +00:00
|
|
|
|
|
|
|
namespace foo
|
|
|
|
theorem T {a b c d : num} : a ≤ b → b ≤ c → c ≤ d → a ≤ d
|
|
|
|
:= assume H1 H2 H3,
|
|
|
|
calc a ≤ b : H1
|
|
|
|
... ≤ c : H2
|
|
|
|
... ≤ d : H3
|
2014-08-07 23:59:08 +00:00
|
|
|
end foo
|