cfahlgren1/math / lean /OAI /Analysis /LipschitzHilbert /Geometry /SourceSizeSelectionOrder.lean
cfahlgren1's picture
download
raw
1.9 kB
import OAI.Analysis.LipschitzHilbert.Trees.SourceOrdinarySizeStopping
namespace OAI
/-! The near-extremal selection rule orders every later failing test.
Monotonicity uses the actual decreasing packet sets, not a separate order assumption. -/
noncomputable section
namespace LipschitzHilbert.SourceLabeledLattice.SizeStoppingRun
open SourceLabeledLattice
attribute [local instance] Classical.decEq
variable {N : ℕ} {κ : Type} {Label : Fin N → Type} {Item : ∀ j, Label j → Type}
[Fintype κ] [∀ j l, Fintype (Item j l)]
variable {P : SourceLabeledLattice N κ Label Item} {negative : Bool}
{w cb tau sigma epsilon A : ℝ} {cell : ∀ j, P.labels j → ℤ} {grid : ℤ}
{c : ∀ j (l : P.labels j), Item j l → EuclideanSpace ℂ κ}
{initial remaining : Finset P.PacketIndex} {tops : List SlopeBox}
theorem selected_failing
(h : P.SizeStoppingRun negative w cb tau sigma epsilon A cell grid c initial tops remaining) :
∀ T∈tops, P.sizeTestFails negative w cb tau sigma cell grid c initial T := by
induction h with
| stop => simp
| step R T tops remaining hT _ _ ih =>
intro U hU
rcases List.mem_cons.mp hU with rfl | hU
· exact hT
· exact P.sizeTestFails_mono negative w cb tau sigma cell grid c Finset.sdiff_subset U (ih U hU)
theorem direction_order
(h : P.SizeStoppingRun negative w cb tau sigma epsilon A cell grid c initial tops remaining) :
tops.Pairwise (fun T U => sizeDirection negative T.slope<sizeDirection negative U.slope+epsilon) := by
induction h with
| stop => exact List.Pairwise.nil
| step R T tops remaining _ hfirst htail ih =>
apply List.pairwise_cons.mpr
refine ⟨?_,ih⟩
intro U hU
exact hfirst U (P.sizeTestFails_mono negative w cb tau sigma cell grid c Finset.sdiff_subset U
(htail.selected_failing U hU))
end LipschitzHilbert.SourceLabeledLattice.SizeStoppingRun
end
end OAI

Xet Storage Details

Size:
1.9 kB
·
Xet hash:
d070b41f3a105d864258928239f0c28c540647fb087917cd019a51b6470e0925

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.