The averaged table preserves the answers of an accepting side-condition test
Lax323828.SideConditionAveraging · concepts/Lax323828/SideConditionAveraging.lean · lax-323828
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Theorem
Let be the words satisfying the side condition . If the extended CNA test accepts a table , then averaging its sign-valued version over coordinates outside preserves every base query answer of that run. Indeed, step (3) requires the table to have the same answer on every function agreeing with the query on .
This links the actual test definition to the averaged function in equation (17) and to its Fourier projection formula, Lemma 4.18.
Concept map
Evidence
Each proof establishes this claim relative to its assumptions.
Lean source view on GitHub
| 1 | import Lax323828.LongCode |
| 2 | import Lax323828.FourierProjection |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: The averaged table preserves the answers of an accepting side-condition test |
| 7 | type: theorem |
| 8 | --- |
| 9 | Let be the words satisfying the side condition . If the extended |
| 10 | CNA test accepts a table , then averaging its sign-valued version over |
| 11 | coordinates outside preserves every base query answer of that run. |
| 12 | Indeed, step (3) requires the table to have the same answer on every |
| 13 | function agreeing with the query on . |
| 14 | |
| 15 | This links the actual test definition to the averaged function in equation |
| 16 | (17) and to its Fourier projection formula, Lemma 4.18. |
| 17 | -/ |
| 18 | |
| 19 | namespace Lax323828.SideConditionAveraging |
| 20 | |
| 21 | open LongCode BooleanFourier FourierProjection |
| 22 | |
| 23 | def satisfying {w : ℕ} (h : Coordinate w) : Finset (Word w) := |
| 24 | Finset.univ.filter fun x ↦ h x = true |
| 25 | |
| 26 | axiom query_preserved {w s : ℕ} (A : Table w) (f : Fin s → Coordinate w) |
| 27 | (h : Coordinate w) (hpass : AcceptsWithCondition A f h) |
| 28 | (g : Coordinate w) (hg : Queried f g) : |
| 29 | project (fun q ↦ sign (A q)) (satisfying h) g = sign (A g) |
| 30 | |
| 31 | end Lax323828.SideConditionAveraging |
| 32 |
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments