packages feed

phino-0.0.156: test-resources/evaluate-packs/remints-a-copy-of-an-object-of-the-world-as-a-deferred-symbol.yaml

# SPDX-FileCopyrightText: Copyright (c) 2025 Objectionary.com
# SPDX-License-Identifier: MIT
---
# yamllint disable rule:line-length
# The tail of the pair below is a copy of 'Ξ¦.l/.throw', which raises, so firing
# it answers the copy as it is. A 'remint' step answers such a copy of an
# object of the world with a fresh symbol and writes it as a deferred copy,
# naming the object by the term as written and every argument by the symbol it
# comes to: here '𝜎2', the known symbol of the message '01-' (#1923).
symbolic: |
  - Ξ»: L_shrink
    morph:
      𝑛1: $.x
    rewrite:
      𝑛2:
        of: 𝑛1
        rules:
          - name: small-pair
            pattern: ⟦ !B1, head ↦ 𝑒1, tail ↦ 𝑒2, !B2 ⟧
            result: ⟦ !B1, head ↦ 𝑒3, tail ↦ 𝑒4, !B2 ⟧
            where:
              - meta: 𝑒3
                function: remint
                args: [𝑒1]
              - meta: 𝑒4
                function: remint
                args: [𝑒2]
    terminators: [L_throw]
    𝑛: 𝑛2
location: 'Q.y'
input: '⟦ l/ ↦ ⟦ throw(message) ↦ ⟦ Ξ» ‍ L_throw ⟧ ⟧, y ↦ ⟦ x ↦ ⟦ head ↦ ⟦ Ξ» ‍ 𝜎1 ⟧, tail ↦ Ξ¦.l/.throw( message ↦ ⟦ Ξ” ‍ 01- ⟧ ) ⟧, Ξ» ‍ L_shrink ⟧.tail ⟧'
result: '𝜎3:λ'
protocol: |
  𝕄(Ξ¦.y):
    𝔼(L_shrink):
      𝑛1Β·1 := ⟦ head ↦ 𝜎1:Ξ», tail ↦ Ξ¦.l/.throw( message ↦ 01-:Ξ” ) ⟧  # 𝕄(ΞΎ.x)
      𝕄(Ξ¦.l/.throw( message ↦ 01-:Ξ” )):
        𝑛·1Β·1 := ⟦ message ↦ βˆ…, Ξ» ‍ L_throw ⟧( message ↦ 01-:Ξ” )
      𝔻(𝜎2:Ξ») == 01-
      deferred(𝜎3) := Ξ¦.l/.throw( message ↦ 𝜎2:Ξ» )  # 𝕄(Ξ¦.l/.throw( message ↦ 01-:Ξ” ))
      𝑛2Β·1 := ⟦ head ↦ 𝜎1:Ξ», tail ↦ 𝜎3:Ξ» ⟧  # 𝑛1
      𝑛·1Β·2 := ⟦ head ↦ 𝜎1:Ξ», tail ↦ 𝜎3:Ξ» ⟧  # 𝑛
      𝑛·1Β·3 := ⟦ head ↦ 𝜎1:Ξ», tail ↦ 𝜎3:Ξ» ⟧  # 𝕄(𝑛·1Β·2)