Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Regular-language formations yield congruence formations

Proved
HJMEilenberg.languages_to_congruences

by Cosme · Sep 9, 2026 · Mathlib 0df444a (Lean v4.33.1)

congruenceseilenberg-theoremformal-languagesmany-sorted-algebra

Let SSS be finite and let L\mathcal LL be a regular-language formation for an SSS-sorted signature Σ\SigmaΣ. There exists a finite-index congruence formation F\mathfrak FF whose congruences over every sorted variable family XXX are exactly

F(X)=FL(X)={Φ∣Φ has finite index and every Φ-saturated language belongs to L(X)}.\mathfrak F(X)=\mathfrak F_{\mathcal L}(X) =\{\Phi\mid \text{$\Phi$ has finite index and every $\Phi$-saturated language belongs to $\mathcal L(X)$}\}.F(X)=FL​(X)={Φ∣Φ has finite index and every Φ-saturated language belongs to L(X)}.

This states that the paper's language-to-congruence construction satisfies all finite-index congruence formation axioms.

Preamble
import Definitions.Def_HJMEilenberg_Formations
Formal statement
namespace HJMEilenberg

open MSKleene

/-- Proposition 6.22: a regular-language formation determines a formation of
finite-index congruences by requiring all saturated languages. -/
theorem languages_to_congruences {S : Type} [Finite S] {sig : Signature S}
    (L : RegularLanguageFormation sig) :
    ∃ F : FiniteIndexCongruenceFormation sig,
      ∀ X : SSet S, F.congruences X = congruencesOf L X := by
  sorry

end HJMEilenberg
Source
Juan Climent Vidal and Enric Cosme Llópez, Eilenberg theorems for many-sorted formations, Houston Journal of Mathematics 45(2) (2019), Section 6, pp. 351–416; arXiv:1604.04792. The free-term substrate is cross-checked against the companion TeX source A Kleene theorem for free many-sorted algebras. Section 6, Proposition Lang2CongEnFinit.
Read-back

What the Lean code literally says, in plain math · gpt-5

For every type SSS of sorts equipped with a finiteness instance (with no assumption that SSS is inhabited or nonempty), every implicit SSS-sorted signature Σ\SigmaΣ—that is, an arbitrary family of types Σw,s\Sigma_{w,s}Σw,s​ of operation symbols indexed by finite lists www of input sorts and an output sort sss, with no finiteness assumption on the operation-symbol types—and every regular-language formation L\mathcal LL for Σ\SigmaΣ, there exists a finite-index congruence formation F\mathcal FF for Σ\SigmaΣ such that, for every SSS-sorted family X=(Xs)s∈SX=(X_s)_{s\in S}X=(Xs​)s∈S​ of generator types, FX\mathcal F_XFX​ is exactly the set of congruences Φ\PhiΦ on the free Σ\SigmaΣ-algebra TΣ(X)T_\Sigma(X)TΣ​(X) satisfying both: the disjoint union ∐s∈STΣ(X)s/Φs\coprod_{s\in S} T_\Sigma(X)_s/{\Phi_s}∐s∈S​TΣ​(X)s​/Φs​ of their sortwise quotient carriers is finite, and every sorted language K=(Ks⊆TΣ(X)s)s∈SK=(K_s\subseteq T_\Sigma(X)_s)_{s\in S}K=(Ks​⊆TΣ​(X)s​)s∈S​ saturated by Φ\PhiΦ—meaning Φs(x,y)\Phi_s(x,y)Φs​(x,y) implies x∈Ks  ⟺  y∈Ksx\in K_s\iff y\in K_sx∈Ks​⟺y∈Ks​ for every s,x,ys,x,ys,x,y—belongs to LX\mathcal L_XLX​. Here a congruence is a sortwise family of equivalence relations preserved by every basic Σ\SigmaΣ-operation, and TΣ(X)T_\Sigma(X)TΣ​(X) consists sortwise of the well-sorted terms generated by variables from XXX and applications of symbols from Σ\SigmaΣ. The assumption that L\mathcal LL is a regular-language formation supplies, for every XXX, a set LX\mathcal L_XLX​ of sorted languages on TΣ(X)T_\Sigma(X)TΣ​(X) such that: each selected language has finite-index syntactic congruence; every language saturated by the universal congruence is selected; whenever L,K∈LXL,K\in\mathcal L_XL,K∈LX​, every language saturated by the intersection of the syntactic congruences of LLL and KKK is selected; and whenever M∈LYM\in\mathcal L_YM∈LY​ and f:TΣ(X)→TΣ(Y)f:T_\Sigma(X)\to T_\Sigma(Y)f:TΣ​(X)→TΣ​(Y) is a homomorphism whose composite with the quotient by the syntactic congruence of MMM is surjective at every sort, every language saturated by the pullback along fff of that syntactic congruence belongs to LX\mathcal L_XLX​. The syntactic congruence used here relates x,yx,yx,y at sort sss exactly when every congruence Ψ\PsiΨ that contains every congruence saturating the language also relates x,yx,yx,y. The asserted witness F\mathcal FF must itself assign to each XXX a nonempty set FX\mathcal F_XFX​ of congruences, be closed under pairwise intersection and upward enlargement, be closed under pullback along every homomorphism that is sortwise surjective after quotienting by the target congruence, and contain only finite-index congruences; the displayed equality asserts membership equivalence in both directions for every XXX and every congruence, but asserts neither uniqueness of F\mathcal FF nor any finiteness or nonemptiness of XXX or its fibers. Thus empty SSS, empty or infinite generator fibers, signatures with empty or infinite symbol types, and free-algebra sorts with no terms are included; sortwise saturation and compatibility conditions over empty carriers are vacuous, and any pullback-closure implication whose quotient-surjectivity premise is impossible is vacuous as well.

Human review
  • Endorsed by Shuze Chen · Sep 9, 2026

  • Endorsed by Cosme · Sep 9, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me