IDNI AG, https://tau.netohad@idni.org \CopyrightCC-BY \hideLIPIcs\ccsdescTheory of computation Modal and temporal logics \ccsdescComputing methodologies Temporal reasoning \ccsdescComputing methodologies Boolean algebra algorithms
Guarded Successor: A Novel Temporal Logic
Abstract
We present GS (Guarded Successor), a novel decidable temporal logic with several unique distinctive features. Among those, it allows infinitely many data values that come not only with equality but with a somehow rich theory too: the first-order theory of atomless Boolean algebras. The language also distinguishes between inputs and outputs, and has a decision procedure for determining whether for all inputs exist outputs, at each point of time. Moreover, and maybe most surprisingly, the data values can be nothing but sentences in GS itself. We also present a non-temporal fragment called NSO (Nullary Second Order) that enjoys merely this last property. These results are crucial necessary ingredients in any meaningful design of safe AI. Finally, all those results are obtained from a novel treatment of the first-order theory of atomless Boolean algebras.
keywords:
Temporal Logic, Boolean Algebras, Guarded Fragment1 Introduction
Traditional computation is temporal manipulation of bits. Bits, are the elements of the smallest possible Boolean algebra. The construction here can be seen as a generalization of this into working over certain infinite Boolean algebras. Decidability of a specification language in this model is of course much less trivial. Further, we will show how this generalization can support some very surprising abilities.
In the following, GS (Guarded Successor) is introduced, an innovative and decidable temporal logic that offers several distinctive features. First, it accommodates infinitely many data values, enhanced by a complex theory: the first-order theory of atomless Boolean algebras. Second, the language differentiates between input and output variables, and allows a decision procedure to prove that for all inputs there exist outputs, at each point in time. Third, and perhaps most surprisingly, the data values can be sentences in GS itself. The language is closed under Boolean combinations and allows quantification over both data values and time points. Its decision procedure is of a uniquely simplistic and elegant nature, and differs very much from other common decision procedures. It relies on the ability to enhance certain languages with recurrence relations (a form of fixed-point operators), in particular an extension of the first order theory of atomless Boolean algebras.
We also present NSO (Nullary Second Order logic, a name that was selected during the first incarnations of the idea and perhaps has to be reconsidered), a non-temporal fragment that maintains the above third property. All of these findings stem from a new approach to the first-order theory of atomless Boolean algebras. These results are essential for designing safe AI systems.
For ease of understanding we will first introduce the non-temporal NSO logic and afterwards we will introduce GS, which can be seen as a temporal extension of NSO. All nontrivial proofs not appearing in the main text, appear in the appendix.
Ongoing implementation of the languages described in this paper appears at
the repository
https://github.com/idni/tau-lang.
Intellectual Property
The methods described here are protected from unauthorized use by IDNI Inc intellectual property rights, including patents. However, IDNI Inc. grants permission to use the methods for free in the following specific enumerated non-commercial instances: personal use, educational use , and academic purposes. The enumerated non-commercial instances do not include creation of open-source software that is distributed to others (whether for free or otherwise).
Acknowledgements
I would like to thank Enrico Franconi, Paweł Parys, and Lucca Tiemens for their review of this material and plenty of useful discussions.
1.1 NSO
The goal of NSO is to have a language that can speak about its own sentences in a consistent and decidable way. Tarski’s Undefinability of Truth has shown that this is impossible under a certain broad setting. The key of NSO is to abstract sentences, so much so, that they make merely Boolean algebra (BA) elements. In particular, there is no access to the syntax of the sentences (in contrast to Tarski’s setting which relies on Gödel numbers), and logically equivalent sentences are identified.
Any classical logic closed under Boolean combinations makes a BA called the Lindenbaum-Tarski Algebra (LTA) of that logic. Recall that this is only up to logical equivalence. Now observe two important points: 1. Any such logic that has an infinite signature (whether constant, relation, or function symbols), makes an atomless BA. 2. All countable atomless BAs are isomorphic (which is a well known theorem), and moreover, all atomless BAs are elementarily equivalent, as proved by Tarski. Clearly all sentences in languages of interest are finite strings over a finite alphabet, hence countable. The countable atomless BA is therefore the LTA of major logics of interest.
When we say “the theory of BA interpreted in a fixed BA ” we mean not only the first order theory of BA interpreted in (recall that an interpretation is a mapping taking symbols from the signature to actual objects in a structure), but we also mean that its signature is equipped with constants that are interpreted in each element of , so each element has a unique constant assigned to it. We will refer to those constants as the interpreted constants.
Fix a language that its LTA makes an atomless BA. Let NSO be the first-order theory of BA interpreted in that LTA, so each sentence in is a constant symbol in NSO. So far, NSO is a language that speaks about , but still not about itself. To this end, first we make the LTA of NSO be an atomless BA as well (as currently it is only the two-element BA, as any logic that is interpreted in a fixed structure). This can be done by adding infinitely many uninterpreted constant symbols (the uninterpreted constants), or any other such trick. Then, the interpreted constants are extended to include sentences in NSO (this is well-founded by introducing curly brackets as below). Since both and NSO make an atomless BA, they are elementarily equivalent under the signature of BA. By that we can make NSO speak (including quantify) over its own sentences. Further, NSO is decidable iff is decidable.
1.2 GS
As an intuitive starting point, any formula with two free variables, in any logic, can be seen as defining a set of sequences: we say that a sequence models iff any two consecutive elements in the sequence satisfy (we can interpret in a fixed model, or one may appeal to any suitable notion of satisfiability). We then write . Now consider the class of logics having the following property: fix a finite set of constant and variable symbols. Then the set of formulas making use only of those constant and free variable symbols (we allow, and require, arbitrarily many quantified variables), up to logical equivalence, is finite. Here, the most relevant such logic is the theory of atomless BA (whether or not interpreted in a fixed BA, and when it does, it is equipped with infinitely many interpreted constants as above, and this is the nontrivial case).
Denote by the length of . Given , consider the following process: ask whether exists s.t. and , then whether exists s.t. and , and so on. This series of questions may take the form of a recurrence relation with base-case (though our preferred form will be slightly different). Then means “exists a sequence of length starting with ”, and then to get a final answer (per each ) we of course need to consider . Due to the finiteness property above, this series of questions is going to loop (i.e. at one point, a logically equivalent formula will occur), and even reach a fixed point due to the monotonic nature of the setting. We obtain a result of the form: “if a sequence of length exists, then a sequence of any larger length exists”. It is easy to see that this implies the existence of an infinite sequence as well.
For now we mention only two additional points, which are apparently unique to this language in the landscape of decidable temporal logics:
-
1.
Seen as a program specification language, those sequences are actually outputs or states, however we’d like to support inputs as well. This means that we’d like to prove that for each input, at each point of time, exists an output, that does not depend on future inputs (time-compatible). So we can deal with formulas of the form where are the current and previous inputs, respectively, and similarly for the outputs . Observe the bounded lookback in this formula, and observe that can be seen as a free variable of sort which is implicitly quantified universally. The quantifier pattern for the inputs and outputs would look like . It is easy to express it as a recurrence relation similar to the above, and again use the finiteness property as above.
-
2.
Allowining GS to operate over the LTA of its own sentences, in the fashion of NSO, so is in the language of atomless BA, gives us a software specification language where inputs and outputs may be sentences in this very same language. This allows, for the first time, support implementations of the form: “reject a software update if it doesn’t satisfy certain desired properties” where the currently running program is written in the same language as the update, as well as those “desired properties”. It is therefore a crucial ingredient in AI safety. Fortunately, even decidability is preserved.
2 The Theory of Atomless Boolean Algebras
We assume that the reader is familiar with the definition of atomless BAs. We will denote the Boolean operations by (disjunction, conjunction, complementation, respectively) to distinguish them from logical connectives.
2.1 Boolean Functions and Equations
We follow Rudeanu’s terminology.
Definition 1.
A Boolean Function (BF) is a Boolean combination of variables and constants (from some chosen BA). A Simple Boolean Function (SBF) is a BF where all constants appearing in it are either or .
Note that this is in contrast to the common definition of BF, which is typically defined as what we call SBF. Also note that SBFs can be understood over any BA, but a BF which is not an SBF has to be understood over a single BA.
In the standard fashion, constant symbols in the theory of BA are only . However we deal with a much richer setting in which the theory of BA is interpreted in a fixed BA (typically atomless). The theory is then enhanced with infinitely many constant symbols in its signature, each uniquely corresponding to each of the BA elements. We’ll refer to those as the interpreted constants.
An atomic formula in the language of BA (interpreted in some fixed BA) is therefore of the form where are BFs and is a tuple of variables. Note that this is equivalent to where denotes the ring sum, alternatively XOR, or symmetric difference (similarly we’ll use juxtaposition for conjunction, mixing set-theoretic and ring-theoretic notations). So we assume that atomic formulas are of the form . In the standard formulation of the theory of BA (that do not involve the interpreted constants), atomic formulas would have to involve merely SBFs, and not BFs in general.
Any BA induces a partial order defined by . Recall that a BA is atomless iff the following holds: For ease of understanding of virtually any BA material, it is useful to bear in mind Stone’s representation theorem for BAs: any BA is isomorphic to a field of sets. Practically, it means that BA elements can always be realized as sets, where the Boolean operations coincide with the usual set operations, and coincides with . This justifies our set-theoretic notation. In LTAs, a formula can be seen as a set of models, which automatically entails identification under logical equivalence.
Given a system of equations (we shall always assume that all systems contain finitely many equations), it is easy to see that it is equivalent to a single equation . We shall refer to this as squeezing the positives. Similar “squeezing” is generally not possible for a system of the form , at least not in infinite BAs.
Definition 2.
A minterm in variables, denoted by , is a product where and .
If then we say that are disjoint. So is disjoint from all elements including itself. Observe that iff or or .
Definition 3.
A function is in minterm normal form if it is written as where .
Clearly any function in minterm normal form is a BF. The converse is also true. cf. [4] for the proof of the following theorem:
Theorem 4.
A function is a BF iff it can be written in minterm normal form .
Note that we use as tuples of variables, so the notation should be clear.
Corollary 5.
A BF is uniquely determined by its values over the two-element BA.
Now we describe Boole’s consistency condition. A system of equations is consistent if it has a solution. The following was discovered by Boole and is actually a case of quantifier elimination:
Theorem 6.
Let be a BF, then iff and iff
Theorem 7.
Let be a BF s.t. , or equivalently, . Then f iff for some , iff .
Our main proof of correctness for our quantifier elimination method in atomless BA will involve Hall’s marriage theorem. We present it here in its set-theoretical version:
Definition 8.
Let be sets, not necessarily distinct. A choice of elements such that for all is called a system of distinct representatives.
Theorem 9.
Let be a sequence of sets, not necessarily distinct. Then does not have a system of distinct representatives, iff there exists a subsequence of s.t. .
Remark 10.
A simple observation which we shall make use of later on is that a system of distinct representatives exists iff it exists for the subsequence in which all infinite ’s are removed from it. In other words, infinite sets in a finite collection of sets don’t influence the existence of distinct representatives.
The following theorem is our key step towards quantifier elimination:
Theorem 11.
Let be minterms in variables, and elements in some BA. Then iff whenever .
Corollary 12.
The system has a solution iff there exists s.t. whenever .
The corollary reduces the problem of determining consistency of the above system to a case of 9, once treating each as follows: if it can be written as a disjunction of distinct atoms, then we treat it as a set whose elements are those atoms, and each is a choice of one or more atoms. If and cannot be written as a union of atoms, then we treat it as an infinite set and by that it is eliminated from the problem as we have pointed out in remark 10.
Remark 13.
Observe that and recall that each BF can be written as a sum of minterms, or in DNF (note that writing a BF in DNF is not the same thing as writing a formula in DNF). This allows an alternative syntax for theories of BA where atomic formulas are of the form . We call this form minterm normal form. Note that this is not the same minterm normal form of BFs, as here it applies to forms of atomic formulas.
The above results together with the last remark imply with the following key conclusion:
Corollary 14.
Finitely many multivariate BFs over an atomless BA have a common nonzero iff none of them is identically zero.
2.2 Quantifier Elimination in Atomless BAs
Given a formula in the language of BA, we can write it in a way such that some chosen innermost quantifier is existential. We then convert everything under that quantifier to DNF. Distributing the existential over the DNF clauses, and squeezing the positives (as above) in each clause, we see that if we can eliminate the existential quantifier from a formula of the form , then we can eliminate all quantifiers. We’ll therefore deal only with such a case.
Lemma 15.
In any BA, the system has a solution iff has a solution.
Theorem 16.
In atomless BA, the system has a solution iff .
Proof.
Using the last lemma and 6. ∎
Proposition 17.
For any BF we have and .
Proof.
Exercise. ∎
Lemma 18.
In any BA, has a solution iff has a solution, iff
has a solution.
Corollary 19.
In atomless BA, the system has a solution iff .
Proof.
Applying corollary to 18. ∎
By that we conclude the final form of our quantifier elimination algorithm over atomless BAs. Basically we generalized proposition 5.5 in [5] from SBF to BF over atomless BA (or over any BA whenever the cardinalities of the constants appearing in the equations are large enough), using very different and much more direct methods, and we indicated how and why it fails in non-atomless BA. More treatment for the non-atomless case can be found at [1].
2.3 Number of Formulas
We presented minterm normal form of formulas in remark 13. This normal form puts a bound on the number of quantifier-free logically equivalent formulas with free variables and constants. The accounting is as follows: the formula is itself an SBF of atomic formulas, and there are different SBFs in variables. In our case is the number of possible minterms which is readily . We therefore end up with a triple exponential upper bound. This extends to quantified formulas as well due to quantifier elimination.
2.4 Recurrence Relations
We propose the notion of weakly -categorical theories. Recall that an -categorical theory is a first order theory in which all of its countable models are isomorphic. The Ryll-Nardzewski theorem says that this definition is equivalent to another definition: that up to logical equivalence, there are only finitely many formulas with free variables taken from a fixed finite set. This gives rise to defining weakly -categorical theories: those are theories for which the number of formulas using a fixed finite set of free variables and where the constants appearing in them are taken from a fixed finite subset of all constants in the language, up to logical equivalence, is finite. For the sake of this section, it does not matter whether or not the theory is partially interpreted in a fixed structure. The concept of partial interpretation is as follows: suppose we interpret a logic in a fixed structure. Now we enhance this logic with additional uninterpreted constants. Then a partial interpretation would be assigning domain elements to those newly added constant symbols.
It is easy to see, in light of the previous section and the quantifier elimination results, that the theory of atomless BA and of fixed finite BA, are both weakly -categorical. In what follows we shall deal only with those BA theories. However many of the constructions in this section and across this paper can be carried out into any weakly -categorical theory.
We are now ready to define formulas in the language of BA (or any weakly -categorical theory) enhanced with recurrence relations. Any such formula takes the form together with suitable base conditions . Clearly those recurrence relations do not always have a fixed point, but weakly -categoricity guarantees a partial fixed point. It is easy to pin down all cases in which a given formula has a fixed point (in case the theory we start with is decidable), as well as apply basic remedies for the case that only a partial fixed point exists, but those are omitted here for the sake of brevity.
We have shown that any formula in the theory of atomless BA enhanced with recurrence relations can be written in an equivalent form without recurrence relations.
3 NSO: Nullary Second Order Logic
Building on what we said in the introduction, we shall not merely present a language, but a language-extension mechanism, altough this extension is not in the standard sense, namely formulas in the base language are not, as for themselves, formulas in the extended language, but constant symbols in it, as we shall see. This extension preserves decidability, let alone consistency. We further consider extending many languages at once, and it is indeed yet another feature of our construction to allow languages to co-exist in one unified language, albeit, of course, the interaction between those languages is very limited. Referring to many BAs at once is easily done by considering the many-sorted theory of BA, alternatively the product algebra.
Fix arbitrary languages (the base logics) in which their formulas (or sentences), up to logical equivalence, make a BA. Then we can consider the many-sorted BA theory interpreted in those BAs. Constants in that languge are formulas in the base logics. Quantification takes the same semantics of quantification over arbitrary BA elements. If the base logics make an atomless BA, then the extended language has decidable satisfiability iff the base logics have. Otherwise decidable model counting is required, or more precisely, when seen as a BA, to tell whether an element is a disjunction of at least distinct atoms.
Denote the extended language by . We show that can have itself as a base-logic. So far, each NSO formula is either true or false, because it is interpreted in a fixed model (being the BA which is the LTA of the base logic), and therfore makes a small BA (only two elements). To obtain an atomless BA from formulas in we can simply enhance it with infinitely many uninterpreted constant symbols. After doing so, we now let interepreted constants to be formulas in appearing inside curly brackets (in order to avoid syntactic ambiguity), and handling of quantifiers for the sake of a decision procedure can be done by means of the atomless BA quantifier elimination algorithm. The basic syntax of is therefore
where means any formula in the language . Clearly, each may only contain variables and constants from the same sort. refers to an uninterpreted constant. The deep-most level of formulas in [nested] curly brackets will be either a formula in or a formula in the language of BA in which the only constants appearing in it are . It is then interpreted as a formula over arbitrary atomless BA since they’re all elementarily equivalent. It is easy to see that going inductively over the depth of curly brackets, gives a decision procedure as well as semantics to this language.
4 GSSOTC: A Temporal Logic
We devise a new, decidable, family of temporal logics over infinite data values, where those values come with theories much richer than merely equality, in particular with the theory of atomless Boolean Algebras (as well as fixed finite ones though such a case does not amount to a significant novelty). Further, this language enjoys the distinctive ability to verify statements of the form “at each point of time, for all inputs exist a well-defined output/state, possibly depending on the previous output/state”. It also presents a new kind of decision procedure, unrelated to automata, tableaux, or to any other decision method known to the author.
To describe the language in simple intuitive terms: fix an atomless BA and consider the theory of BA interpreted in this structure (with interpreted constants as above so the LTA of this logic is the countable atomless BA). Consider formulas with free variables where the ’s are understood as inputs and the ’s are understood as outputs, and is any time point (so it can be seen as a free variable of sort ). So it describes connection between current and previous inputs and outputs at each point of time. This is basically almost the full language.
This technique works for any weakly -categorical language, as long as it supports conjunction and quantification. However in the atomless BA case we get the unique property of a language that can speak of its own sentences, in the spirit of NSO.
4.1 Time-Compatible Structures
A sequence of elements from some domain can be seen as a function . A function between sequences is therefore of type . As customary in many texts, will denote the set .
Definition 20.
A function between sequences is prefix-preserving (alternatively time-compatible, TC) if for all sequences , if is a strict prefix of , then is a strict prefix . We extend this notion also for .
Definition 21.
A Time-Compatible (TC) Structure of length is a domain with prefix-preserving functions .
It should be clear that any computer program is a TC structure: at each point of time it takes an input and outputs an output, while the output may depend only on past and present inputs and outputs, not future ones. This is why we refer to prefix-preservation as TC.
Remark 22.
Due to the “lookback” ability, namely the dependence on previous inputs and outputs, we don’t need to refer to the concept of state, as it is subsumed by the concept of output.
Remark 23.
In what follows we will deal only with infinite-time TC structures (so in the above definition) unless stated otherwise.
Remark 24.
We will eventually be interested with functions from tuples of sequences to tuples of sequences (all tuples of fixed finite size, but the input tuple may be of different size than of the output tuple). All definitions and results should apply mutatis-mutandis.
Remark 25.
The setting can easily be extended to trees rather sequences. It is done by allowing more than one successor relation, and the same methods apply.
Definition 26.
A TC function has bounded lookback (BL) of length (or simply BL) if exists (the recurrence point), s.t. for each , the output sequence at point depends only on the input and output sequences at points , as well as the input at point .
Corollary 27.
If is BL then it can be expressed as a pair of functions, one of type and another of type which is required to be TC.
Proof.
By definition of BL functions, we can write as a recurrence relation
(where is the input sequence) with initial conditions of the form for . This is of type and together with the initial conditions (which specify the behavior up until the recurrence point), fully encodes . ∎
Corollary 28.
Given a pair of functions, one of type , and another, which is TC, of type , we can uniquely assign to it a function of BL.
4.2 Bounded Lookback and Recurrence Relations
Corollary 29.
Any formula (in virtually any logic) with free variables defines a [possibly empty] set of BL functions.
Note that in the infinitary expression obtained in the proof, quantifiers can be pushed inside. This is a property of being TC, and this ability is one cruicial point in the upcoming construction. Also note that skolemization of this expression will yield something similar to the type in .
Remark 30.
The initial conditions are not expressed in the latter corollary. But the corollary still holds. It defines a set of functions that include functions per each possible initial condtions. This is not an inherent limitation. We used this form only for simplicity at this stage.
Fix a lookback parameter . will denote a tuple of variables of lookback , so it’s a tuple of variables of the form . We assume that the first time coordinate is .
Definition 31.
Given formula (in virtually any logic) with free variables , define a recurrence relation by with base case .
Remark 32.
Observe that actually says that exists a BL function between sequences of length , where the initial positions in the sequences are left as free variables.
Note that has a form of monotonicity wrt : if exists a TC function between sequences of lentgh , and the function satisfies , then clearly exist such a function for sequences of length .
Clearly, if for all , then defines a nonempty set of functions in the spirit of corollary . The crux of our construction is the observation that if the underlying logic is weakly -categorical, then there are only finitely many ’s up to logical equivalence, hence decidability and decision procedure are immediate.
4.3 Guarded Successor
Observe that a formula of the form can be given a direct BL semantics also by adding a sort of natural numbers with the successor relation , and function symbols and , where is required to be prefix-preserving, and writing as
Definition 33.
Fix a logic and let be the sort it operates over. First extend it with function symbols and , where is required to be prefix-preserving. If is any formula in this extended language, then
defines a second extension to the language which we shall refer to as the guarded successor extention of . The sublanguage of the form
will be called the collapsed fragment. Its sublanguage of the form
will be called the normalized fragment. In all cases, the guard is required to uniquely determines the relative position between each , and involve only through application of (or several such functions), while may also be applied to constants from .
Remark 34.
Applying to constants from corresponds to the above initial conditions.
Theorem 35.
Any formula in a guarded successor extension can be written as an equisatisfiable formula in the normalized fragment.
Remark 36.
Note that here we had to use the assumption that we are dealing with infinite-time structures, namely . In the finite-time case we will also need the end-of-sequence predicate , resulting with a slightly more complicated quantifier collapse. We omit this simple derivation here for sake of brevity.
Corollary 37.
Any formula in a guarded successor extension without temporal existential quantifiers can be written in a free-variable BL form .
We of course bear in mind that if some language is decidable and is weakly -categorical, then its extension with recurrence relations is also decidable. Together with a method to handle the existential part as described in the next section, we’ll conclude that:
Corollary 38.
Satisfiability of a formula in a guarded successor extension is decidable if this fragment is obtained from a decidable language which is weakly -categorical, enhanced with the sort , guarded successors, function symbols, and BL function symbols.
We refer to this extended language as GSSOTC, where GSSOTC stands for Guarded-Successor Second-Order Time-Compatible. The second-order part is due to the following: given two sequences , we can declare a non-standard quantifer alternation , which would translate into (so far just standard higher-order skolemization), where is a TC function between sequences. Those function quantifiers are eliminated when converting the formula to the free-variable form, which is then converted to function-free recurrence-relation form.
Some easy extensions of this language were described above, we reiterate them and add more: the end-of-string predicate , having multiple successor relations and by that considering trees rather sequences, having constant positions, so instead of e.g. , we have e.g. , having explicit second-order quantifiers that are eliminated by reduction to recurrence relations, and finally, having richer quantifier alternation, e.g. for all keyboard input at time , exists a memory state at time , s.t. for all network input at time , and so on, resulting in quantification of the form .
4.4 Decision Methods and Execution
In the spirit of remark 24, we shall have several input and output sequences, each referred to as a stream.
Theorem 39.
Given where are inputs and are outputs, and denoting the stream number, define the recurrence relation
so means that exists a model with time points starting with . Then the reccurence relation is monotonic, namely and therefore has a fixed point. Denote it by . Given a model of with time points, and given each input at point , then an output will have an unbounded continuation satisfying iff .
Remark 40.
The above formulation suggests that is a normal form of when understood as defining TC models.
Remark 41.
A TC structure is a model of iff any subsequence satisfies when understood as a formula in the language of BA.
Remark 42.
Given inputs at each point of time, satsifying outputs can be computed by substituting the known variables into , and solving for the missing outputs. This is an execution method for software specification in this language. Software specification in this language is therefore directly executable as-is, using an oracle to determine satisfying assignments to formulas in the language of atomless BA. Finding satisfying assignments to a formula in the language of atomless BA is a topic by its own, and is omitted here for sake of brevity.
Corollary 43.
Given two formula , then the set of TC models of is a subset of those of , iff .
This gives us an algorithm to decide whether where are seen as sets of TC models.
Remark 44.
Combined with 35 and its proof, this corollary gives us a decision procedure for the full language GS. Each DNF clause will have a single universal and a single existential (which is a negated universal), so deciding emptiness for each clause comes down to the last corollary.
Remark 45.
Since refers only to the universal parts, while the existential parts may of course restrict the models, therefore we should, at execution time, check at each point of time whether we can satisfy the existential parts. If so, we satisfy them indeed, just once. If the formula is satisfiable then such point in time is guaranteed to exist. If there are multiple existential parts in a DNF clause, then for execution, we have to squeeze them into one using the flags as in the proof of 35, since those existential parts may depend on each other.
Remark 46.
When is understood as a GS formula, and is in the language of atomless BA intepreted in this very BA of GS formulas (possibly with more algebras as the consrtuction is closed under products), then NSO is a sublanguage of this language. That’d be a software specification language where inputs and outputs are nothing but sentences in this very language. This way we can support the software update mechanism described in the introduction as a crucial component for safe AI. Another way to look at it: a robot is programmed in a language and accepts commands form the user in the very same language . Now its internal program has to ask whether the command is consistent with, say, safety conditions. It couldn’t do so unless is a temporal logic with inputs in equipped with the theory of BA.
4.5 Complexity
Quantifier elimination in theories of BA where constants are either 0,1 were studied by Tarski by introducing his so-called invariants. Kozen [3] extended this notion of invariants and by that derived a complexity characterization for the decision problem. For infinite BAs, it is complete for STA. Roughly, this means anything that can be done in exponential time by an alternating Turing machine with linearly many alternations. For the two-element BA, it is simply QBF which is maybe the most famous PSPACE-complete problem. For GS, we saw that the number of formulas with fixed number of free variables and constants, is triple-exponential in the number of the free variables. This gives an upper bound for GS over atomless BA.
5 Conclusion
We have presented new methods in the theory of atomless BA that extend existing results from SBF to BF in general. We also presented the concept of weakly -categorical theories and how they relate to decidable recurrence relation extensions. We used those ideas to construct a language that can speak of its own sentences by abstracting them to merely BA elements. We further extended this construction to a novel temporal logic with several distinguishing abilities.
References
- [1] Ohad Asor. Theories and applications of boolean algebras, work-in-progress draft. Technical report, IDNI AG, https://tau.net/Theories-and-Applications-of-Boolean-Algebras.pdf, 2024.
- [2] Sabine Koppelberg. Handbook of Boolean Algebras, volume 1. Elsevier scientific Publishing, 1989.
- [3] Dexter Kozen. Complexity of boolean algebras. Theoretical Computer Science, 10:221–247, 1980.
- [4] Sergiu Rudeanu. Boolean functions and equations. North-Holland Publishing Co., Amsterdam, 1974.
- [5] Sergiu Rudeanu. Lattice functions and equations. Springer-Verlag, Berlin, Heidelberg, 2001.
Appendix: Proofs
Proof of 6.
We prove the first statement and the second is analogous. Further we prove it only for the univariate case, and the multivariate case follows immediately by induction. Any univariate BF can be written in Boole’s normal form (sometimes mistakingly called Shannon’s normal form) as where and . Now iff , which reads , so a solution exists iff equivalently . ∎
Proof of 7.
The second equivalence follows immediately from the proof of the previous theorem. For the first equivalence, write (this is the algebraic normal form). Then
and for the other direction, if , just put . ∎
Proof of 11.
First assume that are all distinct and therefore the nonzero ’s are all disjoint, otherwise convert any two equations of the form into the equivalent form . Necessity is now immediate recalling that two different minterms are always disjoint and that subsets of disjoint sets must also be disjoint. For sufficiency and the equations take the form and which indeed has a solution iff . Assume for and consider a distinguished variable . Then we can split the equations into equations and rewrite them as and let be a solution of using the induction hypothesis after making sure that all are distinct (while if then a solution trivially exists). If , set . Then due to the disjointness assumption. Therefore
Similarly set if , or simply . ∎
Proof of 15.
If has a zero, then all such zeros are precisely the range of by 7. So we can write the system as . Now has a zero iff by Boole’s consistency condition, in which case is identically zero. ∎
Proof of 18.
First substitute the general solution of the positive part into the negative parts and obtain:
and since there is no harm in multiplying the negative part with :
now for any we have iff (by Boole’s normal form), so we can rewrite the negative part as:
and using proposition 17 for the parts and we obtain the first result. Now simply account for the conditions of having zeros at all, and obtain the second result. ∎
Proof of corollary .
Assume for simplicity. Consider . We understand as defining a relation between inputs and outputs at current time ( respectively) and in the previous time . Intuitively, it defines at least one BL function if the infinitary expression is satisfiable, alternatively if it is true in a model of choice. This infinitary expression can be given a concrete meaning by considering the first order theory containing all formulas of the form for all . ∎
Proof of 35.
It is easy to see that we can always reduce into the collapsed fragment: this is immediate from the uniqueness of successor, for example is same as . For the normalized form, first convert the formula to DNF at its outermost level, so each literal may be a complex quantified formula, then collapse the quantifier alternation as above, so each quantified formula is either universal or existential. Moving to NNF we can consider universal and existential literals instead of positive and negative literals. In each DNF clause we can collapse the universal parts into a single one since universals distribute over conjunctions. Given an existential literal while denoting , we introduce a flag which is an additional output variable, and write
where is assumed. The existential part is therefore reduced into a single atom at the expense of introducing a new output stream, and with introducing new universal literals which can then be collapsed into a single one as above. Given multiple single-atom existential parts we can easily see that they are equivalent to because each flag remains zero once it becomes zero, so there is a point in time where all flags are eventually zero, so the existential part can be merely a single by defining this additional flag in the universal part. By that we reduced both the universal and the existential parts into a single one each. ∎
Proof of 39.
A model of size exists iff . Leaving free the first time points we can write
since replacing with in results with . In case that then due to monotonicity, every subsequence of time points will have to satisfy , and any such subsequence can be extended arbitrarily due to the fact that it is a fixed point indeed. ∎