Free bits of the FAF test
Lax253009.FAFPatterns · concepts/Lax253009/FAFPatterns.lean · lax-253009
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Theorem
The accepting transcripts of the FAF test use at most free bits: reference answers, followed by at most free bits in each of the CNA tests. The side-condition queries are determined by the reference answers. Setting and gives Lemma 5.4's bound of free bits.
We enumerate a finite superset of accepting transcripts. This allows repeated sampled tables to be treated independently for the upper bound; every transcript produced by an actual accepting oracle is included.
Concept map
Evidence
Lean source view on GitHub
| 1 | import Lax253009.FAFTest |
| 2 | import Lax253009.LongCodePatterns |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: Free bits of the FAF test |
| 7 | type: theorem |
| 8 | --- |
| 9 | The accepting transcripts of the FAF test use at most free bits: |
| 10 | reference answers, followed by at most free bits in each of the |
| 11 | CNA tests. The side-condition queries are determined by the reference |
| 12 | answers. Setting and gives Lemma 5.4's bound |
| 13 | of free bits. |
| 14 | |
| 15 | We enumerate a finite superset of accepting transcripts. This allows |
| 16 | repeated sampled tables to be treated independently for the upper bound; |
| 17 | every transcript produced by an actual accepting oracle is included. |
| 18 | -/ |
| 19 | |
| 20 | namespace Lax253009.FAFPatterns |
| 21 | |
| 22 | open LongCode LongCodePatterns |
| 23 | |
| 24 | noncomputable def conditionOfAnswers {Ω : Type} {u w q : ℕ} |
| 25 | (ρ : Ω → Word w → Word u) (valid : Ω → Coordinate w) |
| 26 | (ω : Ω) (g : Fin q → Coordinate u) (b : Word q) : Coordinate w := |
| 27 | fun y ↦ valid ω y && decide (∀ j, g j (ρ ω y) = b j) |
| 28 | |
| 29 | noncomputable def patterns {Ω : Type} {u w n s q : ℕ} |
| 30 | (ρ : Ω → Word w → Word u) (valid : Ω → Coordinate w) |
| 31 | (ω : Fin n → Ω) (g : Fin q → Coordinate u) (f : Fin n → Fin s → Coordinate w) : |
| 32 | Finset (Word q × (Fin n → Pattern w)) := by |
| 33 | classical |
| 34 | exact Finset.univ.biUnion (fun b : Word q ↦ |
| 35 | (Fintype.piFinset (fun i ↦ sidePatterns (f i) (conditionOfAnswers ρ valid (ω i) g b))).image |
| 36 | (fun a ↦ (b, a))) |
| 37 | |
| 38 | noncomputable def transcript {Ω : Type} {u w n s q : ℕ} |
| 39 | (ρ : Ω → Word w → Word u) (valid : Ω → Coordinate w) (R : Table u) (A : Ω → Table w) |
| 40 | (ω : Fin n → Ω) (g : Fin q → Coordinate u) (f : Fin n → Fin s → Coordinate w) : |
| 41 | Word q × (Fin n → Pattern w) := |
| 42 | (fun j ↦ R (g j), fun i ↦ restrict (SideQueried (f i) (FAFTest.condition ρ valid R (ω i) g)) (A (ω i))) |
| 43 | |
| 44 | axiom transcript_mem {Ω : Type} {u w n s q : ℕ} |
| 45 | (ρ : Ω → Word w → Word u) (valid : Ω → Coordinate w) (R : Table u) (A : Ω → Table w) |
| 46 | (ω : Fin n → Ω) (g : Fin q → Coordinate u) (f : Fin n → Fin s → Coordinate w) |
| 47 | (h : FAFTest.Accepts ρ valid R A ω g f) : |
| 48 | transcript ρ valid R A ω g f ∈ patterns ρ valid ω g f |
| 49 | |
| 50 | axiom free_bits {Ω : Type} {u w n s q : ℕ} |
| 51 | (ρ : Ω → Word w → Word u) (valid : Ω → Coordinate w) |
| 52 | (ω : Fin n → Ω) (g : Fin q → Coordinate u) (f : Fin n → Fin s → Coordinate w) : |
| 53 | (patterns ρ valid ω g f).card ≤ 2 ^ (q + n * s) |
| 54 | |
| 55 | end Lax253009.FAFPatterns |
| 56 |
Used by
From Mathlib
none
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments