Classical Eilenberg correspondence theorems connect algebraic descriptions of finite-state behavior with language-theoretic closure principles. The version developed by Juan Climent Vidal and Enric Cosme Llópez replaces one-sorted monoids by many-sorted algebras, so that operations may accept arguments of several prescribed sorts and return a value of another sort. This is the natural algebraic setting for typed term languages: a signature records the permitted input and output sorts of each operation, and a language is a family of sets indexed by sorts. The paper proves that two ways of organizing finite-state behavior—through finite-index congruences and through regular languages—determine the same ordered structure. The source is the final section of Climent Vidal and Cosme Llópez, Eilenberg theorems for many-sorted formations, published in the Houston Journal of Mathematics 45(2), 2019.
The companion manuscript A Kleene theorem for free many-sorted algebras develops the free-term and recognizability infrastructure used by this formalization. It supplies a concrete Lean representation of sorted signatures, free algebras, homomorphisms, terms, and finite many-sorted carriers. The present mission begins from that reusable core and formalizes the formation-level theorem of the HJM paper, rather than repeating the already completed Kleene development.
Fix a finite type of sorts and an -sorted signature . For an -sorted set , write for the free -algebra on . A congruence on a many-sorted algebra is a family of equivalence relations , one on each carrier sort, compatible with every basic operation. Its index is finite when the entire sorted quotient family
is finite. A sorted language is -saturated when membership in is constant on every -class. The syntactic congruence is the greatest algebra congruence that saturates , and is regular when has finite index.
A finite-index congruence formation selects, for every variable family , a nonempty filter of finite-index congruences on . The selection is closed under intersections, upward inclusion, and pullback along homomorphisms whose composite with the relevant quotient projection is surjective at every sort.
A regular-language formation selects regular languages in each . It contains every language saturated by the universal congruence; whenever it contains every language saturated by ; and it satisfies the corresponding pullback-saturation condition for quotient-surjective homomorphisms.
The two constructions are
and
The capstone is the paper's final formation theorem: the ordered sets of finite-index congruence formations and regular-language formations are order-isomorphic, with the isomorphism fixed to be exactly the two displayed constructions.
The milestones establish the universal property of the syntactic congruence, closure of finite-index congruences under the filter operations, the well-definedness of each construction, and the two recovery identities
These identities determine the inverse maps and prevent the goal from being satisfied by an unrelated abstract order equivalence.
The theorem packages a family of finite quotients and a family of regular languages as interchangeable data. On the algebraic side, closure is expressed by filters of congruences and quotient-surjective pullbacks. On the language side, the same information is expressed through saturation by syntactic congruences. The result therefore gives a systematic translation between quotient-based and language-based classifications in a typed, many-sorted setting.
Formalizing the theorem adds congruence, quotient-index, saturation, syntactic-congruence, and formation interfaces to the existing free many-sorted algebra library. These components are reusable for future formalizations of recognizability, Myhill–Nerode principles, finite algebra formations, and varieties or pseudovarieties of typed algebras. The mathematical theorem is already proved in the cited 2019 paper; the remaining task is to produce machine-checked Lean proofs of the source-faithful statements.
The two maps are simple to write down but their inverse laws are not pointwise tautologies. A finite-index congruence must be reconstructed from the family of all languages it saturates, and a language formation must be reconstructed from all selected finite-index congruences. In the many-sorted case, finiteness applies to the entire quotient family, including its support across sorts, and intersections and pullbacks must preserve this global condition. The quotient-surjectivity premise is also essential: replacing it by ordinary surjectivity of the original homomorphism would change the formation axiom.
The syntactic congruence creates a second layer of care. It must be characterized as the greatest compatible sorted equivalence saturating a language, not merely as the kernel of the language's characteristic function, which need not itself respect the algebra operations. Thus an argument that treats saturation as an arbitrary set-theoretic equivalence misses the algebraic compatibility required by the theorem.
The Lean development uses the existing MSKleene representation of sorted sets, signatures, argument tuples, algebras, homomorphisms, terms, and free algebras. Congruences are sort-indexed setoids with explicit compatibility for every signature operation. Their order is inclusion of relations. Intersection and the universal congruence are concrete constructions, while pullback is defined along an algebra homomorphism.
Finite index is represented by finiteness of the sigma-type of all quotient carriers, matching the paper's finite sorted-set convention; it is not weakened to separate finiteness of each inhabited component. The sort type is assumed finite in the finite-index filter and formation correspondence theorems, as required in the final section of the source. Languages are arbitrary sorted subsets of free term algebras, including empty components. No nonemptiness assumption on variable carriers or algebra sorts is added.
The syntactic congruence is defined internally as the supremum-style least upper bound of all congruences saturating a language, rather than postulated together with its universal property. The formation structures contain only the source closure axioms. In particular, neither correspondence map nor either inverse identity is stored as a structure field; doing so would trivialize the capstone. Contributions are welcome on the foundational universal-property and finite-index lemmas, the two formation constructors, and the recovery identities that assemble into the final order isomorphism.
namespace HJMEilenberg
open MSKleene
/-- Proposition 6.23: the complete lattices of finite-index congruence
formations and regular-language formations are isomorphic. The displayed
equalities fix the isomorphism to be exactly the two maps defined in the
paper. -/
theorem eilenberg_formation_theorem {S : Type} [Finite S]
(sig : Signature S) :
∃ e : FiniteIndexCongruenceFormation sig ≃o
RegularLanguageFormation sig,
(∀ (F : FiniteIndexCongruenceFormation sig) (X : SSet S),
(e F).languages X = languagesOf F X) ∧
(∀ (L : RegularLanguageFormation sig) (X : SSet S),
(e.symm L).congruences X = congruencesOf L X) := by
sorry
end HJMEilenbergLet be finite and an -sorted signature. There exists an order isomorphism
from finite-index congruence formations to regular-language formations. For every congruence formation , its image selects exactly the languages saturated by some congruence in ; for every language formation , the inverse image selects exactly the finite-index congruences all of whose saturated languages lie in .
The displayed pointwise equalities fix the order isomorphism to be the two constructions of the paper, rather than an arbitrary equivalence between the underlying ordered types.
No open leaves. Every sub-goal is proved or awaiting decomposition.