phino-0.0.161: test-resources/evaluate-packs/fires-a-formation-written-in-place-with-its-voids-filled.yaml
# SPDX-FileCopyrightText: Copyright (c) 2025 Objectionary.com
# SPDX-License-Identifier: MIT
---
# yamllint disable rule:line-length
# The left side of the fork is a formation written in place, not an object of
# the world, with its void 'v' filled by an argument. The 'v' it binds after
# the copy is the void it showed before, not an attribute of its own, so the
# 'evaluate' line fires it as it fires a copy of an object of the world, and
# the join joins the two symbols (#2267).
symbolic: |
- Ξ»: L_fork
dataize:
πΏ1: $.onπ΅
morph:
π1: $.leftπ΅
π2: $.rightπ΅
evaluate:
π3: π1
π4: π2
join:
'on': πΏ1
left: π3
right: π4
otherwise: L_fork
- Ξ»: L_box
π: β¦ Ξ» β€ π β§
location: 'Q.y'
partial: true
input: >
β¦ x β¦ β¦ Ξ» β€ L_fork, onπ΅ β¦ π1:Ξ», leftπ΅ β¦ β¦ v β¦ β
, Ξ» β€ L_box β§( v β¦ π2:Ξ» ), rightπ΅ β¦ π3:Ξ» β§,
y β¦ Ξ¦.x.Ο β§
result: 'π5:Ξ».Ο'
protocol: |
π(Ξ¦.y):
πΒ·0Β·1 := β¦ v β¦ β
, Ξ» β€ L_box β§( v β¦ π2:Ξ» )
πΒ·0Β·2 := β¦ v β¦ π2:Ξ», Ξ» β€ L_box β§
πΌ(L_fork):
π»(ΞΎ.onπ΅):
πΏΒ·1Β·1 := π»(π1:Ξ»)
πΏ1Β·1 := πΏΒ·1Β·1 # π»(ΞΎ.onπ΅)
π(ΞΎ.leftπ΅):
morphed πΒ·1Β·1 := πΒ·0Β·2
π1Β·1 := πΒ·0Β·2 # π(ΞΎ.leftπ΅)
π(ΞΎ.rightπ΅):
morphed πΒ·1Β·2 := π3:Ξ»
π2Β·1 := πΒ·1Β·2 # π(ΞΎ.rightπ΅)
πΌ(L_box): # πΌ(π1)
πΒ·2Β·1 := π4:Ξ» # π
π(πΒ·2Β·1):
morphed πΒ·2Β·2 := π4:Ξ»
πΒ·2Β·3 := πΒ·2Β·2 # π(πΒ·2Β·1)
π3Β·1 := πΒ·2Β·3 # πΌ(π1)
joined π5 := πΏ1Β·1 ? π4 : π3
πΒ·1Β·3 := π5:Ξ»
unanswered π5 # π(π5:Ξ»)