phino-0.0.172 / test-resources / evaluate-packs / joins-a-bare-symbol-a-cast-brought-into-a-side-holding-a-symbol-off-its-phi-chain.yaml
# SPDX-FileCopyrightText: Copyright (c) 2025 Objectionary.com# SPDX-License-Identifier: MIT---# yamllint disable rule:line-length# The right side ends its Ο chain in a bare symbol, and it holds another one# under 'ke', off that chain. What the right side holds does not matter to a# 'cast' block, which used to cast nothing here (#2187): it casts the bare# symbol on the left into a copy of the right side with π2 in place of π3,# keeping π4 under 'ke' (#2223). The two sides then differ in their Ο alone,# and the join makes one term of them with π5 standing for that Ο.symbolic: | - Ξ»: L_fork dataize: πΏ1: $.c morph: π1: $.a π2: $.b cast: π3: π1 π4: π2 join: on: πΏ1 left: π3 right: π4location: 'Q.y'input: 'β¦ y β¦ β¦ c β¦ β¦ Ξ» β€ π1 β§, a β¦ β¦ Ξ» β€ π2 β§, b β¦ β¦ Ο β¦ β¦ Ξ» β€ π3 β§, ke β¦ β¦ Ξ» β€ π4 β§ β§, Ξ» β€ L_fork β§.Ο β§'result: 'π5:Ξ»'protocol: | π(Ξ¦.y): πΌ(L_fork): π»(ΞΎ.c): πΏΒ·1Β·1 β π»(π1:Ξ») πΏ1Β·1 β πΏΒ·1Β·1 # π»(ΞΎ.c) π(ΞΎ.a): morphed πΒ·1Β·1 β π2:Ξ» π1Β·1 β πΒ·1Β·1 # π(ΞΎ.a) π(ΞΎ.b): morphed πΒ·1Β·2 β β¦ Ο β¦ π3:Ξ», ke β¦ π4:Ξ» β§ π2Β·1 β πΒ·1Β·2 # π(ΞΎ.b) cast π3Β·1 β β¦ Ο β¦ π2:Ξ», ke β¦ π4:Ξ» β§ # π1Β·1 up to π2Β·1 joined π5 β πΏ1Β·1 ? π2 : π3 πΒ·1Β·3 β β¦ Ο β¦ π5:Ξ», ke β¦ π4:Ξ» β§ evaluated πΒ·1Β·4 β πΒ·1Β·3 # β¦ c β¦ π1:Ξ», a β¦ π2:Ξ», b β¦ πΒ·1Β·2, Ξ» β€ L_fork β§ normalized πΒ·0Β·1 β π5:Ξ» # πΒ·1Β·4.Ο morphed πΒ·0Β·2 β πΒ·0Β·1