Exercise 4.18 (Scott 1981, PRG-19, Lecture IV) #
In Example 4.3 there are many unproved assertions about N and F. These should
be checked.
Example43.lean builds the natural-number domain N, the total elements n̂ = natElem n, and the
structure maps succ, pred, zero with their value equations. This file
discharges the remaining
structural assertions Scott leaves implicit:
- Element classification (
element_classification):|N|consists of exactly⊥and the total elementsn̂—Nis genuinely the flat domain overℕ. (This is the assertion that makesN"THE domain of integers".) - Peano's axioms for the total elements
⟨{n̂}, 0̂, succ⟩:natElem_injective/succMap_injective: distinct numerals are distinct elements, andsuccis one-one;natElem_zero_ne_succ/zero_ne_succMap:0̂is not a successor;predMap_succMap_natElem(already inExample43):pred ∘ succ = idon numerals.
The classification is classical (it decides whether x contains a singleton,
exactly as Example 4.3's
zeroMap is classical); the injectivity / zero-is-not-a-successor facts are
choice-free.
∅ is not a neighbourhood of N.
Exercise 4.18 (Scott 1981, PRG-19). Element classification: every element
of |N| is either
the bottom ⊥ or a total element n̂. So N is the flat domain over ℕ.
Exercise 4.18 (Scott 1981, PRG-19). The numerals are distinct: n̂ = m̂ ⟹ n = m.
Exercise 4.18 (Scott 1981, PRG-19). succ is injective on the total
elements.
Exercise 4.18 (Scott 1981, PRG-19). 0̂ is not a numeral successor.
Exercise 4.18 (Scott 1981, PRG-19). 0̂ is not in the image of succ —
Peano's
"zero is not a successor".