cfahlgren1/math / lean /OAI /Analysis /MatrixSigning /Matrices /RationalPSDDecision.lean
cfahlgren1's picture
download
raw
699 Bytes
import Mathlib
import OAI.Analysis.MatrixSigning.Matrices.EliminationCompleteness
namespace OAI
section
namespace KS.W17
open Matrix
theorem rationalNegativeWitness_none_iff_psd (n : ℕ)
(M : Matrix (Fin n) (Fin n) ℚ) (hM : M.IsSymm) :
rationalNegativeWitness n M = none ↔
(M.map (fun q : ℚ => (q : ℝ))).PosSemidef := by
constructor
· exact rationalNegativeWitness_none_psd n M hM
· intro hPSD
cases ho : rationalNegativeWitness n M with
| none => rfl
| some q =>
have hs := computedPSDSeparator_separates n M hM q ho
have hn := hs.2 (M.map (fun r : ℚ => (r : ℝ))) hPSD
exact (not_lt_of_ge hn hs.1).elim
end KS.W17
end
end OAI

Xet Storage Details

Size:
699 Bytes
·
Xet hash:
52906dda9b725c97ca003bc8bfcf0f04d772516917f12b0d985fab9f00bb33cd

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.