Propositions as [Types]

Size: px
Start display at page:

Download "Propositions as [Types]"

Transcription

1 Propositions as [Types] Steve Awodey Department of Philosophy Carnegie Mellon University, USA Andrej Bauer Department of Mathematics and Physics University of Ljubljana, Slovenia Abstract Image factorizations in regular categories are stable under pullbacks, so they model a natural modal operator in dependent type theory. This unary type constructor [A] has turned up previously in a syntactic form as a way of erasing computational content, and formalizing a notion of proof irrelevance. Indeed, semantically, the notion of a support is sometimes used as surrogate proposition asserting inhabitation of an indexed family. We give rules for bracket types in dependent type theory and provide complete semantics using regular categories. We show that dependent type theory with the unit type, strong extensional equality types, strong dependent sums, and bracket types is the internal type theory of regular categories, in the same way that the usual dependent type theory with dependent sums and products is the internal type theory of locally cartesian closed categories. We also show how to interpret first-order logic in type theory with brackets, and we make use of the translation to compare type theory with logic. Specifically, we show that the propositions-as-types interpretation is complete with respect to a certain fragment of intuitionistic first-order logic, in the sense that a formula from the fragment is derivable in intuitionistic first-order logic if, and only if, its interpretation in dependent type theory is inhabited. As a consequence, a modified double-negation translation into type theory (without bracket types) is complete, in the same sense, for all of classical first-order logic. MSC2000 Classification: 03G30, 03B15, 18C50 Keywords: modal logic, category theory, type theory, regular categories, intuitionistic logic, bracket types 1

2 1 Introduction According to one conception of the theory of types, propositions and types are identified: Propositions = Types. This idea is well-known under the slogan propositions as types, and has been developed by Martin-Löf [ML84] and others [How80, Tai]. In this paper we distinguish propositions and types, but stay within a type-theoretic framework. We regard some types to be propositions, but not necessarily all of them. Additionally, each type A has an associated proposition [A]. This gives us a correspondence Propositions Types [ ] which is in fact an adjunction. Since it will turn out that [P ] = P for any proposition P, the propositions are exactly the types in the image of the bracket constructor [ ]. We call these types [A] the bracket types. The picture is then simply Propositions = [Types]. These ideas are not new. Our work originated with Frank Pfenning s bracket types for erasing computational content [Pfe01]. Speaking somewhat vaguely, the idea is to use a bracket type for hiding computational content of a type. As a simple example, consider the computational content of a term p of type n:n ( m:n Eq(2m, n) + ) m:n Eq(2m + 1, n). Given a natural number n, then pn = i, m, where i {0, 1} and m N, such that n = 2m + i. By bracketing the two dependent sums, we obtain the type ([ ] [ ]) m:n Eq(2m, n) + m:n Eq(2m + 1, n). n:n A term q of this type hides the information that is provided by the dependent sums so that qn is either 0 or 1, depending on whether n is even or odd. In the extreme case, a term r of type [ n:n( m:n Eq(2m, n) + m:n Eq(2m + 1, n) )] does not carry any computational content at all it just witnesses the fact that every number is even or odd. Our work builds on and overlaps with that of several other people, as we will now try to briefly indicate. Parallel to our work, and with some collaboration, Pfenning [Pfe01] also investigates a modal operator for erasing computational content, closely related to our bracket operation. The bracket types that we 2

3 consider are essentially the same as the squash types of Mendler [Men90]. Our rules in Section 2 can be shown equivalent to those given in ibid., which are there derived from rules for quotient types. Mendler intends these quotient types to be interpreted in categories with coequalizers, but does not consider the special case (corresponding to our setting) of squash types in regular categories. The work of Maietti [Mai98b, Mai98a] is similar to that of Mendler in that general quotient types are interpreted in categories with (certain) coequalizers. Mendler s squash types also occur as mono types. A significant advance in the work of Maietti, however, is the soundness and completeness of a certain type theory including such quotient types, with respect to suitable categories, namely Heyting pretoposes. Indeed, a stronger internal language theorem is given. In this setting, our Completeness Theorem 3.4 can be regarded as showing that Maietti s mono-types alone suffice for an analogous internal language result for regular categories. Our axiomatization of image factorization as a logical operation from Proposition 4.1 is probably new, but the general idea of such an operation has been around for some time. Palmgren [Pal04] gives a BHK interpretation of intuitionistic logic and relates it to the standard category-theoretic interpretation of propositions as subobjects using image factorizations. The idea of using image factorization to translate fragments of predicate logic into type theory is also implicit in the work of some of the authors already mentioned, but probably originates with Lawvere s Dialectica article [Law69]. None of these, however, explicitly uses a bracket-style modal operator in dependent type theory as a translation of full predicate logic, as in our Section 5. A related system, called logic-enriched type theory, is given by Aczel and Gambino [AG02], in which the logic is strictly separated from the type theory. Finally, in Section 6, the application of the bracket translation to the longstanding question of the conservativity of the propositions-as-types interpretation of Martin-Löf type theory over intuitionistic first-order logic is entirely new. The only other investigations into this question have used entirely different methods, namely proof-theoretic ones. Moreover, our partial conservativity theorem is a significant improvement over previous results, which only concerned the fragment involving Π and. The paper is organized as follows. In Section 2 we introduce the bracket types. In Section 3 we give the semantics of bracket types in regular categories, and prove its soundness and completeness. In Section 4 we study some properties of bracket types. In Section 5 we show how bracket types are used in conjunction with other dependent types to define the logical connectives and quantifiers within type theory. In Section 6 we use bracket types to compare two interpretations of logic: the standard propositions as types interpretation, and the usual first-order one. 3

4 2 Bracket Types We consider a Martin-Löf style dependent type theory [ML84, ML98]. As is customary when a type operation is defined, the formulation of bracket types does not refer to dependent sums or products, although we sometimes assume that they are present in the type theory. We work in a type theory with strong and extensional equality and strong dependent sums. For reference, we list the rules in Appendix A and refer the reader to [Jac99] for full details. Among the types, there are some that satisfy the following condition of proof irrelevance : Γ P type Γ p : P Γ q : P Γ p = q : P (1) In words, this means that any two terms p and q of such a type P are (extensionally) equal. We call the types satisfying proof irrelevance propositions. (They were called mono types by Maietti [Mai98b], and squash types by Mendler [Men90].) If P and Q are propositions in this sense, then clearly so are 1, P Q, P Q, x:a P where in the last expression P may depend on an arbitrary type A. In logical terms, this means that propositions are already closed under the following logical operations: T, P Q, P Q, x:a. P. In Section 5 we will see how to define the remaining first-order logical operations. Because of proof irrelevance, if a proposition P is inhabited, then it is so by precisely one term (up to extensional equality). Thus, a typing judgment is like a statement of P s truth, Γ p : P Γ P true as p does not play any role other than uniquely witnessing the fact that P holds. We introduce a new type constructor [ ] which associates to each type A a proposition [A], called the associated proposition of A. The axioms given in Figure 1 were designed with the following adjunction in mind, for any type A and proposition P : x : A p : P (2) x : [A] p : P The equivalence states that the bracket operation is left adjoint to the inclusion of propositions into types. We will derive this correspondence in the semantics of bracket types in Section 4. Using the rules provided in Figure 1, we can take 4

5 Bracket types Γ A type Γ [A] type formation Γ a : A Γ [a] : [A] intro Γ q : [A] Γ B type Γ, x:a b : B Γ, x:a, y:a b = b{y/x} : B Γ b where [x] = q : B elim Γ p : [A] Γ q : [A] Γ p = q : [A] equality Conversions b where [x] = [a] = β b{a/x} b{[x]/u} where [x] = q = η b{q/u} Free variables FV([A]) = FV(A) FV([a]) = FV(a) FV(b where [x] = q) = (FV(b) \ {x}) FV(q) Substitution [A]{t/x} = [A{t/x}] [a]{t/x} = [a{t/x}] (b where [x] = q){t/y} = b{t/y} where [x] = (q{t/y}) (provided x y and capture of x in t is avoided) Congruence rules A = A [A] = [A ] a = a [a] = [a ] b = b q = q (b where [x] = q) = (b where [x] = q ) Figure 1: Bracket types 5

6 p = (p where [x] = x ), since the equality condition on p : P for elimination is satisfied by proof irrelevance (1). See remark in Section 7 for consideration of alternate formulations of bracket types. As an example, let us show that the term forming operation [ ] is epic in the following sense: Γ, x:a s{[x]/u} = t{[x]/u} : B Γ, u:[a] s = t : B (3) If we think of a term Γ, x:a r : B as an arrow A B in the slice category over Γ, as we will in Section 3, then we have the following situation over Γ: A [ ] [A] s t B Now (3) says that s [ ] = t [ ] implies s = t for arbitrary s, t : A B, which means that [ ] is epic. To prove (3), observe first that by the equality rule we have Γ, x:a, y:a [x] = [y] : [A] therefore Γ, x:a, y:a s{[x]/u} = s{[y]/u} : [A] which means that we can form the term s{[x]/u} where [x] = u. Similarly, we can form the term t{[x]/u} where [x] = u. Now we get s = η (s{[x]/u} where [x] = u) = (t{[x]/u} where [x] = u) = η t. The second equality follows from the assumption s{[x]/u} = t{[x]/u} and the congruence rule for where terms. A consequence of (3) is the following conversion, called exchange: b where [x] = (p where [y] = q) = (b where [x] = p) where [y] = q. The rule is valid when y x and y FV(b). By (3) it suffices to verify the exchange rule for the case q = [z] where z:a is a fresh variable. We then get (b where [x] = p) where [y] = [z] = β b{z/y} where [x] = (p{z/y}) = b where [x] = (p{z/y}) = β b where [x] = (p where [y] = [z]) In the second equality we took into account the fact that y does not occur freely in b, and in the third equality we applied the η rule to the subterm p{z/y}, which we can do because of the congruence rules. 3 Categorical Semantics of Bracket Types In this section we present a semantics for bracket types in regular categories, see e.g. [Bor94] for the latter. The rules in Figure 1 are sound and complete for such semantics. 6

7 Definition 3.1 A regular category C is a category with finite limits in which 1. every kernel pair has a coequalizer, and 2. the pullback of a regular epimorphism is a regular epimorphism. The first condition states that in a regular category we can form quotients by equationally defined equivalence relations, and the second condition requires such quotients to behave well with respect to finite limits. Let us first briefly recall how to interpret dependent type theory with dependent sums and strong extensional equality Eq in a category with finite limits (cf. [Joh02, D4.4] for full details). We use the semantic bracket [X ] to denote the interpretation of X, where X could be a type, a term, a context, or a judgment. When no confusion can arise, we omit the semantic brackets, especially in diagrams, in order to improve readability. We usually denote the interpretation of a context x 1 :A 1,..., x n :A n simply as (A 1,..., A n ) instead of the official [x 1 :A 1,..., x n :A n ], especially when the particular variables x 1,..., x n do not play a significant role. This device is used solely to improve readability in diagrams, and has no semantic significance. The empty context is interpreted as the terminal object 1. The interpretation of a type in a context Γ A type is given in the slice category C/[Γ] by an arrow, called a display map, [Γ, x:a] [Γ A ] [Γ] where we here abbreviated the name of the arrow. Its domain is the interpretation of the context Γ, x:a. A term in a context Γ t : A is interpreted by a point of (Γ, A) in the slice C/[Γ] [Γ t:a ] (Γ, A) = [Γ A ] In other words, a term Γ t : A is interpreted as a section of the interpretation of Γ A type. Normally, we write just [t] or t instead of [Γ t : A]. The interpretation of a variable in a context, [Γ, x i :A i,..., x n :A n x i : A i ], is the composition of morphisms (Γ, A i,..., A n ) (Γ, A i,..., A n 1 ) (Γ, A i ) 7

8 where the morphism (Γ, A i,..., A k+1 ) (Γ, A i,..., A k ) is the interpretation of the type A k+1. We interpret substitution of a term a for a variable x, Γ a : A Γ, x:a B type Γ B{a/x} type Γ a : A Γ, x:a t : B Γ t{a/x} : B{a/x} as indicated in the following pullback diagram, formed in the slice over : a (Γ, x:a) t{a/x} t = (Γ, B{a/x}) (Γ, x:a, B) Γ B{a/x} a (Γ, A) Γ,x:A B Observe that the outer pentagon commutes because t is a section of the righthand vertical arrow. Since the lower right square is a pullback, the arrow [t{a/x}] is uniquely determined by its universal property. The interpretation of a dependent sum formed as is the composition of the arrows Γ, x:a B type Γ x:a B type (Γ, A, B) Γ,A B (Γ, A) Γ P A B Γ A This gives us a connection between the interpretation of contexts and dependent sums, because it must be the case that [Γ, A, B ] = [Γ, x:a B ]. The interpretation of an equality type formed as Γ s : A Γ t : A Γ Eq A (s, t) type is the equalizer of s and t, as in the following diagram: (Γ, Eq A (s, t)) [Γ Eq A (s,t) ] s t (Γ, A) 8

9 When s and t are the same term, the equalizer is trivial and we have [Γ, Eq A (t, t)] = [Γ] From this we obtain the interpretation of a reflexivity term simply as the identity arrow Γ t : A Γ r(t) : Eq A (t, t) [r(t) ] = 1 [Γ ] = (Γ, Eq A (t, t)) Next, we give the interpretation of the first and the second projection from a dependent sum. Consider the terms Γ p : x:a B Γ π 1 (p) : A We interpret π 1 (p) as the composition of arrows Γ p : x:a B Γ π 2 (p) : B{π 1 (p)/x} p (Γ, A, B) Γ,A B (Γ, A) and π 2 (p) as indicated in the following diagram: p [π 2(p) ] (Γ, B{π 1 (p)/x}) (Γ, x:a, B) = π 1(p) (Γ, A) Γ,A B The arrow [π 2 (p)] is the unique arrow obtained from the universal property of the displayed pullback diagram. A dependent pair formed as Γ a : A Γ, x:a B type Γ b : B{a/x} Γ a, b : x:a B is interpreted as the composition of b with the top arrow in the diagram (Γ, B{a/x}) (Γ, A, B) b Γ B{a/x} a (Γ, A) Γ,A B This completes the outline of the interpretation of dependent type theory with and Eq types in a finitely complete category. 9

10 Remark 3.2 It is well known that certain coherence problems arise when one interprets dependent type theory in slice categories as above. The problems are caused by the fact that, in general, the result of successive pullbacks along arrows g : B C and f : A B is only isomorphic to the pullback along the composition g f, whereas for a completely water-tight interpretation equality is required instead. There are several standard ways of resolving this problem, most notably by interpreting the type theory in a suitable, equivalent fibered category [Jac99], and then applying technical results pertaining to these [Hof95]. We do not wish to obscure matters by employing such technical devices here (in this respect we also follow [Joh02, D4.4]). The reader familiar with such matters will have no difficulty translating the following presentation of the semantics of bracket types into a suitable fibered setting (which works in virtue of [Jac99, theorem 4.4.4]). Corresponding changes are possible for the other familiar remedies, such as making a coherent choice of pullbacks, or collapsing the slice categories into skeletal ones. (For the syntactic category in Section 3, such pullbacks can be chosen simply as substitutions.) We now proceed with the interpretation of bracket types. A regular category C has stable regular epi mono image factorizations. Every arrow f : A B can be factored uniquely up to isomorphism as a regular epi followed by a mono A f Im(f) The factorization is obtained by taking the coequalizer q of the kernel pair (π 1, π 2 ) of f, as in the following diagram: B A B A π 1 π 2 A q f i Im(f) B The arrow i : Im(f) B exists and is unique with i q = f because f coequalizes its own kernel pair. It can moreover be shown that i is always monic. A bracket type Γ A type Γ [A] type 10

11 is interpreted as the image of [Γ A]: (Γ, A) [ ] Γ A [Γ, [A]] = Im(Γ A) [Γ [A] ] The regular epi part of the factorization is used in the interpretation of term bracketing Γ a : A Γ [a] : [A] The interpretation of [a] is the composition a (Γ, A) [ ] (Γ, [A]) It remains to interpret the where terms. Consider Γ q : [A] Γ, x:a b : B Γ, x:a, y:a b = b{y/x} : B Γ b where [x] = q : B The various terms and types occurring above are interpreted in the slice over [Γ], as shown in the following diagram: (Γ, x:a, y:a) x y [ ] (Γ, A) (Γ, [A]) b b (b where [x]=q) (Γ, A, B) q By assumption, the arrow labelled b coequalizes the two projections. The regular epi [ ] is the coequalizer of those two projections, therefore Γ, A b factors uniquely through [ ] via b. The interpretation of (b where [x] = q) is the composition b q. We omit the routine proof of soundness of the interpretation of dependent sums and equality types, and concentrate on the interpretation of bracket types. We need to verify the equality rule, two conversion rules, the substitution rules and the congruence rules. Theorem 3.3 The interpretation of bracket types in regular categories is sound. 11

12 Proof. When the equality rule is translated into the semantics, it states that the arrows p and q in the following diagram are equal: p q (Γ, [A]) = Γ [A] Since p and q are sections of the mono [Γ [A]] they must be equal. Next, consider the β-rule The relevant diagram is b where [x] = [a] = β b{a/x}. (Γ, A) a [ ] (Γ, [A]) b b (Γ, A, B) (b where [x]=[a]) The arrow b is the unique factorization of b through [ ]. By construction, the lower-left triangle commutes, and the right-hand arrow is defined to be the composition b [ ] a, which implies that the upper-right triangle commutes. This is precisely what the β-rule states. To verify the η-rule we consider the following diagram: b{[x]/u} where [x] = q = η b{q/u} [ ] (Γ, x:a) (Γ, u:[a]) b b{[x]/u} (Γ, A, B) q (b{[x]/u} where [x]=q) The arrow b{[x]/u} is the composition of [ ] and b. There is a unique factorization b{[x]/u} of b{[x]/u} through [ ], and the interpretation of the term b{[x]/u} where [x] = q is the composition b{[x]/u} q. But b{[x]/u} also factors through [ ] via b, so it must be that b{[x]/u} = b. Now the η-rule follows, because the arrow b q is the interpretation of b{q/u}. The substitution rules are valid because the regular epi mono factorizations are stable under pullbacks. The congruence rules are valid simply because we interpreted the bracket types and terms by well defined categorical operations (which therefore preserve equality). 12

13 Theorem 3.4 Semantics of extensional type theory D with 1,, Eq, and [ ] types in regular categories is complete, in the sense that two terms are provably equal in D if their interpretations in regular categories are always equal. Proof. In order to prove the theorem we build a syntactic category S from the dependent type theory D. We then show that S is a regular category, and that the interpretation of D in S validates precisely all the provable equations between terms. We shall not go into all the details involved in such a construction, which can be quite involved, but focus on the novelties associated with the bracket types. For details of the general case, we refere the reader to [Jac99, 10.3] and the further references cited there. The objects of S are the closed types of D (modulo provable equality). The arrows from a closed type A to a closed type B are represented by terms x:a t : B where two such terms s and t represent the same arrow if, and only if, D proves that they are equal x:a s = t : B (since we are working with extensional equality it does not matter which sense of equal we take). Furthermore, two terms in a context will be considered equal if we can obtain one from the other by renaming bound and free variables in a capture-avoiding way. The composition of arrows x : A t : B and y : B s : C is the arrow x : A s{t/y}. That composition is well-defined and associative follows from the properties of substitution. The identity arrow on A is represented by x : A x : A. Since terms representing the same arrow must be provably equal, it suffices to show that S is regular. Let us prove first that it has finite limits. The terminal object is 1. Indeed, for any type A we have an arrow x:a : 1, and for any other arrow x:a t : 1 we have x:a t = : 1 by the equality axiom for the unit type. It is fairly easy to verify that S has binary products: the product of A and B is the type A B = x:a B. The equalizer of arrows x : A s : B and x : A t : B is constructed as follows: x:a Eq π 1 s B(s, t) A B Proving that the arrow π 1 equalizes s and t amounts to proving that v : x:a Eq B(s, t) s{π 1 (v)/x} = t{π 1 (v)/x} : B. This follows from the extensionality of equality since π 2 (v) is a term of type Eq B (s{π 1 (v)/x}, t{π 1 (v)/x}). Suppose z : C h : A equalizes s and t: z : C s{h/x} = t{h/x} : B t 13

14 Then we can form the term witnessing the equality z : C r(s{h/x}) : Eq B (s{h/x}, t{h/x}) and from that the factorization of h through the equalizer: z : C h, r(s{h/x}) : x:a Eq B(s, t) This arrow is unique because any two terms of a (strong extensional) Eq type are equal. Therefore, S has all finite limits. It remains to show that S has stable coequalizers of kernel pairs. Before proceeding with the proof of regularity of S, let us spell out the interpretation of dependent types with 1, and Eq in S. Dependent contexts are interpreted by nested dependent sums [1] = 1 [x 1 :A 1,..., x n :A n ] = x 1:A 1 x 2:A 2 x n 1:A n 1 A n In order to keep the notation simple we denote such a nested sum by (A 1,..., A n ). A type in a context, Γ A type, is interpreted by a suitable display map (Γ, A) Γ A More precisely, if Γ is y 1 :B 1,..., y n :B n, then the display map Γ A is the term p : (B 1,..., B n, A) π 1 (p), π 1 (π 2 (p)),..., π 1 (π n 1 2 (p)) : (B 1,..., B n ). With this notation, we get a good match between the syntax of dependent types and their interpretation in S. For example, a dependent sum in a dependent context Γ, x:a B type Γ x:a B is interpreted essentially by itself as the arrow (Γ, x:a B) Γ P x:a B Similarly, an equality type in a dependent context is interpreted essentially by itself, except that we must form the nested dependent sums in order to interpret the dependent context in which the type is placed. Consider an arrow x : A t : B in S. We can form the dependent type y : B x:a Eq B(t, y) type and re-interpret it in S. Its interpretation is the display map p : y:b x:a Eq B(t, y) π 1 (p) : B 14

15 This display map is isomorphic in S/B to the arrow x : A t : B that we started with. Indeed, A is isomorphic to y:b x:a Eq B(t, y) via the isomorphisms x : A t, x, r(t) : y:b x:a Eq B(t, y) and p : y:b x:a Eq B(t, y) π 1 (π 2 (p)) : A It is easy to check that these two isomorphisms commute with the arrows t and π 1. This shows that every arrow in S is isomorphic to the interpretation of a dependent type in a context of the form z : C D type. Thus, in order to show that S has coequalizers of kernel pairs, we only need to find the coequalizers of the kernel pairs of arrows that are interpretations of such types, namely those of the form p : z:c D π 1(p) : C (4) Because any p : z:cd can be written uniquely as a pair z, w with z : C and w : D, we shall write (4) more readably as z : C, w : D z : C (5) This way we avoid the use of nested projections later on, when we have to deal with nested dependent sums. The kernel pair of (5) is easily seen to be (z:c, v:d, w:d) z,v z,w (C, D) (6) We can get its coequalizer by applying bracket types: (z:c, v:d, w:d) z,v z,w (z:c, u:d) z,[u] (C, [D]) (7) Indeed, z, [u] coequalizes the kernel pair by the equality rule for bracket types: z:c, v:d, w:d [v] : [D] z:c, v:d, w:d [w] : [D] z:c, v:d, w:d [v] = [w] : [D] To see that it is the coequalizer, suppose we have an arrow z:c, u:d t : B that coequalizes the kernel pair, which means that z:c, v:d, w:d t{v/u} = t{w/u} : B Then we can form the factorization of t through [u] as the where term z:c, y:[d] t where [u] = y : B 15

16 The situation is depicted in the following diagram: (z:c, v:d, w:d) z,v z,w t (z:c, u:d) (B) z,[u] (C, y:[d]) (t where [u]=y) The triangle commutes because t where [u] = [u] = t by the β-rule for bracket types. The factorization is unique, because [ ] is epic, as we showed in Section 2. Lastly, let us show that in S regular epis are stable under pullbacks. Since every arrow in S is isomorphic to one of the form (5), every kernel pair is isomorphic to one of the form (6) and so every regular epi is isomorphic to one of the form (7). Let us then compute, without loss of generality, a pullback of such a coequalizer along an arrow of the form (5): (y:b, z:c, u:d) y,z,[u] (y:b, z:c, v:[d]) z,u z,v (z:c, u:d) z,[u] (C, [D]) It is evident that the left-hand arrow is a regular epi, because it is of the form (7). It is also clear that the diagram commutes. To see that it is a pullback, observe that it appears as the upper half of the following commutative diagram: (y:b, z:c, u:d) y,z,[u] (y:b, z:c, v:[d]) z,u z,v (z:c, u:d) z,[u] (z:c, [D]) y,z (B, z:c) z z (C) The outer rectangle and the lower square are obviously pullbacks, hence the upper square is as well. 16

17 as We can express the regular epi mono factorization of an arrow x : A t : B A q t m Im(t) B with Im(t) = y:b [ x:a Eq B(t, y)] m = z : Im(t) π 1 (z) : B q = x : A t, [ x, r(t) ] : Im(t). 4 Properties of Bracket Types As a consequence of the complete semantics of the previous section we can prove facts about bracket types by arguing in a general regular category C. Thus we identify types with objects and terms in contexts with arrows. We use this technique in the present section to establish some of the basic properties of bracket types. First observe that, in any context Γ, the types satisfying proof irrelevance (1), are exactly the cartesian idempotents: P prop P = P Γ P (8) where here and in what follows, = between types means that they are canonically isomorphic. For example, in (8) the canonical isomorphisms are the diagonal and the projection. If P and Q are propositions in the context Γ then the corresponding display maps (Γ, P ) and (Γ, Q) are monos, so that we can think of P and Q as subobjects of Γ. In particular, we can write P Q when there exists a (necessarily unique) arrow P Q in the slice over Γ. The bracket operation determines an endofunctor [ ] : C/Γ C/Γ on the slice category over any context Γ. A type Γ A is mapped to Γ [A], and an arrow Γ, x : A t : B is mapped to the bottom arrow in the following diagram in C/Γ: x:a t B [ ] [ ] u:[a] [t] where [x]=u [B] Functoriality is ensured by uniqueness of image factorizations in C. The action of the functor [ ] on the arrow t is not to be confused with the arrow t [ ] = [t] : A [B], which does not even have the correct domain. 17

18 Substitution rules for bracket types, cf. Figure 1, imply that the functor is stable, in the sense that it commutes with pullbacks. The first two clauses of the following proposition say that bracket acts like a diamond operation, in the sense of modal logic, in a system with dependent types. As such, it is an example of quantified modal logic. Proposition 4.1 For any types A, B in a context Γ: 1. There is a canonical arrow A [A], natural in A. 2. [[A]] = [A]. 3. A = [A] A = A Γ A = [1]. 5. [A Γ B] = [A] Γ [B]. Moreover, (1) (3) characterize [ ] uniquely among stable endofunctors on C/Γ. Proof. The proposition is proved easily. By way of example, we prove that [[A]] = [A]. In the diagram A [A] Γ [[A]] the arrow [A] [[A]] is the regular epi part of an image factorization of the mono [A] Γ, therefore it is an isomorphism. Image factorization is evidently the unique stable endofunctor on C/Γ with properties (1) (3). Let us see how the adjunction (2) is validated, for any type A and a proposition P, by which we mean that P satisfies (8): given any arrow (term) A P, we apply the functor [ ] to get a unique one [A] [P ], but [P ] = P since P is a proposition. Conversely, given [A] P, we precompose with A [A] to get A P. To see how [ ] and interact, consider the types [ A B] and [ A [B]] in a context Γ, obtained by applying the and [ ] formation rules in two different 18

19 orders, as indicated in the following diagram. (Γ, A, B) (Γ, [ A B]) (Γ, A, [B]) P A B [ P A B] (Γ, [ A [B]]) P A [B] [ P A [B]] Since the two ways around the diagram from (Γ, A, B) to are both regular epi mono factorizations of the same arrow, by uniqueness of images we have: [ A [B]] = [ A B] For equality types Eq A, the elimination rule, Γ e : Eq A (a, b) Γ e = r(a) : Eq A (a, b) implies that Eq A (a, b) Eq A (a, b) = Eq A (a, b), whence: [Eq A (a, b)] = Eq A (a, b). Together with [1] = 1, that summarizes the properties of [ ] on its own. Things become more interesting in the presence of other type-forming operations, 0, A + B, AB, A B, A, where A stands for A 0. For finite sums we get [0] = 0, [A + B] = [[A] + [B]]. by an argument similar to that for. For we have ( A [B]) ( A [B]) = A ([B] [B]) = A [B], so that and one sees easily that [ A [B]] = A [B], [ A B] A [B] (9) where, as defined above, P Q iff there is a (necessarily unique) arrow P Q. When we specialize this to a function type A B we get [A [B]] = A [B], [A B] A [B]. (10) 19

20 The inequality results similarly in any formally analogous situation; e.g. if F (X) is the free group on a set X, then for any sets A and B there is a natural map ϑ : F (B A ) F (B) A defined on the generators f : A B by ϑ(f)(a) = f(a). For brackets on the left, it is easy to see that A [B] = [A] [B] = [[A] [B]]. (11) Taking B = 0 therefore yields the noteworthy A = [A] = [ A]. (12) Since A is thus always a proposition it is natural to ask whether perhaps: [A] = A? The answer is in general negative, since there are many simple models in regular lccc s in which double negation closure is not trivial on monos. Consider for instance the arrow category Set of functions between sets, and take the monomorphism s 1 where s : 0 1, as pictured below. s Since s 1 is monic, [s] = s. But since 0, s, 1 are obviously the only subobjects of 1, the Heyting algebra Sub(1) is the three-element one. Thus s = First Order Logic via Bracket Types In dependent type theory with the type-forming operations, 0, 1, [A], A + B, Eq A, x:a B, x:a B, the propositions in every context model first-order logic, under the following definitions: = 1 = 0 ϕ ψ = ϕ ψ ϕ ψ = [ϕ + ψ] ϕ ψ = ϕ ψ ϕ = ϕ 0 x = A y = Eq A (x, y) x:a. ϕ = x:a ϕ x:a. ϕ = [ x:a ϕ] (13) 20

21 The bracket is thus used to rectify the operations + and because they lead out of propositions. Operations defined in (13) satisfy the usual rules for intuitionistic first-order logic, and the resulting system is a dependent type theory with first-order logic over each type. It can be described categorically as the internal logic of a regular lccc with finite sums. This formulation is equivalent to the more customary one using both type theory and predicate logic, despite the fact that the first-order logical operations on the propositions are here defined in terms of the operations on types, rather than taken as primitive. In addition to first-order logic, one can use brackets to define subset types. For any type Γ, x:a B type, the associated subset type is defined by Γ {x : A B} type {x : A B} = x:a [B(x)]. These can be compared to the toolbox for subset types by Sambin [SV98]. By way of example, we remark that the category Equ of equilogical spaces [Sco96, BBS04] is a regular lccc, and so supports all of the logical operations considered above. For X Equ, the bracket of an X-indexed family of equilogical spaces (E x ) x X is of course the regular epi mono image factorization of the corresponding display map p : E X. The domain of the image [E] X is constructed from the same underlying space E as E = ( E, E ), but with the new equivalence relation, given by e [E] e pe = pe. The fact that Equ has this much internal logic without being a topos, or even a pretopos, was the original observation from which the present work grew [BBS04]. 6 First Order Logic vs. Propositions-as-Types As an application of bracket types, we can compare the conventional interpretation of first-order logic with the propositions-as-types interpretation, and relate first-order provability to provability in dependent type theory (without brackets). Suppose we have a single-sorted first-order theory T, consisting of constants, function and relation letters, and axioms given as closed formulas. The standard propositions-as-types interpretation of T into type theory, T DTT (14) 21

22 is determined by fixing the interpretations of the basic sort, the constants, function and relation symbols. The rest of the interpretation is determined inductively in the evident way, using the type-forming operations in place of the corresponding logical ones, cf. [ML98]. For example, ( x y.r(x, y) P (x)) = x:i y:i (R (x, y) + P (x)), where I is a new basic type interpreting the domain of individuals I, and the dependent types x : I P (x) and x : I, y : I R (x, y) interpret the relation symbols P and R. If we add a constant a : α for each axiom α, the translation ϕ of a provable closed formula ϕ becomes inhabited by a term that is obtained from a straightforward translation of the proof of ϕ into type theory. Thus, IFOL(T) ϕ implies DTT(T) ϕ, (15) where by DTT(T) ϕ we mean that the type ϕ is inhabited in the dependent type theory enriched with the basic types and constants needed for the translation, and with constants inhabiting the translations of axioms of T. The question we want to consider is the converse implication: if ϕ is inhabited in DTT(T), must ϕ be provable in the intuitionistic first-order theory T? Note that functions of higher types may be used in a term inhabiting ϕ, so this is not merely a matter of tracing out proofs in first-order logic. Proofs of partial converses of (15) for different fragments of first-order logic have been given by Martin-Löf (, in [ML98]) and, recently, Tait (,,,, in [Tai]). These results are for type theory with either no equality types, or intensional equality types, and proceed from normalization. We give a result below that applies to type theory with extensional equality for a large fragment of first-order logic. Definition 6.1 A first-order formula ϑ is stable when it does not contain and, but negation is allowed as a special case of. A first-order formula ϕ is left-stable when in every subformula of the form ϑ ψ, the formula ϑ is stable. Theorem 6.2 If ϕ is left-stable then DTT(T) ϕ implies IFOL(T) ϕ. Proof. There is a regular lccc E with finite coproducts and a conservative, first-order interpretation y of T into E, schematically: T y E (16) A formula ϕ with free variables x 1,..., x n is translated into a subobject y(ϕ) Sub(y(I) n ), where y(i) is the interpretation of the sort of individuals. A sentence ϕ is translated into a subobject y(ϕ) Sub(1) of the terminal object, and the conservativity of y means that y(ϕ) = 1 implies IFOL(T) ϕ. (17) 22

23 For E we can take the first-order classifying topos for the theory T, in the sense of [BJ98] (sheaves on the syntactic logos generated by T). Since E is locally cartesian closed and has finite coproducts, we can interpret dependent type theory with disjoint sums in it. If we compose this interpretation with the translation (14), where we set I = y(i), and R = y(r), f = y(f) for the basic relation and function symbols, then we obtain another interpretation of T into E, schematically: T E Clearly if DTT(T) ϕ, then in E there exists a point 1 ϕ (18) namely the interpretation of the term inhabiting ϕ. Because E is regular, it has bracket types. The composition [ ] gives an interpretation of T into the propositional logic of E in each slice E/(I ) n. More precisely, every formula ϕ with free variables x 1,..., x n is first interpreted as a type ϕ in the slice E/(I ) n, and then the bracket of that type gives us a subobject of (I ) n, [ϕ ] (I ) n We will prove the theorem by comparing the subobjects [ϕ ] and y(ϕ), for which we need the following two lemmas. Lemma 6.3 If ϑ is stable, then [ϑ ] = y(ϑ). Proof. This follows from the equations (13) in the previous section, together with the fact that the indicated definitions agree with the first-order operations in any topos, as is easily seen. Specifically, since the two interpretations plainly agree on the atomic formulas and y preserves the first-order operations, we can proceed by straightforward induction. For instance, the case of disjunctions goes as follows: [(ϕ ψ) ] = [ϕ + ψ ] = [[ϕ ] + [ψ ]] = [ϕ ] [ψ ] = y(ϕ) y(ψ) = y(ϕ ψ). This completes the proof of the lemma. If we tried to prove the previous lemma for formulas that contain universal quantifiers and implications, we would get stuck because (9) and (10) are only inequalities. Negation works, however, thanks to (12). Lemma 6.4 If ϕ is left-stable, then [ϕ ] y(ϕ). Proof. As in the previous lemma, we proceed by induction and use equations (13). The stable cases follow from Lemma 6.3. For universal quantifiers 23

24 we have: For implication we have: [( x.ϕ) ] = [ x:i ϕ ] x:i [ϕ ] (by (9)) = x:i. [ϕ ] x:i. y(ϕ) (ϕ left-stable) = x : y(i). y(ϕ) = y( x. ϕ) [(ϑ ψ) ] = [ϑ ψ ] ϑ [ψ ] (by (10)) = [ϑ ] [ψ ] (by (11)) = [ϑ ] [ψ ] = y(ϑ) [ψ ] (ϑ stable) y(ϑ) y(ψ) (ψ left-stable) = y(ϑ ψ) This concludes the proof of the lemma. To finish the proof of Theorem 6.2, let ϕ be a left-stable sentence such that DTT(T) ϕ. Then, continuing from (18) above, in E we have maps: 1 ϕ [ϕ ] y(ϕ) 1. So y(ϕ) = 1, and therefore IFOL(T) ϕ by (17). Observe that every first-order formula ϕ is classically equivalent to one ϕ s that is stable. The formula ϕ s, which we call the stabilized translation of ϕ, is obtained by replacing in ϕ every x. ϑ and ϑ ψ by x. ϑ and (ϑ ψ), respectively. The equivalence ϕ ϕ s holds intuitionistically if ϕ = ψ is the double-negation translation of a formula ψ. Therefore, the stabilized doublenegation translation (ϕ ) s takes a formula ϕ of classical first-order logic (CFOL) to a stable one in IFOL, with the property CFOL ϕ if, and only if, IFOL (ϕ ) s If we compose the s translation with the propositions-as-types translation, we obtain a translation ϕ + = ((ϕ ) s ) which takes formulas of (classical) first-order logic into dependent type theory, in such a way that every formula ϕ is classically equivalent to one covered by Theorem

25 Corollary 6.5 The translation ϕ ϕ + of classical first-order logic into dependent type theory has the following property: CFOL ϕ if, and only if, DTT ϕ + Here DTT ϕ + means that the type ϕ + is inhabited. Remark 6.6 The following formula was suggested to us by Thierry Coquand: ( x y. R(x, y)) x, x y, y. (R(x, y) R(x, y ) (x = x y = y )). It is not provable in intuitionistic first-order logic, but its -translation is inhabited in dependent type theory, by an application of the axiom of choice. Theorem 6.2 therefore cannot be extended to full intuitionistic first-order logic. Remark 6.7 For the special case of intuitionistic propositional logic (IPC, with connectives,,,, ) completeness with respect to dependent type theory (DTT) it is easily seen to hold for all formulas. Briefly, first we use the Curry-Howard correspondence between proofs in IPC and terms in simply-typed λ-calculus with disjoint sums and the empty type (STT) to conclude that IPC ϕ if, and only if STT ϕ. Then we use the well-known correspondence between STT and bicartesian closed categories (BiCCC), 1 to conclude that the completeness of IPC with respect to DTT follows from the fact that every BiCCC has a full and faithful BiCCC embedding into a locally cartesian closed category with finite coproducts (namely its topos of sheaves for the finite coproduct topology). 7 Concluding Remarks The addition of bracket types to dependent type theory not only provides a more expressive system of types useful for reasoning about proof irrelevance and formally similar phenomena; it also provides an example of how a modal operator can be used to form a bridge between two different systems, in this case dependent type theory and first-order logic. The use of modal operators in type theory seems to be a fruitful area for further research, and semantic methods will surely aid in such investigations. More specifically, the fact that the traditional propositional modal operators are simple examples of (co)monads, in the categorical sense, suggests studying such structures on (locally) cartesian closed categories, as the natural semantics for modal operators in (dependent) type theory. Our investigation here was just one particular example (a monad) of this general scheme. The resulting application to the conservativity of type theory can serve as a sample and pattern of 1 Finite coproducts are required to be stable under pullbacks here, otherwise substitution rules are unsound. 25

26 the sort of results that one might expect in general (indeed, a formally similar result was achieved by related methods in [ABS02]). A number of other topics related to the current work deserve mention, but did not find space for elaboration. We record them here, and hope to deal with them at greater length in the future. Interdefinability. In certain systems of logic, the bracket operation is definable. For instance, in the presence of first-order existential quantifiers, we have [A] = x:a. (x = x). In a topos, we also have the option: [A] = p:ω (A {u:1 p}) {u:1 p} where {u:1 p} 1 is the extension of p. A similar definition works in systems of type theory with universes. See [Acz01] for a study of related operations. Classical type theory. In the context of (13), consider the further rules (a) [A] = A and (b) [ A B] = A [B]. In toposes (a) is Excluded Middle and (b) is the Axiom of Choice, which is strictly stronger. In type theory, therefore, (b) cannot be proved from (a) (consider a permutation model), while the converse inference is plausible, but unverified. See [Awo95, Pal04] for related results. Alternate formulations. We can also consider a formulation of bracket types in which we have a new judgment Γ P prop, expressing the fact that P is a proposition. The rules would then be as follows: Γ A type Γ [A] prop Γ P prop Γ P type Γ a : A Γ [a] : [A] Γ q : [A] Γ, x:a p : P Γ P prop Γ p where [x] = q : P Γ p : P Γ q : P Γ P prop Γ p = q : P This formulation is better from the type-theoretic point of view because it does not involve an equality judgment as a premise for the elimination rule. As stated so far, however, the rules permit many different interpretations, including the trivial interpretation in which the only proposition is the unit type 1, and [A] = 1 for all A. One could additionally assert that certain types are propositions: Γ 0 prop Γ 1 prop Γ P prop Γ Q prop Γ P Q prop Γ P prop Γ Q prop Γ P Q prop Γ, x:a P prop Γ Γ s : A Γ t : A x:a P prop Γ Eq A (s, t) prop 26

27 This still leaves room for alternative interpretations. For example, nothing prevents interpreting propositions as regular monos and the bracket types as the epi regular mono factorizations. Acknowledgement. We gratefully acknowledge the support of the Institut Mittag-Leffler, the Royal Swedish Academy of Sciences, where this research was conducted. We also thank Peter Aczel, Lars Birkedal, Thierry Coquand, Nicola Gambino, Milli Maietti, Per Martin-Löf, Grigori Mints, Erik Palmgren, Frank Pfenning, Dana Scott, Anton Setzer, and Bill Tait for their contributions. This work is part of the Logic of Types and Computation project at Carnegie Mellon University under the direction of Dana Scott. A Dependent Sums and Equality Types For completeness, we list the rules for dependent type theory with the unit type, strong dependent sums and strong extensional equality, cf. [Jac99]. We do not show rules which relate judgmental equality and substitution ( substitution of equals for equals ). Formation rules: Γ 1 type Γ, x:a B type Γ x:a B type Introduction and elimination rules: Γ A type Γ, x:a, y:a Eq A (x, y) type Γ t : A Γ : 1 Γ r(t) : Eq A (t, t) Γ a : A Γ, x:a B type Γ b : B{a/x} Γ a, b : x:a B Γ p : x:a B Γ π 1 (p) : A Γ p : x:a B Γ π 2 (p) : B{π 1 (p)/x} In x:ab, variable x is bound in A. Equality rules: Conversions: Γ t : 1 Γ t = : 1 Γ e : Eq A (s, t)) Γ s = t : A Γ e : Eq A (s, t) Γ e = r(s) : Eq A (s, t) π 1 ( a, b ) = a π 2 ( a, b ) = b π 1 (p), π 2 (p) = p 27

28 References [ABS02] S. Awodey, L. Birkedal, and D.S. Scott. Local realizability toposes and a modal logic for computability. Mathematical Structures in Computer Science, 12: , [Acz01] P. Aczel. The Russell-Prawitz modality. Mathematical Structures in Computer Science, 11(4): , August [AG02] P. Aczel and N. Gambino. Collection principles in dependent type theory. In P. Callaghan, Z. Luo, J. McKinna, and R. Pollack, editors, Types for Proofs and Programs, International Workshop, TYPES 2000, Durham, UK, December 8-12, 2000, Selected Papers, volume 2277 of Lecture Notes in Computer Science, pages Springer, [Awo95] [BBS04] [BJ98] [Bor94] [Hof95] S. Awodey. Axiom of choice and excluded middle in categorical logic. Bulletin of Symbolic Logic, 1:344, Abstract of unpublished manuscript. A. Bauer, L. Birkedal, and D.S. Scott. Equilogical spaces. Theoretical Computer Science, 315(1):35 59, C. Butz and P.T. Johnstone. Classifying toposes for first-order theories. Annals of Pure and Applied Logic, 91:35 58, F. Borceux. Handbook of Categorical Algebra, volume 2. Cambridge University Press, M. Hofmann. On the interpretation of type theory in locally cartesian closed categories. In L. Pacholski and J. Tiuryn, editors, Computer Science Logic 1994, volume 806 of Lecture Notes in Computer Science. Springer, [How80] W. A. Howard. The formulae-as-types notion of construction. In J. R. Seldin and J. P. Hindley, editors, To H. B. Curry: Essays on Combinaory Logic, Lambda Calculus, and Formalism. Academic Press, [Jac99] B. Jacobs. Categorical Logic and Type Theory. Elsevier Science, [Joh02] P.T. Johnstone. Sketches of an Elephant: A Topos Theory Compendium, volume 2, volume 44 of Oxford Logic Guides. Oxford University Press, [Law69] F. W. Lawvere. Adjointness in foundations. Dialectica, 23: , [Mai98a] M. Maietti. The internal type theory of an heyting pretopos. In E. Giménez and C. Paulin-Mohring, editors, Types for Proofs and 28

29 Programs, International Workshop TYPES 96, Aussois, France, December 15-19, 1996, Selected Papers, volume 1512 of Lecture Notes in Computer Science, pages Springer, [Mai98b] M.E. Maietti. The Type Theory of Categorical Universes. PhD thesis, Università Degli Studi di Padova, [Men90] [ML84] [ML98] N. P. Mendler. Quotient types via coequalizers in Martin-Löf type theory. In G. Huet and G. Plotkin, editors, Informal Proceedings of the First Workshop on Logical Frameworks, Antibes, May 1990, pages , P. Martin-Löf. Intuitionistic Type Theory. Notes by Giovanni Sambin of a series of lectures given in Padua, June Bibliopolis, Napoli, P. Martin-Löf. An intuitionistic theory of types. In G. Sambin and J. Smith, editors, Twenty-Five Years of Constructive Type Theory. Oxford University Press, August Proceedings of a Congress held in Venice, Italy, October [Pal04] E. Palmgren. A categorical version of the Brouwer-Heyting- Kolmogorov interpretation. Mathematical Structures in Computer Science, 14:57 72, [Pfe01] [Sco96] [SV98] [Tai] F. Pfenning. Intensionality, extensionality, and proof irrelevance in modal type theory. In Proceedings of the 16th Annual IEEE Symposium on Logic in Computer Science (LICS 01), page 221. IEEE Computer Society, June D.S. Scott. A new category? Unpublished Manuscript. Available at December G. Sambin and S. Valentini. Building up a toolbox for Martin-Löf s type theory: Subset theory. In G. Sambin and J. Smith, editors, Twenty-Five Years of Constructive Type Theory. Oxford University Press, August Proceedings of a Congress held in Venice, Italy, October W. W. Tait. The completeness of intuitionistic first-order logic. Unpublished manuscript. 29

Propositions as [Types]

Propositions as [Types] Carnegie Mellon University Research Showcase @ CMU Department of Philosophy Dietrich College of Humanities and Social Sciences 6-2001 Propositions as [Types] Steve Awodey Carnegie Mellon University, awodey@cmu.edu

More information

Locally cartesian closed categories

Locally cartesian closed categories Locally cartesian closed categories Clive Newstead 80-814 Categorical Logic, Carnegie Mellon University Wednesday 1st March 2017 Abstract Cartesian closed categories provide a natural setting for the interpretation

More information

Topos Theory. Lectures 17-20: The interpretation of logic in categories. Olivia Caramello. Topos Theory. Olivia Caramello.

Topos Theory. Lectures 17-20: The interpretation of logic in categories. Olivia Caramello. Topos Theory. Olivia Caramello. logic s Lectures 17-20: logic in 2 / 40 logic s Interpreting first-order logic in In Logic, first-order s are a wide class of formal s used for talking about structures of any kind (where the restriction

More information

University of Oxford, Michaelis November 16, Categorical Semantics and Topos Theory Homotopy type theor

University of Oxford, Michaelis November 16, Categorical Semantics and Topos Theory Homotopy type theor Categorical Semantics and Topos Theory Homotopy type theory Seminar University of Oxford, Michaelis 2011 November 16, 2011 References Johnstone, P.T.: Sketches of an Elephant. A Topos-Theory Compendium.

More information

Higher Order Containers

Higher Order Containers Higher Order Containers Thorsten Altenkirch 1, Paul Levy 2, and Sam Staton 3 1 University of Nottingham 2 University of Birmingham 3 University of Cambridge Abstract. Containers are a semantic way to talk

More information

Boolean Algebra and Propositional Logic

Boolean Algebra and Propositional Logic Boolean Algebra and Propositional Logic Takahiro Kato June 23, 2015 This article provides yet another characterization of Boolean algebras and, using this characterization, establishes a more direct connection

More information

Boolean Algebra and Propositional Logic

Boolean Algebra and Propositional Logic Boolean Algebra and Propositional Logic Takahiro Kato September 10, 2015 ABSTRACT. This article provides yet another characterization of Boolean algebras and, using this characterization, establishes a

More information

Intensionality, Extensionality, and Proof Irrelevance in Modal Type Theory

Intensionality, Extensionality, and Proof Irrelevance in Modal Type Theory Intensionality, Extensionality, and Proof Irrelevance in Modal Type Theory Frank Pfenning LICS 01 Boston, Massachusetts June 17, 2001 Acknowledgments: Alberto Momigliano,... 1 Outline 1. Introduction 2.

More information

Lecture Notes on Combinatory Modal Logic

Lecture Notes on Combinatory Modal Logic Lecture Notes on Combinatory Modal Logic 15-816: Modal Logic Frank Pfenning Lecture 9 February 16, 2010 1 Introduction The connection between proofs and program so far has been through a proof term assignment

More information

Topos Theory. Lectures 21 and 22: Classifying toposes. Olivia Caramello. Topos Theory. Olivia Caramello. The notion of classifying topos

Topos Theory. Lectures 21 and 22: Classifying toposes. Olivia Caramello. Topos Theory. Olivia Caramello. The notion of classifying topos Lectures 21 and 22: toposes of 2 / 30 Toposes as mathematical universes of Recall that every Grothendieck topos E is an elementary topos. Thus, given the fact that arbitrary colimits exist in E, we can

More information

Postulated colimits and left exactness of Kan-extensions

Postulated colimits and left exactness of Kan-extensions Postulated colimits and left exactness of Kan-extensions Anders Kock If A is a small category and E a Grothendieck topos, the Kan extension LanF of a flat functor F : A E along any functor A D preserves

More information

A categorical structure of realizers for the Minimalist Foundation

A categorical structure of realizers for the Minimalist Foundation A categorical structure of realizers for the Minimalist Foundation S.Maschio (joint work with M.E.Maietti) Department of Mathematics University of Padua TACL 2015 Ischia The Minimalist Foundation Many

More information

Categories, Proofs and Programs

Categories, Proofs and Programs Categories, Proofs and Programs Samson Abramsky and Nikos Tzevelekos Lecture 4: Curry-Howard Correspondence and Cartesian Closed Categories In A Nutshell Logic Computation 555555555555555555 5 Categories

More information

Higher toposes Internal logic Modalities Sub- -toposes Formalization. Modalities in HoTT. Egbert Rijke, Mike Shulman, Bas Spitters 1706.

Higher toposes Internal logic Modalities Sub- -toposes Formalization. Modalities in HoTT. Egbert Rijke, Mike Shulman, Bas Spitters 1706. Modalities in HoTT Egbert Rijke, Mike Shulman, Bas Spitters 1706.07526 Outline 1 Higher toposes 2 Internal logic 3 Modalities 4 Sub- -toposes 5 Formalization Two generalizations of Sets Groupoids: To keep

More information

Proving Completeness for Nested Sequent Calculi 1

Proving Completeness for Nested Sequent Calculi 1 Proving Completeness for Nested Sequent Calculi 1 Melvin Fitting abstract. Proving the completeness of classical propositional logic by using maximal consistent sets is perhaps the most common method there

More information

A New Category for Semantics

A New Category for Semantics A New Category for Semantics Andrej Bauer and Dana Scott June 2001 Domain theory for denotational semantics is over thirty years old. There are many variations on the idea and many interesting constructs

More information

TR : Binding Modalities

TR : Binding Modalities City University of New York (CUNY) CUNY Academic Works Computer Science Technical Reports Graduate Center 2012 TR-2012011: Binding Modalities Sergei N. Artemov Tatiana Yavorskaya (Sidon) Follow this and

More information

The Relation Reflection Scheme

The Relation Reflection Scheme The Relation Reflection Scheme Peter Aczel petera@cs.man.ac.uk Schools of Mathematics and Computer Science The University of Manchester September 14, 2007 1 Introduction In this paper we introduce a new

More information

An adjoint construction for topological models of intuitionistic modal logic Extended abstract

An adjoint construction for topological models of intuitionistic modal logic Extended abstract An adjoint construction for topological models of intuitionistic modal logic Extended abstract M.J. Collinson, B.P. Hilken, D.E. Rydeheard April 2003 The purpose of this paper is to investigate topological

More information

The equivalence axiom and univalent models of type theory.

The equivalence axiom and univalent models of type theory. The equivalence axiom and univalent models of type theory. (Talk at CMU on February 4, 2010) By Vladimir Voevodsky Abstract I will show how to define, in any type system with dependent sums, products and

More information

Lecture 2: Syntax. January 24, 2018

Lecture 2: Syntax. January 24, 2018 Lecture 2: Syntax January 24, 2018 We now review the basic definitions of first-order logic in more detail. Recall that a language consists of a collection of symbols {P i }, each of which has some specified

More information

On Modal Logics of Partial Recursive Functions

On Modal Logics of Partial Recursive Functions arxiv:cs/0407031v1 [cs.lo] 12 Jul 2004 On Modal Logics of Partial Recursive Functions Pavel Naumov Computer Science Pennsylvania State University Middletown, PA 17057 naumov@psu.edu June 14, 2018 Abstract

More information

Unbounded quantifiers via 2-categorical logic

Unbounded quantifiers via 2-categorical logic via Unbounded via A. University of Chicago March 18, 2010 via Why? For the same reasons we study 1-categorical. 1 It tells us things about 2-categories. Proofs about fibrations and stacks are simplified

More information

A MODEL-THEORETIC PROOF OF HILBERT S NULLSTELLENSATZ

A MODEL-THEORETIC PROOF OF HILBERT S NULLSTELLENSATZ A MODEL-THEORETIC PROOF OF HILBERT S NULLSTELLENSATZ NICOLAS FORD Abstract. The goal of this paper is to present a proof of the Nullstellensatz using tools from a branch of logic called model theory. In

More information

arxiv:math/ v1 [math.lo] 22 Jul 2005

arxiv:math/ v1 [math.lo] 22 Jul 2005 Sheaves for predicative toposes arxiv:math/0507480v1 [math.lo] 22 Jul 2005 Benno van den Berg 22 July, 2005 Abstract: In this paper, we identify some categorical structures in which one can model predicative

More information

The Calculus of Inductive Constructions

The Calculus of Inductive Constructions The Calculus of Inductive Constructions Hugo Herbelin 10th Oregon Programming Languages Summer School Eugene, Oregon, June 16-July 1, 2011 1 Outline - A bit of history, leading to the Calculus of Inductive

More information

Logic for Computational Effects: work in progress

Logic for Computational Effects: work in progress 1 Logic for Computational Effects: work in progress Gordon Plotkin and John Power School of Informatics University of Edinburgh King s Buildings Mayfield Road Edinburgh EH9 3JZ Scotland gdp@inf.ed.ac.uk,

More information

Homotopy Type Theory

Homotopy Type Theory Homotopy Type Theory Jeremy Avigad Department of Philosophy and Department of Mathematical Sciences Carnegie Mellon University February 2016 Homotopy Type Theory HoTT relies on a novel homotopy-theoretic

More information

A Note on Bootstrapping Intuitionistic Bounded Arithmetic

A Note on Bootstrapping Intuitionistic Bounded Arithmetic A Note on Bootstrapping Intuitionistic Bounded Arithmetic SAMUEL R. BUSS Department of Mathematics University of California, San Diego Abstract This paper, firstly, discusses the relationship between Buss

More information

3.2 Reduction 29. Truth. The constructor just forms the unit element,. Since there is no destructor, there is no reduction rule.

3.2 Reduction 29. Truth. The constructor just forms the unit element,. Since there is no destructor, there is no reduction rule. 32 Reduction 29 32 Reduction In the preceding section, we have introduced the assignment of proof terms to natural deductions If proofs are programs then we need to explain how proofs are to be executed,

More information

Lecture Notes on Classical Linear Logic

Lecture Notes on Classical Linear Logic Lecture Notes on Classical Linear Logic 15-816: Linear Logic Frank Pfenning Lecture 25 April 23, 2012 Originally, linear logic was conceived by Girard [Gir87] as a classical system, with one-sided sequents,

More information

The Curry-Howard Isomorphism

The Curry-Howard Isomorphism The Curry-Howard Isomorphism Software Formal Verification Maria João Frade Departmento de Informática Universidade do Minho 2008/2009 Maria João Frade (DI-UM) The Curry-Howard Isomorphism MFES 2008/09

More information

Categorical models of homotopy type theory

Categorical models of homotopy type theory Categorical models of homotopy type theory Michael Shulman 12 April 2012 Outline 1 Homotopy type theory in model categories 2 The universal Kan fibration 3 Models in (, 1)-toposes Homotopy type theory

More information

Lecture Notes on The Curry-Howard Isomorphism

Lecture Notes on The Curry-Howard Isomorphism Lecture Notes on The Curry-Howard Isomorphism 15-312: Foundations of Programming Languages Frank Pfenning Lecture 27 ecember 4, 2003 In this lecture we explore an interesting connection between logic and

More information

Binary positivity in the language of locales

Binary positivity in the language of locales Binary positivity in the language of locales Francesco Ciraulo Department of Mathematics University of Padua 4 th Workshop on Formal Topology June 15-20 2012, Ljubljana Francesco Ciraulo (Padua) Binary

More information

Olivia Caramello. University of Insubria - Como. Deductive systems and. Grothendieck topologies. Olivia Caramello. Introduction.

Olivia Caramello. University of Insubria - Como. Deductive systems and. Grothendieck topologies. Olivia Caramello. Introduction. duality University of Insubria - Como 2 / 27 duality Aim of the talk purpose of this talk is to illustrate the relevance of the notion of topology. I will show that the classical proof system of geometric

More information

Peano Arithmetic. CSC 438F/2404F Notes (S. Cook) Fall, Goals Now

Peano Arithmetic. CSC 438F/2404F Notes (S. Cook) Fall, Goals Now CSC 438F/2404F Notes (S. Cook) Fall, 2008 Peano Arithmetic Goals Now 1) We will introduce a standard set of axioms for the language L A. The theory generated by these axioms is denoted PA and called Peano

More information

Lecture Notes on Sequent Calculus

Lecture Notes on Sequent Calculus Lecture Notes on Sequent Calculus 15-816: Modal Logic Frank Pfenning Lecture 8 February 9, 2010 1 Introduction In this lecture we present the sequent calculus and its theory. The sequent calculus was originally

More information

Introduction to dependent type theory. CIRM, May 30

Introduction to dependent type theory. CIRM, May 30 CIRM, May 30 Goals of this presentation Some history and motivations Notations used in type theory Main goal: the statement of main properties of equality type and the univalence axiom First talk P ropositions

More information

Introduction to Metalogic

Introduction to Metalogic Philosophy 135 Spring 2008 Tony Martin Introduction to Metalogic 1 The semantics of sentential logic. The language L of sentential logic. Symbols of L: Remarks: (i) sentence letters p 0, p 1, p 2,... (ii)

More information

The overlap algebra of regular opens

The overlap algebra of regular opens The overlap algebra of regular opens Francesco Ciraulo Giovanni Sambin Abstract Overlap algebras are complete lattices enriched with an extra primitive relation, called overlap. The new notion of overlap

More information

Introduction to type theory and homotopy theory

Introduction to type theory and homotopy theory Introduction to type theory and homotopy theory Michael Shulman January 24, 2012 1 / 47 Homotopy theory Homotopy type theory types have a homotopy theory Intensional type theory New perspectives on extensional

More information

1 / A bird s-eye view of type theory. 2 A bird s-eye view of homotopy theory. 3 Path spaces and identity types. 4 Homotopy type theory

1 / A bird s-eye view of type theory. 2 A bird s-eye view of homotopy theory. 3 Path spaces and identity types. 4 Homotopy type theory Introduction to type theory and homotopy theory Michael Shulman January 24, 2012 Homotopy theory Homotopy type theory types have a homotopy theory New perspectives on extensional vs. intensional Intensional

More information

Introduction to Intuitionistic Logic

Introduction to Intuitionistic Logic Introduction to Intuitionistic Logic August 31, 2016 We deal exclusively with propositional intuitionistic logic. The language is defined as follows. φ := p φ ψ φ ψ φ ψ φ := φ and φ ψ := (φ ψ) (ψ φ). A

More information

Syntactic Characterisations in Model Theory

Syntactic Characterisations in Model Theory Department of Mathematics Bachelor Thesis (7.5 ECTS) Syntactic Characterisations in Model Theory Author: Dionijs van Tuijl Supervisor: Dr. Jaap van Oosten June 15, 2016 Contents 1 Introduction 2 2 Preliminaries

More information

Formally real local rings, and infinitesimal stability.

Formally real local rings, and infinitesimal stability. Formally real local rings, and infinitesimal stability. Anders Kock We propose here a topos-theoretic substitute for the theory of formally-real field, and real-closed field. By substitute we mean that

More information

via Topos Theory Olivia Caramello University of Cambridge The unification of Mathematics via Topos Theory Olivia Caramello

via Topos Theory Olivia Caramello University of Cambridge The unification of Mathematics via Topos Theory Olivia Caramello in University of Cambridge 2 / 23 in in In this lecture, whenever I use the word topos, I really mean Grothendieck topos. Recall that a Grothendieck topos can be seen as: a generalized space a mathematical

More information

Type Theory and Univalent Foundation

Type Theory and Univalent Foundation Thierry Coquand Clermont-Ferrand, October 17, 2013 This talk Revisit some questions discussed by Russell at the beginning of Type Theory -Russell s Paradox (1901) -Theory of Descriptions (1905) -Theory

More information

Semantics for algebraic operations

Semantics for algebraic operations MFPS 17 Preliminary Version Semantics for algebraic operations Gordon Plotkin and John Power 1 Laboratory for the Foundations of Computer Science University of Edinburgh King s Buildings, Edinburgh EH9

More information

AN ALTERNATIVE NATURAL DEDUCTION FOR THE INTUITIONISTIC PROPOSITIONAL LOGIC

AN ALTERNATIVE NATURAL DEDUCTION FOR THE INTUITIONISTIC PROPOSITIONAL LOGIC Bulletin of the Section of Logic Volume 45/1 (2016), pp 33 51 http://dxdoiorg/1018778/0138-068045103 Mirjana Ilić 1 AN ALTERNATIVE NATURAL DEDUCTION FOR THE INTUITIONISTIC PROPOSITIONAL LOGIC Abstract

More information

Type Theory and Constructive Mathematics. Type Theory and Constructive Mathematics Thierry Coquand. University of Gothenburg

Type Theory and Constructive Mathematics. Type Theory and Constructive Mathematics Thierry Coquand. University of Gothenburg Type Theory and Constructive Mathematics Type Theory and Constructive Mathematics Thierry Coquand University of Gothenburg Content An introduction to Voevodsky s Univalent Foundations of Mathematics The

More information

SJÄLVSTÄNDIGA ARBETEN I MATEMATIK

SJÄLVSTÄNDIGA ARBETEN I MATEMATIK SJÄLVSTÄNDIGA ARBETEN I MATEMATIK MATEMATISKA INSTITUTIONEN, STOCKHOLMS UNIVERSITET Equivariant Sheaves on Topological Categories av Johan Lindberg 2015 - No 7 MATEMATISKA INSTITUTIONEN, STOCKHOLMS UNIVERSITET,

More information

A Note on Extensional PERs

A Note on Extensional PERs A Note on Extensional PERs W. P. Stekelenburg March 2, 2010 Abstract In the paper Extensional PERs by P. Freyd, P. Mulry, G. Rosolini and D. Scott, a category C of pointed complete extensional PERs and

More information

The Lambek-Grishin calculus for unary connectives

The Lambek-Grishin calculus for unary connectives The Lambek-Grishin calculus for unary connectives Anna Chernilovskaya Utrecht Institute of Linguistics OTS, Utrecht University, the Netherlands anna.chernilovskaya@let.uu.nl Introduction In traditional

More information

ACLT: Algebra, Categories, Logic in Topology - Grothendieck's generalized topological spaces (toposes)

ACLT: Algebra, Categories, Logic in Topology - Grothendieck's generalized topological spaces (toposes) ACLT: Algebra, Categories, Logic in Topology - Grothendieck's generalized topological spaces (toposes) Steve Vickers CS Theory Group Birmingham 2. Theories and models Categorical approach to many-sorted

More information

Embedding locales and formal topologies into positive topologies

Embedding locales and formal topologies into positive topologies Embedding locales and formal topologies into positive topologies Francesco Ciraulo Giovanni Sambin Department of Mathematics, University of Padova Via Trieste 63, 35121 Padova, Italy ciraulo@math.unipd.it,

More information

Topos-theoretic background

Topos-theoretic background opos-theoretic background Olivia Caramello IHÉS September 22, 2014 Contents 1 Introduction 2 2 erminology and notation 3 3 Grothendieck toposes 3 3.1 he notion of site............................ 3 3.2

More information

Aspects of Predicative Algebraic Set Theory I: Exact Completion (DRAFT)

Aspects of Predicative Algebraic Set Theory I: Exact Completion (DRAFT) Aspects of Predicative Algebraic Set Theory I: Exact Completion (DRAFT) Benno van den Berg & Ieke Moerdijk September 24, 2007 1 Introduction This is the first in a series of three papers on Algebraic Set

More information

Towards Modal Type Theory

Towards Modal Type Theory Towards Modal Type Theory Frank Pfenning Constructivism in Non-Classical Logics and Computer Science In Memoriam Pierangelo Miglioli Mantova, Italy October 2, 2000 Disclaimer: Work in Progress! Acknowledgments:

More information

Models of Intuitionistic Set Theory in Subtoposes of Nested Realizability Toposes

Models of Intuitionistic Set Theory in Subtoposes of Nested Realizability Toposes Models of Intuitionistic Set Theory in Subtoposes of Nested Realizability Toposes S. Maschio Dipartimento di Matematica, Università di Padova Via Trieste, Padova samuele.maschio@math.unipd.it T. Streicher

More information

On Paradoxes in Proof-Theoretic Semantics

On Paradoxes in Proof-Theoretic Semantics Quantum Group Dept. of Computer Science Oxford University 2nd PTS Conference, Tübingen, March 8, 2013 Outline 1 Categorical Harmony Logical Constants as Adjoint Functors Comparison with Other Concepts

More information

Some glances at topos theory. Francis Borceux

Some glances at topos theory. Francis Borceux Some glances at topos theory Francis Borceux Como, 2018 2 Francis Borceux francis.borceux@uclouvain.be Contents 1 Localic toposes 7 1.1 Sheaves on a topological space.................... 7 1.2 Sheaves

More information

Recent progress in Homotopy type theory

Recent progress in Homotopy type theory July 22nd, 2013 Supported by EU FP7 STREP FET-open ForMATH Most of the presentation is based on the book: CC-BY-SA Topos Homotopy type theory Collaborative effort lead by Awodey, Coquand, Voevodsky at

More information

Generalised elimination rules and harmony

Generalised elimination rules and harmony Generalised elimination rules and harmony Roy Dyckhoff Based on joint work with Nissim Francez Supported by EPSR grant EP/D064015/1 St ndrews, May 26, 2009 1 Introduction Standard natural deduction rules

More information

Prefixed Tableaus and Nested Sequents

Prefixed Tableaus and Nested Sequents Prefixed Tableaus and Nested Sequents Melvin Fitting Dept. Mathematics and Computer Science Lehman College (CUNY), 250 Bedford Park Boulevard West Bronx, NY 10468-1589 e-mail: melvin.fitting@lehman.cuny.edu

More information

MODELS OF HORN THEORIES

MODELS OF HORN THEORIES MODELS OF HORN THEORIES MICHAEL BARR Abstract. This paper explores the connection between categories of models of Horn theories and models of finite limit theories. The first is a proper subclass of the

More information

Unbounded quantifiers and strong axioms in topos theory

Unbounded quantifiers and strong axioms in topos theory Unbounded quantifiers and in topos A. University of Chicago November 14, 2009 The motivating question What is the topos-theoretic counterpart of the strong set-theoretic axioms of Separation, Replacement,

More information

arxiv: v1 [math.ct] 28 Dec 2018

arxiv: v1 [math.ct] 28 Dec 2018 arxiv:1812.10941v1 [math.ct] 28 Dec 2018 Janelidze s Categorical Galois Theory as a step in the Joyal and Tierney result Christopher Townsend December 31, 2018 Abstract We show that a trivial case of Janelidze

More information

Uniform Schemata for Proof Rules

Uniform Schemata for Proof Rules Uniform Schemata for Proof Rules Ulrich Berger and Tie Hou Department of omputer Science, Swansea University, UK {u.berger,cshou}@swansea.ac.uk Abstract. Motivated by the desire to facilitate the implementation

More information

hal , version 1-21 Oct 2009

hal , version 1-21 Oct 2009 ON SKOLEMISING ZERMELO S SET THEORY ALEXANDRE MIQUEL Abstract. We give a Skolemised presentation of Zermelo s set theory (with notations for comprehension, powerset, etc.) and show that this presentation

More information

Equality and dependent type theory. CIRM, May 31

Equality and dependent type theory. CIRM, May 31 CIRM, May 31 The Axiom of Univalence, a type-theoretic view point In type theory, we reduce proof-checking to type-checking Hence we want type-checking to be decidable This holds as soon as we have the

More information

U-Sets as a probabilistic set theory

U-Sets as a probabilistic set theory U-Sets as a probabilistic set theory Claudio Sossai ISIB-CNR, Corso Stati Uniti 4, 35127 Padova, Italy sossai@isib.cnr.it Technical Report 05/03 ISIB-CNR, October 2005 Abstract A topos of presheaves can

More information

MONADIC FRAGMENTS OF INTUITIONISTIC CONTROL LOGIC

MONADIC FRAGMENTS OF INTUITIONISTIC CONTROL LOGIC Bulletin of the Section of Logic Volume 45:3/4 (2016), pp. 143 153 http://dx.doi.org/10.18778/0138-0680.45.3.4.01 Anna Glenszczyk MONADIC FRAGMENTS OF INTUITIONISTIC CONTROL LOGIC Abstract We investigate

More information

Type Systems as a Foundation for Reliable Computing

Type Systems as a Foundation for Reliable Computing Type Systems as a Foundation for Reliable Computing Robert Harper Carnegie Mellon University Summer School on Reliable Computing University of Oregon July, 2005 References These lectures are based on the

More information

Lecture 9: Sheaves. February 11, 2018

Lecture 9: Sheaves. February 11, 2018 Lecture 9: Sheaves February 11, 2018 Recall that a category X is a topos if there exists an equivalence X Shv(C), where C is a small category (which can be assumed to admit finite limits) equipped with

More information

The synthetic theory of -categories vs the synthetic theory of -categories

The synthetic theory of -categories vs the synthetic theory of -categories Emily Riehl Johns Hopkins University The synthetic theory of -categories vs the synthetic theory of -categories joint with Dominic Verity and Michael Shulman Vladimir Voevodsky Memorial Conference The

More information

Semantics of intuitionistic propositional logic

Semantics of intuitionistic propositional logic Semantics of intuitionistic propositional logic Erik Palmgren Department of Mathematics, Uppsala University Lecture Notes for Applied Logic, Fall 2009 1 Introduction Intuitionistic logic is a weakening

More information

Well-behaved Principles Alternative to Bounded Induction

Well-behaved Principles Alternative to Bounded Induction Well-behaved Principles Alternative to Bounded Induction Zofia Adamowicz 1 Institute of Mathematics, Polish Academy of Sciences Śniadeckich 8, 00-956 Warszawa Leszek Aleksander Ko lodziejczyk Institute

More information

A BRIEF INTRODUCTION TO TYPED PREDICATE LOGIC

A BRIEF INTRODUCTION TO TYPED PREDICATE LOGIC A BRIEF INTRODUCTION TO TYPED PREDICATE LOGIC Raymond Turner December 6, 2010 Abstract Typed Predicate Logic 1 was developed to o er a unifying framework for many of the current logical systems, and especially

More information

Lecture 7. Logic. Section1: Statement Logic.

Lecture 7. Logic. Section1: Statement Logic. Ling 726: Mathematical Linguistics, Logic, Section : Statement Logic V. Borschev and B. Partee, October 5, 26 p. Lecture 7. Logic. Section: Statement Logic.. Statement Logic..... Goals..... Syntax of Statement

More information

Parameterizations and Fixed-Point Operators on Control Categories

Parameterizations and Fixed-Point Operators on Control Categories Parameterizations and Fixed-Point Operators on Control Categories oshihiko Kakutani 1 and Masahito Hasegawa 12 1 Research Institute for Mathematical Sciences, Kyoto University {kakutani,hassei}@kurims.kyoto-u.ac.jp

More information

FOUNDATIONS OF ALGEBRAIC GEOMETRY CLASS 2

FOUNDATIONS OF ALGEBRAIC GEOMETRY CLASS 2 FOUNDATIONS OF ALGEBRAIC GEOMETRY CLASS 2 RAVI VAKIL CONTENTS 1. Where we were 1 2. Yoneda s lemma 2 3. Limits and colimits 6 4. Adjoints 8 First, some bureaucratic details. We will move to 380-F for Monday

More information

Variations on Realizability. Simple examples realizing axioms of choice

Variations on Realizability. Simple examples realizing axioms of choice Variations on Realizability Simple examples realizing axioms of choice J.M.E. Hyland July 1, 1999 8x 2 X9y 2 Y'(x y)!9f 2 Y X 8x 2 X'(x f (x)) 1 Motivation M.E.Maietti: How close to a topos can one get

More information

PART I. Abstract algebraic categories

PART I. Abstract algebraic categories PART I Abstract algebraic categories It should be observed first that the whole concept of category is essentially an auxiliary one; our basic concepts are those of a functor and a natural transformation.

More information

Equational Logic. Chapter Syntax Terms and Term Algebras

Equational Logic. Chapter Syntax Terms and Term Algebras Chapter 2 Equational Logic 2.1 Syntax 2.1.1 Terms and Term Algebras The natural logic of algebra is equational logic, whose propositions are universally quantified identities between terms built up from

More information

Propositions and Proofs

Propositions and Proofs Chapter 2 Propositions and Proofs The goal of this chapter is to develop the two principal notions of logic, namely propositions and proofs There is no universal agreement about the proper foundations

More information

Synthetic Computability

Synthetic Computability Synthetic Computability Andrej Bauer Department of Mathematics and Physics University of Ljubljana Slovenia MFPS XXIII, New Orleans, April 2007 What is synthetic mathematics? Suppose we want to study mathematical

More information

What are Iteration Theories?

What are Iteration Theories? What are Iteration Theories? Jiří Adámek and Stefan Milius Institute of Theoretical Computer Science Technical University of Braunschweig Germany adamek,milius @iti.cs.tu-bs.de Jiří Velebil Department

More information

Mathematics 114L Spring 2018 D.A. Martin. Mathematical Logic

Mathematics 114L Spring 2018 D.A. Martin. Mathematical Logic Mathematics 114L Spring 2018 D.A. Martin Mathematical Logic 1 First-Order Languages. Symbols. All first-order languages we consider will have the following symbols: (i) variables v 1, v 2, v 3,... ; (ii)

More information

SHEAF INTERPRETATIONS FOR GENERALISED PREDICATIVE INTUITIONISTIC SYSTEMS

SHEAF INTERPRETATIONS FOR GENERALISED PREDICATIVE INTUITIONISTIC SYSTEMS SHEAF INTERPRETATIONS FOR GENERALISED PREDICATIVE INTUITIONISTIC SYSTEMS A thesis submitted to the University of Manchester for the degree of Doctor of Philosophy in the Faculty of Science and Engineering

More information

Program Testing and Constructive Validity

Program Testing and Constructive Validity Program Testing and Constructive Validity Peter Dybjer Chalmers University of Technology, Göteborg, Sweden Philosophy and Foundations of Mathematics: Epistemological and Ontological Aspects - to Per Martin-Löf

More information

Categorical Homotopy Type Theory

Categorical Homotopy Type Theory Categorical Homotopy Type Theory André Joyal UQÀM MIT Topology Seminar, March 17, 2014 Warning The present slides include corrections and modifications that were made during the week following my talk.

More information

Relational semantics for a fragment of linear logic

Relational semantics for a fragment of linear logic Relational semantics for a fragment of linear logic Dion Coumans March 4, 2011 Abstract Relational semantics, given by Kripke frames, play an essential role in the study of modal and intuitionistic logic.

More information

Beyond First-Order Logic

Beyond First-Order Logic Beyond First-Order Logic Software Formal Verification Maria João Frade Departmento de Informática Universidade do Minho 2008/2009 Maria João Frade (DI-UM) Beyond First-Order Logic MFES 2008/09 1 / 37 FOL

More information

CHAPTER 0: BACKGROUND (SPRING 2009 DRAFT)

CHAPTER 0: BACKGROUND (SPRING 2009 DRAFT) CHAPTER 0: BACKGROUND (SPRING 2009 DRAFT) MATH 378, CSUSM. SPRING 2009. AITKEN This chapter reviews some of the background concepts needed for Math 378. This chapter is new to the course (added Spring

More information

Notes on Propositional and First-Order Logic (CPSC 229 Class Notes, January )

Notes on Propositional and First-Order Logic (CPSC 229 Class Notes, January ) Notes on Propositional and First-Order Logic (CPSC 229 Class Notes, January 23 30 2017) John Lasseter Revised February 14, 2017 The following notes are a record of the class sessions we ve devoted to the

More information

Adjunctions! Everywhere!

Adjunctions! Everywhere! Adjunctions! Everywhere! Carnegie Mellon University Thursday 19 th September 2013 Clive Newstead Abstract What do free groups, existential quantifiers and Stone-Čech compactifications all have in common?

More information

Kripke Semantics for Martin-Löf s Extensional Type Theory

Kripke Semantics for Martin-Löf s Extensional Type Theory Kripke Semantics for Martin-Löf s Extensional Type Theory Steve Awodey 1 and Florian Rabe 2 1 Department of Philosophy, Carnegie Mellon University, Pittsburgh, USA, awodey@andrew.cmu.edu 2 School of Engineering

More information

Real-cohesion: from connectedness to continuity

Real-cohesion: from connectedness to continuity Real-cohesion: from connectedness to continuity Michael Shulman University of San Diego March 26, 2017 My hat today I am a mathematician: not a computer scientist. I am a categorical logician: type theory

More information

A generalization of modal definability

A generalization of modal definability A generalization of modal definability Tin Perkov Polytechnic of Zagreb Abstract. Known results on global definability in basic modal logic are generalized in the following sense. A class of Kripke models

More information