packages feed

phino-0.0.153 / test-resources / evaluate-packs / joins-the-two-branches-of-a-fork.yaml

# SPDX-FileCopyrightText: Copyright (c) 2025 Objectionary.com# SPDX-License-Identifier: MIT---# yamllint disable rule:line-length# A fork answers neither of its branches: nobody has picked between the two, so# handing one of them through would say that the branch point is not there at# all. What it answers with is the join of the two β€” the shape both of them# have, with a fresh symbol wherever they carry two different unknowns β€” and# what that fresh symbol stands for stands on a line of its own, since a 𝜎 is# the name of a Ξ» function and nothing is assigned to it. The branches differ# under Ο†, that being where the value of a branch is reached and so the only# place the join looks at all (#1293).symbolic: |  - Ξ»: L_fork    morph:      𝑛1: $.a      𝑛2: $.b    join:      𝑛3: [𝑛1, 𝑛2]    𝑛: 𝑛3location: 'Q.y'input: '⟦ y ↦ ⟦ a ↦ ⟦ Ο† ↦ ⟦ Ξ» ‍ 𝜎1 ⟧ ⟧, b ↦ ⟦ Ο† ↦ ⟦ Ξ» ‍ 𝜎2 ⟧ ⟧, Ξ» ‍ L_fork ⟧.Ο† ⟧'result: '𝜎3:Ξ»'protocol: |  𝕄(Ξ¦.y):    𝔼(L_fork):      𝑛1Β·1 := 𝜎1:Ξ»:Ο†  # 𝕄(ΞΎ.a)      𝑛2Β·1 := 𝜎2:Ξ»:Ο†  # 𝕄(ΞΎ.b)      𝔻(𝜎3:Ξ») ∈ { 𝔻(𝜎1:Ξ»), 𝔻(𝜎2:Ξ») }      𝑛3Β·1 := 𝜎3:Ξ»:Ο†  # [𝑛1, 𝑛2]      𝑛·1Β·1 := 𝑛3Β·1  # 𝑛      𝑛·1Β·2 := 𝑛3Β·1  # 𝕄(𝑛·1Β·1)