packages feed

phino-0.0.171 / test-resources / evaluate-packs / morphs-a-program-that-already-carries-a-symbol.yaml

# SPDX-FileCopyrightText: Copyright (c) 2025 Objectionary.com# SPDX-License-Identifier: MIT---# yamllint disable rule:line-length# The program handed in is the answer an earlier run gave: its receiver is no# number but the symbol 𝜎1 that run minted. The firing brings it down all the# same, since a symbol dataizes to a fixed 42, and the protocol names the# unknown that 42 stood for instead of writing the bytes twice.symbolic: |  - Ξ»: L_number_plus    dataize:      𝛿1: $.ρ      𝛿2: $.x    𝑛: Ξ¦.number( Ο† ↦ ⟦ Ξ» ‍ 𝜎 ⟧ )location: 'Q.@'input: >  ⟦ bytes(Ο†) ↦ ⟦⟧,    number(Ο†) ↦ ⟦ plus(ρ, x) ↦ ⟦ Ξ» ‍ L_number_plus ⟧ ⟧,    Ο† ↦ Ξ¦.number( Ο† ↦ ⟦ Ξ» ‍ 𝜎1 ⟧ ).plus( x ↦ 7 ).Ο† ⟧result: '𝜎2:Ξ»'protocol: |  𝕄(Ξ¦.Ο†):    normalized 𝑛·0Β·1 ≔ ⟦ Ο† ↦ βˆ…, plus(x) ↦ L_number_plus:Ξ» ⟧  # Ξ¦.number    𝑛·0Β·2 ≔ Ξ¦.number( Ο† ↦ 𝜎1:Ξ» )    𝑛·0Β·3 ≔ ⟦ Ο† ↦ 𝜎1:Ξ», plus(x) ↦ L_number_plus:Ξ» ⟧    normalized 𝑛·0Β·4 ≔ ⟦ x ↦ βˆ…, Ξ» ‍ L_number_plus ⟧  # 𝑛·0Β·3.plus    𝑛·0Β·5 ≔ 𝑛·0Β·2.plus( x ↦ 7.0 )    𝑛·0Β·6 ≔ ⟦ x ↦ 7.0, Ξ» ‍ L_number_plus ⟧    𝔼(L_number_plus):      𝔻(ΞΎ.ρ):        𝕄(ΞΎ.ρ):          𝑛·1Β·1 ≔ Ξ¦.number( Ο† ↦ 𝜎1:Ξ» )          𝑛·1Β·2 ≔ ⟦ Ο† ↦ 𝜎1:Ξ», plus(x) ↦ L_number_plus:Ξ» ⟧          morphed 𝑛·1Β·3 ≔ 𝑛·1Β·2        boxed 𝑛·1Β·4 ≔ 𝑛·1Β·3.Ο†        normalized 𝑛·1Β·5 ≔ 𝜎1:Ξ»  # 𝑛·1Β·4        𝛿·1Β·1 ≔ 𝔻(𝜎1:Ξ»)      𝛿1Β·1 ≔ 𝛿·1Β·1  # 𝔻(ΞΎ.ρ)      𝔻(ΞΎ.x):        𝕄(ΞΎ.x):          𝑛·1Β·6 ≔ 7.0          𝑛·1Β·7 ≔ ⟦ Ο† ↦ Ξ¦.bytes( Ο† ↦ 40-1C-00-00-00-00-00-00:Ξ” ), plus(x) ↦ L_number_plus:Ξ» ⟧          morphed 𝑛·1Β·8 ≔ 𝑛·1Β·7        boxed 𝑛·1Β·9 ≔ 𝑛·1Β·8.Ο†        normalized 𝑛·1Β·10 ≔ Ξ¦.bytes( Ο† ↦ 40-1C-00-00-00-00-00-00:Ξ” )  # 𝑛·1Β·9        𝕄(𝑛·1Β·9):          normalized 𝑛·1Β·11 ≔ βˆ…:Ο†  # Ξ¦.bytes          𝑛·1Β·12 ≔ Ξ¦.bytes( Ο† ↦ 40-1C-00-00-00-00-00-00:Ξ” )          𝑛·1Β·13 ≔ 40-1C-00-00-00-00-00-00:Ξ”:Ο†          morphed 𝑛·1Β·14 ≔ 𝑛·1Β·13        boxed 𝑛·1Β·15 ≔ 𝑛·1Β·14.Ο†        normalized 𝑛·1Β·16 ≔ 40-1C-00-00-00-00-00-00:Ξ”  # 𝑛·1Β·15        𝛿·1Β·2 ≔ 40-1C-00-00-00-00-00-00  # 7.0      𝛿2Β·1 ≔ 𝛿·1Β·2  # 𝔻(ΞΎ.x)      𝑛·1Β·17 ≔ Ξ¦.number( Ο† ↦ 𝜎2:Ξ» )  # 𝑛 of L_number_plus      𝕄(𝑛·1Β·17):        𝑛·1Β·18 ≔ Ξ¦.number( Ο† ↦ 𝜎2:Ξ» )        𝑛·1Β·19 ≔ ⟦ Ο† ↦ 𝜎2:Ξ», plus(x) ↦ L_number_plus:Ξ» ⟧        morphed 𝑛·1Β·20 ≔ 𝑛·1Β·19      𝑛·1Β·21 ≔ 𝑛·1Β·20  # 𝕄(𝑛·1Β·17)      evaluated 𝑛·1Β·22 ≔ 𝑛·1Β·21  # 𝑛·0Β·6    normalized 𝑛·0Β·7 ≔ 𝜎2:Ξ»  # 𝑛·1Β·22.Ο†    morphed 𝑛·0Β·8 ≔ 𝑛·0Β·7