Spanning 2-uniform hypergraph
Lax683916.SpanningTwoUniformHypergraphs · concepts/Lax683916/SpanningTwoUniformHypergraphs.lean · lax-683916
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Definition
A spanning 2-uniform hypergraph on has all elements of as vertices and every hyperedge contains exactly two vertices.
Concept map
Lean source view on GitHub
| 1 | import Mathlib.Combinatorics.Hypergraph.Basic |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: Spanning 2-uniform hypergraph |
| 6 | type: definition |
| 7 | --- |
| 8 | A spanning 2-uniform hypergraph on `V` has all elements of `V` as vertices |
| 9 | and every hyperedge contains exactly two vertices. |
| 10 | |
| 11 | # Formalization notes |
| 12 | |
| 13 | Spanning is stated by equality with `Set.univ`, because `Hypergraph V` keeps |
| 14 | an explicit vertex set inside the ambient type. A separate looplessness field |
| 15 | would be derivable: every edge has cardinality two and therefore cannot be a |
| 16 | singleton. |
| 17 | -/ |
| 18 | |
| 19 | namespace Lax683916.SpanningTwoUniformHypergraphs |
| 20 | |
| 21 | /-- A hypergraph with full vertex set and two-element edges. -/ |
| 22 | structure SpanningTwoUniformHypergraph (V : Type*) where |
| 23 | /-- The underlying hypergraph. -/ |
| 24 | hypergraph : Hypergraph V |
| 25 | /-- Every element of the ambient type is a vertex. -/ |
| 26 | spanning : hypergraph.vertexSet = Set.univ |
| 27 | /-- Every hyperedge contains exactly two vertices. -/ |
| 28 | twoUniform : ∀ e ∈ hypergraph.edgeSet, Set.ncard e = 2 |
| 29 | |
| 30 | end Lax683916.SpanningTwoUniformHypergraphs |
| 31 |
Formalization notes
Spanning is stated by equality with , because keeps an explicit vertex set inside the ambient type. A separate looplessness field would be derivable: every edge has cardinality two and therefore cannot be a singleton.
Builds on
none
From Mathlib
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments