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
|
2015-05-02 22:15:35 +00:00
|
|
|
attribute le_trans [trans]
|
2014-10-21 22:27:45 +00:00
|
|
|
infix `≤` := 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
|