Congruence-formation recovery identity
ProvedHJMEilenberg.recover_congruenceLet be finite, let be a finite-index congruence formation, and let be a regular-language formation that agrees at every variable family with the saturation construction . Then applying the language-to-congruence construction recovers the original formation pointwise:
This is the first inverse identity in the final formation isomorphism.
import Definitions.Def_HJMEilenberg_Formations
namespace HJMEilenberg
open MSKleene
/-- First recovery identity in Proposition 6.23. -/
theorem recover_congruence {S : Type} [Finite S] {sig : Signature S}
(F : FiniteIndexCongruenceFormation sig)
(L : RegularLanguageFormation sig)
(hL : ∀ X : SSet S, L.languages X = languagesOf F X) :
∀ X : SSet S, congruencesOf L X = F.congruences X := by
sorry
end HJMEilenbergRead-back
What the Lean code literally says, in plain math · gpt-5
For every type equipped with the proposition that is finite (no enumeration, decidable equality, or inhabitant is assumed), every -sorted signature assigning a type of operation symbols to each finite list of input sorts and output sort , every finite-index congruence formation for , and every regular-language formation for , the following conditional assertion holds. Here an -sorted set is an arbitrary family of types , is the type of well-sorted -terms of sort whose variables come from , a language on is an arbitrary family of subsets , and a congruence is a family of equivalence relations on these term types that is preserved by every basic operation; means is contained in at every sort, is the sortwise intersection, the pullback along a homomorphism relates exactly when , and has finite index exactly when the dependent disjoint union is finite. A congruence saturates exactly when implies for every . The syntactic congruence used below is literally the congruence for which means that, for every congruence , if every congruence saturating satisfies , then ; a language is called regular when this congruence has finite index. The bundled assumptions on are that for every , is a nonempty set of congruences on , is closed under binary intersection, is upward closed under , contains whenever and the map is surjective for every sort , and contains only finite-index congruences. The bundled assumptions on are that each is regular; every saturated by the universal congruence (which relates every pair of terms of the same sort) belongs to ; whenever , every language saturated by also belongs to ; and whenever , has each map surjective, and is saturated by , then . If, for every arbitrary -sorted set , the selected languages are exactly , then, for every such , the selected congruences are exactly . The quantifiers include , empty or infinite variable types , empty term sorts, nullary operations, and signatures having empty or infinite types of operation symbols; thus sortwise universal, compatibility, saturation, and surjectivity conditions can be vacuous on absent sorts or elements, the finite-index condition is automatic when is empty, and for any for which the displayed language equality premise does not hold, the conditional assertion imposes no conclusion.
Confirmed by the mission captain (proposal self-audit).