refactor(library/logic/core/eq): cleanup

This commit is contained in:
Leonardo de Moura 2014-09-09 19:15:11 -07:00
parent b4d765ff2e
commit 9ac5f28b03

View file

@ -66,14 +66,14 @@ H2
end eq
theorem congr_fun {A : Type} {B : A → Type} {f g : Π x, B x} (H : f = g) (a : A) : f a = g a :=
H ▸ eq.refl (f a)
H ▸ rfl
theorem congr_arg {A : Type} {B : Type} {a b : A} (f : A → B) (H : a = b) : f a = f b :=
H ▸ eq.refl (f a)
H ▸ rfl
theorem congr {A : Type} {B : Type} {f g : A → B} {a b : A} (H1 : f = g) (H2 : a = b) :
f a = g b :=
H1 ▸ H2 ▸ eq.refl (f a)
H1 ▸ H2 ▸ rfl
theorem equal_f {A : Type} {B : A → Type} {f g : Π x, B x} (H : f = g) : ∀x, f x = g x :=
take x, congr_fun H x