Download data/lean/OAI/Analysis/Calculus/Current/Fiber/Quaternion.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 5.77 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/Calculus/Current/Fiber/Quaternion.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/Calculus/Current/Fiber/Quaternion.lean
-
curl -L -o Quaternion.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/Calculus/Current/Fiber/Quaternion.lean
5.77 kB
Lean 4 Β· 13
declarations fullstatements
| import OAI.Analysis.Calculus.Current.Fiber.Hessian | |
| namespace OAI.Analysis.Calculus.Current | |
| noncomputable section | |
| open scoped Matrix | |
| def quaternionFirst : Quaternion β β+ β where | |
| toFun q := β¨q.re, q.imKβ© | |
| map_zero' := rfl | |
| map_add' _ _ := rfl | |
| def quaternionSecond : Quaternion β β+ β where | |
| toFun q := β¨q.imI, q.imJβ© | |
| map_zero' := rfl | |
| map_add' _ _ := rfl | |
| theorem quaternionFirst_complexK_mul (c : β) (q : Quaternion β) : | |
| quaternionFirst (complexK c * q) = c * quaternionFirst q := by | |
| apply Complex.ext <;> simp [quaternionFirst, complexK] | |
| theorem quaternionSecond_complexK_mul (c : β) (q : Quaternion β) : | |
| quaternionSecond (complexK c * q) = c * quaternionSecond q := by | |
| apply Complex.ext <;> simp [quaternionSecond, complexK] | |
| theorem quaternion_eq_of_components {q r : Quaternion β} | |
| (hβ : quaternionFirst q = quaternionFirst r) | |
| (hβ : quaternionSecond q = quaternionSecond r) : q = r := by | |
| apply Quaternion.ext | |
| Β· exact congrArg Complex.re hβ | |
| Β· exact congrArg Complex.re hβ | |
| Β· exact congrArg Complex.im hβ | |
| Β· exact congrArg Complex.im hβ | |
| theorem fiberJacobian_first_of_quaternion_kernel {d : β} (w a : β) (z : Index d β β) | |
| (v : Index d β Quaternion β) (hJ : quaternionFiberJacobian w a z *α΅₯ v = 0) : | |
| fiberJacobian w a z *α΅₯ (fun b => quaternionFirst (v b)) = 0 := by | |
| funext i | |
| have h := congrArg quaternionFirst (congrFun hJ i) | |
| simpa only [Matrix.mulVec, dotProduct, quaternionFiberJacobian, map_sum, | |
| quaternionFirst_complexK_mul, Pi.zero_apply, map_zero] using h | |
| theorem fiberJacobian_second_of_quaternion_kernel {d : β} (w a : β) (z : Index d β β) | |
| (v : Index d β Quaternion β) (hJ : quaternionFiberJacobian w a z *α΅₯ v = 0) : | |
| fiberJacobian w a z *α΅₯ (fun b => quaternionSecond (v b)) = 0 := by | |
| funext i | |
| have h := congrArg quaternionSecond (congrFun hJ i) | |
| simpa only [Matrix.mulVec, dotProduct, quaternionFiberJacobian, map_sum, | |
| quaternionSecond_complexK_mul, Pi.zero_apply, map_zero] using h | |
| /-- The complex one-dimensional kernel is also one-dimensional over the quaternions. -/ | |
| theorem quaternionFiberJacobian_kernel_unique {d : β} (w a : β) (z : Index d β β) | |
| (v : Index d β Quaternion β) (hw : w β 0) (ha : a β 0) (hY : z none β 0) | |
| (hJ : quaternionFiberJacobian w a z *α΅₯ v = 0) : | |
| v = fun b => complexK (fiberKernelVector z b) * v none := by | |
| have hβ := fiberJacobian_kernel_unique w a z _ hw ha hY | |
| (fiberJacobian_first_of_quaternion_kernel w a z v hJ) | |
| have hβ := fiberJacobian_kernel_unique w a z _ hw ha hY | |
| (fiberJacobian_second_of_quaternion_kernel w a z v hJ) | |
| funext b | |
| apply quaternion_eq_of_components | |
| Β· rw [quaternionFirst_complexK_mul] | |
| exact congrFun hβ b | |
| Β· rw [quaternionSecond_complexK_mul] | |
| exact congrFun hβ b | |
| theorem quaternionFiberJacobian_spatial_injective {d : β} (w a : β) (z : Index d β β) | |
| (v : Index d β Quaternion β) (hw : w β 0) (ha : a β 0) (hY : z none β 0) | |
| (hD : fiberDenominator (ratio z) β 0) (htime : v none = v (some none)) | |
| (hJ : quaternionFiberJacobian w a z *α΅₯ v = 0) : v = 0 := by | |
| have hβ := fiberJacobian_spatial_injective w a z _ hw ha hY hD | |
| (congrArg quaternionFirst htime) (fiberJacobian_first_of_quaternion_kernel w a z v hJ) | |
| have hβ := fiberJacobian_spatial_injective w a z _ hw ha hY hD | |
| (congrArg quaternionSecond htime) (fiberJacobian_second_of_quaternion_kernel w a z v hJ) | |
| funext b | |
| apply quaternion_eq_of_components | |
| Β· exact congrFun hβ b | |
| Β· exact congrFun hβ b | |
| /-- Positive definiteness on every fixed-physical-time tangent space. -/ | |
| theorem fiberHessian_spatial_pos {d : β} (w a : β) (z : Index d β β) | |
| (v : Index d β Quaternion β) (hw : w β 0) (ha : a β 0) (hY : z none β 0) | |
| (hD : fiberDenominator (ratio z) β 0) (htime : v none = v (some none)) (hv : v β 0) : | |
| 0 < (star v β¬α΅₯ (fiberHessian w a z *α΅₯ v)).re := by | |
| have hJ : quaternionFiberJacobian w a z *α΅₯ v β 0 := by | |
| intro h | |
| exact hv (quaternionFiberJacobian_spatial_injective w a z v hw ha hY hD htime h) | |
| rw [fiberHessian_factorization w a z hY, Matrix.smul_mulVec, dotProduct_smul] | |
| simpa only [Quaternion.re_smul, smul_eq_mul] using | |
| mul_pos (by norm_num : (0 : β) < 4) | |
| (OAI.Analysis.Calculus.Quaternion.quaternionGram_pos (quaternionFiberJacobian w a z) v hJ) | |
| theorem fiberHessian_kernel_iff {d : β} (w a : β) (z : Index d β β) | |
| (hY : z none β 0) (v : Index d β Quaternion β) : | |
| fiberHessian w a z *α΅₯ v = 0 β quaternionFiberJacobian w a z *α΅₯ v = 0 := by | |
| rw [fiberHessian_factorization w a z hY, Matrix.smul_mulVec] | |
| rw [smul_eq_zero_iff_right (by norm_num : (4 : β) β 0)] | |
| exact OAI.Analysis.Calculus.Quaternion.quaternionGram_kernel _ _ | |
| /-- The full Hessian has exactly the displayed one-dimensional right quaternionic kernel. -/ | |
| theorem fiberHessian_kernel_unique {d : β} (w a : β) (z : Index d β β) | |
| (v : Index d β Quaternion β) (hw : w β 0) (ha : a β 0) (hY : z none β 0) | |
| (hH : fiberHessian w a z *α΅₯ v = 0) : | |
| v = fun b => complexK (fiberKernelVector z b) * v none := | |
| quaternionFiberJacobian_kernel_unique w a z v hw ha hY | |
| ((fiberHessian_kernel_iff w a z hY v).mp hH) | |
| theorem fiberHessian_spatial_pos_on_fiber {d : β} (a : β) (z : Index d β β) | |
| (v : Index d β Quaternion β) (ha : a β 0) (hY : z none β 0) | |
| (hr : fiberDefining (1 / 10) a z β€ 0) (htime : v none = v (some none)) (hv : v β 0) : | |
| 0 < (star v β¬α΅₯ (fiberHessian (1 / 10) a z *α΅₯ v)).re := | |
| fiberHessian_spatial_pos (1 / 10) a z v (by norm_num) ha hY | |
| (fiberDenominator_ne_zero_on_fiber a z hr) htime hv | |
| end | |
| end OAI.Analysis.Calculus.Current | |
Outline
- def
quaternionFirst8 - def
quaternionSecond13 - theorem
quaternionFirst_complexK_mul18 - theorem
quaternionSecond_complexK_mul22 - theorem
quaternion_eq_of_components26 - theorem
fiberJacobian_first_of_quaternion_kernel35 - theorem
fiberJacobian_second_of_quaternion_kernel43 - theorem
quaternionFiberJacobian_kernel_unique52 - theorem
quaternionFiberJacobian_spatial_injective67 - theorem
fiberHessian_spatial_pos81 - theorem
fiberHessian_kernel_iff93 - theorem
fiberHessian_kernel_unique101 - theorem
fiberHessian_spatial_pos_on_fiber108