packages feed

phino-0.0.172 / test-resources / evaluate-packs / takes-the-answer-of-a-firing-with-the-same-operands.yaml

# SPDX-FileCopyrightText: Copyright (c) 2025 Objectionary.com# SPDX-License-Identifier: MIT---# yamllint disable rule:line-length# The memo of '--acyclic=plausible' keeps what a firing answered by the Ξ»# function and the operands it brought down, beside the formation it fired.# The 'evaluate' lines of 'L_pair' fire 'a' and then 'b', two formations,# since one reads 'x' and the other reads 'y', so the memo of formations# misses the second. Yet both bring the same datum down, and an entry# answers from its operands alone. Before #1661 the firing of 'b' minted# '𝜎2' for the very value '𝜎1' already named. Now it brings its operand# down, finds the firing already answered and takes '𝜎1', minting nothing# (#1874).symbolic: |  - Ξ»: L_dataized    dataize:      𝛿1: $.target    𝑛: ⟦ Ξ» ‍ 𝜎 ⟧  - Ξ»: L_pair    morph:      𝑛1: $.a      𝑛2: $.b    evaluate:      𝑛3: 𝑛1      𝑛4: 𝑛2    𝑛: ⟦ Ο† ↦ ⟦ a ↦ 𝑛3, b ↦ 𝑛4 ⟧ ⟧location: 'Q.p'acyclic: plausibleinput: >  ⟦ dataized(target) ↦ L_dataized:Ξ»,    p ↦ ⟦      a ↦ Ξ¦.dataized( target ↦ Ξ¦.x ),      b ↦ Ξ¦.dataized( target ↦ Ξ¦.y ),      Ξ» ‍ L_pair ⟧.Ο†,    x ↦ ⟦ Ξ” ‍ 01- ⟧,    y ↦ ⟦ Ξ” ‍ 01- ⟧ ⟧result: '⟦ a ↦ 𝜎1:Ξ», b ↦ 𝜎1:Ξ» ⟧'protocol: |  𝕄(Ξ¦.p):    𝔼(L_pair):      𝕄(ΞΎ.a):        remembered 𝑛·1Β·1 ≑ Ξ¦.dataized  # ⟦ target ↦ βˆ…, Ξ» ‍ L_dataized ⟧        𝑛·1Β·2 ≔ Ξ¦.dataized( target ↦ Ξ¦.x )        𝑛·1Β·3 ≔ ⟦ target ↦ Ξ¦.x, Ξ» ‍ L_dataized ⟧        remembered 𝑛·1Β·3 ≑ 𝑛·1Β·1( target ↦ Ξ¦.x )        morphed 𝑛·1Β·4 ≔ 𝑛·1Β·3      𝑛1Β·1 ≔ 𝑛·1Β·3  # 𝕄(ΞΎ.a)      𝕄(ΞΎ.b):        𝑛·1Β·5 ≔ Ξ¦.dataized( target ↦ Ξ¦.y )        𝑛·1Β·6 ≔ ⟦ target ↦ Ξ¦.y, Ξ» ‍ L_dataized ⟧        remembered 𝑛·1Β·6 ≑ 𝑛·1Β·1( target ↦ Ξ¦.y )        morphed 𝑛·1Β·7 ≔ 𝑛·1Β·6      𝑛2Β·1 ≔ 𝑛·1Β·6  # 𝕄(ΞΎ.b)      recalled 𝑛·1Β·3 β‡’ 𝑛·1Β·1( target ↦ Ξ¦.x )      recalled 𝑛·1Β·1 β‡’ Ξ¦.dataized      𝔼(L_dataized):  # 𝔼(𝑛1 of L_pair)        𝔻(ΞΎ.target):          𝕄(ΞΎ.target):            normalized 𝑛·2Β·1 ≔ 01-:Ξ”  # Ξ¦.x            morphed 𝑛·2Β·2 ≔ 01-:Ξ”          𝛿·2Β·1 ≔ 01-        𝛿1Β·2 ≔ 𝛿·2Β·1  # 𝔻(ΞΎ.target)        𝑛·2Β·3 ≔ 𝜎1:Ξ»  # 𝑛 of L_dataized        𝕄(𝑛·2Β·3):          morphed 𝑛·2Β·4 ≔ 𝜎1:Ξ»        𝑛·2Β·5 ≔ 𝑛·2Β·4  # 𝕄(𝑛·2Β·3)        memoized 𝑛·1Β·3 ⇛ 𝜎1:Ξ»        evaluated 𝑛·2Β·6 ≔ 𝑛·2Β·5  # 𝑛·1Β·3      𝑛3Β·1 ≔ 𝑛·2Β·5  # 𝔼(𝑛1 of L_pair)      recalled 𝑛·1Β·6 β‡’ 𝑛·1Β·1( target ↦ Ξ¦.y )      recalled 𝑛·1Β·1 β‡’ Ξ¦.dataized      𝔼(L_dataized):  # 𝔼(𝑛2 of L_pair)        𝔻(ΞΎ.target):          𝕄(ΞΎ.target):            normalized 𝑛·3Β·1 ≔ 01-:Ξ”  # Ξ¦.y            morphed 𝑛·3Β·2 ≔ 01-:Ξ”          𝛿·3Β·1 ≔ 01-        𝛿1Β·3 ≔ 𝛿·3Β·1  # 𝔻(ΞΎ.target)        recalled 𝑛·1Β·3 β‡’ 𝜎1:Ξ»        𝑛·3Β·3 ≔ 𝑛3Β·1  # 𝑛 of L_dataized        𝑛·3Β·4 ≔ 𝑛3Β·1  # 𝕄(𝑛·3Β·3)        memoized 𝑛·1Β·6 ⇛ 𝜎1:Ξ»        evaluated 𝑛·3Β·5 ≔ 𝑛·3Β·4  # 𝑛·1Β·6      𝑛4Β·1 ≔ 𝑛·3Β·4  # 𝔼(𝑛2 of L_pair)      𝑛·1Β·8 ≔ ⟦ a ↦ 𝜎1:Ξ», b ↦ 𝜎1:Ξ» ⟧:Ο†  # 𝑛 of L_pair      𝕄(𝑛·1Β·8):        morphed 𝑛·1Β·9 ≔ ⟦ a ↦ 𝜎1:Ξ», b ↦ 𝜎1:Ξ» ⟧:Ο†      𝑛·1Β·10 ≔ 𝑛·1Β·9  # 𝕄(𝑛·1Β·8)      memoized 𝑛·1Β·11 ⇛ 𝑛·1Β·10  # ⟦ a ↦ 𝑛·1Β·2, b ↦ 𝑛·1Β·5, Ξ» ‍ L_pair ⟧      evaluated 𝑛·1Β·12 ≔ 𝑛·1Β·10  # 𝑛·1Β·11    normalized 𝑛·0Β·1 ≔ ⟦ a ↦ 𝜎1:Ξ», b ↦ 𝜎1:Ξ» ⟧  # 𝑛·1Β·12.Ο†    morphed 𝑛·0Β·2 ≔ 𝑛·0Β·1