packages feed

phino-0.0.173 / test-resources / evaluate-packs / fires-the-arguments-of-a-copy-a-defer-line-defers.yaml

# SPDX-FileCopyrightText: Copyright (c) 2025 Objectionary.com# SPDX-License-Identifier: MIT---# yamllint disable rule:line-length# The deferral of #1892 over a copy with two arguments: 'x' reads to the bare# symbol '𝜎1', so the 'defer' line reading the right side defers the copy,# and 'w' is a call of 'L_inc'. Before it writes the 'deferred' line, the# line morphs 'w' in the copy the meta '𝑛2' is bound to, at '𝑛2.w', and# fires what it comes to, so the line names the object 'Ξ¦.num' the argument# stands for, instead of the call as the code spells it (#1916, #1933,# and #1982). The left side is the bare symbol '𝜎3', so the two sides differ# in their symbols alone, and the join makes one term of them.symbolic: |  - Ξ»: L_inc    dataize:      𝛿1: $.x    𝑛: Ξ¦.num( Ο† ↦ ⟦ Ξ» ‍ 𝜎 ⟧ )  - Ξ»: L_fork    dataize:      𝛿1: $.c    morph:      𝑛1: $.a      𝑛2: $.b    defer:      𝑛3: 𝑛1      𝑛4: 𝑛2    join:      on: 𝛿1      left: 𝑛3      right: 𝑛4location: 'Q.y'input: '⟦ box(x, w) ↦ ⟦ Ο† ↦ x.next ⟧, num(Ο†) ↦ ⟦⟧, inc(x) ↦ ⟦ Ξ» ‍ L_inc ⟧, items ↦ ⟦ tail ↦ ⟦ Ξ» ‍ 𝜎1 ⟧ ⟧, y ↦ ⟦ x ↦ ⟦ c ↦ ⟦ Ξ» ‍ 𝜎2 ⟧, a ↦ ⟦ Ξ» ‍ 𝜎3 ⟧, b ↦ Ξ¦.box( x ↦ Ξ¦.items.tail, w ↦ Ξ¦.inc( x ↦ ⟦ Ξ” ‍ 2A- ⟧ ) ), Ξ» ‍ L_fork ⟧, Ξ» ‍ L_inc ⟧.Ο† ⟧'result: '𝜎7:Ξ»'protocol: |  𝕄(Ξ¦.y):    𝔼(L_inc):      𝔻(ΞΎ.x):        𝔼(L_fork):          𝔻(ΞΎ.c):            𝛿·2Β·1 ≔ 𝔻(𝜎2:Ξ»)          𝛿1Β·2 ≔ 𝛿·2Β·1  # 𝔻(ΞΎ.c)          𝕄(ΞΎ.a):            morphed 𝑛·2Β·1 ≔ 𝜎3:Ξ»          𝑛1Β·2 ≔ 𝑛·2Β·1  # 𝕄(ΞΎ.a)          𝕄(ΞΎ.b):            remembered 𝑛·2Β·2 ≑ Ξ¦.box  # ⟦ x ↦ βˆ…, w ↦ βˆ…, Ο† ↦ x.next ⟧            𝑛·2Β·3 ≔ Ξ¦.box( x ↦ Ξ¦.items.tail )            𝑛·2Β·4 ≔ ⟦ w ↦ βˆ…, Ο† ↦ x.next, x ↦ Ξ¦.items.tail ⟧            remembered 𝑛·2Β·4 ≑ 𝑛·2Β·2( x ↦ Ξ¦.items.tail )            𝑛·2Β·5 ≔ 𝑛·2Β·3( w ↦ Ξ¦.inc( x ↦ 2A-:Ξ” ) )            𝑛·2Β·6 ≔ ⟦ Ο† ↦ x.next, x ↦ Ξ¦.items.tail, w ↦ Ξ¦.inc( x ↦ 2A-:Ξ” ) ⟧            remembered 𝑛·2Β·6 ≑ 𝑛·2Β·4( w ↦ Ξ¦.inc( x ↦ 2A-:Ξ” ) )            morphed 𝑛·2Β·7 ≔ 𝑛·2Β·6          𝑛2Β·2 ≔ 𝑛·2Β·7  # 𝕄(ΞΎ.b)          recalled 𝑛·2Β·6 β‡’ 𝑛·2Β·4( w ↦ Ξ¦.inc( x ↦ 2A-:Ξ” ) )          recalled 𝑛·2Β·4 β‡’ 𝑛·2Β·2( x ↦ Ξ¦.items.tail )          recalled 𝑛·2Β·2 β‡’ Ξ¦.box          𝕄(𝑛2.w):            normalized 𝑛·2Β·8 ≔ ⟦ x ↦ βˆ…, Ξ» ‍ L_inc ⟧  # Ξ¦.inc            𝑛·2Β·9 ≔ Ξ¦.inc( x ↦ 2A-:Ξ” )            𝑛·2Β·10 ≔ ⟦ Ξ» ‍ L_inc, x ↦ 2A-:Ξ” ⟧            morphed 𝑛·2Β·11 ≔ 𝑛·2Β·10          𝔼(L_inc):  # 𝔼(𝑛2.w)            𝔻(ΞΎ.x):              𝛿·3Β·1 ≔ 2A-            𝛿1Β·3 ≔ 𝛿·3Β·1  # 𝔻(ΞΎ.x)            𝑛·3Β·1 ≔ Ξ¦.num( Ο† ↦ 𝜎4:Ξ» )  # 𝑛 of L_inc            𝕄(𝑛·3Β·1):              normalized 𝑛·3Β·2 ≔ βˆ…:Ο†  # Ξ¦.num              𝑛·3Β·3 ≔ Ξ¦.num( Ο† ↦ 𝜎4:Ξ» )              𝑛·3Β·4 ≔ 𝜎4:Ξ»:Ο†              morphed 𝑛·3Β·5 ≔ 𝑛·3Β·4            𝑛·3Β·6 ≔ 𝑛·3Β·5  # 𝕄(𝑛·3Β·1)            remembered 𝑛·3Β·6 ≑ 𝑛·2Β·10            evaluated 𝑛·3Β·7 ≔ 𝑛·3Β·6  # 𝑛·2Β·10          deferred 𝜎5 ≔ Ξ¦.box( x ↦ 𝜎1:Ξ», w ↦ 𝑛·3Β·7 )  # 𝕄(𝑛2.Ο†)          joined 𝜎6 ≔ 𝛿1Β·2 ? 𝜎3 : 𝜎5          𝑛·2Β·12 ≔ 𝜎6:Ξ»          evaluated 𝑛·2Β·13 ≔ 𝑛·2Β·12  # ⟦ c ↦ 𝜎2:Ξ», a ↦ 𝜎3:Ξ», b ↦ 𝑛·2Β·5, Ξ» ‍ L_fork ⟧        𝛿·1Β·1 ≔ 𝔻(𝜎6:Ξ»)      𝛿1Β·1 ≔ 𝛿·1Β·1  # 𝔻(ΞΎ.x)      𝑛·1Β·1 ≔ Ξ¦.num( Ο† ↦ 𝜎7:Ξ» )  # 𝑛 of L_inc      𝕄(𝑛·1Β·1):        𝑛·1Β·2 ≔ Ξ¦.num( Ο† ↦ 𝜎7:Ξ» )        𝑛·1Β·3 ≔ 𝜎7:Ξ»:Ο†        morphed 𝑛·1Β·4 ≔ 𝑛·1Β·3      𝑛·1Β·5 ≔ 𝑛·1Β·4  # 𝕄(𝑛·1Β·1)      evaluated 𝑛·1Β·6 ≔ 𝑛·1Β·5  # ⟦ x ↦ ⟦ c ↦ 𝜎2:Ξ», a ↦ 𝜎3:Ξ», b ↦ 𝑛·2Β·5, Ξ» ‍ L_fork ⟧, Ξ» ‍ L_inc ⟧    normalized 𝑛·0Β·1 ≔ 𝜎7:Ξ»  # 𝑛·1Β·6.Ο†    morphed 𝑛·0Β·2 ≔ 𝑛·0Β·1