math / data /lean /OAI /MathematicalPhysics /NavierStokes /ForcedComputation /Programs /ClockedLipschitz.lean
Download data/lean/OAI/MathematicalPhysics/NavierStokes/ForcedComputation/Programs/ClockedLipschitz.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 2.4 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MathematicalPhysics/NavierStokes/ForcedComputation/Programs/ClockedLipschitz.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/MathematicalPhysics/NavierStokes/ForcedComputation/Programs/ClockedLipschitz.lean
-
curl -L -o ClockedLipschitz.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MathematicalPhysics/NavierStokes/ForcedComputation/Programs/ClockedLipschitz.lean
2.4 kB
| import OAI.MathematicalPhysics.NavierStokes.ForcedComputation.Programs.ClockedBounds | |
| namespace OAI | |
| /-! A computable modulus on each finite time slab for the detector's | |
| clocked expressions. Spatial coordinates remain unrestricted. -/ | |
| namespace ForcedComputation.ClockedExpr | |
| open ShearFlows Set | |
| open scoped ContDiff BigOperators | |
| def derivativeBound (e : ClockedExpr) (M : β) : β := | |
| β j : Fin 4, (e.diff j).bound M | |
| theorem derivativeBound_nonneg (e : ClockedExpr) (M : β) : 0 β€ e.derivativeBound M := | |
| Finset.sum_nonneg (fun j _ => (e.diff j).bound_nonneg M) | |
| theorem fderiv_bound {e : ClockedExpr} (he : e.Valid) (M : β) (y : SpaceTime) | |
| (hy : |y.1| β€ |(M : β)|) : βfderiv β e.val yβ β€ (e.derivativeBound M : β) := by | |
| apply ContinuousLinearMap.opNorm_le_bound _ (Rat.cast_nonneg.mpr (e.derivativeBound_nonneg M)) | |
| intro v | |
| conv_lhs => rw [β spaceTimeDirections_sum v] | |
| rw [map_sum] | |
| calc | |
| _ β€ β j : Fin 4, βfderiv β e.val y (timeSpaceCoord j v β’ spaceTimeDirection j)β := | |
| norm_sum_le _ _ | |
| _ β€ β j : Fin 4, βvβ * ((e.diff j).bound M : β) := by | |
| apply Finset.sum_le_sum | |
| intro j _ | |
| rw [map_smul, norm_smul] | |
| have hj : βfderiv β e.val y (spaceTimeDirection j)β β€ ((e.diff j).bound M : β) := by | |
| rw [β e.val_diff he j y, Real.norm_eq_abs] | |
| exact val_bound (valid_diff he j) M y hy | |
| exact mul_le_mul (timeSpaceCoord_norm j v) hj (norm_nonneg _) (norm_nonneg _) | |
| _ = _ := by | |
| rw [derivativeBound, Rat.cast_sum, Finset.sum_mul] | |
| apply Finset.sum_congr rfl | |
| intro j _ | |
| ring | |
| theorem lipschitz_bound {e : ClockedExpr} (he : e.Valid) (M : β) (x y : SpaceTime) | |
| (hx : |x.1| β€ |(M : β)|) (hy : |y.1| β€ |(M : β)|) : | |
| |e.val x - e.val y| β€ (e.derivativeBound M : β) * βx - yβ := by | |
| let S : Set SpaceTime := Icc (-|(M : β)|) |(M : β)| ΓΛ’ (univ : Set Space) | |
| have hc : Convex β S := (convex_Icc (-|(M : β)|) |(M : β)|).prod convex_univ | |
| have hxS : x β S := β¨abs_le.mp hx, mem_univ _β© | |
| have hyS : y β S := β¨abs_le.mp hy, mem_univ _β© | |
| have h := Convex.norm_image_sub_le_of_norm_fderiv_le | |
| (fun z (_ : z β S) => (e.smooth he).differentiable (by simp) z) | |
| (fun z hz => fderiv_bound he M z (abs_le.mpr hz.1)) hc hyS hxS | |
| simpa only [Real.norm_eq_abs] using h | |
| end ForcedComputation.ClockedExpr | |
| end OAI | |