Download data/lean/OAI/LinearAlgebra/Moore/Boundary.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 4.08 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/LinearAlgebra/Moore/Boundary.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/LinearAlgebra/Moore/Boundary.lean
-
curl -L -o Boundary.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/LinearAlgebra/Moore/Boundary.lean
4.08 kB
| import OAI.LinearAlgebra.Moore.Monotone | |
| /-! Nonnegativity at singular positive semidefinite matrices, obtained by | |
| positive regularization and continuity of the actual determinant polynomial. -/ | |
| noncomputable section | |
| namespace OAI.LinearAlgebra.Moore | |
| open Matrix Set Filter | |
| open scoped MatrixOrder ComplexOrder Topology | |
| theorem complexify_add_pos_identity {n : β} | |
| (A : Matrix (Fin n) (Fin n) (Quaternion β)) | |
| (hA : (complexify A).PosSemidef) {t : β} (ht : 0 < t) : | |
| (complexify (A + t β’ 1)).PosDef := by | |
| rw [complexify_add, complexify_real_smul, complexify_one] | |
| exact Matrix.PosDef.posSemidef_add hA (Matrix.PosDef.one.smul ht) | |
| theorem mooreDet_nonneg_of_complexify_posSemidef {n : β} | |
| (A : Matrix (Fin n) (Fin n) (Quaternion β)) | |
| (hA : (complexify A).PosSemidef) : 0 β€ mooreDet n A := by | |
| have hc := (hasDerivAt_mooreDet_affine A 1 0).continuousAt | |
| have ht : Tendsto (fun t : β β¦ mooreDet n (A + t β’ 1)) (π[>] 0) | |
| (π (mooreDet n (A + (0 : β) β’ 1))) := | |
| hc.tendsto.mono_left nhdsWithin_le_nhds | |
| have hpos : βαΆ t : β in π[>] 0, 0 β€ mooreDet n (A + t β’ 1) := by | |
| filter_upwards [self_mem_nhdsWithin] with t ht | |
| exact (mooreDet_pos_of_complexify_posDef _ (complexify_add_pos_identity A hA ht)).le | |
| simpa only [zero_smul, add_zero] using ge_of_tendsto ht hpos | |
| theorem continuous_skewComplexify_entry {n : β} (i j : Fin n Γ Fin 2) : | |
| Continuous (fun A : Matrix (Fin n) (Fin n) (Quaternion β) β¦ skewComplexify A i j) := by | |
| exact (skewQuaternionEntryCLM i.2 j.2).continuous.comp | |
| ((continuous_apply j.1).comp (continuous_apply i.1)) | |
| theorem continuous_mooreDet (n : β) : Continuous (mooreDet n) := by | |
| unfold mooreDet pfaffian | |
| apply Complex.continuous_re.comp | |
| apply continuous_const.mul | |
| apply continuous_finsetSum | |
| intro Ο _ | |
| apply continuous_const.mul | |
| apply continuous_finsetProd | |
| intro i _ | |
| exact continuous_skewComplexify_entry (Ο (i, 0)) (Ο (i, 1)) | |
| /-- Continuity of the cofactor differential is proved from its finite polynomial | |
| formula, including at singular matrices. -/ | |
| theorem continuous_mooreDifferential (n : β) : | |
| Continuous (fun p : Matrix (Fin n) (Fin n) (Quaternion β) Γ | |
| Matrix (Fin n) (Fin n) (Quaternion β) β¦ mooreDifferential n p.1 p.2) := by | |
| unfold mooreDifferential pfaffianDifferential | |
| apply Complex.continuous_re.comp | |
| apply continuous_const.mul | |
| apply continuous_finsetSum | |
| intro Ο _ | |
| apply continuous_const.mul | |
| apply continuous_finsetSum | |
| intro i _ | |
| apply Continuous.mul | |
| Β· apply continuous_finsetProd | |
| intro j _ | |
| exact (continuous_skewComplexify_entry (Ο (j, 0)) (Ο (j, 1))).comp continuous_fst | |
| Β· exact (continuous_skewComplexify_entry (Ο (i, 0)) (Ο (i, 1))).comp continuous_snd | |
| /-- Even at a singular positive semidefinite background, the Moore cofactor | |
| functional is nonnegative on every positive semidefinite direction. -/ | |
| theorem mooreDifferential_nonneg_of_posSemidef {n : β} | |
| (A D : Matrix (Fin n) (Fin n) (Quaternion β)) | |
| (hA : (complexify A).PosSemidef) (hD : (complexify D).PosSemidef) : | |
| 0 β€ mooreDifferential n A D := by | |
| have hi : Continuous (fun t : β β¦ | |
| (A + t β’ (1 : Matrix (Fin n) (Fin n) (Quaternion β)), D)) := | |
| (continuous_const.add (continuous_id.smul continuous_const)).prodMk continuous_const | |
| have hc : Continuous (fun t : β β¦ mooreDifferential n (A + t β’ 1) D) := | |
| (continuous_mooreDifferential n).comp | |
| (f := fun t : β β¦ (A + t β’ (1 : Matrix (Fin n) (Fin n) (Quaternion β)), D)) hi | |
| have ht : Tendsto (fun t : β β¦ mooreDifferential n (A + t β’ 1) D) (π[>] 0) | |
| (π (mooreDifferential n (A + (0 : β) β’ 1) D)) := | |
| hc.continuousAt.tendsto.mono_left nhdsWithin_le_nhds | |
| have hpos : βαΆ t : β in π[>] 0, 0 β€ mooreDifferential n (A + t β’ 1) D := by | |
| filter_upwards [self_mem_nhdsWithin] with t ht | |
| exact mooreDifferential_nonneg_of_posDef _ _ (complexify_add_pos_identity A hA ht) hD | |
| simpa only [zero_smul, add_zero] using ge_of_tendsto ht hpos | |
| end OAI.LinearAlgebra.Moore | |