Example 1.4 (Scott 1981, PRG-19, §1) #
Scott's third worked example: the binary tree of depth 2. Tokens are the
finite binary
sequences of length ≤ 2, Δ = {Λ, 0, 1, 00, 01, 10, 11}, and the neighbourhoods
are the
subtrees rooted at each node:
𝒟 = {Δ, {0,00,01}, {1,10,11}, {00}, {01}, {10}, {11}}.
We encode the seven tokens as Fin 7:
| token | Λ | 0 | 1 | 00 | 01 | 10 | 11 |
|---|---|---|---|---|---|---|---|
Fin 7 | 0 | 1 | 2 | 3 | 4 | 5 | 6 |
so left = {0,00,01} = {1,3,4}, right = {1,10,11} = {2,5,6}, and the four
leaves are the
singletons {3}, {4}, {5}, {6}.
We build the neighbourhood system (Definition 1.1) and classify its domain
elements
(Definition 1.6): there are exactly seven filters. Unlike Example 1.3's linear
chain, this is
the first example with branching — at the partial elements
elemZero/elemOne one has a
choice of how to refine toward one of the four total (leaf) elements.
This is a concrete finite computation (fin_cases/simp); footprint
[propext, Classical.choice, Quot.sound] — same as Examples 1.2/1.3.
The master neighbourhood Δ (the whole tree).
Instances For
The left subtree {0, 00, 01} = {1, 3, 4}.
Instances For
The right subtree {1, 10, 11} = {2, 5, 6}.
Instances For
The leaf {00} = {3}.
Equations
Instances For
The leaf {01} = {4}.
Equations
Instances For
The leaf {10} = {5}.
Equations
Instances For
The leaf {11} = {6}.
Equations
Instances For
The seven neighbourhoods of Example 1.4.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Membership in the neighbourhood system 𝒟 of Example 1.4.
Equations
Instances For
Distinctness of neighbourhoods (only the pairs needed below). #
Nested-subset facts. #
"Which neighbourhoods contain a given one" (upward classification). #
Intersections. #
Example 1.4. The binary-tree neighbourhood system on Δ = {Λ,0,1,00,01,10,11}.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The bottom element ⊥ = {Δ} (node Λ).
Equations
- One or more equations did not get rendered due to their size.
Instances For
The partial element {Δ, left} (node 0): the left branch is decided.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The partial element {Δ, right} (node 1): the right branch is decided.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The total element {Δ, left, leaf00} (leaf 00).
Equations
- One or more equations did not get rendered due to their size.
Instances For
The total element {Δ, left, leaf01} (leaf 01).
Equations
- One or more equations did not get rendered due to their size.
Instances For
The total element {Δ, right, leaf10} (leaf 10).
Equations
- One or more equations did not get rendered due to their size.
Instances For
The total element {Δ, right, leaf11} (leaf 11).
Equations
- One or more equations did not get rendered due to their size.
Instances For
Filter classification: the seven elements. #
Example 1.4 classification. Every filter is one of the seven: the bottom
⊥, the two
branch partials elemZero/elemOne, or one of the four total leaf elements.