File size: 4,903 Bytes
4a56cd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 | import Mathlib
import OAI.GroupTheory.SimpleAmenable.PolygonGeometry.PolygonArea
import OAI.GroupTheory.SimpleAmenable.PolygonGeometry.PolygonGridComparison
namespace OAI
section
section
open scoped symmDiff
namespace SimpleAmenable
open scoped commutatorElement
open scoped commutatorElement
section PolygonTrackArea
open Classical Set MeasureTheory
namespace PolygonGrid
noncomputable def trackUnion {m : β} (S : Fin m β Set (βΓβ)) : Set PlaneTracks :=
βi, {i.val} ΓΛ’ S i
@[simp] theorem mem_trackUnion {m : β} (S : Fin m β Set (βΓβ)) (i : Fin m) (x : βΓβ) :
(i.val,x)βtrackUnion S β xβS i := by
constructor
Β· intro h
obtain β¨j,hj,hxβ© := Set.mem_iUnion.mp h
have he : i=j := Fin.ext hj
simpa only [βhe] using hx
Β· intro hx
exact Set.mem_iUnion.mpr β¨i,rfl,hxβ©
theorem trackUnion_mono {m : β} {S T : Fin m β Set (βΓβ)} (h : βi,S iβT i) :
trackUnion SβtrackUnion T := by
intro p hp
obtain β¨i,hi,hpβ© := Set.mem_iUnion.mp hp
exact Set.mem_iUnion.mpr β¨i,hi,h i hpβ©
theorem trackUnion_region {m : β} {S : Fin m β Set (βΓβ)}
(h : βi,S iβPolygonArea.square) : trackUnion Sβregion m := by
intro p hp
obtain β¨i,hi,hpβ© := Set.mem_iUnion.mp hp
exact β¨hi βΈ i.isLt,h i hpβ©
@[simp] theorem volume_trackUnion {m : β} (S : Fin m β Set (βΓβ))
(hS : βi,MeasurableSet (S i)) : ΞΌ (trackUnion S)=βi,volume (S i) := by
have hdis : Pairwise (fun i j : Fin m => Disjoint ({i.val}ΓΛ’ S i) ({j.val}ΓΛ’ S j)) := by
intro i j hij
apply Set.disjoint_left.mpr
rintro p β¨hi,-β© β¨hj,-β©
exact hij (Fin.ext (hi.symm.trans hj))
rw [trackUnion,measure_iUnion hdis (fun i => (measurableSet_singleton _).prod (hS i))]
simp only [ΞΌ,Measure.prod_prod,Measure.count_singleton,one_mul,tsum_fintype]
rfl
theorem bank_representative {a m : β} (U : Fin m β polygonAlgebra a) :
β S : Set PlaneTracks, Sβregion m β§
(βi : Fin m,βx : GenericSquare a,(i.val,x.val)βS β xβ(U i).val) β§
ΞΌ (closure S)=βi,PolygonArea.area (U i) β§
ΞΌ (interior S)=βi,PolygonArea.area (U i) := by
choose R hR hm hn he using fun i => PolygonArea.representative (U i).property
have hmR : βi,MeasurableSet (R i) := hm
have harea (i : Fin m) : volume (R i)=PolygonArea.area (U i) :=
(PolygonArea.area_eq_rep (U i) (hR i) (he i)).symm
have hvol : ΞΌ (trackUnion R)=βi,PolygonArea.area (U i) := by
rw [volume_trackUnion R hmR]
exact Finset.sum_congr rfl (fun i _ => harea i)
have hclosure : closure (trackUnion R)βtrackUnion (fun i => closure (R i)) := by
apply (isClosed_iUnion_of_finite (fun i => isClosed_singleton.prod isClosed_closure)).closure_subset_iff.mpr
exact trackUnion_mono (fun _ => subset_closure)
have hinterior : trackUnion (fun i => interior (R i))βinterior (trackUnion R) := by
apply interior_maximal (trackUnion_mono (fun _ => interior_subset))
exact isOpen_iUnion (fun i => (isOpen_discrete _).prod isOpen_interior)
have hvclosure : ΞΌ (trackUnion (fun i => closure (R i)))=βi,PolygonArea.area (U i) := by
rw [volume_trackUnion _ (fun _ => isClosed_closure.measurableSet)]
apply Finset.sum_congr rfl
intro i _
rw [measure_congr (PolygonArea.closure_ae_eq (hn i)),harea]
have hvinterior : ΞΌ (trackUnion (fun i => interior (R i)))=βi,PolygonArea.area (U i) := by
rw [volume_trackUnion _ (fun _ => isOpen_interior.measurableSet)]
apply Finset.sum_congr rfl
intro i _
rw [measure_congr (PolygonArea.interior_ae_eq (hn i)),harea]
refine β¨trackUnion R,trackUnion_region hR,?_,?_,?_β©
Β· intro i x
exact (mem_trackUnion R i x.val).trans (he i x).symm
Β· exact le_antisymm ((measure_mono hclosure).trans_eq hvclosure)
(hvol.symm.trans_le (measure_mono subset_closure))
Β· exact le_antisymm ((measure_mono interior_subset).trans_eq hvol)
(hvinterior.symm.trans_le (measure_mono hinterior))
theorem polygon_grid_comparison {a m : β} (U V : Fin m β polygonAlgebra a)
(h : (βi,PolygonArea.area (U i)) < βi,PolygonArea.area (V i)) :
β (S T : Set PlaneTracks) (Ξ΄ : β), 0 < Ξ΄ β§
(βi : Fin m,βx : GenericSquare a,(i.val,x.val)βS β xβ(U i).val) β§
(βi : Fin m,βx : GenericSquare a,(i.val,x.val)βT β xβ(V i).val) β§
βΞ΅ : β, 0 < Ξ΅ β Ξ΅ < Ξ΄ β
β (N : β) (I J : Finset (Index m N)), Nonempty (I βͺ J) β§
SββiβI,cell Ξ΅ i β§ βjβJ,cell Ξ΅ jβT := by
obtain β¨S,hS,heS,hcS,hiSβ© := bank_representative U
obtain β¨T,hT,heT,hcT,hiTβ© := bank_representative V
have hh : ΞΌ (closure S)<ΞΌ (interior T) := by rwa [hcS,hiT]
obtain β¨Ξ΄,hΞ΄,hmatchβ© := strict_grid_comparison hS hT hh
exact β¨S,T,Ξ΄,hΞ΄,heS,heT,hmatchβ©
end PolygonGrid
end PolygonTrackArea
end SimpleAmenable
end
end
end OAI
|