phino-0.0.172: test-resources/evaluate-packs/keeps-nested-forks-of-one-site-whose-arguments-shrink.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, the way nested calls of one 'and' share the 'if' inside 'bool'. The
# entry names the site of a fork, and all three hold the same site, yet the
# arguments of each copy are held inside the copy above it: the calls shrink
# and end, so under '--acyclic=plausible' none of them repeats another, even
# with '--max-loops=0' (#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
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🌵 ↦ ⟦ λ ⤍ 𝜎4 ⟧, right🌵 ↦ ⟦ λ ⤍ 𝜎5 ⟧ ), right🌵 ↦ ⟦ λ ⤍ 𝜎6 ⟧ ), right🌵 ↦ ⟦ λ ⤍ 𝜎7 ⟧ ).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🌵 ↦ 𝜎4:λ, right🌵 ↦ 𝜎5:λ ), right🌵 ↦ 𝜎6:λ ) )
𝑛·0·7 ≔ ⟦ site🌵 ↦ 01-:Δ, on🌵 ↦ 𝜎1:λ, left🌵 ↦ 𝑛·0·2( on🌵 ↦ 𝜎2:λ, left🌵 ↦ 𝑛·0·2( on🌵 ↦ 𝜎3:λ, left🌵 ↦ 𝜎4:λ, right🌵 ↦ 𝜎5:λ ), right🌵 ↦ 𝜎6:λ ), right🌵 ↦ ∅, λ ⤍ L_fork ⟧
remembered 𝑛·0·7 ≡ 𝑛·0·5( left🌵 ↦ 𝑛·0·2( on🌵 ↦ 𝜎2:λ, left🌵 ↦ 𝑛·0·2( on🌵 ↦ 𝜎3:λ, left🌵 ↦ 𝜎4:λ, right🌵 ↦ 𝜎5:λ ), right🌵 ↦ 𝜎6:λ ) )
𝑛·0·8 ≔ 𝑛·0·6( right🌵 ↦ 𝜎7:λ )
𝑛·0·9 ≔ ⟦ site🌵 ↦ 01-:Δ, on🌵 ↦ 𝜎1:λ, left🌵 ↦ 𝑛·0·2( on🌵 ↦ 𝜎2:λ, left🌵 ↦ 𝑛·0·2( on🌵 ↦ 𝜎3:λ, left🌵 ↦ 𝜎4:λ, right🌵 ↦ 𝜎5:λ ), right🌵 ↦ 𝜎6:λ ), right🌵 ↦ 𝜎7:λ, λ ⤍ L_fork ⟧
remembered 𝑛·0·9 ≡ 𝑛·0·7( right🌵 ↦ 𝜎7:λ )
𝔼(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🌵 ↦ 𝜎4:λ, right🌵 ↦ 𝜎5:λ ) )
𝑛·1·6 ≔ ⟦ site🌵 ↦ 01-:Δ, on🌵 ↦ 𝜎2:λ, left🌵 ↦ 𝑛·1·1( on🌵 ↦ 𝜎3:λ, left🌵 ↦ 𝜎4:λ, right🌵 ↦ 𝜎5:λ ), right🌵 ↦ ∅, λ ⤍ L_fork ⟧
remembered 𝑛·1·6 ≡ 𝑛·1·4( left🌵 ↦ 𝑛·1·1( on🌵 ↦ 𝜎3:λ, left🌵 ↦ 𝜎4:λ, right🌵 ↦ 𝜎5:λ ) )
𝑛·1·7 ≔ 𝑛·1·5( right🌵 ↦ 𝜎6:λ )
𝑛·1·8 ≔ ⟦ site🌵 ↦ 01-:Δ, on🌵 ↦ 𝜎2:λ, left🌵 ↦ 𝑛·1·1( on🌵 ↦ 𝜎3:λ, left🌵 ↦ 𝜎4:λ, right🌵 ↦ 𝜎5:λ ), right🌵 ↦ 𝜎6:λ, λ ⤍ L_fork ⟧
remembered 𝑛·1·8 ≡ 𝑛·1·6( right🌵 ↦ 𝜎6:λ )
morphed 𝑛·1·9 ≔ 𝑛·1·8
𝑛1·1 ≔ 𝑛·1·8 # 𝕄(ξ.left🌵)
𝕄(ξ.right🌵):
morphed 𝑛·1·10 ≔ 𝜎7:λ
𝑛2·1 ≔ 𝑛·1·10 # 𝕄(ξ.right🌵)
recalled 𝑛·1·8 ⇒ 𝑛·1·6( right🌵 ↦ 𝜎6:λ )
recalled 𝑛·1·6 ⇒ 𝑛·1·4( left🌵 ↦ 𝑛·1·1( on🌵 ↦ 𝜎3:λ, left🌵 ↦ 𝜎4:λ, right🌵 ↦ 𝜎5:λ ) )
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🌵 ↦ 𝜎4:λ )
𝑛·2·6 ≔ ⟦ site🌵 ↦ 01-:Δ, on🌵 ↦ 𝜎3:λ, left🌵 ↦ 𝜎4:λ, right🌵 ↦ ∅, λ ⤍ L_fork ⟧
remembered 𝑛·2·6 ≡ 𝑛·2·4( left🌵 ↦ 𝜎4:λ )
𝑛·2·7 ≔ 𝑛·2·5( right🌵 ↦ 𝜎5:λ )
𝑛·2·8 ≔ ⟦ site🌵 ↦ 01-:Δ, on🌵 ↦ 𝜎3:λ, left🌵 ↦ 𝜎4:λ, right🌵 ↦ 𝜎5:λ, λ ⤍ L_fork ⟧
remembered 𝑛·2·8 ≡ 𝑛·2·6( right🌵 ↦ 𝜎5:λ )
morphed 𝑛·2·9 ≔ 𝑛·2·8
𝑛1·2 ≔ 𝑛·2·8 # 𝕄(ξ.left🌵)
𝕄(ξ.right🌵):
morphed 𝑛·2·10 ≔ 𝜎6:λ
𝑛2·2 ≔ 𝑛·2·10 # 𝕄(ξ.right🌵)
recalled 𝑛·2·8 ⇒ 𝑛·2·6( right🌵 ↦ 𝜎5:λ )
recalled 𝑛·2·6 ⇒ 𝑛·2·4( left🌵 ↦ 𝜎4:λ )
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 ≔ 𝜎4:λ
𝑛1·3 ≔ 𝑛·3·1 # 𝕄(ξ.left🌵)
𝕄(ξ.right🌵):
morphed 𝑛·3·2 ≔ 𝜎5:λ
𝑛2·3 ≔ 𝑛·3·2 # 𝕄(ξ.right🌵)
joined 𝜎8 ≔ 𝛿1·3 ? 𝜎4 : 𝜎5
𝑛·3·3 ≔ 𝜎8:λ
memoized 𝑛·2·8 ⇛ 𝜎8:λ
evaluated 𝑛·3·4 ≔ 𝑛·3·3 # 𝑛·2·8
𝑛3·2 ≔ 𝑛·3·3 # 𝔼(𝑛1 of L_fork)
joined 𝜎9 ≔ 𝛿1·2 ? 𝜎8 : 𝜎6
𝑛·2·11 ≔ 𝜎9:λ
memoized 𝑛·1·8 ⇛ 𝜎9:λ
evaluated 𝑛·2·12 ≔ 𝑛·2·11 # 𝑛·1·8
𝑛3·1 ≔ 𝑛·2·11 # 𝔼(𝑛1 of L_fork)
joined 𝜎10 ≔ 𝛿1·1 ? 𝜎9 : 𝜎7
𝑛·1·11 ≔ 𝜎10:λ
memoized 𝑛·0·9 ⇛ 𝜎10:λ
evaluated 𝑛·1·12 ≔ 𝑛·1·11 # 𝑛·0·9
opaque 𝜎11:λ ≔ 𝜎10:λ.q
morphed 𝑛·0·10 ≔ 𝜎11:λ