File size: 7,117 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 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 | import OAI.Analysis.Fourier.WavePackets.QuaternionPadding
import OAI.Analysis.PDE.Concentration.Packet.PeriodBasis
import Mathlib.LinearAlgebra.Basis.Prod
noncomputable section
namespace OAI.Analysis.Fourier.WavePackets
open Set Module OAI.Analysis.PDE.Dirichlet OAI.Analysis.PDE.Concentration
def fourthCoordinatesLinear (m : β) : OAI.Analysis.PDE.Dirichlet.CoordinateSpace m 4 ββ[β] (Fin m β β) where
toFun x i := x (i, Fin.last 3)
map_add' _ _ := rfl
map_smul' _ _ := rfl
def fourthCoordinates (m : β) : OAI.Analysis.PDE.Dirichlet.CoordinateSpace m 4 βL[β] (Fin m β β) :=
(fourthCoordinatesLinear m).toContinuousLinearMap
def fourthInjectionLinear (m : β) : (Fin m β β) ββ[β] OAI.Analysis.PDE.Dirichlet.CoordinateSpace m 4 where
toFun d := WithLp.toLp 2 (fun i => Fin.lastCases (d i.1) (fun _ => 0) i.2)
map_add' d e := by
ext β¨i, aβ©
change Fin.lastCases (motive := fun _ => β) (d i + e i) (fun _ => 0) a =
Fin.lastCases (motive := fun _ => β) (d i) (fun _ => 0) a +
Fin.lastCases (motive := fun _ => β) (e i) (fun _ => 0) a
refine Fin.lastCases ?_ (fun a => ?_) a <;>
simp only [Fin.lastCases_last, Fin.lastCases_castSucc, add_zero]
map_smul' c d := by
ext β¨i, aβ©
change Fin.lastCases (motive := fun _ => β) (c * d i) (fun _ => 0) a =
c * Fin.lastCases (motive := fun _ => β) (d i) (fun _ => 0) a
refine Fin.lastCases ?_ (fun a => ?_) a <;>
simp only [Fin.lastCases_last, Fin.lastCases_castSucc, mul_zero]
def fourthInjection (m : β) : (Fin m β β) βL[β] OAI.Analysis.PDE.Dirichlet.CoordinateSpace m 4 :=
(fourthInjectionLinear m).toContinuousLinearMap
@[simp] theorem fourthCoordinates_apply (m : β) (x : OAI.Analysis.PDE.Dirichlet.CoordinateSpace m 4) (i : Fin m) :
fourthCoordinates m x i = x (i, Fin.last 3) := rfl
@[simp] theorem fourthInjection_last (m : β) (d : Fin m β β) (i : Fin m) :
fourthInjection m d (i, Fin.last 3) = d i := by
change Fin.lastCases (motive := fun _ => β) (d i) (fun _ => 0) (Fin.last 3) = d i
exact Fin.lastCases_last
@[simp] theorem fourthInjection_castSucc (m : β) (d : Fin m β β) (i : Fin m) (a : Fin 3) :
fourthInjection m d (i, a.castSucc) = 0 := by
change Fin.lastCases (motive := fun _ => β) (d i) (fun _ => 0) a.castSucc = 0
exact Fin.lastCases_castSucc a
@[simp] theorem dropFourth_fourthInjection (m : β) (d : Fin m β β) :
dropFourth m (fourthInjection m d) = 0 := by ext β¨i,aβ©; simp
@[simp] theorem fourthCoordinates_insertFourth (m : β) (y : OAI.Analysis.PDE.Dirichlet.CoordinateSpace m 3) :
fourthCoordinates m (insertFourth m y) = 0 := by
ext i
exact insertFourth_last m y i
@[simp] theorem fourthCoordinates_fourthInjection (m : β) (d : Fin m β β) :
fourthCoordinates m (fourthInjection m d) = d := by
ext i
exact fourthInjection_last m d i
theorem insertFourth_dropFourth_add (m : β) (x : OAI.Analysis.PDE.Dirichlet.CoordinateSpace m 4) :
insertFourth m (dropFourth m x) + fourthInjection m (fourthCoordinates m x) = x := by
ext β¨i,aβ©
refine Fin.lastCases ?_ (fun a => ?_) a <;>
simp only [PiLp.add_apply, insertFourth_last, fourthInjection_last,
fourthCoordinates_apply, zero_add, insertFourth_castSucc, fourthInjection_castSucc,
dropFourth_apply, add_zero]
def fourthSplit (m : β) : OAI.Analysis.PDE.Dirichlet.CoordinateSpace m 4 βL[β] OAI.Analysis.PDE.Dirichlet.CoordinateSpace m 3 Γ (Fin m β β) where
toFun x := (dropFourth m x, fourthCoordinates m x)
invFun p := insertFourth m p.1 + fourthInjection m p.2
left_inv := insertFourth_dropFourth_add m
right_inv p := by
apply Prod.ext
Β· simp only [map_add, dropFourth_insertFourth, dropFourth_fourthInjection, add_zero]
Β· simp only [map_add, fourthCoordinates_insertFourth, fourthCoordinates_fourthInjection, zero_add]
map_add' x y := by simp
map_smul' c x := by simp
continuous_toFun := (dropFourth m).continuous.prodMk (fourthCoordinates m).continuous
continuous_invFun := ((insertFourth m).continuous.comp continuous_fst).add
((fourthInjection m).continuous.comp continuous_snd)
variable {m : β} {P V ΞΉ : Type*}
[NormedAddCommGroup P] [NormedSpace β P]
[NormedAddCommGroup V] [NormedSpace β V] [Fintype ΞΉ]
/-- Add the fourth slots to the periodic, not the transverse, coordinates. -/
def paddedLatticeSplit (e : OAI.Analysis.PDE.Dirichlet.CoordinateSpace m 3 βL[β] P Γ V) :
OAI.Analysis.PDE.Dirichlet.CoordinateSpace m 4 βL[β] (P Γ (Fin m β β)) Γ V :=
(fourthSplit m).trans ((e.prodCongr (ContinuousLinearEquiv.refl β (Fin m β β))).trans
((ContinuousLinearEquiv.prodAssoc β P V (Fin m β β)).trans
(((ContinuousLinearEquiv.refl β P).prodCongr
(ContinuousLinearEquiv.prodComm β V (Fin m β β))).trans
(ContinuousLinearEquiv.prodAssoc β P (Fin m β β) V).symm)))
theorem paddedLatticeSplit_apply (e : OAI.Analysis.PDE.Dirichlet.CoordinateSpace m 3 βL[β] P Γ V)
(x : OAI.Analysis.PDE.Dirichlet.CoordinateSpace m 4) :
paddedLatticeSplit e x = (((e (dropFourth m x)).1, fourthCoordinates m x),
(e (dropFourth m x)).2) := rfl
theorem paddedLatticeSplit_symm (e : OAI.Analysis.PDE.Dirichlet.CoordinateSpace m 3 βL[β] P Γ V)
(p : P) (d : Fin m β β) (v : V) :
(paddedLatticeSplit e).symm ((p,d),v) =
insertFourth m (e.symm (p,v)) + fourthInjection m d := rfl
def paddedLatticeBasis (b : Basis ΞΉ β P) : Basis (ΞΉ β Fin m) β (P Γ (Fin m β β)) :=
b.prod (Pi.basisFun β (Fin m))
omit [Fintype ΞΉ] in
theorem latticePeriodic_dropFourth {W : Type*} (e : OAI.Analysis.PDE.Dirichlet.CoordinateSpace m 3 βL[β] P Γ V)
(b : Basis ΞΉ β P) {f : OAI.Analysis.PDE.Dirichlet.CoordinateSpace m 3 β W} (hf : OAI.Analysis.PDE.Dirichlet.LatticePeriodic e b f) :
OAI.Analysis.PDE.Dirichlet.LatticePeriodic (P := P Γ (Fin m β β)) (V := V) (ΞΉ := ΞΉ β Fin m)
(paddedLatticeSplit (m := m) (P := P) (V := V) e) (paddedLatticeBasis (m := m) b)
(fun x : OAI.Analysis.PDE.Dirichlet.CoordinateSpace m 4 => f (dropFourth m x)) := by
apply OAI.Analysis.PDE.Concentration.latticePeriodic_of_basis_periods
intro i x
rcases i with i | i
Β· have hper := hf (dropFourth m x) β¨b i, Submodule.subset_span (mem_range_self i)β©
have he : e.symm ((e (dropFourth m x)).1 + b i, (e (dropFourth m x)).2) =
dropFourth m x + e.symm (b i, 0) := by
apply e.injective
simp only [ContinuousLinearEquiv.apply_symm_apply, map_add]
apply Prod.ext <;> simp
rw [he] at hper
simpa only [paddedLatticeBasis, Basis.prod_apply, Sum.elim_inl, Function.comp_apply, LinearMap.inl_apply,
paddedLatticeSplit_symm, map_add, dropFourth_insertFourth,
dropFourth_fourthInjection, add_zero] using hper
Β· simp only [paddedLatticeBasis, Basis.prod_apply, Sum.elim_inr, Function.comp_apply, LinearMap.inr_apply,
paddedLatticeSplit_symm, map_add, dropFourth_fourthInjection, add_zero, Prod.mk_zero_zero, map_zero]
end OAI.Analysis.Fourier.WavePackets
|