phino-0.0.169: test-resources/evaluate-packs/answers-a-firing-whose-operand-loops.yaml
# SPDX-FileCopyrightText: Copyright (c) 2025 Objectionary.com
# SPDX-License-Identifier: MIT
---
# A loop met while an operand is being brought down to data, one whole run of π»
# below the spine. The operand dispatches 'foo' off a formation of 'L_loop',
# whose firing answers that very formation, so π is about to dispatch off it
# again. The cut answers the whole dispatch with a fresh symbol, named by the
# symbol alone, since no fact leads that formation back to the world (#2307).
# The operand comes down to the datum of the symbol and 'L_outer' answers, and
# the dispatch of 'bar' off its answer gives a new symbol (#2479).
symbolic: |
- Ξ»: L_outer
dataize:
πΏ1: ΞΎ.arg
π: β¦ Ξ» β€ π β§
- Ξ»: L_loop
π: β¦ Ξ» β€ L_loop β§
location: 'Q.x'
acyclic: proven
steps: 250
partial: true
input: >
β¦ x β¦ β¦ arg β¦ β¦ Ξ» β€ L_loop β§.foo, Ξ» β€ L_outer β§.bar β§
result: 'π3:Ξ»'
protocol: |
π(Ξ¦.x):
πΌ(L_outer):
π»(ΞΎ.arg):
π(ΞΎ.arg):
πΌ(L_loop):
πΒ·2Β·1 β L_loop:Ξ» # π of L_loop
π(πΒ·2Β·1):
morphed πΒ·2Β·2 β L_loop:Ξ»
πΒ·2Β·3 β L_loop:Ξ» # π(πΒ·2Β·1)
evaluated πΒ·2Β·4 β L_loop:Ξ» # L_loop:Ξ»
looped π1 # proven, repeats L_loop:Ξ»
morphed πΒ·1Β·1 β π1:Ξ»
πΏΒ·1Β·1 β π»(π1:Ξ»)
πΏ1Β·1 β πΏΒ·1Β·1 # π»(ΞΎ.arg)
πΒ·1Β·2 β π2:Ξ» # π of L_outer
π(πΒ·1Β·2):
morphed πΒ·1Β·3 β π2:Ξ»
πΒ·1Β·4 β πΒ·1Β·3 # π(πΒ·1Β·2)
evaluated πΒ·1Β·5 β πΒ·1Β·4 # β¦ arg β¦ L_loop:Ξ».foo, Ξ» β€ L_outer β§
opaque π3:Ξ» β π2:Ξ».bar
morphed πΒ·0Β·1 β π3:Ξ»