Download lean/OAI/Combinatorics/HadwigerMatching/Definitions.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 868 Bytes
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Combinatorics/HadwigerMatching/Definitions.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/OAI/Combinatorics/HadwigerMatching/Definitions.lean
-
curl -L -o Definitions.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Combinatorics/HadwigerMatching/Definitions.lean
868 Bytes
| import Mathlib.Combinatorics.SimpleGraph.Clique | |
| namespace OAI | |
| namespace HadwigerMatching | |
| universe u | |
| variable {V : Type u} | |
| /-- A finite matching whose edges are pairwise touching: each member is a | |
| two-vertex clique, and distinct members are disjoint and joined by an edge. -/ | |
| def IsTouchingMatching (G : SimpleGraph V) (M : Finset (Finset V)) : Prop := | |
| (∀ e ∈ M, e.card = 2 ∧ G.IsClique (e : Set V)) ∧ | |
| (∀ e ∈ M, ∀ f ∈ M, e ≠ f → Disjoint e f) ∧ | |
| (∀ e ∈ M, ∀ f ∈ M, e ≠ f → | |
| ∃ v ∈ e, ∃ w ∈ f, G.Adj v w) | |
| /-- The supremum of the cardinalities of pairwise touching matchings. | |
| For finite vertex types, this supremum is attained. -/ | |
| noncomputable def connectedMatchingNumber (G : SimpleGraph V) : ℕ := | |
| sSup {n : ℕ | ∃ M : Finset (Finset V), IsTouchingMatching G M ∧ M.card = n} | |
| end HadwigerMatching | |
| end OAI | |