Download data/lean/OAI/Combinatorics/BalancedRyser/Hypergraph.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 975 Bytes
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Combinatorics/BalancedRyser/Hypergraph.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Combinatorics/BalancedRyser/Hypergraph.lean
-
curl -L -o Hypergraph.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Combinatorics/BalancedRyser/Hypergraph.lean
975 Bytes
| import Mathlib.Combinatorics.Hypergraph.Basic | |
| import Mathlib.Data.Finset.Card | |
| import Mathlib.Data.Finset.Pi | |
| import Mathlib.Data.Nat.Prime.Defs | |
| import OAI.Combinatorics.BalancedRyser.Model | |
| namespace OAI | |
| namespace Balanced | |
| open scoped _root_.Balanced | |
| namespace PartiteHypergraph | |
| variable {r n : β} | |
| def part (i : Fin r) : Finset (Vertex r n) := | |
| Finset.univ.image (fun v : Fin n => (i, v)) | |
| def edgeVertices (e : Fin r β Fin n) : Finset (Vertex r n) := | |
| Finset.univ.image (fun i : Fin r => (i, e i)) | |
| def toHypergraph (H : PartiteHypergraph r n) : Hypergraph (Vertex r n) where | |
| vertexSet := Set.univ | |
| edgeSet := {E | β e β H.edges, E = β(edgeVertices e)} | |
| subset_vertexSet_of_mem_edgeSet' := fun _ _ => Set.subset_univ _ | |
| def IsMatching (H : PartiteHypergraph r n) (M : Finset (Fin r β Fin n)) : Prop := | |
| M β H.edges β§ | |
| β e β M, β f β M, e β f β Disjoint (edgeVertices e) (edgeVertices f) | |
| end PartiteHypergraph | |
| end Balanced | |
| end OAI | |