Exercise 3.18 (Scott 1981, PRG-19, §3) — the sum (coproduct) system #
Scott's sum of 𝒟₀ (over Δ₀) and 𝒟₁ (over Δ₁), assuming no neighbourhood
is empty:
𝒟₀ + 𝒟₁ = {{Λ} ∪ 0Δ₀ ∪ 1Δ₁} ∪ {0X ∣ X ∈ 𝒟₀} ∪ {1Y ∣ Y ∈ 𝒟₁},
a neighbourhood system over {Λ} ∪ 0Δ₀ ∪ 1Δ₁. We model the tokens as Option (α ⊕ β): Λ = none,
0a = some (inl a), 1b = some (inr b); then 0X = il '' X and 1Y = ir '' Y.
The non-emptiness assumption (h₀, h₁) is exactly what makes the system closed
under intersection:
the two tagged copies are disjoint (inj₀ X ∩ inj₁ Y = ∅), so a cross pair 0X, 1Y is inconsistent
(no non-empty neighbourhood lies in ∅), and same-tag intersections reduce to
those of the factors.
We then build the injections inMapᵢ : 𝒟ᵢ → 𝒟₀ + 𝒟₁ and projections `outMapᵢ : 𝒟₀
- 𝒟₁ → 𝒟ᵢ
, and proveoutMapᵢ ∘ inMapᵢ = I_{𝒟ᵢ}`. (The non-emptiness assumption is what makes the system a neighbourhood system; the section/retraction identities hold for the resulting maps.)
Everything is choice-free (#print axioms ⊆ {propext, Quot.sound}).
The tagged left copy 0X = {some (inl a) ∣ a ∈ X}.
Equations
Instances For
The tagged right copy 1Y = {some (inr b) ∣ b ∈ Y}.
Equations
Instances For
The master neighbourhood of the sum: {Λ} ∪ 0Δ₀ ∪ 1Δ₁.
Equations
Instances For
Exercise 3.18 (Scott 1981, PRG-19). The sum system 𝒟₀ + 𝒟₁ over {Λ} ∪ 0Δ₀ ∪ 1Δ₁,
under the standing assumption that no neighbourhood of 𝒟₀ or 𝒟₁ is empty.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The injections inᵢ and projections outᵢ. #
The left content leftPart W ⊆ Δ₀ of a sum-neighbourhood W: the 0-tagged
tokens of W,
plus all of Δ₀ whenever W reaches into the right copy or the basepoint (so
non-left
neighbourhoods contribute only Δ₀, i.e. project to ⊥). This is a genuine
(choice-free) function
of W.
Equations
Instances For
The right content rightPart W ⊆ Δ₁, symmetric to leftPart.
Equations
Instances For
Exercise 3.18 (Scott 1981, PRG-19). The left injection in₀ : 𝒟₀ → 𝒟₀ + 𝒟₁,
X (in₀) W ↔ 0X ⊆ W.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Exercise 3.18 (Scott 1981, PRG-19). The right injection in₁ : 𝒟₁ → 𝒟₀ + 𝒟₁.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Exercise 3.18 (Scott 1981, PRG-19). The left projection out₀ : 𝒟₀ + 𝒟₁ → 𝒟₀,
W (out₀) X ↔ leftPart W ⊆ X (right/basepoint neighbourhoods relate only to
Δ₀).
Equations
- One or more equations did not get rendered due to their size.
Instances For
Exercise 3.18 (Scott 1981, PRG-19). The right projection out₁ : 𝒟₀ + 𝒟₁ → 𝒟₁.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Exercise 3.18 (Scott 1981, PRG-19). out₀ ∘ in₀ = I_{𝒟₀}.
Exercise 3.18 (Scott 1981, PRG-19). out₁ ∘ in₁ = I_{𝒟₁}.