cfahlgren1/math / lean /OAI /Analysis /LipschitzHilbert /Packets /PacketDataDensityGeometry.lean
cfahlgren1's picture
download
raw
2.83 kB
import OAI.Analysis.LipschitzHilbert.Packets.SourceDensityPacketGeometry
import OAI.Analysis.LipschitzHilbert.Packets.PacketDataDensity
namespace OAI
/-! Actual center geometry for the density assignment. -/
noncomputable section
namespace LipschitzHilbert.PacketLatticeData
variable {N : ℕ} {κ : Type} {Label : Fin N → Type} {Item : ∀ j, Label j → Type}
[Fintype κ] [∀ j l, Fintype (Item j l)]
theorem assigned_packet_geometry_of_density {τ : Type*}
(P : PacketLatticeData N κ Label Item) (packets : Finset P.PacketIndex)
(assigned : P.PacketIndex → τ) (T : τ → SlopeBox) (oldSlope L a : ℝ)
(hL : 2 ≤ L) (ha : 0 ≤ a)
(hshort : ∀ q ∈ packets, P.length q.1 ≤ (T (assigned q)).length)
(hwidth : ∀ q ∈ packets, P.width ≤ (T (assigned q)).width)
(hrad : ∀ q ∈ packets, (T (assigned q)).radius
(P.actualX q.1 q.2.1 q.2.2,
P.actualZ q.1 q.2.1 q.2.2+oldSlope*P.actualX q.1 q.2.1 q.2.2) ≤ L^a) :
(∀ q ∈ packets,
|P.actualX q.1 q.2.1 q.2.2-(T (assigned q)).x|+P.length q.1 ≤
L^(a+1)*(T (assigned q)).length) ∧
(∀ q ∈ packets,
|P.actualZ q.1 q.2.1 q.2.2+(oldSlope-(T (assigned q)).slope)*
P.actualX q.1 q.2.1 q.2.2-
((T (assigned q)).y-(T (assigned q)).slope*(T (assigned q)).x)|+P.width ≤
L^(a+1)*(T (assigned q)).width) := by
have hL1 : 1 ≤ L := by linarith
have hLp : 0 < L := by linarith
have hp : 1 ≤ L^a := Real.one_le_rpow hL1 ha
have hpow : L^a+1 ≤ L^(a+1) := by
rw [Real.rpow_add hLp,Real.rpow_one]
nlinarith [mul_le_mul_of_nonneg_left hL (Real.rpow_nonneg hLp.le a)]
constructor
· intro q hq
have hx := ((T (assigned q)).coordinates_of_radius_le (hrad q hq)).1
change |P.actualX q.1 q.2.1 q.2.2-(T (assigned q)).x| ≤
L^a*(T (assigned q)).length at hx
have hh := mul_le_mul_of_nonneg_right hpow (T (assigned q)).length_pos.le
linarith [hshort q hq]
· intro q hq
have hy := ((T (assigned q)).coordinates_of_radius_le (hrad q hq)).2
have heq :
(P.actualZ q.1 q.2.1 q.2.2+oldSlope*P.actualX q.1 q.2.1 q.2.2-
(T (assigned q)).y)-(T (assigned q)).slope*
(P.actualX q.1 q.2.1 q.2.2-(T (assigned q)).x) =
P.actualZ q.1 q.2.1 q.2.2+(oldSlope-(T (assigned q)).slope)*
P.actualX q.1 q.2.1 q.2.2-
((T (assigned q)).y-(T (assigned q)).slope*(T (assigned q)).x) := by ring
change |(P.actualZ q.1 q.2.1 q.2.2+oldSlope*P.actualX q.1 q.2.1 q.2.2-
(T (assigned q)).y)-(T (assigned q)).slope*
(P.actualX q.1 q.2.1 q.2.2-(T (assigned q)).x)| ≤ L^a*(T (assigned q)).width at hy
rw [heq] at hy
have hh := mul_le_mul_of_nonneg_right hpow (T (assigned q)).width_pos.le
linarith [hwidth q hq]
end LipschitzHilbert.PacketLatticeData
end
end OAI

Xet Storage Details

Size:
2.83 kB
·
Xet hash:
b47a5c9e185d633edd884128e123a37b9771e6fa3e92c8c9ac184fbea9b478a7

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