Exercise 1.19 (Scott 1981, PRG-19, ยง1) โ positive neighbourhood systems #
Scott replaces condition (ii) of Definition 1.1 by the biconditional (iiโฒ):
whenever
X, Y โ ๐, then X โฉ Y โ โ
iff X โฉ Y โ ๐. The predicate IsPositive and the
builder
ofPositive (positive โน neighbourhood system) live in Basic.lean.
This file supplies the two examples requested by the exercise:
positiveExampleโ a genuinely positive system (all non-empty subsets ofฮ, built withofPositive), withpositiveExample_isPositive;- a non-positive neighbourhood system
notPositiveSystemoverฮ = {0,1,2}with๐ = {ฮ, {0,1}, {1,2}}. It satisfies Definition 1.1 (the only overlapping pair{0,1},{1,2}has intersection{1}, which has no consistency witness in๐, so (ii) never fires) yet fails (iiโฒ):{0,1} โฉ {1,2} = {1}is non-empty but is not a neighbourhood (not_isPositive). This is a small stand-in for Hoare'sโ ร โexample (Scott notes "smaller examples are of course possible").
Everything is [propext, Quot.sound].
The master neighbourhood ฮ.
Instances For
The neighbourhood {0, 1}.
Equations
Instances For
The neighbourhood {1, 2}.
Equations
Instances For
๐ = {ฮ, {0,1}, {1,2}}.
Equations
Instances For
Membership in ๐.
Instances For
Exercise 1.19 โ the non-positive example is a neighbourhood system. The
only intersection
that is not already a neighbourhood is {0,1} โฉ {1,2} = {1}, and that case is
impossible: a
consistency witness Z โ {1} with Z โ ๐ does not exist (not_mem_sub_one).
Equations
- One or more equations did not get rendered due to their size.
Instances For
Exercise 1.19 โ the example is not positive. {0,1} and {1,2} are
neighbourhoods whose
intersection {1} is non-empty but is not a neighbourhood, contradicting (iiโฒ).