feat(library/init/quot.lean): declare calc subst rule for iff

This commit is contained in:
Jeremy Avigad 2015-09-24 23:38:20 -04:00 committed by Leonardo de Moura
parent 384a366e0f
commit 135f5ff96b

View file

@ -13,6 +13,10 @@ constant quot.{l} : Π {A : Type.{l}}, setoid A → Type.{l}
-- Remark: if we do not use propext here, then we would need a quot.lift for propositions.
constant propext {a b : Prop} : (a ↔ b) → a = b
-- iff can now be used to do substitutions in a calculation
theorem iff_subst [subst] {a b : Prop} {P : Prop → Prop} (H₁ : a ↔ b) (H₂ : P a) : P b :=
eq.subst (propext H₁) H₂
namespace quot
protected constant mk : Π {A : Type} [s : setoid A], A → quot s
notation `⟦`:max a `⟧`:0 := quot.mk a