Zulip Chat Archive

Stream: Is there code for X?

Topic: quot.forall


Eric Wieser (Aug 11 2021 at 14:42):

Do we really not have this?

lemma quot.forall {α} {r : α → α → Prop} {C : quot r → Prop} :
  (∀ x : quot r, C x) ↔ ∀ x : α, C (quot.mk r x) :=
⟨λ hx x, hx _, quot.ind⟩

I was sure I saw some variant of it somewhere. Obviously we'd want it for quotient.mk, ideal.quotient.mk, etc too{

Eric Wieser (Aug 11 2021 at 14:53):

Oh, I guess you can prove it with quotient.surjective_quotient_mk'.forall

Yury G. Kudryashov (Aug 12 2021 at 23:07):

You probably mean surjective_quot_mk.

Eric Wieser (Aug 12 2021 at 23:32):

Right, that's the one that actually matches my theorem statement syntactically

Eric Wieser (Aug 12 2021 at 23:34):

Do you think we should have the forall lemma for each quotient constructor anyway, or should we just sure we have a proof of surjectivity for each of our plethora of aliases of quot.mk


Last updated: Feb 28 2026 at 14:05 UTC