Download lean/OAI/Combinatorics/MatchingPSD/AffineModel.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 637 Bytes
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Combinatorics/MatchingPSD/AffineModel.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/OAI/Combinatorics/MatchingPSD/AffineModel.lean
-
curl -L -o AffineModel.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Combinatorics/MatchingPSD/AffineModel.lean
637 Bytes
| 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 | |