Skip to content

Commit 1da4744

Browse files
chore: Concepts in graphs (#1646)
1 parent 2c653ae commit 1da4744

File tree

49 files changed

+198
-129
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+198
-129
lines changed

config/codespell-dictionary.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Kratowski->Kuratowski
33
Kratowsky->Kuratowski
44
Kuratowsky->Kuratowski
55
Lavwere->Lawvere
6+
ahda->agda
67
anamorhpism->anamorphism
78
anamorhpisms->anamorphisms
89
anamorhpsim->anamorphism

src/elementary-number-theory/bell-numbers.lagda.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ The {{#concept "Bell numbers" Agda=bell-number-ℕ WDID=Q816063 WD="Bell number"
2626
be defined recursively by $B_0 := 1$ and
2727

2828
$$
29-
B_{n+1} := \sum_{k=0}^{n} \binom{n}{k}B_k.
29+
B_{n+1} := ∑_{k=0}^{n} \binom{n}{k}B_k.
3030
$$
3131

3232
The Bell numbers are listed as sequence A000110 in the

src/elementary-number-theory/catalan-numbers.lagda.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ several combinatorics problems. The sequence starts
3535

3636
The Catalan numbers may be defined by any of the formulas
3737

38-
1. $C_{n + 1} = \sum_{k = 0}^n C_k C_{n-k}$, with $C_0 = 1$,
38+
1. $C_{n + 1} = _{k = 0}^n C_k C_{n-k}$, with $C_0 = 1$,
3939
2. $C_n = {2n \choose n} - {2n \choose n + 1}$,
4040
3. $C_{n+1} = \frac{2(2n+1)}{n+2}C_n$, with $C_0 = 1$,
4141
4. $C_{n} = \frac{1}{n+1}{2n \choose n}$,
@@ -53,7 +53,7 @@ The Catalan numbers may be defined to be the sequence satisfying $C_0 = 1$ and
5353
the recurrence relation
5454

5555
$$
56-
C_{n + 1} = \sum_{k = 0}^n C_k C_{n-k}.
56+
C_{n + 1} = ∑_{k = 0}^n C_k C_{n-k}.
5757
$$
5858

5959
```agda

src/graph-theory/circuits-undirected-graphs.lagda.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ open import graph-theory.undirected-graphs
2121

2222
## Idea
2323

24-
A {{#concept "circuit" Agda=circuit-Undirected-Graph WD="cycle" WDID=Q245595}}
24+
A
25+
{{#concept "circuit" Disambiguation="in an undirected graph" Agda=circuit-Undirected-Graph}}
2526
in an [undirected graph](graph-theory.undirected-graphs.md) `G` consists of a
2627
[`k`-gon](graph-theory.polygons.md) `H` equipped with a
2728
[totally faithful](graph-theory.totally-faithful-morphisms-undirected-graphs.md)

src/graph-theory/connected-undirected-graphs.lagda.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ open import graph-theory.walks-undirected-graphs
2020
## Idea
2121

2222
An [undirected graph](graph-theory.undirected-graphs.md) is said to be
23-
**connected** if any point can be reached from any point by a
23+
{{#concept "connected" Disambiguation="undirected graph" WD="connected graph" WDID=Q230655 Agda=is-connected-Undirected-Graph}}
24+
if any point can be reached from any point by a
2425
[walk](graph-theory.walks-undirected-graphs.md).
2526

2627
## Definition

src/graph-theory/directed-graphs.lagda.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,27 @@ open import foundation.universe-levels
1818

1919
## Idea
2020

21-
A **directed graph** consists of a type of vertices equipped with a binary, type
22-
valued relation of edges. Alternatively, one can define a directed graph to
23-
consist of a type `V` of **vertices**, a type `E` of **edges**, and a map
24-
`E → V × V` determining the **source** and **target** of each edge.
21+
A
22+
{{#concept "directed graph" WD="directed graph" WDID=Q1137726 Agda=Directed-Graph}}
23+
consists of a type of vertices equipped with a binary, type valued relation of
24+
edges. Alternatively, one can define a directed graph to consist of a type `V`
25+
of **vertices**, a type `E` of **edges**, and a map `E → V × V` determining the
26+
**source** and **target** of each edge.
2527

2628
To see that these two definitions are
2729
[equivalent](foundation-core.equivalences.md), recall that
28-
[$\Sigma$-types](foundation.dependent-pair-types.md) preserve equivalences and a
29-
type family $A \to U$ is equivalent to $\sum_{(C : U)} C \to A$ by
30+
[$Σ$-types](foundation.dependent-pair-types.md) preserve equivalences and a type
31+
family $A U$ is equivalent to $_{(C : U)} C A$ by
3032
[type duality](foundation.type-duality.md). Using these two observations we make
3133
the following calculation:
3234

3335
$$
3436
\begin{equation}
3537
\begin{split}
36-
\sum_{(V\,:\,\mathcal{U})} (V \to V \to \mathcal{U}) & \simeq \sum_{(V\,:\,\mathcal{U})}
37-
(V \times V \to \mathcal{U}) \\
38-
&\simeq \sum_{(V,E\,:\,\mathcal{U})} (E \to (V \times V)) \\
39-
&\simeq \sum_{(V,E\,:\,\mathcal{U})} ((E \to V) \times (E \to V))
38+
∑_{(V : 𝒰)} (V V → 𝒰)
39+
& ≃ ∑_{(V : 𝒰)} (V × V → 𝒰) \\
40+
& ≃ ∑_{(V,E : 𝒰)} (E (V × V)) \\
41+
& ≃ ∑_{(V,E : 𝒰)} ((E V) × (E V))
4042
\end{split}
4143
\end{equation}
4244
$$

src/graph-theory/displayed-large-reflexive-graphs.lagda.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ open import graph-theory.reflexive-graphs
1818

1919
## Idea
2020

21-
A {{#concept "displayed large reflexive graph"}} `H` a over a base
21+
A
22+
{{#concept "displayed large reflexive graph" Agda=Displayed-Large-Reflexive-Graph}}
23+
`H` a over a base
2224
[large reflexive graph](graph-theory.large-reflexive-graphs.md) `G` is the
2325
[structure](foundation.structure.md) of a dependent large reflexive graph over
2426
`G`. It consists of

src/graph-theory/edge-colored-undirected-graphs.lagda.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ open import graph-theory.undirected-graphs
2020

2121
## Idea
2222

23-
An **edge-colored undirected graph** is an
24-
[undirected graph](graph-theory.undirected-graphs.md) equipped with a family of
25-
maps `E p → X` from the edges at
23+
An
24+
{{#concept "edge-colored undirected graph" WD="edge-labeled graph" WDID=Q1541875 Agda=Edge-Colored-Undirected-Graph}}
25+
is an [undirected graph](graph-theory.undirected-graphs.md) equipped with a
26+
family of maps `E p → X` from the edges at
2627
[unordered pairs](foundation.unordered-pairs.md) `p` into a type `C` of colors,
2728
such that the induced map `incident-Undirected-Graph G x → C` is
2829
[injective](foundation.injective-maps.md) for each vertex `x`.

src/graph-theory/embeddings-directed-graphs.lagda.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@ open import graph-theory.morphisms-directed-graphs
2020

2121
## Idea
2222

23-
An **embedding of directed graphs** is a
24-
[morphism](graph-theory.morphisms-directed-graphs.md) `f : G → H` of
25-
[directed graphs](graph-theory.directed-graphs.md) which is an
26-
[embedding](foundation.embeddings.md) on vertices such that for each pair
27-
`(x , y)` of vertices in `G` the map
23+
An
24+
{{#concept "embedding" Disambiguation="of directed graphs" Agda=is-emb-hom-Directed-Graph Agda=emb-Directed-Graph}}
25+
of [directed graphs](graph-theory.directed-graphs.md) is a
26+
[morphism](graph-theory.morphisms-directed-graphs.md) of directed graphs
27+
`f : G → H` which is an [embedding](foundation.embeddings.md) on vertices such
28+
that for each pair `(x , y)` of vertices in `G` the map
2829

2930
```text
3031
edge-hom-Graph G H : edge-Graph G p → edge-Graph H x y

src/graph-theory/embeddings-undirected-graphs.lagda.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,13 @@ open import graph-theory.undirected-graphs
2020

2121
## Idea
2222

23-
An **embedding of undirected graphs** is a
23+
An
24+
{{#concept "embedding" Disambiguation="of undirected graphs" Agda=is-emb-hom-Undirected-Graph Agda=emb-Undirected-Graph}}
25+
of [undirected graphs](graph-theory.undirected-graphs.md) is a
2426
[morphism](graph-theory.morphisms-undirected-graphs.md) `f : G → H` of
25-
[undirected graphs](graph-theory.undirected-graphs.md) which is an
26-
[embedding](foundation.embeddings.md) on vertices such that for each
27-
[unordered pair](foundation.unordered-pairs.md) `p` of vertices in `G` the map
27+
undirected graphs which is an [embedding](foundation.embeddings.md) on vertices
28+
such that for each [unordered pair](foundation.unordered-pairs.md) `p` of
29+
vertices in `G` the map
2830

2931
```text
3032
edge-hom-Undirected-Graph G H :

0 commit comments

Comments
 (0)