packages feed

phino-0.0.168 / test-resources / evaluate-packs / joins-two-sides-differing-in-a-datum-a-symbolize-found-off-the-phi-chain.yaml

# SPDX-FileCopyrightText: Copyright (c) 2025 Objectionary.com# SPDX-License-Identifier: MIT---# yamllint disable rule:line-length# Both sides hold a bool in φ, the way the 'rewrite' rules bring 'Φ.false'# into the shape of a computed bool when EO lowers 'number.floor'. The datum# of the left one sits in the formation bound to 'if', which is no φ of# anything, so a 'symbolize' walking the φ chain alone left it a datum and the# sides never joined (#2008). The line walks every argument of an application# too, so '𝑛3' holds 𝜎3 where '𝑛1' held 'FF-', the two sides differ in their# symbols alone, and the join makes one term of them, joining 𝜎3 with 𝜎2 into# 𝜎4.symbolic: |  - λ: L_fork    dataize:      𝛿1: $.c    morph:      𝑛1: $.a      𝑛2: $.b    symbolize:      𝑛3: 𝑛1      𝑛4: 𝑛2    join:      on: 𝛿1      left: 𝑛3      right: 𝑛4location: 'Q.y'hide-rho: falseinput: '⟦ bool(if) ↦ ⟦ φ ↦ if ⟧, y ↦ ⟦ c ↦ ⟦ λ ⤍ 𝜎1 ⟧, a ↦ ⟦ φ ↦ Φ.bool( if ↦ ⟦ φ ↦ ⟦ Δ ⤍ FF- ⟧ ⟧ ) ⟧, b ↦ ⟦ φ ↦ Φ.bool( if ↦ ⟦ φ ↦ ⟦ λ ⤍ 𝜎2 ⟧ ⟧ ) ⟧, λ ⤍ L_fork ⟧.φ ⟧'result: '⟦ if ↦ 𝜎4:λ:φ, φ ↦ if ⟧'protocol: |  𝕄(Φ.y):    𝔼(L_fork):      𝔻(ξ.c):        𝛿·1·1 := 𝔻(𝜎1:λ)      𝛿1·1 := 𝛿·1·1  # 𝔻(ξ.c)      𝕄(ξ.a):        morphed 𝑛·1·1 := Φ.bool( if ↦ FF-:Δ:φ ):φ      𝑛1·1 := 𝑛·1·1  # 𝕄(ξ.a)      𝕄(ξ.b):        morphed 𝑛·1·2 := Φ.bool( if ↦ 𝜎2:λ:φ ):φ      𝑛2·1 := 𝑛·1·2  # 𝕄(ξ.b)      symbolized 𝜎3 := FF-      𝑛3·1 := Φ.bool( if ↦ 𝜎3:λ:φ ):φ  # symbolize(𝑛1 of L_fork)      joined 𝜎4 := 𝛿1·1 ? 𝜎3 : 𝜎2      𝑛·1·3 := Φ.bool( if ↦ 𝜎4:λ:φ ):φ      evaluated 𝑛·1·4 := 𝑛·1·3  # ⟦ c ↦ 𝜎1:λ, a ↦ 𝑛·1·1, b ↦ 𝑛·1·2, λ ⤍ L_fork ⟧    normalized 𝑛·0·1 := Φ.bool( if ↦ 𝜎4:λ:φ, ρ ↦ 𝑛·1·4 )  # 𝑛·1·4.φ    remembered 𝑛·0·2 ≡ Φ.bool  # ⟦ if ↦ ∅, φ ↦ if ⟧    𝑛·0·3 := Φ.bool( if ↦ 𝜎4:λ:φ )    𝑛·0·4 := ⟦ if ↦ 𝜎4:λ:φ, φ ↦ if ⟧    remembered 𝑛·0·4 ≡ 𝑛·0·2( if ↦ 𝜎4:λ:φ )    morphed 𝑛·0·5 := 𝑛·0·4