Documentation

LeanPool.DomainTheory.Neighborhood.Exercise421

Exercise 4.21 (Scott 1981, PRG-19, Lecture IV) — as a unique fixed point; #

addition & multiplication

Scott asks to show that the less-than-or-equal-to relation ℓ ⊆ ℕ × ℕ is uniquely determined by the fixed-point equation

ℓ = {(n, n) ∣ n ∈ ℕ} ∪ {(n, m⁺) ∣ (n, m) ∈ ℓ}.

Working in the power-set domain P(ℕ × ℕ) (a complete lattice, Exercise 4.14), the right-hand side is a monotone operator leOp. We show:

Scott then considers ⟨P ℕ, ℕ, ⁺⟩ with x⁺ = {n⁺ ∣ n ∈ x} and the unique function [·] : ℕ → P ℕ of 4.13(3) determined by [0] = ℕ and [m⁺] = [m]⁺. We identify it as the up-set [m] = {k ∣ m ≤ k} (upSet), with upSet_zero/upSet_succ the two recursion equations and upSet_unique their uniqueness (4.13(3)).

The structures ⟨ℕ, 0, ⁺⟩ and ⟨[m], m, ⁺⟩ are uniquely isomorphic via n ↦ m + n (addIso), connecting the isomorphism with ordinary addition (addIso_apply): the unique structure-preserving bijection sends n to m + n.

Finally, multiplication: the hint equation n·ℕ = {0} ∪ {n + m ∣ m ∈ n·ℕ} has, as its least solution in P ℕ, exactly the set of multiples of n (mulOp_lfp_eq_multiples).

All set-level constructions are choice-free (#print axioms ⊆ {propext, Quot.sound}).

The order relation as a unique fixed point. #

Scott's operator ℓ ↦ {(n, n)} ∪ {(n, m⁺) ∣ (n, m) ∈ ℓ} on P(ℕ × ℕ).

Equations
Instances For

    The relation itself, as a subset of ℕ × ℕ.

    Equations
    Instances For

      Exercise 4.21 (Scott 1981, PRG-19). solves Scott's fixed-point equation.

      theorem Domain.Neighborhood.Exercise421.mem_fixedPoint_iff {u : Set ( × )} (hu : leOp u = u) (n m : ) :
      (n, m) u n m

      The key step toward uniqueness: any fixed point u of leOp agrees with pointwise. By induction on the second coordinate m; the base case m = 0 uses that the successor clause cannot produce a 0 on the right.

      Exercise 4.21 (Scott 1981, PRG-19). The order relation is the unique fixed point of Scott's equation: any u with leOp u = u equals leRel.

      The function [·] : ℕ → P ℕ of 4.13(3): the up-sets. #

      Scott's x⁺ = {n⁺ ∣ n ∈ x} on P ℕ.

      Equations
      Instances For

        The up-set [m] = {k ∣ m ≤ k} — the value of Scott's unique function [·] of 4.13(3).

        Equations
        Instances For

          [0] = ℕ: the recursion base of 4.13(3).

          [m⁺] = [m]⁺: the recursion step of 4.13(3).

          theorem Domain.Neighborhood.Exercise421.upSet_unique (s : Set ) (h0 : s 0 = Set.univ) (hsucc : ∀ (m : ), s (m + 1) = succImage (s m)) :

          Exercise 4.21 / 4.13(3) (Scott 1981, PRG-19). [·] = upSet is the unique function with [0] = ℕ and [m⁺] = [m]⁺.

          The isomorphism ⟨ℕ, 0, ⁺⟩ ≅ ⟨[m], m, ⁺⟩ is addition. #

          Exercise 4.21 (Scott 1981, PRG-19). The structure-preserving bijection between ⟨ℕ, 0, ⁺⟩ and ⟨[m], m, ⁺⟩ (where [m] = {k ∣ m ≤ k}, with distinguished element m and the successor ). It is ordinary addition by m: n ↦ m + n.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For

            The isomorphism is given by addition: addIso m n = m + n.

            The isomorphism sends 0 to the distinguished element m of [m].

            theorem Domain.Neighborhood.Exercise421.addIso_succ (m n : ) :
            ((addIso m) (n + 1)) = ((addIso m) n) + 1

            The isomorphism preserves the successor: addIso m (n⁺) = (addIso m n)⁺.

            Multiplication via the hint fixed-point equation. #

            Scott's hint operator n·ℕ = {0} ∪ {n + m ∣ m ∈ n·ℕ} on P ℕ (for fixed n).

            Equations
            Instances For

              Exercise 4.21 (Scott 1981, PRG-19). The least solution of the multiplication equation n·ℕ = {0} ∪ {n + m ∣ m ∈ n·ℕ} is exactly the set of multiples of n.