phino-0.0.169: 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