Theorem List for Intuitionistic Logic Explorer - 16101-16200 *Has distinct variable
group(s)
| Type | Label | Description |
| Statement |
| |
| Theorem | mul2sq 16101 |
Fibonacci's identity (actually due to Diophantus). The product of two
sums of two squares is also a sum of two squares. We can take advantage
of Gaussian integers here to trivialize the proof. (Contributed by
Mario Carneiro, 19-Jun-2015.)
|
| ⊢ 𝑆 = ran (𝑤 ∈ ℤ[i] ↦ ((abs‘𝑤)↑2)) ⇒ ⊢ ((𝐴 ∈ 𝑆 ∧ 𝐵 ∈ 𝑆) → (𝐴 · 𝐵) ∈ 𝑆) |
| |
| Theorem | 2sqlem3 16102 |
Lemma for 2sqlem5 16104. (Contributed by Mario Carneiro,
20-Jun-2015.)
|
| ⊢ 𝑆 = ran (𝑤 ∈ ℤ[i] ↦ ((abs‘𝑤)↑2)) & ⊢ (𝜑 → 𝑁 ∈ ℕ) & ⊢ (𝜑 → 𝑃 ∈ ℙ) & ⊢ (𝜑 → 𝐴 ∈ ℤ) & ⊢ (𝜑 → 𝐵 ∈ ℤ) & ⊢ (𝜑 → 𝐶 ∈ ℤ) & ⊢ (𝜑 → 𝐷 ∈ ℤ) & ⊢ (𝜑 → (𝑁 · 𝑃) = ((𝐴↑2) + (𝐵↑2))) & ⊢ (𝜑 → 𝑃 = ((𝐶↑2) + (𝐷↑2))) & ⊢ (𝜑 → 𝑃 ∥ ((𝐶 · 𝐵) + (𝐴 · 𝐷))) ⇒ ⊢ (𝜑 → 𝑁 ∈ 𝑆) |
| |
| Theorem | 2sqlem4 16103 |
Lemma for 2sqlem5 16104. (Contributed by Mario Carneiro,
20-Jun-2015.)
|
| ⊢ 𝑆 = ran (𝑤 ∈ ℤ[i] ↦ ((abs‘𝑤)↑2)) & ⊢ (𝜑 → 𝑁 ∈ ℕ) & ⊢ (𝜑 → 𝑃 ∈ ℙ) & ⊢ (𝜑 → 𝐴 ∈ ℤ) & ⊢ (𝜑 → 𝐵 ∈ ℤ) & ⊢ (𝜑 → 𝐶 ∈ ℤ) & ⊢ (𝜑 → 𝐷 ∈ ℤ) & ⊢ (𝜑 → (𝑁 · 𝑃) = ((𝐴↑2) + (𝐵↑2))) & ⊢ (𝜑 → 𝑃 = ((𝐶↑2) + (𝐷↑2))) ⇒ ⊢ (𝜑 → 𝑁 ∈ 𝑆) |
| |
| Theorem | 2sqlem5 16104 |
Lemma for 2sq . If a number that is a sum of two squares is divisible
by a prime that is a sum of two squares, then the quotient is a sum of
two squares. (Contributed by Mario Carneiro, 20-Jun-2015.)
|
| ⊢ 𝑆 = ran (𝑤 ∈ ℤ[i] ↦ ((abs‘𝑤)↑2)) & ⊢ (𝜑 → 𝑁 ∈ ℕ) & ⊢ (𝜑 → 𝑃 ∈ ℙ) & ⊢ (𝜑 → (𝑁 · 𝑃) ∈ 𝑆)
& ⊢ (𝜑 → 𝑃 ∈ 𝑆) ⇒ ⊢ (𝜑 → 𝑁 ∈ 𝑆) |
| |
| Theorem | 2sqlem6 16105* |
Lemma for 2sq . If a number that is a sum of two squares is divisible
by a number whose prime divisors are all sums of two squares, then the
quotient is a sum of two squares. (Contributed by Mario Carneiro,
20-Jun-2015.)
|
| ⊢ 𝑆 = ran (𝑤 ∈ ℤ[i] ↦ ((abs‘𝑤)↑2)) & ⊢ (𝜑 → 𝐴 ∈ ℕ) & ⊢ (𝜑 → 𝐵 ∈ ℕ) & ⊢ (𝜑 → ∀𝑝 ∈ ℙ (𝑝 ∥ 𝐵 → 𝑝 ∈ 𝑆)) & ⊢ (𝜑 → (𝐴 · 𝐵) ∈ 𝑆) ⇒ ⊢ (𝜑 → 𝐴 ∈ 𝑆) |
| |
| Theorem | 2sqlem7 16106* |
Lemma for 2sq . (Contributed by Mario Carneiro, 19-Jun-2015.)
|
| ⊢ 𝑆 = ran (𝑤 ∈ ℤ[i] ↦ ((abs‘𝑤)↑2)) & ⊢ 𝑌 = {𝑧 ∣ ∃𝑥 ∈ ℤ ∃𝑦 ∈ ℤ ((𝑥 gcd 𝑦) = 1 ∧ 𝑧 = ((𝑥↑2) + (𝑦↑2)))} ⇒ ⊢ 𝑌 ⊆ (𝑆 ∩ ℕ) |
| |
| Theorem | 2sqlem8a 16107* |
Lemma for 2sqlem8 16108. (Contributed by Mario Carneiro,
4-Jun-2016.)
|
| ⊢ 𝑆 = ran (𝑤 ∈ ℤ[i] ↦ ((abs‘𝑤)↑2)) & ⊢ 𝑌 = {𝑧 ∣ ∃𝑥 ∈ ℤ ∃𝑦 ∈ ℤ ((𝑥 gcd 𝑦) = 1 ∧ 𝑧 = ((𝑥↑2) + (𝑦↑2)))} & ⊢ (𝜑 → ∀𝑏 ∈ (1...(𝑀 − 1))∀𝑎 ∈ 𝑌 (𝑏 ∥ 𝑎 → 𝑏 ∈ 𝑆)) & ⊢ (𝜑 → 𝑀 ∥ 𝑁)
& ⊢ (𝜑 → 𝑁 ∈ ℕ) & ⊢ (𝜑 → 𝑀 ∈
(ℤ≥‘2))
& ⊢ (𝜑 → 𝐴 ∈ ℤ) & ⊢ (𝜑 → 𝐵 ∈ ℤ) & ⊢ (𝜑 → (𝐴 gcd 𝐵) = 1) & ⊢ (𝜑 → 𝑁 = ((𝐴↑2) + (𝐵↑2))) & ⊢ 𝐶 = (((𝐴 + (𝑀 / 2)) mod 𝑀) − (𝑀 / 2)) & ⊢ 𝐷 = (((𝐵 + (𝑀 / 2)) mod 𝑀) − (𝑀 / 2)) ⇒ ⊢ (𝜑 → (𝐶 gcd 𝐷) ∈ ℕ) |
| |
| Theorem | 2sqlem8 16108* |
Lemma for 2sq . (Contributed by Mario Carneiro, 20-Jun-2015.)
|
| ⊢ 𝑆 = ran (𝑤 ∈ ℤ[i] ↦ ((abs‘𝑤)↑2)) & ⊢ 𝑌 = {𝑧 ∣ ∃𝑥 ∈ ℤ ∃𝑦 ∈ ℤ ((𝑥 gcd 𝑦) = 1 ∧ 𝑧 = ((𝑥↑2) + (𝑦↑2)))} & ⊢ (𝜑 → ∀𝑏 ∈ (1...(𝑀 − 1))∀𝑎 ∈ 𝑌 (𝑏 ∥ 𝑎 → 𝑏 ∈ 𝑆)) & ⊢ (𝜑 → 𝑀 ∥ 𝑁)
& ⊢ (𝜑 → 𝑁 ∈ ℕ) & ⊢ (𝜑 → 𝑀 ∈
(ℤ≥‘2))
& ⊢ (𝜑 → 𝐴 ∈ ℤ) & ⊢ (𝜑 → 𝐵 ∈ ℤ) & ⊢ (𝜑 → (𝐴 gcd 𝐵) = 1) & ⊢ (𝜑 → 𝑁 = ((𝐴↑2) + (𝐵↑2))) & ⊢ 𝐶 = (((𝐴 + (𝑀 / 2)) mod 𝑀) − (𝑀 / 2)) & ⊢ 𝐷 = (((𝐵 + (𝑀 / 2)) mod 𝑀) − (𝑀 / 2)) & ⊢ 𝐸 = (𝐶 / (𝐶 gcd 𝐷)) & ⊢ 𝐹 = (𝐷 / (𝐶 gcd 𝐷)) ⇒ ⊢ (𝜑 → 𝑀 ∈ 𝑆) |
| |
| Theorem | 2sqlem9 16109* |
Lemma for 2sq . (Contributed by Mario Carneiro, 19-Jun-2015.)
|
| ⊢ 𝑆 = ran (𝑤 ∈ ℤ[i] ↦ ((abs‘𝑤)↑2)) & ⊢ 𝑌 = {𝑧 ∣ ∃𝑥 ∈ ℤ ∃𝑦 ∈ ℤ ((𝑥 gcd 𝑦) = 1 ∧ 𝑧 = ((𝑥↑2) + (𝑦↑2)))} & ⊢ (𝜑 → ∀𝑏 ∈ (1...(𝑀 − 1))∀𝑎 ∈ 𝑌 (𝑏 ∥ 𝑎 → 𝑏 ∈ 𝑆)) & ⊢ (𝜑 → 𝑀 ∥ 𝑁)
& ⊢ (𝜑 → 𝑀 ∈ ℕ) & ⊢ (𝜑 → 𝑁 ∈ 𝑌) ⇒ ⊢ (𝜑 → 𝑀 ∈ 𝑆) |
| |
| Theorem | 2sqlem10 16110* |
Lemma for 2sq . Every factor of a "proper" sum of two squares (where
the summands are coprime) is a sum of two squares. (Contributed by
Mario Carneiro, 19-Jun-2015.)
|
| ⊢ 𝑆 = ran (𝑤 ∈ ℤ[i] ↦ ((abs‘𝑤)↑2)) & ⊢ 𝑌 = {𝑧 ∣ ∃𝑥 ∈ ℤ ∃𝑦 ∈ ℤ ((𝑥 gcd 𝑦) = 1 ∧ 𝑧 = ((𝑥↑2) + (𝑦↑2)))} ⇒ ⊢ ((𝐴 ∈ 𝑌 ∧ 𝐵 ∈ ℕ ∧ 𝐵 ∥ 𝐴) → 𝐵 ∈ 𝑆) |
| |
| PART 12 GRAPH THEORY
|
| |
| 12.1 Vertices and edges
|
| |
| 12.1.1 The edge function extractor for
extensible structures
|
| |
| Syntax | cedgf 16111 |
Extend class notation with an edge function.
|
| class .ef |
| |
| Definition | df-edgf 16112 |
Define the edge function (indexed edges) of a graph. (Contributed by AV,
18-Jan-2020.) Use its index-independent form edgfid 16113 instead.
(New usage is discouraged.)
|
| ⊢ .ef = Slot ;18 |
| |
| Theorem | edgfid 16113 |
Utility theorem: index-independent form of df-edgf 16112. (Contributed by
AV, 16-Nov-2021.)
|
| ⊢ .ef = Slot (.ef‘ndx) |
| |
| Theorem | edgfndx 16114 |
Index value of the df-edgf 16112 slot. (Contributed by AV, 13-Oct-2024.)
(New usage is discouraged.)
|
| ⊢ (.ef‘ndx) = ;18 |
| |
| Theorem | edgfndxnn 16115 |
The index value of the edge function extractor is a positive integer.
This property should be ensured for every concrete coding because
otherwise it could not be used in an extensible structure (slots must be
positive integers). (Contributed by AV, 21-Sep-2020.) (Proof shortened
by AV, 13-Oct-2024.)
|
| ⊢ (.ef‘ndx) ∈
ℕ |
| |
| Theorem | edgfndxid 16116 |
The value of the edge function extractor is the value of the corresponding
slot of the structure. (Contributed by AV, 21-Sep-2020.) (Proof
shortened by AV, 28-Oct-2024.)
|
| ⊢ (𝐺 ∈ 𝑉 → (.ef‘𝐺) = (𝐺‘(.ef‘ndx))) |
| |
| Theorem | basendxltedgfndx 16117 |
The index value of the Base slot is less than the index
value of the
.ef slot. (Contributed by AV, 21-Sep-2020.)
(Proof shortened by AV,
30-Oct-2024.)
|
| ⊢ (Base‘ndx) <
(.ef‘ndx) |
| |
| Theorem | basendxnedgfndx 16118 |
The slots Base and .ef are
different. (Contributed by AV,
21-Sep-2020.)
|
| ⊢ (Base‘ndx) ≠
(.ef‘ndx) |
| |
| 12.1.2 Vertices and indexed edges
|
| |
| 12.1.2.1 Definitions and basic
properties
|
| |
| Syntax | cvtx 16119 |
Extend class notation with the vertices of "graphs".
|
| class Vtx |
| |
| Syntax | ciedg 16120 |
Extend class notation with the indexed edges of "graphs".
|
| class iEdg |
| |
| Definition | df-vtx 16121 |
Define the function mapping a graph to the set of its vertices. This
definition is very general: It defines the set of vertices for any
ordered pair as its first component, and for any other class as its
"base
set". It is meaningful, however, only if the ordered pair represents
a
graph resp. the class is an extensible structure representing a graph.
(Contributed by AV, 9-Jan-2020.) (Revised by AV, 20-Sep-2020.)
|
| ⊢ Vtx = (𝑔 ∈ V ↦ if(𝑔 ∈ (V × V), (1st
‘𝑔),
(Base‘𝑔))) |
| |
| Definition | df-iedg 16122 |
Define the function mapping a graph to its indexed edges. This definition
is very general: It defines the indexed edges for any ordered pair as its
second component, and for any other class as its "edge
function". It is
meaningful, however, only if the ordered pair represents a graph resp. the
class is an extensible structure (containing a slot for "edge
functions")
representing a graph. (Contributed by AV, 20-Sep-2020.)
|
| ⊢ iEdg = (𝑔 ∈ V ↦ if(𝑔 ∈ (V × V), (2nd
‘𝑔),
(.ef‘𝑔))) |
| |
| Theorem | vtxvalg 16123 |
The set of vertices of a graph. (Contributed by AV, 9-Jan-2020.)
(Revised by AV, 21-Sep-2020.)
|
| ⊢ (𝐺 ∈ 𝑉 → (Vtx‘𝐺) = if(𝐺 ∈ (V × V), (1st
‘𝐺),
(Base‘𝐺))) |
| |
| Theorem | iedgvalg 16124 |
The set of indexed edges of a graph. (Contributed by AV,
21-Sep-2020.)
|
| ⊢ (𝐺 ∈ 𝑉 → (iEdg‘𝐺) = if(𝐺 ∈ (V × V), (2nd
‘𝐺),
(.ef‘𝐺))) |
| |
| Theorem | vtxex 16125 |
Applying the vertex function yields a set. (Contributed by Jim Kingdon,
29-Dec-2025.)
|
| ⊢ (𝐺 ∈ 𝑉 → (Vtx‘𝐺) ∈ V) |
| |
| Theorem | iedgex 16126 |
Applying the indexed edge function yields a set. (Contributed by Jim
Kingdon, 29-Dec-2025.)
|
| ⊢ (𝐺 ∈ 𝑉 → (iEdg‘𝐺) ∈ V) |
| |
| Theorem | 1vgrex 16127 |
A graph with at least one vertex is a set. (Contributed by AV,
2-Mar-2021.)
|
| ⊢ 𝑉 = (Vtx‘𝐺) ⇒ ⊢ (𝑁 ∈ 𝑉 → 𝐺 ∈ V) |
| |
| 12.1.2.2 The vertices and edges of a graph
represented as ordered pair
|
| |
| Theorem | opvtxval 16128 |
The set of vertices of a graph represented as an ordered pair of vertices
and indexed edges. (Contributed by AV, 9-Jan-2020.) (Revised by AV,
21-Sep-2020.)
|
| ⊢ (𝐺 ∈ (V × V) →
(Vtx‘𝐺) =
(1st ‘𝐺)) |
| |
| Theorem | opvtxfv 16129 |
The set of vertices of a graph represented as an ordered pair of vertices
and indexed edges as function value. (Contributed by AV, 21-Sep-2020.)
|
| ⊢ ((𝑉 ∈ 𝑋 ∧ 𝐸 ∈ 𝑌) → (Vtx‘〈𝑉, 𝐸〉) = 𝑉) |
| |
| Theorem | opvtxov 16130 |
The set of vertices of a graph represented as an ordered pair of vertices
and indexed edges as operation value. (Contributed by AV,
21-Sep-2020.)
|
| ⊢ ((𝑉 ∈ 𝑋 ∧ 𝐸 ∈ 𝑌) → (𝑉Vtx𝐸) = 𝑉) |
| |
| Theorem | opiedgval 16131 |
The set of indexed edges of a graph represented as an ordered pair of
vertices and indexed edges. (Contributed by AV, 21-Sep-2020.)
|
| ⊢ (𝐺 ∈ (V × V) →
(iEdg‘𝐺) =
(2nd ‘𝐺)) |
| |
| Theorem | opiedgfv 16132 |
The set of indexed edges of a graph represented as an ordered pair of
vertices and indexed edges as function value. (Contributed by AV,
21-Sep-2020.)
|
| ⊢ ((𝑉 ∈ 𝑋 ∧ 𝐸 ∈ 𝑌) → (iEdg‘〈𝑉, 𝐸〉) = 𝐸) |
| |
| Theorem | opiedgov 16133 |
The set of indexed edges of a graph represented as an ordered pair of
vertices and indexed edges as operation value. (Contributed by AV,
21-Sep-2020.)
|
| ⊢ ((𝑉 ∈ 𝑋 ∧ 𝐸 ∈ 𝑌) → (𝑉iEdg𝐸) = 𝐸) |
| |
| Theorem | opvtxfvi 16134 |
The set of vertices of a graph represented as an ordered pair of
vertices and indexed edges as function value. (Contributed by AV,
4-Mar-2021.)
|
| ⊢ 𝑉 ∈ V & ⊢ 𝐸 ∈
V ⇒ ⊢ (Vtx‘〈𝑉, 𝐸〉) = 𝑉 |
| |
| Theorem | opiedgfvi 16135 |
The set of indexed edges of a graph represented as an ordered pair of
vertices and indexed edges as function value. (Contributed by AV,
4-Mar-2021.)
|
| ⊢ 𝑉 ∈ V & ⊢ 𝐸 ∈
V ⇒ ⊢ (iEdg‘〈𝑉, 𝐸〉) = 𝐸 |
| |
| 12.1.2.3 The vertices and edges of a graph
represented as extensible structure
|
| |
| Theorem | funvtxdm2domval 16136 |
The set of vertices of an extensible structure with (at least) two slots.
(Contributed by AV, 12-Oct-2020.) (Revised by Jim Kingdon,
11-Dec-2025.)
|
| ⊢ ((𝐺 ∈ 𝑉 ∧ Fun (𝐺 ∖ {∅}) ∧ 2o
≼ dom 𝐺) →
(Vtx‘𝐺) =
(Base‘𝐺)) |
| |
| Theorem | funiedgdm2domval 16137 |
The set of indexed edges of an extensible structure with (at least) two
slots. (Contributed by AV, 12-Oct-2020.) (Revised by Jim Kingdon,
11-Dec-2025.)
|
| ⊢ ((𝐺 ∈ 𝑉 ∧ Fun (𝐺 ∖ {∅}) ∧ 2o
≼ dom 𝐺) →
(iEdg‘𝐺) =
(.ef‘𝐺)) |
| |
| Theorem | funvtxdm2vald 16138 |
The set of vertices of an extensible structure with (at least) two
slots. (Contributed by AV, 22-Sep-2020.) (Revised by Jim Kingdon,
11-Dec-2025.)
|
| ⊢ 𝐴 ∈ V & ⊢ 𝐵 ∈ V & ⊢ (𝜑 → 𝐺 ∈ 𝑋)
& ⊢ (𝜑 → Fun (𝐺 ∖ {∅})) & ⊢ (𝜑 → 𝐴 ≠ 𝐵)
& ⊢ (𝜑 → {𝐴, 𝐵} ⊆ dom 𝐺) ⇒ ⊢ (𝜑 → (Vtx‘𝐺) = (Base‘𝐺)) |
| |
| Theorem | funiedgdm2vald 16139 |
The set of indexed edges of an extensible structure with (at least) two
slots. (Contributed by AV, 22-Sep-2020.) (Revised by Jim Kingdon,
12-Dec-2025.)
|
| ⊢ 𝐴 ∈ V & ⊢ 𝐵 ∈ V & ⊢ (𝜑 → 𝐺 ∈ 𝑋)
& ⊢ (𝜑 → Fun (𝐺 ∖ {∅})) & ⊢ (𝜑 → 𝐴 ≠ 𝐵)
& ⊢ (𝜑 → {𝐴, 𝐵} ⊆ dom 𝐺) ⇒ ⊢ (𝜑 → (iEdg‘𝐺) = (.ef‘𝐺)) |
| |
| Theorem | funvtxval0d 16140 |
The set of vertices of an extensible structure with a base set and (at
least) another slot. (Contributed by AV, 22-Sep-2020.) (Revised by AV,
7-Jun-2021.) (Revised by AV, 12-Nov-2021.)
|
| ⊢ 𝑆 ∈ V & ⊢ (𝜑 → 𝐺 ∈ 𝑉)
& ⊢ (𝜑 → Fun (𝐺 ∖ {∅})) & ⊢ (𝜑 → 𝑆 ≠ (Base‘ndx)) & ⊢ (𝜑 → {(Base‘ndx), 𝑆} ⊆ dom 𝐺) ⇒ ⊢ (𝜑 → (Vtx‘𝐺) = (Base‘𝐺)) |
| |
| Theorem | basvtxval2dom 16141 |
The set of vertices of a graph represented as an extensible structure
with the set of vertices as base set. (Contributed by AV,
14-Oct-2020.) (Revised by AV, 12-Nov-2021.)
|
| ⊢ (𝜑 → 𝐺 Struct 𝑋)
& ⊢ (𝜑 → 2o ≼ dom 𝐺) & ⊢ (𝜑 → 𝑉 ∈ 𝑌)
& ⊢ (𝜑 → 〈(Base‘ndx), 𝑉〉 ∈ 𝐺) ⇒ ⊢ (𝜑 → (Vtx‘𝐺) = 𝑉) |
| |
| Theorem | edgfiedgval2dom 16142 |
The set of indexed edges of a graph represented as an extensible
structure with the indexed edges in the slot for edge functions.
(Contributed by AV, 14-Oct-2020.) (Revised by AV, 12-Nov-2021.)
|
| ⊢ (𝜑 → 𝐺 Struct 𝑋)
& ⊢ (𝜑 → 2o ≼ dom 𝐺) & ⊢ (𝜑 → 𝐸 ∈ 𝑌)
& ⊢ (𝜑 → 〈(.ef‘ndx), 𝐸〉 ∈ 𝐺) ⇒ ⊢ (𝜑 → (iEdg‘𝐺) = 𝐸) |
| |
| Theorem | funvtxvalg 16143 |
The set of vertices of a graph represented as an extensible structure with
vertices as base set and indexed edges. (Contributed by AV, 22-Sep-2020.)
(Revised by AV, 7-Jun-2021.) (Revised by AV, 12-Nov-2021.)
|
| ⊢ ((𝐺 ∈ 𝑉 ∧ Fun (𝐺 ∖ {∅}) ∧
{(Base‘ndx), (.ef‘ndx)} ⊆ dom 𝐺) → (Vtx‘𝐺) = (Base‘𝐺)) |
| |
| Theorem | funiedgvalg 16144 |
The set of indexed edges of a graph represented as an extensible structure
with vertices as base set and indexed edges. (Contributed by AV,
21-Sep-2020.) (Revised by AV, 7-Jun-2021.) (Revised by AV,
12-Nov-2021.)
|
| ⊢ ((𝐺 ∈ 𝑉 ∧ Fun (𝐺 ∖ {∅}) ∧
{(Base‘ndx), (.ef‘ndx)} ⊆ dom 𝐺) → (iEdg‘𝐺) = (.ef‘𝐺)) |
| |
| Theorem | struct2slots2dom 16145 |
There are at least two elements in an extensible structure with a base
set and another slot. (Contributed by AV, 23-Sep-2020.) (Revised by
AV, 12-Nov-2021.)
|
| ⊢ 𝑆 ∈ ℕ & ⊢
(Base‘ndx) < 𝑆
& ⊢ 𝐺 = {〈(Base‘ndx), 𝑉〉, 〈𝑆, 𝐸〉} ⇒ ⊢ ((𝑉 ∈ 𝑋 ∧ 𝐸 ∈ 𝑌) → 2o ≼ dom 𝐺) |
| |
| Theorem | structvtxval 16146 |
The set of vertices of an extensible structure with a base set and
another slot. (Contributed by AV, 23-Sep-2020.) (Proof shortened by
AV, 12-Nov-2021.)
|
| ⊢ 𝑆 ∈ ℕ & ⊢
(Base‘ndx) < 𝑆
& ⊢ 𝐺 = {〈(Base‘ndx), 𝑉〉, 〈𝑆, 𝐸〉} ⇒ ⊢ ((𝑉 ∈ 𝑋 ∧ 𝐸 ∈ 𝑌) → (Vtx‘𝐺) = 𝑉) |
| |
| Theorem | structiedg0val 16147 |
The set of indexed edges of an extensible structure with a base set and
another slot not being the slot for edge functions is empty.
(Contributed by AV, 23-Sep-2020.) (Proof shortened by AV,
12-Nov-2021.)
|
| ⊢ 𝑆 ∈ ℕ & ⊢
(Base‘ndx) < 𝑆
& ⊢ 𝐺 = {〈(Base‘ndx), 𝑉〉, 〈𝑆, 𝐸〉} ⇒ ⊢ ((𝑉 ∈ 𝑋 ∧ 𝐸 ∈ 𝑌 ∧ 𝑆 ≠ (.ef‘ndx)) →
(iEdg‘𝐺) =
∅) |
| |
| Theorem | structgr2slots2dom 16148 |
There are at least two elements in a graph represented as an extensible
structure with vertices as base set and indexed edges. (Contributed by
AV, 14-Oct-2020.) (Proof shortened by AV, 12-Nov-2021.)
|
| ⊢ (𝜑 → 𝐺 Struct 𝑋)
& ⊢ (𝜑 → 𝑉 ∈ 𝑌)
& ⊢ (𝜑 → 𝐸 ∈ 𝑍)
& ⊢ (𝜑 → {〈(Base‘ndx), 𝑉〉, 〈(.ef‘ndx),
𝐸〉} ⊆ 𝐺)
⇒ ⊢ (𝜑 → 2o ≼ dom 𝐺) |
| |
| Theorem | structgrssvtx 16149 |
The set of vertices of a graph represented as an extensible structure
with vertices as base set and indexed edges. (Contributed by AV,
14-Oct-2020.) (Proof shortened by AV, 12-Nov-2021.)
|
| ⊢ (𝜑 → 𝐺 Struct 𝑋)
& ⊢ (𝜑 → 𝑉 ∈ 𝑌)
& ⊢ (𝜑 → 𝐸 ∈ 𝑍)
& ⊢ (𝜑 → {〈(Base‘ndx), 𝑉〉, 〈(.ef‘ndx),
𝐸〉} ⊆ 𝐺)
⇒ ⊢ (𝜑 → (Vtx‘𝐺) = 𝑉) |
| |
| Theorem | structgrssiedg 16150 |
The set of indexed edges of a graph represented as an extensible
structure with vertices as base set and indexed edges. (Contributed by
AV, 14-Oct-2020.) (Proof shortened by AV, 12-Nov-2021.)
|
| ⊢ (𝜑 → 𝐺 Struct 𝑋)
& ⊢ (𝜑 → 𝑉 ∈ 𝑌)
& ⊢ (𝜑 → 𝐸 ∈ 𝑍)
& ⊢ (𝜑 → {〈(Base‘ndx), 𝑉〉, 〈(.ef‘ndx),
𝐸〉} ⊆ 𝐺)
⇒ ⊢ (𝜑 → (iEdg‘𝐺) = 𝐸) |
| |
| Theorem | struct2grstrg 16151 |
A graph represented as an extensible structure with vertices as base set
and indexed edges is actually an extensible structure. (Contributed by
AV, 23-Nov-2020.)
|
| ⊢ 𝐺 = {〈(Base‘ndx), 𝑉〉, 〈(.ef‘ndx),
𝐸〉} ⇒ ⊢ ((𝑉 ∈ 𝑋 ∧ 𝐸 ∈ 𝑌) → 𝐺 Struct 〈(Base‘ndx),
(.ef‘ndx)〉) |
| |
| Theorem | struct2grvtx 16152 |
The set of vertices of a graph represented as an extensible structure
with vertices as base set and indexed edges. (Contributed by AV,
23-Sep-2020.)
|
| ⊢ 𝐺 = {〈(Base‘ndx), 𝑉〉, 〈(.ef‘ndx),
𝐸〉} ⇒ ⊢ ((𝑉 ∈ 𝑋 ∧ 𝐸 ∈ 𝑌) → (Vtx‘𝐺) = 𝑉) |
| |
| Theorem | struct2griedg 16153 |
The set of indexed edges of a graph represented as an extensible
structure with vertices as base set and indexed edges. (Contributed by
AV, 23-Sep-2020.) (Proof shortened by AV, 12-Nov-2021.)
|
| ⊢ 𝐺 = {〈(Base‘ndx), 𝑉〉, 〈(.ef‘ndx),
𝐸〉} ⇒ ⊢ ((𝑉 ∈ 𝑋 ∧ 𝐸 ∈ 𝑌) → (iEdg‘𝐺) = 𝐸) |
| |
| Theorem | gropd 16154* |
If any representation of a graph with vertices 𝑉 and edges 𝐸 has
a certain property 𝜓, then the ordered pair 〈𝑉, 𝐸〉 of the
set of vertices and the set of edges (which is such a representation of
a graph with vertices 𝑉 and edges 𝐸) has this property.
(Contributed by AV, 11-Oct-2020.)
|
| ⊢ (𝜑 → ∀𝑔(((Vtx‘𝑔) = 𝑉 ∧ (iEdg‘𝑔) = 𝐸) → 𝜓)) & ⊢ (𝜑 → 𝑉 ∈ 𝑈)
& ⊢ (𝜑 → 𝐸 ∈ 𝑊) ⇒ ⊢ (𝜑 → [〈𝑉, 𝐸〉 / 𝑔]𝜓) |
| |
| Theorem | grstructd2dom 16155* |
If any representation of a graph with vertices 𝑉 and edges 𝐸 has
a certain property 𝜓, then any structure with base set
𝑉
and
value 𝐸 in the slot for edge functions
(which is such a
representation of a graph with vertices 𝑉 and edges 𝐸) has
this
property. (Contributed by AV, 12-Oct-2020.) (Revised by AV,
9-Jun-2021.)
|
| ⊢ (𝜑 → ∀𝑔(((Vtx‘𝑔) = 𝑉 ∧ (iEdg‘𝑔) = 𝐸) → 𝜓)) & ⊢ (𝜑 → 𝑉 ∈ 𝑈)
& ⊢ (𝜑 → 𝐸 ∈ 𝑊)
& ⊢ (𝜑 → 𝑆 ∈ 𝑋)
& ⊢ (𝜑 → Fun (𝑆 ∖ {∅})) & ⊢ (𝜑 → 2o ≼ dom
𝑆) & ⊢ (𝜑 → (Base‘𝑆) = 𝑉)
& ⊢ (𝜑 → (.ef‘𝑆) = 𝐸) ⇒ ⊢ (𝜑 → [𝑆 / 𝑔]𝜓) |
| |
| Theorem | gropeld 16156* |
If any representation of a graph with vertices 𝑉 and edges 𝐸 is
an element of an arbitrary class 𝐶, then the ordered pair
〈𝑉, 𝐸〉 of the set of vertices and the
set of edges (which is
such a representation of a graph with vertices 𝑉 and edges 𝐸)
is an element of this class 𝐶. (Contributed by AV,
11-Oct-2020.)
|
| ⊢ (𝜑 → ∀𝑔(((Vtx‘𝑔) = 𝑉 ∧ (iEdg‘𝑔) = 𝐸) → 𝑔 ∈ 𝐶)) & ⊢ (𝜑 → 𝑉 ∈ 𝑈)
& ⊢ (𝜑 → 𝐸 ∈ 𝑊) ⇒ ⊢ (𝜑 → 〈𝑉, 𝐸〉 ∈ 𝐶) |
| |
| Theorem | grstructeld2dom 16157* |
If any representation of a graph with vertices 𝑉 and edges 𝐸 is
an element of an arbitrary class 𝐶, then any structure with base
set 𝑉 and value 𝐸 in the slot for edge
functions (which is such
a representation of a graph with vertices 𝑉 and edges 𝐸) is an
element of this class 𝐶. (Contributed by AV, 12-Oct-2020.)
(Revised by AV, 9-Jun-2021.)
|
| ⊢ (𝜑 → ∀𝑔(((Vtx‘𝑔) = 𝑉 ∧ (iEdg‘𝑔) = 𝐸) → 𝑔 ∈ 𝐶)) & ⊢ (𝜑 → 𝑉 ∈ 𝑈)
& ⊢ (𝜑 → 𝐸 ∈ 𝑊)
& ⊢ (𝜑 → 𝑆 ∈ 𝑋)
& ⊢ (𝜑 → Fun (𝑆 ∖ {∅})) & ⊢ (𝜑 → 2o ≼ dom
𝑆) & ⊢ (𝜑 → (Base‘𝑆) = 𝑉)
& ⊢ (𝜑 → (.ef‘𝑆) = 𝐸) ⇒ ⊢ (𝜑 → 𝑆 ∈ 𝐶) |
| |
| Theorem | setsvtx 16158 |
The vertices of a structure with a base set and an inserted resp.
replaced slot for the edge function. (Contributed by AV, 18-Jan-2020.)
(Revised by AV, 16-Nov-2021.)
|
| ⊢ 𝐼 = (.ef‘ndx) & ⊢ (𝜑 → 𝐺 Struct 𝑋)
& ⊢ (𝜑 → (Base‘ndx) ∈ dom 𝐺) & ⊢ (𝜑 → 𝐸 ∈ 𝑊) ⇒ ⊢ (𝜑 → (Vtx‘(𝐺 sSet 〈𝐼, 𝐸〉)) = (Base‘𝐺)) |
| |
| Theorem | setsiedg 16159 |
The (indexed) edges of a structure with a base set and an inserted resp.
replaced slot for the edge function. (Contributed by AV, 7-Jun-2021.)
(Revised by AV, 16-Nov-2021.)
|
| ⊢ 𝐼 = (.ef‘ndx) & ⊢ (𝜑 → 𝐺 Struct 𝑋)
& ⊢ (𝜑 → (Base‘ndx) ∈ dom 𝐺) & ⊢ (𝜑 → 𝐸 ∈ 𝑊) ⇒ ⊢ (𝜑 → (iEdg‘(𝐺 sSet 〈𝐼, 𝐸〉)) = 𝐸) |
| |
| 12.1.2.4 Degenerated cases of representations
of graphs
|
| |
| Theorem | vtxval0 16160 |
Degenerated case 1 for vertices: The set of vertices of the empty set is
the empty set. (Contributed by AV, 24-Sep-2020.)
|
| ⊢ (Vtx‘∅) =
∅ |
| |
| Theorem | iedgval0 16161 |
Degenerated case 1 for edges: The set of indexed edges of the empty set
is the empty set. (Contributed by AV, 24-Sep-2020.)
|
| ⊢ (iEdg‘∅) =
∅ |
| |
| Theorem | vtxvalprc 16162 |
Degenerated case 4 for vertices: The set of vertices of a proper class is
the empty set. (Contributed by AV, 12-Oct-2020.)
|
| ⊢ (𝐶 ∉ V → (Vtx‘𝐶) = ∅) |
| |
| Theorem | iedgvalprc 16163 |
Degenerated case 4 for edges: The set of indexed edges of a proper class
is the empty set. (Contributed by AV, 12-Oct-2020.)
|
| ⊢ (𝐶 ∉ V → (iEdg‘𝐶) = ∅) |
| |
| 12.1.3 Edges as range of the edge
function
|
| |
| Syntax | cedg 16164 |
Extend class notation with the set of edges (of an undirected simple
(hyper-/pseudo-)graph).
|
| class Edg |
| |
| Definition | df-edg 16165 |
Define the class of edges of a graph, see also definition "E = E(G)"
in
section I.1 of [Bollobas] p. 1. This
definition is very general: It
defines edges of a class as the range of its edge function (which does not
even need to be a function). Therefore, this definition could also be
used for hypergraphs, pseudographs and multigraphs. In these cases,
however, the (possibly more than one) edges connecting the same vertices
could not be distinguished anymore. In some cases, this is no problem, so
theorems with Edg are meaningful nevertheless.
Usually, however, this
definition is used only for undirected simple (hyper-/pseudo-)graphs (with
or without loops). (Contributed by AV, 1-Jan-2020.) (Revised by AV,
13-Oct-2020.)
|
| ⊢ Edg = (𝑔 ∈ V ↦ ran (iEdg‘𝑔)) |
| |
| Theorem | edgvalg 16166 |
The edges of a graph. (Contributed by AV, 1-Jan-2020.) (Revised by AV,
13-Oct-2020.) (Revised by AV, 8-Dec-2021.)
|
| ⊢ (𝐺 ∈ 𝑉 → (Edg‘𝐺) = ran (iEdg‘𝐺)) |
| |
| Theorem | edgval 16167 |
The edges of a graph. (Contributed by AV, 1-Jan-2020.) (Revised by AV,
13-Oct-2020.) (Revised by AV, 8-Dec-2021.)
|
| ⊢ (Edg‘𝐺) = ran (iEdg‘𝐺) |
| |
| Theorem | iedgedgg 16168 |
An indexed edge is an edge. (Contributed by AV, 19-Dec-2021.)
|
| ⊢ 𝐸 = (iEdg‘𝐺) ⇒ ⊢ ((𝐺 ∈ 𝑉 ∧ Fun 𝐸 ∧ 𝐼 ∈ dom 𝐸) → (𝐸‘𝐼) ∈ (Edg‘𝐺)) |
| |
| Theorem | edgopval 16169 |
The edges of a graph represented as ordered pair. (Contributed by AV,
1-Jan-2020.) (Revised by AV, 13-Oct-2020.)
|
| ⊢ ((𝑉 ∈ 𝑊 ∧ 𝐸 ∈ 𝑋) → (Edg‘〈𝑉, 𝐸〉) = ran 𝐸) |
| |
| Theorem | edgov 16170 |
The edges of a graph represented as ordered pair, shown as operation
value. Although a little less intuitive, this representation is often
used because it is shorter than the representation as function value of a
graph given as ordered pair, see edgopval 16169. The representation
ran 𝐸 for the set of edges is even
shorter, though. (Contributed by
AV, 2-Jan-2020.) (Revised by AV, 13-Oct-2020.)
|
| ⊢ ((𝑉 ∈ 𝑊 ∧ 𝐸 ∈ 𝑋) → (𝑉Edg𝐸) = ran 𝐸) |
| |
| Theorem | edgstruct 16171 |
The edges of a graph represented as an extensible structure with
vertices as base set and indexed edges. (Contributed by AV,
13-Oct-2020.)
|
| ⊢ 𝐺 = {〈(Base‘ndx), 𝑉〉, 〈(.ef‘ndx),
𝐸〉} ⇒ ⊢ ((𝑉 ∈ 𝑊 ∧ 𝐸 ∈ 𝑋) → (Edg‘𝐺) = ran 𝐸) |
| |
| Theorem | edgiedgbg 16172* |
A set is an edge iff it is an indexed edge. (Contributed by AV,
17-Oct-2020.) (Revised by AV, 8-Dec-2021.)
|
| ⊢ 𝐼 = (iEdg‘𝐺) ⇒ ⊢ ((𝐺 ∈ 𝑉 ∧ Fun 𝐼) → (𝐸 ∈ (Edg‘𝐺) ↔ ∃𝑥 ∈ dom 𝐼 𝐸 = (𝐼‘𝑥))) |
| |
| Theorem | edg0iedg0g 16173 |
There is no edge in a graph iff its edge function is empty.
(Contributed by AV, 15-Dec-2020.) (Revised by AV, 8-Dec-2021.)
|
| ⊢ 𝐼 = (iEdg‘𝐺)
& ⊢ 𝐸 = (Edg‘𝐺) ⇒ ⊢ ((𝐺 ∈ 𝑉 ∧ Fun 𝐼) → (𝐸 = ∅ ↔ 𝐼 = ∅)) |
| |
| 12.2 Undirected graphs
|
| |
| 12.2.1 Undirected hypergraphs
|
| |
| Syntax | cuhgr 16174 |
Extend class notation with undirected hypergraphs.
|
| class UHGraph |
| |
| Syntax | cushgr 16175 |
Extend class notation with undirected simple hypergraphs.
|
| class USHGraph |
| |
| Definition | df-uhgrm 16176* |
Define the class of all undirected hypergraphs. An undirected
hypergraph consists of a set 𝑣 (of "vertices") and a
function 𝑒
(representing indexed "edges") into the set of inhabited
subsets of this
set. (Contributed by Alexander van der Vekens, 26-Dec-2017.) (Revised
by Jim Kingdon, 29-Dec-2025.)
|
| ⊢ UHGraph = {𝑔 ∣ [(Vtx‘𝑔) / 𝑣][(iEdg‘𝑔) / 𝑒]𝑒:dom 𝑒⟶{𝑠 ∈ 𝒫 𝑣 ∣ ∃𝑗 𝑗 ∈ 𝑠}} |
| |
| Definition | df-ushgrm 16177* |
Define the class of all undirected simple hypergraphs. An undirected
simple hypergraph is a special (non-simple, multiple, multi-) hypergraph
for which the edge function 𝑒 is an injective (one-to-one) function
into subsets of the set of vertices 𝑣, representing the (one or
more) vertices incident to the edge. This definition corresponds to the
definition of hypergraphs in section I.1 of [Bollobas] p. 7 (except that
the empty set seems to be allowed to be an "edge") or section
1.10 of
[Diestel] p. 27, where "E is a
subset of [...] the power set of V, that
is the set of all subsets of V" resp. "the elements of E are
nonempty
subsets (of any cardinality) of V". (Contributed by AV,
19-Jan-2020.)
(Revised by Jim Kingdon, 31-Dec-2025.)
|
| ⊢ USHGraph = {𝑔 ∣ [(Vtx‘𝑔) / 𝑣][(iEdg‘𝑔) / 𝑒]𝑒:dom 𝑒–1-1→{𝑠 ∈ 𝒫 𝑣 ∣ ∃𝑗 𝑗 ∈ 𝑠}} |
| |
| Theorem | isuhgrm 16178* |
The predicate "is an undirected hypergraph." (Contributed by
Alexander
van der Vekens, 26-Dec-2017.) (Revised by AV, 9-Oct-2020.)
|
| ⊢ 𝑉 = (Vtx‘𝐺)
& ⊢ 𝐸 = (iEdg‘𝐺) ⇒ ⊢ (𝐺 ∈ 𝑈 → (𝐺 ∈ UHGraph ↔ 𝐸:dom 𝐸⟶{𝑠 ∈ 𝒫 𝑉 ∣ ∃𝑗 𝑗 ∈ 𝑠})) |
| |
| Theorem | isushgrm 16179* |
The predicate "is an undirected simple hypergraph." (Contributed by
AV,
19-Jan-2020.) (Revised by AV, 9-Oct-2020.)
|
| ⊢ 𝑉 = (Vtx‘𝐺)
& ⊢ 𝐸 = (iEdg‘𝐺) ⇒ ⊢ (𝐺 ∈ 𝑈 → (𝐺 ∈ USHGraph ↔ 𝐸:dom 𝐸–1-1→{𝑠 ∈ 𝒫 𝑉 ∣ ∃𝑗 𝑗 ∈ 𝑠})) |
| |
| Theorem | uhgrfm 16180* |
The edge function of an undirected hypergraph is a function into the
power set of the set of vertices. (Contributed by Alexander van der
Vekens, 26-Dec-2017.) (Revised by AV, 9-Oct-2020.)
|
| ⊢ 𝑉 = (Vtx‘𝐺)
& ⊢ 𝐸 = (iEdg‘𝐺) ⇒ ⊢ (𝐺 ∈ UHGraph → 𝐸:dom 𝐸⟶{𝑠 ∈ 𝒫 𝑉 ∣ ∃𝑗 𝑗 ∈ 𝑠}) |
| |
| Theorem | ushgrfm 16181* |
The edge function of an undirected simple hypergraph is a one-to-one
function into the power set of the set of vertices. (Contributed by AV,
9-Oct-2020.)
|
| ⊢ 𝑉 = (Vtx‘𝐺)
& ⊢ 𝐸 = (iEdg‘𝐺) ⇒ ⊢ (𝐺 ∈ USHGraph → 𝐸:dom 𝐸–1-1→{𝑠 ∈ 𝒫 𝑉 ∣ ∃𝑗 𝑗 ∈ 𝑠}) |
| |
| Theorem | uhgrss 16182 |
An edge is a subset of vertices. (Contributed by Alexander van der
Vekens, 26-Dec-2017.) (Revised by AV, 18-Jan-2020.)
|
| ⊢ 𝑉 = (Vtx‘𝐺)
& ⊢ 𝐸 = (iEdg‘𝐺) ⇒ ⊢ ((𝐺 ∈ UHGraph ∧ 𝐹 ∈ dom 𝐸) → (𝐸‘𝐹) ⊆ 𝑉) |
| |
| Theorem | uhgreq12g 16183 |
If two sets have the same vertices and the same edges, one set is a
hypergraph iff the other set is a hypergraph. (Contributed by Alexander
van der Vekens, 26-Dec-2017.) (Revised by AV, 18-Jan-2020.)
|
| ⊢ 𝑉 = (Vtx‘𝐺)
& ⊢ 𝐸 = (iEdg‘𝐺)
& ⊢ 𝑊 = (Vtx‘𝐻)
& ⊢ 𝐹 = (iEdg‘𝐻) ⇒ ⊢ (((𝐺 ∈ 𝑋 ∧ 𝐻 ∈ 𝑌) ∧ (𝑉 = 𝑊 ∧ 𝐸 = 𝐹)) → (𝐺 ∈ UHGraph ↔ 𝐻 ∈ UHGraph)) |
| |
| Theorem | uhgrfun 16184 |
The edge function of an undirected hypergraph is a function.
(Contributed by Alexander van der Vekens, 26-Dec-2017.) (Revised by AV,
15-Dec-2020.)
|
| ⊢ 𝐸 = (iEdg‘𝐺) ⇒ ⊢ (𝐺 ∈ UHGraph → Fun 𝐸) |
| |
| Theorem | uhgrm 16185* |
An edge is an inhabited subset of vertices. (Contributed by Mario
Carneiro, 11-Mar-2015.) (Revised by AV, 15-Dec-2020.)
|
| ⊢ 𝐸 = (iEdg‘𝐺) ⇒ ⊢ ((𝐺 ∈ UHGraph ∧ 𝐸 Fn 𝐴 ∧ 𝐹 ∈ 𝐴) → ∃𝑗 𝑗 ∈ (𝐸‘𝐹)) |
| |
| Theorem | lpvtx 16186 |
The endpoints of a loop (which is an edge at index 𝐽) are two
(identical) vertices 𝐴. (Contributed by AV, 1-Feb-2021.)
|
| ⊢ 𝐼 = (iEdg‘𝐺) ⇒ ⊢ ((𝐺 ∈ UHGraph ∧ 𝐽 ∈ dom 𝐼 ∧ (𝐼‘𝐽) = {𝐴}) → 𝐴 ∈ (Vtx‘𝐺)) |
| |
| Theorem | ushgruhgr 16187 |
An undirected simple hypergraph is an undirected hypergraph.
(Contributed by AV, 19-Jan-2020.) (Revised by AV, 9-Oct-2020.)
|
| ⊢ (𝐺 ∈ USHGraph → 𝐺 ∈ UHGraph) |
| |
| Theorem | isuhgropm 16188* |
The property of being an undirected hypergraph represented as an ordered
pair. The representation as an ordered pair is the usual representation
of a graph, see section I.1 of [Bollobas] p. 1. (Contributed by AV,
1-Jan-2020.) (Revised by AV, 9-Oct-2020.)
|
| ⊢ ((𝑉 ∈ 𝑊 ∧ 𝐸 ∈ 𝑋) → (〈𝑉, 𝐸〉 ∈ UHGraph ↔ 𝐸:dom 𝐸⟶{𝑠 ∈ 𝒫 𝑉 ∣ ∃𝑗 𝑗 ∈ 𝑠})) |
| |
| Theorem | uhgr0e 16189 |
The empty graph, with vertices but no edges, is a hypergraph.
(Contributed by Mario Carneiro, 12-Mar-2015.) (Revised by AV,
25-Nov-2020.)
|
| ⊢ (𝜑 → 𝐺 ∈ 𝑊)
& ⊢ (𝜑 → (iEdg‘𝐺) = ∅) ⇒ ⊢ (𝜑 → 𝐺 ∈ UHGraph) |
| |
| Theorem | pw0ss 16190* |
There are no inhabited subsets of the empty set. (Contributed by Jim
Kingdon, 31-Dec-2025.)
|
| ⊢ {𝑠 ∈ 𝒫 ∅ ∣
∃𝑗 𝑗 ∈ 𝑠} = ∅ |
| |
| Theorem | uhgr0vb 16191 |
The null graph, with no vertices, is a hypergraph if and only if the
edge function is empty. (Contributed by Alexander van der Vekens,
27-Dec-2017.) (Revised by AV, 9-Oct-2020.)
|
| ⊢ ((𝐺 ∈ 𝑊 ∧ (Vtx‘𝐺) = ∅) → (𝐺 ∈ UHGraph ↔ (iEdg‘𝐺) = ∅)) |
| |
| Theorem | uhgr0 16192 |
The null graph represented by an empty set is a hypergraph.
(Contributed by AV, 9-Oct-2020.)
|
| ⊢ ∅ ∈ UHGraph |
| |
| Theorem | uhgrun 16193 |
The union 𝑈 of two (undirected) hypergraphs
𝐺
and 𝐻 with
the same vertex set 𝑉 is a hypergraph with the vertex set
𝑉
and the union (𝐸 ∪ 𝐹) of the (indexed) edges.
(Contributed by
AV, 11-Oct-2020.) (Revised by AV, 24-Oct-2021.)
|
| ⊢ (𝜑 → 𝐺 ∈ UHGraph) & ⊢ (𝜑 → 𝐻 ∈ UHGraph) & ⊢ 𝐸 = (iEdg‘𝐺) & ⊢ 𝐹 = (iEdg‘𝐻) & ⊢ 𝑉 = (Vtx‘𝐺)
& ⊢ (𝜑 → (Vtx‘𝐻) = 𝑉)
& ⊢ (𝜑 → (dom 𝐸 ∩ dom 𝐹) = ∅) & ⊢ (𝜑 → 𝑈 ∈ 𝑊)
& ⊢ (𝜑 → (Vtx‘𝑈) = 𝑉)
& ⊢ (𝜑 → (iEdg‘𝑈) = (𝐸 ∪ 𝐹)) ⇒ ⊢ (𝜑 → 𝑈 ∈ UHGraph) |
| |
| Theorem | uhgrunop 16194 |
The union of two (undirected) hypergraphs (with the same vertex set)
represented as ordered pair: If 〈𝑉, 𝐸〉 and 〈𝑉, 𝐹〉 are
hypergraphs, then 〈𝑉, 𝐸 ∪ 𝐹〉 is a hypergraph (the vertex
set
stays the same, but the edges from both graphs are kept, possibly
resulting in two edges between two vertices). (Contributed by Alexander
van der Vekens, 27-Dec-2017.) (Revised by AV, 11-Oct-2020.) (Revised
by AV, 24-Oct-2021.)
|
| ⊢ (𝜑 → 𝐺 ∈ UHGraph) & ⊢ (𝜑 → 𝐻 ∈ UHGraph) & ⊢ 𝐸 = (iEdg‘𝐺) & ⊢ 𝐹 = (iEdg‘𝐻) & ⊢ 𝑉 = (Vtx‘𝐺)
& ⊢ (𝜑 → (Vtx‘𝐻) = 𝑉)
& ⊢ (𝜑 → (dom 𝐸 ∩ dom 𝐹) = ∅) ⇒ ⊢ (𝜑 → 〈𝑉, (𝐸 ∪ 𝐹)〉 ∈ UHGraph) |
| |
| Theorem | ushgrun 16195 |
The union 𝑈 of two (undirected) simple
hypergraphs 𝐺 and 𝐻
with the same vertex set 𝑉 is a (not necessarily simple)
hypergraph with the vertex set 𝑉 and the union (𝐸 ∪ 𝐹) of
the (indexed) edges. (Contributed by AV, 29-Nov-2020.) (Revised by
AV, 24-Oct-2021.)
|
| ⊢ (𝜑 → 𝐺 ∈ USHGraph) & ⊢ (𝜑 → 𝐻 ∈ USHGraph) & ⊢ 𝐸 = (iEdg‘𝐺) & ⊢ 𝐹 = (iEdg‘𝐻) & ⊢ 𝑉 = (Vtx‘𝐺)
& ⊢ (𝜑 → (Vtx‘𝐻) = 𝑉)
& ⊢ (𝜑 → (dom 𝐸 ∩ dom 𝐹) = ∅) & ⊢ (𝜑 → 𝑈 ∈ 𝑊)
& ⊢ (𝜑 → (Vtx‘𝑈) = 𝑉)
& ⊢ (𝜑 → (iEdg‘𝑈) = (𝐸 ∪ 𝐹)) ⇒ ⊢ (𝜑 → 𝑈 ∈ UHGraph) |
| |
| Theorem | ushgrunop 16196 |
The union of two (undirected) simple hypergraphs (with the same vertex
set) represented as ordered pair: If 〈𝑉, 𝐸〉 and
〈𝑉, 𝐹〉 are simple hypergraphs, then
〈𝑉,
𝐸 ∪ 𝐹〉 is a
(not necessarily simple) hypergraph - the vertex set stays the same, but
the edges from both graphs are kept, possibly resulting in two edges
between two vertices. (Contributed by AV, 29-Nov-2020.) (Revised by
AV, 24-Oct-2021.)
|
| ⊢ (𝜑 → 𝐺 ∈ USHGraph) & ⊢ (𝜑 → 𝐻 ∈ USHGraph) & ⊢ 𝐸 = (iEdg‘𝐺) & ⊢ 𝐹 = (iEdg‘𝐻) & ⊢ 𝑉 = (Vtx‘𝐺)
& ⊢ (𝜑 → (Vtx‘𝐻) = 𝑉)
& ⊢ (𝜑 → (dom 𝐸 ∩ dom 𝐹) = ∅) ⇒ ⊢ (𝜑 → 〈𝑉, (𝐸 ∪ 𝐹)〉 ∈ UHGraph) |
| |
| Theorem | incistruhgr 16197* |
An incidence structure 〈𝑃, 𝐿, 𝐼〉 "where 𝑃 is a
set whose
elements are called points, 𝐿 is a distinct set whose elements are
called lines and 𝐼 ⊆ (𝑃 × 𝐿) is the incidence
relation" (see
Wikipedia "Incidence structure" (24-Oct-2020),
https://en.wikipedia.org/wiki/Incidence_structure)
implies an
undirected hypergraph, if the incidence relation is right-total (to
exclude empty edges). The points become the vertices, and the edge
function is derived from the incidence relation by mapping each line
("edge") to the set of vertices incident to the line/edge.
With
𝑃 =
(Base‘𝑆) and
by defining two new slots for lines and
incidence relations and enhancing the definition of iEdg
accordingly, it would even be possible to express that a corresponding
incidence structure is an undirected hypergraph. By choosing the
incident relation appropriately, other kinds of undirected graphs
(pseudographs, multigraphs, simple graphs, etc.) could be defined.
(Contributed by AV, 24-Oct-2020.)
|
| ⊢ 𝑉 = (Vtx‘𝐺)
& ⊢ 𝐸 = (iEdg‘𝐺) ⇒ ⊢ ((𝐺 ∈ 𝑊 ∧ 𝐼 ⊆ (𝑃 × 𝐿) ∧ ran 𝐼 = 𝐿) → ((𝑉 = 𝑃 ∧ 𝐸 = (𝑒 ∈ 𝐿 ↦ {𝑣 ∈ 𝑃 ∣ 𝑣𝐼𝑒})) → 𝐺 ∈ UHGraph)) |
| |
| 12.2.2 Undirected pseudographs and
multigraphs
|
| |
| Syntax | cupgr 16198 |
Extend class notation with undirected pseudographs.
|
| class UPGraph |
| |
| Syntax | cumgr 16199 |
Extend class notation with undirected multigraphs.
|
| class UMGraph |
| |
| Definition | df-upgren 16200* |
Define the class of all undirected pseudographs. An (undirected)
pseudograph consists of a set 𝑣 (of "vertices") and a
function 𝑒
(representing indexed "edges") into subsets of 𝑣 of
cardinality one
or two, representing the two vertices incident to the edge, or the one
vertex if the edge is a loop. This is according to Chartrand, Gary and
Zhang, Ping (2012): "A First Course in Graph Theory.", Dover,
ISBN
978-0-486-48368-9, section 1.4, p. 26: "In a pseudograph, not only
are
parallel edges permitted but an edge is also permitted to join a vertex
to itself. Such an edge is called a loop." (in contrast to a
multigraph, see df-umgren 16201). (Contributed by Mario Carneiro,
11-Mar-2015.) (Revised by AV, 24-Nov-2020.) (Revised by Jim Kingdon,
3-Jan-2026.)
|
| ⊢ UPGraph = {𝑔 ∣ [(Vtx‘𝑔) / 𝑣][(iEdg‘𝑔) / 𝑒]𝑒:dom 𝑒⟶{𝑥 ∈ 𝒫 𝑣 ∣ (𝑥 ≈ 1o ∨ 𝑥 ≈
2o)}} |