packages feed

phino-0.0.172 / 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: plausiblepartial: trueinput: >  ⟦ 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:Ξ»