Download data/lean/OAI/LinearAlgebra/Moore/MooreRankDeterminant.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 2.56 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/LinearAlgebra/Moore/MooreRankDeterminant.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/LinearAlgebra/Moore/MooreRankDeterminant.lean
-
curl -L -o MooreRankDeterminant.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/LinearAlgebra/Moore/MooreRankDeterminant.lean
2.56 kB
| import OAI.LinearAlgebra.Moore.MooreRank | |
| import OAI.LinearAlgebra.Moore.MooreRankSpectrum | |
| import OAI.Analysis.PDE.Dirichlet.PositiveDeterminant | |
| noncomputable section | |
| open scoped Matrix ComplexOrder | |
| namespace OAI.LinearAlgebra.Moore | |
| /-- A rank-sensitive scalar-shift estimate for the signed Moore determinant. | |
| The rank premise is the genuine quaternion factorization rank bound. -/ | |
| theorem mooreDet_add_scalar_le_of_rank {m r : β} {M a : β} | |
| (B : Matrix (Fin m) (Fin m) (Quaternion β)) | |
| (hB : (complexify B).PosSemidef) | |
| (hupper : (M β’ (1 : Matrix (Fin m Γ Fin 2) (Fin m Γ Fin 2) β) | |
| - complexify B).PosSemidef) | |
| (hr : QuaternionRankLE r B) (hrm : r β€ m) (hM : 0 β€ M) (ha : 0 β€ a) : | |
| mooreDet m (B + a β’ 1) β€ (M + a) ^ r * a ^ (m - r) := by | |
| have hshift : (complexify (B + a β’ 1)).PosSemidef := by | |
| rw [complexify_add, complexify_real_smul, complexify_one] | |
| exact hB.add (Matrix.PosSemidef.one.smul ha) | |
| have hsq := OAI.Analysis.PDE.Dirichlet.mooreDet_sq_eq_complexify_det_of_posSemidef | |
| (B + a β’ 1) hshift | |
| have hbound := complex_det_add_scalar_le_of_rank (complexify B) hB hupper | |
| hr.complexify_rank_le (r := 2 * r) (by simpa [Nat.mul_comm] using Nat.mul_le_mul_left 2 hrm) | |
| hM ha | |
| rw [complexify_add, complexify_real_smul, complexify_one] at hsq | |
| have hpow : (M + a) ^ (2 * r) * a ^ (Fintype.card (Fin m Γ Fin 2) - 2 * r) = | |
| ((M + a) ^ r * a ^ (m - r)) ^ 2 := by | |
| have he : Fintype.card (Fin m Γ Fin 2) - 2 * r = (m - r) * 2 := by | |
| simp only [Fintype.card_prod, Fintype.card_fin] | |
| omega | |
| rw [he, mul_pow, β pow_mul, β pow_mul] | |
| simp [Nat.mul_comm] | |
| rw [hpow, β hsq] at hbound | |
| have hp : 0 β€ (M + a) ^ r * a ^ (m - r) := | |
| mul_nonneg (pow_nonneg (add_nonneg hM ha) _) (pow_nonneg ha _) | |
| nlinarith | |
| /-- Rank below the quaternion matrix dimension forces the Moore determinant | |
| of a positive-semidefinite matrix to vanish. -/ | |
| theorem mooreDet_eq_zero_of_rank_lt {m r : β} | |
| (B : Matrix (Fin m) (Fin m) (Quaternion β)) | |
| (hB : (complexify B).PosSemidef) (hr : QuaternionRankLE r B) (hrm : r < m) : | |
| mooreDet m B = 0 := by | |
| have hdet : (complexify B).det = 0 := by | |
| by_contra hn | |
| have he := Matrix.rank_of_det_ne_zero hn | |
| have hb := hr.complexify_rank_le | |
| rw [he] at hb | |
| simp only [Fintype.card_prod, Fintype.card_fin] at hb | |
| omega | |
| have hs := OAI.Analysis.PDE.Dirichlet.mooreDet_sq_eq_complexify_det_of_posSemidef B hB | |
| rw [hdet, Complex.zero_re] at hs | |
| nlinarith [sq_nonneg (mooreDet m B)] | |
| end OAI.LinearAlgebra.Moore | |