You're reading the public-facing archive of the Category Theory Zulip server.
To join the server you need an invite. Anybody can get an invite by contacting Matteo Capucci at name dot surname at gmail dot com.
For all things related to this archive refer to the same person.
Cf: Differential Logic • Comment 6
The topic on logical graphs introduced a style of graph-theoretic syntax for propositional logic stemming from the work of Charles S. Peirce and G. Spencer Brown and touched on a generalization of Peirce's and Spencer Brown's tree-like forms to what graph theorists know as cactus graphs or cacti.
Somewhat serendipitously, as it turns out, this cactus syntax is just the thing we need to develop differential propositional calculus, which augments ordinary propositional calculus in the same way the differential calculus of Leibniz and Newton augments the analytic geometry of Descartes.
Resources
Differential logic is the component of logic whose object is the description of variation — for example, the aspects of change, difference, distribution, and diversity — in universes of discourse subject to logical description. A definition that broad naturally incorporates any study of variation by way of mathematical models, but differential logic is especially charged with the qualitative aspects of variation pervading or preceding quantitative models. To the extent a logical inquiry makes use of a formal system, its differential component treats the principles governing the use of a differential logical calculus, that is, a formal system with the expressive capacity to describe change and diversity in logical universes of discourse.
Simple examples of differential logical calculi are furnished by differential propositional calculi. A differential propositional calculus is a propositional calculus extended by a set of terms for describing aspects of change and difference, for example, processes taking place in a universe of discourse or transformations mapping a source universe to a target universe. Such a calculus augments ordinary propositional calculus in the same way the differential calculus of Leibniz and Newton augments the analytic geometry of Descartes.
Cactus Language for Propositional Logic
The development of differential logic is facilitated by having a moderately efficient calculus in place at the level of boolean-valued functions and elementary logical propositions. One very efficient calculus on both conceptual and computational grounds is based on just two types of logical connectives, both of variable -ary scope. The syntactic formulas of this calculus map into a family of graph-theoretic structures called “painted and rooted cacti” which lend visual representation to the functional structures of propositions and smooth the path to efficient computation.
The first kind of connective takes the form of a parenthesized sequence of propositional expressions, written and meaning exactly one of the propositions is false, in short, their minimal negation is true. An expression of this form maps into a cactus structure called a lobe, in this case, “painted” with the colors as shown below.
The second kind of connective is a concatenated sequence of propositional expressions, written and meaning all the propositions are true, in short, their logical conjunction is true. An expression of this form maps into a cactus structure called a node, in this case, “painted” with the colors as shown below.
All other propositional connectives can be obtained through combinations of these two forms. As it happens, the parenthesized form is sufficient to define the concatenated form, making the latter formally dispensable, but it's convenient to maintain it as a concise way of expressing more complicated combinations of parenthesized forms. While working with expressions solely in propositional calculus, it's easiest to use plain parentheses for logical connectives. In contexts where ordinary parentheses are needed for other purposes an alternate typeface may be used for the logical operators.
Cactus Language for Propositional Logic (cont.)
Table 1 shows the cactus graphs, the corresponding cactus expressions, their logical meanings under the so-called existential interpretation, and their translations into conventional notations for a sample of basic propositional forms.
The simplest expression for logical truth is the empty word, typically denoted by or in formal languages, where it is the identity element for concatenation. To make it visible in context, it may be denoted by the equivalent expression or, especially if operating in an algebraic context, by a simple Also when working in an algebraic mode, the plus sign may be used for exclusive disjunction. Thus we have the following translations of algebraic expressions into cactus expressions.
It is important to note the last expressions are not equivalent to the 3-place form
Cf: Differential Logic • 4 ← Please see this blog post for a more readable text.
Differential Expansions of Propositions
An efficient calculus for the realm of logic represented by boolean functions and elementary propositions makes it feasible to compute the finite differences and the differentials of those functions and propositions.
For example, consider a proposition of the form graphed as two letters attached to a root node, as shown below.
Written as a string, this is just the concatenation
The proposition may be taken as a boolean function having the abstract type where is read in such a way that means and means
Imagine yourself standing in a fixed cell of the corresponding venn diagram, say, the cell where the proposition is true, as shown in the following Figure.
Now ask yourself: What is the value of the proposition at a distance of and from the cell where you are standing?
Don't think about it — just compute:
The cactus formula and its corresponding graph arise by replacing with and with in the boolean product or logical conjunction and writing the result in the two dialects of cactus syntax. This follows because the boolean sum is equivalent to the logical operation of exclusive disjunction, which parses to a cactus graph of the following form.
Next question: What is the difference between the value of the proposition over there, at a distance of and from where you are standing, and the value of the proposition where you are, all expressed in the form of a general formula, of course? The answer takes the following form.
There is one thing I ought to mention at this point: Computed over plus and minus are identical operations. This will make the relation between the differential and the integral parts of the appropriate calculus slightly stranger than usual, but we will get into that later.
Last question, for now: What is the value of this expression from your current standpoint, that is, evaluated at the point where is true? Well, replacing with and with in the cactus graph amounts to erasing the labels and as shown below.
And this is equivalent to the following graph:
We have just met with the fact that the differential of the and is the or of the differentials.
It will be necessary to develop a more refined analysis of that statement directly, but that is roughly the nub of it.
If the form of the above statement reminds you of De Morgan's rule, it is no accident, as differentiation and negation turn out to be closely related operations. Indeed, one can find discussions of logical difference calculus in the Boole–De Morgan correspondence and Peirce also made use of differential operators in a logical context, but the exploration of these ideas has been hampered by a number of factors, not the least of which has been the lack of a syntax adequate to handle the complexity of expressions evolving in the process.
Cf: Differential Logic • 5 ← Please see this blog post for a more readable text.
Differential Expansions of Propositions (cont.)
Let's run through the initial example again, keeping an eye on the meanings of the formulas which develop along the way. We begin with a proposition or a boolean function whose venn diagram and cactus graph are shown below.
A function like this has an abstract type and a concrete type. The abstract type is what we invoke when we write things like or The concrete type takes into account the qualitative dimensions or “units” of the case, which can be explained as follows.
Let be the set of values
Let be the set of values
Then interpret the usual propositions about as functions of the concrete type
We are going to consider various operators on these functions. An operator is a function which takes one function into another function
The first couple of operators we need to consider are logical analogues of two which play a founding role in the classical finite difference calculus, namely:
The difference operator written here as
The enlargement operator, written here as
These days, is more often called the shift operator.
In order to describe the universe in which these operators operate, it is necessary to enlarge the original universe of discourse. Starting from the initial space its (first order) differential extension is constructed according to the following specifications.
where:
The interpretations of these new symbols can be diverse, but the easiest option for now is just to say means “change ” and means “change ”.
Drawing a venn diagram for the differential extension requires four logical dimensions, but it is possible to project a suggestion of what the differential features and are about on the 2-dimensional base space by drawing arrows crossing the boundaries of the basic circles in the venn diagram for reading an arrow as if it crosses the boundary between and in either direction and reading an arrow as if it crosses the boundary between and in either direction, as indicated in the following figure.
Propositions are formed on differential variables, or any combination of ordinary logical variables and differential logical variables, in the same ways propositions are formed on ordinary logical variables alone. For example, the proposition says the same thing as in other words, there is no change in without a change in
Given the proposition over the space the (first order) enlargement of is the proposition over the differential extension defined by the following formula.
In the example the enlargement is computed as follows.
Given the proposition over the (first order) difference of is the proposition over defined by the formula or, written out in full:
In the example the difference is computed as follows.
Cf: Differential Logic • 5 ← Please see this blog post for a more readable text.
Differential Expansions of Propositions (cont.)
Worm's Eye View (cont.)
At the end of the previous section we evaluated this first order difference of conjunction at a single location in the universe of discourse, namely, at the point picked out by the singular proposition in terms of coordinates, at the place where and This evaluation is written in the form or and we arrived at the locally applicable law which may be stated and illustrated as follows.
The venn diagram shows the analysis of the inclusive disjunction into the following exclusive disjunction.
The differential proposition may be read as saying “change or change or both”. And this can be recognized as just what you need to do if you happen to find yourself in the center cell and require a complete and detailed description of ways to escape it.
Cf: Differential Logic • 6 ← Please see this blog post for a more readable text.
Differential Expansions of Propositions (cont.)
Panoptic View • Difference Maps
In the previous section we computed what is variously described as the difference map, the difference proposition, or the local proposition of the proposition at the point where and
In the universe of discourse the four propositions indicating the “cells”, or the smallest distinguished regions of the universe, are called singular propositions. These serve as an alternative notation for naming the points respectively.
Thus we can write so long as we know the frame of reference in force.
In the example the value of the difference proposition at each of the four points may be computed in graphical fashion as shown below.
The easy way to visualize the values of these graphical expressions is just to notice the following equivalents.
Laying out the arrows on the augmented venn diagram, one gets a picture of a differential vector field.
The Figure shows the points of the extended universe indicated by the difference map namely, the following six points or singular propositions.
The information borne by should be clear enough from a survey of these six points — they tell you what you have to do from each point of in order to change the value borne by that is, the move you have to make in order to reach a point where the value of the proposition is different from what it is where you started.
We have been studying the action of the difference operator on propositions of the form as illustrated by the example which is known in logic as the conjunction of and The resulting difference map is a (first order) differential proposition, that is, a proposition of the form
The augmented venn diagram shows how the models or satisfying interpretations of distribute over the extended universe of discourse Abstracting from that picture, the difference map can be represented in the form of a digraph or directed graph, one whose points are labeled with the elements of and whose arrows are labeled with the elements of as shown in the following Figure.
Any proposition worth its salt can be analyzed from many different points of view, any one of which has the potential to reveal previously unsuspected aspects of the proposition's meaning. We will encounter more and more of these alternative readings as we go.
Differential Expansions of Propositions (cont.)
Panoptic View • Enlargement Maps
The enlargement or shift operator exhibits a wealth of interesting and useful properties in its own right, so it pays to examine a few of the more salient features playing out on the surface of our initial example,
A suitably generic definition of the extended universe of discourse is afforded by the following set-up.
For a proposition of the form the (first order) enlargement of is the proposition defined by the following equation.
The differential variables are boolean variables of the same type as the ordinary variables Although it is conventional to distinguish the (first order) differential variables with the operational prefix this way of notating differential variables is entirely optional. It is their existence in particular relations to the initial variables, not their names, which defines them as differential variables.
In the example of logical conjunction, the enlargement is formulated as follows.
Given that this expression uses nothing more than the boolean ring operations of addition and multiplication, it is permissible to “multiply things out” in the usual manner to arrive at the following result.
To understand what the enlarged or shifted proposition means in logical terms, it serves to go back and analyze the above expression for in the same way we did for To that end, the value of at each may be computed in graphical fashion as shown below.
Collating the data of this analysis yields a boolean expansion or disjunctive normal form (DNF) equivalent to the enlarged proposition
Here is a summary of the result, illustrated by means of a digraph picture, where the “no change” element is drawn as a loop at the point
We may understand the enlarged proposition as telling us all the ways of reaching a model of the proposition from the points of the universe
Cf: Differential Logic • Discussion 8
A Reader inquired about the relationship between ordinary and differential boolean variables. I thought it might help to explain how I first came to think about differential logic as a means of describing qualitative change. The story goes a bit like this …
I wandered into this differential wonderland by following my nose through a budget of old readings on the calculus of finite differences. It was a long time ago in a math library not too far away as far as space goes but no longer extant in time. Boole himself wrote a book on the subject and corresponded with De Morgan about it. I recall picking up the for enlargement operator somewhere in that mix. It was a genuine epiphany. All of which leads me to suspect the most accessible entry point may be the one I happened on first, documented in the “Chapter on Linear Topics” I linked at the end of the following post.
Maybe it will help to go through that …
Propositional Forms on Two Variables
To broaden our experience with simple examples, let's examine the sixteen functions of concrete type and abstract type Our inquiry into the differential aspects of logical conjunction will pay dividends as we study the actions of and on this family of forms.
Table A1 arranges the propositional forms on two variables in a convenient order, giving equivalent expressions for each boolean function in several systems of notation.
Propositional Forms on Two Variables (cont.)
Table A2 arranges the propositional forms on two variables according to another plan, sorting propositions with similar shapes into seven subclasses. Thereby hangs many a tale, to be told in time.
Cf: Differential Logic • Discussion 9
Re: Laws of Form • Lyle Anderson
Standing back for a moment to take in the Big Picture, what we’re doing here is taking all the things we would normally do in a “calculus of many variables” setting with spaces like:
and functoring that whole business over to in other words, cranking the analogies as far as we can push them to spaces like:
A few analogies are bound to break in transit through the Real-Bool barrier, once familiar constructions morph into new-fangled configurations, and other distinctions collapse or “condense” as Spencer Brown called it. Still enough structure gets preserved overall to reckon the result a kindred subject.
To be continued …
Cf: Differential Logic • Discussion 10
Re: Laws of Form • Lyle Anderson
Let's say we're observing a system at discrete intervals of time and testing whether its state satisfies or falsifies a given predicate or proposition at each moment. Then and are two state variables describing the time evolution of the system. In logical conception and are independent variables, even if empirical discovery finds them bound by law.
What gives the differential variable its meaning in relation to the ordinary variable is not the conventional notation used here but a class of temporal inference rules, in the present example, the fourfold scheme of inference shown below.
It's been a while, so let's review …
Tables A1 and A2 showed two ways of organizing the sixteen boolean functions or propositional forms on two variables, as expressed in several notations. For ease of reference, here are fresh copies of those Tables.
We took as our first example the boolean function corresponding to the logical conjunction and examined how the differential operators and act on Each differential operator takes a boolean function of two variables and gives back a boolean function of four variables, and respectively.
In the next several posts we'll extend our scope to the full set of boolean functions on two variables and examine how the differential operators and act on that set. There being some advantage to singling out the enlargement or shift operator in its own right, we'll begin by computing for each function in the above tables.
Cf: Differential Logic • Discussion 11
Re: Differential Logic • Discussion 9
Let's look more closely at the “functor” from to and the connection it makes between real and boolean hierarchies of types. There's a detailed discussion of this analogy in the article and section linked below.
Assorted types of mathematical objects which turn up in practice often enough to earn themselves common names, along with their common isomorphisms, are shown in the following Table.
Note. Copying a reply here for continuity's sake.
Cf: Differential Logic • Discussion 12
Re: @John Baez said:
One thing I'm interested in is functorially relating purely qualitative models to quantitative ones, or mixed quantitative-qualitative models where you have some numerical information of the sort you describe, but not all of it. That's a situation we often find ourselves in: having a mixture of quantitative and qualitative information about what's going on in a complicated system.
Re: John Baez said:
When I say "functorially", I mean for starters: there should be a functor from "quantitative models" of system dynamics to "qualitative models". (Both these terms need to be defined, and there's a choice of ways to do it.)
This is something I've been working on. In a turn of phrase I once concocted, it's like passing from the qualitative theory of differential equations to the differential theory of qualitative equations.
Cf: Differential Logic • Discussion 13
Re: FB | Peirce Society • Χριστο Φόρος
Χριστο Φόρος asked whether the difference between qualitative and quantitative information was really all that much of a problem, especially in view of mixed datasets. As I have encountered it in practice the rub is not so much between different types of data as between the two cultures of quantitative and qualitative research paradigms.
As it happens, my mix of backgrounds often found me employed consulting on statistics at the interface between quantitative and qualitative researchers. On the qual side back in the 80s and 90s we were just beginning to develop software for ethographic methods, massaging linguistic, narrative, and verbal protocols toward categorical variables and non‑parametric statistics. I worked a lot on concepts and software bridging the gap between qual and quant paradigms.
The program I spent the 80s developing and eventually submitted toward a Master’s in Psych integrated a Learning module (“Slate”) and a Reasoning module (“Chalk”). The first viewed its input stream as a two-level formal language (“words” and “phrases”) and sought to induce a grammar for the language its environment was speaking to it. The second was given propositional expressions describing universes of discourse and had to find all the conjunctions of basic qualitative features (boolean variables) satisfying those descriptions. There’s a report on this work in the following paper.
Cf: Differential Logic • Discussion 14
Re: FB | Peirce Society • Χριστο Φόρος
Another bit of work I did toward a Psych M.A. was applying my Theme One Program to a real-live dataset on family dynamics. A collection of notes on that project is linked below.
Exploratory Qualitative Analysis of Sequential Observation Data
Additional Resources
Survey of Theme One Program
As promised in Episode 10, in the next several posts we’ll extend our scope to the full set of boolean functions on two variables and examine how the differential operators and act on that set. There being some advantage to singling out the enlargement or shift operator in its own right, we’ll begin by computing for each of the functions
We first encountered the shift operator in Episode 4 when we imagined being in a state described by the proposition and contemplated the value of that proposition in various other states, as determined by the differential propositions and Those thoughts led us from the boolean function of two variables to the boolean function of four variables as shown in the entry for in the first three columns of Table A3.
(Let’s catch a breath here and discuss what the rest of the Table shows next time.)