Prerequisites. Direct starred prerequisites: none. Chapter 154 supplies the domain-theoretic comparison; nothing there is used as a premise. No later core chapter depends on this route.
Consider the two closed PCF terms 𝐹1:=𝜆𝑓.𝑓(𝑓0),𝐹2:=𝜆𝑓.𝗂𝖿 𝗓𝖾𝗋𝗈(𝑓0) 𝗍𝗁𝖾𝗇 𝑓0 𝖾𝗅𝗌𝖾 𝑓(𝑓0) of type (𝜄 →𝜄) →𝜄. In the domain model of chapter 154 their denotations are continuous functions on a domain of continuous functions, and one compares them by evaluating at arguments. That comparison records what a program returns and forgets how it asked: 𝐹1 interrogates its argument twice in sequence, while 𝐹2 interrogates it once, twice, or three times depending on the answer it receives. A denotation that is a function cannot express “asks its argument, then asks again with the received value”.
This chapter builds a semantics in which that is exactly what a denotation is. A type becomes a two-player game; a program becomes a strategy for the player who must answer; and running a program in a context becomes playing two strategies against each other.
Arenas and plays
An arena 𝐴 consists of a set 𝑀𝐴 of moves, a labelling 𝜆𝐴:𝑀𝐴→{𝑂,𝑃}×{𝑄,𝐴}, and an enabling relation ⊢𝐴 ⊆(𝑀𝐴 ∪{ ⋆}) ×𝑀𝐴, subject to:
if ⋆ ⊢𝐴𝑚 then 𝑚 is an 𝑂-question and 𝑛 ⊢𝐴𝑚 for no 𝑛 ∈𝑀𝐴; such 𝑚 are initial;
if 𝑚 ⊢𝐴𝑛 with 𝑚,𝑛 ∈𝑀𝐴 then 𝑚 and 𝑛 carry opposite 𝑂/𝑃-labels;
if 𝑚 ⊢𝐴𝑛 and 𝑛 is an answer then 𝑚 is a question.
Write 𝜆𝑂𝑃𝐴 and 𝜆𝑄𝐴𝐴 for the two components and ―――𝜆𝑂𝑃𝐴 for the exchange of 𝑂 and 𝑃.
Referenced from 3 locations
The arena 𝜄 has moves {𝑞} ∪ℕ, with 𝑞 an initial 𝑂-question, each 𝑛 ∈ℕ a 𝑃-answer, and 𝑞 ⊢𝜄𝑛 for every 𝑛. The arena 𝑜 is the same with {𝗍𝗍,𝖿𝖿} in place of ℕ. The arena 𝟏 has one initial 𝑂-question and one 𝑃-answer.
Referenced from 2 locations
For arenas 𝐴,𝐵 define 𝐴 ×𝐵 by 𝑀𝐴×𝐵:=𝑀𝐴 +𝑀𝐵 with the labels and enablings of the two summands, and 𝐴 ⇒𝐵 by 𝑀𝐴⇒𝐵:=𝑀𝐴+𝑀𝐵,𝜆𝐴⇒𝐵:=[(―――𝜆𝑂𝑃𝐴,𝜆𝑄𝐴𝐴), 𝜆𝐵], ⊢𝐴⇒𝐵:=⊢𝐵 ∪ {(𝑚,𝑛)∣𝑚⊢𝐴𝑛, 𝑚∈𝑀𝐴} ∪ {(𝑏,𝑎)∣⋆⊢𝐵𝑏, ⋆⊢𝐴𝑎}. So the initial moves of 𝐴 ⇒𝐵 are those of 𝐵, the 𝑂/𝑃 roles in the 𝐴-component are exchanged, and an initial move of 𝐴 is enabled by an initial move of 𝐵.
Referenced from 7 locations
A justified sequence over 𝐴 is a finite sequence of moves in which every non-initial occurrence 𝑛 carries a pointer to an earlier occurrence 𝑚 with 𝑚 ⊢𝐴𝑛. The 𝑃-view of a justified sequence is defined by pv(𝜀)=𝜀,pv(𝑠𝑚)=pv(𝑠)𝑚 (𝑚 a 𝑃-move),pv(𝑠𝑚)=𝑚 (𝑚 initial), pv(𝑠𝑚𝑡𝑛)=pv(𝑠𝑚)𝑛(𝑛 an 𝑂-move justified by 𝑚), and the 𝑂-view ov dually. A justified sequence 𝑠 is a play when
alternation: 𝑂- and 𝑃-moves alternate and 𝑠 begins with an 𝑂-move;
well-bracketing: every answer is justified by the most recent unanswered question of 𝑠;
visibility: the justifier of each 𝑃-move 𝑛 occurs in pv(𝑠′), where 𝑠′ is the prefix ending just before 𝑛, and dually for 𝑂-moves and 𝑂-views.
Write 𝑃𝐴 for the plays over 𝐴 and 𝑃e𝐴 for those of even length.
Referenced from 9 locations
For every play 𝑠, pv(𝑠) and ov(𝑠) are justified sequences over the same arena, and every pointer of pv(𝑠) targets a move of pv(𝑠).
Referenced from 5 locations
Proof of Lemma 157.5 — Views are justified sequences
Proof. Induction on 𝑠. The first clause appends a 𝑃-move whose justifier lies in pv(𝑠) by the visibility condition. The second restarts the view at an initial move, which needs no pointer. The third appends an 𝑂-move whose justifier is 𝑚, the last move of pv(𝑠 𝑚), so the pointer targets a retained move. No clause deletes a move that is the target of a retained pointer, since deletion occurs only in the third clause and only for the block 𝑡, whose moves are not targets of the appended pointer. ◻
Strategies, composition, and the category
A strategy on 𝐴 is a set 𝜎 ⊆𝑃e𝐴 that is even-prefix closed — 𝑠 𝑚 𝑛 ∈𝜎 implies 𝑠 ∈𝜎 — and deterministic — 𝑠 𝑚 𝑛, 𝑠 𝑚 𝑛′ ∈𝜎 implies that 𝑛 and 𝑛′ are the same occurrence with the same pointer. A strategy on 𝐴 ⇒𝐵 is regarded as a morphism 𝐴 →𝐵.
Referenced from 2 locations
For arenas 𝐴,𝐵,𝐶, an interaction sequence is a justified sequence 𝑢 over 𝑀𝐴 +𝑀𝐵 +𝑀𝐶 such that 𝑢 ↾𝐴,𝐵 ∈𝑃𝐴⇒𝐵, 𝑢 ↾𝐵,𝐶 ∈𝑃𝐵⇒𝐶 and 𝑢 ↾𝐴,𝐶 is a justified sequence over 𝐴 ⇒𝐶, where each restriction deletes the moves of the omitted component and composes pointers through deleted moves. For 𝜎 :𝐴 ⇒𝐵 and 𝜏 :𝐵 ⇒𝐶 put 𝜎‖𝜏:={𝑢∣𝑢↾𝐴,𝐵∈𝜎, 𝑢↾𝐵,𝐶∈𝜏},𝜏∘𝜎:={𝑢↾𝐴,𝐶∣𝑢∈𝜎‖𝜏}∩𝑃e𝐴⇒𝐶.
Referenced from 4 locations
Let 𝑢 be an interaction sequence. A move of 𝐵 that is a 𝑃-move of 𝑢 ↾𝐴,𝐵 is an 𝑂-move of 𝑢 ↾𝐵,𝐶, and conversely. Consequently the moves of 𝑢 deleted by ↾𝐴,𝐶 occur in maximal blocks of odd length, and a block is left only by a move whose justifier lies outside 𝐵.
Referenced from 8 locations
Proof of Lemma 157.8 — Switching
Proof. The labelling of 𝐴 ⇒𝐵 exchanges 𝑂 and 𝑃 on the 𝐴-component, and that of 𝐵 ⇒𝐶 exchanges them on the 𝐵-component; so a single 𝐵-move receives opposite labels in the two restrictions, which is the first claim. Inside a block the two strategies therefore alternate: after a 𝐵-move by one of them, the other must answer, and neither can terminate the block by playing in 𝐵. A block is left by a move outside 𝐵, which by definition 157.3 must be justified outside 𝐵. Counting from the 𝐴 ⇒𝐵 side, a block begins with a 𝑃-move of 𝜎 and ends with an 𝑂-move of 𝜎, so its length is odd. ◻
For 𝜎 :𝐴 ⇒𝐵 and 𝜏 :𝐵 ⇒𝐶, the set 𝜏 ∘𝜎 is a strategy on 𝐴 ⇒𝐶.
Referenced from 7 locations
Proof of Proposition 157.9 — Composition is a strategy
Proof. Plays. Deleting a 𝐵-block of odd length exchanges parity exactly once, so by lemma 157.8 the visible moves of 𝑢 ↾𝐴,𝐶 alternate and the sequence begins with an 𝑂-move. Well-bracketing: a deleted block is itself well-bracketed, so the stack of pending questions of the visible play is unchanged across it, and a composed pointer still targets the most recent unanswered visible question. Visibility: an induction on 𝑢 shows that pv(𝑢 ↾𝐴,𝐶) is the image of pv(𝑢) under deletion, using lemma 157.5; hence a justifier visible in pv(𝑢) remains visible after deletion.
Even-prefix closure. If 𝑢 ↾𝐴,𝐶 =𝑠 𝑚 𝑛, the prefix of 𝑢 ending at the last move restricting to 𝑠 is again an interaction sequence, and its two restrictions are even-length prefixes of members of 𝜎 and 𝜏, hence members.
Determinism. Let 𝑢,𝑢′ ∈𝜎‖𝜏 restrict to 𝑠 𝑚 𝑛 and 𝑠 𝑚 𝑛′, and let 𝑣 be their longest common prefix. By lemma 157.8 exactly one of the two strategies is to move after 𝑣, and that strategy is deterministic, so 𝑢 and 𝑢′ agree one move further. Iterating contradicts maximality of 𝑣 unless the two restrictions coincide, whence 𝑛 =𝑛′ with the same pointer. ◻
For an arena 𝐴 let id𝐴 :𝐴 ⇒𝐴 consist of the even-length plays 𝑠 over 𝐴 ⇒𝐴 such that every even-length prefix 𝑡 satisfies 𝑡 ↾1 =𝑡 ↾2, where ↾𝑖 selects the 𝑖th copy of 𝐴 and pointers are inherited.
Referenced from 3 locations
Proof of Theorem 157.11 — The category of games
Proof. Identity laws. Let 𝜎 :𝐴 ⇒𝐵. In an interaction of id𝐴 with 𝜎, whenever id𝐴 is to move it copies the last move across, so the interaction sequence is determined by 𝜎 and is exactly the image of a play of 𝜎 under duplicating 𝐴-moves. Restricting to the outer 𝐴 and to 𝐵 returns that play, so 𝜎 ∘id𝐴 =𝜎; the other unit law is symmetric.
Associativity. For 𝜎 :𝐴 ⇒𝐵, 𝜏 :𝐵 ⇒𝐶 and 𝜐 :𝐶 ⇒𝐷 consider the sequences over 𝑀𝐴 +𝑀𝐵 +𝑀𝐶 +𝑀𝐷 whose three consecutive two-component restrictions lie in 𝜎, 𝜏 and 𝜐. Both (𝜐 ∘𝜏) ∘𝜎 and 𝜐 ∘(𝜏 ∘𝜎) arise from this set by deleting 𝐵 and 𝐶 in the two possible orders, and deletion of disjoint sets of moves commutes and composes pointers associatively. It remains to see that every element of either composite arises from a four-component sequence: given witnesses 𝑢 for the outer composition and 𝑣 for the inner one, they agree on the moves they share by determinism of the strategies involved, and by lemma 157.8 no move is scheduled twice, so they amalgamate. ◻
A strategy 𝜎 is innocent when its response depends only on the 𝑃-view: if 𝑠 𝑚 𝑛 ∈𝜎, 𝑡 ∈𝜎, 𝑡 𝑚 ∈𝑃𝐴 and pv(𝑠 𝑚) =pv(𝑡 𝑚), then 𝑡 𝑚 𝑛 ∈𝜎 with the pointer of 𝑛 targeting the corresponding occurrence. Its view function f𝜎 is the set of 𝑃-views of its plays.
Referenced from 5 locations
Copycat is innocent and well-bracketed, and if 𝜎 and 𝜏 are innocent and well-bracketed then so is 𝜏 ∘𝜎.
Referenced from 3 locations
Proof of Proposition 157.13 — Innocence and bracketing are preserved
Proof. For copycat, the 𝑃-view determines the last 𝑂-move and its justifier, which is all the copying rule consults; the copied answer answers the copy of the question that was answered on the other side, so bracketing holds.
For composition, prove by induction on interaction sequences that pv(𝑢) is obtained from pv(𝑢 ↾𝐴,𝐶) by inserting at each position a 𝐵-block that is determined by f𝜎 and f𝜏 alone. The base case is empty; the inductive step is the case analysis of lemma 157.8, in which the strategy about to move consults only its own 𝑃-view, available by the induction hypothesis. It follows that two plays of 𝜏 ∘𝜎 with equal 𝑃-views have equal interaction 𝑃-views and hence equal continuations, which is innocence. Well-bracketing was shown in proposition 157.9. ◻
Arenas and innocent well-bracketed strategies form a subcategory Gi of G.
Referenced from 5 locations
Proof of Corollary 157.14 — Innocent subcategory
Proof. Proposition 157.13 gives closure under composition and contains the identities; the laws are inherited from theorem 157.11. ◻
Cartesian closure
𝟏 is terminal in Gi, and 𝐴 ×𝐵 with the projections 𝜋1:=id𝐴-copycat into the first summand and 𝜋2 dually is a product: for 𝜎 :𝐶 ⇒𝐴 and 𝜏 :𝐶 ⇒𝐵 there is a unique ⟨𝜎,𝜏⟩ :𝐶 ⇒𝐴 ×𝐵 with 𝜋𝑖 ∘⟨𝜎,𝜏⟩ the given strategies.
Referenced from 6 locations
Proof of Proposition 157.15 — Products
Proof. An initial move of 𝐴 ×𝐵 lies in exactly one summand, and by definition 157.4 every later move is hereditarily justified by it; so a play of 𝐶 ⇒𝐴 ×𝐵 has all its 𝐴 ×𝐵-moves in one summand, and the set of such plays splits as a disjoint union. Define ⟨𝜎,𝜏⟩ to be 𝜎 on the plays whose initial move is in 𝐴 and 𝜏 on those whose initial move is in 𝐵; determinism and even-prefix closure are inherited summandwise, and innocence holds because the 𝑃-view of a play determines its initial move. The two equations follow from the identity law of theorem 157.11 applied inside each summand, and uniqueness holds because the splitting is forced. Terminality of 𝟏 is the observation that 𝟏 ⇒ nothing may be played after the unique answer, so exactly one strategy exists. ◻
For arenas 𝐴,𝐵,𝐶 there is a bijection, natural in 𝐶, Λ: {𝜎:𝐶×𝐴⇒𝐵} ≅ {ˆ𝜎:𝐶⇒(𝐴⇒𝐵)}, restricting to innocent well-bracketed strategies on both sides; hence Gi is cartesian closed with exponential 𝐴 ⇒𝐵.
Referenced from 9 locations
Proof of Proposition 157.16 — Exponentials
Proof. The two arenas (𝐶 ×𝐴) ⇒𝐵 and 𝐶 ⇒(𝐴 ⇒𝐵) have the same moves, namely 𝑀𝐴 +𝑀𝐵 +𝑀𝐶, and the same labels: on the left the 𝑂/𝑃 roles are exchanged on 𝐶 and on 𝐴, and on the right they are exchanged on 𝐶 and, inside 𝐴 ⇒𝐵, exchanged again on 𝐴 — which is one exchange in total, the same as on the left. The enabling relations differ only in that on the right an initial move of 𝐴 is enabled by an initial move of 𝐵, whereas on the left it is enabled by an initial move of 𝐵 through the pairing; in both cases the hereditary justifier of every 𝐴-move is an initial 𝐵-move. Hence the two sets of justified sequences coincide, and the conditions of definition 157.4 are conditions on labels and pointers only, so the plays coincide. Take Λ to be the identity on sets of plays. It preserves determinism, prefix closure, 𝑃-views — hence innocence — and the pending-question stack — hence bracketing. Naturality in 𝐶 is the statement that composition with a strategy 𝐶′ ⇒𝐶 is computed by the same interaction on both sides, which holds because the move sets agree. ◻
Interpreting PCF
Put [[𝜄]]:=𝜄, [[𝑜]]:=𝑜 and [[𝜎 →𝜏]]:=[[𝜎]] ⇒[[𝜏]], and interpret a context by the product of its types. A term Γ ⊢𝑀 :𝜎 is interpreted by an innocent well-bracketed strategy [[𝑀]] :[[Γ]] ⇒[[𝜎]], using proposition 157.15, proposition 157.16 for variables, abstraction and application. The constants are the following view functions:
[[𝑛――]] answers the initial question 𝑞 by 𝑛;
[[𝗌𝗎𝖼𝖼]] answers 𝑞 in the result by asking 𝑞 in the argument and, on receiving 𝑛, answering 𝑛 +1; 𝗉𝗋𝖾𝖽 and 𝗓𝖾𝗋𝗈 are analogous;
[[𝗂𝖿]] asks the first argument, and on receiving 𝗍𝗍 asks the second and copies its answer, on receiving 𝖿𝖿 asks the third and copies its answer.
Referenced from 7 locations
For a fixed arena 𝐴, the innocent well-bracketed strategies on 𝐴 ordered by inclusion form a dcppo with least element ∅, in which directed suprema are unions; and composition is continuous in each argument.
Referenced from 6 locations
Proof of Lemma 157.18 — Strategies form a pointed dcpo
Proof. A union of a directed family of even-prefix-closed sets is even-prefix closed. Determinism is preserved: two continuations of the same play lie in a common member of the family by directedness, hence agree. Innocence and bracketing are conditions on individual plays and on pairs of plays with equal views, and both are again settled inside a common member. Continuity of composition: an element of 𝜏 ∘(⋃𝑖𝜎𝑖) is witnessed by a single interaction sequence, which is finite, so all the 𝜎-plays it uses lie in one 𝜎𝑖; the converse inclusion is monotonicity. ◻
For Γ ⊢𝑀 :𝜎 →𝜎 put [[𝖿𝗂𝗑 𝑀]]:=⋃𝑛≥0Φ𝑛(∅) where Φ(𝜌):=ev ∘⟨[[𝑀]],𝜌⟩.
Referenced from 5 locations
If 𝑀 ⟶𝑁 in PCF then [[𝑀]] =[[𝑁]].
Referenced from 6 locations
Proof of Proposition 157.20 — Soundness
Proof. Each reduction rule is one of: a 𝛽-step, handled by proposition 157.16 together with the identity law; a constant step, handled by unfolding the view functions of definition 157.17 and observing that the two sides have the same view function; or the unfolding of 𝖿𝗂𝗑, which holds because ⋃𝑛Φ𝑛(∅) is a fixed point of the continuous Φ by lemma 157.18. Compatibility with contexts is functoriality of the interpretation, which is theorem 157.11. ◻
Let ⋅ ⊢𝑀 :𝜄. Then [[𝑀]] contains the play 𝑞 𝑛 if and only if 𝑀 ⇓𝑛――; and [[𝑀]] =∅ if and only if 𝑀 diverges.
Referenced from 8 locations
Proof of Theorem 157.21 — Computational adequacy
Proof. ( ⇐) is proposition 157.20 together with [[𝑛――]] ={𝑞 𝑛}, computed from definition 157.17.
( ⇒) is proved by a logical relation between strategies and terms. For each type 𝜎 define a relation ⊲𝜎 between innocent strategies on [[𝜎]] and closed terms of type 𝜎:
𝜌 ⊲𝜄𝑀 iff 𝑞 𝑛 ∈𝜌 implies 𝑀 ⇓𝑛――, and similarly at 𝑜;
𝜌 ⊲𝜎→𝜏𝑀 iff ev ∘⟨𝜌,𝜌′⟩ ⊲𝜏𝑀 𝑁 whenever 𝜌′ ⊲𝜎𝑁.
Each ⊲𝜎 is closed under directed unions in its first argument: at 𝜄 because a play in the union lies in a member, and at higher types because ev is continuous by lemma 157.18; and ∅ ⊲𝜎𝑀 always, again by induction on 𝜎. The fundamental lemma states that for 𝑥1 :𝜎1,…,𝑥𝑘 :𝜎𝑘 ⊢𝑀 :𝜏 and closed 𝑁𝑖 with 𝜌𝑖 ⊲𝜎𝑖𝑁𝑖, [[𝑀]]∘⟨𝜌1,…,𝜌𝑘⟩ ⊲𝜏 𝑀[𝑁1/𝑥1,…,𝑁𝑘/𝑥𝑘]. It is proved by induction on 𝑀. Variables and abstraction use proposition 157.15, proposition 157.16; application is the defining clause of ⊲𝜎→𝜏; the constants are checked directly from their view functions, the conditional using the two operational rules for 𝗂𝖿; and 𝖿𝗂𝗑 uses closure under directed unions together with ∅ ⊲𝜎𝑀 and induction on the approximants of definition 157.19. Instantiating the fundamental lemma at a closed term of type 𝜄 gives [[𝑀]] ⊲𝜄𝑀, which is the required implication. The final claim follows: [[𝑀]] ≠∅ forces some 𝑞 𝑛 ∈[[𝑀]], since a nonempty strategy on 𝜄 contains a play of length two. ◻
Two complete strategies
Write the arena (𝜄 →𝜄) →𝜄 with moves 𝑞0,𝑛0 for the result, 𝑞1,𝑛1 for the argument’s result, and 𝑞2,𝑛2 for the argument’s argument. The initial move is 𝑞0, an 𝑂-question; 𝑞1 is a 𝑃-question justified by 𝑞0; 𝑞2 is an 𝑂-question justified by 𝑞1; 𝑛2 is a 𝑃-answer to 𝑞2; 𝑛1 is an 𝑂-answer to 𝑞1; and 𝑛0 is a 𝑃-answer to 𝑞0.
The view function of [[𝐹1]] is generated by 𝑞0 ↦ 𝑞1,𝑞0𝑞1𝑞2 ↦ 𝑞′1,𝑞0𝑞1𝑞2𝑞′1𝑛′1 ↦ 𝑛2:=𝑛′1,𝑞0𝑞1𝑛1 ↦ 𝑛0:=𝑛1, where 𝑞′1 is a second occurrence of 𝑞1, justified by 𝑞0. Read aloud: asked for its result, 𝐹1 asks its argument; asked by the argument for an input, it asks the argument again; the answer to the inner call is returned as that input; and the answer to the outer call is returned as the result. The strategy is innocent because each response above depends only on the displayed 𝑃-view, and well-bracketed because each answer answers the pending question.
The view function of [[𝐹2]] begins the same way, 𝑞0 ↦𝑞1 and 𝑞0 𝑞1 𝑞2 ↦0: the first interrogation supplies the literal 0. On receiving 𝑛1 it branches: if 𝑛1 =0 it asks 𝑞′1 again and supplies 0 once more, returning the second answer as 𝑛0; if 𝑛1 ≠0 it asks 𝑞′1, supplies as input the answer to a further call 𝑞″1 with input 0, and returns the answer to 𝑞′1. The two strategies differ already at the play 𝑞0 𝑞1 𝑞2 , after which [[𝐹1]] plays 𝑞′1 and [[𝐹2]] plays 0.
Referenced from 6 locations
★☆☆ Write out the view function of id𝜄 and of id𝜄→𝜄, and check innocence and well-bracketing directly against definition 157.12, definition 157.4.
Referenced from 2 locations
★★☆ Show that lemma 157.8 fails if the 𝑂/𝑃 exchange is omitted from definition 157.3: exhibit a sequence over 𝐴,𝐵,𝐶 whose two restrictions alternate but whose 𝐵-blocks have even length, and say which step of proposition 157.9 then breaks.
Referenced from 2 locations
★★☆ Give a deterministic well-bracketed strategy on (𝜄 →𝜄) →𝜄 that is not innocent, by making its second response depend on a move outside the current 𝑃-view. Explain informally which programming feature such a strategy would model, and confirm that it is excluded by corollary 157.14.
Referenced from 2 locations
★★☆ Compute the first three approximants Φ𝑛(∅) of definition 157.19 for 𝑀:=𝜆𝑓. 𝜆𝑥. 𝗂𝖿 𝗓𝖾𝗋𝗈(𝑥) 𝗍𝗁𝖾𝗇 0 𝖾𝗅𝗌𝖾 𝑓 (𝗉𝗋𝖾𝖽(𝑥)), displaying each as a view function, and identify the play that first appears at stage 𝑛.
Referenced from 2 locations
Boundary and seminar
What has been proved is that arenas and innocent well-bracketed strategies form a cartesian closed category (theorem 157.11, corollary 157.14, proposition 157.15, proposition 157.16), that PCF is interpreted soundly in it (proposition 157.20), and that the interpretation is computationally adequate at ground type (theorem 157.21).
Three things have not been proved and are not implied. No strategy has been shown to be the denotation of a term: the model may contain innocent well-bracketed strategies that no PCF program defines, and deciding that question is a separate development. No two terms have been shown indistinguishable by contexts on the basis of equal denotations, nor conversely: adequacy at ground type is one implication about one type, not a statement about contextual equivalence. And the three conditions on plays are load-bearing, not stylistic: dropping well-bracketing admits strategies modelling control operators, dropping visibility admits strategies modelling general references, and dropping determinism admits nondeterminism. Each omission changes which category is obtained and invalidates the corresponding step above — bracketing is used in proposition 157.9, visibility in lemma 157.5, and determinism in proposition 157.9 — so each requires its own proofs.
The construction follows the two independent primary developments of game models for PCF: the arena-and-innocent-strategy presentation used above, and the presentation with histories and equivalence classes of plays. The lecture-note route through arenas, plays, composition and innocence is [Abr03], the operational and contextual background is [Har16, Plo77], and the extensional comparison that motivated the chapter is the domain semantics of [AJ94] and chapter 154.
[4]
Suggested first pass.
Begin with exercise 157.5, then exercise 157.6, and finish with exercise 157.8.
★★★ Describe, as a view function, a strategy on (𝑜 ×𝑜) ⇒𝑜 that answers 𝗍𝗍 as soon as either argument answers 𝗍𝗍, without waiting for the other. Show that it is innocent and well-bracketed, and then show that it is not the denotation of any PCF term by exhibiting a term-level property that all denotations of definition 157.17 satisfy and this strategy does not. Do not appeal to any definability theorem.
Referenced from 3 locations
★★★ Complete the amalgamation step in the proof of theorem 157.11: given witnesses 𝑢 and 𝑣 as described there, construct the four-component sequence explicitly and verify each of its three restrictions. Identify the exact use of lemma 157.8.
Referenced from 3 locations
★★★ Write out the 𝗂𝖿 and 𝖿𝗂𝗑 cases of the fundamental lemma in the proof of theorem 157.21 in full, including the verification that ⊲𝜎 is closed under directed unions at function types.
Referenced from 2 locations
★★★ Practical project.arena-strategy-interpreter Implement arenas, justified sequences, plays and innocent strategies for the simply typed fragment over 𝜄 generated by definition 157.1, definition 157.3. Represent a strategy by its view function as a finite table from 𝑃-views to responses, and implement the three play conditions of definition 157.4, composition by interaction and hiding as in definition 157.7, and copycat. The invariant the program must maintain is that every sequence it accepts satisfies alternation, well-bracketing and visibility, and that every response it records is determined by the 𝑃-view alone. The program must print, for each named input, whether a proposed sequence is a play with the failing condition named if not, the interaction sequence of two strategies, and the resulting composite as a view function. The acceptance test is: the two view functions of example 157.22 are accepted, and the program reports that they differ first after the play 𝑞0 𝑞1 𝑞2; composing either with copycat returns the same table, matching theorem 157.11; a table whose response depends on a move outside the 𝑃-view is rejected as non-innocent, matching definition 157.12; and a sequence whose answer skips a pending question is rejected as not well-bracketed. A finite table interpreter is evidence on named inputs; it does not prove theorem 157.11 or theorem 157.21, and it decides nothing about strategies with infinite view functions.
Referenced from 4 locations