Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ namespace FastDynamo

noncomputable section

attribute [local irreducible] transverseH2Submodule

open scoped FourierTransform SchwartzMap

namespace TransverseSmoothBumpH2Cutoff
Expand All @@ -85,12 +87,8 @@ theorem polynomialH2Multiplier_single_smul
apply ContinuousLinearMap.ext
intro b
apply transverseH2Embedding_injective
simp only [smul_apply]
rw [map_smul, transverseH2Embedding_polynomialH2Multiplier]
rw [polynomialValueMap_apply, polynomialLInf_single, map_smul]
rw [transverseH2Embedding_polynomialH2Multiplier,
polynomialValueMap_apply]
rfl
simp only [smul_apply, map_smul, transverseH2Embedding_polynomialH2Multiplier,
polynomialValueMap_apply, polynomialLInf_single, one_smul]

/-- The whole four-component package at frequency `n` is homogeneous in the coefficient:
`coefficientSecondOrderPackage n c = c • monomialSecondOrderPackage n`. -/
Expand Down Expand Up @@ -133,27 +131,7 @@ theorem norm_coefficientSecondOrderPackage_le
‖coefficientSecondOrderPackage n c‖ ≤
‖c‖ * secondOrderFourierWeight n := by
rw [coefficientSecondOrderPackage_eq_smul]
rw [secondOrderFourierWeight]
simp only [monomialSecondOrderPackage, Prod.norm_def, Prod.smul_fst,
Prod.smul_snd]
rw [max_le_iff, max_le_iff, max_le_iff]
refine ⟨?_, ?_, ?_, ?_⟩
· rw [norm_smul]
exact mul_le_mul_of_nonneg_left
(le_max_left _ (max _ (max _ _))) (norm_nonneg c)
· rw [norm_smul]
exact mul_le_mul_of_nonneg_left
((le_max_left _ (max _ _)).trans
(le_max_right _ _)) (norm_nonneg c)
· rw [norm_smul]
exact mul_le_mul_of_nonneg_left
((le_max_left _ _).trans
((le_max_right _ _).trans (le_max_right _ _))) (norm_nonneg c)
· exact (ContinuousLinearMap.opNorm_smul_le c _).trans
(mul_le_mul_of_nonneg_left
((le_max_right _ _).trans
((le_max_right _ _).trans (le_max_right _ _)))
(norm_nonneg c))
exact norm_smul_le c (monomialSecondOrderPackage n)

/-- The operator-adapted summability premise follows from the ordinary scalar
weighted `ℓ1` premise. This is the convenient interface for Fourier-decay
Expand Down Expand Up @@ -359,6 +337,8 @@ namespace FastDynamo

noncomputable section

attribute [local irreducible] transverseH2Submodule

open MeasureTheory

namespace TransverseSmoothBumpH2CutoffConcrete
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ namespace FastDynamo

noncomputable section

attribute [local irreducible] MeasureTheory.Lp

open MeasureTheory
open scoped ENNReal

Expand Down Expand Up @@ -354,27 +356,26 @@ theorem polynomialLaplacianProductMap_apply
scalarVectorMulTransverse
(polynomialLInf (polynomialLaplacian p))
(transverseH2Embedding b) := by
simp [polynomialLaplacianProductMap]
simp only [polynomialLaplacianProductMap, add_apply, smul_apply, sum_apply,
ContinuousLinearMap.comp_apply]

/-- Multiplication by the zero polynomial is the zero map. -/
theorem polynomialValueMap_zero :
polynomialValueMap (0 : TransverseTrigPolynomial) = 0 := by
ext b
simp [polynomialValueMap]
rw [polynomialValueMap, polynomialLInf_zero, map_zero, ContinuousLinearMap.zero_comp]

/-- Physical multiplication depends additively on the polynomial cutoff. -/
theorem polynomialValueMap_add
(p q : TransverseTrigPolynomial) :
polynomialValueMap (p + q) =
polynomialValueMap p + polynomialValueMap q := by
ext b
simp [polynomialValueMap, polynomialLInf_add]
simp only [polynomialValueMap, polynomialLInf_add, map_add, ContinuousLinearMap.add_comp]

/-- The first-order Leibniz candidate of the zero polynomial is the zero map. -/
theorem polynomialDerivProductMap_zero (j : Fin 2) :
polynomialDerivProductMap (0 : TransverseTrigPolynomial) j = 0 := by
ext b
simp [polynomialDerivProductMap]
simp only [polynomialDerivProductMap, map_zero, polynomialLInf_zero,
ContinuousLinearMap.zero_comp, add_zero]

/-- The first-order Leibniz candidate depends additively on the polynomial cutoff. -/
theorem polynomialDerivProductMap_add
Expand All @@ -391,8 +392,8 @@ theorem polynomialDerivProductMap_add
/-- The second-order Leibniz candidate of the zero polynomial is the zero map. -/
theorem polynomialLaplacianProductMap_zero :
polynomialLaplacianProductMap (0 : TransverseTrigPolynomial) = 0 := by
ext b
simp [polynomialLaplacianProductMap]
simp only [polynomialLaplacianProductMap, map_zero, polynomialLInf_zero,
ContinuousLinearMap.zero_comp, Finset.sum_const_zero, smul_zero, add_zero]

/-- The second-order Leibniz candidate depends additively on the polynomial cutoff. -/
theorem polynomialLaplacianProductMap_add
Expand Down Expand Up @@ -420,13 +421,12 @@ theorem polynomialMul_hasFourierDerivative
| zero =>
rw [polynomialValueMap_zero, polynomialDerivProductMap_zero]
intro n i
simp
simp only [zero_apply, map_zero, mul_zero]
| add p q hp hq =>
rw [polynomialValueMap_add, polynomialDerivProductMap_add]
intro n i
simp only [add_apply, map_add]
rw [hp n i, hq n i]
ring
rw [hp n i, hq n i, mul_add]
| single m c =>
intro q i
change transverseCoeffCLM q i
Expand Down Expand Up @@ -458,13 +458,12 @@ theorem polynomialMul_hasFourierLaplacian
| zero =>
rw [polynomialValueMap_zero, polynomialLaplacianProductMap_zero]
intro n i
simp
simp only [zero_apply, map_zero, mul_zero]
| add p q hp hq =>
rw [polynomialValueMap_add, polynomialLaplacianProductMap_add]
intro n i
simp only [add_apply, map_add]
rw [hp n i, hq n i]
ring
rw [hp n i, hq n i, mul_add]
| single m c =>
intro q i
change transverseCoeffCLM q i
Expand All @@ -479,10 +478,8 @@ theorem polynomialMul_hasFourierLaplacian
transverseCoeffCLM_transverseLaplacianFromH2,
transverseCoeff_polynomialSingleVectorMul,
transverseCoeff_polynomialSingleVectorMul]
simp_rw [map_sum, polynomialDeriv_single,
transverseCoeff_polynomialSingleVectorMul,
transverseCoeffCLM_transverseDerivFromH2]
simp only [smul_eq_mul]
simp only [map_sum, polynomialDeriv_single, transverseCoeff_polynomialSingleVectorMul,
transverseCoeffCLM_transverseDerivFromH2, smul_eq_mul]
let z := transverseCoeffCLM (q - m) i (transverseH2Embedding b)
change c * (-(transverseFrequencyEnergy (q - m) : ℂ) * z) +
2 * (∑ x : Fin 2, transverseFourierDerivMultiplier x m * c *
Expand Down Expand Up @@ -623,6 +620,8 @@ namespace FastDynamo

noncomputable section

attribute [local irreducible] MeasureTheory.Lp

open MeasureTheory

namespace TransverseSmoothH2CutoffMultiplier
Expand Down Expand Up @@ -873,7 +872,7 @@ theorem embeddingDefect_completed_eq_zero
unfold completedSecondOrderPackage
rw [(embeddingDefect b).map_tsum
(summable_secondOrderPackageSeries ha)]
simp [secondOrderPackageSeries, embeddingDefect_coefficient]
simp only [secondOrderPackageSeries, embeddingDefect_coefficient, tsum_zero]

/-- The first-order Leibniz identity passes to the Fourier limit: the continuous linear
defect map `derivativeDefect j b` annihilates the completed package. -/
Expand All @@ -885,7 +884,7 @@ theorem derivativeDefect_completed_eq_zero
unfold completedSecondOrderPackage
rw [(derivativeDefect j b).map_tsum
(summable_secondOrderPackageSeries ha)]
simp [secondOrderPackageSeries, derivativeDefect_coefficient]
simp only [secondOrderPackageSeries, derivativeDefect_coefficient, tsum_zero]

/-- The second-order Leibniz identity passes to the Fourier limit: the continuous linear
defect map `laplacianDefect b` annihilates the completed package. -/
Expand All @@ -897,7 +896,7 @@ theorem laplacianDefect_completed_eq_zero
unfold completedSecondOrderPackage
rw [(laplacianDefect b).map_tsum
(summable_secondOrderPackageSeries ha)]
simp [secondOrderPackageSeries, laplacianDefect_coefficient]
simp only [secondOrderPackageSeries, laplacianDefect_coefficient, tsum_zero]

/-! ## The completed periodic cutoff -/

Expand Down
15 changes: 6 additions & 9 deletions LeanPool/FastDynamo/Analysis/TransverseWeightedDiffusion.lean
Original file line number Diff line number Diff line change
Expand Up @@ -666,15 +666,12 @@ theorem transverseWeightedGradientDefect_young (β : TransverseScalarW1Inf)
(transverseH2Embedding h)‖ ≤
‖β.grad j‖ * ‖transverseH2Embedding h‖ :=
norm_scalarVectorMulTransverseVec_apply_le _ _
have hnn : (0 : ℝ) ≤ ‖scalarVectorMulTransverseVec ι (β.grad j)
(transverseH2Embedding h)‖ := norm_nonneg _
have hsq : ‖scalarVectorMulTransverseVec ι (β.grad j)
(transverseH2Embedding h)‖ ^ 2 ≤
‖β.grad j‖ ^ 2 * ‖transverseH2Embedding h‖ ^ 2 := by
have := mul_self_le_mul_self hnn hhold
nlinarith [this]
nlinarith [sq_nonneg (‖transverseVecDerivFromH2 ι j h‖ / 2 -
‖scalarVectorMulTransverseVec ι (β.grad j) (transverseH2Embedding h)‖), hsq]
have young (derivative error : ℝ) :
error * derivative ≤ derivative ^ 2 / 4 + error ^ 2 := by
nlinarith only [sq_nonneg (derivative / 2 - error)]
refine (young _ _).trans (add_le_add le_rfl ?_)
rw [← mul_pow]
exact pow_le_pow_left₀ (norm_nonneg _) hhold 2

/-- The `ε`-weighted Young absorption used in `eq:background-coercivity`:
`ε ∫ |∇β| |h| |∇h| ≤ (ε/4) ‖∇h‖₂² + ε ‖∇β‖_∞² ‖h‖₂²`. -/
Expand Down
3 changes: 3 additions & 0 deletions LeanPool/FastDynamo/Dynamics/Assembly/ProductResolvent.lean
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ namespace FastDynamo

noncomputable section

-- Keep the Fourier graphs bundled while inferring the domain instances.
attribute [local irreducible] productH2Submodule transverseH2Submodule

open scoped ENNReal

/-! ## Block diagonality of the all-frequency pencil -/
Expand Down
30 changes: 15 additions & 15 deletions LeanPool/FastDynamo/Global/TorusBackgroundWeightedEnergy.lean
Original file line number Diff line number Diff line change
Expand Up @@ -610,25 +610,25 @@ theorem growth_mul_eps_gradientEnergy_le (D : BackgroundCoercivity β u ε K z S
have hge := D.re_inner_pencil_ge h
have hle := D.re_inner_pencil_le h
have hgn := D.growth_mul_norm_le h
have hmul : Real.sqrt 2 * Real.sqrt 2 = 2 := Real.mul_self_sqrt (by norm_num)
have hf := norm_nonneg ((horizontalInductionOperator u ε K).pencil z h)
have hgN2 : 0 ≤ D.growth * ‖transverseH2Embedding h‖ ^ 2 :=
mul_nonneg D.growth_pos.le (sq_nonneg _)
have hE1 : ε * transverseGradientEnergy h ≤
have hgrad : ε * transverseGradientEnergy h ≤
2 * (Real.sqrt 2 * ‖transverseH2Embedding h‖ *
‖(horizontalInductionOperator u ε K).pencil z h‖) := by
linarith
have hE2 : D.growth * (ε * transverseGradientEnergy h) ≤
D.growth * (2 * (Real.sqrt 2 * ‖transverseH2Embedding h‖ *
‖(horizontalInductionOperator u ε K).pencil z h‖)) :=
mul_le_mul_of_nonneg_left hE1 D.growth_pos.le
have hE4 : 2 * Real.sqrt 2 *
‖(horizontalInductionOperator u ε K).pencil z h‖ *
(D.growth * ‖transverseH2Embedding h‖) ≤
2 * Real.sqrt 2 * ‖(horizontalInductionOperator u ε K).pencil z h‖ *
(Real.sqrt 2 * ‖(horizontalInductionOperator u ε K).pencil z h‖) :=
mul_le_mul_of_nonneg_left hgn (by positivity)
nlinarith [hE2, hE4, hmul]
linarith only [hge, hle, hgN2]
have combine (growth state forcing : ℝ) (hf : 0 ≤ forcing)
(hstate : growth * state ≤ Real.sqrt 2 * forcing) :
growth * (2 * (Real.sqrt 2 * state * forcing)) ≤ 4 * forcing ^ 2 := by
calc
_ = (2 * Real.sqrt 2 * forcing) * (growth * state) := by ring
_ ≤ (2 * Real.sqrt 2 * forcing) * (Real.sqrt 2 * forcing) :=
mul_le_mul_of_nonneg_left hstate (by positivity)
_ = 2 * (Real.sqrt 2 * Real.sqrt 2) * forcing ^ 2 := by ring
_ = _ := by
rw [Real.mul_self_sqrt (by norm_num : (0 : ℝ) ≤ 2)]
norm_num
exact (mul_le_mul_of_nonneg_left hgrad D.growth_pos.le).trans
(combine _ _ _ (norm_nonneg _) hgn)

/-- The constant of `eq:bg-resolvent` in terms
of the retained growth rate `g`: `‖h‖₂ + √ε‖∇_⊥h‖₂ ≤ (√2/g + 2/√g)‖f‖₂`. -/
Expand Down
2 changes: 2 additions & 0 deletions LeanPool/FastDynamo/Local/HorizontalDeltaResolvent.lean
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ namespace FastDynamo

noncomputable section

attribute [local irreducible] associatedFormProdGraphDefect

open MeasureTheory Metric Set

/-- A family continuous on a compact parameter set is uniformly bounded in norm there. This
Expand Down
2 changes: 2 additions & 0 deletions LeanPool/FastDynamo/Local/HorizontalFormCompactness.lean
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ namespace FastDynamo

noncomputable section

attribute [local irreducible] associatedFormProdGraphDefect

open MeasureTheory
open scoped ENNReal

Expand Down
2 changes: 2 additions & 0 deletions LeanPool/FastDynamo/Local/HorizontalFormDelta.lean
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ namespace FastDynamo

noncomputable section

attribute [local irreducible] associatedFormProdGraphDefect

open MeasureTheory

namespace HorizontalWeakForm
Expand Down
4 changes: 4 additions & 0 deletions LeanPool/FastDynamo/Local/HorizontalFormOperator.lean
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ namespace FastDynamo

noncomputable section

-- Instance search on the form graph only needs the bundled defect map.
-- Unfolding it expands the Sobolev and anti-dual instances during conversion.
attribute [local irreducible] associatedFormProdGraphDefect

open MeasureTheory
open scoped ENNReal

Expand Down
36 changes: 20 additions & 16 deletions LeanPool/FastDynamo/Local/HorizontalFormResolvent.lean
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ namespace FastDynamo

noncomputable section

attribute [local irreducible] associatedFormProdGraphDefect

open MeasureTheory Metric Set Filter Topology
open scoped ENNReal

Expand Down Expand Up @@ -102,6 +104,15 @@ omit [CompleteSpace V] in
(formPencilDomainInverse j a z R hR f).1 = formPencilGraphPair j z R f :=
rfl

omit [CompleteSpace V] in
private theorem associatedFormProdOperator_pencil_apply (j : V →L[ℂ] X)
(hj : Function.Injective j) (hdense : DenseRange j) (a : ComplexForm V) (z : ℂ)
(d : AssociatedFormProdDomain j a) :
(associatedFormProdOperator j hj hdense a).pencil z d = z • j d.1.1 + d.1.2 := by
simp only [DomainOperator.pencil, sub_apply, smul_apply,
associatedFormProdOperator_embedding_apply, associatedFormProdOperator_op_apply,
sub_neg_eq_add]

omit [CompleteSpace V] in
/-- The domain-valued solution map is a right inverse of the operator pencil. -/
theorem formPencilDomainInverse_right_apply (j : V →L[ℂ] X) (hj : Function.Injective j)
Expand All @@ -119,10 +130,10 @@ theorem formPencilDomainInverse_right_apply (j : V →L[ℂ] X) (hj : Function.I
z • j (formPencilDomainInverse j a z R hR f).1.1 +
(formPencilDomainInverse j a z R hR f).1.2 := by
simp only [DomainOperator.pencil, sub_apply, smul_apply,
associatedFormProdOperator_embedding_apply, associatedFormProdOperator_op_apply]
module
rw [hpencil, hfst, hsnd]
module
associatedFormProdOperator_embedding_apply, associatedFormProdOperator_op_apply,
sub_neg_eq_add]
rw [hpencil, hfst, hsnd, add_comm]
exact sub_add_cancel _ _

omit [CompleteSpace V] in
/-- Injectivity of the pencil form identifies the first graph coordinate of any graph element
Expand All @@ -135,11 +146,8 @@ theorem formPencilDomainInverse_fst_of_injective (j : V →L[ℂ] X) (hj : Funct
(d : AssociatedFormProdDomain j a) :
R ((associatedFormProdOperator j hj hdense a).pencil z d) = d.1.1 := by
set f : X := (associatedFormProdOperator j hj hdense a).pencil z d with hf
have hfval : f = z • j d.1.1 + d.1.2 := by
rw [hf]
simp only [DomainOperator.pencil, sub_apply, smul_apply,
associatedFormProdOperator_embedding_apply, associatedFormProdOperator_op_apply]
module
have hfval : f = z • j d.1.1 + d.1.2 :=
associatedFormProdOperator_pencil_apply j hj hdense a z d
have hdiff : R f - d.1.1 = 0 := by
apply hinj
intro phi
Expand Down Expand Up @@ -169,19 +177,15 @@ theorem formPencilDomainInverse_left_apply (j : V →L[ℂ] X) (hj : Function.In
formPencilDomainInverse j a z R hR
((associatedFormProdOperator j hj hdense a).pencil z d) = d := by
set f : X := (associatedFormProdOperator j hj hdense a).pencil z d with hf
have hfval : f = z • j d.1.1 + d.1.2 := by
rw [hf]
simp only [DomainOperator.pencil, sub_apply, smul_apply,
associatedFormProdOperator_embedding_apply, associatedFormProdOperator_op_apply]
module
have hfval : f = z • j d.1.1 + d.1.2 :=
associatedFormProdOperator_pencil_apply j hj hdense a z d
have hRf : R f = d.1.1 :=
formPencilDomainInverse_fst_of_injective j hj hdense a z R hR hinj d
apply Subtype.ext
rw [formPencilDomainInverse_val, formPencilGraphPair_apply, hRf]
refine Prod.ext rfl ?_
change f - z • j d.1.1 = d.1.2
rw [hfval]
module
rw [hfval, add_sub_cancel_left]

/-- The chosen domain-valued inverse family, junk outside the parameter set. -/
def formPencilInvFamily (j : V →L[ℂ] X) (a : ComplexForm V) {S : Set ℂ}
Expand Down
2 changes: 2 additions & 0 deletions LeanPool/FastDynamo/Local/HorizontalModeContour.lean
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ namespace FastDynamo

noncomputable section

attribute [local irreducible] associatedFormProdGraphDefect

open MeasureTheory Metric Set Filter Topology Complex
open scoped ENNReal

Expand Down
Loading
Loading