Exercise 3.19 (Scott 1981, PRG-19, §3) — the sum functor f + g #
Given approximable mappings f : 𝒟₀ → 𝒟₀' and g : 𝒟₁ → 𝒟₁', Scott's Exercise
3.19 also asks for the
sum mapping f + g : 𝒟₀ + 𝒟₁ → 𝒟₀' + 𝒟₁', characterized (equations (iii), (iv))
by
out₀ ∘ (f + g) ∘ in₀ = f, andout₁ ∘ (f + g) ∘ in₁ = g.
We build f + g (sumMap) directly as a relation between sum-neighbourhoods: it
routes the left copy
0X through f (to 0Y'), the right copy 1Y through g (to 1Y'), and sends
everything to the
master neighbourhood {Λ} ∪ 0Δ₀' ∪ 1Δ₁'. The disjointness of the two tagged
copies (Exercise 3.18) is
exactly what makes this a well-defined approximable mapping — a left input can
never produce a
right-tagged output, so there is no cross-contamination through g(⊥).
Scott also asks whether (iii), (iv) uniquely determine f + g: they do not,
because the behaviour
on the basepoint Λ (i.e. (f + g)(⊥)) is unconstrained; our choice sends Λ to
Λ.
Everything is choice-free (#print axioms ⊆ {propext, Quot.sound}).
Structural extraction lemmas for sum-neighbourhoods. #
A sum-neighbourhood contained in a left copy 0X is itself a left copy
0X₂ (the
basepoint and
the right copy are excluded, using non-emptiness).
A sum-neighbourhood contained in a right copy 1Y is itself a right copy
1Y₂.
A sum-neighbourhood that contains the master is the master.
The sum mapping f + g. #
Exercise 3.19 (Scott 1981, PRG-19). The sum mapping f + g : 𝒟₀ + 𝒟₁ → 𝒟₀' + 𝒟₁'. As a
relation between sum-neighbourhoods, W (f+g) W' holds iff W' is the codomain
master, or W = 0X
with W' = 0Y' and X f Y', or W = 1Y with W' = 1Y' and Y g Y'.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The defining identities (iii) and (iv). #
Exercise 3.19(iii) (Scott 1981, PRG-19). out₀ ∘ (f + g) ∘ in₀ = f.
Exercise 3.19(iv) (Scott 1981, PRG-19). out₁ ∘ (f + g) ∘ in₁ = g.