packages feed

phino-0.0.169: test-resources/evaluate-packs/answers-a-symbol-nobody-has-worked-out.yaml

# SPDX-FileCopyrightText: Copyright (c) 2025 Objectionary.com
# SPDX-License-Identifier: MIT
---
# yamllint disable rule:line-length
# One firing, and nothing is computed: the dispatch of Ο† off the call fires
# it, the operands come down to the numbers they are, and the entry answers
# with a number standing for a sum nobody has worked out, whose Ο† is the
# symbol 𝜎1.
symbolic: |
  - Ξ»: L_number_plus
    dataize:
      𝛿1: $.ρ
      𝛿2: $.x
    𝑛: Ξ¦.number( Ο† ↦ ⟦ Ξ» ‍ 𝜎 ⟧ )
location: 'Q.@'
input: >
  ⟦ bytes(Ο†) ↦ ⟦⟧,
    number(Ο†) ↦ ⟦ plus(ρ, x) ↦ ⟦ Ξ» ‍ L_number_plus ⟧ ⟧,
    Ο† ↦ 5.plus( x ↦ 6 ).Ο† ⟧
result: '𝜎1:λ'
protocol: |
  𝕄(Ξ¦.Ο†):
    normalized 𝑛·0Β·1 ≔ ⟦ Ο† ↦ βˆ…, plus(x) ↦ L_number_plus:Ξ» ⟧  # Ξ¦.number
    𝑛·0Β·2 ≔ 5.0
    𝑛·0Β·3 ≔ ⟦ Ο† ↦ Ξ¦.bytes( Ο† ↦ 40-14-00-00-00-00-00-00:Ξ” ), plus(x) ↦ L_number_plus:Ξ» ⟧
    normalized 𝑛·0Β·4 ≔ ⟦ x ↦ βˆ…, Ξ» ‍ L_number_plus ⟧  # 𝑛·0Β·3.plus
    𝑛·0Β·5 ≔ 𝑛·0Β·2.plus( x ↦ 6.0 )
    𝑛·0Β·6 ≔ ⟦ x ↦ 6.0, Ξ» ‍ L_number_plus ⟧
    𝔼(L_number_plus):
      𝔻(ΞΎ.ρ):
        𝕄(ΞΎ.ρ):
          𝑛·1Β·1 ≔ 5.0
          𝑛·1Β·2 ≔ ⟦ Ο† ↦ Ξ¦.bytes( Ο† ↦ 40-14-00-00-00-00-00-00:Ξ” ), plus(x) ↦ L_number_plus:Ξ» ⟧
          morphed 𝑛·1Β·3 ≔ 𝑛·1Β·2
        boxed 𝑛·1Β·4 ≔ 𝑛·1Β·3.Ο†
        normalized 𝑛·1Β·5 ≔ Ξ¦.bytes( Ο† ↦ 40-14-00-00-00-00-00-00:Ξ” )  # 𝑛·1Β·4
        𝕄(𝑛·1Β·4):
          normalized 𝑛·1Β·6 ≔ βˆ…:Ο†  # Ξ¦.bytes
          𝑛·1Β·7 ≔ Ξ¦.bytes( Ο† ↦ 40-14-00-00-00-00-00-00:Ξ” )
          𝑛·1Β·8 ≔ 40-14-00-00-00-00-00-00:Ξ”:Ο†
          morphed 𝑛·1Β·9 ≔ 𝑛·1Β·8
        boxed 𝑛·1Β·10 ≔ 𝑛·1Β·9.Ο†
        normalized 𝑛·1Β·11 ≔ 40-14-00-00-00-00-00-00:Ξ”  # 𝑛·1Β·10
        𝛿·1Β·1 ≔ 40-14-00-00-00-00-00-00  # 5.0
      𝛿1Β·1 ≔ 𝛿·1Β·1  # 𝔻(ΞΎ.ρ)
      𝔻(ΞΎ.x):
        𝕄(ΞΎ.x):
          𝑛·1Β·12 ≔ 6.0
          𝑛·1Β·13 ≔ ⟦ Ο† ↦ Ξ¦.bytes( Ο† ↦ 40-18-00-00-00-00-00-00:Ξ” ), plus(x) ↦ L_number_plus:Ξ» ⟧
          morphed 𝑛·1Β·14 ≔ 𝑛·1Β·13
        boxed 𝑛·1Β·15 ≔ 𝑛·1Β·14.Ο†
        normalized 𝑛·1Β·16 ≔ Ξ¦.bytes( Ο† ↦ 40-18-00-00-00-00-00-00:Ξ” )  # 𝑛·1Β·15
        𝕄(𝑛·1Β·15):
          𝑛·1Β·17 ≔ Ξ¦.bytes( Ο† ↦ 40-18-00-00-00-00-00-00:Ξ” )
          𝑛·1Β·18 ≔ 40-18-00-00-00-00-00-00:Ξ”:Ο†
          morphed 𝑛·1Β·19 ≔ 𝑛·1Β·18
        boxed 𝑛·1Β·20 ≔ 𝑛·1Β·19.Ο†
        normalized 𝑛·1Β·21 ≔ 40-18-00-00-00-00-00-00:Ξ”  # 𝑛·1Β·20
        𝛿·1Β·2 ≔ 40-18-00-00-00-00-00-00  # 6.0
      𝛿2Β·1 ≔ 𝛿·1Β·2  # 𝔻(ΞΎ.x)
      𝑛·1Β·22 ≔ Ξ¦.number( Ο† ↦ 𝜎1:Ξ» )  # 𝑛 of L_number_plus
      𝕄(𝑛·1Β·22):
        𝑛·1Β·23 ≔ Ξ¦.number( Ο† ↦ 𝜎1:Ξ» )
        𝑛·1Β·24 ≔ ⟦ Ο† ↦ 𝜎1:Ξ», plus(x) ↦ L_number_plus:Ξ» ⟧
        morphed 𝑛·1Β·25 ≔ 𝑛·1Β·24
      𝑛·1Β·26 ≔ 𝑛·1Β·25  # 𝕄(𝑛·1Β·22)
      evaluated 𝑛·1Β·27 ≔ 𝑛·1Β·26  # 𝑛·0Β·6
    normalized 𝑛·0Β·7 ≔ 𝜎1:Ξ»  # 𝑛·1Β·27.Ο†
    morphed 𝑛·0Β·8 ≔ 𝑛·0Β·7