phino-0.0.154: test-resources/evaluate-packs/joins-a-fork-whose-branch-an-evaluate-line-fired.yaml
# SPDX-FileCopyrightText: Copyright (c) 2025 Objectionary.com
# SPDX-License-Identifier: MIT
---
# yamllint disable rule:line-length
# π leaves a formation carrying a Ξ» as it is, so a branch of a fork that
# morphs to a ready call of 'L_eq' has a shape the other branch, a plain
# decorator, does not, and the two cannot be joined. An 'evaluate' line asks
# πΌ of each branch once: the decorator carries no Ξ» and stays as it is, the
# call fires and answers a decorator too, and the two join (#1874).
symbolic: |
- Ξ»: L_eq
π: β¦ Ο β¦ β¦ Ξ» β€ π β§ β§
- Ξ»: L_fork
morph:
π1: $.a
π2: $.b
evaluate:
π3: π1
π4: π2
join:
π5: [π3, π4]
π: π5
location: 'Q.y'
input: 'β¦ y β¦ β¦ a β¦ β¦ Ο β¦ β¦ Ξ» β€ π1 β§ β§, b β¦ β¦ Ξ» β€ L_eq β§, Ξ» β€ L_fork β§.Ο β§'
result: 'π3:Ξ»'
protocol: |
π(Ξ¦.y):
πΌ(L_fork):
π1Β·1 := π1:Ξ»:Ο # π(ΞΎ.a)
π2Β·1 := L_eq:Ξ» # π(ΞΎ.b)
π3Β·1 := π1Β·1 # πΌ(π1)
πΌ(L_eq): # πΌ(π2)
πΒ·2Β·1 := π2:Ξ»:Ο # π
πΒ·2Β·2 := π2:Ξ»:Ο # π(πΒ·2Β·1)
π4Β·1 := πΒ·2Β·2 # πΌ(π2)
π»(π3:Ξ») β { π»(π1:Ξ»), π»(π2:Ξ») }
π5Β·1 := π3:Ξ»:Ο # [π3, π4]
πΒ·1Β·1 := π5Β·1 # π
πΒ·1Β·2 := π5Β·1 # π(πΒ·1Β·1)