Buckets:
| import Mathlib | |
| namespace OAI | |
| noncomputable section | |
| open Set MeasureTheory | |
| open scoped BigOperators ContDiff ENNReal | |
| namespace AffineBernstein | |
| section BlockNewton | |
| open scoped Matrix | |
| variable {ι : Type*} [Fintype ι] [DecidableEq ι] | |
| lemma adjugate_fromBlocks_scalar (A : Matrix ι ι ℝ) (t : ℝ) (i j : ι) : | |
| (Matrix.fromBlocks A 0 0 (t • (1 : Matrix Unit Unit ℝ))).adjugate | |
| (Sum.inl i) (Sum.inl j) = t * A.adjugate i j := by | |
| rw [Matrix.adjugate_apply, Matrix.adjugate_apply] | |
| have hh : (Matrix.fromBlocks A 0 0 (t • (1 : Matrix Unit Unit ℝ))).updateRow | |
| (Sum.inl j) (Pi.single (Sum.inl i) 1) = | |
| Matrix.fromBlocks (A.updateRow j (Pi.single i 1)) 0 0 (t • (1 : Matrix Unit Unit ℝ)) := by | |
| ext l m | |
| cases l with | |
| | inl l => | |
| cases m with | |
| | inl m => simp [Matrix.updateRow_apply, Pi.single_apply, Matrix.fromBlocks] | |
| | inr m => simp [Matrix.updateRow_apply, Matrix.fromBlocks] | |
| | inr l => | |
| cases m <;> simp [Matrix.updateRow_apply, Matrix.fromBlocks] | |
| rw [hh, Matrix.det_fromBlocks_zero₂₁] | |
| simp [mul_comm] | |
| end BlockNewton | |
| open scoped Matrix | |
| variable {ι : Type*} [Fintype ι] [DecidableEq ι] | |
| lemma adjugate_eq_det_smul_transpose {Q : Matrix ι ι ℝ} (hQ : Q * Qᵀ = 1) : | |
| Q.adjugate = Q.det • Qᵀ := by | |
| calc | |
| Q.adjugate = Q.adjugate * (Q * Qᵀ) := by rw [hQ, Matrix.mul_one] | |
| _ = (Q.adjugate * Q) * Qᵀ := (Matrix.mul_assoc _ _ _).symm | |
| _ = Q.det • Qᵀ := by rw [Matrix.adjugate_mul, Matrix.smul_mul, Matrix.one_mul] | |
| lemma adjugate_conjugate_orthogonal {Q : Matrix ι ι ℝ} | |
| (hQ : Q * Qᵀ = 1) (hQt : Qᵀ * Q = 1) (A : Matrix ι ι ℝ) : | |
| (Qᵀ * A * Q).adjugate = Qᵀ * A.adjugate * Q := by | |
| have hd : Q.det * Q.det = 1 := by | |
| have hh := congrArg Matrix.det hQ | |
| simpa only [Matrix.det_mul, Matrix.det_transpose, Matrix.det_one] using hh | |
| rw [Matrix.adjugate_mul_distrib, Matrix.adjugate_mul_distrib, | |
| adjugate_eq_det_smul_transpose hQ, | |
| adjugate_eq_det_smul_transpose (Q := Qᵀ) (by simpa using hQt), | |
| Matrix.transpose_transpose, Matrix.det_transpose] | |
| simp only [Matrix.smul_mul, Matrix.mul_smul, smul_smul, hd, one_smul, Matrix.mul_assoc] | |
| end AffineBernstein | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 2.22 kB
- Xet hash:
- 6fe835916d738a10ba09268e04acc8397c8e7010f1375d8af56bf97ed73ddcf8
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.