Skip to Content
MathematicsMathematics
  • Article
  • Open Access

12 January 2026

Evaluation Trees and Normalisation for Proposition Algebra †

,
and
1
Section Theory of Computer Science, Informatics Institute, Faculty of Science, University of Amsterdam, 1098 XH Amsterdam, The Netherlands
2
Independent Researcher, 1011 XH Amsterdam, The Netherlands
*
Author to whom correspondence should be addressed.
This paper is an extended version of the conference paper from Correct System Design: Symposium in Honor of Ernst-Rüdiger Olderog on the Occasion of His 60th Birthday, Oldenburg, Germany, 8–9 September 2015.

Abstract

Proposition algebra is based on Hoare’s conditional, a ternary connective comparable to if–then–else and used in the context of propositional logic. Conditional statements are composed from atomic propositions (propositional variables), constants for the Boolean truth values, and the conditional. In previous work, various equational axiomatisations have been defined, each of which leads to a so-called valuation congruence. The weakest of these is “free valuation congruence” and the strongest is “static valuation congruence”, which is equivalent to propositional logic. Free valuation congruence is axiomatised by four simple equational axioms, and we use evaluation trees to give a simple semantics: two conditional statements are free valuation congruent if, and only if, they have equal evaluation trees. Increasingly stronger valuation congruences arise by adding axioms to the four that define free valuation congruence: repetition-proof, contractive, memorising, and static valuation congruence. We prove that each such valuation congruence C can be characterised using a transformation on evaluation trees: two conditional statements are C-valuation congruent if, and only if, their C-transformed evaluation trees are equal. In order to prove that these transformations preserve the congruence property, we use normalisation functions: two conditional statements are C-valuation congruent if, and only if, the C-normalisation function returns equal images. Our framework provides the first comprehensive tree-based semantics that unifies all major valuation congruences in proposition algebra, offering both conceptual clarity and practical decision procedures.

1. Introduction

This paper is an extended journal version of the conference paper [1] entitled Evaluation trees for proposition algebra: The case for free and repetition-proof valuation congruence, with new results for three other valuation congruences discussed in Section 4, Section 5 and Section 6. Much of the text in Section 1, Section 2 and Section 3 is taken from [1]. We have included this material because it is necessary for the new results. The conclusions in Section 7 are based on the concluding section of [1] and include further references to related work.
In 1985, Hoare’s paper A couple of novelties in the propositional calculus [2] was published. In this paper, the ternary connective _     _     _ is introduced as the conditional. A more common expression for a conditional statement P     Q     R is the following:
i f   Q   t h e n   P   e l s e   R   .
However, in order to reason systematically with conditional statements, a notation such as P     Q     R is preferable. In a conditional statement P     Q     R , first Q is evaluated, and depending on that evaluation result, either P or R is evaluated (and the other is not) and determines the evaluation value. This evaluation strategy is a form of short-circuit evaluation (short-circuit evaluation denotes the semantics of binary propositional connectives in which the second argument is evaluated only if the first argument does not suffice to determine the value of the expression). In [2], Hoare proves that propositional logic is characterised by eleven equational axioms, some of which employ constants T and F for the truth values true and false . However, the same result was proven in 1948 by Church in ref. [3], where he introduced conditioned disjunction, notation [ p , q , r ] , that also models “ i f   q   t h e n   p   e l s e   r   . ”, or in Church’s words, “p or r, according as q or not q”. See also Church’s 1956 book [4] (§24), which reiterates all the main findings. Furthermore, Church emphasized the duality property of [ p , q , r ] , and even referred to older related work, notably that of Post from 1942 on functionally complete systems of independent primitive connectives for two-valued logic.
In 2011, Bergstra and Ponse introduced “Proposition Algebra” in ref. [5] as a general approach to the study of the conditional and defined several valuation congruences and equational axiomatisations of these congruences. The most basic and least identifying valuation congruence is free valuation congruence, which is axiomatised by the axioms in Table 1.
Table 1. The set CP of equational axioms for free valuation congruence.
These axioms stem from [2] and define the conditional as a primitive connective. The name CP (for Conditional Propositions) was chosen for this set of axioms. Interpreting a conditional statement as an if–then–else expression, axioms (CP1)–(CP3) are natural, and axiom (CP4) (distributivity) can be clarified by case analysis: if z evaluates to true and y as well, then x determines the result of evaluation; if z evaluates to true and y evaluates to false , then v determines the result of evaluation, and so on and so forth. A simple example, taken from [5], is the conditional statement that a pedestrian evaluates before crossing a road with two-way traffic driving on the right:
( look-left-and-check         look-right-and-check       F )       look-left-and-check       F .
This statement requires one, or two, or three atomic evaluations and cannot be simplified to one that requires fewer.
In Section 2 we characterise free valuation congruence with help of evaluation trees, which provide a simple semantics for the conditional; we return to this point in Section 7. Given a conditional statement, its evaluation tree directly represents all its evaluations (in the way a truth table does in the case of propositional logic). Two conditional statements are equivalent with respect to free valuation congruence if their evaluation trees are equal. Evaluation trees are simple binary trees, proposed by Staudt in ref. [6] (that appeared in 2012). Free valuation congruence identifies less than the equivalence defined by Hoare’s axioms in ref. [2]. For example, the atomic proposition a and the conditional statement T     a     a are not equivalent with respect to free valuation congruence, although they are equivalent with respect to static valuation congruence, which is the valuation congruence that characterises propositional logic.
In Section 3 we consider repetition-proof valuation congruence, a valuation congruence that identifies more than free and less than static valuation congruence. Repetition-proof valuation congruence is axiomatised by CP extended with two (schematic) axioms, one of which reads
x     a     ( y     a     z ) = x     a     ( z     a     z )
for any atomic proposition a, and thus expresses that if a evaluates to false , a consecutive evaluation of a also evaluates to false , so the conditional statement at the y-position will not be evaluated and can be replaced by any other. As an example,
T     a     a = T     a     ( T     a     F ) = T     a     ( F     a     F ) ,
and the left-hand and right-hand conditional statements are repetition-proof valuation congruent, but not free valuation congruent. A more concrete example of this valuation congruence in the field of programming languages is given in Example 3 (in Section 7). We characterise repetition-proof valuation congruence by defining a transformation on evaluation trees that yields repetition-proof evaluation trees: two conditional statements are repetition-proof valuation congruent if, and only if, they have equal repetition-proof evaluation trees. Although this transformation on evaluation trees is simple and natural, our proof of the mentioned characterisation, which is phrased as a completeness result, is non-trivial and we could not find a proof that is essentially simpler.
Valuation congruences that identify more conditional statements than repetition-proof valuation congruence are contractive, memorising, and static valuation congruence. These are defined and axiomatised in ref. [5]. In Section 4, Section 5 and Section 6, each of these valuation congruences is characterised using a transformation on evaluation trees: two conditional statements are C-valuation congruent if, and only if, their C-transformed evaluation trees are equal. These transformations are simple and natural, and only for static valuation congruence do we use a slightly more complex transformation.
In Section 7, we discuss the general structure of the proofs of the axiomatisation results in Section 3, Section 4, Section 5 and Section 6, each of which is based on a normalisation function for conditional statements. Then we end the paper with a brief digression on short-circuit logic and give the above-mentioned example of the use of repetition-proof valuation congruence, and Example 4 of contractive valuation congruence. We conclude with some remarks about related and future work. Finally, in Appendix A, we provide some independence results.

2. Evaluation Trees for Free Valuation Congruence

Consider the signature Σ CP ( A ) = { _     _     _   , T , F , a a A } with constants T and F for the truth values true and false , respectively, and constants a for atomic propositions, further called atoms, from some countable set A containing at least two atoms. We write
C A
for the set of closed terms, or conditional statements, over the signature Σ CP ( A ) . Given a conditional statement P     Q     R , we refer to Q as its central condition.
We define the dual P d of P C A as follows:
T d = F ,                             a d = a   ( for   a A ) , F d = T ,                       ( P     Q     R ) d = R d     Q d     P d .
Observe that CP is a self-dual axiomatisation: when defining x d = x for each variable x, the dual of each axiom is also in CP , and hence
CP P = Q     CP P d = Q d .
A natural view on conditional statements in C A involves short-circuit evaluation, which is similar to how we consider the evaluation of an “ if y then x else z ” expression. The following three definitions are taken from [6].
Definition 1. 
The set T A of evaluation trees over A with leaves in { T , F } is defined inductively by
T T A ,   F T A ,   ( X   ̲   a   ̲   Y ) T A     for   any   X , Y T A   and   a A .
The function _   ̲   a   ̲   _ is called post-conditional composition over a. In the evaluation tree X   ̲   a   ̲   Y , the root is represented by a, the left branch by X, and the right branch by Y.
We refer to trees in T A as evaluation trees, or trees for short. Post-conditional composition and its notation stem from thread algebra; the thread P   ̲   a   ̲   Q first performs a and then proceeds with P if true was returned or with Q otherwise (see [7] for more information). Evaluation trees play a crucial role in the main results of [6]. In order to define our “evaluation tree semantics”, we first define an auxiliary function on trees.
Definition 2 (Leaf replacement).
Given evaluation trees Y , Z T A , the leaf replacement function [ T Y , F Z ] : T A T A , for which postfix notation
X [ T Y , F Z ]
is adopted, is defined as follows, where a A :
T [ T Y , F Z ] = Y , F [ T Y , F Z ] = Z , ( X 1   ̲   a   ̲   X 2 ) [ T Y , F Z ]   = X 1 [ T Y , F Z ]   ̲   a   ̲   X 2 [ T Y , F Z ] .
We note that the order in which the replacements of leaves of X are listed is irrelevant and adopt the convention of not listing identities inside the brackets, e.g., X [ F Z ] = X [ T T , F Z ] . Furthermore, repeated replacements satisfy the following equation, which follows easily by structural induction on X:
X [ T Y 1 , F Z 1 ]   [ T Y 2 , F Z 2 ]   = X [ T Y 1 [ T Y 2 , F Z 2 ] ,   F Z 1 [ T Y 2 , F Z 2 ] ] .
We now have the terminology and notation to define the interpretation of conditional statements in C A as evaluation trees by a function s e (abbreviating short-circuit evaluation).
Definition 3.
The short-circuit evaluation function
s e : C A T A
is defined as follows, where a A :
se ( B ) = B     for   B { T , F } , s e ( a ) = T   ̲   a   ̲   F , s e ( P     Q     R ) = s e ( Q ) [ T s e ( P ) , F s e ( R ) ] .
Example 1.
The conditional statement a     ( F     a     T )     F yields the following evaluation tree:
s e ( a     ( F     a     T )     F )   = s e ( F     a     T ) [ T s e ( a ) , F s e ( F ) ]   = ( F   ̲   a   ̲   T ) [ T s e ( a ) ]   = F   ̲   a   ̲   ( T   ̲   a   ̲   F ) .
A more pictorial representation of this evaluation tree is the following, where   ̲   yields a left branch and   ̲   a right branch:
Mathematics 14 00280 i001
As we can see from the definition on atoms, evaluation continues in the left branch if an atom evaluates to true and in the right branch if it evaluates to false . We shall often use the constants T and F to denote the result of an evaluation (instead of true and false ).
Definition 4.
Let P C A . An evaluation of P is a pair ( σ , B ) where σ ( A { T , F } ) and B { T , F } , such that if s e ( P ) { T , F } , then σ = ϵ (the empty string) and B = s e ( P ) , and otherwise,
σ = a 1 B 1 a 2 B 2 a n B n ,
where a 1 a 2 a n B is a complete path in s e ( P ) and
  • for i < n , if a i + 1 is a left child of a i then B i = T , and otherwise B i = F ;
  • if B is a left child of a n then B n = T , and otherwise B n = F .
We refer to σ as the evaluation path and to B as the evaluation result.
So, an evaluation of a conditional statement P is a complete path in s e ( P ) (from root to leaf) and contains evaluation values for all occurring atoms. For instance, the evaluation tree F   ̲   a   ̲   ( T   ̲   a   ̲   F ) from Example 1 encodes the evaluations ( a T , F ) , ( a F a T , T ) , and ( a F a F , F ) . As an aside, we note that this particular evaluation tree encodes all possible evaluations of ¬ a   & &   a , where & & is the connective that prescribes short-circuit conjunction (we return to this connective in Section 7).
In turn, each evaluation tree gives rise to a unique conditional statement. For Example 1, this is F     a     ( T     a     F ) (note the syntactical correspondence).
Definition 5.
Basic forms over A are defined by the following grammar:
t : : = T F t     a     t   for   a A .
We write BF A for the set of basic forms over A. The depth d ( P ) of P BF A is defined by d ( T ) = d ( F ) = 0 and d ( Q     a     R ) = 1 + max { d ( Q ) , d ( R ) } .
Following [5], we speak of “basic forms” instead of normal forms in order to avoid intuitions from term rewriting; for example, the basic form associated with atom a is T     a     F , whereas one would expect that the normal form of the latter is a. The following lemmas exploit the structure of basic forms and are stepping stones to our first completeness result (Theorem 1).
Lemma 1.
For each P C A there exists Q BF A , such that CP P = Q .
Proof. 
First we establish an auxiliary result: if P , Q , and R are basic forms, then there is a basic form S, such that CP P     Q     R = S . This follows by structural induction on Q.
The lemma’s statement follows by structural induction on P. The base cases P { T , F , a a A } are trivial, and if P = P 1     P 2     P 3 there exist, by induction, basic forms Q i , such that CP P i = Q i ; hence, CP P 1     P 2     P 3 = Q 1     Q 2     Q 3 . Now apply the auxiliary result. □
Lemma 2.
For all basic forms P and Q, s e ( P ) = s e ( Q )  implies   P = Q .
Proof. 
By structural induction on P. The base cases P { T , F } are trivial. If P = P 1     a     P 2 , then Q { T , F } and Q Q 1     b     Q 2 with b a , so Q = Q 1     a     Q 2 and s e ( P i ) = s e ( Q i ) . By induction we find P i = Q i , and hence P = Q . □
Definition 6.
The binary relation se-congruence, notation = se , is defined on C A as follows:
P = se Q     s e ( P ) = s e ( Q ) .
Lemma 3.
Se-congruence is a congruence relation.
Proof. 
Assume P = se P , Q = se Q , and R = se R . Then
s e ( P     Q     R ) = s e ( Q ) [ T s e ( P ) , F s e ( R ) ]   = s e ( Q ) [ T s e ( P ) , F s e ( R ) ]   = s e ( P     Q     R ) ,
so P     Q     R = se P     Q     R . □
Theorem 1 (Completeness of CP ).
For all P , Q C A ,
CP P = Q     P = se Q .
Proof. 
(⇒) Without loss of generality it can be assumed that substitutions happen first in equational proofs (see, e.g., [8]). By Lemma 3, = se is a congruence relation and it easily follows that all CP -axioms are sound. For example, the soundness of axiom (CP4) follows from
s e ( P     ( Q     R     S )     V )   = s e ( Q     R     S ) [ T s e ( P ) , F s e ( V ) ]   = s e ( R ) [ T s e ( Q ) , F s e ( S ) ]   [ T s e ( P ) , F s e ( V ) ]   = s e ( R ) [ T s e ( Q ) [ T s e ( P ) , F s e ( V ) ] , F   s e ( S ) [ T s e ( P ) , F s e ( V ) ] ]   = s e ( R ) [ T s e ( P     Q     V ) , F s e ( P     S     V ) ]   = s e ( ( P     Q     V )     R     ( P     S     V ) ) .
(⇐) Let P = se Q . According to Lemma 1, there exist basic forms P and Q , such that CP P = P and CP Q = Q , and so CP P = Q . By soundness (⇒) we find P = se Q , so by Lemma 2, P = Q . Hence, CP P = P = Q = Q . □
A consequence of the above results is that for each P C A there is a unique basic form P with CP P = P , and for each basic form, its s e -image has exactly the same syntactic structure (replacing     by   ̲   , and     by   ̲   ). In the remainder of this section, we make this precise.
Definition 7.
The basic form function bf : C A BF A is defined as follows, where a A :
bf ( B ) = B     for   B { T , F } , bf ( a ) = T     a     F , bf ( P     Q     R ) = bf ( Q ) [ T bf ( P ) , F bf ( R ) ] .
Given Q , R BF A , the auxiliary function [ T Q , F R ] : BF A BF A for which post-fix notation P [ T Q , F R ] is adopted, is defined as follows:
  T [ T Q , F R ] = Q ,   F [ T Q , F R ] = R ,   ( P 1     a     P 2 ) [ T Q , F R ] = P 1 [ T Q , F R ]     a     P 2 [ T Q , F R ] .
(The notational overloading with the leaf replacement functions on evaluation trees is harmless.)
So, for given Q , R BF A , the auxiliary function [ T Q , F R ] applied to P BF A (thus, P [ T Q , F R ] ) replaces all T -occurrences in P by Q, and all F -occurrences in P by R. The following two lemmas imply that bf is a normalisation function.
Lemma 4.
For all P C A , bf ( P ) is a basic form.
Proof. 
By structural induction. The base cases are trivial. For the inductive case we find bf ( P     Q     R ) = bf ( Q ) [ T bf ( P ) , F bf ( R ) ] , so by induction, bf ( P ) , bf ( Q ) , and bf ( R ) are basic forms. Furthermore, replacing all T -occurrences and F -occurrences in bf ( Q ) by basic forms bf ( P ) and bf ( R ) , respectively, yields a basic form. □
Lemma 5.
For each basic form P, bf ( P ) = P .
Proof. 
By structural induction on P. □
Definition 8.
The binary relation = bf on C A is defined as follows:
P = bf Q     bf ( P ) = bf ( Q ) .
Lemma 6.
The relation = bf is a congruence relation.
Proof. 
Replace = se by = bf in the proof of Lemma 3. □
Before proving that CP is an axiomatisation of the relation = bf , we show that each instance of the axiom (CP4) satisfies = bf .
Lemma 7.
For all P , P 1 , P 2 , Q 1 , Q 2 C A ,
bf ( Q 1     ( P 1     P     P 2 )     Q 2 ) = bf ( ( Q 1     P 1     Q 2 )     P     ( Q 1     P 2     Q 2 ) ) .
Proof. 
By definition, the lemma’s statement is equivalent with
bf ( P ) [ T bf ( P 1 ) , F bf ( P 2 ) ]   [ T bf ( Q 1 ) , F bf ( Q 2 ) ]                   = bf ( P ) [ T bf ( Q 1     P 1     Q 2 ) , F bf ( Q 1     P 2     Q 2 ) ] .
By Lemma 4, bf ( P ) , bf ( P i ) , and bf ( Q i ) are basic forms. We prove (1) by structural induction on the form that bf ( P ) can have. If bf ( P ) = T , then
T [ T bf ( P 1 ) , F bf ( P 2 ) ]   [ T bf ( Q 1 ) , F bf ( Q 2 ) ]     = bf ( P 1 ) [ T bf ( Q 1 ) , F bf ( Q 2 ) ]
and
T [ T bf ( Q 1     P 1     Q 2 ) , F bf ( Q 1     P 2     Q 2 ) ]   = bf ( Q 1     P 1     Q 2 )   = bf ( P 1 ) [ T bf ( Q 1 ) , F bf ( Q 2 ) ] .
If bf ( P ) = F , then (1) follows in a similar way.
The inductive case bf ( P ) = R 1     a     R 2 is trivial (by definition of the last defining clause of the auxiliary function [ T Q , F R ] in Definition 7). □
Theorem 2.
For all  P , Q C A , CP P = Q     P = bf Q .
Proof. 
(⇒) By Lemma 6, = bf is a congruence relation and it easily follows that closed instances of the CP -axioms (CP1)–(CP3) satisfy = bf . By Lemma 7 it follows that closed instances of axiom (CP4) also satisfy = bf .
(⇐) Assume P = bf Q . According to Lemma 1, there exist basic forms P and Q , such that CP P = P and CP Q = Q , so CP P = Q . By ⇒ it follows that P = bf Q , which implies by Lemma 5 that P = Q . Hence, CP P = P = Q = Q . □
Corollary 1. 
For all P C A , P = bf bf ( P ) and P = se bf ( P ) .
Proof. 
By Lemmas 4 and 5, bf ( P ) = bf ( bf ( P ) ) ; thus, P = bf bf ( P ) . By Theorem 2, CP P = bf ( P ) , and by Theorem 1, P = se bf ( P ) . □

3. Evaluation Trees for Repetition-Proof Valuation Congruence

In ref. [5], Bergstra and Ponse defined repetition-proof  CP as the extension of the axiom set CP with the following two axiom schemes, where a ranges over A:
( CPrp 1 )     ( x     a     y )     a     z = ( x     a     x )     a     z , ( CPrp 2 )     x     a     ( y     a     z ) = x     a     ( z     a     z ) .
We write CP rp ( A ) for this extension. These axiom schemes characterise that for each atom a, a consecutive evaluation of a yields the same result, so in both cases the conditional statement at the y-position will not be evaluated and can be replaced by any other. Note that (CPrp1) and (CPrp2) are each other’s dual.
Following [5], we define a proper subset of basic forms with the property that each propositional statement can be proved equal to such a basic form.
Definition 9.
Rp-basic forms are inductively defined:
  • T and F are rp-basic forms;
  • P 1     a     P 2 is an rp-basic form if P 1 and P 2 are rp-basic forms, and if P i is not equal to T or F , then either the central condition in P i is different from a, or P i is of the form Q i     a     Q i .
It will turn out useful to define a function that transforms conditional statements into rp-basic forms, and which is comparable to the function bf .
Definition 10.
The rp-basic form function rpbf : C A C A is defined by
rpbf ( P ) = rpf ( bf ( P ) ) .
The auxiliary function rpf : BF A BF A is defined as follows:
rpf ( B ) = B     for   B { T , F } , rpf ( P     a     Q ) = rpf ( f a ( P ) )     a     rpf ( g a ( Q ) ) .
For a A , the auxiliary functions f a : BF A BF A and g a : BF A BF A are defined by
f a ( B ) = g a ( B ) = B     for   B { T , F } , f a ( P     b     Q ) = f a ( P )     a     f a ( P ) if   b = a , P     b     Q otherwise , g a ( P     b     Q ) = g a ( Q )     a     g a ( Q ) if   b = a , P     b     Q otherwise .
Thus, rpbf maps a conditional statement P to bf ( P ) and then transforms bf ( P ) according to the auxiliary functions rpf , f a , and g a .
Lemma 8.
For all a A and P BF A ,
g a ( f a ( P ) ) = f a ( f a ( P ) ) = f a ( P )   and   f a ( g a ( P ) ) = g a ( g a ( P ) ) = g a ( P ) .
Proof. 
By structural induction on P. The base cases P { T , F } are trivial. For the inductive case P = Q     b     R , we have to distinguish the cases b = a and b a . If b = a , then
g a ( f a ( Q     a     R ) )   = g a ( f a ( Q ) )     a     g a ( f a ( Q ) )   = f a ( Q )     a     f a ( Q )     by   IH   = f a ( Q     a     R ) ,
and f a ( f a ( Q     a     R ) ) = f a ( Q     a     R ) follows in a similar way. If b a , then f a ( P ) = g a ( P ) = P , and hence g a ( f a ( P ) ) = f a ( f a ( P ) ) = f a ( P ) .
The second pair of equalities can be derived in a similar way. □
In order to prove that for all P C A , rpbf ( P ) is an rp-basic form, we use the following auxiliary lemma.
Lemma 9.
For all a A and P BF A , d ( P ) d ( f a ( P ) ) and d ( P ) d ( g a ( P ) ) .
Proof. 
Fix some a A . We prove these inequalities by structural induction on P. The base cases P { T , F } are trivial. For the inductive case P = Q     b     R , we have to distinguish the cases b = a and b a . If b = a , then
d ( Q     a     R )   = 1 + max { d ( Q ) , d ( R ) }   1 + d ( Q )   1 + d ( f a ( Q ) )     by   IH   = d ( f a ( Q )     a     f a ( Q ) )   = d ( f a ( Q     a     R ) ) ,
and d ( Q     a     R ) d ( g a ( Q     a     R ) ) follows in a similar way.
If b a , then f a ( P ) = g a ( P ) = P , and hence d ( P ) d ( f a ( P ) ) and d ( P ) d ( g a ( P ) ) . □
Lemma 10.
For all P C A , rpbf ( P ) is an rp-basic form.
Proof. 
We first prove an auxiliary result:
For   all   P BF A ,   rpf ( P )   is   an   rp - basic   form .
This follows by induction on the depth d ( P ) of P. If d ( P ) = 0 , then P { T , F } , and hence rpf ( P ) = P is an rp-basic form. For the inductive case d ( P ) = n + 1 , it must be the case that P = Q     a     R . We find
rpf ( Q     a     R )   = rpf ( f a ( Q ) )     a     rpf ( g a ( R ) ) ,
which is an rp-basic form because of the following:
  • By Lemma 9, f a ( Q ) and g a ( R ) are basic forms with depth smaller than or equal to n, so by the induction hypothesis, rpf ( f a ( Q ) ) and rpf ( g a ( R ) ) are rp-basic forms;
  • rpf ( f a ( Q ) ) and rpf ( g a ( R ) ) both satisfy the following property: if the central condition (if present) is a, then the outer arguments are equal. We show this first for rpf ( f a ( Q ) ) by a case distinction in the form of Q:
    • If Q { T , F } , then rpf ( f a ( Q ) ) = Q , and so there is nothing to prove.
    • If Q = Q 1     a     Q 2 , then f a ( Q ) = f a ( Q 1 )     a     f a ( Q 1 ) , and thus by Lemma 8, rpf ( f a ( Q ) ) = rpf ( f a ( Q 1 ) )     a     rpf ( f a ( Q 1 ) ) .
    • If Q = Q 1     b     Q 2 with b a , then f a ( Q ) = Q 1     b     Q 2 , and so
      rpf ( f a ( Q ) ) = rpf ( f b ( Q 1 ) )     b     rpf ( g b ( Q 2 ) ) and there is nothing to prove.
    The fact that rpf ( g a ( R ) ) satisfies this property follows in a similar way.
This finishes the proof of (2).
The lemma’s statement now follows by structural induction: the base cases (comprising a single atom a) are again trivial, and for the inductive case,
rpbf ( P     Q     R ) = rpf ( bf ( P     Q     R ) ) = rpf ( S )
For some basic form S by Lemma 4, and by auxiliary result (2), rpf ( S ) is an rp-basic form. □
The following result is used in Proposition 1 and Lemma 12.
Lemma 11.
If Q     a     R is an rp-basic form, then Q = rpf ( Q ) = rpf ( f a ( Q ) ) and R = rpf ( R ) = rpf ( g a ( R ) ) .
Proof. 
We first prove an auxiliary result:
If   Q     a     R   is   an   rp - basic   form ,   then   f a ( Q ) = g a ( Q )   and   f a ( R ) = g a ( R ) .
We prove both equalities by simultaneous induction on the structure of Q and R. The base case, thus Q , R { T , F } , is trivial. If Q = Q 1     a     Q 1 and R = R 1     a     R 1 , then Q and R are rp-basic forms with central condition a, and so
f a ( Q )   = f a ( Q 1 )     a     f a ( Q 1 )   = g a ( Q 1 )     a     g a ( Q 1 )     by   IH   = g a ( Q ) ,
and the equality for R follows in a similar way. If Q = Q 1     a     Q 1 and R R 1     a     R 1 , then f a ( R ) = g a ( R ) = R , and the result follows as above. All remaining cases follow in a similar way, which finishes the proof of (3).
We now prove the lemma’s statement by simultaneous induction on the structure of Q and R. The base case, thus Q , R { T , F } , is again trivial. If Q = Q 1     a     Q 1 and R = R 1     a     R 1 , then by auxiliary result (3),
rpf ( Q ) = rpf ( f a ( Q 1 ) )     a     rpf ( f a ( Q 1 ) ) ,
and by induction, Q 1 = rpf ( Q 1 ) = rpf ( f a ( Q 1 ) ) . Hence, rpf ( Q ) = Q 1     a     Q 1 , and
rpf ( f a ( Q ) ) = rpf ( f a ( f a ( Q 1 ) ) )     a     rpf ( g a ( f a ( Q 1 ) ) )   = rpf ( f a ( Q 1 ) )     a     rpf ( f a ( Q 1 ) )     by   Lemma 8     = Q 1     a     Q 1 ,
and the equalities for R follow in a similar way.
If Q = Q 1     a     Q 1 and R R 1     a     R 1 , the lemma’s equalities follow in a similar way, although are slightly simpler because g a ( R ) = f a ( R ) = R .
For all remaining cases, the lemma’s equalities follow in a similar way. □
Proposition 1 (rpbf is a normalisation function).
For all P C A , rpbf ( P ) is an rp-basic form, and for each rp-basic form P, rpbf ( P ) = P .
Proof. 
The first statement is Lemma 10. For the second statement, it suffices by Lemma 5 to prove that for each rp-basic form P, rpf ( P ) = P . This follows by case distinction on P. The cases P { T , F } follow immediately, and otherwise P = Q     a     R , and thus rpf ( P ) = rpf ( f a ( Q ) )     a     rpf ( g a ( R ) ) . By Lemma 11, rpf ( f a ( Q ) ) = Q and rpf ( g a ( R ) ) = R , hence rpf ( P ) = P . □
Lemma 12.
For all P BF A , CP rp ( A ) P = rpf ( P ) .
Proof. 
We apply structural induction on P. The base cases P { T , F } are trivial. Assume P = P 1     a     P 2 . By induction, CP rp ( A ) P i = rpf ( P i ) . We proceed by the following case distinction on the form that P 1 and P 2 can have:
  • If P i { T , F , Q i     b i     Q i } with b i a , then f a ( P 1 ) = P 1 and g a ( P 2 ) = P 2 , and hence rpf ( P ) = rpf ( P 1 )     a     rpf ( P 2 ) . Thus, CP rp ( A ) P = rpf ( P ) .
  • If P 1 = R 1     a     R 2 and P 2 { T , F , Q     b     Q } with b a , then g a ( P 2 ) = P 2 and by auxiliary result (2) in the proof of Lemma 10, rpf ( R 1 ) and rpf ( P 2 ) are rp-basic forms. We derive
    CP rp ( A ) P = ( R 1     a     R 2 )     a     P 2   = ( R 1     a     R 1 )     a     P 2     by   ( CPrp 1 )   = ( rpf ( R 1 )     a     rpf ( R 1 ) )     a     rpf ( P 2 )     by   IH   = ( rpf ( f a ( R 1 ) )     a     rpf ( f a ( R 1 ) ) )     a     rpf ( g a ( P 2 ) )     by   Lemma 11     = rpf ( f a ( R 1     a     R 2 ) )     a     rpf ( g a ( P 2 ) )   = rpf ( ( R 1     a     R 2 )     a     P 2 )   = rpf ( P ) .
  • If P 1 { T , F , Q     b     Q } with b a and P 2 = S 1     a     S 2 , we can proceed as in the previous case, but now using axiom scheme (CPrp2) and the identity f a ( P 1 ) = P 1 , and the fact that rpf ( P 1 ) and rpf ( S 2 ) are rp-basic forms.
  • If P 1 = R 1     a     R 2 and P 2 = S 1     a     S 2 , we can proceed as in two previous cases, now using both (CPrp1) and (CPrp2), and the fact that rpf ( R 1 ) and rpf ( S 2 ) are rp-basic forms.
Theorem 3.
For all P C A , CP rp ( A ) P = rpbf ( P ) .
Proof. 
By Theorem 2 and Corollary 1, we find CP rp ( A ) P = bf ( P ) . By Lemma 12, CP rp ( A ) bf ( P ) = rpf ( bf ( P ) ) , and rpf ( bf ( P ) ) = rpbf ( P ) . □
Definition 11.
The binary relation = rpbf on C A is defined as follows:
P = rpbf Q     rpbf ( P ) = rpbf ( Q ) .
Theorem 4.
For all P , Q C A , CP rp ( A ) P = Q   P = rpbf Q .
Proof. 
(⇒) Assume CP rp ( A ) P = Q . By Theorem 3, CP rp ( A ) rpbf ( P ) = rpbf ( Q ) . In ref. [5], the following two statements are proven (Theorem 6.3 and an auxiliary result in its proof), where = rp is the binary relation on C A that specifies repetition-proof valuation congruence:
  • For all P , Q C A , CP rp ( A ) P = Q     P = rp Q .
  • For all rp-basic forms P and Q ,   P = rp Q     P = Q .
By Lemma 10, these statements imply rpbf ( P ) = rpbf ( Q ) , that is, P = rpbf Q .
(⇐) Assume P = rpbf Q . By Theorem 3, CP rp ( A ) P = Q . □
So, the relation = rpbf is axiomatised by CP rp ( A ) , and is thus a congruence that coincides with repetition-proof valuation congruence as defined in ref [5]. With this observation in mind, we define a transformation on evaluation trees that mimics the function rpbf and proves that the equality of two such transformed trees characterises repetition-proof valuation congruence.
Definition 12.
The unary repetition-proof evaluation function
rpse : C A T A
yields repetition-proof evaluation trees and is defined by rpse ( P ) = rp ( s e ( P ) ) .
The auxiliary function rp : T A T A is defined as follows ( a A ):
rp ( B ) = B     for   B { T , F } , rp ( X   ̲   a   ̲   Y ) = rp ( a ( X ) )   ̲   a   ̲   rp ( G a ( Y ) ) .
For a A , the auxiliary functions a : T A T A and G a : T A T A are defined by
F a ( B ) = G a ( B ) = B     for   B { T , F } , F a ( X   ̲   b   ̲   Y ) = F a ( X )   ̲   a   ̲   a ( X )   if   b = a , X   ̲   b   ̲   Y   otherwise , G a ( X   ̲   b   ̲   Y ) = G a ( Y )   ̲   a   ̲   G a ( Y )   if   b = a , X   ̲   b   ̲   Y   otherwise .
Example 2.
Let P = a     ( F     a     T )     F . We depict s e ( P ) (as in Example 1) and the repetition-proof evaluation tree rpse ( P ) = F   ̲   a   ̲   ( F   ̲   a   ̲   F ) as follows:
Mathematics 14 00280 i002
The similarities between rpse and the function rpbf can be exploited: We use the following lemma in the proof of this section’s last completeness result.
Lemma 13.
For all P BF A , rp ( s e ( P ) ) = s e ( rpf ( P ) ) .
Proof. 
We first prove an auxiliary result:
For   all   a A   and   P BF A ,   a ( s e ( P ) ) = s e ( f a ( P ) )   and   G a ( s e ( P ) ) = s e ( g a ( P ) ) .
Fix some a A . We prove (4) by structural induction on P. The base cases P { T , F } are trivial. For the inductive case P = Q     b     R , we have to distinguish the cases b = a and b a . If b = a , then
F a ( s e ( Q     a     R ) )   = F a ( s e ( Q )   ̲   a   ̲   s e ( R ) )   = F a ( s e ( Q ) )   ̲   a   ̲   F a ( s e ( Q ) )   = s e ( f a ( Q ) )   ̲   a   ̲   s e ( f a ( Q ) )     by   IH   = s e ( f a ( Q     a     R ) ) ,
and if b a , then
F a ( s e ( Q     b     R ) )   = F a ( s e ( Q )   ̲   b   ̲   s e ( R ) )   = s e ( Q )   ̲   b   ̲   s e ( R )   = s e ( Q     b     R )   = s e ( f a ( Q     b     R ) ) .
The second equality can be derived in a similar way, and this finishes the proof of (4).
We prove the lemma’s statement by induction on d ( P ) . The base cases P { T , F } follow immediately. Assume P = Q     a     R ; then,
rp ( s e ( Q     a     R ) )   = rp ( s e ( Q )   ̲   a   ̲   s e ( R ) )   = rp ( a ( s e ( Q ) ) )   ̲   a   ̲   rp ( G a ( s e ( R ) ) )   = rp ( s e ( f a ( Q ) ) )   ̲   a   ̲   rp ( s e ( g a ( R ) ) )     by   ( 4 )   = s e ( rpf ( f a ( Q ) ) )   ̲   a   ̲   s e ( rpf ( g a ( R ) ) )     by   IH   ( and   Lemma 9   )   = s e ( rpf ( f a ( Q ) )     a     rpf ( g a ( R ) ) )   = s e ( rpf ( Q     a     R ) ) .
Finally, we relate conditional statements by means of their repetition-proof evaluation trees.
Definition 13.
Repetition-proof se-congruence, notation = rpse , is defined on C A as follows:
P = rpse Q     rpse ( P ) = rpse ( Q ) .
The following characterisation result immediately implies that = rpse is a congruence relation on C A (and hence justifies calling it a congruence).
Proposition 2.
For all P , Q C A , P = rpse Q     P = rpbf Q .
Proof. 
(⇒) Assume rpse ( P ) = rpse ( Q ) ; thus, rp ( s e ( P ) ) = rp ( s e ( Q ) ) . By Corollary 1, rp ( s e ( bf ( P ) ) ) = rp ( s e ( bf ( Q ) ) ) , and so by Lemma 13, s e ( rpf ( bf ( P ) ) ) = s e ( rpf ( bf ( Q ) ) ) . By Lemma 2 and auxiliary result (2) (see the proof of Lemma 10), it follows that rpf ( bf ( P ) ) = rpf ( bf ( Q ) ) ; that is, P = rpbf Q .
(⇐) Assume P = rpbf Q ; thus, rpf ( bf ( P ) ) = rpf ( bf ( Q ) ) and s e ( rpf ( bf ( P ) ) ) = s e ( rpf ( bf ( Q ) ) ) . By Lemma 13, rp ( s e ( bf ( P ) ) ) = rp ( s e ( bf ( Q ) ) ) . By Corollary 1, s e ( bf ( P ) ) = s e ( P ) and s e ( bf ( Q ) ) = s e ( Q ) , and so rp ( s e ( P ) ) = rp ( s e ( Q ) ) ; that is, P = rpse Q . □
We end this section with the completeness result we were seeking.
Theorem 5 (Completeness of CP rp ( A ) ).
For all P , Q C A ,
CP rp ( A ) P = Q     P = rpse Q .
Proof. 
Combine Theorem 4 and Proposition 2. □

4. Evaluation Trees for Contractive Valuation Congruence

In ref. [5], Bergstra and Ponse introduced CP cr ( A ) , contractive CP , as the extension of CP with the following two axiom schemes, where a ranges over A:
( CPcr 1 )     ( x     a     y )     a     z = x     a     z , ( CPcr 2 )     x     a     ( y     a     z ) = x     a     z .
These schemes prescribe the contraction for each atom a for respectively the true case and the false case, and are each others dual. It easily follows that the axiom schemes (CPrp1) and (CPrp2) are derivable from CP cr ( A ) , and so CP cr ( A ) is also an axiomatic extension of CP rp ( A ) .
Again, we define a proper subset of basic forms with the property that each propositional statement can be proved equal to such a basic form.
Definition 14.
Cr-basic forms are inductively defined:
  • T and F are cr-basic forms;
  • P 1     a     P 2 is a cr-basic form if P 1 and P 2 are cr-basic forms, and if P i is not equal to T or F , the central condition in P i is different from a.
It will become useful to define a function that transforms conditional statements into cr-basic forms, and that is comparable to the function bf (see Definition 7).
Definition 15.
The cr-basic form function cbf : C A C A is defined by
cbf ( P ) = cf ( bf ( P ) ) .
The auxiliary function cf : BF A BF A is defined as follows:
cf ( B ) = B     for   B { T , F } , cf ( P     a     Q ) = cf ( h a ( P ) )     a     cf ( j a ( Q ) ) .
For a A , the auxiliary functions h a : BF A BF A and j a : BF A BF A are defined by
h a ( B ) = j a ( B ) = B     for   B { T , F } , h a ( P     b     Q ) = h a ( P ) if   b = a , P     b     Q otherwise , j a ( P     b     Q ) = j a ( Q ) if   b = a , P     b     Q otherwise .
Thus, cbf maps a conditional statement P to bf ( P ) and then transforms bf ( P ) according to the auxiliary functions cf , h a , and j a .
Lemma 14.
For all a A and P BF A , d ( P ) d ( h a ( P ) ) and d ( P ) d ( j a ( P ) ) .
Proof. 
Fix some a A . We prove these inequalities by structural induction on P. The base cases P { T , F } are trivial. For the inductive case P = Q     b     R , we have to distinguish the cases b = a and b a . If b = a , then
d ( Q     a     R )   = 1 + max { d ( Q ) , d ( R ) }   1 + d ( Q )   1 + d ( h a ( Q ) )     by   IH   = 1 + d ( h a ( Q     a     R ) ) ,
and d ( Q     a     R ) d ( j a ( Q     a     R ) ) follows in a similar way.
If b a , then h a ( P ) = j a ( P ) = P , and hence d ( P ) d ( h a ( P ) ) and d ( P ) d ( j a ( P ) ) . □
Lemma 15.
For all P C A , cbf ( P ) is a cr-basic form.
Proof. 
We first prove an auxiliary result:
For   all   P BF A ,   cf ( P )   is   a   cr - basic   form .
This follows by induction on the depth d ( P ) of P. If d ( P ) = 0 , then P { T , F } , and hence cf ( P ) = P is a cr-basic form. For the inductive case d ( P ) = n + 1 , it must be the case that P = Q     a     R . We find
cf ( Q     a     R )   = cf ( h a ( Q ) )     a     cf ( j a ( R ) ) ,
which is a cr-basic form because of the following:
  • By Lemma 14, h a ( Q ) and j a ( R ) are basic forms with a depth smaller than or equal to n, and so by the induction hypothesis, cf ( h a ( Q ) ) and cf ( j a ( R ) ) are cr-basic forms,
  • By the definition of the auxiliary functions h a and j a , the central condition of h a ( Q ) and j a ( R ) is not equal to a; hence, cf ( h a ( Q ) )     a     cf ( j a ( R ) ) is a cr-basic form.
This completes the proof of (5).
The lemma’s statement now follows by structural induction: the base cases (comprising a single atom a) are again trivial, and for the inductive case,
cbf ( P     Q     R ) = cf ( bf ( P     Q     R ) ) = cf ( S )
for some basic form S by Lemma 4, and by (5), cf ( S ) is a cr-basic form. □
The following lemma is used in Proposition 3 and Lemma 17.
Lemma 16.
If Q     a     R is a cr-basic form, then Q = cf ( Q ) = cf ( h a ( Q ) ) and R = cf ( R ) = cf ( j a ( R ) ) .
Proof. 
By simultaneous induction on the structure of Q and R. The base case, thus Q , R { T , F } , is again trivial. If Q = Q 1     b     Q 2 and R = R 1     c     R 2 , then b a c and thus h a ( Q ) = Q and j a ( R ) = R . Moreover, Q 1 and Q 2 have no central condition b; hence, h b ( Q 1 ) = Q 1 and j b ( Q 2 ) = Q 2 , and thus
cf ( Q ) = cf ( h b ( Q 1 ) )     b     cf ( j b ( Q 2 ) )   = cf ( Q 1 )     b     cf ( Q 2 )   = Q 1     b     Q 2 .     by   IH
The equalities for R follow in a similar way.
If Q = Q 1     b     Q 1 and R { T , F } , the lemma’s equalities follow in a similar way, and this is also the case if Q { T , F } and R = Q 1     b     Q 1 . □
With Lemma 16 we can easily prove the following result.
Proposition 3 (cbf is a normalisation function).
For each P C A , cbf ( P ) is a cr-basic form, and for each cr-basic form P, cbf ( P ) = P .
Proof. 
The first statement is Lemma 15. For the second statement, it suffices by Lemma 5 to prove that cf ( P ) = P . We prove this by case distinction on P. The cases P { T , F } follow immediately, and otherwise P = Q     a     R , and thus cf ( P ) = cf ( h a ( Q ) )     a     cf ( j a ( R ) ) . By Lemma 16, cf ( h a ( Q ) ) = Q and cf ( j a ( R ) ) = R ; hence, cf ( P ) = P . □
Lemma 17.
For all P BF A , CP cr ( A ) P = cf ( P ) .
Proof. 
We first prove two auxiliary results:
For   all   a A   and   P , Q BF A ,     CP cr ( A ) P     a     Q = P     a     j a ( Q ) ,
  CP cr ( A ) P     a     Q = h a ( P )     a     Q .
Fix some a A . We prove (6) by structural induction on Q. The base cases Q { T , F } are trivial. For the inductive case Q = Q 1     b     Q 2 , we have to distinguish the cases b = a and b a . If b = a , then j a ( Q ) = j a ( Q 2 ) and
CP cr ( A ) P     a     ( Q 1     a     Q 2 )   = P     a     Q 2     by   ( CPcr 2 )   = P     a     j a ( Q 2 )     by   IH   = P     a     j a ( Q ) .
If b a then j a ( Q ) = Q , and hence CP cr ( A ) P     a     Q = P     a     j a ( Q ) .
Auxiliary result (7) follows in a similar way by structural induction on P and with the help of axiom scheme (CPcr1).
The lemma’s statement follows by induction on d ( P ) . The base cases P { T , F } are trivial. For the inductive case, assume P = Q     a     R . We derive
CP cr ( A ) Q     a     R   = h a ( Q )     a     j a ( R )     by   ( 6 ) ,   ( 7 )   = cf ( h a ( Q ) )     a     cf ( j a ( R ) )     by   IH   ( and   Lemma 14 )   = cf ( Q     a     R ) .
Theorem 6.
For all P C A , CP cr ( A ) P = cbf ( P ) .
Proof. 
By Theorem 2 and Corollary 1, CP cr ( A ) P = bf ( P ) , and by Lemma 17, CP cr ( A ) bf ( P ) = cf ( bf ( P ) ) , and cf ( bf ( P ) ) = cbf ( P ) . □
Definition 16.
The binary relation = cbf on C A is defined as follows:
P = cbf Q     cbf ( P ) = cbf ( Q ) .
Theorem 7.
For all P , Q C A , CP cr ( A ) P = Q   P = cbf Q .
Proof. 
(⇒) Assume CP cr ( A ) P = Q . Then, by Theorem 6, CP cr ( A ) cbf ( P ) = cbf ( Q ) . In ref. [5], the following two statements are proven (Theorem 6.4 and an auxiliary result in its proof), where = cr is the binary relation on C A that specifies contractive valuation congruence:
  • For all P , Q C A , CP cr ( A ) P = Q     P = cr Q .
  • For all cr-basic forms P and Q ,   P = cr Q     P = Q .
By Lemma 15, these statements imply cbf ( P ) = cbf ( Q ) ; that is, P = cbf Q .
(⇐) Assume P = cbf Q . By Theorem 6, CP cr ( A ) P = Q . □
Hence, the relation = cbf is axiomatised by CP cr ( A ) , and is thus a congruence that coincides with contractive valuation congruence defined in [9]. We now define a transformation on evaluation trees that mimics the function cbf and prove that the equality of two such transformed trees characterises this congruence.
Definition 17.
The unary contractive evaluation function
cse : C A T A
yields contractive evaluation trees and is defined by cse ( P ) = cr ( s e ( P ) ) .
The auxiliary function cr : T A T A is defined as follows ( a A ):
cr ( B ) = B     for   B { T , F } , cr ( X   ̲   a   ̲   Y ) = cr ( H a ( X ) )   ̲   a   ̲   cr ( J a ( Y ) ) .
For a A , the auxiliary functions H a : T A T A and J a : T A T A are defined by
H a ( B ) = J a ( B ) = B     for   B { T , F } , H a ( X   ̲   b   ̲   Y ) = H a ( X )   if   b = a , X   ̲   b   ̲   Y   otherwise , J a ( X   ̲   b   ̲   Y ) = J a ( Y )   if   b = a , X   ̲   b   ̲   Y   otherwise .
As a simple example, we depict s e ( ( a     a     F )     a     F ) and the contractive evaluation tree cse ( ( a     a     F )     a     F ) :
Mathematics 14 00280 i003
The similarities between the evaluation function cse and the function cbf can be exploited, and we use the following lemma in the proof of the next completeness result.
Lemma 18.
For all P BF A , cr ( s e ( P ) ) = s e ( cf ( P ) ) .
Proof. 
We first prove the following auxiliary result:
For   all   a A   and   P BF A ,   H a ( s e ( P ) ) = s e ( h a ( P ) )   and   J a ( s e ( P ) ) = s e ( j a ( P ) ) .
Fix some a A . We prove (8) by structural induction on P. The base cases P { T , F } are trivial. For the inductive case P = Q     b     R , we have to distinguish the cases b = a and b a . If b = a , then
H a ( s e ( Q     a     R ) )   = H a ( s e ( Q )   ̲   a   ̲   s e ( R ) )   = H a ( s e ( Q ) )   = s e ( h a ( Q ) )     by   IH   = s e ( h a ( Q     a     R ) ) ,
and if b a , then
H a ( s e ( Q     b     R ) )   = H a ( s e ( Q )   ̲   b   ̲   s e ( R ) )   = s e ( Q )   ̲   b   ̲   s e ( R )   = s e ( Q     b     R )   = s e ( h a ( Q     b     R ) ) .
The second equality can be derived in a similar way, and this finishes the proof of (8).
We prove the lemma’s statement by induction on d ( P ) . The base cases P { T , F } follow immediately. Assume P = Q     a     R ; then,
cr ( s e ( Q     a     R ) )   = cr ( s e ( Q )   ̲   a   ̲   s e ( R ) )   = cr ( H a ( s e ( Q ) ) )   ̲   a   ̲   cr ( J a ( s e ( R ) ) )   = cr ( s e ( h a ( Q ) ) )   ̲   a   ̲   cr ( s e ( j a ( R ) ) )     by   ( 8 )   = s e ( cf ( h a ( Q ) ) )   ̲   a   ̲   s e ( cf ( j a ( R ) ) )     by   IH   ( and   Lemma 14 )   = s e ( cf ( h a ( Q ) )     a     cf ( j a ( R ) ) )   = s e ( cf ( Q     a     R ) ) .
Finally, we relate conditional statements by means of their contractive evaluation trees.
Definition 18.
Contractive se-congruence, notation = cse , is defined on C A as follows:
P = cse Q     cse ( P ) = cse ( Q ) .
The following characterisation result implies that = cse is a congruence relation on C A .
Proposition 4.
For all P , Q C A , P = cse Q     P = cbf Q .
Proof. 
(⇒) Assume cse ( P ) = cse ( Q ) , and thus cr ( s e ( P ) ) = cr ( s e ( Q ) ) . By Corollary 1, cr ( s e ( bf ( P ) ) ) = cr ( s e ( bf ( Q ) ) ) , and so by Lemma 18, s e ( cf ( bf ( P ) ) ) = s e ( cf ( bf ( Q ) ) ) . By Lemma 2 and auxiliary result (2) (see the proof of Lemma 10), it follows that cf ( bf ( P ) ) = cf ( bf ( Q ) ) ; that is, P = cbf Q .
(⇐) Assume P = cbf Q ; thus, cf ( bf ( P ) ) = cf ( bf ( Q ) ) and s e ( cf ( bf ( P ) ) ) = s e ( cf ( bf ( Q ) ) ) . By Lemma 18, cr ( s e ( bf ( P ) ) ) = cr ( s e ( bf ( Q ) ) ) . By Corollary 1, s e ( bf ( P ) ) = s e ( P ) and s e ( bf ( Q ) ) = s e ( Q ) , so cr ( s e ( P ) ) = cr ( s e ( Q ) ) : that is, P = cse Q . □
Our final result in this section is a completeness result for contractive se-congruence.
Theorem 8 (Completeness of CP cr ( A ) ).
For all P , Q C A ,
CP cr ( A ) P = Q     P = cse Q .
Proof. 
Combine Theorem 7 and Proposition 4. □

5. Evaluation Trees for Memorising Valuation Congruence

In ref. [5], Bergstra and Ponse introduced CP mem , memorising CP , as the extension of CP with the following axiom:
( CPmem )     x     y     ( z     u     ( v     y     w ) ) = x     y     ( z     u     w ) .
Axiom (CPmem) expresses that the first evaluation value of y is memorised. More precisely, a “memorising evaluation” is one with the property that upon the evaluation of a compound propositional statement, the first evaluation value of each atom is memorised throughout the evaluation and can have no side effect that affects the evaluation of any other atom. We write CP mem for the set CP { ( CPmem ) } of axioms.
Replacing the variable y in axiom (CPmem) by F     y     T and/or the variable u by F     u     T yields all other memorising patterns:
( CPm 1 )     ( z     u     ( w     y     v ) )     y     x = ( z     u     w )     y     x , ( CPm 2 )     x     y     ( ( v     y     w )     u     z ) = x     y     ( w     u     z ) , ( CPm 3 )     ( ( w     y     v )     u     z )     y     x = ( w     u     z )     y     x .
Hence, the duality principle also holds in CP mem . Furthermore, if we replace in axiom (CPmem) u by F , we find the contraction law
  x     y     ( v     y     w ) = x     y     w ,
and replacing y by F     y     T then yields the dual contraction law
  ( w     y     v )     y     x = w     y     x .
Hence, CP mem is an axiomatic extension of CP cr ( A ) .
We define a proper subset of basic forms with the property that each propositional statement can be proven as equal to such a basic form.
Definition 19.
Let A be a subset of A. Mem-basic forms over A are inductively defined as follows:
  • T and F are mem-basic forms over A ;
  • P     a     Q is a mem-basic form over A if a A and P and Q are mem-basic forms over A { a } .
P is a mem-basic form if for some A A , P is a mem-basic form over A .
Note that if A is finite, the number of mem-basic forms is also finite. It will turn out useful to define a function that transforms conditional statements into mem-basic forms.
Definition 20.
The mem-basic form function mbf : C A C A is defined by
mbf ( P ) = mf ( bf ( P ) ) .
The auxiliary function mf : BF A BF A is defined as follows:
mf ( B ) = B     for   B { T , F } , mf ( P     a     Q ) = mf ( a ( P ) )     a     mf ( r a ( Q ) ) .
For a A , the auxiliary functions a : BF A BF A (left a-reduction) and r a : BF A BF A (right a-reduction) are defined by
a ( B ) = r a ( B ) = B     for   B { T , F } , a ( P     b     Q ) = a ( P ) if   b = a , a ( P )     b     a ( Q ) otherwise , r a ( P     b     Q ) = r a ( Q ) if   b = a , r a ( P )     b     r a ( Q ) otherwise .
Thus, mbf maps a conditional statement P to bf ( P ) and then transforms bf ( P ) according to the auxiliary functions mf , a , and r a . We will use the following inequalities.
Lemma 19.
For all a A and P BF A , d ( P ) d ( a ( P ) ) and d ( P ) d ( r a ( P ) ) .
Proof. 
Fix some a A . We prove these inequalities by structural induction on P. The base cases P { T , F } are trivial. For the inductive case P = Q     b     R , we have to distinguish the cases b = a and b a . If b = a , then
d ( Q     a     R )   = 1 + max { d ( Q ) , d ( R ) }   1 + d ( Q )   1 + d ( a ( Q ) )     by   IH   = 1 + d ( a ( Q     a     R ) ) ,
and d ( Q     a     R ) d ( r a ( Q     a     R ) ) follows in a similar way.
If b a , then
d ( Q     b     R )   = 1 + max { d ( Q ) , d ( R ) }   1 + max { d ( a ( Q ) ) , d ( a ( R ) ) }     by   IH   = d ( a ( Q )     b     a ( R ) )   = d ( a ( Q     b     R ) ) ,
and d ( Q     b     R ) d ( r a ( Q     b     R ) ) follows in a similar way. □
Lemma 20.
For all P C A , mbf ( P ) is a mem-basic form.
Proof. 
We first prove an auxiliary result:
For   all   P BF A ,   mf ( P )   is   a   mem-basic   form .
This follows by induction on the depth d ( P ) of P. If d ( P ) = 0 , then P { T , F } , and hence mf ( P ) = P is a mem-basic form. For the inductive case d ( P ) = n + 1 , it must be the case that P = Q     a     R . We find
mf ( Q     a     R )   = mf ( a ( Q ) )     a     mf ( r a ( R ) ) ,
which is a mem-basic form because by Lemma 19, a ( Q ) and r a ( R ) are basic forms with depth smaller than or equal to n, so by the induction hypothesis, mf ( a ( Q ) ) is a mem-basic form over A Q and mf ( r a ( R ) ) is a mem-basic form over A R for suitable subsets A Q and A R of A. Notice that by the definition of a and r a we can assume that the atom a does not occur in A Q A R . Hence, mf ( a ( Q ) )     a     mf ( r a ( R ) ) is a mem-basic form over A Q A R { a } , which completes the proof of (11).
The lemma’s statement now follows by structural induction: the base cases (comprising a single atom a) are again trivial, and for the inductive case,
mbf ( P     Q     R ) = mf ( bf ( P     Q     R ) ) = mf ( S )
For some basic form S by Lemma 4, and by (11), mf ( S ) is a mem-basic form. □
With Lemma 20 we can easily prove the following result.
Proposition 5 (mbf is a normalisation function).
For each P C A , mbf ( P ) is a mem-basic form, and for each mem-basic form P, mbf ( P ) = P .
Proof. 
The first statement is Lemma 20. For the second statement, it suffices by Lemma 5 to prove that mf ( P ) = P . We prove this by induction on d ( P ) . The base cases P { T , F } are trivial, and for the inductive case, assume P = Q     a     R ; thus, mf ( P ) = mf ( a ( Q ) )     a     mf ( r a ( R ) ) . Because P is a mem-basic form, Q and R are mem-basic forms in which a does not occur, and thus a ( Q ) = Q and r a ( R ) = R . By induction, mf ( Q ) = Q and mf ( R ) = R , and thus mf ( P ) = P . □
Lemma 21.
For all P BF A , CP mem P = mf ( P ) .
Proof. 
We first prove an auxiliary result:
For   all   a A   and   P , Q BF A ,   CP mem     P     a     Q = P     a     r a ( Q ) ,
  P     a     Q = a ( P )     a     Q .
Fix some a A . We prove (12) by structural induction on Q. The base cases Q { T , F } are trivial. For the inductive case Q = Q 1     b     Q 2 we have to distinguish the cases b = a and b a . If b = a , then r a ( Q ) = r a ( Q 2 ) and
CP mem P     a     ( Q 1     a     Q 2 )   = P     a     Q 2     by   ( 9 )   = P     a     r a ( Q 2 )     by   IH   = P     a     r a ( Q ) .
If b a , then r a ( Q ) = r a ( Q 1 )     b     r a ( Q 2 ) and
CP mem P     a     ( Q 1     b     Q 2 )   = P     a     ( ( T     a     Q 1 )     b     ( T     a     Q 2 ) )     by   ( CPmem ) ,   ( CPm 2 )   = P     a     ( ( T     a     r a ( Q 1 ) )     b     ( T     a     r a ( Q 2 ) ) )     by   IH   ( twice )   = P     a     ( r a ( Q 1 )     b     r a ( Q 2 ) )     by   ( CPmem ) ,   ( CPm 2 )   = P     a     r a ( Q ) .
Auxiliary result (13) follows in a similar way with help of axioms (CPm1) and (CPm3).
The lemma’s statement follows by induction on d ( P ) . The base cases P { T , F } are trivial. For the inductive case, assume P = Q     a     R . We derive
CP mem Q     a     R   = a ( Q )     a     r a ( R )     by   ( 12 ) ,   ( 13 )   = mf ( a ( Q ) )     a     mf ( r a ( R ) )     by   IH   ( and   Lemma 19 )   = mf ( Q     a     R ) .
Theorem 9.
For all P C A , CP mem P = mbf ( P ) .
Proof. 
By Theorem 2 and Corollary 1, CP mem P = bf ( P ) , and by Lemma 21, CP mem bf ( P ) = mf ( bf ( P ) ) and mf ( bf ( P ) ) = mbf ( P ) . □
Definition 21.
The binary relation = mbf on C A is defined as follows:
P = mbf Q     mbf ( P ) = mbf ( Q ) .
Theorem 10.
For all P , Q C A , CP mem P = Q   P = mbf Q .
Proof. 
(⇒) Assume CP mem P = Q . Then, by Theorem 9, CP mem mbf ( P ) = mbf ( Q ) . In ref. [5], the following two statements are proven (Theorem 8.1 and Lemma 8.4), where = mem is the binary relation on C A that specifies memorising valuation congruence:
  • For all P , Q C A , CP mem P = Q     P = mem Q .
  • For all mem-basic forms P and Q ,   P = mem Q     P = Q .
By Lemma 20, these statements imply mbf ( P ) = mbf ( Q ) ; that is, P = mbf Q .
(⇐) Assume P = mbf Q . By Theorem 9, CP mem P = Q . □
Hence, the relation = mbf is axiomatised by CP mem and is thus a congruence that coincides with memorising valuation congruence as defined in ref. [5]. We define a transformation on evaluation trees that mimics the function mbf , and prove that equality of two such transformed trees characterises the congruence that is axiomatised by CP mem .
Definition 22.
The unary memorising evaluation function
mse : C A T A
yields memorising evaluation trees and is defined by mse ( P ) = m ( s e ( P ) ) .
The auxiliary function m : T A T A is defined as follows ( a A ):
m ( B ) = B     for   B { T , F } , m ( X   ̲   a   ̲   Y ) = m ( L a ( X ) )   ̲   a   ̲   m ( R a ( Y ) ) .
For a A , the auxiliary functions L a : T A T A (left a-reduction) and R a : T A T A (right a-reduction) are defined by
L a ( B ) = R a ( B ) = B     for   B { T , F } , L a ( X   ̲   b   ̲   Y ) = L a ( X )   if   b = a , L a ( X )   ̲   b   ̲   L a ( Y )   otherwise , R a ( X   ̲   b   ̲   Y ) = R a ( Y )   if   b = a , R a ( X )   ̲   b   ̲   R a ( Y )   otherwise .
As a simple example, we depict s e ( ( a     b     F )     a     F ) and the memorising evaluation tree mse ( ( a     b     F )     a     F ) :
Mathematics 14 00280 i004The similarities between mse and the function mbf will of course be exploited.
Lemma 22.
For all P BF A , m ( s e ( P ) ) = s e ( mf ( P ) ) .
Proof. 
We first prove an auxiliary result:
For   all   a A   and   P BF A ,   L a ( s e ( P ) ) = s e ( a ( P ) )   and   R a ( s e ( P ) ) = s e ( r a ( P ) ) .
Fix some a A . We prove (14) by structural induction on P. The base cases P { T , F } are trivial. For the inductive case P = Q     b     R we have to distinguish the cases b = a and b a . If b = a , then
L a ( s e ( Q     a     R ) )   = L a ( s e ( Q )   ̲   a   ̲   s e ( R ) )   = L a ( s e ( Q ) )   = s e ( a ( Q ) )     by   IH   = s e ( a ( Q     a     R ) ) ,
and if b a , then
L a ( s e ( Q     b     R ) )   = L a ( s e ( Q )   ̲   b   ̲   s e ( R ) )   = L a ( s e ( Q ) )   ̲   b   ̲   L a ( s e ( R ) )   = s e ( a ( Q ) )     b     s e ( a ( R ) )     by   IH   = s e ( a ( Q     b     R ) ) .
The second equality can be derived in a similar way, and this finishes the proof of (14).
We prove the lemma’s statement by induction on d ( P ) . The base cases P { T , F } follow immediately. Assume P = Q     a     R ; then,
m ( s e ( Q     a     R ) )   = m ( s e ( Q )   ̲   a   ̲   s e ( R ) )   = m ( L a ( s e ( Q ) ) )   ̲   a   ̲   m ( R a ( s e ( R ) ) )   = m ( s e ( a ( Q ) ) )   ̲   a   ̲   m ( s e ( r a ( R ) ) )     by   ( 14 )   = s e ( mf ( a ( Q ) ) )   ̲   a   ̲   s e ( mf ( r a ( R ) ) )     by   IH   ( and   Lemma 19 )   = s e ( mf ( a ( Q ) )     a     mf ( r a ( R ) ) )   = s e ( mf ( Q     a     R ) ) .
Definition 23.
Memorising se-congruence, notation = mse , is defined on C A as follows:
P = mse Q     mse ( P ) = mse ( Q ) .
The following characterisation result immediately implies that = mse is indeed a congruence relation on C A .
Proposition 6. 
For all P , Q C A , P = mse Q     P = mbf Q .
Proof. 
(⇒) Assume mse ( P ) = mse ( Q ) ; thus, m ( s e ( P ) ) = m ( s e ( Q ) ) . By Corollary 1, m ( s e ( bf ( P ) ) ) = m ( s e ( bf ( Q ) ) ) , and so by Lemma 22,
s e ( mf ( bf ( P ) ) ) = s e ( mf ( bf ( Q ) ) ) .
By Lemma 2, it follows that mf ( bf ( P ) ) = mf ( bf ( Q ) ) ; that is, P = mbf Q .
(⇐) If P = mbf Q , then s e ( mf ( bf ( P ) ) ) = s e ( mf ( bf ( Q ) ) ) , and by Lemma 22,
m ( s e ( bf ( P ) ) ) = m ( s e ( bf ( Q ) ) ) .
By Corollary 1, m ( s e ( P ) ) = m ( s e ( Q ) ) ; that is, P = mse Q . □
We end this section with a completeness result for memorising se-congruence.
Theorem 11 (Completeness of CP mem ).
For all P , Q C A ,
CP mem P = Q     P = mse Q .
Proof. 
Combine Theorem 10 and Proposition 6. □

6. Evaluation Trees for Static Valuation Congruence

The most identifying axiomatic extension of CP we consider can be defined by adding the following axiom to CP mem :
( CPs )                                       F     x     F = F .
So, the evaluation value of each atom in a conditional statement is memorised, and by axiom (CPs), no atom a can have a side effect because T     ( F     a     F )     P = T     F     P = P for all P C A . We write CP s for the set of these axioms, and thus
CP s = CP mem { ( CPs ) } = CP { ( CPmem ) , ( CPs ) } .
Observe that CP s T = T     ( F     x     F )     T = ( T     F     T )     x     ( T     F     T ) = T     x     T ; the duality principle holds in CP s . The following lemma is a direct consequence of axiom (CPs).
Lemma 23.
CP s x     y     x = x .
Proof. 
CP s x     y     x = ( T     F     x )     y     ( T     F     x )     by   ( CP 2 )   = T     ( F     y     F )     x     by   ( CP 4 )   = x .     by   ( CPs ) ,   ( CP 2 )
A simple example on CP s illustrates how the order of evaluation of x and y in x     y     F can be swapped:
x     y     F   = y     x     F .
Equation (15) can be derived as follows:
CP s x     y     F   = ( ( T     x     F )     y     F )     x     ( ( T     x     F )     y     F )     by   ( CP 3 ) ,   Lemma 23   = ( T     y     F )     x     ( F     y     F )     by   ( CPm 3 ) ,   ( CPm 2 )   = y     x     F .     by   ( CP 3 ) ,   ( CPs )
In ref, [5], Bergstra and Ponse defined CP s t as the extension of CP with the following two axioms:
( CPstat )     ( x     y     z )     u     v = ( x     u     v )     y     ( z     u     v ) , ( the   contraction   law   ( 10 ) )     ( x     y     z )     y     u = x     y     u .
Axiom (CPstat) expresses how the order of evaluation of u and y can be swapped. Because we will rely on the results for CP s t recorded in ref. [5], we first prove the following result.
Proposition 7.
The axiom sets CP st and CP s are equally strong.
Proof. 
We show that all axioms in the one set are derivable from the other set. We first prove that the axiom (CPmem) is derivable from CP st :
CP st x     y     ( z     u     ( v     y     w ) )   = x     y     ( ( v     y     w )     ( F     u     T )     z )     by   ( CP 4 ) ,   ( CP 2 ) ,   ( CP 1 )   = x     y     ( ( v     ( F     u     T )     z )     y     ( w     ( F     u     T )     z ) )     by   ( CPstat )   = x     y     ( w     ( F     u     T )     z )     by   ( 9 )   = x     y     ( z     u     w ) ,     by   ( CP 4 ) ,   ( CP 2 ) ,   ( CP 1 )
where the contraction law (9) is derivable from CP st ; replace y by F     y     T in (10). Hence, CP s ( CPmem ) . If u = v = F in axiom (CPstat), we find F = F     y     F , and hence CP st CP s .
In order to show that CP s CP st we have to derive CP s (CPstat):
CP s   ( x     y     z )     u     v   = ( x     y     ( z     u     v ) )     u     v     by   ( CPm 1 )   = ( x     y     ( z     u     v ) )     u     ( z     u     v )     by   ( 9 )   = x     ( y     u     F )     ( z     u     v )     by   ( CP 4 ) ,   ( CP 2 )   = x     ( u     y     F )     ( z     u     v )     by   ( 15 )   = ( x     u     ( z     u     v ) )     y     ( z     u     v )     by   ( CP 4 ) ,   ( CP 2 )   = ( x     u     v )     y     ( z     u     v ) .     by   ( 9 )
Given a finite, ordered subset of atoms we define a proper subset of basic forms with the property that each propositional statement over these atoms can be proven equal to such a basic form.
Definition 24.
St-basic forms over σ A s are defined as follows:
  • T and F are st-basic forms over ϵ;
  • P     a     Q is an st-basic form over a ρ A s if P and Q are st-basic forms over ρ.
P is an st-basic form if for some σ A s , P is an st-basic form over σ.
For example, an st-basic form over a b A s has the following form:
( B 1     b     B 2 )     a     ( B 3     b     B 4 )
with B i { T , F } . For σ = a 1 a 2 a n A s , there exist 2 2 n different st-basic forms over σ .
It will be useful to define a function that transforms conditional statements to st-basic forms.
Definition 25. 
Let σ A s . Then, C σ is the set of closed terms in C A with atoms in σ, and BF σ is the subset of basic forms in C σ . The conditional statement E σ BF σ is defined as
E ϵ = F   and ,   if   σ = a ρ ,   E σ = E ρ     a     E ρ .
So, for each σ A s , E σ is an st-basic form over σ in which the constant T does not occur, e.g.,
E a b = ( F     b     F )     a     ( F     b     F ) .
Definition 26. 
The st-basic form function sbf σ : C σ C σ is defined by
sbf σ ( P ) = mbf ( T     E σ     P ) ,
where mbf is defined in Definition 20.
For example, sbf a b ( a ) = ( T     b     T )     a     ( F     b     F ) , sbf b a ( a ) = ( T     a     F )     b     ( T     a     F ) .
The reason that sbf σ ( P ) is defined relative to some σ A s that covers the alphabet of P is that in order to prove completeness of CP s (and CP s t ), we need to be able to relate conditional statements that contain different sets of atoms, but have equal st-basic forms for all appropriate σ , such as
sbf a b ( F ) = sbf a b ( F     a     F ) = sbf a b ( F     b     F ) = ( F     b     F )     a     ( F     b     F ) .
Lemma 24.
Let σ A s . For all P C A , CP s P = T     E σ     P .
Proof. 
By induction on the structure of σ . If σ = ϵ , then E σ = F and by axiom (CP2), CP s P = T     E ϵ     P . If σ = a ρ for some a A and ρ A s , then E σ = E ρ     a     E ρ , and hence
CP s P   = P     a     P     by   Lemma 23   = ( T     E ρ     P )     a     ( T     E ρ     P )     by   IH   = T     ( E ρ     a     E ρ )     P .     by   ( CP 4 )
Lemma 25.
Let σ A s . For all P C σ , sbf σ ( P ) is an st-basic form.
Proof. 
We first prove an auxiliary result:
  For   all   a A   and   P , Q BF A ,   a ( P [ F Q ] ) = ( a ( P ) ) [ F a ( Q ) ] and     r a ( P [ F Q ] ) = ( r a ( P ) ) [ F r a ( Q ) ] .
Both equalities follow easily by induction on the structure of P and we only show the inductive case for the first one. Choose a A . If P = P 1     a     P 2 , then a ( P ) = a ( P 1 ) and
  a ( P [ F Q ] ) = a ( P 1 [ F Q ]     a     P 2 [ F Q ] ) = a ( P 1 [ F Q ] )       = IH ( a ( P 1 ) ) [ F a ( Q ) ] = ( a ( P ) ) [ F a ( Q ) ] ,
and if P = P 1     b     P 2 with b a , then a ( P ) = a ( P 1 )     b     a ( P 2 ) and
  a ( P [ F Q ] ) = a ( P 1 [ F Q ]     b     P 2 [ F Q ] ) = a ( P 1 [ F Q ] )     b     a ( P 1 [ F Q ] )     = IH ( a ( P 1 ) ) [ F a ( Q ) ]     b     ( a ( P 2 ) ) [ F a ( Q ) ] = ( a ( P ) ) [ F a ( Q ) ] .
We prove the lemma’s statement by induction on the structure of σ . If σ = ϵ , then each P C σ contains no atoms. Hence, bf ( P ) { T , F } . If bf ( P ) = T , then
sbf ϵ ( P ) = mbf ( T     F     P ) = mf ( bf ( T     F     P ) ) = mf ( bf ( P ) ) = T ,
which is an st-basic form over ϵ . The case for bf ( P ) = F is similar. If σ = a ρ for some a A and ρ A s , then for each P C σ ,
sbf σ ( P )   = mbf ( T     E σ     P )   = mf ( bf ( T     E σ     P ) )   = mf ( E σ [ F bf ( P ) ] )     by   Lemma 5   = mf ( E ρ [ F bf ( P ) ]     a     E ρ [ F bf ( P ) ] )   = mf ( a ( E ρ [ F bf ( P ) ] ) )     a     mf ( r a ( E ρ [ F bf ( P ) ] ) )   = mf ( a ( E ρ ) [ F a ( bf ( P ) ) ] )     a     mf ( r a ( E ρ ) [ F r a ( bf ( P ) ) ] )     by   ( 16 )   = mf ( E ρ [ F a ( bf ( P ) ) ] )     a     mf ( E ρ [ F r a ( bf ( P ) ) ] )     by   a C ρ   = mf ( E ρ [ F bf ( a ( bf ( P ) ) ) ] )     a     mf ( E ρ [ F bf ( r a ( bf ( P ) ) ) ] )     by   Lemma 5   = mf ( bf ( T     E ρ     a ( bf ( P ) ) ) )     a     mf ( bf ( T     E ρ     r a ( bf ( P ) ) ) )   = sbf ρ ( a ( bf ( P ) ) )     a     sbf ρ ( r a ( bf ( P ) ) ) ,     by   IH
where (17) follows because a ( bf ( P ) ) and r a ( bf ( P ) ) are conditional statements in C ρ (thus, not containing a), and so by induction, sbf ρ ( a ( bf ( P ) ) ) and sbf ρ ( r a ( bf ( P ) ) ) are st-basic forms over ρ . Hence, sbf σ ( P ) is an st-basic form over σ . □
With Lemma 25 we can easily prove the following result.
Proposition 8 (sbf is a normalisation function).
Let σ A s . For each P C σ , sbf σ ( P ) is an st-basic form over σ, and for each st-basic form P over σ, sbf σ ( P ) = P .
Proof. 
The first statement is Lemma 25. We prove the second statement by induction on the structure of σ . If σ = ϵ , sbf σ ( P ) = P by definition.
If σ = a ρ , then P = P 1     a     P 2 with P i st-basic forms over ρ ; thus, a ( P 1 ) = P 1 and r a ( P 2 ) = P 2 . For brevity, we identify below bf ( Q ) and Q for all Q BF A :
sbf σ ( P )   = mbf ( T     E a ρ     ( P 1     a     P 2 ) )   = mf ( E ρ a [ F P 1     a     P 2 ] )     as   above   = mf ( E ρ [ F P 1     a     P 2 ]     a     E ρ [ F P 1     a     P 2 ] )   = mf ( a ( E ρ [ F P 1     a     P 2 ] )     a     mf ( r a ( E ρ [ F P 1     a     P 2 ] ) )   = mf ( a ( E ρ ) [ F a ( P 1     a     P 2 ] ) )     a                                                                                                                                             mf ( r a ( E ρ ) [ F r a ( P 1     a     P 2 ] ) )     by   ( 16 )   = mf ( E ρ [ F P 1 ] )     a     mf ( E ρ [ F P 2 ] )     by   a C ρ   = sbf ρ ( P 1 )     a     sbf ρ ( P 2 )   = P 1     a     P 2 .     by   IH
Lemma 26.
Let σ A s . For all P C σ , CP s P = sbf σ ( P ) .
Proof. 
By Lemma 24, CP s P = T     E σ     P . By Theorem 9, CP s T     E σ     P = mbf ( T     E σ     P ) , and hence CP s P = sbf σ ( P ) . □
Definition 27. 
Let σ A s . The binary relation = sbf ,   σ on C σ is defined as follows:
P = sbf ,   σ Q     sbf σ ( P ) = sbf σ ( Q ) .
Theorem 12.
Let σ A s . For all P , Q C σ , CP s P = Q   P = sbf ,   σ Q .
Proof. 
(⇒) Assume CP s P = Q . Then, by Lemma 26, CP s sbf σ ( P ) = sbf σ ( Q ) , and by Proposition 7, CP s t sbf σ ( P ) = sbf σ ( Q ) . In ref. [5], the following two statements are proven (Theorem 9.1 and an auxiliary result in its proof), where = s t is the binary relation on C A that specifies static valuation congruence:
  • For all P , Q C A , CP s t P = Q     P = s t Q .
  • For all st-basic forms P and Q ,   P = s t Q   P = Q .
By Lemma 25, these statements imply sbf σ ( P ) = sbf σ ( Q ) , and thus P = sbf ,   σ Q .
(⇐) Assume P = sbf ,   σ Q , thus T     E σ     P = mbf T     E σ     Q . By Theorem 10, CP mem T     E σ     P = T     E σ     Q , and by Lemma 24, this implies CP s P = Q . □
Hence, the relation = sbf ,   σ is a congruence on C σ that is axiomatised by CP s and coincides with static valuation congruence as defined in ref. [5]. Below we define static evaluation trees with help of the function sbf σ and prove that the equality of two such trees characterises this congruence.
Definition 28. 
Let σ A s . The unary static evaluation function sse σ : C σ T A yields static evaluation trees and is defined as follows:
sse σ ( P ) = s e ( sbf σ ( P ) ) ,
where sbf σ is defined in Definition 26 and s e in Definition 3.
As an example, let P = ( a     b     F )     a     T . We depict s e ( P ) at the left-hand side. The static evaluation tree sse a b ( P ) is depicted in the middle, and the static evaluation tree sse b a ( P ) is depicted at the right-hand side:
Mathematics 14 00280 i005The two different static evaluation trees correspond to the different ways in which one can present truth tables for P, that is, the different possible orderings of the valuation values of the atoms occurring in P: Mathematics 14 00280 i006
The similarities between sse σ and the function sbf σ can be exploited and lead to a completeness result.
Definition 29. 
Let σ A s . Static valuation congruence over σ, notation = sse ,   σ , is defined on C σ as follows:
P = sse ,   σ Q     sse σ ( P ) = sse σ ( Q ) .
The following characterisation result immediately implies that for all σ A s , = sse ,   σ is indeed a congruence relation on C σ .
Proposition 9.
Let σ A s . For all P , Q C σ , P = sse ,   σ Q P = sbf ,   σ Q .
Proof. 
This follows by Proposition 6. □
We end this section with a completeness result for static valuation congruence.
Theorem 13 (Completeness of CP s ).
Let σ A s . For all P , Q C σ ,
CP s P = Q     P = sse ,   σ Q .
Proof. 
Combine Theorem 12 and Proposition 9. □

7. Conclusions

In 2011, Bergstra and Ponse introduced proposition algebra in ref. [5], which is based on Hoare’s conditional connective x     y     z and the constants T and F . Four simple equational axioms specify “free valuation congruence” ( = f r ) and the addition of two axioms specifies “static valuation congruence” ( = s t ), which represents propositional logic. Some other valuation congruences that lie in between free and static valuation congruence were also defined, and in this paper we paid attention to repetition-proof, contractive, and memorising valuation congruence, in symbols = r p , = c r , and = m e m .
In ref. [10], Bergstra and Ponse introduced an alternative valuation semantics for proposition algebra in the form of Hoare–McCarthy algebras (HMA’s), which is more elegant than the semantical framework provided in ref. [5]; HMA-based semantics has the advantage that one can define a valuation congruence without first defining the valuation equivalence it is contained in.
In this paper, we use Staudt’s evaluation trees [6] to characterise free valuation congruence as the relation “se-congruence”, the relation = se in Section 2, and this appears to be a relatively simple and stand-alone exercise, resulting in a semantics that is elegant and much simpler than HMA-based semantics [10] and the semantics defined in ref. [5]. By Theorem 1, = se coincides with free valuation congruence = f r because both relations are axiomatised by CP (see [5] (Theorems 4.4 and 6.2)). An advantage of “evaluation tree semantics” is that for a given conditional statement P, the evaluation tree s e ( P ) determines all relevant evaluations, so P = se Q is determined by evaluation trees that contain no more atoms than those that occur in P and Q; this is comparable to how truth tables can be used in the setting of propositional logic.
In Section 3 we define “repetition-proof se-congruence” = rpse on C A by P = rpse Q if, and only if, rpse ( P ) = rpse ( Q ) , where rpse ( P ) = rp ( s e ( P ) ) and rp is a transformation function on evaluation trees. It is clear that this transformation is “natural”, given the axiom schemes (CPrp1) and (CPrp2) that are characteristic for CP rp ( A ) . The equivalence on C A that we want to prove is
CP rp ( A ) P = Q     P = rpse Q ,
by which = rpse coincides with the repetition-proof valuation congruence as defined in ref. [5] because both are axiomatised by CP rp ( A ) (see [5] (Theorem 6.3)). So, by equivalence (18), = rpse is a congruence relation on C A . However, we could not find a direct proof of this fact and chose to simulate the transformation rpse by the transformation rpbf on conditional statements, and to prove that the associated equivalence relation = rpbf is axiomatised by CP rp ( A ) , and is hence a congruence. This is Theorem 4, the proof of which depends on ref. [5] (Theorem 6.3; this theorem requires that | A | > 1 , and so does the HMA approach in ref. [10]) and on Theorem 3; that is,
For   all   P C A ,   CP rp ( A ) P = rpbf ( P ) .
In order to prove (18) (which is Theorem 5), it is thus sufficient to prove that = rpbf and = rpse coincide, and this is Proposition 2. Although it remains a challenge to find a direct and elegant proof of equivalence (18), we can conclude that repetition-proof evaluation trees and the valuation congruence = rpse provide full-fledged, simple, and elegant semantics for CP rp ( A ) .
The structure of our completeness proofs of the axiomatisations of the other se-congruences is very similar, although the case for static se-congruence requires a slightly more complex proof (we return to this point below). Moreover, these axiomatisations are incremental: the axiom systems CP rp ( A ) , up to and including CP s , all share the axioms of CP , and each succeeding system is defined by the addition of either one or two axioms (schemes), in most cases making the previously added axiom(s) redundant (in Appendix A, we provide some independence results). Given some σ A s , this implies that in C σ ,
= se     = rpse     = cse     = mse     = sse ,   σ   ,
where all these inclusions are proper. We conclude that for the se-congruences = se up to = mse , the associated evaluation trees provide full-fledged, simple, and elegant semantics.
The case for static se-congruence over C σ for some σ A s is somewhat more involved. This semantics coincides with any standard semantics of propositional logic in the following sense:
P = sse ,   σ Q     if ,   and   only   if ,     P ¯ Q ¯     is   a   tautology   in   propositional   logic ,
where P ¯ and Q ¯ refer to Hoare’s definition ref. [2]:
x     y     z ¯ = ( x ¯ y ¯ ) ( ¬ y ¯ z ¯ ) ,   a ¯ = a     for   a C σ ,   T ¯ = T ,   F ¯ = F .
Let σ A s and a C σ . The fact that = sse ,   σ is stronger than = mse is immediately clear:
F     a     F = sse ,   σ F ,
where it is easy to see that F     a     F mse F . Our proof that CP s (and thus CP s t as defined in ref. [5]) is an axiomatisation of static se-congruence is slightly more complex than those for the other axiomatisations because in this case the evaluation of a conditional statement P does not enforce a canonical order for the evaluation of its atoms, and therefore such an ordering should be fixed beforehand in order to construct an adequate evaluation tree. To this purpose, we can use any σ A s that covers the atoms in P.
We continue with a brief digression on short-circuit logic, which we defined in ref. [11] (see Bergstra and Ponse [10] for a quick introduction), and an example on the use of CP rp ( A ) . Familiar binary connectives that occur in the context of imperative programming and that prescribe short-circuit evaluation, such as & & (called “logical AND” in the programming language C), are often defined in the following way:
P   & &   Q   = def   if P then Q else false ,
independent of the precise syntax of P and Q; hence, P   & &   Q = def Q     P     F . It easily follows that & & is associative.
In a similar way, negation can be defined by ¬ P = def F     P     T . In ref. [11], we focus on this question:
Question 1.
Which are the logical laws that characterise short-circuit evaluation of binary propositional connectives?
A first approach to this question is to adopt the conditional as an auxiliary operator, as is the approach in ref. [10,11], and to answer Question 1 using definitions of the binary propositional connectives as above and the axiomatisation for the se-congruence of interest in proposition algebra (or, if “mixed conditional statements” are at stake, axiomatisations for the appropriate se-congruences). An alternative and more direct approach to Question 1 is to establish axiomatisations for short-circuited binary connectives in which the conditional is not used. For free se-congruence, a complete equational axiomatisation of short-circuited binary propositional connectives is provided by Staudt in ref. [6], where
s e ( P   & &   Q ) = def s e ( P ) [ T s e ( Q ) ]         and         s e ( ¬ P ) = def s e ( P ) [ T F , F T ]
(and where the function s e is also defined for short-circuited disjunction). The completeness proof is based on decomposition properties of evaluation trees. For repetition-proof and contractive se-congruence we conjecture that a finite equational axiomatisation of the short-circuited binary propositional connectives does not exist if | A | > 2 . We continue with two examples on the use of CP rp ( A ) and CP cr ( A ) , both taken from [11].
Example 3
 ([11], Example 4). Let A be a set of atoms of the form ( e   = =   e ) and ( n   =   e ) with n some initialized integer program variable and e , e arithmetical expressions over the integers that may contain n . Assume that ( e   = =   e ) evaluates to true if e and e represent the same value, and ( n   =   e ) always evaluates to true with the effect that the value of e is assigned to n . Then, these atoms satisfy the axioms of CP rp ( A ) (of course, not all equations that are valid in the setting of Example 3 follow from CP rp ( A ) , e.g., CP rp ( A ) ( 0   = =   0 ) = T ). Note that if n has initial value 0 or 1 , ( ( n   =   n + 1 )   & &   ( n   =   n + 1 ) )   & &   ( n   = =   2 ) , and ( n   =   n + 1 )   & &   ( n   = =   2 ) evaluate to different results, so the atom ( n   =   n + 1 ) does not satisfy the law “ a   & &   a = a ”, by which this is a typical example of the repetition-proof characteristic of CP rp ( A ) .
Example 4
 ([11], Example 3). An example in the same style that illustrates the use of CP cr ( A ) concerns atoms that define manipulation of Boolean registers. Let A = { ( set : i : j ) , ( eq : i : j ) 1 i n ,   j { T , F } } with n the number of registers and j the value of registers.
  • Upon evaluation, atom ( set : i : j ) can have a side effect (it sets register i to value j ) and always yields true.
  • Upon evaluation, atom ( eq : i : j ) has no side effect and yields only true if register i has value j .
It is clear that the axioms of CP cr ( A ) are valid, as is their consequence “ a   & &   a = a ” for all a A . However, t   & &   t = t is not true for all t Σ CP ( A ) . Let t = ( eq : 1 : F )   & &   ( set : 1 : T ) . If register 1 has value F , then evaluation of t yields true , while evaluation of t   & &   t yields false .
Furthermore, we note that the se-congruences = se up to = cse can be used as a basis for systematic analysis of the kind of side effects that may occur upon the evaluation of short-circuited connectives as in Examples 3 and 4, and we quote these words of Parnas [12]:
“Most mainline methods disparage side effects as a bad programming practice. Yet even in well-structured, reliable software, many components do have side effects; side effects are very useful in practice. It is time to investigate methods that deal with side effects as the normal case.”
Although side effects are well understood in programming, see e.g., Black and Windley [13], they are often explained informally and systematic surveys and analyses do not yet appear to be available.
We finally note that the value of CP mem lies primarily in the fact that it is a stepping stone to defining static se-congruence (and more se-congruences, see the section below on related and future work), rather than in direct applications in the field of programming.

Related and Future Work

As mentioned in the Introduction, this paper is a journal version of the conference paper [1] by Bergstra and Ponse entitled, Evaluation trees for proposition algebra: The case for free and repetition-proof valuation congruence. In ref. [1], “free valuation congruence” and “repetition-proof valuation congruence” are defined using evaluation trees. However, in the earlier paper [5], Bergstra and Ponse define both “free valuation congruence” and “repetition-proof valuation congruence” as the smallest congruence arising from the corresponding “valuation equivalence”, which in turn is defined using a variety of so-called valuation algebras. In this article, we use “se-congruence” and “repetition-proof valuation congruence” for the congruences defined in ref. [1].
In the journal paper [14], we discuss several three-valued versions of proposition algebra and their evaluation trees, with help of a constant U U that represents the truth value undefined . This paved the way for the recent paper [9], in which Bergstra and Ponse define “conditional short-circuit logic”, based on the work of Guzmán and Squier in [15], in which three-valued “conditional logic” is studied. Conditional logic is based on the notion of a regular extension of classical logic, defined by Kleene in ref. [16], and on the observation that up to anti-isomorphism, there is a unique regular extension of the classical boolean algebra B = { T , F } with ordinary negation (′), conjunction (∧), and disjunction (∨) to a three-valued logic with non-commutative ∧ and ∨ which satisfies deMorgan’s laws x = x and ( x y ) = x y ; the name “conditional logic” stems from Gries [17] and this logic was first studied by McCarthy [18]. In ref. [9], two-valued and three-valued conditional short-circuit logic are distinguished, each of which gives rise to a corresponding “conditional valuation congruence”, defined in terms of “CL-basic forms”, although it is noted that “free valuation congruence” is defined in ref. [5]. In the two-valued case, this is a congruence that is in between memorising and static se-congruence. A typical identity in the underlying proposition algebra with a , b A is
( P 1     b     P 2 )     a     ( Q 1     b     Q 2 ) = ( P 1     a     Q 1 )     b     ( P 2     b     Q 2 )
and an example of a non-valid equation is F     a     F = F . Like in the case for static se-congruence, CP mem and its associated short-circuit logic are a technical basis for this work.
In ref. [6], Staudt defined “free fully evaluated logic”, which characterises free valuation congruence for fully evaluated connectives (and negation), and came up with a completeness result. The binary connective “fulland”, which we represent here by the symbol &, can be characterised by the equation
x   &   y = y     x     ( F     y     F ) .
Hence, y is always evaluated, even when the evaluation result is already known to be false . In ref. [6], evaluation trees for expressions with & and its dual connective “fullor” are defined and their equality is axiomatised. This led to [19], in which Ponse and Staudt defined memorising, conditional, and static fully evaluated logic. In ref. [20], Cornets de Groot studied the “left-sequential exclusive OR” XOR, defined by
x   XOR   y = ( F     y     T )     x     y ,
so that y is always evaluated. With regard to this binary (sequential) connective, there is therefore no difference between short-circuited and full evaluation (in [20], the “left-sequential NAND” NAND, defined by x   NAND   y = ( F     y     T )     x     T is also studied, and this work contains several completeness and expressiveness results with respect to free valuation congruence).
In the near future, we plan to investigate three-valued free, memorising, and conditional se-congruence, in particular their axiomatisations and normalisation functions.

Author Contributions

J.A.B., A.P. and D.J.C.S. contributed equally to this work. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding. The APC was funded by MDPI.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Acknowledgments

We would like to thank the anonymous reviewers for their helpful comments, which have certainly improved the article.

Conflicts of Interest

The authors declare no conflicts of interest.

Appendix A. Independent Axiomatisations

All results mentioned below were found by or checked with the theorem prover Prover9 (Version 0.5B), and finite (counter) models were generated with the tool Mace4 (Version 0.5B). For both tools, including free downloads, see [21]. We used these tools on a Macbook Pro with a 2.4 GHz dual-core Intel Core i5 processor and 4 GB of RAM.
Firstly, the axioms (CP1)–(CP4) of CP (see Table 1, and also Table A1) are independent; this is easily verified with help of Mace4 and the same is true for the axioms of CP rp ( A ) and CP cr ( A ) (see Section 3 and Section 4). Furthermore, as was noted in Section 4, CP cr ( A ) CP rp ( A ) .
Also CP mem is independent; it is, for example, immediately clear that the memorising axiom (CPmem) (also included in Table A1) is independent from those of CP : the evaluation trees of a and T     a     a are different. Also, all other axioms of CP mem are independent and we briefly explain how the tool Mace4 can be used to prove this for axiom (CP1). Taking for example the CP -axioms (CP2)–(CP4) and (CPmem) as assumptions, a model of size two for these axioms that refutes the (CP1)-instance F     T     F = F is the following, which was generated by Mace4:
Mathematics 14 00280 i007
Table A1. The set CP s of equational axioms for static valuation congruence, and three more axioms.
Table A1. The set CP s of equational axioms for static valuation congruence, and three more axioms.
x     T     y = x (CP1)
x     F     y = y (CP2)
T     x     F = x (CP3)
       x     ( y     z     u )     v = ( x     y     v )     z     ( x     u     v ) (CP4)
       x     y     ( z     u     ( v     y     w ) ) = x     y     ( z     u     w ) (CPmem)
F     x     F = F (CPs)
x     y     x = x (CP1,2)
( x     y     z )     y     F = y     x     F (CP3s)
x     y     ( v     y     w ) = x     y     w (Contr1)
The case for CP s is more complex, and in Table A1 we give its six axioms and three other axioms that we will use to define alternative axiomatisations. With Prover9 it quickly follows that the axiom (CP1) is derivable from CP s { ( CP 1 ) } and with Mace4 that the axioms in the latter set are independent. Furthermore, in ref. [14] (Table 5), an alternative set of independent axioms for CP s is given that is concise and simple, and equally strong (this follows with help of Prover9), and independence follows with the help of Mace4:
{ ( CP 1 ) ,     ( CP 2 ) ,     ( CP 3 s ) ,     ( CP 4 ) } .
Note that the axiom (CP3s) with y = T implies (CP3), and with y = F the axiom (CPs); hence, its name.
Following Lemma 23, we finally note that there is another axiomatisation of static valuation congruence that consists of only four independent axioms and is at least as elegant:
{ ( CP 1 , 2 ) ,     ( CP 3 ) ,     ( CP 4 ) ,     ( Contr 1 ) } ,
where (CP1,2) is the equation of Lemma 23, i.e., x     y     x = x , and (Contr1) is the contraction law x     y     ( v     y     w ) = x     y     w (i.e, (9) in Section 5). With Prover9, it quickly follows that the axiomatisations (A1) and (A2) are equally strong, and the independence of (A2) also quickly follows with the help of Mace4.
Although we believe that CP s is sufficiently simple and expresses the fundamental intuitions in an appropriate manner, our reasons for presenting these two alternative axiomatisations are not only their independence (in contrast to CP s ), but also their striking simplicity compared to Hoare’s eleven axioms in ref. [2].
Ternary Boolean algebras are algebras of type ( 3 , 1 ) with one ternary operation f and one unary operation g defined by f ( x , y , z ) = x y + y z + z x and g ( x ) = x , where +, · and ′ are the Boolean join, meet, and complementation operations. In ref. [22], Padmanabhan and McCune present several single axioms, each of which constitutes a base for ternary Boolean algebra, and thus axiomatises static valuation congruence. As might be expected, these equations are complex and not easy to read. We finally mention the work of Fatelo and Martins-Ferreira [23], which offers a general study of classical algebras via ternary operations. These algebras all satisfy x     y     x = x and are thus related to the domain of static valuation congruence.

References

  1. Bergstra, J.A.; Ponse, A. Evaluation trees for proposition algebra: The case for free and repetition-proof valuation congruence. In Correct System Design: Symposium in Honor of Ernst-Rüdiger Olderog on the Occasion of His 60th Birthday, Oldenburg, Germany, 8–9 September 2015; Meyer, R., Platzer, A., Wehrheim, H., Eds.; Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 2015; Volume 9360, pp. 44–61. [Google Scholar] [CrossRef]
  2. Hoare, C.A.R. A couple of novelties in the propositional calculus. Math. Log. Q. 1985, 31, 173–178. [Google Scholar] [CrossRef]
  3. Church, A. Conditioned disjunction as a primitive connective for the propositional calculus. Port. Math. 1948, 7, 87–90. Available online: https://purl.pt/2171/1/j-5293-b-vol7-fasc2-art3_PDF/j-5293-b-vol7-fasc2-art3_PDF_01-B-R0300/j-5293-b-vol7-fasc2-art3_0000_capa1-90_t01-B-R0300.pdf (accessed on 25 November 2025).
  4. Church, A. Introduction to Mathematical Logic; Princeton University Press: Princeton, NJ, USA, 1956; Also Published as a Paperback Edition; De Gruyter Brill: 1991. [Google Scholar] [CrossRef]
  5. Bergstra, J.A.; Ponse, A. Proposition algebra. ACM Trans. Comput. Log. 2011, 12, 36. [Google Scholar] [CrossRef]
  6. Staudt, D.J.C. Completeness for Two Left-Sequential Logics. Master’s Thesis, University of Amsterdam, Amsterdam, The Netherlands, 2012. arXiv 2012, arXiv:1206.1936. [Google Scholar]
  7. Vu, T.D. Denotational semantics for thread algebra. J. Log. Algebr. Program. 2008, 74, 94–111. [Google Scholar] [CrossRef][Green Version]
  8. Aceto, L.; Chen, T.; Fokkink, W.J.; Ingolfsdottir, A. On the axiomatizability of priority. Math. Struct. Comput. Sci. 2008, 18, 5–28. [Google Scholar] [CrossRef]
  9. Bergstra, J.A.; Ponse, A. Conditional logic as a short-circuit logic. Sci. Ann. Comput. Sci. 2025, 35, 161–196. [Google Scholar] [CrossRef]
  10. Bergstra, J.A.; Ponse, A. Proposition algebra and short-circuit logic. In Proceedings of the 4th International Conference on Fundamentals of Software Engineering (FSEN 2011), Tehran, Iran, 20–22 April 2012; Arbab, F., Sirjani, M., Eds.; Lecture Notes in Computer Science. Springer: Berlin/Heidelberg, Germany, 2012; Volume 7141, pp. 15–31. [Google Scholar] [CrossRef]
  11. Bergstra, J.A.; Ponse, A.; Staudt, D.J.C. Short-circuit logic. arXiv 2013. [Google Scholar] [CrossRef]
  12. Parnas, D.L. Really rethinking ‘Formal Methods’. Computer 2010, 43, 28–34. [Google Scholar] [CrossRef]
  13. Black, P.E.; Windley, P.J. Inference rules for programming Languages with side effects in expressions. In Theorem Proving in Higher Order Logics; Goos, G., Hartmanis, J., van Leeuwen, J., von Wright, J., Grundy, J., Harrison, J., Eds.; Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 1996; Volume 1125, pp. 51–60. [Google Scholar] [CrossRef]
  14. Bergstra, J.A.; Ponse, A.; Staudt, D.J.C. Non-commutative propositional logic with short-circuit evaluation. J. Appl.-Non-Class. Logics 2021, 31, 234–278. [Google Scholar] [CrossRef]
  15. Guzmán, F.; Squier, C.C. The algebra of conditional logic. Algebra Universalis 1990, 27, 88–110. [Google Scholar] [CrossRef]
  16. Kleene, S.C. Introduction to Metamathematics; Van Nostrand: New York, NY, USA, 1952; ISBN 9780720421033. Also Published as a Hardback Edition: North Holland: 1980. [Google Scholar]
  17. Gries, D. The Science of Programming; Springer: New York, NY, USA, 1981. [Google Scholar] [CrossRef]
  18. McCarthy, J. A basis for a mathematical theory of computation. In Computer Programming and Formal Systems; Braffort, P., Hirschberg, D., Eds.; Studies in Logic and the Foundations of Mathematics; Elsevier: Amsterdam, The Netherlands, 1963; Volume 35, pp. 33–70. [Google Scholar] [CrossRef]
  19. Ponse, A.; Staudt, D.J.C. Fully evaluated left-sequential logics. J. Appl.-Non-Class. Logics 2025, 1–53. [Google Scholar] [CrossRef]
  20. Cornets de Groot, S.H. Logical Systems with Left-Sequential Versions of NAND and XOR. Master’s Thesis, University of Amsterdam, Amsterdam, The Netherlands, 2020. Available online: https://eprints.illc.uva.nl/id/eprint/1743/1/MoL-2020-02.text.pdf (accessed on 2 January 2026).
  21. McCune, W. The GUI: Prover9 and Mace4 with a Graphical User Interface: Prover9-Mace4, Version 0.5B; The University of New Mexico: Albuquerque, NM, USA, 2008. Available online: https://www.cs.unm.edu/~mccune/prover9/gui/v05.html (accessed on 17 November 2025).
  22. Padmanabhan, R.; McCune, W. Single Identities for Ternary Boolean Algebras. Comput. Math. Appl. 1995, 29, 13–16. [Google Scholar] [CrossRef]
  23. Fatelo, J.P.; Martins-Ferreira, N. Reconstructing classical algebras via ternary operations. Mathematics 2025, 13, 1407. [Google Scholar] [CrossRef]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.