File size: 637 Bytes
4a56cd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | import Mathlib
import OAI.Combinatorics.MatchingPSD.Model
namespace OAI
namespace PerfectMatchingPSD
noncomputable def matchingPoint {n : β} (M : PerfectMatching n) : Edge n β β := by
classical
exact fun e => if e β M.1 then 1 else 0
noncomputable def matchingPolytope (n : β) : Set (Edge n β β) :=
convexHull β (Set.range (matchingPoint (n := n)))
def HasAffineLift (n r : β) : Prop :=
β (L : AffineSubspace β (Matrix (Fin r) (Fin r) β))
(T : Matrix (Fin r) (Fin r) β βα΅[β] (Edge n β β)),
T '' {X | X β L β§ X.PosSemidef} = matchingPolytope n
end PerfectMatchingPSD
end OAI
|