nLab 2-categorical logic

Redirected from "2-logic".

Context

Type theory

natural deduction metalanguage, practical foundations

  1. type formation rule
  2. term introduction rule
  3. term elimination rule
  4. computation rule

type theory (dependent, intensional, observational type theory, homotopy type theory)

syntax object language

computational trinitarianism =
propositions as types +programs as proofs +relation type theory/category theory

logicset theory (internal logic of)category theorytype theory
propositionsetobjecttype
predicatefamily of setsdisplay morphismdependent type
proofelementgeneralized elementterm/program
cut rulecomposition of classifying morphisms / pullback of display mapssubstitution
introduction rule for implicationcounit for hom-tensor adjunctionlambda
elimination rule for implicationunit for hom-tensor adjunctionapplication
cut elimination for implicationone of the zigzag identities for hom-tensor adjunctionbeta reduction
identity elimination for implicationthe other zigzag identity for hom-tensor adjunctioneta conversion
truesingletonterminal object/(-2)-truncated objecth-level 0-type/unit type
falseempty setinitial objectempty type
proposition, truth valuesubsingletonsubterminal object/(-1)-truncated objecth-proposition, mere proposition
logical conjunctioncartesian productproductproduct type
disjunctiondisjoint union (support of)coproduct ((-1)-truncation of)sum type (bracket type of)
implicationfunction set (into subsingleton)internal hom (into subterminal object)function type (into h-proposition)
negationfunction set into empty setinternal hom into initial objectfunction type into empty type
universal quantificationindexed cartesian product (of family of subsingletons)dependent product (of family of subterminal objects)dependent product type (of family of h-propositions)
existential quantificationindexed disjoint union (support of)dependent sum ((-1)-truncation of)dependent sum type (bracket type of)
logical equivalencebijection setobject of isomorphismsequivalence type
support setsupport object/(-1)-truncationpropositional truncation/bracket type
n-image of morphism into terminal object/n-truncationn-truncation modality
propositional equalitydiagonal function/diagonal subset/diagonal relationpath space objectidentity type/path type
completely presented setsetdiscrete object/0-truncated objecth-level 2-type/set/h-set
setset with equivalence relationinternal 0-groupoidBishop set/setoid with its pseudo-equivalence relation an actual equivalence relation
equivalence class/quotient setquotientquotient type
inductioncolimitinductive type, W-type, M-type
higher inductionhigher colimithigher inductive type
-0-truncated higher colimitquotient inductive type
coinductionlimitcoinductive type
presettype without identity types
set of truth valuessubobject classifiertype of propositions
domain of discourseuniverseobject classifiertype universe
modalityclosure operator, (idempotent) monadmodal type theory, monad (in computer science)
linear logic(symmetric, closed) monoidal categorylinear type theory/quantum computation
proof netstring diagramquantum circuit
(absence of) contraction rule(absence of) diagonalno-cloning theorem
synthetic mathematicsdomain specific embedded programming language

homotopy levels

semantics

2-category theory

Contents

Idea

Where

so

Therefore, the step from formal logic/categorical logic to formal 2-logic/2-categorical logic is analogous to the step from the former to homotopy type theory, where one instead considers the internal language of ( , 1 ) (\infty,1) -categories.

This means that 2-logic is a genuine extension of ordinary logic with new logical constructions and phenomena (largely still to be isolated properly) — analogous to how homotopy type theory enhances ordinary logical types to homotopy types, so 2-logic will be speaking about “1-types” of sorts (meaning: ( 1 , 1 ) (1,1) -types also known as small categories, as opposed to the more restrictive homotopy ( 1 , 0 ) (1,0) -types also known as groupoids, both generalizing the 0-types also known as sets).

For example:

In fact, there should be a joint generalization and unification of 2-logic of “2-types” with the “(,1)(\infty,1)-logic” of homotopy types, namely given by the internal language of ( , 2 ) (\infty,2) -categories (notably of ( , 2 ) (\infty,2) -toposes): This (,2)(\infty,2)-logic is currently being developed under the name directed homotopy type theory and as such, even if itself nascent, may be the most developed form of syntactic 2-logic that has found attention so far.

This means that 2-logic in the sense of this page here is not about the related but different idea of using general tools from 2-category theory in the study of ordinary 1-categorical logic, hence is not along the lines of how formal category theory uses 2-category theory to study 1-categories.

Of course, there may be relation and overlap between 2-logic proper and such “formal categorical logic” using 2-categorical methods in 1-logic. With genuine 2-logic not being developed much at all at this point, most of the references listed below actually fall on the side of 2-categorical methods in 1-logic.

For instance, for a suitable 2-dimensional sketch-like object its 2-category of models in Cat is a category of 1-theories: coherent categories, regular categories, lex categories. Thus, on one side we have the study of 2-sketch like objects, of 2-monads on Cat and Lex, and on 2-functorial semantics. This is the adagio that 2-theories are logics. On the other we have the study of 2-categories of (1)-theories, i.e. the idea that 2-models are 1-theories.

References

An early explicit logic for a class of structured 2-categories (namely lax cartesian closed 2-categories) may be found in:

Remarks on geometric 2-logic:

On further aspects of elementary 2-topoi:

Specifically on higher classifiers (higher analogs of what is the subobject classifier in ordinary elementary toposes):

On 2-functorial semantics:

On 2-categories as 2-theories:

On rewriting:

On 2-categories of 1-theories:

On (∞,2)-topoi:

On directed type theory and ends and coends as directed quantifiers:

A treatment of doctrines in terms of double categories:

Notes on assorted topics related to 2-categorical logic:

  • Mike Shulman: 2-categorical logic (Unfinished notes, 2009)

    (also includes exposition of other aspects of 2-logic, such as exactness and Grothendieck 2-topoi).

Last revised on November 16, 2025 at 14:06:58. See the history of this page for a list of all contributions to it.