packages feed

phino-0.0.169: test-resources/evaluate-packs/cuts-an-entry-that-answers-with-a-firing-of-itself.yaml

# SPDX-FileCopyrightText: Copyright (c) 2025 Objectionary.com
# SPDX-License-Identifier: MIT
---
# The same entry answering with a firing of itself, under '_acyclic': morphing
# comes back to the very dispatch it is already reducing, so it stops there
# instead of going round until the budget is gone, and answers the dispatch
# with a fresh symbol (#2307). The budget is generous here, so what ends the
# run is the cut and not the limit.
symbolic: |
  - Ξ»: L_loop
    𝑛: ⟦ Ξ» ‍ L_loop ⟧
location: 'Q.x'
acyclic: proven
steps: 250
input: '⟦ x ↦ ⟦ Ξ» ‍ L_loop ⟧.foo ⟧'
result: '𝜎1:λ'
protocol: |
  𝕄(Ξ¦.x):
    𝔼(L_loop):
      𝑛·1Β·1 ≔ L_loop:Ξ»  # 𝑛 of L_loop
      𝕄(𝑛·1Β·1):
        morphed 𝑛·1Β·2 ≔ L_loop:Ξ»
      𝑛·1Β·3 ≔ L_loop:Ξ»  # 𝕄(𝑛·1Β·1)
      evaluated 𝑛·1Β·4 ≔ L_loop:Ξ»  # L_loop:Ξ»
    looped 𝜎1  # proven, repeats L_loop:λ
    morphed 𝑛·0Β·1 ≔ 𝜎1:Ξ»