packages feed

phino-0.0.172 / test-resources / evaluate-packs / joins-a-bare-symbol-a-cast-brought-into-the-shape-of-a-decorator.yaml

# SPDX-FileCopyrightText: Copyright (c) 2025 Objectionary.com# SPDX-License-Identifier: MIT---# yamllint disable rule:line-length# The right side is a bare symbol, a branch that already reached its data,# while the left side wraps its data in Ο† and holds 'k' beside it, a branch# one step short of its data. As they are, the two differ at .k, the right# side has Ξ», and the join diverges, even under 'otherwise' (#2187). A 'cast'# block reads its two metas as one pair and casts the bare symbol into a copy# of the left side with 𝜎3 in place of 𝜎2 at the end of its Ο† chain, so the# two sides differ in their symbols alone and the join makes one term of them.# The cast mints no symbol. The protocol writes the line of '𝑛20', which took# the cast, as 'cast 𝑛20Β·1 ≔ …' with the meta it read and the meta whose# shape it took. The line of '𝑛19' binds its term as it is and writes# nothing (#2192).symbolic: |  - Ξ»: L_fork    dataize:      𝛿1: $.on🌡    morph:      𝑛13: $.left🌡      𝑛14: $.right🌡    cast:      𝑛19: 𝑛13      𝑛20: 𝑛14    join:      on: 𝛿1      left: 𝑛19      right: 𝑛20      otherwise: L_forklocation: 'Q.e1'input: '⟦ e1 ↦ ⟦ Ξ» ‍ L_fork, on🌡 ↦ ⟦ Ξ» ‍ 𝜎1 ⟧, left🌡 ↦ ⟦ k ↦ ⟦⟧, Ο† ↦ ⟦ Ξ» ‍ 𝜎2 ⟧ ⟧, right🌡 ↦ ⟦ Ξ» ‍ 𝜎3 ⟧ ⟧.Ο† ⟧'result: '𝜎4:Ξ»'protocol: |  𝕄(Ξ¦.e1):    𝔼(L_fork):      𝔻(ΞΎ.on🌡):        𝛿·1Β·1 ≔ 𝔻(𝜎1:Ξ»)      𝛿1Β·1 ≔ 𝛿·1Β·1  # 𝔻(ΞΎ.on🌡)      𝕄(ΞΎ.left🌡):        morphed 𝑛·1Β·1 ≔ ⟦ k ↦ ⟦⟧, Ο† ↦ 𝜎2:Ξ» ⟧      𝑛13Β·1 ≔ 𝑛·1Β·1  # 𝕄(ΞΎ.left🌡)      𝕄(ΞΎ.right🌡):        morphed 𝑛·1Β·2 ≔ 𝜎3:Ξ»      𝑛14Β·1 ≔ 𝑛·1Β·2  # 𝕄(ΞΎ.right🌡)      cast 𝑛20Β·1 ≔ ⟦ k ↦ ⟦⟧, Ο† ↦ 𝜎3:Ξ» ⟧  # 𝑛14Β·1 up to 𝑛13Β·1      joined 𝜎4 ≔ 𝛿1Β·1 ? 𝜎2 : 𝜎3      𝑛·1Β·3 ≔ ⟦ k ↦ ⟦⟧, Ο† ↦ 𝜎4:Ξ» ⟧      evaluated 𝑛·1Β·4 ≔ 𝑛·1Β·3  # ⟦ Ξ» ‍ L_fork, on🌡 ↦ 𝜎1:Ξ», left🌡 ↦ 𝑛·1Β·1, right🌡 ↦ 𝜎3:Ξ» ⟧    normalized 𝑛·0Β·1 ≔ 𝜎4:Ξ»  # 𝑛·1Β·4.Ο†    morphed 𝑛·0Β·2 ≔ 𝑛·0Β·1