Download data/lean/OAI/LinearAlgebra/Moore/Smooth.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 3.71 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/LinearAlgebra/Moore/Smooth.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/LinearAlgebra/Moore/Smooth.lean
-
curl -L -o Smooth.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/LinearAlgebra/Moore/Smooth.lean
3.71 kB
| import OAI.LinearAlgebra.Moore.Cofactor | |
| /-! Smoothness of the signed determinant, its differential, and its cofactor, | |
| including at singular matrices. -/ | |
| noncomputable section | |
| namespace OAI.LinearAlgebra.Moore | |
| open Matrix | |
| open scoped ContDiff Matrix.Norms.Elementwise | |
| theorem contDiff_skewComplexify_entry {n : β} (k : ββΟ) (i j : Fin n Γ Fin 2) : | |
| ContDiff β k (fun A : Matrix (Fin n) (Fin n) (Quaternion β) β¦ skewComplexify A i j) := by | |
| exact (skewQuaternionEntryCLM i.2 j.2).contDiff.comp | |
| (contDiff_apply_apply β (Quaternion β) i.1 j.1) | |
| theorem contDiff_mooreDet (n : β) (k : ββΟ) : ContDiff β k (mooreDet n) := by | |
| change ContDiff β k (Complex.reCLM β fun A : Matrix (Fin n) (Fin n) (Quaternion β) β¦ | |
| pfaffian n (skewComplexify A)) | |
| apply (Complex.reCLM.contDiff : ContDiff β k Complex.reCLM).comp | |
| unfold pfaffian | |
| apply contDiff_const.mul | |
| apply ContDiff.sum | |
| intro Ο _ | |
| apply contDiff_const.mul | |
| apply contDiff_prod | |
| intro i _ | |
| exact contDiff_skewComplexify_entry k (Ο (i, 0)) (Ο (i, 1)) | |
| theorem contDiff_mooreDifferential_left (n : β) (k : ββΟ) | |
| (D : Matrix (Fin n) (Fin n) (Quaternion β)) : | |
| ContDiff β k (fun A β¦ mooreDifferential n A D) := by | |
| change ContDiff β k (Complex.reCLM β fun A : Matrix (Fin n) (Fin n) (Quaternion β) β¦ | |
| pfaffianDifferential n (skewComplexify A) (skewComplexify D)) | |
| apply (Complex.reCLM.contDiff : ContDiff β k Complex.reCLM).comp | |
| unfold pfaffianDifferential | |
| apply contDiff_const.mul | |
| apply ContDiff.sum | |
| intro Ο _ | |
| apply contDiff_const.mul | |
| apply ContDiff.sum | |
| intro i _ | |
| apply ContDiff.mul _ contDiff_const | |
| apply contDiff_prod | |
| intro j _ | |
| exact contDiff_skewComplexify_entry k (Ο (j, 0)) (Ο (j, 1)) | |
| theorem quaternionDualVector_eq (L : Quaternion β ββ[β] β) : | |
| quaternionDualVector L = L 1 β’ (1 : Quaternion β) + | |
| L β¨0, 1, 0, 0β© β’ (β¨0, 1, 0, 0β© : Quaternion β) + | |
| L β¨0, 0, 1, 0β© β’ (β¨0, 0, 1, 0β© : Quaternion β) + | |
| L β¨0, 0, 0, 1β© β’ (β¨0, 0, 0, 1β© : Quaternion β) := by | |
| ext <;> simp [quaternionDualVector] | |
| theorem contDiff_rawCofactor (n : β) (k : ββΟ) : ContDiff β k (rawCofactor n) := by | |
| apply contDiff_pi.mpr | |
| intro i | |
| apply contDiff_pi.mpr | |
| intro j | |
| simp only [rawCofactor, quaternionDualVector_eq] | |
| apply quaternionStarCLM.contDiff.comp | |
| change ContDiff β k (fun A β¦ | |
| mooreDifferential n A (single j i 1) β’ (1 : Quaternion β) + | |
| mooreDifferential n A (single j i β¨0, 1, 0, 0β©) β’ (β¨0, 1, 0, 0β© : Quaternion β) + | |
| mooreDifferential n A (single j i β¨0, 0, 1, 0β©) β’ (β¨0, 0, 1, 0β© : Quaternion β) + | |
| mooreDifferential n A (single j i β¨0, 0, 0, 1β©) β’ (β¨0, 0, 0, 1β© : Quaternion β)) | |
| exact (((contDiff_mooreDifferential_left n k _).smul contDiff_const).add | |
| ((contDiff_mooreDifferential_left n k _).smul contDiff_const) |>.add | |
| ((contDiff_mooreDifferential_left n k _).smul contDiff_const)).add | |
| ((contDiff_mooreDifferential_left n k _).smul contDiff_const) | |
| theorem contDiff_mooreCofactor (n : β) (k : ββΟ) : ContDiff β k (mooreCofactor n) := by | |
| apply contDiff_pi.mpr | |
| intro i | |
| apply contDiff_pi.mpr | |
| intro j | |
| change ContDiff β k (fun A β¦ (1 / 2 : β) β’ | |
| (rawCofactor n A i j + star (rawCofactor n A j i))) | |
| have hβ := (contDiff_pi.mp (contDiff_pi.mp (contDiff_rawCofactor n k) i)) j | |
| have hβ := quaternionStarCLM.contDiff.comp | |
| ((contDiff_pi.mp (contDiff_pi.mp (contDiff_rawCofactor n k) j)) i) | |
| exact (contDiff_const : ContDiff β k (fun _ : Matrix (Fin n) (Fin n) (Quaternion β) β¦ | |
| (1 / 2 : β))).smul (hβ.add hβ) | |
| end OAI.LinearAlgebra.Moore | |