packages feed

phino-0.0.154: test-resources/evaluate-packs/fires-a-stalled-formation-again-once-something-was-answered.yaml

# SPDX-FileCopyrightText: Copyright (c) 2025 Objectionary.com
# SPDX-License-Identifier: MIT
---
# yamllint disable rule:line-length
# The memo of '--acyclic=plausible' keeps a stall only while nothing new was
# answered. 'L_pair' first reduces 'x', whose firing brings 's' down, which
# fires 'f', whose operand 'big' is brought down inside the box of 's'. Since
# 's' is within 'big', the mode cuts the operand and the firing of 'f' gets
# stuck. Then the 'evaluate' lines of 'L_pair' fire 'g', which answers, and
# 'f' again, where nothing cuts it. Before #1495 that firing took the stall
# the first one met and reduced nothing; now it brings 'big' down and
# answers (#1874).
symbolic: |
  - Ξ»: L_f
    dataize:
      𝛿1: $.arg
    𝑛: ⟦ Ξ» ‍ 𝜎 ⟧
  - Ξ»: L_g
    𝑛: ⟦ Ξ» ‍ 𝜎 ⟧
  - Ξ»: L_pair
    morph:
      𝑛1: $.x
      𝑛2: $.g
      𝑛3: $.f
    evaluate:
      𝑛4: 𝑛2
      𝑛5: 𝑛3
    𝑛: ⟦ Ο† ↦ 𝑛5 ⟧
location: 'Q.p'
partial: true
acyclic: plausible
input: >
  ⟦ p ↦ ⟦
      x ↦ ⟦ Ξ» ‍ L_f, arg ↦ Ξ¦.s ⟧.Ο†,
      g ↦ Ξ¦.g,
      f ↦ Ξ¦.f,
      Ξ» ‍ L_pair ⟧.Ο†,
    g ↦ ⟦ Ξ» ‍ L_g ⟧,
    f ↦ ⟦ Ξ» ‍ L_f, arg ↦ Ξ¦.big ⟧,
    s ↦ ⟦ Ο† ↦ Ξ¦.f ⟧,
    big ↦ ⟦ Ο† ↦ Ξ¦.k( x ↦ Ξ¦.f ) ⟧,
    k ↦ ⟦ x ↦ βˆ…, Ο† ↦ ⟦ Ξ” ‍ 01- ⟧ ⟧ ⟧
result: '𝜎2:λ'
protocol: |
  𝕄(Ξ¦.p):
    𝔼(L_pair):
      𝕄(Ξ¦.a🌡0):
        𝔼(L_f):
          𝔻(Ξ¦.a🌡1):
            𝔼(L_f):
              𝔻(Ξ¦.a🌡2):
                looped(Ξ¦.f:Ο†)  # plausible
              stuck(L_f)
          stuck(L_f)
      𝑛1Β·1 := ⟦ Ξ» ‍ L_f, arg ↦ Ξ¦.s ⟧.Ο†  # 𝕄(ΞΎ.x)
      𝑛2Β·1 := L_g:Ξ»  # 𝕄(ΞΎ.g)
      𝑛3Β·1 := ⟦ Ξ» ‍ L_f, arg ↦ Ξ¦.big ⟧  # 𝕄(ΞΎ.f)
      𝔼(L_g):  # 𝔼(𝑛2)
        𝑛·4Β·1 := 𝜎1:Ξ»  # 𝑛
        𝑛·4Β·2 := 𝜎1:Ξ»  # 𝕄(𝑛·4Β·1)
      𝑛4Β·1 := 𝑛·4Β·2  # 𝔼(𝑛2)
      𝔼(L_f):  # 𝔼(𝑛3)
        𝔻(Ξ¦.a🌡5):
          𝕄(Ξ¦.a🌡5):
            𝑛·5Β·1 := Ξ¦.k( x ↦ Ξ¦.f )
          𝛿·5Β·1 := 01-
        𝛿1Β·5 := 𝛿·5Β·1  # 𝔻(ΞΎ.arg)
        𝑛·5Β·2 := 𝜎2:Ξ»  # 𝑛
        𝑛·5Β·3 := 𝜎2:Ξ»  # 𝕄(𝑛·5Β·2)
      𝑛5Β·1 := 𝑛·5Β·3  # 𝔼(𝑛3)
      𝑛·1Β·1 := 𝜎2:Ξ»:Ο†  # 𝑛
      𝑛·1Β·2 := 𝜎2:Ξ»:Ο†  # 𝕄(𝑛·1Β·1)