Hypergraph representation of simple graphs
Lax683916.HypergraphRepresentation · concepts/Lax683916/HypergraphRepresentation.lean · lax-683916
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Theorem
Simple graphs on are equivalent to spanning 2-uniform hypergraphs on . Graph edges become two-element hyperedges and no vertex is lost.
Concept map
Lean source view on GitHub
| 1 | import Mathlib.Combinatorics.SimpleGraph.Basic |
| 2 | import Lax683916.SpanningTwoUniformHypergraphs |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: Hypergraph representation of simple graphs |
| 7 | type: theorem |
| 8 | --- |
| 9 | Simple graphs on `V` are equivalent to spanning 2-uniform hypergraphs on |
| 10 | `V`. Graph edges become two-element hyperedges and no vertex is lost. |
| 11 | |
| 12 | # Formalization notes |
| 13 | |
| 14 | The representation is an equivalence of types. Spanning fixes the explicit |
| 15 | hypergraph vertex set, while 2-uniformity identifies the hyperedge set with |
| 16 | the ordinary unordered edges of a simple graph. |
| 17 | -/ |
| 18 | |
| 19 | namespace Lax683916.HypergraphRepresentation |
| 20 | |
| 21 | open Lax683916.SpanningTwoUniformHypergraphs |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | /-- An equivalence that sends graph edges to two-element hyperedges. -/ |
| 26 | structure RepresentationEquiv (V : Type u) where |
| 27 | /-- The equivalence between the two representation types. -/ |
| 28 | toEquiv : SimpleGraph V ≃ SpanningTwoUniformHypergraph V |
| 29 | /-- A pair is a hyperedge in the image exactly when its two elements are adjacent. -/ |
| 30 | map_pair : ∀ (G : SimpleGraph V) (u v : V), |
| 31 | {u, v} ∈ (toEquiv G).hypergraph.edgeSet ↔ G.Adj u v |
| 32 | |
| 33 | /-- Simple graphs and spanning 2-uniform hypergraphs on the same vertices are equivalent. -/ |
| 34 | axiom simpleGraphEquiv (V : Type u) : |
| 35 | Nonempty (RepresentationEquiv V) |
| 36 | |
| 37 | end Lax683916.HypergraphRepresentation |
| 38 |
Formalization notes
The representation is an equivalence of types. Spanning fixes the explicit hypergraph vertex set, while 2-uniformity identifies the hyperedge set with the ordinary unordered edges of a simple graph.
Used by
none
From Mathlib
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments