constructor
· intro h
obtain ⟨z,hc,hH,hd⟩ := (mem_domain seeds radius).mp h
exact Point.eq_of_coordinates z x hc hH ▸ hd
· intro h
exact (mem_domain seeds radius).mpr ⟨x,rfl,rfl,h⟩
intro H hH
have he := group_touched_band ASASB v hv x hρ hp i positive C hz hd
have hb :=Tiling.near_mem_band interpolationB.2.1 hρ hp hH
rw [←he,←i.1.narrow_eq] at hb
exact hb
Point.local_center x z (SecondaryCell.point _ _ _ _ hd)
(SecondaryCell.point_column _ _ _) (SecondaryCell.point_height _ _ _) hρ
(group_touched_envelope ASASB v hv x hρ hp i positive C hz hd) hz
Crossing the domain anywhere on the ambient small ball makes this actual
proposal identically old on that ball. Intrinsic paths are derived by height
padding, rather than silently identified with ambient paths.
lemmafamilySelection_scale {X : Type*} {k : ℕ} {c : ℝ} (hc : 0<c)
(old : X→ℝ) (F : Fin k →X→NamedValue) (x : X) :
familySelection (fun z => c*old z) (fun g z => scaleNamed c (F g z)) x=
scaleNamed c (familySelection old F x) :=by
noncomputabledefslot (a : Fin (S.count+1)) (j : Fin (Fintype.card (ActingG (fixedSample G o c (m := m)) a))) :
ActingG (fixedSample G o c (m := m)) a := (Fintype.equivFin _).symm j
noncomputabledefcoord (a : Fin (S.count+1)) (j : Fin (Fintype.card (ActingG (fixedSample G o c (m := m)) a))) :
CoordinateG:= (slot G o c (m := m) a j).val
lemmaflat_actingStep (hm : 0 < m) (w : OffsetsG m) (a : Fin (S.count+1))
(u : ActingG (fixedSample G o c (m := m)) a) :
actingStep G hm (flatSample G o c w) a u=
(G u.val.1).sampledStep (o a) u.val.2 u.property.2.2 hm (w u.val) := rfl
lemmacoord_index (a : Fin (S.count+1)) (j : Fin (Fintype.card (ActingG (fixedSample G o c (m := m)) a))) :
(G (coord G o c (m := m) a j).1).index=a := (slot G o c (m := m) a j).property.1
lemmaslot_band (a : Fin (S.count+1)) (j : Fin (Fintype.card (ActingG (fixedSample G o c (m := m)) a)))
(H : (S.chart a).band) : H.val∈(G (coord G o c (m := m) a j).1).data.band :=by
proof · 3
lines
change H.val∈(S.chart (G (coord G o c (m := m) a j).1).index).band
rw [coord_index]
exact H.property
lemmaselected_flat (hm : 0 < m) (w : OffsetsG m) (a : Fin (S.count+1))
(i : Fin (k+1)) (H : (S.chart a).band) :
((batch G hm (flatSample G o c w) a).selected i H).name=
(familySelection (funT : (S.chart a).band => ((S.chart a).comparison Group.lam Group.lam_bound (o a)).value i T)
(fun j T=> ((G (coord G o c (m := m) a j).1).sampledStep (o a) (coord G o c (m := m) a j).2
(slot G o c (m := m) a j).property.2.2 hm (w (coord G o c (m := m) a j))).fullNamed i
⟨T.val,slot_band G o c (m := m) a j T⟩) H).name :=by
proof · 6
lines
change (familySelection (funT : (S.chart a).band => kappaB*((S.chart a).comparison Group.lam Group.lam_bound (o a)).value i T)
(fun j T=> scaleNamed kappaB (((G (coord G o c (m := m) a j).1).sampledStep (o a) (coord G o c (m := m) a j).2
(slot G o c (m := m) a j).property.2.2 hm (w (coord G o c (m := m) a j))).fullNamed i
⟨T.val,slot_band G o c (m := m) a j T⟩)) H).name=_
rw [familySelection_scale (by norm_num [kappaB,a₂])]
rfl
lemmafamilySelection_congr_at {XY : Type*} {k : ℕ} (old : X→ℝ) (old' : Y→ℝ)
(F : Fin k →X→NamedValue) (F' : Fin k →Y→NamedValue)
(x : X) (y : Y) (ho : old x=old' y) (hF : ∀ g, F g x=F' g y) :
familySelection old F x=familySelection old' F' y :=by
proof · 5
lines
simp only [familySelection,maxSelection_eq_fold,List.map_ofFn,ho]
congr 2
funext g
dsimp only [Function.comp_apply]
rw [hF g]
noncomputabledefballFamily (hm : 0 < m) (j : SlotG o c a (m := m))
(w : ComponentSampleG (coord G o c (m := m) a j).1 (coord G o c (m := m) a j).2 m) (z : Group.Ball x (ρ := ρ)) : NamedValue:=
body · 2
lines
(G (coord G o c (m := m) a j).1).sampledOnBall (o a) (coord G o c (m := m) a j).2
(slot G o c (m := m) a j).property.2.2 hm x (ball_slot_band G o c (m := m) a x hBand j) w z
lemmaballOld_eq (j : SlotG o c a (m := m)) :
(G (coord G o c (m := m) a j).1).oldOnBall (o a) x (ball_slot_band G o c (m := m) a x hBand j)=ballOld o a x hBand :=by
proof · 9
lines
funext z
unfold Group.oldOnBall Group.comparison ballOld
simp only [Group.data]
have heval (b : Fin (S.count+1)) (hb : z.val.height∈(S.chart b).band) (he : b=a) :
((S.chart b).comparison Group.lam Group.lam_bound (o a)).value z.val.column ⟨z.val.height,hb⟩ =
((S.chart a).comparison Group.lam Group.lam_bound (o a)).value z.val.column ⟨z.val.height,hBand z⟩ :=by
subst b
rfl
exact heval _ _ (coord_index G o c (m := m) a j)
lemmaselected_ball (hm : 0 < m) (w : OffsetsG m) (z : Group.Ball x (ρ := ρ)) :
((batch G hm (flatSample G o c w) a).selected z.val.column ⟨z.val.height,hBand z⟩).name=
(familySelection (ballOld o a x hBand) (fun j => ballFamily G o c a x hBand hm j (w (coord G o c (m := m) a j))) z).name :=by
proof · 6
lines
apply (selected_flat G o c hm w a z.val.column ⟨z.val.height,hBand z⟩).trans
apply congrArg NamedValue.name
refine familySelection_congr_at _ _ _ _ _ _ ?_ ?_
· rfl
· intro j
rfl
noncomputabledefwholeBallSlots : Finset (SlotG o c a (m := m)) :=Finset.univ.filter fun j =>
body · 2
lines
∀z : Group.Ball x (ρ := ρ), z.val.height∈SecondaryCell.domain
((G (coord G o c (m := m) a j).1).admittedSeeds (o a) (coord G o c (m := m) a j).2) R z.val.column
lemmapersistence_flat [SFinite μ] (hρ : 0≤ ρ) (hm : 0 < m)
(hsmall : 18*ρ ≤ (199/1000:ℝ)*R) (hr : ρ ≤ secondaryRadius)
(hOld : ∀ z, |ballOld o a x hBand (Group.ballCenter x hρ)-ballOld o a x hBand z| ≤ (secondaryK:ℝ)*ρ)
(hold : ∀z : Group.Ball x (ρ := ρ), S.name z.val.column z.val.height=a)
(hEnv : ∀j : SlotG o c a (m := m),
(∃z : Group.Ball x (ρ := ρ), z.val.height∈SecondaryCell.domain
((G (coord G o c (m := m) a j).1).admittedSeeds (o a) (coord G o c (m := m) a j).2) R z.val.column) →∀H, |H-x.height| ≤ ρ →H∈BandTrees.band narrow (G (coord G o c (m := m) a j).1).lower)
{B : ℕ} (hpack : (wholeBallSlots G o c a x (ρ := ρ) (m := m)).card ≤B) :
prob (funw : OffsetsG m =>∃z : Group.Ball x (ρ := ρ),
(result G hm (flatSample G o c w)).name z.val.column z.val.height≠
(result G hm (flatSample G o c w)).name x.column x.height) ≤
(1+B*secondaryN : ℕ)^2*secondaryTestLoss ρ m :=by
proof · 28
lines
classical
have hList (j : SlotG o c a (m := m)) :
∃L : LocalList (ballOld o a x hBand) (ballFamily G o c a x hBand hm j)
(Group.ballCenter x hρ) ((secondaryK:ℝ)*ρ) (secondaryTestLoss ρ m),
L.names.card ≤ secondaryN ∧ (j∉wholeBallSlots G o c a x (ρ := ρ) (m := m) →L.names={0}) :=byhave ho := hOld
rw [←ballOld_eq G o c (m := m) a x hBand j] at ho
have he := (G (coord G o c (m := m) a j).1).component_local_list (o a) (coord G o c (m := m) a j).2
(slot G o c (m := m) a j).property.2.2 hm x hρ (ball_slot_band G o c (m := m) a x hBand j)
hsmall hr ho (hEnv j)
erw [ballOld_eq G o c (m := m) a x hBand j] at he
obtain ⟨L,hN,hout⟩ := he
exact ⟨L,hN,fun hn => hout (by simpa only [wholeBallSlots,Finset.mem_filter,Finset.mem_univ,true_and] using hn)⟩
choose L hN hout using hList
have hprob :=LocalList.family_probability (D:=funu : CoordinateG=>ComponentSampleG u.1 u.2 m)
(coord G o c (m := m) a) (coord_injective G o c (m := m) a) (ballOld o a x hBand)
(ballFamily G o c a x hBand hm) (Group.ballCenter x hρ) (secondaryTestLoss_nonneg hρ m) hOld L
(wholeBallSlots G o c a x (ρ := ρ) (m := m)) (fun j _ => hN j)
(fun j hj => (hout j hj).le) hpack
apply (prob_mono (Q:=funw : OffsetsG m =>∃z : Group.Ball x (ρ := ρ),
(familySelection (ballOld o a x hBand) (fun j => ballFamily G o c a x hBand hm j (w (coord G o c (m := m) a j))) z).name≠
(familySelection (ballOld o a x hBand) (fun j => ballFamily G o c a x hBand hm j (w (coord G o c (m := m) a j))) (Group.ballCenter x hρ)).name) ?_).trans hprob
rintro w ⟨z,hz⟩
refine ⟨z,fun he => hz ?_⟩
apply (layer G hm (flatSample G o c w)).name_eq_of_selected a (hBand z) (hBand (Group.ballCenter x hρ))
(hold z) (hold (Group.ballCenter x hρ))
exact (selected_ball G o c a x hBand hm w z).trans
(he.trans (selected_ball G o c a x hBand hm w (Group.ballCenter x hρ)).symm)
lemmacomponent_eq_of_domain (positive : Bool) (CD : G.Component) (i : Fin (k+1)) (H : ℝ)
(hC : H∈SecondaryCell.domain (G.admittedSeeds positive C) R i)
(hD : H∈SecondaryCell.domain (G.admittedSeeds positive D) R i) : C=D:=by
proof · 10
lines
let x :=SecondaryCell.point _ _ _ _ hC
let y :=SecondaryCell.point _ _ _ _ hD
havehc : x.column=i :=SecondaryCell.point_column _ _ _
havehd : y.column=i :=SecondaryCell.point_column _ _ _
have h1 :=BandTrees.reachable_mem M narrow G.lower C x.reachable
have h2 :=BandTrees.reachable_mem M narrow G.lower D y.reachable
rw [hc] at h1
rw [hd] at h2
exact ((SimpleGraph.ConnectedComponent.mem_supp_iff C i).mp h1).symm.trans
((SimpleGraph.ConnectedComponent.mem_supp_iff D i).mp h2)
lemmacenterActs_card : (centerActs ASASB v hv b c omega a).card≤SurvivingGroups.packBound :=by
proof · 25
lines
letf : (centerActs ASASB v hv b c omega a) →HitsASASB v hv b c
(phaseD := phaseD) (phaseG := phaseG) :=fun u =>
⟨u.val.val.1, domain_touch ASASB v hv b c _ (omega.1 a) _ u.val.property.2.2
(Finset.mem_filter.mp u.property).2⟩
havehf : Function.Injective f :=by
intro u w he
have hi := congrArg Subtype.val he
change u.val.val.1=w.val.val.1 at hi
apply Subtype.ext
apply Subtype.ext
apply Sigma.ext hi
cases u with | mk u hu =>
cases w with | mk w hw =>
cases u with | mk u hu' =>
cases w with | mk w hw' =>
cases u with | mk i C=>
cases w with | mk j D=>
dsimp only at hi
subst j
apply heq_of_eq
exact (group ASASB v hv i).component_eq_of_domain (omega.1 a) CD c.column c.height
(Finset.mem_filter.mp hu).2 (Finset.mem_filter.mp hw).2have he :=Fintype.card_le_of_injective f hf
rw [Fintype.card_coe] at he
exact he.trans (touching_card_small ASASB v hv b c hc hρ hτ hp hn)
lemmawholeBallSlots_card (o : Fin (SB.count+1) →Bool)
(coins : GroupIndexASASB v hv (p := p) (phaseD := phaseD) (phaseG := phaseG) →Bool)
(a : Fin (SB.count+1)) {m : ℕ} {ρ : ℝ} (hρ : 0≤ ρ)
(hp : Tiling.Padded a₁ q x.height ρ) (hn : Tiling.Padded a₂ p x.height ρ) :
(wholeBallSlots (group ASASB v hv) o coins a x (ρ := ρ) (m := m)).card ≤SurvivingGroups.packBound :=by
proof · 25
lines
classical
letG:= group ASASB v hv (p := p) (phaseD := phaseD) (phaseG := phaseG)
letT:= wholeBallSlots G o coins a x (ρ := ρ) (m := m)
by_cases he : T.Nonempty
· obtain ⟨j,hj⟩ := he
have hd := (Finset.mem_filter.mp hj).2 (Group.ballCenter x hρ)
obtain ⟨z,hzc,hzh,hzband⟩ := center_point_of_domain ASASB v hv x (coord G o coins (m := m) a j).1
(o a) (coord G o coins (m := m) a j).2 (slot G o coins (m := m) a j).property.2.2 hd
let b := (coord G o coins (m := m) a j).1.1let omega := fixedSample G o coins (m := m)
letf : T→ centerActs ASASB v hv b z omega a :=fun t =>
⟨slot G o coins (m := m) a t.val,Finset.mem_filter.mpr ⟨Finset.mem_univ _,by
change z.height∈SecondaryCell.domain
((G (coord G o coins (m := m) a t.val).1).admittedSeeds (o a) (coord G o coins (m := m) a t.val).2) R z.column
rw [hzc,hzh]
exact (Finset.mem_filter.mp t.property).2 (Group.ballCenter x hρ)⟩⟩
havehf : Function.Injective f :=by
intro s t he
apply Subtype.ext
exact (Fintype.equivFin (ActingG omega a)).symm.injective (congrArg Subtype.val he)
have hh :=Fintype.card_le_of_injective f hf
rw [Fintype.card_coe,Fintype.card_coe] at hh
exact hh.trans (centerActs_card ASASB v hv b z hzband hρ hρ
(by simpa only [hzh] using hp) (by simpa only [hzh] using hn) omega a)
· exact (Finset.card_eq_zero.mpr (Finset.not_nonempty_iff_eq_empty.mp he)).le.trans (Nat.zero_le _)