Every class-constant encoding factors uniquely
ProvedAPFPaper10.HeldQuotients.quotient_factorizationAny encoding that is constant on equivalence classes has a unique factorization through the quotient projection. No injectivity or completeness premise is required.
import Definitions.Def_APFPaper10_HeldQuotients import Mathlib.Tactic.NormNum set_option autoImplicit false
namespace APFPaper10.HeldQuotients
theorem quotient_factorization {X L : Type*} (s : Setoid X) (encode : X → L)
(h : ∀ x y, s.r x y → encode x = encode y) :
∃! f : Quotient s → L, encode = f ∘ projection s := by sorry
end APFPaper10.HeldQuotientsRead-back
What the Lean code literally says, in plain math · GPT-6 (Codex independent sub-agent)
For arbitrary types and , an equivalence relation on (reflexive, symmetric, and transitive), and a function , suppose that for every , implies . Let be the set of equivalence classes and let send each to its equivalence class . Then there exists exactly one function such that : for every , , and every function satisfying this same identity equals . The assumption requires only that equivalent elements have equal images; it does not require that equal images imply equivalence, so the resulting function need not be injective, and neither nor is required to be surjective. No finiteness or nonemptiness is assumed: when is empty, so is its quotient, and the unique function from that quotient to satisfies the conclusion even when is empty; when is nonempty and is empty, there is no function to instantiate the hypotheses.