phino-0.0.169: test-resources/evaluate-packs/cuts-a-loop-met-at-a-dispatch-off-an-atom.yaml
# SPDX-FileCopyrightText: Copyright (c) 2025 Objectionary.com
# SPDX-License-Identifier: MIT
---
# yamllint disable rule:line-length
# A loop found where π is about to dispatch 'q' off a copy of the atom
# 'L_times', under '--acyclic=plausible'. The operand of 'L_dataized' reads
# 'Ξ¦.x.q' again, so the dispatch repeats the one above it. The cut answers the
# whole dispatch with a fresh symbol, named after the call the facts trace with
# 'q' on top, and leaves the argument of the call as it is, since working it
# out would run into the same loop again (#2307). Both firings then answer.
symbolic: |
- Ξ»: L_times
dataize:
πΏ1: $.b
π: β¦ Ξ» β€ π β§
- Ξ»: L_dataized
dataize:
πΏ1: $.target
π: β¦ Ξ» β€ π β§
location: 'Q.y'
acyclic: plausible
partial: true
input: >
β¦ dataized(target) β¦ β¦ Ξ» β€ L_dataized β§,
times(b) β¦ β¦ Ξ» β€ L_times β§,
x β¦ Ξ¦.times( b β¦ Ξ¦.dataized( target β¦ Ξ¦.x.q ) ),
y β¦ Ξ¦.x.q β§
result: 'π4:Ξ»'
protocol: |
π(Ξ¦.y):
normalized πΒ·0Β·1 β Ξ¦.times( b β¦ Ξ¦.dataized( target β¦ Ξ¦.x.q ) ) # Ξ¦.x
remembered πΒ·0Β·2 β‘ Ξ¦.times # β¦ b β¦ β
, Ξ» β€ L_times β§
πΒ·0Β·3 β Ξ¦.times( b β¦ Ξ¦.dataized( target β¦ Ξ¦.x.q ) )
πΒ·0Β·4 β β¦ b β¦ Ξ¦.dataized( target β¦ Ξ¦.x.q ), Ξ» β€ L_times β§
remembered πΒ·0Β·4 β‘ πΒ·0Β·2( b β¦ Ξ¦.dataized( target β¦ Ξ¦.x.q ) )
πΌ(L_times):
π»(ΞΎ.b):
π(ΞΎ.b):
remembered πΒ·1Β·1 β‘ Ξ¦.dataized # β¦ target β¦ β
, Ξ» β€ L_dataized β§
πΒ·1Β·2 β Ξ¦.dataized( target β¦ Ξ¦.x.q )
πΒ·1Β·3 β β¦ target β¦ Ξ¦.x.q, Ξ» β€ L_dataized β§
remembered πΒ·1Β·3 β‘ πΒ·1Β·1( target β¦ Ξ¦.x.q )
morphed πΒ·1Β·4 β πΒ·1Β·3
πΌ(L_dataized):
π»(ΞΎ.target):
π(ΞΎ.target):
normalized πΒ·2Β·1 β πΒ·0Β·3 # Ξ¦.x
πΒ·2Β·2 β Ξ¦.times( b β¦ πΒ·1Β·2 )
πΒ·2Β·3 β β¦ b β¦ πΒ·1Β·2, Ξ» β€ L_times β§
recalled πΒ·0Β·4 β πΒ·0Β·2( b β¦ Ξ¦.dataized( target β¦ Ξ¦.x.q ) )
recalled πΒ·0Β·2 β Ξ¦.times
looped π1 β πΒ·2Β·2.q # plausible, repeats πΒ·2Β·3
morphed πΒ·2Β·4 β π1:Ξ»
πΏΒ·2Β·1 β π»(π1:Ξ»)
πΏ1Β·2 β πΏΒ·2Β·1 # π»(ΞΎ.target)
πΒ·2Β·5 β π2:Ξ» # π of L_dataized
π(πΒ·2Β·5):
morphed πΒ·2Β·6 β π2:Ξ»
πΒ·2Β·7 β πΒ·2Β·6 # π(πΒ·2Β·5)
memoized πΒ·1Β·3 β π2:Ξ»
evaluated πΒ·2Β·8 β πΒ·2Β·7 # πΒ·1Β·3
πΏΒ·1Β·1 β π»(π2:Ξ»)
πΏ1Β·1 β πΏΒ·1Β·1 # π»(ΞΎ.b)
πΒ·1Β·5 β π3:Ξ» # π of L_times
π(πΒ·1Β·5):
morphed πΒ·1Β·6 β π3:Ξ»
πΒ·1Β·7 β πΒ·1Β·6 # π(πΒ·1Β·5)
memoized πΒ·2Β·3 β π3:Ξ»
evaluated πΒ·1Β·8 β πΒ·1Β·7 # πΒ·2Β·3
opaque π4:Ξ» β π3:Ξ».q
morphed πΒ·0Β·5 β π4:Ξ»