phino-0.0.169: test-resources/evaluate-packs/recalls-a-firing-whose-operand-dispatches-off-a-symbol.yaml
# SPDX-FileCopyrightText: Copyright (c) 2025 Objectionary.com
# SPDX-License-Identifier: MIT
---
# yamllint disable rule:line-length
# Both sides fire the same copy of 'L_id', whose operand dispatches off a
# bare symbol. The dispatch is 'opaque' and gives a new symbol (#2479), so the
# left one answers and the memo keeps the answer; the right one recalls it.
symbolic: |
- Ξ»: L_fork
dataize:
πΏ1: $.onπ΅
morph:
π1: $.leftπ΅
π2: $.rightπ΅
join:
on: πΏ1
left: π1
right: π2
otherwise: L_fork
- Ξ»: L_id
morph:
π1: $.x
π: π1
location: 'Q.e1'
acyclic: plausible
input: 'β¦ k β¦ β¦ q β¦ β¦β§ β§, id β¦ β¦ Ξ» β€ L_id, x β¦ β¦ Ξ» β€ π1 β§.q β§, e1 β¦ β¦ Ξ» β€ L_fork, onπ΅ β¦ β¦ Ξ β€ 00- β§, leftπ΅ β¦ Ξ¦.id.Ο, rightπ΅ β¦ Ξ¦.id.Ο β§.Ο β§'
result: 'π6:Ξ»'
protocol: |
π(Ξ¦.e1):
πΌ(L_fork):
π»(ΞΎ.onπ΅):
πΏΒ·1Β·1 β 00-
πΏ1Β·1 β πΏΒ·1Β·1 # π»(ΞΎ.onπ΅)
π(ΞΎ.leftπ΅):
remembered πΒ·1Β·1 β‘ Ξ¦.id # β¦ Ξ» β€ L_id, x β¦ π1:Ξ».q β§
πΌ(L_id):
π(ΞΎ.x):
opaque π2:Ξ» β π1:Ξ».q
morphed πΒ·2Β·1 β π2:Ξ»
π1Β·2 β πΒ·2Β·1 # π(ΞΎ.x)
πΒ·2Β·2 β π1Β·2 # π of L_id
π(πΒ·2Β·2):
morphed πΒ·2Β·3 β π1Β·2
πΒ·2Β·4 β π1Β·2 # π(πΒ·2Β·2)
memoized πΒ·1Β·1 β π2:Ξ»
evaluated πΒ·2Β·5 β πΒ·2Β·4 # πΒ·1Β·1
opaque π3:Ξ» β π2:Ξ».Ο
morphed πΒ·1Β·2 β π3:Ξ»
π1Β·1 β πΒ·1Β·2 # π(ΞΎ.leftπ΅)
π(ΞΎ.rightπ΅):
πΌ(L_id):
recalled πΒ·1Β·1 β π2:Ξ»
πΒ·3Β·1 β πΒ·2Β·4 # π of L_id
πΒ·3Β·2 β πΒ·2Β·4 # π(πΒ·3Β·1)
evaluated πΒ·3Β·3 β πΒ·3Β·2 # πΒ·1Β·1
opaque π4:Ξ» β π2:Ξ».Ο
morphed πΒ·1Β·3 β π4:Ξ»
π2Β·1 β πΒ·1Β·3 # π(ΞΎ.rightπ΅)
joined π5 β πΏ1Β·1 ? π3 : π4
πΒ·1Β·4 β π5:Ξ»
memoized πΒ·1Β·5 β π5:Ξ» # β¦ Ξ» β€ L_fork, onπ΅ β¦ 00-:Ξ, leftπ΅ β¦ Ξ¦.id.Ο, rightπ΅ β¦ Ξ¦.id.Ο β§
evaluated πΒ·1Β·6 β πΒ·1Β·4 # πΒ·1Β·5
opaque π6:Ξ» β π5:Ξ».Ο
morphed πΒ·0Β·1 β π6:Ξ»