Draft — mutable and not usable as a dependency; its citation marks the draft state.

Transducers, Part C: Regular Functions in Terms of Logic

lax-314295·formalized by Mikołaj Bojańczyk·Aristotle (Harmonic)·created 2026-09-07·GitHub @8b8f8c6·Lean v4.30.0 epoch · mathlib c5ea00351c28

Loading review…

Sign in with ORCID

Community review

Flags

Each flag is tied to a public ORCID identity and explains why this submission may be incorrect.

No flags have been submitted.

    Community review

    Flag this submission

    State precisely what appears incorrect. This explanation will be public under your ORCID name.

    Abstract

    Section 4 of Part C of the book Transducers (M. Bojańczyk) as concepts and proofs: monadic second-order logic on strings and the logical descriptions of the rational and the regular functions, together with the first-order fragment. The Lean development is Aristotle's formalisation of the book, re-presented in the archive's form; it requires the submissions for Parts A, B and C §1–3.

    The definition-concepts are monadic second-order logic on strings with its first-order fragment, mso relabellings (C.4.3), string-to-string mso transductions of a linear type (C.4.7) with the requirement that makes them functions, and the kk-types of strings (C.4.12).

    The theorem-concepts are Büchi's theorem that the regular languages are the mso-definable ones (C.4.1, Büchi–Elgot–Trakhtenbrot, as two implications and their conjunction), the regularity of the annotated strings satisfying a formula with free variables (C.4.2), the theorem that mso relabellings define exactly the rational functions (C.4.4, Bloem–Engelfriet, split), the regularity of correct annotations (C.4.6), the theorem that mso transductions define exactly the regular functions (C.4.8, Engelfriet–Hoogeboom, split), the precomputation lemma (C.4.10), the theorem that the first-order definable languages are the aperiodic ones (C.4.11, Schützenberger, McNaughton–Papert, split), the correspondence between kk-types and first-order sentences of quantifier rank kk (C.4.13, for sentences), the three properties of kk-types (C.4.15, as three statements), and the theorem that first-order relabellings are exactly the functions of aperiodic bimachines (C.4.16, split). All are proved.

    Claim C.4.5, Lemma C.4.9 and Claim C.4.14 are internal steps and appear only inside the proofs; the unnumbered paragraph closing the section, on first-order transductions, is not formalised. The archive's lax-52 states Büchi's theorem over mathlib's first-order structures; this submission uses the concrete syntax the transductions need and does not depend on it.

    Concepts

    Concept map

    Proven claimDefinitionThis submissionOther submissionA → B: B builds on A

    Proofs

    Proof networkview on GitHub

    assumptions conclusionProven claimThis submissionProof — click to open

    Lean sources for these proofs: proofs/ on GitHub

    Proof code is not displayed; the archive records each proof's checked relationship between claims.

    Related submissions

    Submission map

    This submissionOther submissionA → B: B's concepts build on AA → B: only B's proofs build on A

    Cite this

    @misc{lax-314295,
      author = {Mikołaj Bojańczyk and Aristotle (Harmonic)},
      title = {Transducers, Part C: Regular Functions in Terms of Logic},
      year = {2026},
      howpublished = {Lax Archive, lax-314295},
      url = {https://laxarchive.org/lax-314295/},
      note = {draft},
    }

    References

    1. J. Richard Büchi. Weak Second-Order Arithmetic and Finite Automata. Zeitschrift für mathematische Logik und Grundlagen der Mathematik 6:66–92, 1960. doi:10.1002/malq.19600060105
    2. Roderick Bloem and Joost Engelfriet. A Comparison of Tree Transductions Defined by Monadic Second Order Logic and by Attribute Grammars. Journal of Computer and System Sciences 61(1):1–50, 2000. doi:10.1006/jcss.1999.1684
    3. Joost Engelfriet and Hendrik Jan Hoogeboom. MSO Definable String Transductions and Two-Way Finite-State Transducers. ACM Transactions on Computational Logic 2(2):216–254, 2001. doi:10.1145/371316.371512
    4. Marcel-Paul Schützenberger. On Finite Monoids Having Only Trivial Subgroups. Information and Control 8(2):190–194, 1965. doi:10.1016/S0019-9958(65)90108-7
    5. Robert McNaughton and Seymour Papert. Counter-Free Automata. MIT Press, 1971.
    6. Mikołaj Bojańczyk. Transducers. 2026. Book in preparation; sources at r̆lhttps://github.com/bojanczyk/transducer-book.

    Community review

    Discussion

    Ask a question or add context. Endorsements and structured flags are kept in the review panel above; your ORCID profile must share a public name.

    0 comments

    Loading discussion…