phino-0.0.169: test-resources/evaluate-packs/diverges-on-two-sides-that-do-not-join.yaml
# SPDX-FileCopyrightText: Copyright (c) 2025 Objectionary.com
# SPDX-License-Identifier: MIT
---
# yamllint disable rule:line-length
# A join on a condition nobody decided: the condition comes down through π»
# and answers a symbol nobody has decided. The join brings both sides to a
# normal form through π first, each a call of 'plus' nobody has fired
# (#1954). The calls add other numbers, so no join makes one term of them,
# and the firing writes 'diverged' with the metas of the formations the two
# applications made, instead of splitting the run (#1996). Its comment tells
# that the two copies of 'plus' first differ at the Ο the protocol hides, and
# that the join names no function to fabricate a formation with (#2043).
symbolic: |
- Ξ»: L_number_gt
dataize:
πΏ1: $.Ο
πΏ2: $.x
π: Ξ¦.bool( Ο β¦ β¦ Ξ» β€ π β§ )
- Ξ»: L_number_plus
dataize:
πΏ1: $.Ο
πΏ2: $.x
π: Ξ¦.number( Ο β¦ β¦ Ξ» β€ π β§ )
- Ξ»: L_fork
dataize:
πΏ1: $.Ο
join:
on: πΏ1
left: $.then
right: $.else
location: 'Q.@'
input: >
β¦ bytes(Ο) β¦ β¦β§,
bool(Ο) β¦ β¦ if β¦ β¦ Ο β¦ β
, then β¦ β
, else β¦ β
, Ξ» β€ L_fork β§ β§,
number(Ο) β¦ β¦
gt(Ο, x) β¦ β¦ Ξ» β€ L_number_gt β§,
plus(Ο, x) β¦ β¦ Ξ» β€ L_number_plus β§ β§,
Ο β¦ 5.gt( x β¦ 0 ).if( then β¦ 1.plus( x β¦ 2 ), else β¦ 3.plus( x β¦ 4 ) ).Ο β§
fails: "No entry of --symbolic answers the Ξ» function 'L_fork'"
protocol: |
π(Ξ¦.Ο):
normalized πΒ·0Β·1 β β¦ Ο β¦ β
, gt(x) β¦ L_number_gt:Ξ», plus(x) β¦ L_number_plus:Ξ» β§ # Ξ¦.number
πΒ·0Β·2 β 5.0
πΒ·0Β·3 β β¦ Ο β¦ Ξ¦.bytes( Ο β¦ 40-14-00-00-00-00-00-00:Ξ ), gt(x) β¦ L_number_gt:Ξ», plus(x) β¦ L_number_plus:Ξ» β§
normalized πΒ·0Β·4 β β¦ x β¦ β
, Ξ» β€ L_number_gt β§ # πΒ·0Β·3.gt
πΒ·0Β·5 β πΒ·0Β·2.gt( x β¦ 0.0 )
πΒ·0Β·6 β β¦ x β¦ 0.0, Ξ» β€ L_number_gt β§
πΌ(L_number_gt):
π»(ΞΎ.Ο):
π(ΞΎ.Ο):
πΒ·1Β·1 β 5.0
πΒ·1Β·2 β β¦ Ο β¦ Ξ¦.bytes( Ο β¦ 40-14-00-00-00-00-00-00:Ξ ), gt(x) β¦ L_number_gt:Ξ», plus(x) β¦ L_number_plus:Ξ» β§
morphed πΒ·1Β·3 β πΒ·1Β·2
boxed πΒ·1Β·4 β πΒ·1Β·3.Ο
normalized πΒ·1Β·5 β Ξ¦.bytes( Ο β¦ 40-14-00-00-00-00-00-00:Ξ ) # πΒ·1Β·4
π(πΒ·1Β·4):
normalized πΒ·1Β·6 β β
:Ο # Ξ¦.bytes
πΒ·1Β·7 β Ξ¦.bytes( Ο β¦ 40-14-00-00-00-00-00-00:Ξ )
πΒ·1Β·8 β 40-14-00-00-00-00-00-00:Ξ:Ο
morphed πΒ·1Β·9 β πΒ·1Β·8
boxed πΒ·1Β·10 β πΒ·1Β·9.Ο
normalized πΒ·1Β·11 β 40-14-00-00-00-00-00-00:Ξ # πΒ·1Β·10
πΏΒ·1Β·1 β 40-14-00-00-00-00-00-00 # 5.0
πΏ1Β·1 β πΏΒ·1Β·1 # π»(ΞΎ.Ο)
π»(ΞΎ.x):
π(ΞΎ.x):
πΒ·1Β·12 β 0.0
πΒ·1Β·13 β β¦ Ο β¦ Ξ¦.bytes( Ο β¦ 00-00-00-00-00-00-00-00:Ξ ), gt(x) β¦ L_number_gt:Ξ», plus(x) β¦ L_number_plus:Ξ» β§
morphed πΒ·1Β·14 β πΒ·1Β·13
boxed πΒ·1Β·15 β πΒ·1Β·14.Ο
normalized πΒ·1Β·16 β Ξ¦.bytes( Ο β¦ 00-00-00-00-00-00-00-00:Ξ ) # πΒ·1Β·15
π(πΒ·1Β·15):
πΒ·1Β·17 β Ξ¦.bytes( Ο β¦ 00-00-00-00-00-00-00-00:Ξ )
πΒ·1Β·18 β 00-00-00-00-00-00-00-00:Ξ:Ο
morphed πΒ·1Β·19 β πΒ·1Β·18
boxed πΒ·1Β·20 β πΒ·1Β·19.Ο
normalized πΒ·1Β·21 β 00-00-00-00-00-00-00-00:Ξ # πΒ·1Β·20
πΏΒ·1Β·2 β 00-00-00-00-00-00-00-00 # 0.0
πΏ2Β·1 β πΏΒ·1Β·2 # π»(ΞΎ.x)
πΒ·1Β·22 β Ξ¦.bool( Ο β¦ π1:Ξ» ) # π of L_number_gt
π(πΒ·1Β·22):
normalized πΒ·1Β·23 β β¦ Ο β¦ β
, if(then, else) β¦ L_fork:Ξ» β§ # Ξ¦.bool
πΒ·1Β·24 β Ξ¦.bool( Ο β¦ π1:Ξ» )
πΒ·1Β·25 β β¦ Ο β¦ π1:Ξ», if(then, else) β¦ L_fork:Ξ» β§
morphed πΒ·1Β·26 β πΒ·1Β·25
πΒ·1Β·27 β πΒ·1Β·26 # π(πΒ·1Β·22)
evaluated πΒ·1Β·28 β πΒ·1Β·27 # πΒ·0Β·6
normalized πΒ·0Β·7 β β¦ then β¦ β
, else β¦ β
, Ξ» β€ L_fork β§ # πΒ·1Β·28.if
shared πΒ·1 β 1.0.plus( x β¦ 2.0 )
πΒ·0Β·8 β πΒ·1Β·24.if( then β¦ πΒ·1 )
πΒ·0Β·9 β β¦ then β¦ πΒ·1, else β¦ β
, Ξ» β€ L_fork β§
shared πΒ·2 β 3.0.plus( x β¦ 4.0 )
πΒ·0Β·10 β πΒ·0Β·9( else β¦ πΒ·2 )
πΒ·0Β·11 β β¦ then β¦ πΒ·1, else β¦ πΒ·2, Ξ» β€ L_fork β§
πΌ(L_fork):
π»(ΞΎ.Ο):
π(ΞΎ.Ο):
πΒ·2Β·1 β Ξ¦.bool( Ο β¦ π1:Ξ» )
πΒ·2Β·2 β β¦ Ο β¦ π1:Ξ», if(then, else) β¦ L_fork:Ξ» β§
morphed πΒ·2Β·3 β πΒ·1Β·27
boxed πΒ·2Β·4 β πΒ·2Β·3.Ο
normalized πΒ·2Β·5 β π1:Ξ» # πΒ·2Β·4
πΏΒ·2Β·1 β π»(π1:Ξ»)
πΏ1Β·2 β πΏΒ·2Β·1 # π»(ΞΎ.Ο)
π(ΞΎ.then):
πΒ·2Β·6 β 1.0
πΒ·2Β·7 β β¦ Ο β¦ Ξ¦.bytes( Ο β¦ 3F-F0-00-00-00-00-00-00:Ξ ), gt(x) β¦ L_number_gt:Ξ», plus(x) β¦ L_number_plus:Ξ» β§
normalized πΒ·2Β·8 β β¦ x β¦ β
, Ξ» β€ L_number_plus β§ # πΒ·2Β·7.plus
πΒ·2Β·9 β πΒ·2Β·6.plus( x β¦ 2.0 )
πΒ·2Β·10 β β¦ x β¦ 2.0, Ξ» β€ L_number_plus β§
morphed πΒ·2Β·11 β πΒ·2Β·10
π(ΞΎ.else):
πΒ·2Β·12 β 3.0
πΒ·2Β·13 β β¦ Ο β¦ Ξ¦.bytes( Ο β¦ 40-08-00-00-00-00-00-00:Ξ ), gt(x) β¦ L_number_gt:Ξ», plus(x) β¦ L_number_plus:Ξ» β§
normalized πΒ·2Β·14 β β¦ x β¦ β
, Ξ» β€ L_number_plus β§ # πΒ·2Β·13.plus
πΒ·2Β·15 β πΒ·2Β·12.plus( x β¦ 4.0 )
πΒ·2Β·16 β β¦ x β¦ 4.0, Ξ» β€ L_number_plus β§
morphed πΒ·2Β·17 β πΒ·2Β·16
diverged πΒ·2Β·10 vs πΒ·2Β·16 # cannot join: at .Ο the left side has Ο β¦ πΒ·2Β·6 and the right side has Ο β¦ πΒ·2Β·12; cannot fabricate: the join names no otherwise