packages feed

phino-0.0.160 / 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):        𝑛·1Β·1 := Ξ¦.dataized( target ↦ Ξ¦.x )        𝑛·1Β·2 := ⟦ target ↦ Ξ¦.x, Ξ» ‍ L_dataized ⟧        morphed 𝑛·1Β·3 := 𝑛·1Β·2      𝑛1Β·1 := 𝑛·1Β·2  # 𝕄(ΞΎ.a)      𝕄(ΞΎ.b):        𝑛·1Β·4 := Ξ¦.dataized( target ↦ Ξ¦.y )        𝑛·1Β·5 := ⟦ target ↦ Ξ¦.y, Ξ» ‍ L_dataized ⟧        morphed 𝑛·1Β·6 := 𝑛·1Β·5      𝑛2Β·1 := 𝑛·1Β·5  # 𝕄(ΞΎ.b)      𝔼(L_dataized):  # 𝔼(𝑛1)        𝔻(ΞΎ.target):          𝕄(ΞΎ.target):            morphed 𝑛·2Β·1 := 01-:Ξ”          𝛿·2Β·1 := 01-        𝛿1Β·2 := 𝛿·2Β·1  # 𝔻(ΞΎ.target)        𝑛·2Β·2 := 𝜎1:Ξ»  # 𝑛        𝕄(𝑛·2Β·2):          morphed 𝑛·2Β·3 := 𝜎1:Ξ»        𝑛·2Β·4 := 𝑛·2Β·3  # 𝕄(𝑛·2Β·2)      𝑛3Β·1 := 𝑛·2Β·4  # 𝔼(𝑛1)      𝔼(L_dataized):  # 𝔼(𝑛2)        𝔻(ΞΎ.target):          𝕄(ΞΎ.target):            morphed 𝑛·3Β·1 := 01-:Ξ”          𝛿·3Β·1 := 01-        𝛿1Β·3 := 𝛿·3Β·1  # 𝔻(ΞΎ.target)        𝑛·3Β·2 := 𝑛3Β·1  # 𝑛        𝑛·3Β·3 := 𝑛3Β·1  # 𝕄(𝑛·3Β·2)      𝑛4Β·1 := 𝑛·3Β·3  # 𝔼(𝑛2)      𝑛·1Β·7 := ⟦ a ↦ 𝜎1:Ξ», b ↦ 𝜎1:Ξ» ⟧:Ο†  # 𝑛      𝕄(𝑛·1Β·7):        morphed 𝑛·1Β·8 := ⟦ a ↦ 𝜎1:Ξ», b ↦ 𝜎1:Ξ» ⟧:Ο†      𝑛·1Β·9 := 𝑛·1Β·8  # 𝕄(𝑛·1Β·7)    morphed 𝑛·0Β·1 := ⟦ a ↦ 𝜎1:Ξ», b ↦ 𝜎1:Ξ» ⟧