2015-11-08 01:13:40 +00:00
|
|
|
import data.list
|
|
|
|
|
2015-11-13 02:55:25 +00:00
|
|
|
#congr_simp @add
|
|
|
|
#congr_simp @ite
|
|
|
|
#congr_simp @perm
|
|
|
|
|
2015-11-08 01:13:40 +00:00
|
|
|
|
|
|
|
section
|
|
|
|
variables p : nat → Prop
|
|
|
|
variables q : nat → nat → Prop
|
|
|
|
variables f : Π (x y : nat), p x → q x y → nat
|
|
|
|
|
2015-11-13 02:55:25 +00:00
|
|
|
#congr_simp f
|
2015-11-08 01:13:40 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
constant p : Π {A : Type}, A → Prop
|
|
|
|
constant q : Π {A : Type} (n m : A), p n → p m → Prop
|
|
|
|
constant r : Π {A : Type} (n m : A) (H₁ : p n) (H₂ : p m), q n m H₁ H₂ → Prop
|
|
|
|
constant h : Π (A : Type) (n m : A)
|
|
|
|
(H₁ : p n) (H₂ : p m) (H₃ : q n n H₁ H₁) (H₄ : q n m H₁ H₂)
|
|
|
|
(H₅ : r n m H₁ H₂ H₄) (H₆ : r n n H₁ H₁ H₃), A
|
|
|
|
|
2015-11-13 02:55:25 +00:00
|
|
|
#congr_simp h
|