The mathematical text and code are in English.

Forcing with Urelements

One name,
two branches

Can one choose the right before the branch is known?

Study handbook

Supervised by Yurii Khomskii

The three-condition partial orderThe weakest condition 1 is above two incompatible terminals, p on the left and q on the right. 1 p q \{1,p\}\{1,q\}
Hover, focus or tap a branch.

Both outcomes are still open at 11.

Reader’s guide

Start with a prediction

Imagine being handed a slip of paper before anyone chooses left or right. It already contains the you propose. On the left the examiner will ask for the sole member of {a}\{a\}. On the right the examiner will ask for the sole member of {b}\{b\}. What could you write on the slip?

This is the puzzle on slide 6. You can start here if you remember the branching picture and little else. The first chapters rebuild the two and practice a name. At each change of notation, compute one value on paper, compare it with the worked solution, then read the corresponding Isabelle expression. Familiarity with Isabelle is optional.

What counts as solving the puzzle?

One syntactically fixed name must evaluate to aa under the left filter and to bb under the right filter. Writing down two names after learning the outcome solves an easier problem. Predict whether putting the two into a single conditional set-name works. Keep your answer until the row experiment.

Presentation, slide 6 · The question on two branches

Chapter 1

A forcing refresher

Open this part of the presentation ↗

Foundations · slide 2 · slide 3

Objects, atoms, and the ground model

The example concerns a single whose value should be one on one branch and a different atom on the other. Before calculating any values, we need to distinguish an atom from a , a condition from a , and a name from the object it denotes.

11. An atom has no members, but need not be the empty set

Yao works in a language with membership, written ∈\in, and a primitive predicate A\mathcal{A}. The assertion A(x)\mathcal{A}(x) means that xx is an atom, also called an urelement. An object is a set precisely when it is not an atom. “Primitive” means that being an atom is part of the language; we do not define it as having no members.

The atom axiom and the set abbreviation

A(a)⇒∀x(x∉a),Set⁡(x)⇔¬A(x).\mathcal{A}(a) \Rightarrow \forall x (x \notin a), \qquad \operatorname{Set}(x) \Leftrightarrow \neg \mathcal{A}(x).

The implication goes in one direction. The empty set ∅\varnothing also has no members, so having no members does not establish that something is an atom.

Assume that aa and bb are distinct atoms. Then a,ba, b, and ∅\varnothing are three distinct objects with no members. This creates no conflict with , because extensionality compares sets:

Set⁡(x)∧Set⁡(y)∧∀z(z∈x⇔z∈y)⇒x=y.\operatorname{Set}(x) \land \operatorname{Set}(y) \land \forall z (z \in x \Leftrightarrow z \in y) \Rightarrow x = y.

We cannot apply this implication to two atoms while omitting its set hypotheses. Atoms may belong to sets, even though atoms have no members of their own.

Four objects that must remain distinct
ObjectKind of objectMembers
aaAtomNone
∅\varnothingSetNone
{a}\{a\}SetThe atom aa
{{a}}\{\{a\}\}SetThe set {a}\{a\}

In particular, a∈{a}a \in \{a\} and a≠{a}a \ne \{a\}. The braces change the object. Much of the example becomes easier once the value {a}\{a\} and its member aa are kept separate.

Primary source: Yao, §1.2, Axiom A, Extensionality, and Definition 1, printed pp. 4–5 / PDF pp. 11–12. Presentation: slide 2, “Atoms, sets and the empty set”.

2. How many atoms are assumed?

The base theory does not require that any atoms exist. Our example adds the hypotheses A(a),A(b)\mathcal{A}(a), \mathcal{A}(b), and a≠ba \ne b. It does not say that these are the only atoms. Nor does the base theory require a set of all atoms.

The predicate A\mathcal{A} defines the class of atoms. That class might be a set, possibly empty or infinite. It might instead be a proper class: no set in the model contains all the atoms. “Infinite” and “proper class” are different notions. An infinite set is still a set. The two-branch example needs only two distinct atoms; it does not depend on the existence of a proper class of atoms.

Yao, Definition 1 and the following paragraph, printed p. 5 / PDF p. 12; class notation in Definition 3, printed p. 6 / PDF p. 13.

3. What is the ground model MM?

The is the model of set theory from which the forcing construction begins. Following Yao’s countable-transitive-model setting, assume that MM satisfies ZFUR\mathrm{ZFU}_{R}, a theory of sets and atoms with . The letters a,ba, b, and the forcing will denote objects in MM. Names used to construct the extension also belong to MM.

Two assumptions with different jobs

Transitivity
If x∈Mx \in M and y∈xy \in x, then y∈My \in M. A set belonging to MM has all its members in MM. The model uses ordinary membership restricted to its domain. For an atom, the condition on members is vacuous.
External countability
From outside MM, its objects can be enumerated. The enumeration need not be an element of MM. Nothing here asserts that the enumeration is computable.

External countability does not mean that the model regards every one of its sets as countable. For a set to be countable inside MM, a suitable enumeration must be available inside the model. These are different requirements. In the present finite forcing, we can list the generics directly; external countability belongs to the wider framework rather than to that short finite calculation.

The four principal symbols and their roles
SymbolMeaningQuestion it answers
MMThe ground modelWhere are the objects and names initially available?
G⊆PG \subseteq \mathbb{P}A filter of conditionsWhich conditions are used together?
σG\sigma_{G}The value of a name at that filterWhich object does this name denote at GG?
M[G]M[G]The extension formed from values of names in MMWhat model contains the resulting values?

The question will concern a name for an object in an extension. We are not looking for a name whose value is the whole model M[G]M[G]. Moreover, in our finite example both extensions equal MM. The example tests the expressive power of the naming system without also requiring new sets.

Ground-model framework: Yao, §§3.1–3.2, printed pp. 44–45 / PDF pp. 51–52. Old valuation and extension: printed p. 47 / PDF p. 54. Repaired extension: Definition 63, printed p. 53 / PDF p. 60. Presentation: slide 3.

Exercise 1 · objects and viewpoints

Does “xx has no members” imply that xx is an atom? Does the external countability of MM imply that an enumeration of MM belongs to MM?

Worked solution

Both answers are no. The empty set has no members and is a set. External countability gives an enumeration in the surrounding universe; it does not place that enumeration inside MM.

The finite forcing order · slides 3–6

Three conditions and two incompatible choices

A condition describes information. In the forcing convention used here, moving down the order means strengthening that information.

Inside MM, take a pure P\mathbb{P} with three distinct conditions:

P={1,p,q},p<1,q<1.{\mathbb{P}=\{1,p,q\}},\quad\allowbreak {p\lt 1},\quad\allowbreak {q\lt 1}.

“Pure” means that no occur in the set-theoretic construction of the poset. Thus the conditions pp and qq are not the atoms aa and bb. The symbols are labels for different roles.

Reading the order

s≤rs \le r means that ss is at least as strong as rr. The maximal element 11 is therefore the weakest condition. Equality is allowed: every condition strengthens itself.

The complete order relation: is the row condition ≤\le the column condition?
Row ≤\le column?11ppqq
11YesNoNo
ppYesYesNo
qqYesNoYes

The five “yes” entries are the whole relation. There are no hidden conditions below the two terminal conditions.

Incomparability does not always imply incompatibility

The conditions pp and qq are incomparable: neither is below the other. They are also , which is a stronger statement about possible common strengthenings.

Incompatibility

r⊥s⇔¬∃t∈P(t≤r∧t≤s).r \perp s \Leftrightarrow \neg \exists t \in \mathbb{P} (t \le r \land t \le s).

Check all three candidates for a common strengthening of pp and qq. The condition 11 is not below either terminal condition; pp is not below qq; and qq is not below pp. Therefore p⊥qp \perp q. In a larger poset, two incomparable conditions could have another condition below both.

Both pp and qq are minimal: neither has a strict strengthening. Neither is a minimum, because neither is below every condition. The presentation calls them poset atoms in this order-theoretic sense. Urelements are a different kind of atom. The pure poset need not contain any urelements.

An is a of pairwise incompatible conditions. Here {p,q}\{p, q\} is a maximal antichain: no further condition can be added while preserving pairwise incompatibility. The condition 11 is compatible with both existing members.

The three-condition order is the presentation’s explicit finite specialisation of Yao’s Remark 55, printed pp. 47–48 / PDF pp. 54–55; it is not a figure reproduced from the thesis. Purity is defined in Definition 2, printed p. 5 / PDF p. 12. Presentation: slide 3 and slide 4.

Exercise 2 · a common weakening

Since p≤1p \le 1 and q≤1q \le 1, both conditions have 11 in common above them. Why does this not make them compatible?

Worked solution

Compatibility requires a common strengthening t≤p,qt \le p, q, below both. The condition 11 is a common weakening, above both. It does not satisfy the required inequalities.

Which subsets are possible? · slide 4 · slide 5

Filters, dense sets, and exactly two generics

A collects conditions that can be accepted together. Genericity adds a requirement about dense . These are separate definitions, and the {1}\{1\} is a useful test of the distinction.

A filter for the forcing order

A set G⊆PG \subseteq \mathbb{P} is a filter if:

  1. Nonemptiness: G≠∅G \ne \varnothing.
  2. : if r∈G,s∈Pr \in G, s \in \mathbb{P}, and r≤sr \le s, then s∈Gs \in G.
  3. Downward : for every r,s∈Gr, s \in G, there is t∈Gt \in G with t≤rt \le r and t≤st \le s.

Upward closure includes weaker information once stronger information has been accepted. Directedness says that any two accepted conditions have a common strengthening that is also accepted. It does not demand that every strengthening of an accepted condition belong to the filter.

Every filter in this contains 11. Choose a condition rr in the nonempty filter; then r≤1r \le 1, so upward closure gives 11. No filter contains both pp and qq, because directedness would supply a common strengthening that the poset does not have.

All eight subsets of the three-condition poset
SubsetNonempty?Upward closed?Directed?Filter?Generic?
∅\varnothingNoYes, vacuouslyYes, vacuouslyNoNo
{1}\{1\}YesYesYesYesNo
{p}\{p\}YesNo: 11 is missingYesNoNo
{q}\{q\}YesNo: 11 is missingYesNoNo
{1,p}\{1, p\}YesYesYesYesYes
{1,q}\{1, q\}YesYesYesYesYes
{p,q}\{p, q\}YesNo: 11 is missingNo: pairNoNo
P\mathbb{P}YesYesNo: incompatible pairNoNo

The empty set satisfies the two universally quantified closure conditions vacuously, but fails nonemptiness. For {1}\{1\}, the only directedness test is the pair 1,11, 1, and the is 11. Thus {1}\{1\} really is a filter. For {1,p}\{1, p\}, the pair 1,p1, p has strengthening pp; the remaining pairs are immediate. The right-hand filter is symmetric.

Density: read the quantifiers in order

A dense subset

A subset D⊆PD \subseteq \mathbb{P} is dense when

∀r∈P∃s∈D(s≤r).\forall r \in \mathbb{P} \exists s \in D (s \le r).

Start with any condition rr. Find at least one member of DD strengthening it. The choice of ss can depend on rr, and ss may equal rr.

The definition does not say that every member of DD lies below every condition. To check D={p,q}D = \{p, q\}, make three separate choices:

A witness for each test
Starting condition rrChoose ss in DDRequired comparison
11pp (or qq)p≤1p \le 1
ppppp≤pp \le p
qqqqq≤qq \le q

The singleton {p}\{p\} fails the test starting at qq. The singleton {1}\{1\} fails starting at pp. In fact, every dense set must contain both terminal conditions: applying density at pp forces pp into the set, because it is its own only strengthening; similarly for qq. The only dense subsets are consequently {p,q}\{p, q\} and P\mathbb{P}.

Genericity: a filter must meet every relevant dense set

An MM-generic filter

A filter GG is MM-generic if, for every dense D⊆PD \subseteq \mathbb{P} belonging to MM,

G∩D≠∅.G \cap D \ne \varnothing.

To meet a dense set is to share at least one condition with it. The filter need not contain the whole dense set.

  1. A generic contains a terminal condition. The dense set {p,q}\{p, q\} belongs to MM, since both conditions do and the model can form their pair. A generic must meet it.
  2. It cannot contain both. Directedness would contradict p⊥qp \perp q.
  3. It contains 11. Upward closure supplies the weaker condition.
  4. There are two candidates. They are Gp={1,p}G_{p} = \{1, p\} and Gq={1,q}G_{q} = \{1, q\}.
  5. Both candidates work. They are filters, and every dense set contains both terminal conditions. The first meets each dense set in pp; the second meets it in qq.

This proves that there are exactly two generics. It also explains the last column of the table. The third filter {1}\{1\} misses the dense set {p,q}\{p, q\}. Conversely, that dense set is not a filter: it contains incompatible conditions and lacks 11.

The thesis assumes classical forcing background in §3.2, printed p. 45 / PDF p. 52. The definitions and exhaustive finite calculations above spell out the specialisation used in slides 4–5, related to Remark 55, printed pp. 47–48 / PDF pp. 54–55.

Why this forcing adds no objects to the model

Both filters already belong to MM: they are finite sets of objects of MM. with a filter in MM can be performed in MM by recursion. Thus every value belongs to MM. In the other direction, each object of MM has a canonical with that value. Hence M[Gp]=M[Gq]=MM[G_{p}] = M[G_{q}] = M, for both naming conventions discussed here.

This does not prevent one fixed name from taking different values with the two filters. The parameter of the evaluation changes even though the collection of available objects does not. That is the point of slide 6.

Old extensions and canonical names: Yao, printed pp. 46–47 / PDF pp. 53–54. Repaired extensions: Definition 63 and Lemma 64(1),(5), printed p. 53 / PDF p. 60. Equality with MM is the finite instance derived here.

Exercise 3 · filter, dense set, generic

Explain separately why {1}\{1\} is a filter, why it is not generic, and why {p,q}\{p, q\} is dense but not a filter.

Worked solution

{1}\{1\} is nonempty and upward closed; 11 witnesses its only directedness test. It is not generic because its intersection with the dense set {p,q}\{p, q\} is empty. The latter set is dense by the three-row calculation, but its two members have no common strengthening. It also fails upward closure.

Further comparison · when forcing does add a new set

In Cohen forcing, conditions are finite binary strings, ordered by extension: a longer string is stronger. Directedness makes any two strings in the filter agree wherever both are defined, because a common strengthening extends them both. Strings of length at least nn form a dense set for each natural number nn. A therefore determines an infinite binary sequence c=⋃Gc = \bigcup G.

For each binary sequence rr, the finite strings disagreeing with rr somewhere form a dense set in MM: extend any string by choosing a disagreeing next bit if necessary. Genericity makes cc meet this requirement for every such rr. Thus cc differs from every ground-model binary sequence, so it is new.

This comparison illustrates why the terminal two-branch poset is especially convenient for studying names. New-set phenomena can be set aside while we investigate the naming language.

Presentation: appendix slide 34. This is a standard background example, rather than a numbered result of Yao; the thesis assumes that background at printed pp. 45–46 / PDF pp. 52–53.

Chapter 1 · Work with the diagram

Which subsets qualify?

Choose a subset of {1,p,q}\{1, p, q\}. Before checking, decide whether it is a , a , or a . A subset can play different roles in these definitions.

Conditions in the subset
The initial subset contains only 11. Does it meet {p,q}\{p, q\}?
Why can a dense set contain both terminals while a filter cannot?

Density asks for a condition below each possible starting point. Each terminal has only itself below it. asks for one condition below any two members of the filter. There is no condition below both terminals.

Slide 5 · Why there are exactly two generic filters

Chapter 2

Why old names fail

Open this part of the presentation ↗

Names and their values · slide 6 · slide 8 · slide 9

Evaluate one fixed name, one filter at a time

We now know the two . Fix one of them, read the , and calculate its value. Keep the filter fixed throughout the recursive calculation. Then repeat the calculation with the other filter.

“Old” and “repaired” refer to two mathematical conventions for names. They do not refer to revisions of the presentation. Yao first analyses the existing convention and marks it with a subscript #\#. This chapter uses that convention throughout.

The two forms of old names

Old names, Definition 51

  1. Every is an .
  2. A of ordered pairs ⟨τ,r⟩\langle \tau, r \rangle is an old name if each τ\tau is an old name and each rr is a condition in P\mathbb{P}.

The construction is recursive and well founded: a set-name uses previously constructed . The empty set is a valid set-name, with no pairs to check.

A name of the first form is an atom. A name of the second form is a set-name. Not every set is a name; its elements must have the required form. The old names used for an extension are the ones in MM, written M#PM^{\mathbb{P}}_{\#}.

In an ordered pair ⟨τ,r⟩\langle \tau, r \rangle, the first component is the subname to evaluate and the second is the condition to test. The pair is not the unordered set {τ,r}\{\tau, r\}. It is also not itself the resulting value. In ⟨a,p⟩\langle a, p \rangle, the atom aa is the subname and pp is the condition.

Yao, Definition 51, printed p. 46 / PDF p. 53. Presentation: slide 8, “How to read an old name”.

The old valuation rule

An atom keeps its value; a set-name collects members

For an old name that is an atom,

aG=a.a_{G} = a.

For an old set-name σ\sigma,

σG={τG:∃r∈G(⟨τ,r⟩∈σ)}.\sigma_{G} = \{\tau_{G} : \exists r \in G (\langle \tau, r \rangle \in \sigma)\}.

The rule has four operations, in this order:

  1. Inspect a pair in the name. The pair must actually occur in σ\sigma.
  2. Test its condition. Keep it if its second component rr belongs to the fixed filter GG.
  3. Evaluate its subname. Calculate τG\tau_{G} using that same filter.
  4. Collect the values as members. The outer braces form a set of those values.

The output does not contain the conditions or the ordered pairs merely because those appeared in the name. It contains the values of active subnames. If two active pairs contribute the same value, that value occurs only once in the resulting set. If no pair is active, the result is ∅\varnothing.

Old valuation and M[G]#M[G]_{\#}: Yao, printed p. 47 / PDF p. 54. Presentation: slides 8–9.

The left-hand calculation

Choose the single old set-name

s#={⟨a,p⟩,⟨b,q⟩}.s_{\#} = \{\langle a, p \rangle, \langle b, q \rangle\}.

Now fix Gp={1,p}G_{p} = \{1, p\}. The first pair is active because p∈Gpp \in G_{p}. The second is inactive because q∉Gpq \notin G_{p}. The remaining subname is the atom aa, so its value is aa. Collect that value as a member:

(s#)Gp={aGp}={a}.(s_{\#})_{G_{p}} = \{a_{G_{p}}\} = \{a\}.

The whole name has value {a}\{a\}. Its unique member is aa. Those are two different answers to two different questions.

The right-hand calculation

Keep s#s_{\#} unchanged and use Gq={1,q}G_{q} = \{1, q\}. This time the pair with pp is inactive and the pair with qq is active. The remaining subname evaluates to bb, and the outer braces produce {b}\{b\}.

The same name under two different parameters
FilterActive pairSubname valueWhole-name valueIts unique member
GpG_{p}⟨a,p⟩\langle a, p \rangleaa{a}\{a\}aa
GqG_{q}⟨b,q⟩\langle b, q \ranglebb{b}\{b\}bb

The name does not change its pairs as the calculation proceeds. The atoms do not exchange identities. We change only the filter parameter. Both results are objects already in MM.

This is the finite instance of the old valuation and Remark 55 developed in slide 9. Yao: printed pp. 47–48 / PDF pp. 54–55.

Why the recursion is not circular

The definition of σG\sigma_{G} uses the values of its subnames. It does not use the value of σ\sigma to define itself. In the well-founded construction, subnames have lower . Eventually the calculation reaches atoms or the empty name.

For one additional level, let T={⟨s#,1⟩}T = \{\langle s_{\#}, 1 \rangle\}. Its pair is active in either filter because both contain 11. On the left, the subname s#s_{\#} has value {a}\{a\}; that set is now collected as one member:

TGp={(s#)Gp}={{a}}.T_{G_{p}} = \{(s_{\#})_{G_{p}}\} = \{\{a\}\}.

The same filter is used at every level. We first obtain aa, then {a}\{a\}, then {{a}}\{\{a\}\}. On the right we obtain {{b}}\{\{b\}\}. Each extra layer of collection changes the resulting set.

Exercise 4 · evaluate without skipping the braces

Evaluate s#s_{\#} in GqG_{q}, naming the inactive pair, the active subname’s value, and the value of the whole name. Then evaluate TT in that filter.

Worked solution

⟨a,p⟩\langle a, p \rangle is inactive. The active subname is bb, with value bb. Therefore (s#)Gq={b}(s_{\#})_{G_{q}} = \{b\}. The outer name TT has value {{b}}\{\{b\}\}.

Exercise 5 · two active pairs, one element

Let R={⟨a,p⟩,⟨a,1⟩}R = \{\langle a, p \rangle, \langle a, 1 \rangle\} be an old name. What is RGpR_{G_{p}}?

Worked solution

Both pairs contribute aa. The resulting set is {a}\{a\}; it does not contain two copies of that element.

A useful first stopping point is to reproduce both rows for s#s_{\#} and one calculation for TT. The next chapter adds a new question about a ; it is not another step of the same valuation algorithm.

Chapters 2 and 3 · Row experiment

Where do the braces come from?

Keep the two rows fixed. Change the to see which row is active, then change the role assigned to that row. In the old set-name the active row supplies a member. In the repaired selector a direct entry supplies the whole value.

Filter
Role of the rows
Conditional rows of SS or μ\mu
RowGuardUnder this filter
⟨a,p⟩\langle a, p \rangleppActive
⟨b,q⟩\langle b, q \rangleqqInactive
{a}\{a\}. The active row contributes aa as a member, and collecting the members puts braces around it.

Slide 9 · Evaluating SS · Slide 17 · A repaired witness · Yao, Definition 57, printed p. 48 / PDF 55

Chapter 2 · The witness test

Which name works on both branches?

Suppose someone writes down a before the branch is chosen. Read each row across: it passes precisely when its value belongs to the specified in both columns.

One proposed name, tested twice
Name fixed in advanceLeft branch
SGp={a}S_{G_p}=\{a\}
Right branch
SGq={b}S_{G_q}=\{b\}
Old atom-name aaIts value is constant.a∈{a}a\in\{a\}a∉{b}a\notin\{b\}
Old atom-name bbThe failure moves to the other branch.b∉{a}b\notin\{a\}b∈{b}b\in\{b\}
Old set-name SSEach value is a singleton.{a}∉{a}\{a\}\notin\{a\}{b}∉{b}\{b\}\notin\{b\}
Repaired selector wwIts active entry gives the itself.a∈{a}a\in\{a\}b∈{b}b\in\{b\}

The first two rows already supply a on each branch. What is missing is a single row that passes twice. Every other old atom-name is constant too, and every old set-name evaluates to a . The last row shows what Yao’s repaired valuation makes possible.

Slide 9 · Evaluating the old name · Slide 17 · A repaired witness · Yao, Remark 55, printed p. 47 / PDF 54 · Definition 63, printed p. 53 / PDF 60

Chapter 2 · A first Isabelle proof

From the active row to a theorem

The mathematical argument is short: the left contains pp, so the row carrying aa is active. Turning that sentence into a proof teaches us to distinguish a definition, a claim and a reason for the claim. Isabelle checks a claim against definitions and earlier theorems in a theory, a file ending in .thy. HOL supplies the typed logic; lets us write a proof as named steps.

How to read your first theory file

Open First_Step.thy and read from the top. The header theory First_Step the file. The next line, imports Main, makes ’s standard definitions and theorems available. The command begin opens the theory body; the final end closes it. Isabelle reads commands in order, so a later proof can use a definition from an earlier line.

Try a question you can already answer from the diagram. Can a condition extend itself? On paper, pick any condition rr. Since the relation allows equality, r≤rr\le r. Here are the corresponding lines in the teaching file.

lemma stronger_reflexive: "stronger p p"
  by (simp add: stronger_def)

stronger is the name given to the order relation. In this statement the lower-case p is a variable ranging over any condition. Upper-case P is the constructor for one particular terminal. The first line gives the result a name and makes the quoted claim the current goal, the proposition Isabelle asks you to prove. The second line gives a complete proof. simp simplifies the goal using the defining equation stronger_def: one condition extends another when they are equal or the latter is One. Here the equality holds immediately. No goals remain.

Move the caret from the statement to the end of its proof in Isabelle’s editor to see the change. The membership argument below uses the same sequence with several intermediate goals.

1. Know which kind of thing each name denotes

The types used in this first lesson

datatype condition = One | P | Q
datatype atom = A | B
flat_value :: condition set ⇒ atom set

The first line creates a with exactly three distinct values. One represents the top condition 11 in the diagram; it is a constructor name, not an arithmetic numeral. P and Q represent its two terminals. The second line creates another type with two distinct values, A and B. These are labels for the two in the finite model. A condition cannot be used where an atom is required.

Read condition set ⇒ atom set as “takes a of conditions and returns a set of atom labels”. Thus G_left is a condition set, flat_value G_left is an atom set, and A is an atom. The statements A ∈ flat_value G_left and flat_value G_left = {A} are well typed. The expression flat_value G_left = A tries to equate a set with an atom and has a type error.

In the mathematical notation earlier in the chapter, the relevant objects are aa, the {a}\{a\} and the filter GpG_p. In this first HOL lesson their representations are A, {A} and G_left. This is a small typed model of the calculation, not a construction of a universe satisfying ZFU\mathrm{ZFU}.

Nipkow, Programming and Proving in Isabelle/HOL, types and theories, printed pp. 3–5 / PDF 7–9 · Slide 8 · How to read an old name

2. Read the definition before proving a claim

definition conditional_table :: "(atom × condition) list" where
  "conditional_table = [(A, P), (B, Q)]"

definition conditional_pairs :: "(atom × condition) set" where
  "conditional_pairs = set conditional_table"

definition flat_value :: "condition set ⇒ atom set" where
  "flat_value G = {a. ∃ p. (a, p) ∈ conditional_pairs ∧ p ∈ G}"

A pair (A, P) puts a label beside its activating condition. The square brackets make a list of rows. The function set converts this list into a set, so a repeated row or a different order does not change the set of pairs. This simple representation lets us edit a table without confusing list position with mathematical membership.

In the comprehension {a. …}, the lower-case a is a bound variable ranging over atom labels. It is not the particular constant A. The formula says: include a label if there exists a condition p such that its row is present and that condition is in G. The dot after ∃ p introduces the condition that the chosen must satisfy.

Now substitute G_left = {One, P}. The row (A, P) qualifies; the row (B, Q) does not. Therefore the value is {A}. Proving equality with that singleton includes both showing that A occurs and ruling out other labels. The membership claim A ∈ flat_value G_left needs only the first part. We will prove that part explicitly.

Teaching source · the actual table and valuation definitions · Slide 9 · The two singleton values

3. Give an existential witness and discharge its two obligations

Here is the complete membership proof used by the teaching theory. The editable notebook names its generated version selected_member; the checked source names the same argument selected_A_is_in_left_value. Neither name changes the proposition being proved.

lemma selected_A_is_in_left_value: "A ∈ flat_value G_left"
proof -
  have selected_row: "(A, P) ∈ conditional_pairs"
    by (simp add: conditional_pairs_def conditional_table_def)
  have active_condition: "P ∈ G_left"
    by (simp add: G_left_def)
  have selected_witness:
    "∃ p. (A, p) ∈ conditional_pairs ∧ p ∈ G_left"
  proof (rule exI[where x = P])
    show "(A, P) ∈ conditional_pairs ∧ P ∈ G_left"
      using selected_row active_condition by (rule conjI)
  qed
  show ?thesis
    using selected_witness unfolding flat_value_def by (rule CollectI)
qed

lemma gives a name and states the target in quotation marks. proof - starts a structured argument without selecting a special initial rule. Each have opens a smaller claim; its following by must finish that claim before the named fact becomes available. These facts are proved here, not assumed.

The first two steps record the row and its active condition. simp add: … unfolds the supplied definitions and simplifies the resulting finite membership statements. The suffix _def names the equation introduced by a definition. The facts have different jobs: the row tells us what is offered; membership in the filter tells us whether that offer is active.

The next claim contains an existential quantifier. The rule exI is existential introduction: supply one witness and prove its required property. where x = P selects P as that witness. It leaves the conjunction (A, P) ∈ conditional_pairs ∧ P ∈ G_left. The command using supplies the two established facts, and conjI combines them into the required conjunction. The inner qed closes this subproof.

Finally ?thesis refers to the current structured proof’s target. Unfolding flat_value_def reveals a set comprehension. CollectI turns the established property of A into membership in that comprehension. The final qed closes the lemma. Each step corresponds to part of the paper argument: find the row, check activation, supply the witness, conclude membership.

Follow the argument one step at a time

This trace is an explanatory paraphrase, not a live prover transcript. In Isabelle/jEdit, open First_Step.thy, enable Proof state in Output, and move the caret after a command. In the online editor, use the Source caret and Output pane. Those environments show the actual current proof state.

Goal: show that A is a member of the value of S on the left branch. This is a membership claim. The equality with the singleton is stronger.

Read the exact lemma in the checked teaching source · Nipkow, structured Isar proofs, printed pp. 43–45 / PDF 47–49

4. Use a proved fact, then deliberately change its input

lemma edited_fact: "flat_value G_left = {A}"
  by (auto simp: flat_value_def conditional_pairs_def
      conditional_table_def G_left_def)

lemma dependent_member: "A ∈ flat_value G_left"
  using edited_fact by simp

The first proof expands this finite definition and settles the equality by automation. The second deliberately uses the named result: once the left value is known to be {A}, membership simplifies. The equality proof and the longer witness proof reach compatible conclusions by different routes. The longer proof exposes the reason that the shorter automation can discover.

The notebook below carries this dependency into editing. With the initial table, the default equality, dependent membership and witness proof succeed. Swapping only the table to [(B, P), (A, Q)] changes the value on the left to {B}. The old claim about {A} is now false. A whole-document native check reports the failed proof rather than letting later cells inherit a theorem that was never established. To repair the whole notebook, change the equality to {B}, the dependent member to B, and the selected atom in the stepwise proof to B; retain the left branch and condition P.

There is a different kind of failure worth recognising. Keep the original table and true target A ∈ flat_value G_left, but choose One as the witness. Although One ∈ G_left, the row (A, One) is absent. That proof attempt fails at its row claim even though another witness, P, proves the target. An unsuccessful method alone does not establish that a proposition is false.

When reading native feedback, identify the source revision and the earliest failed command before changing later steps. False left as a subgoal in the swapped-table example records the contradiction reached by that attempted proof. A type error instead means the expression could not be formed with the required types. A syntax error means Isabelle could not read the command. These situations call for different repairs.

The first milestone is modest and complete: read a finite definition, state a well-typed claim, prove membership with a witness, use an earlier lemma, and understand a failing edit. Step 5 below lets you edit the full proof text and send your chosen version to a separately operated native Isabelle editor. The next section explains how the separately checked recursive theory goes beyond this first flat-table notebook.

Edit, predict, then check

Edit the statements below. The instant preview evaluates this tiny finite example in JavaScript; it is not an Isabelle proof. On this public page, the preview runs in JavaScript and the local-check buttons stay disabled. A real Isabelle check runs either in the downloaded local companion or in the separate online editor described in step 5.

Checking whether the local companion is running…

Download the offline teaching companion · Explore ProofStudio

1. Edit the shared definition

This first cell supplies the table used by every later cell. Swap the labels to [(B, P), (A, Q)], then replay the later proofs.

Pairs use labels A/B and conditions One/P/Q. The list may be empty or have up to eight rows. Later results are invalidated whenever this definition changes.

2. Prove a fact about that definition

Try flat_value G_left = {A}, A \<in> flat_value G_right, or stronger P One. To expose a distinction, try A = {A}.

Supported here: A, B, One, P, Q, G_left, G_right, literal , flat_value, stronger, branch_filter, branch_generic, equality, membership and negation. Edit the complete theory, including proof commands, in step 5; Isabelle/jEdit also supports unrestricted local editing.

Change the proposition, make a prediction, then run a check.
The generated proof

3. Use the preceding lemma

This cell replays the definition and the proof above, then uses the resulting edited_fact to derive membership. It does not consult a pre-recorded answer.

The preceding fact is an actual input to this proof.

4. Try a stepwise witness proof

The target is membership in a set-valued . Choose an atom label, a branch and a condition witnessing the selected row. A wrong condition makes this particular proof fail. The earlier definition and fact are replayed first.

The proof will expose the selected row and the active condition separately.

5. Edit a complete theory and use an online Isabelle editor

The cells above keep the definition and proof choices small. Here you can read and edit the complete Isabelle source, including its proof commands. The text starts with your current cells and imports Main, so it is a single file. This editor does not execute proof text in your browser or send it to the local runner.

Typing here selects this complete theory for export. Editing the earlier cells does not overwrite your manual proof. Use the replacement button when you want a new copy of the current cells.

Open ProofStudio
The complete theory is editable. Its text has not been checked by this page.
First online check: from this page to native Isabelle feedback
  1. Keep the initial table and claim, then choose Generate from the current cells. Copy the theory or download Handbook_Notebook.thy.
  2. Open ProofStudio in a new tab and choose Isabelle2025-2 in Proof assistant. It is an independent service; no account or local Isabelle installation is required by its current interface.
  3. Read its Privacy policy & terms and decide whether to accept them. They cover retention and reuse of submitted theories. This handbook neither accepts them nor uploads your text for you.
  4. In ProofStudio, use File → Open for the downloaded file, or replace the Source pane with the copied text. The declared theory is Handbook_Notebook.
  5. Choose Check. Read the newest CHECK record in Output, with its checked revision. Live goals can update before that separate whole-document result arrives. Prove is a separate proof-search action; it is not needed for this completed example.
  6. For a failing edit, change only the table to [(B, P), (A, Q)] while leaving flat_value G_left = {A}. The old proof cannot establish that claim. Correct it to {B} and change the atom to B in both the dependent membership lemma and the stepwise proof. Keep the left branch and witness condition P, then check again.
  7. A processed document is not necessarily a completed proof: commands such as sorry admit a gap. Keep the supplied definitions and complete proofs, inspect any diagnostics, and do not turn a failure into a claimed theorem by adding an admission.

The online service currently supports a single Isabelle theory importing Main. The separate Finite_Names.thy development also uses First_Step and HOL-Library.FSet; use its downloaded Isabelle session for that full development. The provider’s description of Check and native feedback explains its workflow and limits.

Visitor test, 26 November 2026. The public export completed a native Isabelle2025-2 check with no admissions. Swapping only the table produced Failed to finish proof with False subgoals; correcting the claims and witness to B completed the check again. Each whole-document check took about 13 seconds, including server startup. No account was needed. This verifies that external visitor route at the stated time, rather than making the handbook itself an Isabelle runtime. The displayed service limits were 100 checks per day and a 100-minute session; shared capacity can delay a request.

Read a failed check without losing the mathematical question
  • Type error. A = {A} compares an atom label with a set of labels. The types disagree before there is a proof to attempt.
  • Failed to finish proof. The proposed method left a goal open. For the swapped table, inspect which atom the left row now supplies. A failed method alone is not a proof that every possible argument must fail.
  • A true target with a wrong intermediate step. With the original table, membership of A on the left is true, but choosing One as the row’s condition fails: (A, One) is not in the table. The witness P works.
  • Syntax or import error. Check the named line, quotation marks and imports Main before changing the mathematics. Keep the complete file from theory through its final end.

External messages remain in that provider’s Output pane. This handbook does not import them as a trusted result or relabel its browser preview as a check.

Inspect the generated theory from the current cells

A completed Isabelle check concerns only the generated statement and proof in this finite teaching theory. The value {A} is a set; it is not the label A. These cells do not implement the recursive urelement-forcing development.

The obstruction · slide 10 · slide 11

Local witnesses and the failure of one uniform old name

Each has a member. The question is whether one , chosen before the , can denote the appropriate member in both cases.

Two different quantifier patterns

Local existence: choose the filter first, then an object in its extension.

∀G∈{Gp,Gq}∃y∈M[G](y∈(s#)G).\forall G \in \{G_{p}, G_{q}\} \exists y \in M[G] (y \in (s_{\#})_{G}).

A : choose one first, then require it to work in both extensions.

∃σ∈M#P∀G∈{Gp,Gq}(σG∈(s#)G).\exists \sigma \in M^{\mathbb{P}}_{\#} \forall G \in \{G_{p}, G_{q}\} (\sigma_{G} \in (s_{\#})_{G}).

The local statement is true: use aa on the left and bb on the right. The uniform statement would require one σ\sigma with values aa and bb, respectively. A fixed name need not have a fixed value; s#s_{\#} itself already has two different values. The issue is whether an old name can have these particular values.

First inspect the obvious candidates

Values of fixed old names and the values a would need
NameValue at GpG_{p}Value at GqG_{q}Works on both?
s#s_{\#}{a}\{a\}{b}\{b\}No: these are the singletons, not their members
Atom-name aaaaaaNo: a∉{b}a \notin \{b\}
Atom-name bbbbbbNo: b∉{a}b \notin \{a\}
Required witness valuesaabbThese must come from one name

The failure of the candidate aa on the right has three separate ingredients: (s#)Gq={b}(s_{\#})_{G_{q}} = \{b\}; aGq=aa_{G_{q}} = a; and a∉{b}a \notin \{b\} because a≠ba \ne b. Identifying the right branch is only the beginning of this calculation.

Then exclude every old name

A list of failed candidates does not rule out an unfamiliar name. The proof uses the exhaustive two-case grammar.

  1. An old name that is an atom has a constant atom value. Its value in either filter is that same atom. To work in both filters, it would have to equal both aa and bb. This is impossible because those atoms are distinct. The argument excludes every atom-name, including any other atoms the model might contain.
  2. An old set-name always has a value. But a member of {a}\{a\} must be exactly the atom aa, and a member of {b}\{b\} must be exactly the atom bb. A set cannot equal either atom. Thus no old set-name works.

These cases cover all old names. The conclusion is stronger than “the names aa and bb fail”, and more precise than “old names cannot vary”. Old set-names can vary. What they cannot do is vary between atom values, while an old name that can denote an atom is the atom itself and remains constant.

The grammar is Definition 51, printed p. 46 / PDF p. 53. The obstruction is the finite case of Remark 55, printed pp. 47–48 / PDF pp. 54–55. Presentation: slides 10–11.

What the forcing assertion says

Semantic forcing in this finite example

To say that rr forces a formula is to require its truth, after the name parameters, in every generic extension whose filter contains rr. At 11, check both filters. At pp, check only GpG_{p}; at qq, check only GqG_{q}.

This semantic reading agrees with the forcing relation in the countable-transitive-model setting. A forced existential may have a different object as witness in each extension.

Both generics contain 11 and both values of s#s_{\#} have a member. Therefore

1⊩#∃y(y∈s#).1 \Vdash_{\#} \exists y (y \in s_{\#}).

Our two-case proof shows, however, that

¬∃σ∈M#P(1⊩#σ∈s#).\neg \exists \sigma \in M^{\mathbb{P}}_{\#} (1 \Vdash_{\#} \sigma \in s_{\#}).

This is a failure of : one cannot retain the same condition 11 and replace the existential variable by a single witness name. It is not a failure of the . On the left, the witness-name aa works under pp; on the right, bb works under qq. The truth lemma allows a condition in the chosen generic, rather than demanding one witness name already under 11.

Old forcing theorem: Theorem 53, printed p. 47 / PDF p. 54; classical fullness and its old-name failure: Theorem 54 and Remark 55, printed pp. 47–48 / PDF pp. 54–55. For the repaired relation, the all-generics characterisation is explicitly Theorem 66(2), printed p. 54 / PDF p. 61.

Exercise 6 · why a function is not already a witness name

We can describe a function assigning aa to GpG_{p} and bb to GqG_{q}. Why does this not settle the old-name problem?

Worked solution

A function is a set-theoretic object. An old set-name denoting that function would have the function, a set, as its value. The old valuation rule does not then apply the function to GG. Adding that operation would change the naming semantics. The problem asks for an old name whose value is already the required atom.

Exercise 7 · the exact boundary of the argument

Which of the following have we proved: all old names have constant values; the old forcing theorem fails; no old name has the required two atom values; the two extensions contain different objects?

Worked solution

Only the third claim has been proved. The set-name s#s_{\#} varies, the old forcing theorem still holds, and the two finite extensions equal the same ground model. The obstruction concerns uniform representation by old names.

Chapter 3

Yao’s repair and mixing

Open this part of the presentation ↗

The revised machinery · slides 13–19

Repaired names: distinguish a proposed value from a proposed member

Yao changes the grammar and its interpretation together. Every is a , while an may occur inside a pair to propose the value of the whole . A compatibility condition prevents contradictory proposals from becoming active together.

11. The repaired grammar has one kind of name and two kinds of entry

Repaired names, Definition 57

A repaired name τ\tau is a set of ordered pairs ⟨y,r⟩\langle y, r \rangle, where r∈Pr \in \mathbb{P} and yy is either an atom or a repaired name. The construction is recursive. It must also satisfy:

⟨a,r⟩,⟨y,s⟩∈τ,A(a),a≠y⇒r⊥s.\langle a, r \rangle, \langle y, s \rangle \in \tau, \quad \mathcal{A}(a), \quad a \ne y \quad \Rightarrow \quad r \perp s.

Atoms themselves are no longer names. A name is always a set, so an atom and a repaired name are always different objects.

The two roles of a pair’s first component
PairFirst componentProposal when active
⟨a,r⟩\langle a, r \rangleAn atomThe value of the whole name is aa
⟨σ,r⟩\langle \sigma, r \rangleA repaired nameσG\sigma_{G} is a member of the set-value

In either row, the pair is active exactly when r∈Gr \in G. The condition still decides when the pair matters; the kind of its first component decides what it proposes.

Yao, Definition 57, printed p. 48 / PDF p. 55. Presentation: slide 13 and slide 14.

2. Why the compatibility condition is sufficient

Suppose two active pairs propose different atom-values aa and bb. Their conditions belong to the . The definition of a repaired name makes those conditions , but of the filter supplies a common strengthening. This contradiction rules out two distinct active atom-values.

Now suppose an atom proposal and a member proposal are both active. Their first components are an atom aa and a name σ\sigma. Since every repaired name is a set, a≠σa \ne \sigma. The same compatibility requirement makes their conditions incompatible, again contradicting directedness.

Several pairs may propose the same atom. They do not conflict merely because their conditions are compatible: the hypothesis a≠ya \ne y then fails. Thus uniqueness means uniqueness of the proposed atom-value, not uniqueness of an active pair.

Repaired valuation, Definition 63

  1. If an active pair ⟨a,r⟩\langle a, r \rangle has an atom as its first component, the value of the whole name is aa.
  2. If no atom proposal is active, collect the values of active name components as members:

τG={σG:σ  is a repaired name  and  ∃r∈G(⟨σ,r⟩∈τ)}.\tau_{G} = \{\sigma_{G} : \sigma \;\text{is a repaired name}\;\allowbreak\text{and}\; \exists r \in G (\langle \sigma, r \rangle \in \tau)\}.

If no pair is active, this second case returns ∅\varnothing. The compatibility argument ensures that the first case has one well-defined atom-value and no competing active member proposals.

The familiar collection rule survives in the second case. The new first case allows a set that is a name to denote an atom. The set-theoretic form of a name therefore no longer determines the kind of its value.

Compatibility: Definition 57(ii), printed p. 48 / PDF p. 55. Valuation: Definition 63, printed p. 53 / PDF p. 60. Presentation: slides 14–15.

3. An atom’s name and its singleton’s name

With a maximal condition 11, Yao defines the canonical repaired name of an atom by

aˇ={⟨a,1⟩}.\check{a} = \{\langle a, 1\rangle\}.

Here and below, a check mark over a symbol means its canonical name. Every filter contains 11, so the pair is active and has an atom first component. Consequently (aˇ)G=a(\check{a})_{G} = a.

For a set xx, the canonical name is built from names of its members: xˇ={⟨yˇ,1⟩:y∈x}\check{x} = \{\langle \check{y}, 1 \rangle : y \in x\}. In particular, the canonical name of {a}\{a\} is {⟨aˇ,1⟩}\{\langle \check{a}, 1 \rangle\}. Its first component is a name, not a raw atom. It makes a member proposal, so its value is {a}\{a\}.

Changing the first component changes the role of the pair
NameActive first componentValue
{⟨a,1⟩}\{\langle a, 1 \rangle\}Atom aaaa
{⟨aˇ,1⟩}\{\langle \check{a}, 1 \rangle\}Name aˇ\check{a}{a}\{a\}

Both displayed names are sets, and both contain one ordered pair. Counting braces is not enough to determine their values. We must inspect the first component and apply the appropriate clause.

Canonical names: Definition 57, printed p. 48 / PDF p. 55; valuation: Definition 63, printed p. 53 / PDF p. 60. Presentation: slide 16.

4. Construct and prove the repaired witness

Define two repaired names:

τ={⟨a,p⟩,⟨b,q⟩},s={⟨aˇ,p⟩,⟨bˇ,q⟩}.\tau = \{\langle a, p \rangle, \langle b, q \rangle\}, \qquad s = \{\langle \check{a}, p \rangle, \langle \check{b}, q \rangle\}.

  1. Check that τ\tau is a name. Its conditions belong to P\mathbb{P} and its first components are atoms. The only distinct atom proposals occur at pp and qq, which are incompatible. Thus Definition 57 is satisfied.
  2. Check that ss is a name. Its first components aˇ\check{a} and bˇ\check{b} are repaired names. There is no immediate atom proposal in ss, so its additional compatibility condition has no atom-headed pair to test.
  3. Evaluate on the left. In τ\tau, only the pair headed by aa is active, giving τGp=a\tau_{G_{p}} = a. In ss, the active first component is aˇ\check{a}, whose value is aa; collecting it gives sGp={a}s_{G_{p}} = \{a\}.
  4. Evaluate on the right. The active proposals give τGq=b\tau_{G_{q}} = b and sGq={b}s_{G_{q}} = \{b\}.
  5. Check the relation. In either generic, τG∈sG\tau_{G} \in s_{G}. The semantic forcing theorem therefore gives 1⊩τ∈s1 \Vdash \tau \in s.
The old name and the repaired witness
Convention and nameLeft valueRight value
Old s#={⟨a,p⟩,⟨b,q⟩}s_{\#} = \{\langle a, p \rangle, \langle b, q \rangle\}{a}\{a\}{b}\{b\}
Repaired τ={⟨a,p⟩,⟨b,q⟩}\tau = \{\langle a, p \rangle, \langle b, q \rangle\}aabb
Repaired s={⟨aˇ,p⟩,⟨bˇ,q⟩}s = \{\langle \check{a}, p \rangle, \langle \check{b}, q \rangle\}{a}\{a\}{b}\{b\}

The first two rows display the same literal set of pairs under different valuation rules. The meaning changes. To retain the varying singleton as a repaired name, we replace each raw atom first component by its canonical repaired name, as in the third row.

This proves the desired finite instance. It does not prove that every forced existential for every has a witness name. That further question requires the general results in the next chapter.

Definitions 57 and 63, printed p. 48 / PDF p. 55 and printed p. 53 / PDF p. 60; semantic forcing theorem, Theorem 66(2), printed p. 54 / PDF p. 61. Presentation: slide 17.

Exercise 8 · identify an invalid repaired name

Why is {⟨a,1⟩,⟨bˇ,1⟩}\{\langle a, 1 \rangle, \langle \check{b}, 1 \rangle\} not a repaired name?

Worked solution

The atom aa differs from the name bˇ\check{b}, which is a set. The definition would require 1⊥11 \perp 1. But 11 itself is a common strengthening of 11 and 11. Thus the set of pairs fails the name condition; no arbitrary priority between conflicting proposals is allowed.

Exercise 9 · can the kind of value vary?

Consider v={⟨a,p⟩,⟨bˇ,q⟩}v = \{\langle a, p \rangle, \langle \check{b}, q \rangle\}. Is it a valid repaired name? Compute both values.

Worked solution

It is valid because p⊥qp \perp q. Its left value is the atom aa, and its right value is the set {b}\{b\}. Repaired names can vary even between atom-values and set-values. The old grammar excluded this behaviour.

5. Mixing: restrict each given name to its assigned branch

The finite construction is an instance of . Suppose DD is an and a set function ff assigns a repaired name f(r)f(r) to each r∈Dr \in D. Mixing makes one name agree with each assigned name under its branch condition.

Yao’s Mixing Lemma, Lemma 60

For every given set function f:D→UPf : D \to U^{\mathbb{P}}, where DD is an antichain, there is a repaired name μ\mu such that

∀r∈Dr⊩μ=f(r).\forall r \in D \qquad r \Vdash \mu = f(r).

The antichain need not be maximal. The lemma starts with a function already given; it does not choose names from a proper class of possible witnesses.

The construction takes each pair ⟨y,s⟩\langle y, s \rangle in f(r)f(r) and places its first component under common strengthenings of ss and its assigned branch rr:

μ=⋃r∈D{⟨y,t⟩:t∈P,∃s(⟨y,s⟩∈f(r)∧t≤r∧t≤s)}.\mu = \bigcup_{r \in D} \{\langle y, t \rangle : t \in \mathbb{P}, \exists s (\langle y, s \rangle \in f(r) \land t \le r \land t \le s)\}.

To see why the result is a valid name, consider two potentially conflicting proposals and trace each to its assigned branch. If their branches differ, the antichain makes their conditions incompatible. If their branches coincide, the compatibility condition of the original name makes the original conditions incompatible; strengthening them cannot remove that incompatibility. All come from the given names, so the recursive grammar is respected.

There is also a direct semantic explanation of the agreement. In the countable-transitive-model setting, take the given antichain and function in MM. Fix a generic GG containing a particular r∈Dr \in D:

  1. An active pair in μ\mu has a condition t∈Gt \in G below some assigned branch dd and some original condition ss. puts both dd and ss into GG.
  2. The filter cannot contain two incompatible members of DD. Since it contains rr, we must have d=rd = r. Thus the active pair comes from an active pair of f(r)f(r).
  3. Conversely, if a pair of f(r)f(r) has condition s∈Gs \in G, directedness supplies t∈Gt \in G with t≤r,st \le r, s. The corresponding pair appears in μ\mu and is active.

The same first components are therefore active, with the same roles and the same recursively evaluated values. Hence μG=f(r)G\mu_{G} = f(r)_{G}. This derives the agreement in the countable-transitive-model interpretation. Yao proves the general forcing identity directly from the forcing clauses; that internal proof is the full Lemma 60.

For our example, take D={p,q},f(p)=aˇD = \{p, q\}, f(p) = \check{a}, and f(q)=bˇf(q) = \check{b}. The pair ⟨a,1⟩\langle a, 1 \rangle is restricted to the only condition below p,1p, 1, namely pp. Likewise the right pair is restricted to qq. The construction produces exactly τ={⟨a,p⟩,⟨b,q⟩}\tau = \{\langle a, p \rangle, \langle b, q \rangle\}.

Building a mixture from a given set function requires neither nor . Obtaining a set of local witness names in a general argument is a separate task.

Yao, Lemma 60, statement and construction, printed pp. 49–50 / PDF pp. 56–57. Presentation: slide 18 and appendix slide 31.

6. What survives a change of atom labels?

Swap aa and bb consistently while keeping the pure poset fixed. The impossibility proof still uses exactly the same two facts: the witnesses are distinct atoms, and an old name either has a constant atom-value or always has set-values. The repaired witness calculation also survives, with the atom labels exchanged.

Yao extends a permutation of a set of atoms to an automorphism of the membership universe. A transposition of aa and bb is such a permutation, and pure objects remain fixed. This supports the presentation’s structural reading: the phenomenon depends on the relations between conditions, names, and distinct witnesses, rather than on the chosen labels.

The philosophical interpretation is a reading of this example, not a separate theorem of Yao. What the mathematics establishes here is a difference in uniform representability under two naming conventions, even though both finite extensions equal the same MM.

Permutations and their extension: Yao, printed p. 6 / PDF p. 13; old-name obstruction and repaired grammar: printed pp. 47–48 / PDF pp. 54–55. Presentation: slide 19.

Chapter 3 · Reading the finite theory

What does the proof cover?

The table in the notebook handles two rows. To prove that every fails, the quantifier must range over a whole syntax of . Finite_Names.thy defines an old name recursively. A name is either a fixed or a finite list of rows whose entries are themselves old names. There is no fixed limit on the depth. The object represents atoms and hereditarily finite . Its finite sets ignore repetition and ordering, just as the mathematics requires.

datatype old_name = Fixed atom | OldRows "(old_name × condition) list"

lemma old_obstruction:
  "¬ (∃n. old_value G_left n = Urelement A ∧
          old_value G_right n = Urelement B)"

Suppose such an n exists. The command cases n produces one goal for each constructor. In the Fixed case the same atom would have to equal both A and B. In the OldRows case the value has constructor FiniteSet, which is disjoint from Urelement. The depth of the rows has no bearing on either contradiction. That is why a case split suffices here.

How does the type distinguish an entry, its value, and its singleton?

Each notation carries a specific type or constructor. In this theory the atom value is Urelement A. Its is a value with outer constructor FiniteSet. A direct row is syntax, written Direct A, which tells the evaluator to return the former value. Reading the outermost constructor first keeps the three jobs separate.

Follow the proof in the source
On paperChecked in Isabelle2025-2
There are precisely two here.exactly_two_generic_filters
A set-name survives on each branch, yet no old works across them.old_singletons and old_obstruction
The two direct atom rows form a legal name and select the right atoms.repair_admissible and repaired_atoms
The two member rows on slide 17 give singletons. Wrapping the selector in one always-active member row gives the same two values.slide_set_values and singleton_envelope
Restrict two arbitrary finite to opposite terminals and combine them. The result takes the assigned value on each branch and is admissible if its inputs are.finite_mixing and mix_admissible

The proof uses as a metalanguage for this finite representation. Yao’s definitions range over names in a model of set theory with urelements and allow arbitrary sets of rows. The proof of Theorem 61, including its quantification over all forcing posets, belongs to the next chapter’s reading.

Slide 17 · A repaired witness on both branches · Yao, Lemma 60, printed pp. 49–50 / PDF 56–57

Chapter 4

Collection and fullness

Open this part of the presentation ↗

From the finite repair to a general theorem · slides 20–29

Gathering witnesses: Collection, mixing, and fullness

The repaired two-branch is explicit. For an arbitrary formula and forcing , local witness may not already be supplied as a function. The remaining issue is how to gather enough names, select among them, and combine them.

Replacement and Collection have different antecedents

Fix a formula φ(x,y,u)\varphi(x, y, u) and a parameter uu. Here ww is a set of inputs, while the witnesses yy may be arbitrary objects, including . Yao formulates the relevant schemes as follows.

Two witness-gathering schemes

: unique witnesses can be gathered.

[∀x∈w∃!yφ(x,y,u)]⇒[∃v∀x∈w∃y∈vφ(x,y,u)].[\forall x \in w \exists !y \varphi(x, y, u)] \Rightarrow [\exists v \forall x \in w \exists y \in v \varphi(x, y, u)].

: existing witnesses can be gathered, without a uniqueness hypothesis.

[∀x∈w∃yφ(x,y,u)]⇒[∃v∀x∈w∃y∈vφ(x,y,u)].[\forall x \in w \exists y \varphi(x, y, u)] \Rightarrow [\exists v \forall x \in w \exists y \in v \varphi(x, y, u)].

Each implication is universally quantified over ww and uu. Each admissible formula supplies an instance of the scheme. Any further parameters remain fixed throughout the instance.

The conclusion asks for one set vv containing a suitable witness for every input. It does not ask for all possible witnesses, a unique container, or a choice function. The set can contain additional objects. Collection supplies a common place in which enough witnesses can be found.

Collection implies Replacement: if a unique witness exists, then a witness exists, so Collection applies. This uses the uniqueness hypothesis supplied in Replacement’s antecedent. It does not deduce uniqueness from Collection.

Yao, Replacement at the end of printed p. 4 / PDF p. 11, Collection at the start of printed p. 5 / PDF p. 12. Presentation: the gathering question on slide 21, the schemes on slide 22, and their logical relationship on slide 24.

A numerical illustration does not separate the theories

Let w={1,2}w=\{1,2\}, and let φ(x,y)\varphi(x,y) mean “y=10xy=10x or y=10x+1y=10x+1”. The possible witnesses for 11 are 1010 and 1111. For 22 they are 2020 and 2121. The set v={10,21}v=\{10,21\} contains a suitable witness for each input.

Existence holds and uniqueness fails. Thus Collection’s antecedent holds, while Replacement’s antecedent for this formula does not. This does not refute the Replacement implication: an implication with a false antecedent is true. Both implications have a true common conclusion in the example. It illustrates the logical forms rather than proving that the schemes have different strength.

Exercise 10 · what does the container promise?

Would {10,20,999}\{10,20,999\} also be a suitable container? Would {10,11}\{10,11\} work? Does a suitable container have to contain all four possible witnesses?

Worked solution

In {10,20,999}\{10,20,999\}, the witness 1010 serves input 11 and 2020 serves input 22. The extra element 999999 is harmless. The set {10,11}\{10,11\} fails because neither element serves input 22. The container need only include one suitable witness per input.

Presentation: slide 23. The example is a teaching illustration of the schemes, not a countermodel supplied by Yao.

Why rank bounds need control of the available atoms

In pure ZF, Replacement proves Collection by assigning each input the least at which a witness exists, gathering those ordinal bounds, and taking a sufficiently large set-sized level of the cumulative hierarchy. The least rank is unique even when the witnesses themselves are not.

With a proper class of atoms, a rank bound alone does not give a set containing all eligible objects: the atoms can already form a proper class at the bottom of the hierarchy. One must also control which atoms the witnesses may use. This does not say that a proper class of atoms automatically makes Collection false.

Yao’s Proposition 5 provides the useful restricted form. For a set AA of atoms, define a hierarchy starting at AA, with successor stages taking powersets and adjoining the previous stage. Its levels Vα(A)V_{\alpha} (A) are sets. Let V(A)V(A) be the class of objects built using only atoms from AA.

Restricted Collection from Replacement

If one set AA of atoms accommodates a witness for every input, so that

∀x∈w∃y∈V(A)φ(x,y,u),\forall x \in w \exists y \in V(A) \varphi(x, y, u),

then ZFUR\mathrm{ZFU}_{R} can gather sufficient witnesses in one set. For each input, take the least hierarchy level containing a witness. Replacement gathers these uniquely determined ordinals; a common upper level supplies the container.

For pure sets, take A=∅A = \varnothing. The general urelement problem is that a suitable common set of atoms is not initially supplied. This is the reason the subscript R matters: ZFUR\mathrm{ZFU}_{R} assumes Replacement, while Collection is an additional scheme.

Yao, Definitions 1–3, the V(A)V(A) hierarchy, and Proposition 5, printed pp. 5–6 / PDF pp. 12–13. Presentation: slide 24 and appendix slide 32.

Fullness keeps the condition fixed

Fullness of the repaired forcing relation

For every condition pp, formula φ\varphi, and tuple of name parameters τ⃗\vec{\tau},

p⊩∃yφ(y,τ⃗)⇒∃σ∈UP(p⊩φ(σ,τ⃗)).p \Vdash \exists y \varphi(y, \vec{\tau}) \Rightarrow \exists \sigma \in U^{\mathbb{P}} (p \Vdash \varphi(\sigma, \vec{\tau})).

The name may depend on pp, the formula, and its parameters. The condition pp is the same on both sides.

The existential forcing clause already gives local witness names densely below pp. This means that every can be strengthened further to one that forces the formula for some name. combines those local possibilities into one name working under pp itself. Our repaired finite witness proves one such instance, not the general principle.

Yao, Definition 58(8), printed p. 49 / PDF p. 56; Theorem 61, printed pp. 50–52 / PDF pp. 57–59. Presentation: slide 25.

Yao’s equivalence and its assumptions

Theorem 61, over ZFCUR\mathrm{ZFCU}_{R}

Collection⇕For every forcing poset P,the repaired forcing relationis full.\begin{gathered}\text{Collection}\\[-2pt]\Updownarrow\\[-2pt]\text{For every forcing poset }\mathbb{P},\\\text{the repaired forcing relation}\\\text{is full.}\end{gathered}

The base theory includes : ZFCUR=ZFUR\mathrm{ZFCU}_{R} = \mathrm{ZFU}_{R} + AC. ZFUR\mathrm{ZFU}_{R} itself is ZU + Replacement; ZU contains the Zermelo axioms with atoms and Foundation.

Two qualifications are essential. The relation is the repaired relation, since the already fail on our tiny poset. And the principle quantifies over all forcing posets. A successful calculation on one finite poset cannot establish Collection or general fullness.

Choice is not a silent assumption. Yao also proves, separately, that the Fullness Principle for all posets implies AC over ZFUR\mathrm{ZFU}_{R}. We should therefore retain the stated base theory when reporting Theorem 61.

Base theories: Definition 1, printed p. 5 / PDF p. 12. Equivalence: Theorem 61, printed pp. 50–52 / PDF pp. 57–59. Fullness implies Choice: Theorem 62, printed p. 52 / PDF p. 59. Presentation: slide 26.

Forward direction: gather, select, then mix

Here is the structure of Yao’s proof of Collection ⇒\Rightarrow fullness. This is a proof outline of the general result, following the source, rather than a claim that the theorem has been mechanically checked.

  1. Start with a forced existential. Suppose p⊩∃yφ(y)p \Vdash \exists y \varphi(y), with the name parameters fixed. The set of conditions below pp admitting some witness name is dense below pp, by the existential forcing clause.
  2. Use Choice for a maximal . Choose a maximal antichain DD among those conditions. Each member has at least one local witness name. The downward closure of DD is dense below pp; the antichain itself need not be dense as a subset.
  3. Use Collection to obtain a set of sufficient names. For each r∈Dr \in D, some name witnesses the formula under rr. Collection supplies a common set containing a suitable name for each such rr.
  4. Use Choice to select a function. Select one suitable name f(r)f(r) for each rr. We now have the set function required by the .
  5. Mix and use . A mixture μ\mu agrees with f(r)f(r) under each rr, so each rr forces φ(μ)\varphi(\mu). Strengthening preserves forcing. Conditions forcing that formula are therefore dense below pp, which gives p⊩φ(μ)p \Vdash \varphi(\mu).

The three jobs are distinct: Collection gathers a sufficient set; Choice selects a function; mixing combines the function’s values into one name. In our two-branch example the local names were explicitly aˇ\check{a} and bˇ\check{b}, so no general gathering problem had to be solved first.

Yao, Theorem 61, forward implication, printed pp. 50–51 / PDF pp. 57–58; density properties in Lemma 59, printed p. 49 / PDF p. 56. Presentation: slide 27.

Reverse direction: one witness name bounds the atoms needed

For the converse, suppose the repaired forcing relation is full for every poset. Given a set ww of inputs satisfying ∀x∈w∃yφ(x,y,u)\forall x \in w \exists y \varphi(x, y, u), Yao builds a poset W=w∪{w}W = w \cup \{w\}. The condition ww is the top condition; each input x∈wx \in w is a terminal branch. The empty input set is trivial.

A can represent the input selected by the branch, including when an input is an atom. Local existence of witnesses then gives a forced existential at the top. Fullness provides one name ν\nu witnessing that formula under every branch.

The ker⁡(z)\ker(z) is the set of atoms in the transitive closure of {z}\{z\}. Claim 61.1 shows that at a terminal branch the value of a WW-name is a ground-universe object with its kernel bounded by the name’s kernel together with the poset’s kernel. In particular, one set of atoms suffices:

A=ker⁡(ν)∪ker⁡(W).A = \ker(\nu) \cup \ker(W).

For every input, there is now a suitable witness in V(A)V(A). Proposition 5, restricted Collection, gives a common set of witnesses. This outlines why fullness for all posets recovers Collection. The poset’s kernel must be included in the bound; a general WW need not be pure.

Yao, Definition 2, printed p. 5 / PDF p. 12; Proposition 5, printed p. 6 / PDF p. 13; Theorem 61, Claim 61.1 and reverse implication, printed pp. 51–52 / PDF pp. 58–59. Presentation: slide 26 and appendix slide 32.

Fullness, the truth lemma, and preservation answer different questions

Three distinct conclusions
NotionWhat it saysWhat must stay fixed?
FullnessA forced existential has a witness name.The same original forcing condition
Truth in one extension is witnessed by some forcing condition in its generic.The chosen generic and the formula’s name parameters
Specified axioms of the continue to hold in the extension.The hypotheses of the particular preservation theorem

For the repaired relation, Theorem 66 gives the truth correspondence

M[G]⊨φ(τ⃗G)⇔∃r∈G[M⊨r⊩φ(τ⃗)].M[G] \models \varphi(\vec{\tau}_{G}) \Leftrightarrow \exists r \in G [M \models r \Vdash \varphi(\vec{\tau})].

The model notation on the right matters: this is the forcing relation computed in the ground model. The theorem assumes a of ZFUR\mathrm{ZFU}_{R}, not Choice or Collection. The old relation also has a truth lemma, by Theorem 53, despite its failure of fullness.

Preservation is further work. Yao’s Theorem 73 states, under the countable-transitive-model and set-forcing hypotheses, that the extension satisfies ZFUR\mathrm{ZFU}_{R}; it preserves ZFCUR\mathrm{ZFCU}_{R} when the ground model satisfies it, and preserves ZFCUR\mathrm{ZFCU}_{R} + Collection when that stronger theory holds in the ground model. The proof of Replacement without assuming ground-model Collection is a separate argument, developed in Theorem 71.

There are no new atoms or ordinals. There may be new sets of old atoms. Lemma 65 bounds a value’s kernel by its name’s kernel, ker⁡(τG)⊆ker⁡(τ)\ker(\tau_{G}) \subseteq \ker(\tau); it does not say that every set of atoms in the extension was already a ground-model set. None of these preservation conclusions is a reformulation of fullness.

Old truth lemma: Theorem 53, printed p. 47 / PDF p. 54. Repaired forcing theorem: Theorem 66, printed pp. 54–56 / PDF pp. 61–63. Extension and kernel facts: Lemmas 64–65, printed p. 53 / PDF p. 60. Preservation: Theorems 67, 71, and 73, printed pp. 56–60 / PDF pp. 63–67. Presentation: slide 28, the conclusions on slide 29, and appendix slide 33.

Exercise 11 · identify the missing step

Someone argues: “Every condition on a maximal antichain has some witness name; therefore there is a function assigning one to each condition, and mixing finishes the proof.” What has been omitted in the general urelement setting?

Worked solution

Collection is used to gather a sufficient set of candidates. Choice can then select a suitable name for each condition. Mixing applies only after that set function is available. Existence of a witness for every input alone does not supply this function in the stated base theory.

Exercise 12 · state what has actually been established

Does constructing the finite name τ\tau prove Theorem 61? Does a truth lemma supply a witness name under the original condition of every forced existential?

Worked solution

No in both cases. The finite construction proves one fullness instance directly. Theorem 61 concerns all formulas and all posets over an explicit base theory. A truth lemma allows some condition in the chosen generic, while fullness requires a witness name under the original condition.

Primary-source concordance

All numbered references in this handbook refer to Bokai Yao, Set Theory with Urelements, arXiv:2303.14274v3, revised 18 June 2023. The PDF has seven preliminary pages before printed page 11. A link with #page=55 opens PDF page 55, which is printed page 48. The official version record identifies this version; the presentation uses the same thesis version.

From presentation topic to the relevant thesis passage
TopicSlidesYao passagePrinted / PDF pages
Atoms, sets, theories2, 21–24§1.2; Axiom A; Definitions 1–3; Proposition 54–6 / 11–13
Countable transitive ground model3–6§§3.1–3.2; finite specialisation of Remark 5544–48 / 51–55
Old grammar and 8–9Definition 51; valuation preceding Theorem 5346–47 / 53–54
Old-name failure and truth lemma10–11Theorems 53–54; Remark 5547–48 / 54–55
Repaired grammar and canonical names13–14, 16–17Definition 5748 / 55
Repaired valuation15–17Definition 6353 / 60
Mixing18, 31Lemma 6049–50 / 56–57
Atom permutations19Permutation extension after Theorem 46 / 13
Collection and fullness25–27, 32Definition 58(8); Theorem 61, including Claim 61.149–52 / 56–59
Repaired forcing theorem28Theorem 6654–56 / 61–63
Extension facts and preservation28, 33Lemmas 64–65; Theorems 67, 71, 7353, 56–60 / 60, 63–67

The filter table, extra nested-name examples, numerical Collection example, finite repaired-name calculations, and Cohen-forcing comparison are teaching developments. Their source links identify the underlying definitions or background, rather than suggesting that these exact tables or examples are reproduced from Yao.

Reference

Terms at hand

Hover or focus an underlined term to read its definition. Click the term or press Enter to open its source. Press Arrow Down to enter the definition card and Escape to close it. On a touch screen, tap a term to open the card, then choose a source or tap Close definition. Every entry is also available below and in print. Yao’s printed page numbers differ from PDF page numbers by seven. The finite order’s elementary definitions are supplied explicitly in this handbook; Yao assumes this forcing background.

Externally countable

Countability is measured in the surrounding universe. A model can be countable from outside while internally treating some of its sets as uncountable. External countability supports the construction of generic filters.

Yao, §3.1 · printed p. 44 / PDF p. 51

Repaired name

A set of pairs whose heads are atoms or recursively repaired names. Distinct atom proposals, and atom/member proposals, must have incompatible guards. The same atom may be proposed under compatible guards.

Yao, Definition 57 · printed p. 48 / PDF p. 55

Mixing

Combining names assigned to the conditions of an antichain into one name agreeing with each assigned name below its condition. Yao’s construction restricts entries to common extensions of their guards and the corresponding antichain condition.

Yao, Lemma 60 · printed pp. 49–50 / PDF pp. 56–57

Replacement

The scheme collecting values of a definable functional relation on a set into a set. It concerns uniquely determined outputs. With a proper class of atoms, Replacement alone need not provide a set bounding all witnesses of a nonfunctional relation.

Yao, §1.2, Replacement · printed p. 4 / PDF p. 11

Preservation

A theorem identifying axioms still satisfied by M[G]M[G]. Yao’s Theorem 73 establishes ZFUR\mathrm{ZFU}_{\mathrm{R}} and preserves the stated stronger ground-model theories. It is a separate claim from fullness.

Yao, Theorem 73 · printed p. 60 / PDF p. 67

Reference · Isabelle/HOL

The teaching theories

Open a theory to read the exact definitions and proofs checked in Isabelle2025-2. The first theory supplies the order, and set-valued table. The second imports the first and adds recursive , extensional finite , and the proof of on these two branches. The download preserves Isabelle’s source symbols.

First_Step.thy

Save the Isabelle source file

theory First_Step
  imports Main
begin

section ‹1. A forcing refresher›

text ‹
  This is a small typed learning model. It does not define recursive forcing
  names, an internal universe of sets with urelements, or Yao's repaired names.
  The type atom supplies two labels; HOL sets of these labels are a different
  type. In particular, A and {A} are different typed expressions.
›

datatype condition = One | P | Q

definition stronger :: "condition ⇒ condition ⇒ bool" where
  "stronger p q ⟷ (p = q ∨ q = One)"

lemma stronger_reflexive: "stronger p p"
  by (simp add: stronger_def)

lemma stronger_transitive:
  assumes "stronger p q" and "stronger q r"
  shows "stronger p r"
  using assms by (auto simp: stronger_def)

lemma stronger_antisymmetric:
  assumes "stronger p q" and "stronger q p"
  shows "p = q"
  using assms by (auto simp: stronger_def)

lemma stronger_than_One: "stronger p One"
  by (simp add: stronger_def)

lemma incompatible_branches:
  "¬ (∃ r. stronger r P ∧ stronger r Q)"
  by (auto simp: stronger_def)

definition G_left :: "condition set" where
  "G_left = {One, P}"

definition G_right :: "condition set" where
  "G_right = {One, Q}"

text ‹
  A dense set contains a stronger condition below every condition. Here the
  quantifiers range over the finite type condition, not over an unspecified
  ground model. The following definitions check the branch-filter facts in
  this finite model; they do not formalise set-theoretic genericity over M.
›

definition branch_dense :: "condition set ⇒ bool" where
  "branch_dense D ⟷
     (∀ p. ∃ q ∈ D. stronger q p)"

definition branch_filter :: "condition set ⇒ bool" where
  "branch_filter G ⟷
     G ≠ {} ∧
     (∀ p ∈ G. ∀ q. stronger p q ⟶ q ∈ G) ∧
     (∀ p ∈ G. ∀ q ∈ G.
        ∃ r ∈ G. stronger r p ∧ stronger r q)"

definition branch_generic :: "condition set ⇒ bool" where
  "branch_generic G ⟷
     branch_filter G ∧ (∀ D. branch_dense D ⟶ G ∩ D ≠ {})"

lemma dense_contains_P:
  assumes "branch_dense D"
  shows "P ∈ D"
proof -
  from assms have "∃ q ∈ D. stronger q P"
    unfolding branch_dense_def by blast
  then show ?thesis by (auto simp: stronger_def)
qed

lemma dense_contains_Q:
  assumes "branch_dense D"
  shows "Q ∈ D"
proof -
  from assms have "∃ q ∈ D. stronger q Q"
    unfolding branch_dense_def by blast
  then show ?thesis by (auto simp: stronger_def)
qed

lemma G_left_filter: "branch_filter G_left"
  by (auto simp: branch_filter_def G_left_def stronger_def)

lemma G_right_filter: "branch_filter G_right"
  by (auto simp: branch_filter_def G_right_def stronger_def)

lemma G_left_generic: "branch_generic G_left"
  unfolding branch_generic_def
  using G_left_filter dense_contains_P
  by (auto simp: G_left_def)

lemma G_right_generic: "branch_generic G_right"
  unfolding branch_generic_def
  using G_right_filter dense_contains_Q
  by (auto simp: G_right_def)

section ‹2. Why old names fail: evaluating the set-name›

datatype atom = A | B

definition conditional_table :: "(atom × condition) list" where
  "conditional_table = [(A, P), (B, Q)]"

definition conditional_pairs :: "(atom × condition) set" where
  "conditional_pairs = set conditional_table"

definition flat_value :: "condition set ⇒ atom set" where
  "flat_value G = {a. ∃ p. (a, p) ∈ conditional_pairs ∧ p ∈ G}"

lemma flat_value_left: "flat_value G_left = {A}"
  by (auto simp: flat_value_def conditional_pairs_def conditional_table_def
      G_left_def)

lemma flat_value_right: "flat_value G_right = {B}"
  by (auto simp: flat_value_def conditional_pairs_def conditional_table_def
      G_right_def)

text ‹
  This proof exposes the selected row, the active condition, and the
  existential witness separately. Its conclusion is membership in the value
  set. It does not identify that singleton with the atom label itself.
›

lemma selected_A_is_in_left_value: "A ∈ flat_value G_left"
proof -
  have selected_row: "(A, P) ∈ conditional_pairs"
    by (simp add: conditional_pairs_def conditional_table_def)
  have active_condition: "P ∈ G_left"
    by (simp add: G_left_def)
  have selected_witness:
    "∃ p. (A, p) ∈ conditional_pairs ∧ p ∈ G_left"
  proof (rule exI[where x = P])
    show "(A, P) ∈ conditional_pairs ∧ P ∈ G_left"
      using selected_row active_condition by (rule conjI)
  qed
  show ?thesis
    using selected_witness unfolding flat_value_def by (rule CollectI)
qed

text ‹Teaching material by Simone Testino, prepared with assistance from GPT-6.2 Astra.
  Academic use of AI: https://simonetestino.pages.dev/academic/ai/ .›

end
Finite_Names.thy

Save the Isabelle source file

theory Finite_Names
  imports First_Step "HOL-Library.FSet"
begin

section ‹1. A forcing refresher›

lemma exactly_two_generic_filters:
  "branch_generic G ⟷ G = G_left ∨ G = G_right"
proof
  assume g: "branch_generic G"
  have terminals: "⋀r. ∃s∈{P,Q}. stronger s r"
  proof -
    fix r show "∃s∈{P,Q}. stronger s r"
      by (cases r) (auto simp: stronger_def)
  qed
  then have terminal: "P ∈ G ∨ Q ∈ G"
    using g unfolding branch_generic_def branch_dense_def by blast
  from g have f: "branch_filter G" unfolding branch_generic_def by blast
  have exclusive: "P ∈ G ⟹ Q ∉ G"
    using f incompatible_branches unfolding branch_filter_def by blast
  have one: "One ∈ G" using f terminal stronger_than_One unfolding branch_filter_def by blast
  have left: "P ∈ G ⟹ G = G_left"
    unfolding G_left_def using one exclusive by (intro set_eqI; rename_tac x; case_tac x) auto
  have right: "Q ∈ G ⟹ G = G_right"
    unfolding G_right_def using one exclusive by (intro set_eqI; rename_tac x; case_tac x) auto
  show "G = G_left ∨ G = G_right" using terminal left right by blast
next
  show "G = G_left ∨ G = G_right ⟹ branch_generic G"
    using G_left_generic G_right_generic by blast
qed

section ‹2. Why old names fail›

text ‹Each finite list presents the rows of a name. Finite sets give
  extensional values, so repeated active members count once.›
datatype object = Urelement atom | FiniteSet "object fset"
datatype old_name = Fixed atom | OldRows "(old_name × condition) list"

primrec old_value :: "condition set ⇒ old_name ⇒ object" where
  "old_value G (Fixed a) = Urelement a"
| "old_value G (OldRows rows) =
     FiniteSet (fset_of_list (map fst (filter (λx. snd x ∈ G)
       (map (map_prod (old_value G) id) rows))))"

definition old_S :: old_name where
  "old_S = OldRows [(Fixed A,P),(Fixed B,Q)]"

lemma old_singletons:
  "old_value G_left old_S = FiniteSet {|Urelement A|}"
  "old_value G_right old_S = FiniteSet {|Urelement B|}"
  by (simp_all add: old_S_def G_left_def G_right_def)

lemma old_obstruction:
  "¬ (∃n. old_value G_left n = Urelement A ∧
          old_value G_right n = Urelement B)"
proof
  assume "∃n. old_value G_left n = Urelement A ∧
              old_value G_right n = Urelement B"
  then obtain n where left: "old_value G_left n = Urelement A"
    and right: "old_value G_right n = Urelement B" by blast
  from left right show False by (cases n) simp_all
qed

section ‹3. Yao's repair and mixing›

text ‹An entry holds either an atom directly or a name for a member.
  A valid list may activate several direct rows if they specify the same
  atom. Different direct atoms and direct/member entries must be incompatible.›
datatype new_name = Rows "(entry × condition) list"
     and entry = Direct atom | Member new_name

fun row_clash :: "entry ⇒ entry ⇒ bool" where
  "row_clash (Direct a) (Direct b) = (a ≠ b)"
| "row_clash (Member x) (Member y) = False"
| "row_clash _ _ = True"

definition compatible :: "condition ⇒ condition ⇒ bool" where
  "compatible r s ⟷ (∃t. stronger t r ∧ stronger t s)"

definition valid_rows :: "(entry × condition) list ⇒ bool" where
  "valid_rows xs ⟷ (∀(e,r)∈set xs. ∀(f,s)∈set xs.
     row_clash e f ⟶ ¬ compatible r s)"

primrec admissible :: "new_name ⇒ bool"
    and admissible_entry :: "entry ⇒ bool" where
  "admissible (Rows xs) = (valid_rows xs ∧ list_all fst (map (map_prod admissible_entry id) xs))"
| "admissible_entry (Direct a) = True"
| "admissible_entry (Member n) = admissible n"

fun assemble :: "(atom + object) list ⇒ object" where
  "assemble [] = FiniteSet {||}"
| "assemble (Inl a # xs) = Urelement a"
| "assemble (Inr v # xs) = (case assemble xs of
     Urelement a ⇒ Urelement a | FiniteSet vs ⇒ FiniteSet (finsert v vs))"

primrec new_value :: "condition set ⇒ new_name ⇒ object"
    and entry_value :: "condition set ⇒ entry ⇒ atom + object" where
  "new_value G (Rows xs) = assemble (map fst (filter (λx. snd x ∈ G)
      (map (map_prod (entry_value G) id) xs)))"
| "entry_value G (Direct a) = Inl a"
| "entry_value G (Member n) = Inr (new_value G n)"

definition selector :: new_name where
  "selector = Rows [(Direct A,P),(Direct B,Q)]"

definition envelope :: new_name where
  "envelope = Rows [(Member selector,One)]"

lemma repair_admissible: "admissible selector" "admissible envelope"
  by (simp_all add: selector_def envelope_def valid_rows_def compatible_def stronger_def)

lemma repaired_atoms:
  "new_value G_left selector = Urelement A"
  "new_value G_right selector = Urelement B"
  by (simp_all add: selector_def G_left_def G_right_def)

lemma singleton_envelope:
  "new_value G_left envelope = old_value G_left old_S"
  "new_value G_right envelope = old_value G_right old_S"
  by (simp_all add: envelope_def selector_def old_S_def G_left_def G_right_def)

text ‹The slide also builds the singleton name directly, by activating a
  member-name on each branch. This is syntactically different from envelope.›
definition checked_atom :: "atom ⇒ new_name" where
  "checked_atom a = Rows [(Direct a,One)]"

definition slide_set :: new_name where
  "slide_set = Rows [(Member (checked_atom A),P),(Member (checked_atom B),Q)]"

lemma slide_set_admissible: "admissible slide_set"
  by (simp add: slide_set_def checked_atom_def valid_rows_def)

lemma slide_set_values:
  "new_value G_left slide_set = FiniteSet {|Urelement A|}"
  "new_value G_right slide_set = FiniteSet {|Urelement B|}"
  by (simp_all add: slide_set_def checked_atom_def G_left_def G_right_def)

text ‹For this poset every condition compatible with the left terminal
  is weaker than or equal to P. Restricting a row to that terminal keeps
  precisely the rows active there, and labels each surviving row by P.
  The right terminal works the same way.›
fun at_terminal :: "condition ⇒ new_name ⇒ (entry × condition) list" where
  "at_terminal t (Rows xs) = map (λ(e,r). (e,t)) (filter (λ(e,r). stronger t r) xs)"

definition mix :: "new_name ⇒ new_name ⇒ new_name" where
  "mix l r = Rows (at_terminal P l @ at_terminal Q r)"

abbreviation active_values where
  "active_values G xs ≡ map fst (filter (λx. snd x ∈ G)
       (map (map_prod (entry_value G) id) xs))"

lemma active_at_terminal:
  "active_values G_left (at_terminal P (Rows xs)) = active_values G_left xs"
  "active_values G_left (at_terminal Q (Rows xs)) = []"
  "active_values G_right (at_terminal P (Rows xs)) = []"
  "active_values G_right (at_terminal Q (Rows xs)) = active_values G_right xs"
  by (induction xs) (auto simp: stronger_def G_left_def G_right_def split: prod.splits)

lemma finite_mixing:
  "new_value G_left (mix l r) = new_value G_left l"
  "new_value G_right (mix l r) = new_value G_right r"
  by (cases l; cases r; simp add: mix_def active_at_terminal del: at_terminal.simps)+

lemma restricted_entry_iff:
  "(e,s) ∈ set (at_terminal t (Rows xs)) ⟷
   s = t ∧ (∃u. (e,u) ∈ set xs ∧ stronger t u)"
  by (auto simp: set_map split: prod.splits)

lemma compatible_at: "stronger t u ⟹ stronger t v ⟹ compatible u v"
  unfolding compatible_def by blast

lemma clash_excluded:
  assumes "valid_rows xs" "(e,u) ∈ set xs" "(f,v) ∈ set xs"
    and "stronger t u" "stronger t v"
  shows "¬ row_clash e f"
  using assms compatible_at unfolding valid_rows_def by fastforce

lemma restricted_admissible:
  assumes "valid_rows xs" "valid_rows ys"
  shows "valid_rows (at_terminal P (Rows xs) @ at_terminal Q (Rows ys))"
proof -
  have pq: "¬ compatible P Q" "¬ compatible Q P"
    unfolding compatible_def by (auto simp: stronger_def)
  show ?thesis
    unfolding valid_rows_def
    apply (simp only: split_paired_Ball_Sigma valid_rows_def set_append Un_iff)
    using assms pq clash_excluded
    by (fastforce simp only: split_paired_Ball_Sigma restricted_entry_iff
      split_beta' case_prod_beta mem_Collect_eq prod.collapse)
qed

lemma mix_admissible:
  assumes "admissible l" "admissible r"
  shows "admissible (mix l r)"
proof -
  obtain xs ys where eq: "l = Rows xs" "r = Rows ys" by (cases l; cases r) auto
  have v: "valid_rows xs" "valid_rows ys" using assms by (simp_all add: eq)
  have sub: "⋀e u. (e,u) ∈ set xs ⟹ admissible_entry e"
    "⋀e u. (e,u) ∈ set ys ⟹ admissible_entry e"
    using assms by (auto simp: eq list_all_iff)
  show ?thesis
    using restricted_admissible[OF v] sub
    by (auto simp: eq mix_def list_all_iff restricted_entry_iff set_map split: prod.splits)
qed

text ‹Teaching material by Simone Testino, prepared with assistance from GPT-6.2 Astra.
  Academic use of AI: https://simonetestino.pages.dev/academic/ai/ .›

end

Download both theories, their ROOT file and the local notebook runner

References

Sources and related reading

Full list of sources used

Presentation · slide numbers

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 31 32 33 34 35

Isabelle · Programming and Proving in Isabelle/HOL

PDF 7 PDF 8 PDF 9 PDF 24 PDF 45 PDF 47

Additional definition and documentation sources

Explore the literature12 scholarly publications · 14 reading connections. Point to a work or a connecting line to read about it. Click or tap to keep it selected. Drag the background to pan and scroll or pinch to zoom.

Read the connections as a list
Further publications and proof developments

For readers continuing beyond the handbook