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

Lax709149.RegularOfTerm

Regular terms define regular functions

concepts/Lax709149/RegularOfTerm.lean · lax-709149

proven

Loading review…

Sign in with ORCID

Community review

Flags

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

No flags have been submitted.

    Community review

    Flag this concept

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

    No source line selected.

    Concept map

    Proven claimDefinitionThis conceptRelated conceptA → B: B builds on A

    Evidence

    Each proof establishes this claim relative to its assumptions.

    In the paper

    Theorem

    Every type-to-type function defined by a regular term is regular under string representation (Theorem C.5.4 of Transducers, the implication from terms to regular functions). The proof is an induction on the term: every atomic term is computed, on representations, by a rational or a regular string-to-string function — reading a representation with a bracket counter capped at the height of the type — and the four combinators preserve regularity under representation, composition by Theorem C.1.1, pairing and co-pairing through the closure properties of Lemma C.2.10, and map through map lifting.

    Lean source view on GitHub

    1import Lax709149.RegularUnderRepresentation
    2import Lax709149.RegularTerms
    3
    4/-!
    5---
    6title: Regular terms define regular functions
    7type: theorem
    8---
    9Every type-to-type function defined by a regular term is regular under string
    10representation (Theorem C.5.4 of *Transducers*, the implication from terms to
    11regular functions). The proof is an induction on the term: every atomic term
    12is computed, on representations, by a rational or a regular string-to-string
    13function — reading a representation with a bracket counter capped at the height
    14of the type — and the four combinators preserve regularity under representation,
    15composition by Theorem C.1.1, pairing and co-pairing through the closure
    16properties of Lemma C.2.10, and map through map lifting.
    17
    18# Formalization notes
    19
    20The converse implication of Theorem C.5.4, that every function regular under
    21string representation is defined by a regular term, is not formalised, and no
    22statement of the archive asserts it; this half is stated on its own.
    23-/
    24
    25namespace Lax709149.RegularOfTerm
    26
    27open Lax709149.Types Lax709149.RegularUnderRepresentation Lax709149.RegularTerms
    28
    29/-- A function defined by a regular term is regular under string representation. -/
    30axiom isRegularUnderRepr_of_isRegularTermFun {A B : Ty} {f : A.Elt → B.Elt}
    31 (hf : IsRegularTermFun f) : IsRegularUnderRepr f
    32
    33end Lax709149.RegularOfTerm
    34
    Show Proof

    Formalization notes

    The converse implication of Theorem C.5.4, that every function regular under string representation is defined by a regular term, is not formalised, and no statement of the archive asserts it; this half is stated on its own.

    Used by

    none

    From Mathlib

    none

    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…