T-Graph
Lax630294.TGraph · concepts/Lax630294/TGraph.lean · lax-630294
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Definition
A -witness of a multigraph is a pair of spanning trees of that share at most one edge. A multigraph is a -graph if it has a -witness.
Concept map
In the paper
- page 4 of this submission's paper
Lean source view on GitHub
| 1 | import Lax630294.SpanningStructures |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: T-Graph |
| 6 | type: definition |
| 7 | --- |
| 8 | |
| 9 | A *`T`-witness* of a multigraph `G` is a pair of spanning trees of `G` that share |
| 10 | at most one edge. A multigraph is a *`T`-graph* if it has a `T`-witness. |
| 11 | |
| 12 | # Formalization notes |
| 13 | |
| 14 | The two trees are given by their edge sets `T₁` and `T₂`; they may coincide only |
| 15 | when they have at most one edge in common, that is, when `G` has at most two |
| 16 | vertices. |
| 17 | -/ |
| 18 | |
| 19 | namespace Lax630294.TGraph |
| 20 | |
| 21 | open Graph Lax630294.SpanningStructures |
| 22 | |
| 23 | variable {α β : Type*} |
| 24 | |
| 25 | /-- `T₁, T₂` are spanning trees of `G` sharing at most one edge. -/ |
| 26 | def IsTWitness (G : Graph α β) (T₁ T₂ : Set β) : Prop := |
| 27 | IsSpanningTree G T₁ ∧ IsSpanningTree G T₂ ∧ (T₁ ∩ T₂).encard ≤ 1 |
| 28 | |
| 29 | /-- `G` is a `T`-graph: it has a `T`-witness. -/ |
| 30 | def IsTGraph (G : Graph α β) : Prop := |
| 31 | ∃ T₁ T₂ : Set β, IsTWitness G T₁ T₂ |
| 32 | |
| 33 | end Lax630294.TGraph |
| 34 |
Formalization notes
The two trees are given by their edge sets and ; they may coincide only when they have at most one edge in common, that is, when has at most two vertices.
Builds on
From Mathlib
none
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments