Binary prescriptions at all endpoints of a paired scalar recipe
Lax342547.PairedRecipes · concepts/Lax342547/PairedRecipes.lean · lax-342547
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Lemma
Swapping the units preserves the full scalar recipe. At each endpoint, its two role equations and the opposite unit's coupled equation give formal ordered mixer bits realizing the required selected-atom gradients. These are prescriptions; their occurrence is a separate probability problem.
Concept map
Evidence
Lean source view on GitHub
| 1 | import Lax342547.PairedWitnesses |
| 2 | import Lax342547.ConcreteRecipes |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: Binary prescriptions at all endpoints of a paired scalar recipe |
| 7 | type: lemma |
| 8 | --- |
| 9 | Swapping the units preserves the full scalar recipe. At each endpoint, |
| 10 | its two role equations and the opposite unit's coupled equation give |
| 11 | formal ordered mixer bits realizing the required selected-atom gradients. |
| 12 | These are prescriptions; their occurrence is a separate probability problem. |
| 13 | -/ |
| 14 | |
| 15 | namespace Lax342547.PairedRecipes |
| 16 | |
| 17 | open Lax342547.MomentSpace Lax342547.TagGeometry Lax342547.ConcreteGeometry |
| 18 | open Lax342547.ConcreteCut Lax342547.CutProfiles Lax342547.WitnessAtoms |
| 19 | open Lax342547.PairedWitnesses Lax342547.ConcreteRecipes |
| 20 | open Lax342547.ExactPins Lax342547.SmallTables Lax342547.TableContractions |
| 21 | |
| 22 | variable {k n b degree r : ℕ} {hr : 2 * r ≤ n} |
| 23 | |
| 24 | def flip (W : Lists k n b degree r hr) : Lists k n b degree r hr where |
| 25 | length i z := W.length z i |
| 26 | positive i z := W.positive z i |
| 27 | short i z := W.short z i |
| 28 | left i z := W.right z i |
| 29 | right i z := W.left z i |
| 30 | same_tag i z t := (W.same_tag z i t).symm |
| 31 | same_diagonal i z t := (W.same_diagonal z i t).symm |
| 32 | left_fresh := W.right_fresh |
| 33 | right_fresh := W.left_fresh |
| 34 | |
| 35 | abbrev Position (W : Lists k n b degree r hr) (i : Fin 2) := |
| 36 | Fin (W.length i 0) ⊕ Fin (W.length i 1) |
| 37 | |
| 38 | def endpointAtoms (W : Lists k n b degree r hr) (i : Fin 2) : |
| 39 | Position W i → PointAtom k n b degree := Sum.elim (W.left i 0) (W.left i 1) |
| 40 | |
| 41 | variable {H N : Type} [Fintype H] [Fintype N] {E : Moment k n b degree} |
| 42 | |
| 43 | noncomputable def oppositeP (W : Lists k n b degree r hr) |
| 44 | (oB : Unit (H := H) (N := N) (E := E)) (i : Fin 2) : Position W i → Binary := |
| 45 | Sum.elim (fun t => ownContraction oB 0 (W.right i 0 t).profile) |
| 46 | (fun t => ownContraction oB 1 (W.right i 1 t).profile) |
| 47 | |
| 48 | def Prescriptions (W : Lists k n b degree r hr) |
| 49 | (D : Testers (k := k) (b := b) (degree := degree) hr) |
| 50 | (oB : Unit (H := H) (N := N) (E := E)) (copies : ℕ) : Prop := |
| 51 | ∀ i, ∃ lbits rbits : Position W i → Position W i → ProductIndex k copies → Binary, |
| 52 | (∀ x y t, ¬ allowedIndex ((endpointAtoms W i x).numerical hr) |
| 53 | ((endpointAtoms W i y).numerical hr) t → lbits x y t = 0 ∧ rbits x y t = 0) ∧ |
| 54 | ∀ L R : Fin copies → Component (Tag k) → Component (Tag k) → Moment k n b degree, |
| 55 | (∀ x y, x ≠ y → ∀ t, allowedIndex ((endpointAtoms W i x).numerical hr) |
| 56 | ((endpointAtoms W i y).numerical hr) t → |
| 57 | (L t.1 t.2.1 t.2.2).toBilin' (endpointAtoms W i x).vector |
| 58 | (endpointAtoms W i y).vector = lbits x y t ∧ |
| 59 | (R t.1 t.2.1 t.2.2).toBilin' (endpointAtoms W i x).vector |
| 60 | (endpointAtoms W i y).vector = rbits x y t) → |
| 61 | RecipeGradients D L R (endpointAtoms W i) (oppositeP W oB i) |
| 62 | |
| 63 | axiom endpoint_fresh (W : Lists k n b degree r hr) (i : Fin 2) : |
| 64 | Function.Injective (fun x : Position W i => (endpointAtoms W i x).label) |
| 65 | |
| 66 | axiom flip_recipe (W : Lists k n b degree r hr) |
| 67 | (D : Testers (k := k) (b := b) (degree := degree) hr) {copies : ℕ} |
| 68 | (L R : Fin copies → Component (Tag k) → Component (Tag k) → Moment k n b degree) |
| 69 | (oA oB : Unit (H := H) (N := N) (E := E)) |
| 70 | {P Q : Pin (Component (Tag k) × Bool) (Fin 2 × (Coordinate k n b degree ⊕ H)) N} |
| 71 | (T : Table P Q) (A B : Fin 2 → Finset (Fin b → Binary)) |
| 72 | (h : ScalarRecipe W D L R oA oB T A B) : |
| 73 | ScalarRecipe (flip W) D L R oB oA (flipTable T) B A |
| 74 | |
| 75 | axiom paired_prescriptions (W : Lists k n b degree r hr) |
| 76 | (D : Testers (k := k) (b := b) (degree := degree) hr) {copies : ℕ} |
| 77 | (hk : 0 < k) (hcopies : 0 < copies) |
| 78 | (L R : Fin copies → Component (Tag k) → Component (Tag k) → Moment k n b degree) |
| 79 | (oA oB : Unit (H := H) (N := N) (E := E)) |
| 80 | {P Q : Pin (Component (Tag k) × Bool) (Fin 2 × (Coordinate k n b degree ⊕ H)) N} |
| 81 | (T : Table P Q) (A B : Fin 2 → Finset (Fin b → Binary)) |
| 82 | (h : ScalarRecipe W D L R oA oB T A B) : |
| 83 | Prescriptions W D oB copies ∧ Prescriptions (flip W) D oA copies |
| 84 | |
| 85 | end Lax342547.PairedRecipes |
| 86 |
From Mathlib
none
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments