phino-0.0.173 / test-resources / evaluate-packs / hands-a-side-of-a-fabricated-formation-only-the-voids-its-attribute-leaves.yaml
# SPDX-FileCopyrightText: Copyright (c) 2025 Objectionary.com# SPDX-License-Identifier: MIT---# yamllint disable rule:line-length# The two sides of 'L_fork' differ in shape, so the firing fabricates a# formation (#2024). The left side binds 'ke' to a formation leaving 'x' void# and the right one to a formation leaving 'x' and 'w' void, so the copy of# 'L_join' under 'ke' leaves both void and applies each side to the voids it# leaves alone (#2031), since 'miss' turns an application to an attribute a# formation lacks into ⊥. The program hands 'x' over, so the right side gets# 'w' bound to ⊥, the two sides differ in shape and are fabricated again, and# 'k', an alias of 'x' on both sides, gets a copy of 'L_join' of its own# (#2368), which asks both sides for 'k' and finds 'x' on both of them.symbolic: | - λ: L_fork dataize: 𝛿1: $.c join: on: 𝛿1 left: $.a right: $.b otherwise: L_join - λ: L_join join: on: $.on🌵 left: $.left🌵 right: $.right🌵 otherwise: L_joinlocation: 'Q.y'input: '⟦ y ↦ ⟦ c ↦ ⟦ λ ⤍ 𝜎1 ⟧, a ↦ ⟦ φ ↦ Φ.hx, ke ↦ ⟦ x ↦ ∅, k ↦ ξ.x ⟧ ⟧, b ↦ ⟦ ke ↦ ⟦ x ↦ ∅, w ↦ ∅, k ↦ ξ.x ⟧ ⟧, λ ⤍ L_fork ⟧.ke( x ↦ ⟦ φ ↦ ⟦ λ ⤍ 𝜎2 ⟧ ⟧ ).k.φ ⟧'result: '𝜎2:λ'protocol: | 𝕄(Φ.y): 𝔼(L_fork): 𝔻(ξ.c): 𝛿·1·1 ≔ 𝔻(𝜎1:λ) 𝛿1·1 ≔ 𝛿·1·1 # 𝔻(ξ.c) 𝕄(ξ.a): morphed 𝑛·1·1 ≔ ⟦ φ ↦ Φ.hx, ke(x) ↦ x:k ⟧ 𝕄(ξ.b): morphed 𝑛·1·2 ≔ ⟦ ke(x, w) ↦ x:k ⟧ fabricated 𝑛·1·3 ≔ 𝑛·1·1 and 𝑛·1·2 # ⟦ left🌵 ↦ 𝑛·1·1, right🌵 ↦ 𝑛·1·2, φ ↦ ⟦ λ ⤍ L_join, on🌵 ↦ 𝜎1:λ, left🌵 ↦ ρ.left🌵.φ, right🌵 ↦ ρ.right🌵.φ ⟧, ke(x, w) ↦ ⟦ λ ⤍ L_join, on🌵 ↦ 𝜎1:λ, left🌵 ↦ ρ.left🌵.ke( x ↦ x ), right🌵 ↦ ρ.right🌵.ke( x ↦ x, w ↦ w ) ⟧ ⟧ evaluated 𝑛·1·4 ≔ 𝑛·1·3 # ⟦ c ↦ 𝜎1:λ, a ↦ 𝑛·1·1, b ↦ 𝑛·1·2, λ ⤍ L_fork ⟧ normalized 𝑛·0·1 ≔ ⟦ λ ⤍ L_join, x ↦ ∅, w ↦ ∅, on🌵 ↦ 𝜎1:λ, left🌵 ↦ ρ.left🌵.ke( x ↦ x ), right🌵 ↦ ρ.right🌵.ke( x ↦ x, w ↦ w ) ⟧ # 𝑛·1·4.ke 𝑛·0·2 ≔ ⟦ λ ⤍ L_join, x ↦ ∅, w ↦ ∅, on🌵 ↦ 𝜎1:λ, left🌵 ↦ ρ.left🌵.ke( x ↦ x ), right🌵 ↦ ρ.right🌵.ke( x ↦ x, w ↦ w ) ⟧( x ↦ 𝜎2:λ:φ ) 𝑛·0·3 ≔ ⟦ λ ⤍ L_join, w ↦ ∅, on🌵 ↦ 𝜎1:λ, left🌵 ↦ ρ.left🌵.ke( x ↦ x ), right🌵 ↦ ρ.right🌵.ke( x ↦ x, w ↦ w ), x ↦ 𝜎2:λ:φ ⟧ 𝔼(L_join): 𝑛·2·1 ≔ ⟦ x ↦ ∅, k ↦ x ⟧( x ↦ 𝜎2:λ:φ ) # 𝕄(ξ.left🌵) 𝑛·2·2 ≔ ⟦ k ↦ x, x ↦ 𝜎2:λ:φ ⟧ 𝕄(ξ.left🌵): morphed 𝑛·2·3 ≔ 𝑛·2·2 𝑛·2·4 ≔ ⟦ x ↦ ∅, w ↦ ∅, k ↦ x ⟧( x ↦ 𝜎2:λ:φ ) # 𝕄(ξ.right🌵) 𝑛·2·5 ≔ ⟦ w ↦ ∅, k ↦ x, x ↦ 𝜎2:λ:φ ⟧ 𝑛·2·6 ≔ 𝑛·2·5( w ↦ ⊥ ) # 𝕄(ξ.right🌵) 𝑛·2·7 ≔ ⟦ k ↦ x, x ↦ 𝜎2:λ:φ, w ↦ ⊥ ⟧ 𝕄(ξ.right🌵): morphed 𝑛·2·8 ≔ 𝑛·2·7 fabricated 𝑛·2·9 ≔ 𝑛·2·3 and 𝑛·2·8 # ⟦ left🌵 ↦ 𝑛·2·3, right🌵 ↦ 𝑛·2·8, k ↦ ⟦ λ ⤍ L_join, on🌵 ↦ 𝜎1:λ, left🌵 ↦ ρ.left🌵.k, right🌵 ↦ ρ.right🌵.k ⟧, x ↦ ⟦ λ ⤍ L_join, on🌵 ↦ 𝜎1:λ, left🌵 ↦ ρ.left🌵.x, right🌵 ↦ ρ.right🌵.x ⟧, w ↦ ⟦ λ ⤍ L_join, on🌵 ↦ 𝜎1:λ, left🌵 ↦ ρ.left🌵.w, right🌵 ↦ ρ.right🌵.w ⟧ ⟧ evaluated 𝑛·2·10 ≔ 𝑛·2·9 # 𝑛·0·3 normalized 𝑛·0·4 ≔ ⟦ λ ⤍ L_join, on🌵 ↦ 𝜎1:λ, left🌵 ↦ ρ.left🌵.k, right🌵 ↦ ρ.right🌵.k ⟧ # 𝑛·2·10.k 𝔼(L_join): 𝕄(ξ.left🌵): morphed 𝑛·3·1 ≔ 𝜎2:λ:φ 𝕄(ξ.right🌵): morphed 𝑛·3·2 ≔ 𝑛·3·1 𝑛·3·3 ≔ 𝑛·3·1 evaluated 𝑛·3·4 ≔ 𝑛·3·3 # ⟦ λ ⤍ L_join, on🌵 ↦ 𝜎1:λ, left🌵 ↦ ρ.left🌵.k, right🌵 ↦ ρ.right🌵.k ⟧ normalized 𝑛·0·5 ≔ 𝜎2:λ # 𝑛·3·4.φ morphed 𝑛·0·6 ≔ 𝑛·0·5