phino-0.0.172: test-resources/evaluate-packs/keeps-a-fork-of-another-site-inside-a-fork.yaml
# SPDX-FileCopyrightText: Copyright (c) 2025 Objectionary.com
# SPDX-License-Identifier: MIT
---
# yamllint disable rule:line-length
# Two copies of the fork 'f', each of another 'if', the second one fired
# inside the first, since the left side of the first one is the second one.
# The facts lead both copies back to 'Φ.f', and the arguments of the second
# one are no part of the first one, yet the entry names the site of a fork,
# and the two copies hold different sites, so under '--acyclic=plausible'
# the second one repeats nothing, 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 ⟧,
inner ↦ Φ.f( site🌵 ↦ ⟦ Δ ⤍ 02- ⟧, on🌵 ↦ ⟦ λ ⤍ 𝜎2 ⟧, left🌵 ↦ ⟦ λ ⤍ 𝜎3 ⟧, right🌵 ↦ ⟦ λ ⤍ 𝜎4 ⟧ ),
app ↦ Φ.f( site🌵 ↦ ⟦ Δ ⤍ 01- ⟧, on🌵 ↦ ⟦ λ ⤍ 𝜎1 ⟧, left🌵 ↦ Φ.inner, right🌵 ↦ ⟦ λ ⤍ 𝜎5 ⟧ ).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🌵 ↦ Φ.inner )
𝑛·0·7 ≔ ⟦ site🌵 ↦ 01-:Δ, on🌵 ↦ 𝜎1:λ, left🌵 ↦ Φ.inner, right🌵 ↦ ∅, λ ⤍ L_fork ⟧
remembered 𝑛·0·7 ≡ 𝑛·0·5( left🌵 ↦ Φ.inner )
𝑛·0·8 ≔ 𝑛·0·6( right🌵 ↦ 𝜎5:λ )
𝑛·0·9 ≔ ⟦ site🌵 ↦ 01-:Δ, on🌵 ↦ 𝜎1:λ, left🌵 ↦ Φ.inner, right🌵 ↦ 𝜎5:λ, λ ⤍ L_fork ⟧
remembered 𝑛·0·9 ≡ 𝑛·0·7( right🌵 ↦ 𝜎5:λ )
𝔼(L_fork):
𝔻(ξ.on🌵):
𝛿·1·1 ≔ 𝔻(𝜎1:λ)
𝛿1·1 ≔ 𝛿·1·1 # 𝔻(ξ.on🌵)
𝕄(ξ.left🌵):
normalized 𝑛·1·1 ≔ Φ.f( site🌵 ↦ 02-:Δ, on🌵 ↦ 𝜎2:λ, left🌵 ↦ 𝜎3:λ, right🌵 ↦ 𝜎4:λ ) # Φ.inner
𝑛·1·2 ≔ Φ.f( site🌵 ↦ 02-:Δ )
𝑛·1·3 ≔ ⟦ site🌵 ↦ 02-:Δ, on🌵 ↦ ∅, left🌵 ↦ ∅, right🌵 ↦ ∅, λ ⤍ L_fork ⟧
remembered 𝑛·1·3 ≡ 𝑛·0·1( site🌵 ↦ 02-:Δ )
𝑛·1·4 ≔ 𝑛·1·2( on🌵 ↦ 𝜎2:λ )
𝑛·1·5 ≔ ⟦ site🌵 ↦ 02-:Δ, on🌵 ↦ 𝜎2:λ, left🌵 ↦ ∅, right🌵 ↦ ∅, λ ⤍ L_fork ⟧
remembered 𝑛·1·5 ≡ 𝑛·1·3( on🌵 ↦ 𝜎2:λ )
𝑛·1·6 ≔ 𝑛·1·4( left🌵 ↦ 𝜎3:λ )
𝑛·1·7 ≔ ⟦ site🌵 ↦ 02-:Δ, on🌵 ↦ 𝜎2:λ, left🌵 ↦ 𝜎3:λ, right🌵 ↦ ∅, λ ⤍ L_fork ⟧
remembered 𝑛·1·7 ≡ 𝑛·1·5( left🌵 ↦ 𝜎3:λ )
𝑛·1·8 ≔ 𝑛·1·6( right🌵 ↦ 𝜎4:λ )
𝑛·1·9 ≔ ⟦ site🌵 ↦ 02-:Δ, on🌵 ↦ 𝜎2:λ, left🌵 ↦ 𝜎3:λ, right🌵 ↦ 𝜎4:λ, λ ⤍ L_fork ⟧
remembered 𝑛·1·9 ≡ 𝑛·1·7( right🌵 ↦ 𝜎4:λ )
morphed 𝑛·1·10 ≔ 𝑛·1·9
𝑛1·1 ≔ 𝑛·1·9 # 𝕄(ξ.left🌵)
𝕄(ξ.right🌵):
morphed 𝑛·1·11 ≔ 𝜎5:λ
𝑛2·1 ≔ 𝑛·1·11 # 𝕄(ξ.right🌵)
recalled 𝑛·1·9 ⇒ 𝑛·1·7( right🌵 ↦ 𝜎4:λ )
recalled 𝑛·1·7 ⇒ 𝑛·1·5( left🌵 ↦ 𝜎3:λ )
recalled 𝑛·1·5 ⇒ 𝑛·1·3( on🌵 ↦ 𝜎2:λ )
recalled 𝑛·1·3 ⇒ 𝑛·0·1( site🌵 ↦ 02-:Δ )
recalled 𝑛·0·1 ⇒ Φ.f
𝔼(L_fork): # 𝔼(𝑛1 of L_fork)
𝔻(ξ.on🌵):
𝛿·2·1 ≔ 𝔻(𝜎2:λ)
𝛿1·2 ≔ 𝛿·2·1 # 𝔻(ξ.on🌵)
𝕄(ξ.left🌵):
morphed 𝑛·2·1 ≔ 𝜎3:λ
𝑛1·2 ≔ 𝑛·2·1 # 𝕄(ξ.left🌵)
𝕄(ξ.right🌵):
morphed 𝑛·2·2 ≔ 𝜎4:λ
𝑛2·2 ≔ 𝑛·2·2 # 𝕄(ξ.right🌵)
joined 𝜎6 ≔ 𝛿1·2 ? 𝜎3 : 𝜎4
𝑛·2·3 ≔ 𝜎6:λ
memoized 𝑛·1·9 ⇛ 𝜎6:λ
evaluated 𝑛·2·4 ≔ 𝑛·2·3 # 𝑛·1·9
𝑛3·1 ≔ 𝑛·2·3 # 𝔼(𝑛1 of L_fork)
joined 𝜎7 ≔ 𝛿1·1 ? 𝜎6 : 𝜎5
𝑛·1·12 ≔ 𝜎7:λ
memoized 𝑛·0·9 ⇛ 𝜎7:λ
evaluated 𝑛·1·13 ≔ 𝑛·1·12 # 𝑛·0·9
opaque 𝜎8:λ ≔ 𝜎7:λ.q
morphed 𝑛·0·10 ≔ 𝜎8:λ