Proof of `Shuffle automata and shuffle-finite series` (6th statement)

groundedproofs/Lax619925Proofs/Shuffle.lean · lax-619925

What this proof establishes

Assuming the claims on the left, the claim on the right holds — checked by the archive's pipeline. Proof code is not displayed here.

Read the Lean proof on GitHub

Description

The equality (zeroness) problem is decidable for shuffle automata over a finite alphabet (paper §6). As in the Hadamard case, the orbit-ideal chain InI_n stabilises by Hilbert's basis theorem (orbitIdealstabilisesorbitIdeal_stabilises), and the stabilised ideal is a bi-ideal, so the zeroness of the recognised series is characterised by the finite statement ∀p∈orbitSetAN,p∈KA∀ p ∈ orbitSet A N, p ∈ K A (zeronessifforbitSetzeroness_iff_orbitSet). The only difference from the Hadamard case is the transition invariance (orbitIdealimageorbitIdeal_image): the letter map is a derivation (ℚ-linear, not a ring hom), so instead of Ideal.mapspanIdeal.map_span one decomposes pp as a finite RR-linear combination of orbit-set elements and applies the Leibniz rule termwise. The kernel KAK A is finitely generated (gensKergensKer, by Noetherianity), so this finite statement is a batch of ideal-membership queries p∈span↑(gensKerA)p ∈ span ↑(gensKer A), each decided by IdealMembershipDecidableIdealMembershipDecidable; the decision dd is the Boolean "and" of these queries over the (finite) orbit set.