Lax132576.RationalViaWeighted
Rational functions characterised by weighted automata
concepts/Lax132576/RationalViaWeighted.lean · lax-132576
No public endorsements yet.
Loading review…
Sign in with ORCIDConcept map
Evidence
Each proof establishes this claim relative to its assumptions.
In the paper
- page 63 of the paper of lax-157538, Transducers
Theorem
A string-to-string function is rational if and only if weighted automata, over every semiring, are closed under pre-composition with it (Theorem B.3.6 of Transducers). The implication ⇒ is Lemma B.3.5 () and the implication ⇐ is ; this statement is their conjunction.
Lean source view on GitHub
| 1 | import Lax132576.RationalFunctions |
| 2 | import Lax132576.WeightedAutomata |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: Rational functions characterised by weighted automata |
| 7 | type: theorem |
| 8 | --- |
| 9 | A string-to-string function is rational if and only if weighted automata, over |
| 10 | every semiring, are closed under pre-composition with it (Theorem B.3.6 of |
| 11 | *Transducers*). The implication ⇒ is Lemma B.3.5 (`WeightedPrecomposition`) and |
| 12 | the implication ⇐ is `RationalOfWeightedPrecomposition`; this statement is |
| 13 | their conjunction. |
| 14 | |
| 15 | # Formalization notes |
| 16 | |
| 17 | Both alphabets are assumed finite; the semirings range over `Type`. |
| 18 | -/ |
| 19 | |
| 20 | namespace Lax132576.RationalViaWeighted |
| 21 | |
| 22 | open Lax132576.RationalFunctions Lax132576.WeightedAutomata |
| 23 | |
| 24 | /-- A function is rational if and only if every weighted automaton can be |
| 25 | pre-composed with it. -/ |
| 26 | axiom isRationalFun_iff_weighted_precomp {A B : Type} [Finite A] [Finite B] |
| 27 | (f : List A → List B) : |
| 28 | IsRationalFun f ↔ |
| 29 | ∀ (S : Type) (_ : Semiring S) (h : List B → S), IsWeighted h → IsWeighted (h ∘ f) |
| 30 | |
| 31 | end Lax132576.RationalViaWeighted |
| 32 |
Formalization notes
Both alphabets are assumed finite; the semirings range over .
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