cfahlgren1/math / lean /OAI /Analysis /LipschitzHilbert /Trees /SourceAssignedTopPhysical.lean
cfahlgren1's picture
download
raw
6.38 kB
import OAI.Analysis.LipschitzHilbert.Trees.SourceAssignedTopFamily
import OAI.Analysis.LipschitzHilbert.Trees.SourcePhysicalOffchildGrouping
namespace OAI
/-! The common-type assigned top families have exactly the original
physical bands, including original selector coefficients and top masks. -/
noncomputable section
open scoped BigOperators
namespace LipschitzHilbert.SourceLabeledLattice
attribute [local instance] Classical.propDecidable
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)
(packets : Finset P.PacketIndex) (assigned : P.PacketIndex → τ)
(alt : ∀ j (l : P.labels j), Item j l → κ → SchwartzMap (ℝ×ℝ) ℂ)
(hAlt : ∀ j l u k, planarProfileConstant (alt j l u k) (2*P.order) ≤ P.profileBound)
def assignedTopAlternate (top : τ) (j : Fin N)
(l : (P.assignedTopFamily packets assigned top).labels j)
(u : P.AssignedTopItem packets assigned j l) (k : κ) : SchwartzMap (ℝ×ℝ) ℂ :=
alt j l.val.2 u.val k
include hAlt in
theorem assignedTopAlternate_bound (top : τ) (j : Fin N)
(l : (P.assignedTopFamily packets assigned top).labels j)
(u : P.AssignedTopItem packets assigned j l) (k : κ) :
planarProfileConstant (P.assignedTopAlternate packets assigned alt top j l u k)
(2*(P.assignedTopFamily packets assigned top).order) ≤
(P.assignedTopFamily packets assigned top).profileBound := hAlt j l.val.2 u.val k
theorem sum_assignedTopPackets_filter {E : Type*} [AddCommMonoid E]
(top : τ) (f : P.PacketIndex → E) (keep : P.PacketIndex → Prop) :
(∑ q ∈ Finset.univ.filter (fun q : (P.assignedTopFamily packets assigned top).PacketIndex =>
keep ⟨q.1,⟨q.2.1.val.2,q.2.2.val⟩⟩),
f ⟨q.1,⟨q.2.1.val.2,q.2.2.val⟩⟩) =
∑ q ∈ (packets.filter (fun q => assigned q = top)).filter keep, f q := by
simpa only [Finset.sum_filter] using
P.sum_assignedTopPackets packets assigned top (fun q => if keep q then f q else 0)
theorem assignedTopFamily_physicalMaskedValue (top : τ) (t : ℝ)
(b : ∀ j, P.labels j → κ → ℝ → ℂ) (v : ℝ×ℝ → ℝ)
(f : ℝ×ℝ → EuclideanSpace ℂ κ)
(T : ∀ j (l : P.labels j), Item j l → SlopeBox) (L A : ℝ) (z : ℝ×ℝ)
(q : (P.assignedTopFamily packets assigned top).PacketIndex) :
(P.assignedTopFamily packets assigned top).physicalMaskedValue
(P.assignedTopAlternate packets assigned alt top)
(P.assignedTopAlternate_bound packets assigned alt hAlt top) t
(fun j l => b j l.val.2) v f (fun j l u => T j l.val.2 u.val) L A z q =
P.physicalMaskedValue alt hAlt t b v f T L A z
⟨q.1,⟨q.2.1.val.2,q.2.2.val⟩⟩ := rfl
theorem assignedTopFamily_physicalMaskedBand (top : τ) (t : ℝ)
(b : ∀ j, P.labels j → κ → ℝ → ℂ) (v : ℝ×ℝ → ℝ)
(f : ℝ×ℝ → EuclideanSpace ℂ κ)
(T : ∀ j (l : P.labels j), Item j l → SlopeBox) (L A : ℝ) (z : ℝ×ℝ) (j : Fin N) :
(P.assignedTopFamily packets assigned top).physicalMaskedBand
(P.assignedTopAlternate packets assigned alt top)
(P.assignedTopAlternate_bound packets assigned alt hAlt top) t
(fun j l => b j l.val.2) v f (fun j l u => T j l.val.2 u.val)
L A (z.2-t*z.1) j z.1 =
P.assignedPhysicalBands alt hAlt t b v f T L A packets assigned z (top,j) := by
let Q := P.assignedTopFamily packets assigned top
have hpoint : (z.1,z.2-t*z.1+t*z.1) = z := by
apply Prod.ext
· rfl
· dsimp
ring
have hband := Q.physicalMaskedValue_length_sum
(P.assignedTopAlternate packets assigned alt top)
(P.assignedTopAlternate_bound packets assigned alt hAlt top) t
(fun j l => b j l.val.2) v f (fun j l u => T j l.val.2 u.val) L A
(z.2-t*z.1) z.1 j
rw [hpoint] at hband
apply hband.symm.trans
have hs := P.sum_assignedTopPackets_filter packets assigned top
(P.physicalMaskedValue alt hAlt t b v f T L A z) (fun q => q.1 = j)
calc
_ = ∑ q ∈ Finset.univ.filter (fun q : Q.PacketIndex => q.1 = j),
P.physicalMaskedValue alt hAlt t b v f T L A z
⟨q.1,⟨q.2.1.val.2,q.2.2.val⟩⟩ := by
apply Finset.sum_congr rfl
intro q _
exact P.assignedTopFamily_physicalMaskedValue packets assigned alt hAlt top t b v f T L A z q
_ = ∑ q ∈ (packets.filter (fun q => assigned q = top)).filter (fun q => q.1 = j),
P.physicalMaskedValue alt hAlt t b v f T L A z q := by
convert hs using 1 <;> apply Finset.sum_congr
· ext q
simp
· intro q _
rfl
· ext q
simp
· intro q _
rfl
_ = _ := by
rw [P.assignedPhysicalBands_eq alt hAlt t b v f T L A packets assigned z (top,j)]
apply Finset.sum_congr
· ext q
simp only [Finset.mem_filter,Prod.mk.injEq,and_assoc]
· intro q _
rfl
/-- The mask on an assigned family is its single assigned top mask. -/
theorem assignedTopFamily_single_mask (top : τ) (T : τ → SlopeBox) :
(fun j (l : (P.assignedTopFamily packets assigned top).labels j)
(u : P.AssignedTopItem packets assigned j l) =>
T (assigned ⟨j,⟨l.val.2,u.val⟩⟩)) = fun _ _ _ => T top := by
funext j l u
have ht : l.val.1 = top := Finset.mem_singleton.mp (Finset.mem_product.mp l.property).1
rw [u.property.2,ht]
theorem assignedTopFamily_topMaskBand (top : τ) (t : ℝ)
(b : ∀ j, P.labels j → κ → ℝ → ℂ) (v : ℝ×ℝ → ℝ)
(f : ℝ×ℝ → EuclideanSpace ℂ κ) (T : τ → SlopeBox)
(L A : ℝ) (z : ℝ×ℝ) (j : Fin N) :
(P.assignedTopFamily packets assigned top).physicalMaskedBand
(P.assignedTopAlternate packets assigned alt top)
(P.assignedTopAlternate_bound packets assigned alt hAlt top) t
(fun j l => b j l.val.2) v f (fun _ _ _ => T top) L A (z.2-t*z.1) j z.1 =
P.assignedPhysicalBands alt hAlt t b v f
(fun j l u => T (assigned ⟨j,⟨l,u⟩⟩)) L A packets assigned z (top,j) := by
have h := P.assignedTopFamily_physicalMaskedBand packets assigned alt hAlt top t b v f
(fun j l u => T (assigned ⟨j,⟨l,u⟩⟩)) L A z j
rw [P.assignedTopFamily_single_mask packets assigned top T] at h
exact h
end LipschitzHilbert.SourceLabeledLattice
end
end OAI

Xet Storage Details

Size:
6.38 kB
·
Xet hash:
c7818ddcff6f69cfd331ff3f0bac3ea27f95b397d58c6361a71cdff7b84cc11b

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