packages feed

phino-0.0.154: test-resources/evaluate-packs/tells-two-symbols-of-one-datum-apart-between-firings.yaml

# SPDX-FileCopyrightText: Copyright (c) 2025 Objectionary.com
# SPDX-License-Identifier: MIT
---
# yamllint disable rule:line-length
# The memo of '--acyclic=plausible' keeps an answer by the operands a firing
# brought down, and a symbol is an operand of its own: every symbol dataizes
# to the one manufactured datum, so two firings over two symbols come down to
# the same bytes, yet they stand for two values nobody worked out. A memo
# keyed on the bytes would answer the second firing with the symbol the first
# one minted and make the two values one; this one keys on the symbol, so each
# firing mints a symbol of its own. The two firings are the two 'morph'
# operands of 'L_pair', each fired by the dispatch of Ο† off its call.
symbolic: |
  - Ξ»: L_dataized
    dataize:
      𝛿1: $.target
    𝑛: Ξ¦.bytes( Ο† ↦ ⟦ Ξ» ‍ 𝜎 ⟧ )
  - Ξ»: L_pair
    morph:
      𝑛1: $.x
      𝑛2: $.y
    𝑛: ⟦ Ο† ↦ ⟦ x ↦ 𝑛1, y ↦ 𝑛2 ⟧ ⟧
location: 'Q.@'
acyclic: plausible
input: >
  ⟦ bytes(Ο†) ↦ ⟦⟧,
    dataized(target) ↦ L_dataized:Ξ»,
    pair(x, y) ↦ L_pair:Ξ»,
    @ ↦ Ξ¦.pair(
      Ξ¦.dataized( Ξ¦.bytes( Ο† ↦ 𝜎1:Ξ» ) ).Ο†,
      Ξ¦.dataized( Ξ¦.bytes( Ο† ↦ 𝜎2:Ξ» ) ).Ο† ).Ο† ⟧
result: '⟦ x ↦ 𝜎3:Ξ», y ↦ 𝜎4:Ξ» ⟧'
protocol: |
  𝕄(Ξ¦.Ο†):
    𝑛·0Β·1 := Ξ¦.pair( x ↦ Ξ¦.dataized( Ξ¦.bytes( Ο† ↦ 𝜎1:Ξ» ) ).Ο† )
    𝑛·0Β·2 := 𝑛·0Β·1( y ↦ Ξ¦.dataized( Ξ¦.bytes( Ο† ↦ 𝜎2:Ξ» ) ).Ο† )
    𝔼(L_pair):
      𝕄(Ξ¦.a🌡0):
        𝑛·1Β·1 := Ξ¦.dataized( target ↦ Ξ¦.bytes( Ο† ↦ 𝜎1:Ξ» ) )
        𝔼(L_dataized):
          𝔻(Ξ¦.a🌡1):
            𝕄(Ξ¦.a🌡1):
              𝑛·2Β·1 := Ξ¦.bytes( Ο† ↦ 𝜎1:Ξ» )
          𝛿1Β·2 := 𝔻(𝜎1:Ξ»)  # 𝔻(ΞΎ.target)
          𝑛·2Β·2 := Ξ¦.bytes( Ο† ↦ 𝜎3:Ξ» )  # 𝑛
          𝕄(𝑛·2Β·2):
            𝑛·2Β·3 := Ξ¦.bytes( Ο† ↦ 𝜎3:Ξ» )
          𝑛·2Β·4 := 𝑛·2Β·3  # 𝕄(𝑛·2Β·2)
      𝑛1Β·1 := 𝜎3:Ξ»  # 𝕄(ΞΎ.x)
      𝕄(Ξ¦.a🌡2):
        𝑛·1Β·2 := Ξ¦.dataized( target ↦ Ξ¦.bytes( Ο† ↦ 𝜎2:Ξ» ) )
        𝔼(L_dataized):
          𝔻(Ξ¦.a🌡3):
            𝕄(Ξ¦.a🌡3):
              𝑛·3Β·1 := Ξ¦.bytes( Ο† ↦ 𝜎2:Ξ» )
          𝛿1Β·3 := 𝔻(𝜎2:Ξ»)  # 𝔻(ΞΎ.target)
          𝑛·3Β·2 := Ξ¦.bytes( Ο† ↦ 𝜎4:Ξ» )  # 𝑛
          𝕄(𝑛·3Β·2):
            𝑛·3Β·3 := Ξ¦.bytes( Ο† ↦ 𝜎4:Ξ» )
          𝑛·3Β·4 := 𝑛·3Β·3  # 𝕄(𝑛·3Β·2)
      𝑛2Β·1 := 𝜎4:Ξ»  # 𝕄(ΞΎ.y)
      𝑛·1Β·3 := ⟦ x ↦ 𝜎3:Ξ», y ↦ 𝜎4:Ξ» ⟧:Ο†  # 𝑛
      𝑛·1Β·4 := ⟦ x ↦ 𝜎3:Ξ», y ↦ 𝜎4:Ξ» ⟧:Ο†  # 𝕄(𝑛·1Β·3)