Lax132576.RationalOfWeightedPrecomposition
Functions that weighted automata can be pre-composed with are rational
concepts/Lax132576/RationalOfWeightedPrecomposition.lean · lax-132576
No public endorsements yet.
Loading review…
Sign in with ORCIDConcept map
In the paper
- page 63 of the paper of lax-157538, Transducers
Theorem
If pre-composition with a function preserves computability by weighted automata over every semiring, then is rational: the implication ⇐ of Theorem B.3.6 of Transducers, its content. The book applies the hypothesis to the weighted automaton over the semiring of regular languages that maps a string to the singleton language of itself — the rational relations are the weighted automata over that semiring — and reads a rational relation computing the graph of off the resulting automaton.
Lean source view on GitHub
| 1 | import Lax132576.RationalFunctions |
| 2 | import Lax132576.WeightedAutomata |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: Functions that weighted automata can be pre-composed with are rational |
| 7 | type: theorem |
| 8 | --- |
| 9 | If pre-composition with a function preserves computability by |
| 10 | weighted automata over every semiring, then is rational: the implication |
| 11 | ⇐ of Theorem B.3.6 of *Transducers*, its content. The book applies the |
| 12 | hypothesis to the weighted automaton over the semiring of regular languages |
| 13 | that maps a string to the singleton language of itself — the rational relations |
| 14 | are the weighted automata over that semiring — and reads a rational relation |
| 15 | computing the graph of off the resulting automaton. |
| 16 | |
| 17 | # Formalization notes |
| 18 | |
| 19 | The hypothesis quantifies over all semirings `S : Type` in the same universe as |
| 20 | the alphabets, which is where the semiring of regular languages over `B` lives. |
| 21 | Both alphabets are assumed finite. |
| 22 | -/ |
| 23 | |
| 24 | namespace Lax132576.RationalOfWeightedPrecomposition |
| 25 | |
| 26 | open Lax132576.RationalFunctions Lax132576.WeightedAutomata |
| 27 | |
| 28 | /-- A function with which every weighted automaton can be pre-composed is |
| 29 | rational. -/ |
| 30 | axiom isRationalFun_of_weighted_precomp {A B : Type} [Finite A] [Finite B] |
| 31 | (f : List A → List B) |
| 32 | (h : ∀ (S : Type) (_ : Semiring S) (h : List B → S), IsWeighted h → IsWeighted (h ∘ f)) : |
| 33 | IsRationalFun f |
| 34 | |
| 35 | end Lax132576.RationalOfWeightedPrecomposition |
| 36 |
Formalization notes
The hypothesis quantifies over all semirings in the same universe as the alphabets, which is where the semiring of regular languages over lives. Both alphabets are assumed finite.
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