Deductive systems [004C]
- December 26, 2022
- Jon Sterling
The most basic construct of duploid theory is a deductive system, a variant on the concept of a precategory that relaxes the associativity axiom to reflect the evaluation order of execution in effectful programming languages and proof theories. In this section, we define deductive systems and develop their basic properties.
Definition Deductive system [0048]
- December 25, 2022
- Jon Sterling
A deductive system \mathcal {D} is given by a type \mathbf {ob}_{\mathcal {D}} of “objects”, and for every pair A,B\in \mathbf {ob}_{\mathcal {D}} a set \mathbf {hom}_{\mathcal {D}}{\mathopen {}\left (A,B\right )\mathclose {}} of morphisms, together with cut and identity laws:
- cut: for each A,B,C\in \mathbf {ob}_{\mathcal {D}} and f\in \mathbf {hom}_{\mathcal {D}}{\mathopen {}\left (A,B\right )\mathclose {}} and g\in \mathbf {hom}_{\mathcal {D}}{\mathopen {}\left (B,C\right )\mathclose {}}, a morphism f;g\in \mathbf {hom}_{\mathcal {D}}{\mathopen {}\left (A,C\right )\mathclose {}}.
- identity: for each A\in \mathbf {ob}_{\mathcal {D}}, a morphism 1_{A}\in \mathbf {hom}_{\mathcal {D}}{\mathopen {}\left (A,A\right )\mathclose {}} such that 1_{A};f = f and f;1_{B} for each f\in \mathbf {hom}_{\mathcal {D}}{\mathopen {}\left (A,B\right )\mathclose {}}.
Notation Deductive system notation [0049]
- December 25, 2022
- Jon Sterling
Given a deductive system \mathcal {D}, we will write A\in \mathcal {D} to mean A\in \mathbf {ob}_{\mathcal {D}} and f:A\mathrel {{\vdash }_{\mathcal {D}}} B when f\in \mathbf {hom}_{\mathcal {D}}{\mathopen {}\left (A,B\right )\mathclose {}}. When \mathcal {D} is clear from context, we will write \vdash instead of \mathrel {{\vdash }_{\mathcal {D}}}.
Definition Linear and thunkable maps [004A]
- December 26, 2022
- Jon Sterling
Let f:C \vdash D be a morphism in a deductive system \mathcal {D}.
- We say that f is linear when for all g:B\vdash C and h:A\vdash B, we have h;{\mathopen {}\left (g;f\right )\mathclose {}} = {\mathopen {}\left (h;g\right )\mathclose {}};f.
- We say that f is thunkable when for all g:D\vdash E and h : E\vdash F, we have f;{\mathopen {}\left (g;h\right )\mathclose {}} = {\mathopen {}\left (f;g\right )\mathclose {}};h.
Definition Positive and negative objects [004B]
- December 26, 2022
- Jon Sterling
An object B in a deductive system \mathcal {D} is called positive when every map B\vdash C is linear; it is called negative when every map A\vdash B is thunkable.
Lemma Characterization of full associativity [004D]
- December 26, 2022
- Jon Sterling
The following are equivalent for a deductive system \mathcal {D}:
- every map is linear;
- every map is thunkable;
- every object is positive;
- every object is negative;
- the cut law is associative;
- \mathcal {D} is a precategory.
Proof.
- December 26, 2022
- Jon Sterling
Supposing that every map is linear, we must check that each f:A\vdash B is thunkable. Fixing g:B\vdash C and h:C\vdash D, we must check that f;{\mathopen {}\left (g;h\right )\mathclose {}} = {\mathopen {}\left (f;g\right )\mathclose {}};h; as h is assumed linear, the equation holds. The converse holds by identical reasoning.
Clearly every object is positive if and only if every map is linear; likewise, every object is negative if and only if every map is thunkable.
Finally, when every map is both linear and thunkable, the cut law is associative — but this is exactly the condition that the deductive system give rise to a precategory.
Inverses and invertibility in deductive systems [004U]
- April 15, 2023
- Jon Sterling
Inverses to morphisms in a deductive system need not be unique due to the general failure of associativity; therefore, we must be careful when speaking of “invertible maps” or “isomorphisms”. It happens that both linear and thunkable inverses are unique.
Definition Inverses in a deductive system [004O]
- April 15, 2023
- Jon Sterling
Let f : A \vdash B be a morphism in a deductive system \mathcal {D}. An inverse to f is defined to be a morphism g : B\vdash A such that f;g = 1_{A} and g;f = 1_{B}.
Lemma Linear and thunkable inverses [004N]
- April 15, 2023
- Jon Sterling
Let \mathcal {D} be a deductive system, and let f : A\vdash B be a morphism in \mathcal {D}. Then both the type of (linear, thunkable) inverses of f is a proposition.
Definition Thunkably and linearly invertible maps [004R]
- April 15, 2023
- Jon Sterling
Let f:A\vdash B be a morphism in a deductive system \mathcal {D}. We say that f is (thunkably, linearly) invertible when there exists a (thunkable, linear) inverse to f.
Upshift and downshift structures [004V]
- April 15, 2023
- Jon Sterling
Definition Upshift structure [004M]
- April 15, 2023
- Jon Sterling
Let \mathcal {D} be a deductive system and let A be an object of \mathcal {D}. An upshift structure for A is defined to be a negative object \mathord {\Uparrow } A and a linear map \mathsf {force}_{A} : \mathord {\Uparrow } A\vdash A for which there exists a necessarily unique and thunkable inverse \mathsf {delay}_{A} : A\vdash \mathord {\Uparrow } A.
Definition Downshift structure [004P]
- April 15, 2023
- Jon Sterling
Let \mathcal {D} be a deductive system and let A be an object of \mathcal {D}. A downshift structure for A is defined to be a positive object \mathord {\Downarrow } A and a thunkable map \mathsf {wrap}_{A} : A\vdash \mathord {\Downarrow } A for which there exists a necessarily unique and linear inverse \mathsf {unwrap}_{A} : \mathord {\Downarrow } A\vdash A.
The univalence condition for deductive systems [004W]
- April 15, 2023
- Jon Sterling
Definition Positively univalent deductive system [004Q]
- April 15, 2023
- Jon Sterling
A deductive system \mathcal {D} is called positively univalent when for any positive A\in \mathcal {D}, the type of positive objects B\in \mathcal {D} equipped with a thunkably invertible thunkable map f:B\vdash A is contractible.
Definition Negatively univalent deductive system [004S]
- April 15, 2023
- Jon Sterling
A deductive system \mathcal {D} is called negatively univalent when for any negative A\in \mathcal {D}, the type of negative objects B\in \mathcal {D} equipped with a linearly invertible linear map f:B\vdash A is contractible.
Definition Univalent deductive system [004T]
- April 15, 2023
- Jon Sterling
A deductive system is called univalent when it is both positively univalent and negatively univalent.
Uniqueness of shifts in univalent deductive systems [004Y]
- April 15, 2023
- Jon Sterling
Lemma Uniqueness of upshifts [004X]
- April 15, 2023
- Jon Sterling
Let P\in \mathcal {D} be a positive object in a negatively univalent deductive system; then the type of upshift structures on P is a proposition. In this case, we may refer to the property of P having an upshift.
Proof.
- April 15, 2023
- Jon Sterling
Let f_0:M_0\vdash P and f_1:M_1\vdash P be two upshift structures on P, whose inverse delay maps are written d_0,d_1 respectively. We wish to identify the pairs {\mathopen {}\left (M_0,f_0\right )\mathclose {}} and {\mathopen {}\left (M_1,f_1\right )\mathclose {}}.
All four maps f_0,f_1,d_0,d_1 are linear: the forcing maps are linear by definition, and the delay maps are linear because they come from a positive object. Thus we have a linearly invertible linear map f_1;d_0 : M_1\vdash M_0; because \mathcal {D} is assumed negatively univalent, we may identify the pairs {\mathopen {}\left (M_0,1_{M_0} : M_0\vdash M_0\right )\mathclose {}} and {\mathopen {}\left (M_1,{\mathopen {}\left (f_1;d_0 : M_1\vdash M_0\right )\mathclose {}}\right )\mathclose {}}. Precomposing with f_0 : M_0\vdash P in both sides, we have {\mathopen {}\left (M_0,f_0\right )\mathclose {}} = {\mathopen {}\left (M_1,f_1\right )\mathclose {}} because d_0 is linear as a map out of a positive object.
Lemma Uniqueness of downshifts [004Z]
- April 15, 2023
- Jon Sterling
Let N\in \mathcal {D} be a negative object in a positively univalent deductive system; then the type of downshift structures on N is a proposition. In this case, we may refer to the property of N having a downshift.
Proof.
- April 15, 2023
- Jon Sterling
Let w_0:N\vdash P_0 and w_1:N\vdash P_1 be two downshift structures on N, whose inverse unwrapping maps are written u_0,u_1 respectively. We wish to identity {\mathopen {}\left (P_0,w_0\right )\mathclose {}} with {\mathopen {}\left (P_1,w_1\right )\mathclose {}}.
All four maps w_0,w_1,u_0,u_1 are thunkable: the wrapping maps are thunkable by definition, and the unwrapping maps are thunkable because they are valued in a negative object. Thus we have a thunkably invertible thunkable map u_1;w_0 : P_1\vdash P_0; because \mathcal {D} is assumed positively univalent, we may identify the pairs {\mathopen {}\left (P_0,1_{P_0}:P_0\vdash P_0\right )\mathclose {}} and {\mathopen {}\left (P_1, {\mathopen {}\left (u_1;w_0:P_1\vdash P_0\right )\mathclose {}}\right )\mathclose {}}. Taking inverses and precomposing with w_0 on both sides, we have {\mathopen {}\left (P_0,w_0\right )\mathclose {}} = {\mathopen {}\left (P_1,w_1\right )\mathclose {}} using the fact that w_0 is thunkable and inverse to u_0.