OAI/Probability/FKMaps/CoreMetric.lean
58 declarations, 0 contain sorry, 0 declared as axioms
- def
OAI.FKCRT.Inventory.Core.matchingline 14 - def
OAI.FKCRT.Inventory.Core.rotationline 19 - def
OAI.FKCRT.Inventory.Core.graphline 22 - instance
OAI.FKCRT.Inventory.Core.(instance at line 25)line 25 - def
OAI.FKCRT.Inventory.Core.entryline 27 - def
OAI.FKCRT.Inventory.Core.incrementline 30Source documentation
Entry-to-child-corner distance in the actual isolated core map.
def increment (c : Core) (j : Fin c.val.length) : ℕ := …
Mentions: OAI.FKCRT.Inventory.Core
- lemma
OAI.FKCRT.Inventory.Core.distance_leline 34 - lemma
OAI.FKCRT.Inventory.Core.increment_leline 44 - def
OAI.FKCRT.Inventory.coreIncrementline 51Source documentation
Spine records index the chosen child from the right. Impossible arities and slot labels are totalized by zero and never sampled by the actual law.
def coreIncrement (z : ℕ×ℕ) (a : CoreLabel) : ℝ := …
Mentions: OAI.FKCRT.Inventory.CoreLabel
- lemma
OAI.FKCRT.Inventory.coreIncrement_nonnegline 57 - lemma
OAI.FKCRT.Inventory.coreIncrement_boundline 62 - lemma
OAI.FKCRT.Inventory.coreIncrement_integrableline 72 - lemma
OAI.FKCRT.Inventory.coreIncrement_mean_boundline 77 - def
OAI.FKCRT.Inventory.metricMeanline 85Source documentation
The source block-distance mean; finiteness uses only offspring variance.
def metricMean (P : Parameters) : ℝ := …
Mentions: OAI.FKCRT.Inventory.Parameters
- lemma
OAI.FKCRT.Inventory.metricMean_integrableline 88 - lemma
OAI.FKCRT.Inventory.metricMean_nonnegline 93 - theorem
OAI.FKCRT.Inventory.actual_uniform_metric_spineline 98Source documentation
Actual all-core labels satisfy the previously proved marked finite-variance uniform ancestral law, not a bounded-size or exponential-moment substitute.
theorem actual_uniform_metric_spine (P : Parameters) {Ω : Type*} [MeasurableSpace Ω] {μ : Measure Ω} [IsProbabilityMeasure μ] {B : ℝ≥0 → Ω → ℝ} (hB : IsBrownianReal B μ) {ε : ℝ} (hε : 0<ε) : Tendsto (fun n => ((actualOffspring P).markedCodeLaw (fun k => (CoreLabel.markLaw P k).toMeasure) n).real {x | ∃ v : Fin (2*n+1), ε*Real.sqrt ((2*n+1:ℕ):ℝ) < |markedSpineSum coreIncrement x.1 v.isLt.le x.2- metricMean P*height x.1.val v.val|}) atTop (𝓝 0) := …Mentions: OAI.FKCRT.Inventory.Parameters, OAI.FKCRT.Inventory.actualOffspring, OAI.FKCRT.Inventory.CoreLabel.markLaw, OAI.FKCRT.Inventory.coreIncrement, OAI.FKCRT.Inventory.metricMean
- lemma
OAI.FKCRT.Inventory.vertex_perm_applyline 121 - lemma
OAI.FKCRT.Inventory.StackMatching.reachable_firstline 124 - theorem
OAI.FKCRT.Inventory.StackMatching.connectedline 137Source documentation
A genuine successful matching's cyclic tour connects its actual rotation vertices by original edges; disconnected-distance default values never enter any isolated-core metric.
theorem StackMatching.connected [Fintype α] {w : α→TypedLetter} {l : List α} (M : StackMatching w l) (hn : l.Nodup) (hall : ∀ x,x∈l) (hne : l≠[]) : (dartGraph M.mate (l.formPerm*turns M.first)).Connected := by …Mentions: OAI.FKCRT.Inventory.TypedLetter, OAI.FKCRT.Inventory.StackMatching
- lemma
OAI.FKCRT.Inventory.Core.graph_connectedline 166 - lemma
OAI.FKCRT.Inventory.Core.distance_eq_natline 173 - lemma
OAI.FKCRT.Inventory.StackMatching.distance_commline 189 - theorem
OAI.FKCRT.Inventory.StackMatching.core_distance_eqline 195Source documentation
Fix one canonical isolated core matching; deleting all its successful corner intervals gives its distances simultaneously at every pair of darts.
theorem StackMatching.core_distance_eq {w : α→TypedLetter} (l : List (α×List α)) (M : StackMatching w (dartInsert l)) (hn : (dartInsert l).Nodup) (he : ∀ c∈l,stackTypedRun (c.2.map w) []=some []) (D : StackMatching w (l.map Prod.fst)) (x y : α) (hx : x∈l.map Prod.fst) (hy : y∈l.map Prod.fst) : M.distance x y=D.distance x y := by …Mentions: OAI.FKCRT.Inventory.TypedLetter, OAI.FKCRT.Inventory.StackMatching, OAI.FKCRT.Inventory.dartInsert, OAI.FKCRT.Inventory.stackTypedRun, OAI.FKCRT.Inventory.D
- theorem
OAI.FKCRT.Inventory.StackMatching.interval_distance_sumline 207Source documentation
Exact gate additivity in the actual full graph with the inserted component replaced only by its genuine isolated matching.
theorem StackMatching.interval_distance_sum {w : α→TypedLetter} (u L z : List α) (a b : α) (R : List α) (M : StackMatching w (u++((a::L)++z))) (hn : (u++((a::L)++z)).Nodup) (hv : stackTypedRun ((a::L).map w) []=some []) (hcomp : z++u=b::R) (D : StackMatching w (a::L)) (x y : α) (hx : x∈a::L) (hy : y∉a::L) : M.distance y x=M.distance y b+D.distance a x := by …Mentions: OAI.FKCRT.Inventory.TypedLetter, OAI.FKCRT.Inventory.StackMatching, OAI.FKCRT.Inventory.stackTypedRun, OAI.FKCRT.Inventory.StackMatching.map, OAI.FKCRT.Inventory.D
- theorem
OAI.FKCRT.Inventory.StackMatching.corner_distance_sumline 227Source documentation
One recursive step of the source pole-distance identity, with literal core and child darts and all other children still present.
theorem StackMatching.corner_distance_sum {w : α→TypedLetter} (l : List (α×List α)) (M : StackMatching w (dartInsert l)) (hn : (dartInsert l).Nodup) (he : ∀ c∈l,stackTypedRun (c.2.map w) []=some []) (D : StackMatching w (l.map Prod.fst)) (u L z : List α) (a b : α) (R : List α) (hword : dartInsert l=u++((a::L)++z)) (hv : stackTypedRun ((a::L).map w) []=some []) (hcomp : z++u=b::R) (Q : StackMatching w (a::L)) (x r : α) (hx : x∈a::L) (hr : r∈l.map Prod.fst) (hrv : r∉a::L) (hb : b∈l.map Prod.fst) : M.distance r x=D.distance r b+Q.distance a x := by …Mentions: OAI.FKCRT.Inventory.TypedLetter, OAI.FKCRT.Inventory.StackMatching, OAI.FKCRT.Inventory.dartInsert, OAI.FKCRT.Inventory.stackTypedRun, OAI.FKCRT.Inventory.D, OAI.FKCRT.Inventory.StackMatching.map
- abbrev
OAI.FKCRT.Inventory.oneLinkCoreline 258 - def
OAI.FKCRT.Inventory.oneLinkMatchingline 260 - lemma
OAI.FKCRT.Inventory.oneLink_rotationline 269 - lemma
OAI.FKCRT.Inventory.oneLink_mateline 275 - lemma
OAI.FKCRT.Inventory.oneLink_incrementline 279 - lemma
OAI.FKCRT.Inventory.coreIncrement_oneLinkline 295 - lemma
OAI.FKCRT.Inventory.coreIncrement_mean_posline 301 - theorem
OAI.FKCRT.Inventory.metricMean_posline 322Source documentation
Strict positivity follows from the positive-mass one-link block and its nontrivial corner, not from an assumed metric scaling constant.
theorem metricMean_pos (P : Parameters) : 0 < metricMean P := by …
Mentions: OAI.FKCRT.Inventory.Parameters, OAI.FKCRT.Inventory.metricMean
- def
OAI.FKCRT.Inventory.CoreTree.Dartline 346Source documentation
Literal darts of the recursively substituted word; no quotient identifies any darts of distinct blocks.
def Dart : CoreTree → Type | .leaf => Empty | .branch c ts => Fin c.val.length ⊕ (Σ i : Fin c.val.length, Dart (ts i))
Mentions: OAI.FKCRT.Inventory.CoreTree
- instance
OAI.FKCRT.Inventory.CoreTree.(instance at line 350)line 350 - instance
OAI.FKCRT.Inventory.CoreTree.(instance at line 357)line 357 - def
OAI.FKCRT.Inventory.CoreTree.dartLabelline 359 - def
OAI.FKCRT.Inventory.CoreTree.childDartline 364 - def
OAI.FKCRT.Inventory.CoreTree.coreDartline 367 - lemma
OAI.FKCRT.Inventory.CoreTree.childDart_injectiveline 370 - lemma
OAI.FKCRT.Inventory.CoreTree.coreDart_injectiveline 375 - def
OAI.FKCRT.Inventory.CoreTree.dartsline 378 - def
OAI.FKCRT.Inventory.CoreTree.dartCornersline 383 - lemma
OAI.FKCRT.Inventory.CoreTree.darts_branchline 387 - lemma
OAI.FKCRT.Inventory.CoreTree.darts_wordline 391 - lemma
OAI.FKCRT.Inventory.CoreTree.darts_memline 401 - lemma
OAI.FKCRT.Inventory.CoreTree.darts_nodupline 412 - def
OAI.FKCRT.Inventory.CoreTree.matchingline 437 - lemma
OAI.FKCRT.Inventory.CoreTree.child_emptyline 440 - lemma
OAI.FKCRT.Inventory.CoreTree.core_dartsline 446 - theorem
OAI.FKCRT.Inventory.CoreTree.core_distanceline 451Source documentation
Exact original graph metric on core darts before/after all substitutions.
theorem core_distance (c : Core) (ts : Fin c.val.length→ CoreTree) (i j : Fin c.val.length) : (branch c ts).matching.distance (coreDart ts i) (coreDart ts j)=c.matching.distance i j := by …Mentions: OAI.FKCRT.Inventory.Core, OAI.FKCRT.Inventory.CoreTree, OAI.FKCRT.Inventory.CoreTree.coreDart
- lemma
OAI.FKCRT.Inventory.dartInsert_appendline 483 - theorem
OAI.FKCRT.Inventory.corner_complement_headline 489Source documentation
The entry dart following a child interval is exactly the next isolated core dart in cyclic order, including the last-slot wrap to the root.
theorem corner_complement_head (A B : List (α×List α)) (d : α) (v : List α) (hn : (dartInsert (A++(d,v)::B)).Nodup) : ∃ R,dartInsert B++(dartInsert A++[d])= ((A++(d,v)::B).map Prod.fst).formPerm d::R := by …Mentions: OAI.FKCRT.Inventory.dartInsert
- theorem
OAI.FKCRT.Inventory.StackMatching.selected_corner_distanceline 520Source documentation
The exact selected-slot gate formula, with the cyclic successor computed in the original isolated core order.
theorem StackMatching.selected_corner_distance {w : α→TypedLetter} (A B : List (α×List α)) (d a : α) (L : List α) (M : StackMatching w (dartInsert (A++(d,a::L)::B))) (hn : (dartInsert (A++(d,a::L)::B)).Nodup) (he : ∀ p∈A++(d,a::L)::B,stackTypedRun (p.2.map w) []=some []) (D : StackMatching w ((A++(d,a::L)::B).map Prod.fst)) (Q : StackMatching w (a::L)) (r x : α) (hr : r∈(A++(d,a::L)::B).map Prod.fst) (hrv : r∉a::L) (hx : x∈a::L) : M.distance r x=D.distance r (((A++(d,a::L)::B).map Prod.fst).formPerm d)+Q.distance a x := by …Mentions: OAI.FKCRT.Inventory.TypedLetter, OAI.FKCRT.Inventory.StackMatching, OAI.FKCRT.Inventory.dartInsert, OAI.FKCRT.Inventory.stackTypedRun, OAI.FKCRT.Inventory.D, OAI.FKCRT.Inventory.StackMatching.map
- def
OAI.FKCRT.Inventory.CoreTree.nextSlotline 546 - lemma
OAI.FKCRT.Inventory.CoreTree.core_nextline 549 - theorem
OAI.FKCRT.Inventory.CoreTree.child_distance_sumline 555Source documentation
Exact all-edge ancestor step for arbitrary literal child darts.
theorem child_distance_sum (c : Core) (ts : Fin c.val.length → CoreTree) (i r : Fin c.val.length) (a x : (ts i).Dart) (L : List (ts i).Dart) (hhead : (ts i).darts=a::L) : (branch c ts).matching.distance (coreDart ts r) (childDart ts i x)= c.matching.distance r (nextSlot c i)+(ts i).matching.distance a x := by …Mentions: OAI.FKCRT.Inventory.Core, OAI.FKCRT.Inventory.CoreTree, OAI.FKCRT.Inventory.CoreTree.Dart, OAI.FKCRT.Inventory.CoreTree.darts, OAI.FKCRT.Inventory.CoreTree.coreDart, OAI.FKCRT.Inventory.CoreTree.childDart, OAI.FKCRT.Inventory.CoreTree.nextSlot