Buckets:
| import OAI.Computability.UniqueGames.Machines.MachineCanonicalOutputLemmas | |
| import OAI.Computability.UniqueGames.PCP.PreprocessingLazyWords | |
| namespace OAI | |
| section | |
| /-! Exact dummy-block codec used by the complete lazy-table machine. -/ | |
| namespace UniqueGamesTheorem.Foundations.Complexity.MachineLazyCodec | |
| open PCP.GraphTables PCP.PreprocessingLazyWords | |
| theorem rowsBits_ofFn (v e count : Nat) : | |
| MachineDummyRows.rowsBits v e count = | |
| (List.ofFn fun p : Fin count => MachineDummyRows.rowBits v (e + p.val)).flatten := by | |
| induction count generalizing e with | |
| | zero => rfl | |
| | succ count ih => | |
| rw [MachineDummyRows.rowsBits, List.ofFn_succ, List.flatten_cons] | |
| simp only [Fin.val_zero, Nat.add_zero] | |
| apply congrArg (MachineDummyRows.rowBits v e ++ ·) | |
| rw [ih] | |
| apply congrArg List.flatten | |
| congr 1 | |
| funext p | |
| simp only [Fin.val_succ] | |
| congr 1 | |
| omega | |
| private theorem encodeWords_flatMap {α : Type*} (items : List α) (words : α → List Nat) : | |
| encodeWords (items.flatMap words) = items.flatMap (fun x => encodeWords (words x)) := by | |
| induction items with | |
| | nil => rfl | |
| | cons item items ih => simp only [List.flatMap_cons, encodeWords_append, ih] | |
| theorem rowBits_stay {n d : Nat} (v : Fin n) (p : Fin d) : | |
| MachineDummyRows.rowBits v.val (2 * d * v.val + p.val) = | |
| encodeWords (rowWords (stayRow d v p)) := by | |
| have h := MachineDummyRows.rowBits_eq_graph_row v (stayRow d v p).reverseIndex | |
| rw [stayRow_reverse_val] at h | |
| exact h | |
| theorem rowsBits_stay {n d : Nat} (v : Fin n) : | |
| MachineDummyRows.rowsBits v.val (2 * d * v.val) d = | |
| encodeWords ((List.ofFn (stayRow d v)).flatMap rowWords) := by | |
| rw [rowsBits_ofFn, encodeWords_flatMap] | |
| simp only [List.flatMap_def, List.map_ofFn] | |
| apply congrArg List.flatten | |
| congr 1 | |
| funext p | |
| exact rowBits_stay v p | |
| end UniqueGamesTheorem.Foundations.Complexity.MachineLazyCodec | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 1.91 kB
- Xet hash:
- e78fa08e2624cd2b1ae7e0e99bed37db59124cacf81002fcf8bdbbc19f4e05af
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.