# SPDX-FileCopyrightText: Copyright (c) 2025 Objectionary.com# SPDX-License-Identifier: MIT---# yamllint disable rule:line-length# The whole pipeline of #1982: the sides of the join go through 'morph',# 'stay', 'symbolize' and 'defer', one line per step. The right side is the# copy 'step( tup ↦ Φ.items.tail )', and 'Φ.items.tail' reads to the bare# symbol '𝜎1', an object nobody knows. The 'stay' and 'symbolize' lines leave# the copy as it is, and the 'defer' line answers it with a fresh symbol and# writes a 'deferred' line naming the call the copy stands for, so the firing# never gets stuck inside the unknown. The left side is the datum '01-', which# the 'symbolize' line turns into a symbol, so the two sides differ in their# symbols alone, and the join makes one term of them.symbolic: | - λ: L_use dataize: 𝛿1: $.x 𝑛: Φ.num( φ ↦ ⟦ λ ⤍ 𝜎 ⟧ ) - λ: L_fork dataize: 𝛿1: $.c morph: 𝑛1: $.a 𝑛2: $.b stay: 𝑛3: 𝑛1 𝑛4: 𝑛2 symbolize: 𝑛5: 𝑛3 𝑛6: 𝑛4 defer: 𝑛7: 𝑛5 𝑛8: 𝑛6 join: on: 𝛿1 left: 𝑛7 right: 𝑛8location: 'Q.y'input: '⟦ step(tup) ↦ ⟦ φ ↦ tup.next ⟧, items ↦ ⟦ tail ↦ ⟦ λ ⤍ 𝜎1 ⟧ ⟧, num(φ) ↦ ⟦⟧, y ↦ ⟦ x ↦ ⟦ c ↦ ⟦ λ ⤍ 𝜎2 ⟧, a ↦ ⟦ Δ ⤍ 01- ⟧, b ↦ Φ.step( tup ↦ Φ.items.tail ), λ ⤍ L_fork ⟧, λ ⤍ L_use ⟧.φ ⟧'result: '𝜎6:λ'protocol: | 𝕄(Φ.y): 𝔼(L_use): 𝔻(ξ.x): 𝔼(L_fork): 𝔻(ξ.c): 𝛿·2·1 ≔ 𝔻(𝜎2:λ) 𝛿1·2 ≔ 𝛿·2·1 # 𝔻(ξ.c) 𝕄(ξ.a): morphed 𝑛·2·1 ≔ 01-:Δ 𝑛1·2 ≔ 01-:Δ # 𝕄(ξ.a) 𝕄(ξ.b): remembered 𝑛·2·2 ≡ Φ.step # ⟦ tup ↦ ∅, φ ↦ tup.next ⟧ 𝑛·2·3 ≔ Φ.step( tup ↦ Φ.items.tail ) 𝑛·2·4 ≔ ⟦ φ ↦ tup.next, tup ↦ Φ.items.tail ⟧ remembered 𝑛·2·4 ≡ 𝑛·2·2( tup ↦ Φ.items.tail ) morphed 𝑛·2·5 ≔ 𝑛·2·4 𝑛2·2 ≔ 𝑛·2·5 # 𝕄(ξ.b) symbolized 𝜎3 ≔ 01- 𝑛5·2 ≔ 𝜎3:λ # symbolize(⟦ Δ ⤍ 01- ⟧) recalled 𝑛·2·4 ⇒ 𝑛·2·2( tup ↦ Φ.items.tail ) recalled 𝑛·2·2 ⇒ Φ.step deferred 𝜎4 ≔ Φ.step( tup ↦ 𝜎1:λ ) # 𝕄(𝑛·2·5.φ) joined 𝜎5 ≔ 𝛿1·2 ? 𝜎3 : 𝜎4 𝑛·2·6 ≔ 𝜎5:λ evaluated 𝑛·2·7 ≔ 𝑛·2·6 # ⟦ c ↦ 𝜎2:λ, a ↦ 01-:Δ, b ↦ 𝑛·2·3, λ ⤍ L_fork ⟧ 𝛿·1·1 ≔ 𝔻(𝜎5:λ) 𝛿1·1 ≔ 𝛿·1·1 # 𝔻(ξ.x) 𝑛·1·1 ≔ Φ.num( φ ↦ 𝜎6:λ ) # 𝑛 of L_use 𝕄(𝑛·1·1): normalized 𝑛·1·2 ≔ ∅:φ # Φ.num 𝑛·1·3 ≔ Φ.num( φ ↦ 𝜎6:λ ) 𝑛·1·4 ≔ 𝜎6:λ:φ morphed 𝑛·1·5 ≔ 𝑛·1·4 𝑛·1·6 ≔ 𝑛·1·5 # 𝕄(𝑛·1·1) evaluated 𝑛·1·7 ≔ 𝑛·1·6 # ⟦ x ↦ ⟦ c ↦ 𝜎2:λ, a ↦ 01-:Δ, b ↦ 𝑛·2·3, λ ⤍ L_fork ⟧, λ ⤍ L_use ⟧ normalized 𝑛·0·1 ≔ 𝜎6:λ # 𝑛·1·7.φ morphed 𝑛·0·2 ≔ 𝑛·0·1