The commutativity problem for effective varieties of formal series, and applications

lax-619925·formalized by Lorenzo Clemente·registered·created ·GitHub @23667c7·Lean v4.33.0 epoch · mathlib db584cd6d46c

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

    A formal series in noncommuting variables Σ\Sigma over the rationals is a mapping Σ∗→Q\Sigma^* \to \mathbb{Q} from the free monoid on Σ\Sigma to the rationals; it is commutative if the value on a word does not depend on the order of its letters. The commutativity problem for a class of series takes a finite presentation of a series in the class and asks whether it is commutative — a natural, nontrivial problem not previously considered from an algorithmic perspective.

    We show that commutativity is decidable for every class of series forming an effective prevariety, a notion generalizing Reutenauer's varieties of formal series. This submission formalizes that meta-theorem and applies it to three families of automata — Hadamard, shuffle, and infiltration — each of which is proved to recognize an effective prevariety over Q\mathbb{Q}, so that commutativity is decidable for the series they recognize. The three cases are treated by a single ideal-chain argument reducing series equality to ideal membership in a multivariate polynomial ring.

    The one ingredient not available in mathlib is the decidability of ideal membership in Q[x1,…,xk]\mathbb{Q}[x_1, \dots, x_k] (a Gröbner-basis fact); it is proved here in its propositional form by classical logic, and the commutativity-decidability results for the three automaton classes follow from it.

    View annotated paper

    41 pages · 11 marked passages

    Concepts

    Concept map
    11 concepts
    100%
    Proven claimDefinitionThis submissionA → B: B builds on A

    Proofs

    Proof networkview on GitHub

    100%
    assumptions conclusionProven claimStatement 1, 2, … of a claim with several statementsClaim from this submissionProof — open large view for details
    Proof list

    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

    No other submission in the archive builds on this one, and this one builds on none.

    Cite this

    This is only the formalizers. The authors of the formalized results may be different (see References).

    @misc{lax-619925,
      author = {Lorenzo Clemente},
      title = {The commutativity problem for effective varieties of formal series, and applications},
      year = {2026},
      howpublished = {Lax Archive, lax-619925},
      url = {https://laxarchive.org/lax-619925/},
    }

    Discussion

    Ask a question or add context. Endorsements and structured flags are kept in the review panel above.

    Loading discussion…