Generalizing Mathlib’s Graph structure to hypergraphs
Determine how to extend the Mathlib Graph structure, which currently uses a vertex carrier set and a binary incidence predicate IsLink: β → α → α → Prop, to support hypergraphs, for example by redefining the incidence predicate as IsLink: β → Set α → Prop.
References
As for hypergraphs, we would likely have to generalize the definition of Graph in some way, perhaps by having the IsLink relation defined as β → Set α → Prop. This is still an open question.
— Structuring Definitions in Mathematical Libraries
(2509.10828 - Gusakov et al., 13 Sep 2025) in Section III-D (Graphs), final paragraph