packages feed

phino-0.0.172: test-resources/evaluate-packs/keeps-a-branch-read-down-a-chain-of-fabricated-formations-of-one-site.yaml

# SPDX-FileCopyrightText: Copyright (c) 2025 Objectionary.com
# SPDX-License-Identifier: MIT
---
# yamllint disable rule:line-length
# Three copies of the fork 'f' of one 'if', each one the left side of the one
# above, and the two sides of each have different shapes, so every firing
# fabricates a formation, and the one above holds the one below as a side.
# Every branch of them holds the site of the fork it was fabricated from.
# The program reads 'ok' of the outer one, and the branch fired there reads
# 'ok' of the one below, and so on down the chain. A branch fired inside
# another one of the same site, holding no argument that is a part of it,
# still repeats nothing, since the formation in its 'ρ' is held inside the
# formation in the 'ρ' of the one above: the walk goes down a chain that
# already exists, so under '--acyclic=plausible' it is not cut, even with
# '--max-loops=0' and a chain deeper than that (#2495).
symbolic: |
  - λ: L_fork
    site: $.site🌵
    dataize:
      𝛿1: $.on🌵
    morph:
      𝑛1: $.left🌵
      𝑛2: $.right🌵
    evaluate:
      𝑛3: 𝑛1
      𝑛4: 𝑛2
    join:
      on: 𝛿1
      left: 𝑛3
      right: 𝑛4
      otherwise: L_fork
location: 'Q.app'
acyclic: plausible
loops: 0
partial: true
input: >
  ⟦ f ↦ ⟦ site🌵 ↦ ∅, on🌵 ↦ ∅, left🌵 ↦ ∅, right🌵 ↦ ∅, λ ⤍ L_fork ⟧,
    app ↦ Φ.f( site🌵 ↦ ⟦ Δ ⤍ 01- ⟧, on🌵 ↦ ⟦ λ ⤍ 𝜎1 ⟧, left🌵 ↦ Φ.f( site🌵 ↦ ⟦ Δ ⤍ 01- ⟧, on🌵 ↦ ⟦ λ ⤍ 𝜎2 ⟧, left🌵 ↦ Φ.f( site🌵 ↦ ⟦ Δ ⤍ 01- ⟧, on🌵 ↦ ⟦ λ ⤍ 𝜎3 ⟧, left🌵 ↦ ⟦ ok ↦ ⟦ λ ⤍ 𝜎4 ⟧, ex ↦ ⟦ λ ⤍ 𝜎5 ⟧ ⟧, right🌵 ↦ ⟦ ok ↦ ⟦ λ ⤍ 𝜎6 ⟧ ⟧ ), right🌵 ↦ ⟦ ok ↦ ⟦ λ ⤍ 𝜎7 ⟧ ⟧ ), right🌵 ↦ ⟦ ok ↦ ⟦ λ ⤍ 𝜎8 ⟧ ⟧ ).ok.q ⟧
protocol: |
  𝕄(Φ.app):
    remembered 𝑛·0·1 ≡ Φ.f  # ⟦ site🌵 ↦ ∅, on🌵 ↦ ∅, left🌵 ↦ ∅, right🌵 ↦ ∅, λ ⤍ L_fork ⟧
    𝑛·0·2 ≔ Φ.f( site🌵 ↦ 01-:Δ )
    𝑛·0·3 ≔ ⟦ site🌵 ↦ 01-:Δ, on🌵 ↦ ∅, left🌵 ↦ ∅, right🌵 ↦ ∅, λ ⤍ L_fork ⟧
    remembered 𝑛·0·3 ≡ 𝑛·0·1( site🌵 ↦ 01-:Δ )
    𝑛·0·4 ≔ 𝑛·0·2( on🌵 ↦ 𝜎1:λ )
    𝑛·0·5 ≔ ⟦ site🌵 ↦ 01-:Δ, on🌵 ↦ 𝜎1:λ, left🌵 ↦ ∅, right🌵 ↦ ∅, λ ⤍ L_fork ⟧
    remembered 𝑛·0·5 ≡ 𝑛·0·3( on🌵 ↦ 𝜎1:λ )
    𝑛·0·6 ≔ 𝑛·0·4( left🌵 ↦ 𝑛·0·2( on🌵 ↦ 𝜎2:λ, left🌵 ↦ 𝑛·0·2( on🌵 ↦ 𝜎3:λ, left🌵 ↦ ⟦ ok ↦ 𝜎4:λ, ex ↦ 𝜎5:λ ⟧, right🌵 ↦ 𝜎6:λ:ok ), right🌵 ↦ 𝜎7:λ:ok ) )
    𝑛·0·7 ≔ ⟦ site🌵 ↦ 01-:Δ, on🌵 ↦ 𝜎1:λ, left🌵 ↦ 𝑛·0·2( on🌵 ↦ 𝜎2:λ, left🌵 ↦ 𝑛·0·2( on🌵 ↦ 𝜎3:λ, left🌵 ↦ ⟦ ok ↦ 𝜎4:λ, ex ↦ 𝜎5:λ ⟧, right🌵 ↦ 𝜎6:λ:ok ), right🌵 ↦ 𝜎7:λ:ok ), right🌵 ↦ ∅, λ ⤍ L_fork ⟧
    remembered 𝑛·0·7 ≡ 𝑛·0·5( left🌵 ↦ 𝑛·0·2( on🌵 ↦ 𝜎2:λ, left🌵 ↦ 𝑛·0·2( on🌵 ↦ 𝜎3:λ, left🌵 ↦ ⟦ ok ↦ 𝜎4:λ, ex ↦ 𝜎5:λ ⟧, right🌵 ↦ 𝜎6:λ:ok ), right🌵 ↦ 𝜎7:λ:ok ) )
    𝑛·0·8 ≔ 𝑛·0·6( right🌵 ↦ 𝜎8:λ:ok )
    𝑛·0·9 ≔ ⟦ site🌵 ↦ 01-:Δ, on🌵 ↦ 𝜎1:λ, left🌵 ↦ 𝑛·0·2( on🌵 ↦ 𝜎2:λ, left🌵 ↦ 𝑛·0·2( on🌵 ↦ 𝜎3:λ, left🌵 ↦ ⟦ ok ↦ 𝜎4:λ, ex ↦ 𝜎5:λ ⟧, right🌵 ↦ 𝜎6:λ:ok ), right🌵 ↦ 𝜎7:λ:ok ), right🌵 ↦ 𝜎8:λ:ok, λ ⤍ L_fork ⟧
    remembered 𝑛·0·9 ≡ 𝑛·0·7( right🌵 ↦ 𝜎8:λ:ok )
    𝔼(L_fork):
      𝔻(ξ.on🌵):
        𝛿·1·1 ≔ 𝔻(𝜎1:λ)
      𝛿1·1 ≔ 𝛿·1·1  # 𝔻(ξ.on🌵)
      𝕄(ξ.left🌵):
        𝑛·1·1 ≔ Φ.f( site🌵 ↦ 01-:Δ )
        𝑛·1·2 ≔ ⟦ site🌵 ↦ 01-:Δ, on🌵 ↦ ∅, left🌵 ↦ ∅, right🌵 ↦ ∅, λ ⤍ L_fork ⟧
        𝑛·1·3 ≔ 𝑛·1·1( on🌵 ↦ 𝜎2:λ )
        𝑛·1·4 ≔ ⟦ site🌵 ↦ 01-:Δ, on🌵 ↦ 𝜎2:λ, left🌵 ↦ ∅, right🌵 ↦ ∅, λ ⤍ L_fork ⟧
        remembered 𝑛·1·4 ≡ 𝑛·1·2( on🌵 ↦ 𝜎2:λ )
        𝑛·1·5 ≔ 𝑛·1·3( left🌵 ↦ 𝑛·1·1( on🌵 ↦ 𝜎3:λ, left🌵 ↦ ⟦ ok ↦ 𝜎4:λ, ex ↦ 𝜎5:λ ⟧, right🌵 ↦ 𝜎6:λ:ok ) )
        𝑛·1·6 ≔ ⟦ site🌵 ↦ 01-:Δ, on🌵 ↦ 𝜎2:λ, left🌵 ↦ 𝑛·1·1( on🌵 ↦ 𝜎3:λ, left🌵 ↦ ⟦ ok ↦ 𝜎4:λ, ex ↦ 𝜎5:λ ⟧, right🌵 ↦ 𝜎6:λ:ok ), right🌵 ↦ ∅, λ ⤍ L_fork ⟧
        remembered 𝑛·1·6 ≡ 𝑛·1·4( left🌵 ↦ 𝑛·1·1( on🌵 ↦ 𝜎3:λ, left🌵 ↦ ⟦ ok ↦ 𝜎4:λ, ex ↦ 𝜎5:λ ⟧, right🌵 ↦ 𝜎6:λ:ok ) )
        𝑛·1·7 ≔ 𝑛·1·5( right🌵 ↦ 𝜎7:λ:ok )
        𝑛·1·8 ≔ ⟦ site🌵 ↦ 01-:Δ, on🌵 ↦ 𝜎2:λ, left🌵 ↦ 𝑛·1·1( on🌵 ↦ 𝜎3:λ, left🌵 ↦ ⟦ ok ↦ 𝜎4:λ, ex ↦ 𝜎5:λ ⟧, right🌵 ↦ 𝜎6:λ:ok ), right🌵 ↦ 𝜎7:λ:ok, λ ⤍ L_fork ⟧
        remembered 𝑛·1·8 ≡ 𝑛·1·6( right🌵 ↦ 𝜎7:λ:ok )
        morphed 𝑛·1·9 ≔ 𝑛·1·8
      𝑛1·1 ≔ 𝑛·1·8  # 𝕄(ξ.left🌵)
      𝕄(ξ.right🌵):
        morphed 𝑛·1·10 ≔ 𝜎8:λ:ok
      𝑛2·1 ≔ 𝑛·1·10  # 𝕄(ξ.right🌵)
      recalled 𝑛·1·8 ⇒ 𝑛·1·6( right🌵 ↦ 𝜎7:λ:ok )
      recalled 𝑛·1·6 ⇒ 𝑛·1·4( left🌵 ↦ 𝑛·1·1( on🌵 ↦ 𝜎3:λ, left🌵 ↦ ⟦ ok ↦ 𝜎4:λ, ex ↦ 𝜎5:λ ⟧, right🌵 ↦ 𝜎6:λ:ok ) )
      recalled 𝑛·1·4 ⇒ 𝑛·1·2( on🌵 ↦ 𝜎2:λ )
      recalled 𝑛·0·3 ⇒ 𝑛·0·1( site🌵 ↦ 01-:Δ )
      recalled 𝑛·0·1 ⇒ Φ.f
      𝔼(L_fork):  # 𝔼(𝑛1 of L_fork)
        𝔻(ξ.on🌵):
          𝛿·2·1 ≔ 𝔻(𝜎2:λ)
        𝛿1·2 ≔ 𝛿·2·1  # 𝔻(ξ.on🌵)
        𝕄(ξ.left🌵):
          𝑛·2·1 ≔ Φ.f( site🌵 ↦ 01-:Δ )
          𝑛·2·2 ≔ ⟦ site🌵 ↦ 01-:Δ, on🌵 ↦ ∅, left🌵 ↦ ∅, right🌵 ↦ ∅, λ ⤍ L_fork ⟧
          𝑛·2·3 ≔ 𝑛·2·1( on🌵 ↦ 𝜎3:λ )
          𝑛·2·4 ≔ ⟦ site🌵 ↦ 01-:Δ, on🌵 ↦ 𝜎3:λ, left🌵 ↦ ∅, right🌵 ↦ ∅, λ ⤍ L_fork ⟧
          remembered 𝑛·2·4 ≡ 𝑛·2·2( on🌵 ↦ 𝜎3:λ )
          𝑛·2·5 ≔ 𝑛·2·3( left🌵 ↦ ⟦ ok ↦ 𝜎4:λ, ex ↦ 𝜎5:λ ⟧ )
          𝑛·2·6 ≔ ⟦ site🌵 ↦ 01-:Δ, on🌵 ↦ 𝜎3:λ, left🌵 ↦ ⟦ ok ↦ 𝜎4:λ, ex ↦ 𝜎5:λ ⟧, right🌵 ↦ ∅, λ ⤍ L_fork ⟧
          remembered 𝑛·2·6 ≡ 𝑛·2·4( left🌵 ↦ ⟦ ok ↦ 𝜎4:λ, ex ↦ 𝜎5:λ ⟧ )
          𝑛·2·7 ≔ 𝑛·2·5( right🌵 ↦ 𝜎6:λ:ok )
          𝑛·2·8 ≔ ⟦ site🌵 ↦ 01-:Δ, on🌵 ↦ 𝜎3:λ, left🌵 ↦ ⟦ ok ↦ 𝜎4:λ, ex ↦ 𝜎5:λ ⟧, right🌵 ↦ 𝜎6:λ:ok, λ ⤍ L_fork ⟧
          remembered 𝑛·2·8 ≡ 𝑛·2·6( right🌵 ↦ 𝜎6:λ:ok )
          morphed 𝑛·2·9 ≔ 𝑛·2·8
        𝑛1·2 ≔ 𝑛·2·8  # 𝕄(ξ.left🌵)
        𝕄(ξ.right🌵):
          morphed 𝑛·2·10 ≔ 𝜎7:λ:ok
        𝑛2·2 ≔ 𝑛·2·10  # 𝕄(ξ.right🌵)
        recalled 𝑛·2·8 ⇒ 𝑛·2·6( right🌵 ↦ 𝜎6:λ:ok )
        recalled 𝑛·2·6 ⇒ 𝑛·2·4( left🌵 ↦ ⟦ ok ↦ 𝜎4:λ, ex ↦ 𝜎5:λ ⟧ )
        recalled 𝑛·2·4 ⇒ 𝑛·2·2( on🌵 ↦ 𝜎3:λ )
        recalled 𝑛·0·3 ⇒ 𝑛·0·1( site🌵 ↦ 01-:Δ )
        recalled 𝑛·0·1 ⇒ Φ.f
        𝔼(L_fork):  # 𝔼(𝑛1 of L_fork)
          𝔻(ξ.on🌵):
            𝛿·3·1 ≔ 𝔻(𝜎3:λ)
          𝛿1·3 ≔ 𝛿·3·1  # 𝔻(ξ.on🌵)
          𝕄(ξ.left🌵):
            morphed 𝑛·3·1 ≔ ⟦ ok ↦ 𝜎4:λ, ex ↦ 𝜎5:λ ⟧
          𝑛1·3 ≔ 𝑛·3·1  # 𝕄(ξ.left🌵)
          𝕄(ξ.right🌵):
            morphed 𝑛·3·2 ≔ 𝜎6:λ:ok
          𝑛2·3 ≔ 𝑛·3·2  # 𝕄(ξ.right🌵)
          fabricated 𝑛·3·3 ≔ 𝑛·3·1 and 𝑛·3·2  # ⟦ left🌵 ↦ 𝑛·3·1, right🌵 ↦ 𝑛·3·2, ok ↦ ⟦ λ ⤍ L_fork, site🌵 ↦ 01-:Δ, on🌵 ↦ 𝜎3:λ, left🌵 ↦ ρ.left🌵.ok, right🌵 ↦ ρ.right🌵.ok ⟧, ex ↦ ⟦ λ ⤍ L_fork, site🌵 ↦ 01-:Δ, on🌵 ↦ 𝜎3:λ, left🌵 ↦ ρ.left🌵.ex, right🌵 ↦ ρ.right🌵.ex ⟧ ⟧
          remembered 𝑛·3·3 ≡ 𝑛·2·8
          memoized 𝑛·2·8 ⇛ 𝑛·3·3
          evaluated 𝑛·3·4 ≔ 𝑛·3·3  # 𝑛·2·8
        𝑛3·2 ≔ 𝑛·3·4  # 𝔼(𝑛1 of L_fork)
        fabricated 𝑛·2·11 ≔ 𝑛3·2 and 𝑛·2·10  # ⟦ left🌵 ↦ 𝑛·3·4, right🌵 ↦ 𝑛·2·10, ok ↦ ⟦ λ ⤍ L_fork, site🌵 ↦ 01-:Δ, on🌵 ↦ 𝜎2:λ, left🌵 ↦ ρ.left🌵.ok, right🌵 ↦ ρ.right🌵.ok ⟧, ex ↦ ⟦ λ ⤍ L_fork, site🌵 ↦ 01-:Δ, on🌵 ↦ 𝜎2:λ, left🌵 ↦ ρ.left🌵.ex, right🌵 ↦ ρ.right🌵.ex ⟧ ⟧
        remembered 𝑛·2·11 ≡ 𝑛·1·8
        memoized 𝑛·1·8 ⇛ 𝑛·2·11
        evaluated 𝑛·2·12 ≔ 𝑛·2·11  # 𝑛·1·8
      𝑛3·1 ≔ 𝑛·2·12  # 𝔼(𝑛1 of L_fork)
      fabricated 𝑛·1·11 ≔ 𝑛3·1 and 𝑛·1·10  # ⟦ left🌵 ↦ 𝑛·2·12, right🌵 ↦ 𝑛·1·10, ok ↦ ⟦ λ ⤍ L_fork, site🌵 ↦ 01-:Δ, on🌵 ↦ 𝜎1:λ, left🌵 ↦ ρ.left🌵.ok, right🌵 ↦ ρ.right🌵.ok ⟧, ex ↦ ⟦ λ ⤍ L_fork, site🌵 ↦ 01-:Δ, on🌵 ↦ 𝜎1:λ, left🌵 ↦ ρ.left🌵.ex, right🌵 ↦ ρ.right🌵.ex ⟧ ⟧
      remembered 𝑛·1·11 ≡ 𝑛·0·9
      memoized 𝑛·0·9 ⇛ 𝑛·1·11
      evaluated 𝑛·1·12 ≔ 𝑛·1·11  # 𝑛·0·9
    remembered 𝑛·0·10 ≡ 𝑛·1·12.ok  # ⟦ λ ⤍ L_fork, site🌵 ↦ 01-:Δ, on🌵 ↦ 𝜎1:λ, left🌵 ↦ ρ.left🌵.ok, right🌵 ↦ ρ.right🌵.ok ⟧
    𝔼(L_fork):
      𝔻(ξ.on🌵):
        𝛿·4·1 ≔ 𝔻(𝜎1:λ)
      𝛿1·4 ≔ 𝛿·4·1  # 𝔻(ξ.on🌵)
      remembered 𝑛·4·1 ≡ 𝑛·2·12.ok  # ⟦ λ ⤍ L_fork, site🌵 ↦ 01-:Δ, on🌵 ↦ 𝜎2:λ, left🌵 ↦ ρ.left🌵.ok, right🌵 ↦ ρ.right🌵.ok ⟧
      𝕄(ξ.left🌵):
        morphed 𝑛·4·2 ≔ 𝑛·4·1
      𝑛1·4 ≔ 𝑛·4·1  # 𝕄(ξ.left🌵)
      𝕄(ξ.right🌵):
        morphed 𝑛·4·3 ≔ 𝜎8:λ
      𝑛2·4 ≔ 𝑛·4·3  # 𝕄(ξ.right🌵)
      recalled 𝑛·4·1 ⇒ 𝑛·2·12.ok
      𝔼(L_fork):  # 𝔼(𝑛1 of L_fork)
        𝔻(ξ.on🌵):
          𝛿·5·1 ≔ 𝔻(𝜎2:λ)
        𝛿1·5 ≔ 𝛿·5·1  # 𝔻(ξ.on🌵)
        remembered 𝑛·5·1 ≡ 𝑛·3·4.ok  # ⟦ λ ⤍ L_fork, site🌵 ↦ 01-:Δ, on🌵 ↦ 𝜎3:λ, left🌵 ↦ ρ.left🌵.ok, right🌵 ↦ ρ.right🌵.ok ⟧
        𝕄(ξ.left🌵):
          morphed 𝑛·5·2 ≔ 𝑛·5·1
        𝑛1·5 ≔ 𝑛·5·1  # 𝕄(ξ.left🌵)
        𝕄(ξ.right🌵):
          morphed 𝑛·5·3 ≔ 𝜎7:λ
        𝑛2·5 ≔ 𝑛·5·3  # 𝕄(ξ.right🌵)
        recalled 𝑛·5·1 ⇒ 𝑛·3·4.ok
        𝔼(L_fork):  # 𝔼(𝑛1 of L_fork)
          𝔻(ξ.on🌵):
            𝛿·6·1 ≔ 𝔻(𝜎3:λ)
          𝛿1·6 ≔ 𝛿·6·1  # 𝔻(ξ.on🌵)
          𝕄(ξ.left🌵):
            morphed 𝑛·6·1 ≔ 𝜎4:λ
          𝑛1·6 ≔ 𝑛·6·1  # 𝕄(ξ.left🌵)
          𝕄(ξ.right🌵):
            morphed 𝑛·6·2 ≔ 𝜎6:λ
          𝑛2·6 ≔ 𝑛·6·2  # 𝕄(ξ.right🌵)
          joined 𝜎9 ≔ 𝛿1·6 ? 𝜎4 : 𝜎6
          𝑛·6·3 ≔ 𝜎9:λ
          memoized 𝑛·5·1 ⇛ 𝜎9:λ
          evaluated 𝑛·6·4 ≔ 𝑛·6·3  # 𝑛·5·1
        𝑛3·5 ≔ 𝑛·6·3  # 𝔼(𝑛1 of L_fork)
        joined 𝜎10 ≔ 𝛿1·5 ? 𝜎9 : 𝜎7
        𝑛·5·4 ≔ 𝜎10:λ
        memoized 𝑛·4·1 ⇛ 𝜎10:λ
        evaluated 𝑛·5·5 ≔ 𝑛·5·4  # 𝑛·4·1
      𝑛3·4 ≔ 𝑛·5·4  # 𝔼(𝑛1 of L_fork)
      joined 𝜎11 ≔ 𝛿1·4 ? 𝜎10 : 𝜎8
      𝑛·4·4 ≔ 𝜎11:λ
      memoized 𝑛·0·10 ⇛ 𝜎11:λ
      evaluated 𝑛·4·5 ≔ 𝑛·4·4  # 𝑛·0·10
    opaque 𝜎12:λ ≔ 𝜎11:λ.q
    morphed 𝑛·0·11 ≔ 𝜎12:λ