OAI/Analysis/ForestSpace/FiniteGeometry.lean
45 declarations, 0 contain sorry, 0 declared as axioms
- def
OAI.ForestSpace.beforeline 17Source documentation
The ancestral interval [a,g), ending immediately before g along its path.
noncomputable def before (a g : V) : Finset V := by …
- theorem
OAI.ForestSpace.mem_beforeline 21 - theorem
OAI.ForestSpace.isSegment_beforeline 25 - theorem
OAI.ForestSpace.before_monoline 33 - theorem
OAI.ForestSpace.before_subset_headline 37 - theorem
OAI.ForestSpace.IsSegment.head_eq_beforeline 42 - theorem
OAI.ForestSpace.IsSegment.sdiff_beforeline 65Source documentation
Removing a terminal suffix from any segment leaves a segment.
theorem IsSegment.sdiff_before {S : Finset V} (hS : IsSegment S) {a b g : V} (hSa : S = before a g) : IsSegment (S \ before b g) := by …Mentions: OAI.ForestSpace.IsSegment, OAI.ForestSpace.before
- def
OAI.ForestSpace.alongline 81Source documentation
The closed ancestral interval [g,w].
noncomputable def along (g w : V) : Finset V := …
- theorem
OAI.ForestSpace.mem_alongline 84 - theorem
OAI.ForestSpace.isSegment_alongline 87 - theorem
OAI.ForestSpace.IsSegment.tail_eq_alongline 94 - def
OAI.ForestSpace.massline 112Source documentation
Maximal initial-segment mass of a test inside the cone at g.
noncomputable def mass (k : V → ℝ) (g : V) : ℝ := …
- theorem
OAI.ForestSpace.abs_segSum_along_leline 115 - theorem
OAI.ForestSpace.mass_nonnegline 119 - theorem
OAI.ForestSpace.mass_attainedline 122 - theorem
OAI.ForestSpace.gate_mass_boundline 128 - def
OAI.ForestSpace.gateWeightline 144Source documentation
Square mass at gates, and zero elsewhere.
noncomputable def gateWeight (H : Set V) (k : V → ℝ) (g : V) : ℝ := …
- theorem
OAI.ForestSpace.gateWeight_nonnegline 147 - theorem
OAI.ForestSpace.gateWeight_sum_leline 151 - theorem
OAI.ForestSpace.disjoint_sum_leline 161 - theorem
OAI.ForestSpace.gateWeight_family_leline 167 - theorem
OAI.ForestSpace.sum_gate_supportedline 175Source documentation
A segment contains at most one coordinate of a gate-supported vector.
theorem sum_gate_supported [Fintype V] [PartialOrder V] {H : Set V} {c : V → ℝ} (hc : ∀ v, ¬ Gate H v → c v = 0) {S : Finset V} (hS : IsSegment S) {g : V} (hg : Gate H g) (hgs : g ∈ S) : segSum c S = c g := by …Mentions: OAI.ForestSpace.Gate, OAI.ForestSpace.IsSegment, OAI.ForestSpace.segSum
- def
OAI.ForestSpace.correctionline 185 - theorem
OAI.ForestSpace.correction_supportedline 188 - theorem
OAI.ForestSpace.correction_sumline 194 - theorem
OAI.ForestSpace.correction_segment_sqline 200 - theorem
OAI.ForestSpace.correction_testBoundline 224 - theorem
OAI.ForestSpace.tail_sum_le_massline 230 - def
OAI.ForestSpace.largeStartsline 240Source documentation
Candidate starts of suffixes whose head sum reaches the gate threshold.
noncomputable def largeStarts (f k : V → ℝ) (s : ℝ) (g : V) : Finset V := …
- theorem
OAI.ForestSpace.mem_largeStartsline 243 - def
OAI.ForestSpace.selectedStartline 247 - theorem
OAI.ForestSpace.selectedStart_specline 251 - def
OAI.ForestSpace.selectedHeadline 256 - theorem
OAI.ForestSpace.selectedHead_segmentline 259 - theorem
OAI.ForestSpace.selectedHead_subsetline 266 - theorem
OAI.ForestSpace.selectedHead_largeline 275 - theorem
OAI.ForestSpace.sdiff_selectedHead_segmentline 282 - def
OAI.ForestSpace.oppositeSignline 294Source documentation
Opposite sign for the selected head sum; at zero either sign is harmless.
def oppositeSign (r : ℝ) : ℝ := if r < 0 then 1 else -1
- theorem
OAI.ForestSpace.oppositeSign_sqline 296 - theorem
OAI.ForestSpace.abs_oppositeSignline 300 - theorem
OAI.ForestSpace.oppositeSign_crossline 304 - theorem
OAI.ForestSpace.oppositeSign_tail_absline 312 - theorem
OAI.ForestSpace.small_cross_boundline 319 - theorem
OAI.ForestSpace.cross_signline 328 - theorem
OAI.ForestSpace.large_cross_boundline 341Source documentation
A large positive cross term is paid for by splitting off the selected suffix.
theorem large_cross_bound {a b r s m : ℝ} (hs : 0 ≤ s) (hm : 0 ≤ m) (hab : 0 < a * b) (hrb : r * b ≤ 0) (hr : 2 * s * m ≤ |r|) (hb : |b| ≤ 2 * m) : 2 * s * a * b ≤ (a - r) ^ 2 + r ^ 2 - a ^ 2 := by …