Actual query-key image caps on raw leaves
Lax342547.RawQueryImages · concepts/Lax342547/RawQueryImages.lean · lax-342547
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Lemma
The raw paired-frame observation maps realize the selected query tuples. Their independence modulo old pins transfers exact leaf caps to actual key events.
Concept map
Evidence
This concept declares 7 statements. Each proof establishes one of them relative to its assumptions.
1 actual_left_key_cap proven
2 key_dimension proven
3 key_map_coordinate proven
4 key_observations_left proven
5 left_tuple_event proven
6 observation_primal_minus proven
7 observation_primal_plus proven
Lean source view on GitHub
| 1 | import Lax342547.QueryIndependence |
| 2 | import Lax342547.ReferencePins |
| 3 | import Lax342547.LeafImages |
| 4 | |
| 5 | /-! |
| 6 | --- |
| 7 | title: Actual query-key image caps on raw leaves |
| 8 | type: lemma |
| 9 | --- |
| 10 | The raw paired-frame observation maps realize the selected query tuples. Their independence modulo old pins transfers exact leaf caps to actual key events. |
| 11 | -/ |
| 12 | |
| 13 | namespace Lax342547.RawQueryImages |
| 14 | |
| 15 | open Lax342547.MomentSpace Lax342547.RawFrames Lax342547.ReferencePins |
| 16 | open Lax342547.TableSpaces Lax342547.ProductImages Lax342547.TagGeometry |
| 17 | open Lax342547.ConcreteGeometry Lax342547.PairedWitnesses Lax342547.QueryReference |
| 18 | open Lax342547.QueryIndependence Lax342547.PairedKeys Lax342547.KeySpans |
| 19 | open scoped ENNReal |
| 20 | |
| 21 | axiom observation_primal_plus {Comp B H N : Type} [Fintype B] [Fintype H] [Fintype N] |
| 22 | {E : Matrix B B Binary} (o : Fin 2 → Comp → Frame B H N E) |
| 23 | (e : Comp) (i : Fin 2) (v : B → Binary) : |
| 24 | observation o (e,true) (primalEmbedding i v) = (o i e).P.mulVec v |
| 25 | |
| 26 | axiom observation_primal_minus {Comp B H N : Type} [Fintype B] [Fintype H] [Fintype N] |
| 27 | {E : Matrix B B Binary} (o : Fin 2 → Comp → Frame B H N E) |
| 28 | (e : Comp) (i : Fin 2) (v : B → Binary) : |
| 29 | observation o (e,false) (primalEmbedding i v) = (o i e).Q.mulVec v |
| 30 | |
| 31 | axiom key_map_coordinate {k n b degree r : ℕ} {hr : 2 * r ≤ n} {H : Type} |
| 32 | (W : Lists k n b degree r hr) (e : Lax342547.CutProfiles.Component (Tag k)) |
| 33 | (p : ComponentPosition W e) : by |
| 34 | classical |
| 35 | exact keyMap (H := H) W e (Pi.single p 1) = |
| 36 | primalEmbedding p.val.1 (W.left p.val.1 p.val.2.1 p.val.2.2).vector |
| 37 | |
| 38 | axiom key_observations_left {k n b degree r : ℕ} {hr : 2 * r ≤ n} {H N : Type} |
| 39 | [Fintype H] [Fintype N] {E : Moment k n b degree} |
| 40 | (W : Lists k n b degree r hr) (o : Unit (H := H) (N := N) (E := E)) |
| 41 | (e : Lax342547.CutProfiles.Component (Tag k)) (mode : Bool) : by |
| 42 | classical |
| 43 | exact LinearMap.toMatrix' ((observation o (e,mode)).comp (keyMap (H := H) W e)) = |
| 44 | if mode then (leftTuple W o e).1 else (leftTuple W o e).2 |
| 45 | |
| 46 | noncomputable def tupleMaps {k n b degree r : ℕ} {hr : 2 * r ≤ n} {N : Type} |
| 47 | (W : Lists k n b degree r hr) (q : Lax342547.ReferenceKeys.Tuples |
| 48 | (Lax342547.CutProfiles.Component (Tag k)) (ComponentPosition W) N) |
| 49 | (a : Lax342547.CutProfiles.Component (Tag k) × Bool) : |
| 50 | (ComponentPosition W a.1 → Binary) →ₗ[Binary] (N → Binary) := by |
| 51 | classical |
| 52 | exact (if a.2 then (q a.1).1 else (q a.1).2).mulVecLin |
| 53 | |
| 54 | axiom left_tuple_event {k n b degree r : ℕ} {hr : 2 * r ≤ n} {H N : Type} |
| 55 | [Fintype H] [Fintype N] {E : Moment k n b degree} |
| 56 | (W : Lists k n b degree r hr) (q : Lax342547.ReferenceKeys.Tuples |
| 57 | (Lax342547.CutProfiles.Component (Tag k)) (ComponentPosition W) N) |
| 58 | (o : Unit (H := H) (N := N) (E := E)) : |
| 59 | leftTuple W o = q ↔ ∀ a, (observation o a).comp (keyMap (H := H) W a.1) = tupleMaps W q a |
| 60 | |
| 61 | axiom key_dimension {k n b degree r : ℕ} {hr : 2 * r ≤ n} |
| 62 | (W : Lists k n b degree r hr) : by |
| 63 | classical |
| 64 | exact (∑ a : Lax342547.CutProfiles.Component (Tag k) × Bool, |
| 65 | Module.finrank Binary (ComponentPosition W a.1 → Binary)) = |
| 66 | Fintype.card (Lax342547.QuerySlots.Slot W) |
| 67 | |
| 68 | axiom actual_left_key_cap {k n b degree r : ℕ} {hr : 2 * r ≤ n} {H N : Type} |
| 69 | [Fintype H] [Fintype N] {E : Moment k n b degree} |
| 70 | (W : Lists k n b degree r hr) |
| 71 | (p : PMF (Unit (H := H) (N := N) (E := E))) |
| 72 | (P : Lax342547.ExactPins.Pin (Lax342547.CutProfiles.Component (Tag k) × Bool) |
| 73 | (Fin 2 × (Coordinate k n b degree ⊕ H)) N) |
| 74 | (A : Fin 2 → Finset (Fin b → Binary)) (hA : Excludes P A) |
| 75 | (hfresh : ∀ i z t, (W.left i z t).label ∉ A i) |
| 76 | (q : Lax342547.ReferenceKeys.Tuples (Lax342547.CutProfiles.Component (Tag k)) (ComponentPosition W) N) |
| 77 | (α : ℝ≥0∞) |
| 78 | (hcap : ∀ Q : Lax342547.ExactPins.Pin (Lax342547.CutProfiles.Component (Tag k) × Bool) |
| 79 | (Fin 2 × (Coordinate k n b degree ⊕ H)) N, |
| 80 | 1 ≤ P.relativeRank Q → p.toOuterMeasure (Q.event observation) ≤ α ^ (P.relativeRank Q)) |
| 81 | (hr : 1 ≤ Fintype.card (Lax342547.QuerySlots.Slot W)) : |
| 82 | p.toOuterMeasure {o | leftTuple W o = q} ≤ α ^ Fintype.card (Lax342547.QuerySlots.Slot W) |
| 83 | |
| 84 | end Lax342547.RawQueryImages |
| 85 |
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments