cfahlgren1's picture
download
raw
3.28 kB
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.