math / data /lean /OAI /Analysis /Conductivity /Flux /LocalTensorBounds.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
3.4 kB
import Mathlib
import OAI.Analysis.Conductivity.Variational.LocalSymmetricPiola
namespace OAI
section
noncomputable section
namespace ScalarConductivity
open Set Matrix MeasureTheory Filter Topology
open scoped Matrix.Norms.Elementwise
lemma matrix_three_product_norm_bound (A B : Mat3) : β€–A*B‖≀3*β€–Aβ€–*β€–Bβ€– := by
apply Matrix.norm_le_iff (by positivity) |>.mpr
intro i j
rw [Matrix.mul_apply]
calc
_ ≀ βˆ‘ k : Fin 3,β€–A i k*B k jβ€– := norm_sum_le _ _
_ ≀ βˆ‘ _k : Fin 3,β€–Aβ€–*β€–Bβ€– := by
apply Finset.sum_le_sum
intro k hk
rw [norm_mul]
exact mul_le_mul (Matrix.norm_entry_le_entrywise_sup_norm A)
(Matrix.norm_entry_le_entrywise_sup_norm B) (norm_nonneg _) (norm_nonneg _)
_ = _ := by simp; ring
theorem localPiolaTensor_linear_bound
(X : OpenPartialHomeomorph Coord3 Coord3)
(hX : ContDiffOn ℝ (↑(⊀ : β„•βˆž)) X X.source)
(hXi : ContDiffOn ℝ (↑(⊀ : β„•βˆž)) X.symm X.target)
{K : Set Coord3} (hK : IsCompact K) (hKs : KβŠ†X.source) :
βˆƒ C : ℝ,0<C ∧ βˆ€ (B : Coord3 β†’ Mat3),Function.support BβŠ†K β†’ βˆ€ y,
β€–localPiolaTensor X B y‖≀C*β€–B (X.symm y)β€– := by
classical
let A : Coord3 β†’ Mat3 := fun x => operatorMatrix (fderiv ℝ X x)
let g : Coord3 β†’ ℝ := fun x => 9*|(fderiv ℝ X x).det|⁻¹*β€–A xβ€–*β€–A xβ€–
have hg : ContinuousOn g X.source := by
intro x hx
have hd : ContDiffAt ℝ (↑(⊀ : β„•βˆž)) (fderiv ℝ X) x :=
(hX.contDiffAt (X.open_source.mem_nhds hx)).fderiv_right (by simp)
have hdM := (operatorMatrix_contDiff (m := Fin 3) (n := Fin 3)).contDiffAt.comp x hd
have hd0 := local_fderiv_det_ne_zero X (hX.differentiableOn (by simp))
(hXi.differentiableOn (by simp)) hx
have hdet := ((contDiff_clm_det (E := Coord3) (↑(⊀ : β„•βˆž))).contDiffAt.comp x hd).abs hd0
exact (((continuousAt_const.mul ((hdet.inv (abs_ne_zero.mpr hd0)).continuousAt)).mul
hdM.continuousAt.norm).mul hdM.continuousAt.norm).continuousWithinAt
obtain ⟨D,hD⟩ := (hK.image_of_continuousOn (hg.mono hKs)).isBounded.exists_norm_le
refine ⟨max D 1,lt_of_lt_of_le zero_lt_one (le_max_right _ _),?_⟩
intro B hsB y
by_cases hy : y∈X.target
· by_cases hxy : X.symm y∈K
Β· have hbound : g (X.symm y)≀ max D 1 :=
(le_abs_self _).trans ((hD _ (mem_image_of_mem _ hxy)).trans (le_max_left _ _))
simp only [localPiolaTensor,ite_eq_left hy,norm_smul,Real.norm_eq_abs,abs_inv,abs_abs]
calc
_ ≀ |(fderiv ℝ X (X.symm y)).det|⁻¹ * (3*β€–A (X.symm y)*B (X.symm y)β€–*β€–(A (X.symm y))α΅€β€–) :=
mul_le_mul_of_nonneg_left (matrix_three_product_norm_bound _ _) (inv_nonneg.mpr (abs_nonneg _))
_ ≀ |(fderiv ℝ X (X.symm y)).det|⁻¹ * (3*(3*β€–A (X.symm y)β€–*β€–B (X.symm y)β€–)*β€–A (X.symm y)β€–) := by
rw [Matrix.norm_transpose]
gcongr
exact matrix_three_product_norm_bound _ _
_ = g (X.symm y)*β€–B (X.symm y)β€– := by dsimp [g]; ring
_ ≀ _ := mul_le_mul_of_nonneg_right hbound (norm_nonneg _)
Β· have hz : B (X.symm y)=0 := by
by_contra hn
exact hxy (hsB hn)
simp [localPiolaTensor,hy,hz]
Β· simp only [localPiolaTensor,ite_eq_right hy,norm_zero]
exact mul_nonneg ((le_max_right D 1).trans' zero_le_one) (norm_nonneg _)
end ScalarConductivity
end
end
end OAI