Lax194892.PrenexNormalForm
Every for-transducer has a prenex form
concepts/Lax194892/PrenexNormalForm.lean · lax-194892
No public endorsements yet.
Loading review…
Sign in with ORCIDConcept map
In the paper
- page 159 of the paper of lax-157538, Transducers
Theorem
Every for-transducer is equivalent to one in prenex form (Lemma D.1.3 of Transducers): a block of nested loops over positions, in increasing or decreasing order, whose body is loop-free and outputs at most one letter per iteration, followed by a loop-free epilogue. Loops are pulled outwards one at a time, Boolean variables recording which iterations have already been executed.
Lean source view on GitHub
| 1 | import Lax194892.ForTransducers |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: Every for-transducer has a prenex form |
| 6 | type: theorem |
| 7 | --- |
| 8 | Every for-transducer is equivalent to one in prenex form (Lemma D.1.3 of |
| 9 | *Transducers*): a block of nested loops over positions, in increasing or |
| 10 | decreasing order, whose body is loop-free and outputs at most one letter per |
| 11 | iteration, followed by a loop-free epilogue. Loops are pulled outwards one at a |
| 12 | time, Boolean variables recording which iterations have already been executed. |
| 13 | |
| 14 | # Formalization notes |
| 15 | |
| 16 | Stated over any alphabets, for every program `P`; `PrenexForm` is that of |
| 17 | `ForTransducers`. |
| 18 | -/ |
| 19 | |
| 20 | namespace Lax194892.PrenexNormalForm |
| 21 | |
| 22 | open Lax194892.ForTransducers |
| 23 | |
| 24 | /-- Every for-transducer program is equivalent to one in prenex form. -/ |
| 25 | axiom exists_prenexForm {A B : Type} (P : ForProg A B) : |
| 26 | ∃ P' : ForProg A B, P'.PrenexForm ∧ ∀ w, P'.eval w = P.eval w |
| 27 | |
| 28 | end Lax194892.PrenexNormalForm |
| 29 |
Formalization notes
Stated over any alphabets, for every program ; is that of .
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