packages feed

phino-0.0.166: test-resources/evaluate-packs/renames-the-answer-of-a-firing-alike-up-to-the-symbols-of-its-positions.yaml

# SPDX-FileCopyrightText: Copyright (c) 2025 Objectionary.com
# SPDX-License-Identifier: MIT
---
# yamllint disable rule:line-length
# The memo of '--acyclic=plausible' names a position by the symbol 𝔻 brought
# it down to. The firing of 'b' brings 'Φ.v' down to '𝜎2', so the formation
# of 'c', '⟦ target ↦ Ξ¦.v, Ξ» ‍ L_dataized ⟧', is the formation of 'a' with
# '𝜎2' in place of '𝜎1'. The memo of formations misses it, yet the firing of
# 'c' fires nothing: it takes the answer of 'a' with every symbol renamed,
# '𝜎1' as '𝜎2', and with a fresh '𝜎5' for the '𝜎3' the firing of 'a' minted,
# and writes it as 'renamed' (#2374).
symbolic: |
  - Ξ»: L_dataized
    dataize:
      𝛿1: $.target
    𝑛: ⟦ Ξ» ‍ 𝜎 ⟧
  - Ξ»: L_peek
    dataize:
      𝛿1: $.target
    𝑛: ⟦ Ξ» ‍ 𝜎 ⟧
  - Ξ»: L_triple
    morph:
      𝑛1: $.a
      𝑛2: $.b
      𝑛3: $.c
    evaluate:
      𝑛4: 𝑛1
      𝑛5: 𝑛2
      𝑛6: 𝑛3
    𝑛: ⟦ Ο† ↦ ⟦ a ↦ 𝑛4, b ↦ 𝑛5, c ↦ 𝑛6 ⟧ ⟧
location: 'Q.p'
acyclic: plausible
input: >
  ⟦ dataized(target) ↦ L_dataized:Ξ»,
    peek(target) ↦ L_peek:Ξ»,
    p ↦ ⟦
      a ↦ Ξ¦.dataized( target ↦ Ξ¦.u ),
      b ↦ Ξ¦.peek( target ↦ Ξ¦.v ),
      c ↦ Ξ¦.dataized( target ↦ Ξ¦.v ),
      Ξ» ‍ L_triple ⟧.Ο†,
    u ↦ ⟦ Ξ» ‍ 𝜎1 ⟧,
    v ↦ ⟦ Ξ» ‍ 𝜎2 ⟧ ⟧
result: '⟦ a ↦ 𝜎3:Ξ», b ↦ 𝜎4:Ξ», c ↦ 𝜎5:Ξ» ⟧'
protocol: |
  𝕄(Ξ¦.p):
    𝔼(L_triple):
      𝕄(ΞΎ.a):
        remembered 𝑛·1Β·1 ≑ Ξ¦.dataized  # ⟦ target ↦ βˆ…, Ξ» ‍ L_dataized ⟧
        𝑛·1Β·2 := Ξ¦.dataized( target ↦ Ξ¦.u )
        𝑛·1Β·3 := ⟦ target ↦ Ξ¦.u, Ξ» ‍ L_dataized ⟧
        remembered 𝑛·1Β·3 ≑ 𝑛·1Β·1( target ↦ Ξ¦.u )
        morphed 𝑛·1Β·4 := 𝑛·1Β·3
      𝑛1Β·1 := 𝑛·1Β·3  # 𝕄(ΞΎ.a)
      𝕄(ΞΎ.b):
        remembered 𝑛·1Β·5 ≑ Ξ¦.peek  # ⟦ target ↦ βˆ…, Ξ» ‍ L_peek ⟧
        𝑛·1Β·6 := Ξ¦.peek( target ↦ Ξ¦.v )
        𝑛·1Β·7 := ⟦ target ↦ Ξ¦.v, Ξ» ‍ L_peek ⟧
        remembered 𝑛·1Β·7 ≑ 𝑛·1Β·5( target ↦ Ξ¦.v )
        morphed 𝑛·1Β·8 := 𝑛·1Β·7
      𝑛2Β·1 := 𝑛·1Β·7  # 𝕄(ΞΎ.b)
      𝕄(ΞΎ.c):
        𝑛·1Β·9 := Ξ¦.dataized( target ↦ Ξ¦.v )
        𝑛·1Β·10 := ⟦ target ↦ Ξ¦.v, Ξ» ‍ L_dataized ⟧
        remembered 𝑛·1Β·10 ≑ 𝑛·1Β·1( target ↦ Ξ¦.v )
        morphed 𝑛·1Β·11 := 𝑛·1Β·10
      𝑛3Β·1 := 𝑛·1Β·10  # 𝕄(ΞΎ.c)
      recalled 𝑛·1Β·3 β‡’ 𝑛·1Β·1( target ↦ Ξ¦.u )
      recalled 𝑛·1Β·1 β‡’ Ξ¦.dataized
      𝔼(L_dataized):  # 𝔼(𝑛1 of L_triple)
        𝔻(ΞΎ.target):
          𝕄(ΞΎ.target):
            normalized 𝑛·2Β·1 := 𝜎1:Ξ»  # Ξ¦.u
            morphed 𝑛·2Β·2 := 𝑛·2Β·1
          𝛿·2Β·1 := 𝔻(𝜎1:Ξ»)
        𝛿1Β·2 := 𝛿·2Β·1  # 𝔻(ΞΎ.target)
        𝑛·2Β·3 := 𝜎3:Ξ»  # 𝑛 of L_dataized
        𝕄(𝑛·2Β·3):
          morphed 𝑛·2Β·4 := 𝜎3:Ξ»
        𝑛·2Β·5 := 𝑛·2Β·4  # 𝕄(𝑛·2Β·3)
        memoized 𝑛·1Β·3 ⇛ 𝜎3:Ξ»
        evaluated 𝑛·2Β·6 := 𝑛·2Β·5  # 𝑛·1Β·3
      𝑛4Β·1 := 𝑛·2Β·5  # 𝔼(𝑛1 of L_triple)
      recalled 𝑛·1Β·7 β‡’ 𝑛·1Β·5( target ↦ Ξ¦.v )
      recalled 𝑛·1Β·5 β‡’ Ξ¦.peek
      𝔼(L_peek):  # 𝔼(𝑛2 of L_triple)
        𝔻(ΞΎ.target):
          𝕄(ΞΎ.target):
            normalized 𝑛·3Β·1 := 𝜎2:Ξ»  # Ξ¦.v
            morphed 𝑛·3Β·2 := 𝑛·3Β·1
          𝛿·3Β·1 := 𝔻(𝜎2:Ξ»)
        𝛿1Β·3 := 𝛿·3Β·1  # 𝔻(ΞΎ.target)
        𝑛·3Β·3 := 𝜎4:Ξ»  # 𝑛 of L_peek
        𝕄(𝑛·3Β·3):
          morphed 𝑛·3Β·4 := 𝜎4:Ξ»
        𝑛·3Β·5 := 𝑛·3Β·4  # 𝕄(𝑛·3Β·3)
        memoized 𝑛·1Β·7 ⇛ 𝜎4:Ξ»
        evaluated 𝑛·3Β·6 := 𝑛·3Β·5  # 𝑛·1Β·7
      𝑛5Β·1 := 𝑛·3Β·5  # 𝔼(𝑛2 of L_triple)
      recalled 𝑛·1Β·10 β‡’ 𝑛·1Β·1( target ↦ Ξ¦.v )
      recalled 𝑛·1Β·1 β‡’ Ξ¦.dataized
      𝔼(L_dataized):  # 𝔼(𝑛3 of L_triple)
        renamed 𝑛·1Β·10 ⇛ 𝜎5:Ξ»  # from 𝑛·1Β·3, 𝜎1 as 𝜎2, 𝜎3 as 𝜎5
        𝑛·4Β·1 := 𝜎5:Ξ»  # 𝑛 of L_dataized
        𝑛·4Β·2 := 𝜎5:Ξ»  # 𝕄(𝑛·4Β·1)
        evaluated 𝑛·4Β·3 := 𝑛·4Β·2  # 𝑛·1Β·10
      𝑛6Β·1 := 𝑛·4Β·2  # 𝔼(𝑛3 of L_triple)
      𝑛·1Β·12 := ⟦ a ↦ 𝜎3:Ξ», b ↦ 𝜎4:Ξ», c ↦ 𝜎5:Ξ» ⟧:Ο†  # 𝑛 of L_triple
      𝕄(𝑛·1Β·12):
        morphed 𝑛·1Β·13 := ⟦ a ↦ 𝜎3:Ξ», b ↦ 𝜎4:Ξ», c ↦ 𝜎5:Ξ» ⟧:Ο†
      𝑛·1Β·14 := 𝑛·1Β·13  # 𝕄(𝑛·1Β·12)
      memoized 𝑛·1Β·15 ⇛ 𝑛·1Β·14  # ⟦ a ↦ 𝑛·1Β·2, b ↦ 𝑛·1Β·6, c ↦ 𝑛·1Β·9, Ξ» ‍ L_triple ⟧
      evaluated 𝑛·1Β·16 := 𝑛·1Β·14  # 𝑛·1Β·15
    normalized 𝑛·0Β·1 := ⟦ a ↦ 𝜎3:Ξ», b ↦ 𝜎4:Ξ», c ↦ 𝜎5:Ξ» ⟧  # 𝑛·1Β·16.Ο†
    morphed 𝑛·0Β·2 := 𝑛·0Β·1