packages feed

phino-0.0.169: test-resources/evaluate-packs/answers-the-same-dataization-loop-under-partial.yaml

# SPDX-FileCopyrightText: Copyright (c) 2025 Objectionary.com
# SPDX-License-Identifier: MIT
---
# The program of 'answers-an-operand-that-dataizes-in-circles-with-a-symbol',
# run with '--partial' as well. The box step of 𝔻 answers the copy it would
# enter again with a fresh symbol (#2226), so nothing is left to park and the
# answer is the same, which is what "--acyclic needs no --partial" means for a
# loop 𝔻 catches (#1290).
symbolic: |
  - Ξ»: L_outer
    dataize:
      𝛿1: ΞΎ.arg
    𝑛: ⟦ bar ↦ ⟦ Ξ» ‍ 𝜎 ⟧ ⟧
location: 'Q.x'
acyclic: proven
partial: true
steps: 250
input: >
  ⟦ cyc ↦ ⟦ x ↦ βˆ…, Ο† ↦ Ξ¦.cyc( x ↦ ΞΎ.x ) ⟧,
    x ↦ ⟦ arg ↦ Ξ¦.cyc( x ↦ ⟦⟧ ), Ξ» ‍ L_outer ⟧.bar ⟧
result: '𝜎2:λ'
protocol: |
  𝕄(Ξ¦.x):
    𝔼(L_outer):
      𝔻(ΞΎ.arg):
        𝕄(ΞΎ.arg):
          remembered 𝑛·1Β·1 ≑ Ξ¦.cyc  # ⟦ x ↦ βˆ…, Ο† ↦ Ξ¦.cyc( x ↦ x ) ⟧
          𝑛·1Β·2 ≔ Ξ¦.cyc( x ↦ ⟦⟧ )
          𝑛·1Β·3 ≔ ⟦ x ↦ ⟦⟧, Ο† ↦ Ξ¦.cyc( x ↦ x ) ⟧
          remembered 𝑛·1Β·3 ≑ 𝑛·1Β·1( x ↦ ⟦⟧ )
          morphed 𝑛·1Β·4 ≔ 𝑛·1Β·3
        boxed 𝑛·1Β·5 ≔ 𝑛·1Β·4.Ο†
        normalized 𝑛·1Β·6 ≔ 𝑛·1Β·2  # 𝑛·1Β·5
        𝕄(𝑛·1Β·5):
          𝑛·1Β·7 ≔ Ξ¦.cyc( x ↦ ⟦⟧ )
          𝑛·1Β·8 ≔ ⟦ x ↦ ⟦⟧, Ο† ↦ Ξ¦.cyc( x ↦ x ) ⟧
          morphed 𝑛·1Β·9 ≔ 𝑛·1Β·8
        recalled 𝑛·1Β·3 β‡’ 𝑛·1Β·1( x ↦ ⟦⟧ )
        recalled 𝑛·1Β·1 β‡’ Ξ¦.cyc
        𝕄(𝑛·1Β·9.x):
          morphed 𝑛·1Β·10 ≔ ⟦⟧
        looped 𝜎1 ≔ Ξ¦.cyc( x ↦ 𝑛·1Β·10 )  # 𝔻(𝑛·1Β·5), proven, repeats 𝑛·1Β·9
        𝛿·1Β·1 ≔ 𝔻(𝜎1:Ξ»)
      𝛿1Β·1 ≔ 𝛿·1Β·1  # 𝔻(ΞΎ.arg)
      𝑛·1Β·11 ≔ 𝜎2:Ξ»:bar  # 𝑛 of L_outer
      𝕄(𝑛·1Β·11):
        morphed 𝑛·1Β·12 ≔ 𝜎2:Ξ»:bar
      𝑛·1Β·13 ≔ 𝑛·1Β·12  # 𝕄(𝑛·1Β·11)
      evaluated 𝑛·1Β·14 ≔ 𝑛·1Β·13  # ⟦ arg ↦ 𝑛·1Β·7, Ξ» ‍ L_outer ⟧
    normalized 𝑛·0Β·1 ≔ 𝜎2:Ξ»  # 𝑛·1Β·14.bar
    morphed 𝑛·0Β·2 ≔ 𝑛·0Β·1