Gradient residuals vanish on effective profiles and selected atoms
Lax342547.RecipeResiduals · concepts/Lax342547/RecipeResiduals.lean · lax-342547
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Lemma
The scalar recipe and binary prescriptions make the target difference zero on the effective space and the span of every selected atom at an endpoint. This is the domain on which correctness is already established before the whole-space annihilator argument.
Concept map
Evidence
Lean source view on GitHub
| 1 | import Lax342547.FrozenValues |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: Gradient residuals vanish on effective profiles and selected atoms |
| 6 | type: lemma |
| 7 | --- |
| 8 | The scalar recipe and binary prescriptions make the target difference |
| 9 | zero on the effective space and the span of every selected atom at an |
| 10 | endpoint. This is the domain on which correctness is already established |
| 11 | before the whole-space annihilator argument. |
| 12 | -/ |
| 13 | |
| 14 | namespace Lax342547.RecipeResiduals |
| 15 | |
| 16 | open Lax342547.MomentSpace Lax342547.TagGeometry Lax342547.ConcreteGeometry |
| 17 | open Lax342547.ConcreteCut Lax342547.CutProfiles Lax342547.PairedWitnesses Lax342547.PairedRecipes |
| 18 | open Lax342547.ExactPins Lax342547.ProjectedPins Lax342547.SmallTables |
| 19 | open Lax342547.TableContractions Lax342547.RawBaselines Lax342547.ConcreteRecipes |
| 20 | |
| 21 | variable {k n b degree r : ℕ} {hr : 2 * r ≤ n} |
| 22 | |
| 23 | noncomputable def residual {H : Type} [Fintype H] |
| 24 | (W : Lists k n b degree r hr) (D : Testers (k := k) (b := b) (degree := degree) hr) |
| 25 | {copies : ℕ} (L R : Fin copies → Component (Tag k) → Component (Tag k) → Moment k n b degree) |
| 26 | (F : CrossForms (Component (Tag k)) (Coordinate k n b degree) H) (i z : Fin 2) : |
| 27 | Profile k n b degree →ₗ[Binary] Binary := |
| 28 | D.role + gradient D L R (leftWitness W i z) - fullContraction F (Profile k n b degree) i z |
| 29 | |
| 30 | def correctSpace {H N : Type} (W : Lists k n b degree r hr) |
| 31 | (P : Pin (Component (Tag k) × Bool) (Fin 2 × (Coordinate k n b degree ⊕ H)) N) (i : Fin 2) : |
| 32 | Submodule Binary (Profile k n b degree) := |
| 33 | effective (Profile k n b degree) P i ⊔ |
| 34 | Submodule.span Binary (Set.range (fun x : Position W i => (endpointAtoms W i x).profile)) |
| 35 | |
| 36 | variable {H N : Type} [Fintype H] [Fintype N] {E : Moment k n b degree} |
| 37 | |
| 38 | axiom selected_gradients (W : Lists k n b degree r hr) |
| 39 | (D : Testers (k := k) (b := b) (degree := degree) hr) {copies : ℕ} |
| 40 | (L R : Fin copies → Component (Tag k) → Component (Tag k) → Moment k n b degree) |
| 41 | (oB : Unit (H := H) (N := N) (E := E)) (i : Fin 2) |
| 42 | (h : RecipeGradients D L R (endpointAtoms W i) (oppositeP W oB i)) |
| 43 | (z z' : Fin 2) (t : Fin (W.length i z')) : |
| 44 | D.role (W.left i z' t).profile + |
| 45 | gradient D L R (leftWitness W i z) (W.left i z' t).profile = |
| 46 | if z = z' then 0 else ownContraction oB z' (W.right i z' t).profile |
| 47 | |
| 48 | axiom residual_correct (W : Lists k n b degree r hr) |
| 49 | (D : Testers (k := k) (b := b) (degree := degree) hr) {copies : ℕ} |
| 50 | (L R : Fin copies → Component (Tag k) → Component (Tag k) → Moment k n b degree) |
| 51 | (oA oB : Unit (H := H) (N := N) (E := E)) |
| 52 | {P Q : Pin (Component (Tag k) × Bool) (Fin 2 × (Coordinate k n b degree ⊕ H)) N} |
| 53 | (T : Table P Q) (A B : Fin 2 → Finset (Fin b → Binary)) |
| 54 | (F : CrossForms (Component (Tag k)) (Coordinate k n b degree) H) |
| 55 | (h : ScalarRecipe W D L R oA oB T A B) (htable : Extends F T) |
| 56 | (hfrozen : Frozen F W P Q oA oB) (hkeys : MatchedKeys W oA oB) |
| 57 | (hgradients : ∀ i, RecipeGradients D L R (endpointAtoms W i) (oppositeP W oB i)) : |
| 58 | ∀ i z, correctSpace W P i ≤ LinearMap.ker (residual W D L R F i z) |
| 59 | |
| 60 | end Lax342547.RecipeResiduals |
| 61 |
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments