Buckets:
| import OAI.Analysis.HyperbolicCones.Model | |
| namespace OAI | |
| noncomputable section | |
| open Matrix | |
| open scoped Matrix.Norms.L2Operator MatrixOrder | |
| namespace Paper256 | |
| theorem outer_toEuclideanCLM {n : β} (v : Vec n) : | |
| Matrix.toEuclideanCLM (π := β) (n := Fin n) (outer v) = | |
| InnerProductSpace.rankOne β v v := by | |
| have h : Matrix.toEuclideanLin.symm | |
| (InnerProductSpace.rankOne β v v).toLinearMap = outer v := by | |
| rw [InnerProductSpace.symm_toEuclideanLin_rankOne] | |
| ext i j | |
| simp [outer, Matrix.vecMulVec_apply] | |
| apply ContinuousLinearMap.ext | |
| intro x | |
| change Matrix.toEuclideanLin (outer v) x = _ | |
| rw [β h, LinearEquiv.apply_symm_apply] | |
| rfl | |
| theorem outer_mul_self {n : β} (v : Vec n) (hv : βvβ = 1) : | |
| outer v * outer v = outer v := by | |
| apply (Matrix.toEuclideanCLM (π := β) (n := Fin n)).injective | |
| change Matrix.toEuclideanCLM (π := β) (outer v * outer v) = | |
| Matrix.toEuclideanCLM (π := β) (outer v) | |
| rw [map_mul, outer_toEuclideanCLM] | |
| exact InnerProductSpace.isIdempotentElem_rankOne_self hv | |
| theorem outer_isStarProjection {n : β} (v : Vec n) (hv : βvβ = 1) : | |
| IsStarProjection (outer v) := β¨outer_mul_self v hv, (outerSym v).propertyβ© | |
| theorem one_sub_outer_posSemidef {n : β} (v : Vec n) (hv : βvβ = 1) : | |
| (1 - outer v).PosSemidef := (outer_isStarProjection v hv).one_sub.nonneg.posSemidef | |
| theorem norm_outer_unit {n : β} (v : Vec n) (hv : βvβ = 1) : βouter vβ = 1 := by | |
| rw [Matrix.cstar_norm_def, outer_toEuclideanCLM, InnerProductSpace.norm_rankOne, hv, | |
| mul_one] | |
| theorem kernelProjection_one_sub_of_isStarProjection {n : β} (P : Mat n β) | |
| (hP : IsStarProjection P) : kernelProjection (1 - P) = P := by | |
| let Ο := Matrix.toEuclideanCLM (π := β) (n := Fin n) | |
| have hp : IsStarProjection (Ο P) := hP.map Ο | |
| have hrange : (Ο P).range = (Ο (1 - P)).ker := by | |
| rw [map_sub, map_one] | |
| exact LinearMap.IsIdempotentElem.range_eq_ker_one_sub | |
| (ContinuousLinearMap.IsIdempotentElem.toLinearMap hp.isIdempotentElem) | |
| have hproj : Ο P = (Ο (1 - P)).ker.starProjection := by | |
| apply (ContinuousLinearMap.IsStarProjection.ext_iff hp | |
| (isStarProjection_starProjection (U := (Ο (1 - P)).ker))).mpr | |
| rw [Submodule.range_starProjection] | |
| exact hrange | |
| apply Ο.injective | |
| change Ο (kernelProjection (1 - P)) = Ο P | |
| rw [hproj] | |
| apply ContinuousLinearMap.ext | |
| intro x | |
| change Matrix.toEuclideanLin (kernelProjection (1 - P)) x = _ | |
| rw [kernelProjection, LinearEquiv.apply_symm_apply] | |
| rfl | |
| theorem kernelProjection_one_sub_outer {n : β} (v : Vec n) (hv : βvβ = 1) : | |
| kernelProjection (1 - outer v) = outer v := | |
| kernelProjection_one_sub_of_isStarProjection (outer v) (outer_isStarProjection v hv) | |
| theorem outer_mul_mul_outer {n : β} (u : Vec n) (A : Mat n β) : | |
| outer u * A * outer u = | |
| (dotProduct (fun i => u i) (A *α΅₯ fun i => u i)) β’ outer u := by | |
| change Matrix.vecMulVec (fun i => u i) (fun i => u i) * A * | |
| Matrix.vecMulVec (fun i => u i) (fun i => u i) = _ | |
| rw [Matrix.vecMulVec_mul, Matrix.vecMulVec_mul_vecMulVec] | |
| ext i j | |
| simp only [Matrix.vecMulVec_apply, Pi.smul_apply, Matrix.smul_apply, smul_eq_mul, | |
| outer, Matrix.dotProduct_mulVec] | |
| ring | |
| end Paper256 | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 3.28 kB
- Xet hash:
- 2cbaf5421a7d8a273bce315b662806ac1f64a599ab278667d26167a5bbcd635d
Β·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.