2015-04-04 15:58:35 +00:00
|
|
|
import data.list
|
|
|
|
constant R : Π {A : Type}, A → A → Prop
|
2015-06-26 02:55:05 +00:00
|
|
|
infix `~` := R
|
2015-04-04 15:58:35 +00:00
|
|
|
|
|
|
|
example {A : Type} {a b c d : list nat} (H₁ : a ~ b) (H₂ : b = c) (H₃ : c = d) : a ~ d :=
|
|
|
|
calc a ~ b : H₁
|
|
|
|
... = c : H₂
|
|
|
|
... = d : H₃
|
|
|
|
|
|
|
|
example {A : Type} {a b c d : list nat} (H₁ : a = b) (H₂ : b = c) (H₃ : c ~ d) : a ~ d :=
|
|
|
|
calc a = b : H₁
|
|
|
|
... = c : H₂
|
|
|
|
... ~ d : H₃
|
|
|
|
|
|
|
|
example {A : Type} {a b c d : list nat} (H₁ : a = b) (H₂ : b ~ c) (H₃ : c = d) : a ~ d :=
|
|
|
|
calc a = b : H₁
|
|
|
|
... ~ c : H₂
|
|
|
|
... = d : H₃
|