## Quantum Gauge Field Theory

## in

## Cohesive Homotopy Type Theory

Urs Schreiber

University Nijmegen The Netherlands

urs.schreiber@gmail.com

Michael Shulman

University of San Diego San Diego, CA, USA

shulman@sandiego.edu

We implement in the formal language of homotopy type theory a new set of axioms called cohesion . Then we indicate how the resulting cohesive homotopy type theory naturally serves as a formal foundation for central concepts in quantum gauge field theory. This is a brief survey of work by the authors developed in detail elsewhere [47, 44].

## 1 Introduction

The observable world of physical phenomena is fundamentally governed by quantum gauge field theory (QFT) [16], as was recently once more confirmed by the detection [13] of the Higgs boson [8]. On the other hand, the world of mathematical concepts is fundamentally governed by formal logic , as elaborated in a foundational system such as axiomatic set theory or type theory.

Quantum gauge field theory is traditionally valued for the elegance and beauty of its mathematical description (as far as this has been understood). Formal logic is likewise valued for elegance and simplicity; aspects which have become especially important recently because they enable formalized mathematics to be verified by computers. This is generally most convenient using type-theoretic foundations [33]; see e.g. [15].

However, the mathematical machinery of quantum gauge field theory - such as differential geometry (for the description of spacetime [34]), differential cohomology (for the description of gauge force fields [24, 21]) and symplectic geometry (for the description of geometric quantization [10]) - has always seemed to be many levels of complexity above the mathematical foundations. Thus, while automated proof-checkers can deal with fields like linear algebra [15], even formalizing a basic differentialgeometric definition (such as a principal connection on a smooth manifold) seems intractable, not to speak of proving its basic properties.

We claim that this situation improves drastically by combining two insights from type theory. The first is that type theory can be interpreted 'internally' in locally Cartesian closed categories (see e.g. [14]), including categories of smooth spaces (which contain the classical category of smooth manifolds). In this way, type-theoretic arguments which appear to speak about discrete sets may be interpreted to speak about smooth spaces, with the smooth structure automatically 'carried along for the ride'. Thus, differential notions can be developed in a simple and elegant axiomatic framework - avoiding the complexity of the classical definitions by working in a formal system whose basic objects are already 'smooth'. This is known as synthetic differential geometry (SDG) [27, 28, 36]. In this paper, we will axiomatize it in a way which does not require that our basic objects are 'smooth', only that they are 'cohesive' as in [29]. This includes topological objects as well as smooth ones, and also variants of differential geometry such

c © U. Schreiber &amp; M. Shulman

as supergeometry , which is necessary for a full treatment of quantum field theory (for the description of fermions).

The second insight is that types in intensional type theory can also behave like homotopy types , a.k.a. ¥ -groupoids , which are not just sets of points but contain higher homotopy information. Just as SDG imports differential geometry directly into type theory, this one imports homotopy theory , and as such is called homotopy type theory [56, 1, 51, 40].

Combining these insights, we obtain cohesive homotopy type theory [47, 44]. Its basic objects (the 'types') have both cohesive structure and higher homotopy structure . These two kinds of structure are independent, in contrast to how classical algebraic topology identifies homotopy types with the topological spaces that present them. For instance, the geometric circle S 1 is categorically 0-truncated (it has a mere set of points with no isotropy), but carries an interesting topological or smooth structure - whereas the homotopy type it presents, denoted P ( S 1 ) or B Z (see below), has (up to equivalence) only one point (with trivial topology), but that point has a countably infinite isotropy group. More general cohesive homotopy types can be nontrivial in both ways, such as orbifolds [35, 30] and moduli stacks [57]. In particular the standard model of SDG known as the Cahiers topos lifts to a model of cohesive homotopy type theory that contains orbifolds and generally moduli stacks equipped with synthetic differential structure (section 4.5 of [44]).

Today it is clear that homotopy theory is at the heart of quantum field theory. One way to define an n -dimensional QFT is as a rule that assigns to each closed ( n -1 -dimensional manifold, a vector space ) -its space of quantum states -and to each n -dimensional cobordism , a linear map between the corresponding vector spaces - a correlator -in a way which respects gluing of cobordisms. An extended or local QFT also assigns data to all ( 0 ≤ k ≤ n ) -dimensional manifolds, such that the data assigned to any manifold can be reconstructed by gluing along lower dimensional boundaries. By [3, 32], the case of extended topological QFT (where the manifolds are equipped only with smooth structure) is entirely defined and classified by a universal construction in directed homotopy theory , i.e. ( ¥ , n ) -category theory [7, 50]. For non-topological QFTs, where the cobordisms have conformal or metric structure, the situation is more complicated, but directed homtopy type theory still governs the construction; see [42] for recent developments. We will see in section 3.3 how in cohesive homotopy type theory one naturally obtains such higher spaces of (pre-)quantum states assigned to manifolds of higher codimension.

Notice, as discussed in the introduction of [42], that many of the developments that led to these insights about the role of homotopy theory in quantum field theory originate in string theory , but they are now statements in pure QFT. String theory is the investigation of the second quantization of 1dimensional quanta ('strings') instead of 0-dimensional quanta ('particles') and this increase in geometric dimension induces a corresponding increase of homotopical dimension of many aspects. At least some of these are also usefully captured by cohesive homotopy type theory [45]. But while the phenomenological relevance of string theory for fundamental physics remains speculative, its proposal alone led to further investigation into the nature of pure quantum field theories which showed how this alone already involves homotopy theory, as used here.

The value of cohesive homotopy theory for physics lies in the observation that the QFTs observed to govern our world at the fundamental level - namely, Yang-Mills theory (for electromagnetism and the weak and strong nuclear forces) and Einstein general relativity (for gravity) - are not random instances of such QFTs. Instead (1) their construction follows a geometric principle, traditionally called the gauge symmetry principle [39], and (2) they are obtained by quantization from ('classical') data that lives in differential cohomology . Both of these aspects are actually native to cohesive homotopy type theory, as follows:

- 1. The very concept of a collection of quantum field configurations with gauge transformations between them is really that of a configuration groupoid , hence of a homotopy 1-type. More generally, in higher gauge theories such as those that appear in string theory, the higher gauge symmetries make the configurations form higher groupoids, hence general homotopy types. Furthermore, these configuration groupoids of gauge fields have smooth structure : they are smooth homotopy types .

To physicists, these smooth configuration groupoids are most familiar in their infinitesimal Lietheoretic approximation: the (higher) Lie algebroids whose function algebras constitute the BRST complex , in terms of which modern quantum gauge theory is formulated [22]. The degreen BRST cohomology of these complexes corresponds to the n th homotopy group of the cohesive homotopy types.

- 2. Gauge fields are cocycles in a cohomology theory (sheaf hyper-cohomology), and the gauge transformations between them are its coboundaries. A classical result [9] says, in modern language, that all such cohomology theories are realized in some interpretation of homotopy type theory (in some ( ¥ , 1 -category of ) ( ¥ , 1 -sheaves): the cocycles on ) X with coefficients in A are just functions X → A . Moreover, if A is the coefficients of some differential cohomology theory, then the type of all such functions is exactly the configuration gauge groupoid of quantum fields on A from above. This cannot be expressed in plain homotopy theory, but it can be in cohesive homotopy theory.

Finally, differential cohomology is also the natural context for geometric quantization , so that central aspects of this process can also be formalized in cohesive homotopy type theory.

In § 2, we briefly review homotopy type theory and then describe the axiomatic formulation of cohesion. The axiomatization is chosen so that if we do build things from the ground up out of sets, then we can construct categories (technically, ( ¥ , 1 -categories of ) ( ¥ , 1 -sheaves) in which cohesive homotopy ) type theory is valid internally. This shows that the results we obtain can always be referred back to a classical context. However, we emphasize that the axiomatization stands on its own as a formal system.

Then in § 3, we show how cohesive homotopy type theory directly expresses fundamental concepts in differential geometry, such as differential forms, Maurer-Cartan forms, and connections on principal bundles. Moreover, by the homotopy-theoretic ambient logic, these concepts are thereby automatically generalized to higher differential geometry [37]. In particular, we show how to naturally formulate higher moduli stacks for cocycles in differential cohomology . Their 0-truncation shadow has been known to formalize gauge fields and higher gauge fields [21]. We observe that their full homotopy formalization yields a refinement of the Chern-Weil homomorphism from secondary characteristic classes to cocycles, and also the action functional of generalized Chern-Simons-type gauge theories with an extended geometric prequantization. At present, however, completing the process of quantization requires special properties of the usual models; work is in progress isolating exactly how much quantization can be done formally in cohesive homotopy type theory.

The constructions of § 2 have been fully implemented in Coq 1 [55]; the source code can be found at [49]. With this as foundation, the implementation of much of § 3 is straightforward.

1 Currently, this requires a patch to Coq that collapses universe levels (making it technically inconsistent). However, true 'universe polymorphism' is slated for future inclusion in Coq, which should should make this no longer necessary.

## 2 Cohesive homotopy type theory

## 2.1 Categorical type theory

Atype theory is a formal system whose basic objects are types and terms , and whose basic assertions are that a term a belongs to a type A , written ' a : A '. More generally, ( x : A ) , ( y : B ) glyph[turnstileleft] ( c : C ) means that given variables x and y of types A and B , the term c has type C . For us, types themselves are terms of type Type . (One avoids paradoxes arising from Type : Type with a hierarchy of universes.) Types involving variables are called dependent types .

Operations on types include cartesian product A × B , disjoint union A + B , and function space A → B , each with corresponding rules for terms. Thus A × B contains pairs ( a b , ) with a : A and b : B , while A → B contains functions l x A . b where b : B may involve the variable x : A , i.e. ( x : A ) glyph[turnstileleft] ( b : B ) . Similarly, if ( x : A ) glyph[turnstileleft] ( B x ( ) : Type ) is a dependent type, its dependent sum GLYPH&lt;229&gt; x A : B x ( ) contains pairs ( a b , ) with a : A and b : B a ( ) , while its dependent product GLYPH&lt;213&gt; x A : B x ( ) contains functions l x A . b where ( x : A ) glyph[turnstileleft] ( b : B x ( )) .

In many ways, types and terms behave like sets and elements as a foundation for mathematics. One fundamental difference is that in type theory, rather than proving theorems about types and terms, one identifies 'propositions' with types containing at most one term (also called 'mere propositions', for emphasis), and 'proofs' with terms belonging to such types. Constructions such as × → , , GLYPH&lt;213&gt; restrict to logical operations such as ∧ ⇒ ∀ , , , embedding logic into type theory. By default, this logic is constructive , but one can force it to be classical.

Type theory also admits categorical models , where types are interpreted by objects of a category H , while a term ( x : A ) , ( y : B ) glyph[turnstileleft] ( c : C ) is interpreted by a morphism A × B → C . A dependent type ( x : A ) glyph[turnstileleft] ( B x ( ) : Type ) is interpreted by B ∈ H / A , while ( x : A ) glyph[turnstileleft] ( b : B x ( )) is interpreted by a section of B , and substitution of a term for x in B x ( ) is interpreted by pullback. Thus, we can 'do mathematics' internal to H , with any additional structure on its objects carried along automatically. In this case, the logic is usually unavoidably constructive.

In the context of quantum physics, such 'internalization' has been used in the 'Bohrification' program [23] to make noncommutative von Neumann algebras into internal commutative ones. There are also 'linear' type theories which describe mathematics internal to monoidal categories (such as Hilbert spaces); see [5].

## 2.2 Homotopy type theory

Since propositions are types, we expect equality types

$$( x \colon A ) \,, \, ( y \colon A ) \, \vdash \, \left ( ( x = y ) \colon \text{Type} \right ).$$

But surprisingly, ( x = ) y is naturally not a mere proposition. We can add axioms forcing it to be so, but if we don't, we obtain homotopy type theory [40], where types behave less like sets and more like homotopy types or ¥ -groupoids . 2 Space does not permit an introduction to homotopy theory and higher category theory here; see e.g. [31, § 1.1]. We re-emphasize that in cohesive homotopy type theory, simplicial or algebraic models for homotopy types are usually less confusing than topological ones.

Homotopy type theory admits models in ( ¥ , 1 ) -categories , where the equality type of A indicates its diagonal A → × A A . Voevodsky's univalence axiom [26] implies that the type Type is an object classifier : there is a morphism p : Type · → Type such that pullback of p induces an equivalence of ¥ -groupoids

$$\mathbf H ( A, \text{Type} ) \simeq \text{Core} _ { \kappa } ( \mathbf H / A ).$$

$$\kappa$$

2 The associativity of terminology 'homotopy (type theory) = (homotopy type) theory' is coincidental, though fortunate!

(The core of an ( ¥ , 1 -category contains all objects, the morphisms that are equivalences, and all higher ) cells; Core k denotes the small full subcategory of ' k -small' objects.) A well-behaved ( ¥ , 1 -category ) with object classifiers is called an ( ¥ , 1 ) -topos ; these are the natural places to internalize homotopy type theory. 3

An object X ∈ H is n-truncated if it has no homotopy above level n . The 0-truncated objects are like sets, with no higher homotopy, while the ( -1 -truncated objects are the propositions. ) The n -truncated objects in an ( ¥ , 1 -topos are reflective, with reflector ) p n ; in type theory, this is an example of a higher inductive type [54, 40],which is the homotopy-theoretic refinement of a type defined by induction, such as the natural numbers. The ( -1 -truncation of a morphism ) X → Y , regarded as an object of H / Y , is its image factorization .

## 2.3 Cohesive ( ¥ , 1 ) -toposes

A cohesive ( ¥ , 1 ) -topos is an ( ¥ , 1 -category whose objects can be thought of as ) ¥ -groupoids endowed with 'cohesive structure', such as a topology or a smooth structure. As observed in [29] for 1-categories, this gives rise to a string of adjoint functors relating H to ¥ -Gpd (which replaces Set in [29]). First, the underlying functor G : H → ¥ -Gpd forgets the cohesion. This can be identified with the hom-functor H ( ∗ -, ) , where the terminal object ∗ is a single point with its trivial cohesion.

Secondly, any ¥ -groupoid admits both a discrete cohesion, where no distinct points 'cohere' nontrivially, and a codiscrete cohesion, where all points 'cohere' in every possible way. This gives two fully faithful functors D : ¥ -Gpd → H and GLYPH&lt;209&gt; : ¥ -Gpd → H , left and right adjoint to G respectively.

Finally, D also has a left adjoint P , which preserves finite products. In [29], P computes sets of connected components , but for ( ¥ , 1 -categories, ) P computes entire fundamental ¥ -groupoids . There are two origins of higher morphisms in P ( X ) : the higher morphisms of X , and the cohesion of X . If X = D Y is an ordinary ¥ -groupoid with discrete cohesion, then P ( X ) glyph[similarequal] Y . But if X is a plain set with some cohesion (such as an ordinary smooth manifold), then P ( X ) is its ordinary fundamental ¥ -groupoid, whose higher cells are paths and homotopies in X . If X has both higher morphisms and cohesion, then P ( X ) automatically combines these two sorts of higher morphisms sensibly, like the Borel construction of an orbifold.

Thus, we define an ( ¥ , 1 -topos ) H to be cohesive if it has an adjoint string

O

O

O

O

GLYPH&lt;15&gt;

![image](https://ac.marcodsn.me/arxiv-markdown-images/1408.0054v1-figure-4b281c29-3ac8-479c-a174-7342883431d5.jpg)

GLYPH&lt;15&gt;

GLYPH&lt;15&gt;

GLYPH&lt;15&gt;

where D and GLYPH&lt;209&gt; are fully faithful and P preserves finite products. Using ¥ -sheaves on sites [46], we can obtain such H 's which contain smooth manifolds as a full subcategory; we call these smooth models .

Now we plan to work in the internal type theory of such an H , so we must reformulate cohesiveness internally to H . But since D and GLYPH&lt;209&gt; are fully faithful, from inside H we see two subcategories, of which the codiscrete objects are reflective, and the discrete objects are both reflective (with reflector preserving finite products) and coreflective. We write glyph[sharp] : = GLYPH&lt;209&gt;G for the codiscrete reflector, glyph[flat] : = DG for the discrete coreflector, and P : = DP for the discrete reflector. Assuming only this, if A is discrete and B is codiscrete, we have

$$\mathbf H ( \ddagger A, B ) \simeq \mathbf H ( A, B ) \simeq \mathbf H ( A, \flat B )$$

3 There are, however, coherence issues in making this precise, which are a subject of current research; see e.g. [52, 53].

so that glyph[sharp] glyph[turnstileright] glyph[flat] is an adjunction between the discrete and codiscrete objects. If we assume that for any A ∈ H , the maps glyph[flat] A → glyph[flat]glyph[sharp] A and glyph[sharp]glyph[flat] A → glyph[sharp] A induced by glyph[flat] A → A → glyph[sharp] A are equivalences, this adjunction becomes an equivalence, modulo which glyph[flat] is identified with glyph[sharp] (i.e. G ). From this we can reconstruct (2), except that the lower ( ¥ , 1 -topos need not be ) ¥ -Gpd . This is expected: just as homotopy type theory admits models in all ( ¥ , 1 -toposes, cohesive homotopy type theory admits models that are 'cohesive over any ) base'.

We think of glyph[sharp] , glyph[flat] , and P as modalities , like those of [2], but which apply to all types, not just propositions. Note also that as functors H → H , we have P glyph[turnstileright] glyph[flat] , since for any A and B

$$\mathbf H ( \Pi A, B ) \simeq \mathbf H ( \Pi A, \flat B ) \simeq \mathbf H ( A, \flat B )$$

as both P A and glyph[flat] B are discrete.

## 2.4 Axiomatic cohesion I: Reflective subfibrations

We begin our internal axiomatization with the reflective subcategory of codiscrete objects. An obvious way to describe a reflective subcategory in type theory is to use Type . (This idea is also somewhat na¨ ıve; in a moment we will discuss an important subtlety.) First we need, for any type A , a proposition expressing the assertion ' A is codiscrete'. Since propositions are particular types, this can simply be a function term

$$\text{isCodisc} \, \colon \text{Type} \rightarrow \text{Type}$$

together with an axiom asserting that for any type A , the type isCodisc ( A ) is a proposition:

$$( A \colon \text{Type} ) \vdash ( \text{isCodiscIsProp} _ { A } \colon \text{isProp} ( \text{isCodisc} ( A ) ) )$$

Next we need the reflector glyph[sharp] and its unit:

$$\mathfrak { k } \colon \text{Type} \to \text{Type}.$$

$$( A \colon \text{Type} ) \vdash ( \text{sharpIsCodisc} _ { A } \colon \text{isCodisc} ( \i A ) )$$

$$( A \colon \text{Type} ) \, \vdash \, ( \eta _ { A } \, \colon A \to \ddot { \pi } A ) \,.$$

Finally, we assert the universal property of the reflection: if B is codiscrete, then the space of morphisms glyph[sharp] A → B is equivalent, by precomposition with h A , to the space of morphisms A → B .

$$( A \colon \text{Type} ), ( B \colon \text{Type} ), ( \text{bc} \colon \text{isCodisc} ( B ) ) \vdash \left ( t s r \colon \text{isEquiv} ( \lambda f ^ { \tilde { A } \to B }. f \circ \eta _ { A } ) \right )$$

This looks like a complete axiomatization of a reflective subcategory, but in fact it describes more data than we want, because Type is an object classifer for all slice categories. If H satisfies these axioms, then each H / X is equipped with a reflective subcategory, and moreover these subcategories and their reflectors are stable under pullback. For instance, if A ∈ H / X is represented by ( x : X ) glyph[turnstileleft] ( A x ( ) : Type ) , then the dependent type ( x : X ) glyph[turnstileleft] ( ( glyph[sharp] A x ( )) : Type ) represents a 'fiberwise reflection' glyph[sharp] X ( A ) ∈ H / X .

We call such data a reflective subfibration [11]. If a reflective subcategory underlies some reflective subfibration, then its reflector preserves finite products, and the converse holds in good situations [48]. If the reflector even preserves all finite limits , as glyph[sharp] does, then there is a canonical extension to a reflective subfibration. Namely, we define A ∈ H / X to be relatively codiscrete if the naturality square for h :

/

/

GLYPH&lt;15&gt;

GLYPH&lt;15&gt;

/

/

GLYPH&lt;15&gt;

GLYPH&lt;15&gt;

![image](https://ac.marcodsn.me/arxiv-markdown-images/1408.0054v1-figure-6389350e-446c-49e4-a014-838a04d10909.jpg)

is a pullback. (This says that A has the 'initial cohesive structure' induced from X : elements of A cohere in precisely the ways that their images in X cohere.) For general A ∈ H / X , we define glyph[sharp] X A to be the pullback of glyph[sharp] A → glyph[sharp] X along X → glyph[sharp] X . When glyph[sharp] preserves finite limits, this defines a reflective subfibration.

Reflective subfibrations constructed in this way are characterized by two special properties. The first is that the relatively codiscrete morphisms are closed under composition. A reflective subfibration with this property is equivalent to a stable factorization system : a pair of classes of morphisms ( E , M ) such that every morphism factors essentially uniquely as an E -morphism followed by an M -morphism, stably under pullback. (The corresponding reflective subcategory of H / X is the category of M -morphisms into X .) If a reflective subcategory underlies a stable factorization system, its reflector preserve all pullbacks over objects in the subcategory - and again, the converse holds in good situations [48]; such a reflector has stable units [12].

We can axiomatize this property as follows. Axiom (8) implies, in particular, a factorization operation:

$$( \text{bc} \, \colon \text{isCodisc} ( B ) ) \,, ( f \, \colon \text{$A\to B$} ) \, \vdash \, ( \text{fact} _ { \natural } ( f ) \, \colon \natural A \to B )$$

$$\left ( \text{bc} \, \colon \text{isCodisc} ( B ) \right ), \left ( f \, \colon A \rightarrow B \right ) \, \vdash \, \left ( \text{ff} _ { f } \, \colon \left ( \text{fact} _ { \natural } ( f ) \circ \eta _ { A } = f ) \right )$$

It turns out that relatively codiscrete morphisms are closed under composition if and only if we have a more general factorization operation, where B may depend on glyph[sharp] A :

$$\left ( \text{bc} \colon \Pi _ { x \tilde { \epsilon } A } \text{ isCodisc} ( B ( x ) ) \right ), \left ( f \colon \Pi _ { x A } B ( \eta _ { A } ( x ) ) \right ) \vdash \left ( \text{fact} _ { \tilde { \epsilon } } ( f ) \colon \Pi _ { x \tilde { \epsilon } A } B ( x ) \right ) \quad \text{(11)}$$

$$\left ( \mathrm b c \colon \Pi _ { x ; \mathring { A } } \, \text{isCodisc} ( B ( x ) ) \right ), \left ( f \colon \Pi _ { \mathring { c } A } \, B ( \eta _ { A } ( x ) ) \right ) \vdash \, \left ( \mathbf f _ { f } \colon \left ( \mathrm a f _ { \mathring { d } } ( f ) \circ \eta _ { A } = f ) \right ) \, \quad \, ( 1 2 )$$

This sort of 'dependent factorization' is familiar in type theory; it is related to (9)-(10) in the same way that proof by induction is related to definition by recursion.

The second property is that if g ∈ E and gf ∈ E , then f ∈ E . If a stable factorization system has this property, then it is determined by its underlying reflective subcategory, whose reflector must preserve finite limits. ( E is the class of morphisms inverted by the reflector, and M is defined by pullback as above.) We can state this in type theory as the preservation of glyph[sharp] -contractibility by homotopy fibers:

$$( \text{acs} \, \colon \, \text{isContr} ( \mathfrak { f } A ) ) \,, \, ( \text{bcs} \, \colon \, \text{isContr} ( \mathfrak { f } B ) ) \,, \, ( f \, \colon A \rightarrow B ) \,, \, ( b \, \colon B ) \ \vdash \ \, ( \text{fcs} \, \colon \, \text{isContr} ( \mathfrak { f } \sum _ { \mathfrak { r } A } ( f ( x ) = b ) ) )$$

This completes our axiomatization of the reflective subcategory of codiscrete objects. We can apply the same reasoning to the reflective subcategory of discrete objects. Now P does not preserve all finite limits, only finite products, so we cannot push the characterization all the way as we did for glyph[sharp] . But because the target of P is ¥ -Gpd , it automatically has stable units; thus the discrete objects underlie some stable factorization system ( E , M ) , which can be axiomatized as above with (13) omitted. (For cohesion over a general base, we ought to demand stable units explicitly.) We do not know whether there is a particular choice of such an ( E , M ) to be preferred. In § 2.5, we will mention a different way to axiomatize P which is less convenient, but does not require choosing ( E , M ) .

## 2.5 Axiomatic cohesion II: glyph[sharp] Type

We consider now an axiomatization of the external hom H ( A B , ) in addition to the internal hom A → B . The latter we will equivalently write also as [ A B , ] , which better matches the convention in algebraic topology and in geometry. More precisely, we consider the external ¥ -groupoid H ( A B , ) , re-internalized

as a codiscrete object. (Since glyph[sharp] preserves more limits than P , the codiscrete objects are a better choice for this sort of thing.)

To construct such an external function-type, consider glyph[sharp] Type . This is a codiscrete object, which as an ¥ -groupoid is interpreted by the core of (some small full subcategory of) H . Any type A : Type has an 'externalized' version h Type ( A ) : glyph[sharp] Type , which we denote J A K . And since glyph[sharp] preserves products, the operation

$$[ -, - ] & \colon \text{Type} \times \text{Type} \to \text{Type} \quad \text{induces an operation} \\ [ -, - ] & \colon \text{Type} \times \text{Type} \to \text{Type}$$

which is interpreted by the internal-hom [ - -, ] as an operation Core ( H ) × Core ( H ) → Core ( H ) . We now define the escaping morphism ↑ : glyph[sharp] Type → Type as follows. 4

$$\uparrow A \coloneqq \sum _ { B \colon \natural \sum _ { X \colon T y p e } X } ( \natural ( \mathbf p r _ { 1 } ) ( B ) = A )$$

Here GLYPH&lt;229&gt; X : Type X is the type-theoretic version of the domain Type · of the morphism p : Type · → Type from § 2.2, with p being the first projection pr 1 : GLYPH&lt;229&gt; X : Type X → Type . Thus functoriality of glyph[sharp] gives glyph[sharp] ( pr 1 ) : glyph[sharp] GLYPH&lt;229&gt; X : Type X → glyph[sharp] Type , and so glyph[sharp] ( pr 1 )( B ) : glyph[sharp] Type can be compared with A . Now it turns out that ↑ A is codiscrete (i.e. isCodisc ( ↑ A ) is inhabited), and the composite

$$T y p e \xrightarrow { \eta _ { T y p e } } \ddot { \AA } T y p e \xrightarrow { \uparrow } T y p e$$

is equivalent to glyph[sharp] . Thus, since in the intended categorical semantics H ( A B , ) = G [ A B , ] , we can define the external function-type as

$$\mathbf H ( A, B ) \coloneqq \uparrow \left ( [ A, B ] ^ { \ddagger } \right )$$

Note that this makes sense for any A B , : glyph[sharp] Type . If instead A B , : Type , then H ( J A K J , B K ) glyph[similarequal] glyph[sharp] [ A B , ] . Thus, if f : [ A B , ] , then applying this equivalence to h [ A B , ] ( f ) : glyph[sharp] [ A B , ] , we obtain an 'externalized' version of f , which we denote J f K : J A K → J B K . Now using dependent factorization for the modality glyph[sharp] , we can define all sorts of categorical operations externally. We have composition:

$$( A, B, C \colon \mathfrak { f } \text{Type} ) \,, ( f \colon \mathbf H ( A, B ) ) \,, ( g \colon \mathbf H ( B, C ) ) \, \vdash \, ( g \circ f \colon \mathbf H ( A, C ) )$$

and the property of being an equivalence:

$$( A, B \colon \mathfrak { f } \text{Type} ) \,, ( f \colon \mathbf H ( A, B ) ) \, \vdash \, ( \text{elseEquiv} ( f ) \colon \text{Type} ) \,.$$

Using these external tools, we can now complete our internal axiomatization of cohesion. One may be tempted to define the coreflection glyph[flat] as we did the reflections glyph[sharp] and P , but this would amount to asking for a pullback-stable system of coreflective subcategories of each H / X , and at present we do not know any way to obtain this in models. Instead, we work externally:

$$\ e i s D i s c \colon [ \mathfrak { f } T y p e, T y p e ]$$

$$( A \colon \vec { \text{Type} } ) \vdash ( \text{eisDiscsProp} _ { A } \colon \text{isProp} ( \text{eisDisc} ( A ) ) )$$

glyph[flat]

:

[

glyph[sharp]

Type

, glyph[sharp]

Type

]

(16)

$$( A \colon \# \text{Type} ) \vdash ( \text{flatIsDisc} _ { A } \colon \text{isDisc} ( \theta A ) )$$

$$( A \colon \mathfrak { f } T y p e ) \vdash ( \varepsilon _ { A } \colon \mathbf H ( \mathfrak { b } A, A ) )$$

$$( A, B \colon \mathfrak { f } { \text{Type} } ), ( \text{ad} \, \colon \text{eisDisc} ( A ) ) \, \vdash \, \left ( \text{fir} \, \colon \text{isEquiv} ( \lambda f ^ { \mathfrak { H } ( A, \mathfrak { b } ) }. \, \epsilon _ { B } \circ f ) \right ).$$

4 Technically, ↑ A lives in a higher universe than A , but we ignore this as it causes no problems.

If we axiomatize discrete objects as in § 2.4, we can define eisDisc ( A ) : = ( ( ↑ glyph[sharp] isDisc )( A )) . But we can also treat discrete objects externally only, with eisDisc axiomatic and P defined analogously to glyph[flat] . This would allow us to avoid choosing an ( E , M ) for the categorical interpretation. In any case, (19) implies factorizations:

$$( \text{ad} \, \colon \text{eisDisc} ( A ) ) \,, ( f \colon \text{H} ( A, B ) ) \, \vdash \, ( \text{fact} _ { \flat } ( f ) \, \colon \text{H} ( A, \flat B ) ) \\ ( \text{ad} \, \colon \text{eisDisc} ( A ) ) \,, ( f \, \colon \text{H} ( A, B ) ) \, \vdash \, ( \text{ff} _ { f } \, \colon \left ( \varepsilon _ { B } \circ \text{fact} _ { \flat } ( f ) = f \right ) ) \,.$$

Thus, we can state the final axioms internally as

$$( A \colon \natural \text{Type} ) \vdash ( s f e \colon e i s E q u i v ( f a c t _ { \natural } ( \left [ \eta _ { A } \right ] \circ \varepsilon _ { A } ) ) )$$

$$( A \colon \natural \, \mathfrak { f } \, \text{Type} ) \, \vdash \, ( \text{ste} \, \colon \text{isEquiv} ( \text{fact} _ { \mathfrak { a } } ( \left [ \eta _ { A } \right ] \circ \epsilon _ { A } ) ) ) & & ( 2 0 ) \\ ( A \colon \natural \, \mathfrak { f } \, \text{Type} ) \, \vdash \, ( \text{fse} \, \colon \text{isEquiv} ( \text{fact} _ { \mathfrak { a } } ( \left [ \eta _ { A } \right ] \circ \epsilon _ { A } ) ) ) & & ( 2 1 ) \\ \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \col: \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \col. \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colots \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \color \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \col.: \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \col:( \text{f-} \, \text{f-} \, \text{f-} \, \text{f-} \, \text{f-} \, \text{f-} \, \text{f-} \, \text{f-} \, \text{f-} \, \text{f-} \, \text{f-} \, \text{f-} \, \text{f-} \, \text{f-} \, \text{f-} \, \text{f-} \, \text{f-} \, \text{f-} \, \text{f-} \, \text{f-} \, \text{f-} \, \text{f-} \, \text{f-} \, \text{f-} \, \text{f-} \, \text{f-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{\text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon \text{-} \colon$$

This completes the axiomatization of the internal homotopy type theory of a cohesive ( ¥ , 1 -topos, yield-) ing the formal system that we call cohesive homotopy type theory .

## 3 Quantum gauge field theory

We now give a list of constructions in this axiomatics whose interpretation in cohesive ( ¥ , 1 -toposes ) H reproduces various notions in differential geometry, differential cohomology, geometric quantization and quantum gauge field theory. Because of the homotopy theory built into the type theory, this also automatically generalizes all these notions to homotopy theory. For instance, a gauge group in the following may be interpreted as an ordinary gauge group such as the Spin-group, but may also be interpreted as a higher gauge group, such as the String-2-group or the Fivebrane-6-group [43]. Similarly, all fiber products are automatically homotopy fiber products, and so on. (The fiber product of f : [ A C , ] and g : [ B C , ] is A × C B : = GLYPH&lt;229&gt; x A : GLYPH&lt;229&gt; y B : ( f ( x ) = g y ( )) , and this can be externalized easily.)

In this section we will mostly speak 'externally' about a cohesive ( ¥ , 1 -topos ) H . This can all be expressed in type theory using the technology of § 2.5, but due to space constraints we will not do so.

## 3.1 Gauge fields

The concept of a gauge field is usefully decomposed into two stages, the kinematical aspect and the dynamical aspect bulding on that:

| gauge field:     | kinematics                       | dynamics                                     |
|------------------|----------------------------------|----------------------------------------------|
| physics term:    | instanton sector / charge sector | gauge potential                              |
| formalized as:   | cocycle in (twisted) cohomology  | cocycle in (twisted) differential cohomology |
| diff. geo. term: | fiber bundle                     | connection                                   |
| ambient logic:   | homotopy type theory             | cohesive homotopy type theory                |

## 3.1.1 Kinematics

↦

Suppose A is a pointed connected type, i.e. we have a 0 : A and p 0 ( A ) is contractible. Then its loop type W A : = ∗× ∗ glyph[similarequal] A ( a 0 = a 0 ) is a group. This establishes an equivalence between pointed connected homotopy types and group homotopy types; its inverse is called delooping and denoted G → B G . 5 For

5 Currently, we cannot fully formalize completely general ¥ -groups and their deloopings, because they involve infinitely many higher homotopies. This is a mere technical obstruction that will hopefully soon be overcome. It is not really a problem for us, since we generally care more about deloopings than groups themselves, and pointed connected types are easy to formalize.

instance, the automorphism group Aut ( V ) of a homotopy type V is the looping of the image factorization

/

![image](https://ac.marcodsn.me/arxiv-markdown-images/1408.0054v1-figure-c7e2245e-e648-4c63-9d36-2ba80488edb4.jpg)

/

/

/

GLYPH&lt;127&gt;

4

4

GLYPH&lt;31&gt;

/

/

It can also be defined as the space of self-equivalences, Aut ( V ) = GLYPH&lt;229&gt; f : [ V V , ] isEquiv ( f ) ; this is roughly the content of the univalence axiom.

Given a group G and a homotopy type X , we write H 1 ( X G , ) : = p 0 H ( X , B G ) for the degree-1 cohomology of X with coefficients in G . If G has higher deloopings B n G , we write H n ( X G , ) : = p 0 H ( X , B n G ) and speak of the degree-n cohomology of X with coefficients in G . The interpretation of this simple definition in homotopy type theory is very general, and (if we allow disconnected choices of deloopings) much more general than what is traditionally called generalized cohomology : in traditional terms, it would be called non-abelian equivariant twisted sheaf hyper-cohomology .

A G-principal bundle over X is a function p : P → X where P is equipped with a G -action over X and such that p is the quotient P → P GLYPH&lt;12&gt; G (as always, this is a homotopy quotient , constructible as a higher inductive type [54, 40],, see above. One finds that the delooping B G is the moduli stack of G -principal bundles: for any g : X → B G , its (homotopy) fiber is canonically a G -principal bundle over X , and this establishes an equivalence G Bund ( X ) glyph[similarequal] H ( X , B G ) between G -principal bundles and cocycles in G-cohomology . In particular, equivalence classes of G -principal bundles on X are classified by H 1 ( X G , ) .

/

Conversely, any G -action r : G × V → V is equivalently encoded in a fiber sequence V V GLYPH&lt;12&gt; G ¯ r B G , hence in a V -fiber bundle V GLYPH&lt;12&gt; G over B G . This is the universal r -associated V -fiber bundle in that, for g and P as above, the V -bundle E : = P × GV → X is equivalent to the pullback g ∗ ¯ . r

/

/

/

Syntactically, this means that homotopy type theory in the context of a pointed connected type B G is the representation theory of G : the fiber sequence above is the interpretation of a dependent type ( x : B G ) glyph[turnstileleft] ( V : Type ) which hence encodes a G -¥ -representation on a type V . One finds that the dependent product glyph[turnstileleft] ( GLYPH&lt;213&gt; x : B G V : Type ) is the type of invariants of the G -action, while the dependent sum glyph[turnstileleft] ( GLYPH&lt;229&gt; x : B G V : Type ) is the syntax for the quotient V GLYPH&lt;12&gt; G mentioned above. Moreover, for V 1 , V 2 two such G -representations, the dependent product of their function type glyph[turnstileleft] ( GLYPH&lt;213&gt; x : B G V [ 1 , V 2 ] : Type ) is interpreted as the type of G -action homomorphisms, while the dependent sum glyph[turnstileleft] ( GLYPH&lt;229&gt; x : B G V [ 1 , V 2 ] : Type ) is interpreted as the quotient [ V 1 , V 2 ] GLYPH&lt;12&gt; G of the space of all morphisms modulo the conjugation action by G . It follows that the homotopy type of sections G X ( E ) above is the interpretation of the syntax glyph[turnstileleft] ( GLYPH&lt;213&gt; x : B G P V [ , ] : Type ) . Notice that this expression reproduces almost verbatim the traditional statement that a section of a r -associated V -bundle is a G -equivariant map from the total space P to V , only that the interpretation of this statement in homotopy type theory here generalizes it to higher bundles.

In particular, the homotopy type of sections G X ( E ) of the associated bundle E above is equivalent to the dependent product of the mapping space [ g , ¯ r ] formed in the slice, the homotopy type theory syntax for it being glyph[turnstileleft] ( GLYPH&lt;213&gt; x : B G P V [ , ] : Type ) .

Since all the bundles involved are locally trivial with respect to the intrinsic notion of covers (epimorphic maps) it follows that elements of G X ( E ) are locally maps to V . If V here is pointed connected, and hence V glyph[similarequal] B H , then E is called an H-gerbe over X . In this case a section of E → X is therefore locally a cocycle in H -cohomology, and hence globally a cocycle in g-twisted H-cohomology with respect to the local coefficient bundle E → X . Hence twisted cohomology in H is ordinary cohomology in a slice H B / G . All this is discussed in detail in [37].

In gauge field theory a group H as above serves as the gauge group and then an H -principal bundle on X is the charge/kinematic part of an H-gauge field on X . (In the special case that H is a discrete homotopy type, this is already the full gauge field, as in this case the dynamical part is trivial). The mapping type

[ X , B H ] interprets as the moduli stack of kinematic H -gauge fields on X , and a term of identity type l : ( f 1 = f 2 ) is a gauge transformation between two gauge field configurations f 1 , f 2 : [ X , B H ] .

It frequently happens that the charge of one G -gauge field F shifts another H -gauge field f , in generalization of the way that magnetic charge shifts the electromagnetic field. Such shifts are controlled by an action r of G on B H and in this case F is a cocycle in G -cohomology and f is a cocycle in F -twisted H -cohomology with respect to the local coefficient bundle ¯ . r

An example of this phenomenon is given by the field configurations in Einstein-gravity (general relativity). For this we assume that the general linear group GL ( n ) in dimension n exists as a group type, which is the case in the standard models for smooth cohesion. Notably if we pass to a context of synthetic differential cohesion then the first order infintesimal neighbourhood of the origin of R n exists as a type D n and we have GL ( n ) = Aut ( D n ) . By the above, for an n -dimensional smooth manifold S (to be thought of as spacetime ) the frame bundle T S → S is characterized as the type sitting in a fiber sequence

/

/

GLYPH&lt;15&gt;

![image](https://ac.marcodsn.me/arxiv-markdown-images/1408.0054v1-figure-af05f58c-d6aa-4b55-875b-a0c464537580.jpg)

GLYPH&lt;15&gt;

which syntactically is therefore the dependent type ( x : B GL n ( )) glyph[turnstileleft] ( T S : Type ) . Let then B O n ( ) → B GL ( n ) be the delooping of the inclusion of the maximal compact subgroup 6 , the orthogonal group, into the general linear group. This sits in a homotopy fiber sequence

/

/

GLYPH&lt;15&gt;

$$\text{GL} ( n ) / O ( n ) \xrightarrow { \mathbf B O } & \mathbf ( n ) \\ & \downarrow \\ & \mathbf B G L ( n )$$

GLYPH&lt;15&gt;

with the smooth coset space, exhibiting the canonical GL ( n ) -action on that space. Syntactically this is therefore the dependent type ( x : B GL ( n )) glyph[turnstileleft] ( GL ( n ) / O n ( ) : Type ) . With the above one finds then that the homotopy type theory syntax

$$\vdash \left ( \prod _ { x \colon \text{BGL} ( n ) } [ T \Sigma, \text{GL} ( n ) / O ( n ) ] \colon \text{Type} \right )$$

is interpreted as the space of diagrams

/

/

![image](https://ac.marcodsn.me/arxiv-markdown-images/1408.0054v1-figure-6cea3ff0-93df-4224-8afe-cba1b098ce95.jpg)

s

{

"

"

y

y

Here T S × GL ( n ) GL ( n ) / O n ( ) denotes the ( GL ( n ) / O n ( )) -bundle associated to the frame bundle (so × GL ( n ) denotes not a pullback but a tensor product over GL ( n ) -actions). The homotopy type theory syntax here is manifestly the expression for GL ( n ) -equivariant maps from the frame bundle to the coset, while the

6 Assuming that we can talk about general colimits, which is work in progress in fully formal HoTT, then geometric compactness can be axiomatized as smallness with respect to filtered colimits whose structure maps are monomorphisms.

diagram manifestly expresses a reduction of the structure group of the frame bundle to an O n ( ) -bundle. Both of these equivalent constructions encode a choice of vielbein , hence of a Riemannian metric on S , hence of a field of gravity. (We could just as well discuss genuine pseudo-Riemannian metrics.) Moreover, by the homotopy-theoretic construction this space of fields automatically contains the O n ( ) -gauge transformations on the vielbein fields corresponding to choices of reference frames . But since gravity is a generally covariant field theory, the correct configuration space of gravity is furthermore the quotient of this space of vielbein fields by the diffeomorphism action on T S . One finds from the above that in homotopy type theory syntax this is simply expressed by interpreting the space of fields in the context of the delooped automorphism group of S and then forming the dependent sum: the interpretation of

$$\vdash \left ( \prod _ { x \colon B G L ( n ) } \sum _ { y \colon B A u t ( T \Sigma ) } [ T \Sigma, G L ( n ) / O ( n ) ] \colon \text{Type} \right )$$

is the moduli stack of the generally covariant field of gravity. In the smooth context it is the Lie integration of the gravitational (off-shell) BRST complex with diffeomorphism ghosts in degree 1.

Further discussion of examples and further pointers are in [45, 17].

## 3.1.2 Dynamics

Given a G -principal bundle in the presence of cohesion, we may ask if its cocycle g : X → B G lifts through the counit e B G : glyph[flat] B G → B G from (18) to a cocycle GLYPH&lt;209&gt; : X → glyph[flat] B G . By the ( P glyph[turnstileright] glyph[flat] ) -adjunction this is equivalently a map P ( X ) → B G . Since P ( X ) is interpreted as the path ¥ -groupoid of X , such a GLYPH&lt;209&gt; is a flat parallel transport on X with values in G , equivalently a flat G-principal connection on X .

Consider then the homotopy fiber glyph[flat] dR B G : = glyph[flat] B G × B G ∗ . By definition, a map w : X → glyph[flat] dR B G is a flat G -connection on X together with a trivialization of the underlying G -principal bundle. This is interpreted as a flat g -valued differential form , where g is the Lie algebra of G . By using this definition in the statement of the above classification of G -principal bundles, one finds that every flat connection GLYPH&lt;209&gt; : X → glyph[flat] B G is locally given by a flat g -valued form: GLYPH&lt;209&gt; is equivalently a form A : P → glyph[flat] dR B G on the total space of the underlying G -principal bundle, such that this is G -equivariant in a natural sense. Such an A is interpreted as the incarnation of the connection GLYPH&lt;209&gt; in the form of an Ehresmann connection on P → X .

Moreover, the coefficient glyph[flat] dR B G sits in a long fiber sequence of the form

/

$$G \xrightarrow { \theta _ { G } } \beta _ { d R } \mathbf B G \xrightarrow { \beta _ { B G } } \beta G \.$$

/

/

/

/

/

with the further homotopy fiber q G giving a canonical flat g -valued differential form on G . This is the Maurer-Cartan form of G , in that when interpreted in smooth homotopy types and for G an ordinary Lie group, it is canonically identified with the classical differential-geometric object of this name. Here in cohesive homotopy type theory it exists in much greater generality.

/

/

/

/

Specifically, assume that G itself is once more deloopable, hence assume that B 2 G exists. Then the above long fiber sequence extends further to the right as glyph[flat] B G e B G B G q B G glyph[flat] dR B 2 G , since glyph[flat] is right adjoint. This means, by the universal property of homotopy fibers, that if g : X → B G is the cocycle for a G -principal bundle on X , then the class of the differential form q B G ( g ) is the obstruction to the existence of a flat connection GLYPH&lt;209&gt; on this bundle. Hence this class is interpreted as the curvature of the bundle, and we interpret the Maurer-Cartan form q B G of the delooped group B G as the universal curvature characteristic for G -principal bundles.

This universal curvature characteristic is the key to the notion of non-flat connections, for it allows us to define these in the sense of twisted cohomology as curvature-twisted flat cohomology . There is, however, a choice involved in defining the universal curvature-twist, which depends on the intended application. But in standard interpretations there is a collection of types singled out, called the manifolds , and the standard universal curvature twist can then be characterized as a map i : W 2 cl ( -, g ) → glyph[flat] dR B 2 G out of a 0-truncated homotopy type such that for all manifolds S its image under [ S , -] is epi, meaning that W 2 cl ( S , g ) → [ S , glyph[flat] dR B 2 G ] is an atlas in the sense of geometric stack theory.

Assuming such a choice of universal curvature twists has been made, we may then define the moduli of general (non-flat) G -principal connections to be the homotopy fiber product

$$\mathbb { B } G _ { \text{conn} } \coloneqq i ^ { * } \theta _ { \mathbb { B } G } = \mathbb { B } G \times _ { \mathbb { B } _ { d R } \mathbb { B } ^ { 2 } G } \Omega ^ { 2 } ( -, \mathfrak { g } ) \,.$$

In practice one is usually interested in a canonical abelian (meaning arbitrarily deloopable, i.e. E ¥ ) group A and the tower of delooping groups B n A that it induces. In this case we write B n A conn : = B n A × glyph[flat] dR B n + 1 A W n + 1 ( -, A ) . When interpreted in smooth homotopy types and choosing the Lie group A = C × or = U ( 1 ) one finds that B n A conn is the coefficient for ordinary differential cohomology , specifically that it is presented by the ¥ -stack given by the Deligne complex .

Notice that the pasting law for homotopy pullbacks implies generally that the restriction of B G conn to vanishing curvature indeed coincides with the universal flat coefficients: glyph[flat] B G glyph[similarequal] B G conn × W 2 ( -, g ) {∗} . This means that we obtain a factorization of e B G as glyph[flat] B G → B G conn → B G .

Let then G be a group which is not twice deloopable, hence to which the above universal definition of B G conn does not apply. If we have in addition a map c : B G → B n A given (representing a universal characteristic class in H n ( B G A , ) ), then we may still ask for some homotopy type B G conn that supports a differential refinement c conn : B G conn → B n A conn of c in that it lifts the factorization of e B n A by B n A conn. Such a c conn interprets, down on cohomology, as a secondary universal characteristic class in the sense of refined Chern-Weil theory. Details on all this are in [20, 44].

With these choices and for G regarded as a gauge group, a genuine G-gauge field on S is a map f : S → B G conn. For G twice deloopable, the field strength of f is the composite F f : S → B G conn F ( -) - - → W 2 cl ( -, g ) .

Moreover, the choice of c conn specifies an exended action functional on the moduli type [ S , B G conn ] of G -gauge field configurations, and hence specifies an actual quantum gauge field theory. This we turn to now.

## 3.2 s -Model QFTs

An n -dimensional ('nonlinear') s -model quantum field theory describes the dynamics of an ( n -1 -) dimensional quantum 'particle' (for instance an electron for n = 1, a string for n = 2, and generally an ' ( n -1 -brane') that propagates in a ) target space X (for instance our spacetime) while acted on by forces (for instance the Lorentz force ) exerted by a fixed background A -gauge field on X (for instance the electromagnetic field for n = 1 or the Kalb-Ramond B-field for n = 2 or the supergravity C-field for n = 3). By the above, this background gauge field is the interpretation of a map c conn : X → B n A conn.

Let then S be a cohesive homotopy type of cohomological dimension n , to be thought of as the abstract worldvolume of the ( n -1 -brane. ) The homotopy type [ S , X ] of cohesive maps from S to X is interpreted as the moduli space of field configurations of the s -model for this choice of shape of worldvolume. The (gauge-coupling part of) the action functional of the s -model is then to be the nvolume holonomy of the background gauge field over a given field configuration S → X .

To formalize this, we need the notion of concreteness . If X is a cohesive homotopy type, its concretization is the image factorization X glyph[dblarrowheadright] conc X ↪ → glyph[sharp] X of h X : X → glyph[sharp] X (7). We call X concrete if X → conc X is an equivalence. In the standard smooth model, the 0-truncated concrete cohesive homotopy types are precisely the diffeological spaces (see [6]). Generally, for models over concrete sites , they are the concrete sheaves .

Now we can define the action functional of the s -model associated to the background gauge field c conn to be the composite

/

$$\exp ( i S ( - ) ) \, \colon \, [ \Sigma, X ] \xrightarrow { [ \Sigma, \mathfrak { c } _ { \text{conn} } ] } \, [ \Sigma, B ^ { n } A _ { \text{conn} } ] \, \longrightarrow \, \text{conc} \, \pi _ { 0 } [ \Sigma, B ^ { n } A _ { \text{conn} } ] \.$$

/

/

/

In the standard smooth model, with A = C × or U ( 1 , the second morphism is ) fiber integration in differential cohomology exp 2 ( p i ∫ S ( -)) . For n = 1 this computes the line holonomy of a circle bundle with connection, hence the correct gauge coupling action functional of the 1-dimensional s -model; for n = 2 it computes the surface holonomy of a circle 2-bundle, hence the correct 'WZW-term' of the string; and so on.

Traditionally, s -models are thought of as having as target space X a manifold or at most an orbifold. However, since these are smooth homotopy n -types for n ≤ 1, it is natural to allow X to be a general cohesive homotopy type. If we do so, then a variety of quantum field theories that are not traditionally considered as s -models become special cases of the above general setup. Notably, if X = B G conn is the moduli for G -principal connections, then a s -model with target space X is a G -gauge theory on S . Moreover, as we have seen above, in this case the background gauge field is a secondary universal characteristic invariant. One finds that the corresponding action functional exp 2 ( p i ∫ S [ S , c conn ]) : [ S , B G conn ] → A is that of Chern-Simons -type gauge field theories [18, 19], including the standard 3-dimensional Chern-Simons theories as well a various higher generalizations.

More generally, at least in the smooth model, there is a transgression map for differential cocycles: for S d a manifold of dimension d there is a canonical map

/

$$\exp ( 2 \pi i \int _ { \Sigma } [ \Sigma, \mathfrak { c } _ { \text{conn} } ] ) \, \colon \, [ \Sigma _ { d }, X ] \xrightarrow { [ \Sigma _ { d }, \mathfrak { c } _ { \text{conn} } ] } \, [ \Sigma _ { d }, \mathbf B ^ { n } A _ { \text{conn} } ] \xrightarrow { \exp ( 2 \pi i \int _ { \Sigma } ) } \, \mathbf B ^ { n - d } A _ { \text{conn} }$$

/

/

/

modulating an n -bundle on the S d -mapping space. For d = n -1 and quadratic Chern-Simons-type theories this turns out to be the (off-shell) prequantum bundle of the QFT. See [18] for details on these matters. Thus the differential characteristic cocycle c conn should itself be regarded as a higher prequantum bundle , in the sense we now discuss.

## 3.3 Geometric quantization

Action functionals as above are supposed to induce n -dimensional quantum field theories by a process called quantization . One formalization of what this means is geometric quantization , which is wellsuited to formalization in cohesive homotopy type theory. We indicate here how to formalize the spaces of higher (pre)quatum states that an extended QFT assigns in codimension n .

The critical locus of a local action functional - its phase space or Euler-Lagrange solution space -carries a canonical closed 2-form w , and standard geometric quantization gives a method for constructing the space of quantum states assigned by the QFT in dimension n -1 as a space of certain sections of a prequantum bundle whose curvature is w . This works well for non-extended topological quantum field theories and generally for n = 1 (quantum mechanics). The generalization to n ≥ 2 is called multisymplectic or higher symplectic geometry [41], for here w is promoted to an ( n + ) 1 -form which reproduces

the former 2-form upon transgression to a mapping space. Exposition of the string s -model ( n = 2) in the context of higher symplectic geometry is in [4], and discussion of quantum Yang-Mills theory ( n = 4) and further pointers are in [25]. A homotopy-theoretic formulation is given in [17]: here the prequantum bundle is promoted to a prequantum n -bundle, a ( B n -1 A ) -principal connection as formalized above.

Based on this we can give a formalization of central ingredients of geometric quantization in cohesive homotopy type theory. When interpreted in the standard smooth model with A = C × or = U ( 1 ) the following reproduces the traditional notions for n = 1, and for n ≥ 2 consistently generalizes them to higher geometric quantization.

Let X be any cohesive homotopy type. A closed ( n + ) 1 -form on X is a map w : X → W n + 1 cl ( -, A ) , as discussed in section 3.1.2. We may call the pair ( X , w ) a pre-n-plectic cohesive homotopy type. The group of symplectomorphisms or canonical transformations of ( X , w ) is the automorphism group of w :

/

/

$

![image](https://ac.marcodsn.me/arxiv-markdown-images/1408.0054v1-figure-bfb28487-da00-4b38-82e0-60671824b7ef.jpg)

$

z

z

regarded as an object in the slice H / W n + 1 cl ( -, A ) . A prequantization of ( X , w ) is a lift

:

:

/

![image](https://ac.marcodsn.me/arxiv-markdown-images/1408.0054v1-figure-2259f616-3e62-4c89-bfb0-67c6d2a6ed7b.jpg)

GLYPH&lt;15&gt;

GLYPH&lt;15&gt;

/

through the defining projection from the moduli of ( B n -1 A ) -principal connections. This c conn modulates the prequantum n-bundle . Since A is assumed abelian, there is abelian group structure on p 0 ( X → B n A conn ) and hence we may rescale c conn by a natural number k . This corresponds to rescaling Planck's constant h ¯ by 1 / k . The limit k → ¥ in which ¯ h → 0 is the classical limit .

The automorphism group of the prequantum bundle

/

/

![image](https://ac.marcodsn.me/arxiv-markdown-images/1408.0054v1-figure-64a59df6-11d9-4c11-96c5-9a7235929e6a.jpg)

t

|

#

#

{

{

in the slice H B / n A conn , is the quantomorphism group of the system. Syntactically this is

$$\vdash \left ( \prod _ { \nabla \colon B ^ { \prime } A _ { \text{conn} } } \text{at} ( X ( \nabla ) ) \colon \text{Type} \right ).$$

See [17] for more on this.

There is an evident projection from the quantomorphism group to the symplectomorphism group, and its image is the group of Hamiltonian symplectomorphisms . The Lie algebra of the quantomorphism group is that of Hamiltonian observables equipped with the Poisson bracket . If X itself has abelian group structure, then the subgroup of the quantomorphism group covering the action on X on itself is the Heisenberg group of the system. An action of any group G on X by quantomorphisms, i.e. a

map m : B G → BAut B / n A conn ( c conn ) , is a Hamiltonian G-action on ( X , w ) . The (homotopy) quotient c conn G : X G → B n A conn is the corresponding gauge reduction of the system.

GLYPH&lt;12&gt; GLYPH&lt;12&gt; After a choice of representation r of B n -1 A on some V , the space of prequantum states is

/

/

s

{

y

![image](https://ac.marcodsn.me/arxiv-markdown-images/1408.0054v1-figure-fead1e90-3a75-4c82-94c8-8424c29c33a6.jpg)

y

the space of c -twisted cocycles with respect to the local coefficient bundle ¯ . r There is an evident action of the quantomorphism group on G X ( E ) and this is the action of prequantum operators on the space of states.

It remains to formalize in cohesive homotopy type theory the quantization step from this pre quantum data to actual quantized field theory. This is discussed, in terms of standard homotopy theory and ¥ -topos theory, in [38], to which we refer the reader for further details. This quantization step involves, naturally, linear algebra, which internal to homotopy theory is stable homotopy theory , the theory of spectra and ring spectra. This has not been fully formalized in homotopy type theory at the moment, but it seems clear that this can be done. In any case, a discussion of the quantization step in the language of homotopy type theory is possible, but beyond the scope of this article.

In conclusion then, the amount of gauge QFT notions naturally formalized here in cohesive homotopy type theory seems to be remarkable, emphasizing the value of a formal, logical, approach to concepts like smoothness and cohomology.

## References

- [1] S. Awodey (2010): Type theory and homotopy . arXiv:1010.1810.
- [2] S. Awodey &amp; L. Birkedal (2003): Elementary axioms for local maps of toposes . Journal of Pure and Applied Algebra 177(3), pp. 215-230, doi:10.1016/S0022-4049(02)00283-9.
- [3] J. Baez &amp; J. Dolan (1995): Higher-Dimensional Algebra and Topological Quantum Field Theory . J. Math. Phys. 36(11), p. 60736105, doi:10.1063/1.531236. arXiv:q-alg/9503002.
- [4] J. Baez, E. Hoffnung &amp; L. Rogers (2010): Categorified Symplectic Geometry and the Classical String . Commun. Math. Phys. 293(3), pp. 701-725, doi:10.1007/s00220-009-0951-9. arXiv:0808.0246.
- [5] J. Baez &amp; M. Stay (2011): Physics, Topology, Logic and Computation: A Rosetta Stone . In Bob Coecke, editor: New Structures for Physics , Lecture Notes in Physics 813, Springer, pp. 95-174, doi:10.1007/978-3642-12821-9 2. arXiv:0903.0340.
- [6] J. C. Baez &amp; A. E. Hoffnung (2011): Convenient categories of smooth spaces . Trans. Amer. Math. Soc. 363(11), pp. 5789-5825, doi:10.1090/S0002-9947-2011-05107-X. arXiv:0807.1704.
- [7] C. Barwick &amp; C. Schommer-Pries: On the Unicity of the Homotopy Theory of Higher Categories . arXiv:1112.0040.
- [8] J. Bernstein (1974): Spontaneous symmetry breaking, gauge theories, the Higgs mechanism and all that . Rev. Mod. Phys. 46, pp. 7-48, doi:10.1103/RevModPhys.46.7.
- [9] K. Brown (1973): Abstract homotopy theory and generalized sheaf cohomology . Transactions of the American Mathematical Society 186, pp. 419-458, doi:10.1090/S0002-9947-1973-0341469-9.
- [10] J.-L. Brylinski (1993): Loop Spaces, Characteristic Classes, and Geometric Quantization . Birkh¨ auser, doi:10.1007/978-0-8176-4731-5.

- [11] A. Carboni, G. Janelidze, G. M. Kelly &amp; R. Par´ e (1997): On localization and stabilization for factorization systems . Appl. Categ. Structures 5(1), pp. 1-58, doi:10.1023/A:1008620404444.
- [12] C. Cassidy, M. H´ ebert &amp; G. M. Kelly (1985): Reflective subcategories, localizations and factorization systems . J. Austral. Math. Soc. Ser. A 38(3), pp. 287-329, doi:10.1017/S1446788700023624.
- [13] CERN (2012): CERN experiments observe particle consistent with long-sought Higgs boson . press-archived.web.cern.ch/press-archived/PressReleases/Releases2012/PR17.12E.html.
- [14] P. Clairambault &amp; P. Dybjer (2011): The biequivalence of locally cartesian closed categories and Martin-L¨f o type theories . In: Proceedings of the 10th international conference on Typed lambda calculi and applications , TLCA'11, Springer-Verlag, Berlin, Heidelberg, pp. 91-106, doi:10.1007/978-3-642-21691-6 10. Available at http://dl.acm.org/citation.cfm?id=2021953.2021965 .
- [15] T. Coquand: ForMath: Formalisation of Mathematics research project . wiki.portal.chalmers.se/cse/pmwiki.php/ForMath/ForMath.
- [16] P. Deligne, P. Etingof, D. Freed, L. Jeffrey, D. Kazhdan, J. Morgan, D.R. Morrison &amp; E. Witten (1999): Quantum Fields and Strings, A course for mathematicians . Amer. Math. Soc.
- [17] D. Fiorenza, C. L. Rogers &amp; U. Schreiber (2013): Higher geometric prequantum theory . arXiv:1304.0236.
- [18] D. Fiorenza, H. Sati &amp; U. Schreiber (2013): Extended higher cup-product Chern-Simons theories . Journal of Geometry and Physics 74, pp. 130-163, doi:10.1016/j.geomphys.2013.07.011. arXiv:1207.5449.
- [19] D. Fiorenza &amp; U. Schreiber: ¥ -Chern-Simons theory . ncatlab.org/schreiber/show/infinity-Chern-Simons+theory.
- [20] D. Fiorenza, U. Schreiber &amp; J. Stasheff (2012): ˇ ech cocycles for differential characteristic classes C . Advances in Theoretical and Mathematical Phyiscs 16(1), pp. 149-250, doi:10.4310/ATMP.2012.v16.n1.a5. arXiv:1011.4735.
- [21] D. Freed (2002): Dirac charge quantization and generalized differential cohomology . In: Surveys in Differential Geometry , 7, Int. Press, pp. 129-194, doi:10.4310/SDG.2002.v7.n1.a6. arXiv:hep-th/0011220.
- [22] M. Henneaux &amp; C. Teitelboim (1992): Quantization of gauge systems . Princeton University Press.
- [23] C. Heunen, N. P. Landsman &amp; B. Spitters (2011): Bohrification . In H. Halvorson, editor: Deep Beauty , Cambridge University Press, pp. 271-313, doi:10.1017/CBO9780511976971.008. arXiv:0909.3468.
- [24] M. Hopkins &amp; I. Singer (2005): Quadratic Functions in Geometry, Topology, and M-Theory . J. Differential Geom. 70(3), pp. 329-452. arXiv:math/0211216.
- [25] I.V. Kanatchikov (2004): Precanonical quantization of Yang-Mills fields and the functional Schroedinger representation . Rept. Math. Phys. 53, pp. 181-193, doi:10.1016/S0034-4877(04)90011-0. arXiv:hepth/0301001.
- [26] C. Kapulkin, P. L. Lumsdaine &amp; V. Voevodsky (2012): Univalence in simplicial sets . arXiv:1203.2553.
- [27] A. Kock (1981): Synthetic differential geometry . London Mathematical Society Lecture Note Series 51, Cambridge University Press, Cambridge, doi:10.1017/CBO9780511550812
- [28] R. Lavendhomme (1996): Basic concepts of synthetic differential geometry . Kluwer Texts in the Mathematical Sciences 13, Kluwer Academic Publishers Group, Dordrecht, doi:10.1007/978-1-4757-4588-7 8. Translated from the 1987 French original, Revised by the author.
- [29] W. Lawvere (2007): Axiomatic cohesion . Theory and Applications of Categories 19(3), pp. 41-49. www.tac.mta.ca/tac/volumes/19/3/19-03abs.html.
- [30] E. Lerman (2010): Orbifolds as stacks? L'Enseign. Math. 56(3-4), pp. 315-363, doi:10.4171/LEM/56-3-4. arXiv:0806.4160.
- [31] J. Lurie (2009): Higher topos theory . Annals of Mathematics Studies 170, Princeton University Press. arXiv:math.CT/0608040.
- [32] J. Lurie (2009): On the Classification of Topological Field Theories . Current Developments in Mathematics 2008, pp. 129-280, doi:10.4310/CDM.2008.v2008.n1.a3. arXiv:0905.0465.

- [33] P. Martin-L¨ of (1984): Intuitionistic type theory . Studies in Proof Theory 1, Bibliopolis, Naples.
- [34] M.G¨ ockeler &amp; T. Sch¨ ucker (1987): Differential geometry, gauge theories, and gravity . Cambridge monographs on Mathematical Physics, Cambridge University Press, doi:10.1017/CBO9780511628818.
- [35] I. Moerdijk &amp; D. Pronk (1997): Orbifolds, sheaves and groupoids . K-theory 12, pp. 3-21, doi:10.1023/A:1007767628271.
- [36] I. Moerdijk &amp; G. E. Reyes (1991): Models for smooth infinitesimal analysis . Springer-Verlag, New York, doi:10.1007/978-1-4757-4143-8.
- [37] T. Nikolaus, U. Schreiber &amp; D. Stevenson (2014): Principal ¥ -bundles - General theory . Journal of Homotopy and Related Structures . arXiv:1207.0248.
- [38] J. Nuiten (2013): Cohomological quantization of local boundary prequantum field theory . Master's thesis, University Utrecht, the Netherlands. dspace.library.uu.nl/handle/1874/282756.
- [39] L. ORaifeartaigh &amp; N. Straumann (2000): Gauge Theory: Historical Origins and Some Modern Developments . Rev. Mod. Phys. 72, pp. 1-23, doi:10.1103/RevModPhys.72.1.
- [40] The Univalent Foundations Program (2013): Homotopy Type Theory: Univalent Foundations of Mathematics . homotopytypetheory.org/book/.
- [41] C. Rogers (2011): Higher Symplectic Geometry . Ph.D. thesis, UC Riverside. arXiv:1106.4068.
- [42] H. Sati &amp; U. Schreiber (2011): Mathematical Foundations of Quantum Field and Perturbative String Theory . Proceedings of symposia in pure mathematics 83, American Mathematical Society, doi:10.1090/pspum/083. arXiv:1109.0955.
- [43] H. Sati, U. Schreiber &amp; J. Stacheff (2012): Twisted differential String- and Fivebrane-structures . Communications in Mathematical Physics 315(1), pp. 169-213, doi:10.1007/s00220-012-1510-3. arXiv:0910.4001.
- [44] U. Schreiber (2012): Differential cohomology in a cohesive ¥ -topos . arXiv:1310.7930.
- [45] U. Schreiber (2012): Twisted smooth cohomology in string theory . ESI Lecture series. ncatlab.org/nlab/show/twisted+smooth+cohomology+in+string+theory.
- [46] U. Schreiber et al.: ¥ -cohesive site . ncatlab.org/nlab/show/infinity-cohesive+site.
- [47] M. Shulman: Internalizing the External, or The Joys of Codiscreteness . golem.ph.utexas.edu/category/2011/11/internalizing the external or.html.
- [48] M. Shulman: Reflective Subfibrations, Factorization Systems, and Stable Units . golem.ph.utexas.edu/category/2011/12/reflective subfibrations facto.html.
- [49] M. Shulman (2011): Coq code for cohesive homotopy type theory . github.com/mikeshulman/HoTT/tree/modalities/Coq/Subcategories.
- [50] M. Shulman (2012): Directed homotopy type theory .

golem.ph.utexas.edu/category/2012/06/directed homotopy type theory.html.

- [51] M. Shulman (2012): Minicourse on homotopy type theory . www.math.ucsd.edu/ mshulman/hottminicourse2012/.
- [52] M. Shulman (2012): Univalence for inverse diagrams and homotopy canonicity . arXiv:1203.3253.
- [53] M. Shulman (2013): The univalence axiom for elegant Reedy presheaves . arXiv:1307.6248.
- [54] M. Shulman &amp; P. L. Lumsdaine: Higher inductive types . In preparation.
- [55] Coq development team: The Coq proof assistant . coq.inria.fr/.
- [56] V. Voevodsky (2011): Univalent foundations of mathematics . Logic, Language, Information and Computation , doi:10.1007/978-3-642-20920-8 4. www.math.ias.edu/˜vladimir/Site3/Univalent Foundations.html.
- [57] J. Wang (2011): The moduli stack of G-bundles . arXiv:1104.4828.
Urs Schreiber Michael Shulman
Quantum Gauge Field Theory in Cohesive Homotopy Type Theory
We implement in the formal language of homotopy type theory a new set of
axioms called cohesion. Then we indicate how the resulting cohesive homotopy
type theory naturally serves as a formal foundation for central concepts in
quantum gauge field theory. This is a brief survey of work by the authors
developed in detail elsewhere.