โ \newunicodecharโ \newunicodecharโ \newunicodecharโป- \newunicodecharแดนM \newunicodecharแดบN \newunicodecharโก \newunicodecharฮป \newunicodecharโ \newunicodecharโท \newunicodecharโ \newunicodecharแตขi \newunicodecharโจ \newunicodecharโฉ \newunicodecharฮฑ \newunicodecharฮฒ \newunicodecharฮธ \newunicodecharฯ \newunicodecharฯ \newunicodecharฮท \newunicodecharฮต \newunicodecharฮน \newunicodecharฮฃ \newunicodecharฯ \newunicodecharโ \newunicodecharโ \newunicodecharโ \newunicodecharโ \newunicodecharโ \newunicodecharยฌ \newunicodecharฮ \newunicodecharแดธโ \newunicodecharแดฟโ \newunicodecharโง \newunicodecharโจ \newunicodecharโผ \newunicodecharโข \newunicodecharฮ \newunicodecharโค \newunicodecharโฅ \newunicodecharโฃ \newunicodecharโ \newunicodecharโ+ \newunicodecharโ \newunicodecharโ1 \newunicodecharโ2 \newunicodecharโฅ \newunicodecharโ \newunicodecharฯ \newunicodecharโฆ \newunicodecharโ0 \newunicodecharโ \newunicodecharฮฉ \newunicodecharยง \newunicodechar๐ \newunicodecharร \newunicodecharโฅSusp \newunicodecharโ \newunicodecharโช \newunicodecharโข \newunicodecharโ* \newunicodecharยฎ \newunicodecharโ, \newunicodecharโฃ \newunicodecharโ* \newunicodecharโฌ2 \newunicodechar๐ \newunicodechar๐ \newunicodechar๐ \newunicodechar๐ \newunicodecharโ \newunicodecharโ \newunicodechar๐ \newunicodechar๐ \newunicodechar๐ \newunicodecharโ \newunicodecharโ \newunicodecharโ3 \newunicodecharโ \newunicodecharฤ \newunicodecharฤ \newunicodecharโ \newunicodecharโl \newunicodecharแตฃr \newunicodecharโป \newunicodechar๏ผ \newunicodecharโ \newunicodecharโ \newunicodechar๐ \newunicodecharโญ(โ) \newunicodecharโฌ(โ) \newunicodechar๏ผฆ \newunicodecharฮ \newunicodecharโ \newunicodecharโบโ \newunicodecharโปโ \newunicodechar๐ \newunicodechar๐จ(โ โ) \newunicodecharยน1 \newunicodecharโก \newunicodecharฮฑ \newunicodecharฮฒ \newunicodecharฮณ \newunicodecharโ \newunicodecharโน \newunicodecharโSusp \newunicodecharโณโSusp \newunicodecharโinr \newunicodechar๐inl \newunicodecharโ \newunicodecharโถ \newunicodecharโฐ \newunicodecharโh \newunicodecharฯ \newunicodecharฮถ3
This paper is an extended version of โFormalizing and Computing a Brunerie Number in Cubical Agdaโ published in the post-proceedings of Logic in Computer Science 2023 [LM23]. Some details about what has been added can be found in the Outline paragraph below.
[a] [a]
Formalising and Computing the Fourth Homotopy Group of the -Sphere in Cubical Agda
Abstract.
Brunerieโs 2016 PhD thesis contains the first synthetic proof in Homotopy Type Theory (HoTT) of the classical result that the fourth homotopy group of the 3-sphere is . The proof is one of the most impressive pieces of synthetic homotopy theory to date and uses a lot of advanced classical algebraic topology rephrased synthetically. Furthermore, the proof is fully constructive and the main result can be reduced to the question of whether a particular โBrunerie numberโ can be normalised to . The question of whether Brunerieโs proof could be formalised in a proof assistant, either by computing this number or by formalising the pen-and-paper proof, has since remained open. In this paper, we present a complete formalisation in . We do this by modifying Brunerieโs proof so that a key technical result, whose proof Brunerie only sketched in his thesis, can be avoided. We also present a formalisation of a new and much simpler proof that is . This formalisation provides us with a sequence of simpler Brunerie numbers, one of which normalises very quickly to in , resulting in a fully formalised computer-assisted proof that .
Key words and phrases:
Homotopy type theory, Synthetic homotopy theory, Formalisation of mathematics, Constructive mathematics1. Introduction
Homotopy theory originated in algebraic topology, but is by now a central tool in many branches of modern mathematics, such as algebraic geometry and category theory. One of the central notions of study in homotopy theory is that of the homotopy groups of a space , denoted . These groups constitute a topological invariant, making them a powerful tool for establishing whether two given spaces can or cannot be homotopy equivalent. The first two such groups of a space are easy to understand: characterises the connected components of and is the fundamental group, i.e.ย the group of equivalence classes consisting of the loops contained in up to homotopy. This idea generalises to higher values of , for which consists of -dimensional loops up to homotopy. For many spaces, these groups tend to become increasingly esoteric and difficult to compute for large . This is true also for seemingly tame spaces like spheres, for which in general is highly irregular when .111Seeย [Bru16a, Figureย 2.1] for a table of for small and . This paper concerns the first computer formalisation of the classical result that , a result which is particularly interesting because it gives the whole first stable stem of homotopy groups of spheres, i.e.ย for . The fact that was proved already in the 1930โs by Pontryagin using cobordism theory, but we instead follow the synthetic approach to homotopy theory developed in Homotopy Type Theory (HoTT) and popularised by the HoTT Bookย [Uni13]. In this new approach to homotopy theory, spaces are represented directly as (higher inductive) types and homotopy groups are computed using Voevodskyโs univalence axiomย [Voe10a]. This gives a logical approach to homotopy theory, suitable for computer formalisation in proof assistants based on type theory, while also making it possible to interpret results in any suitably structured -topos [Shu19].
The basis for our formalisation is the 2016 PhD thesis of Brunerie [Bru16a] which contains the first synthetic proof in HoTT that . The proof is one of the most impressive pieces of synthetic homotopy theory to date and uses advanced machinery from classical algebraic topology developed synthetically, including the symmetric monoidal structure of smash products, (integral) cohomology rings, the Mayer-Vietoris and Gysin sequences, the Hopf invariant, Whitehead products, etc. The formalisation of Brunerieโs proof has since remained open, primarily due to the highly technical nature of some of the details. In this paper, we will present such a formalisation in [VMA21], a cubical extension of the proof assistant [Agd24] with native support for computational univalence and higher inductive types (HITs).
In addition to being a very impressive proof in synthetic homotopy theory, Brunerieโs proof is particularly interesting as it is fully constructive. The proof consists of two parts, with the first one culminating in Chapter 3 with the definition of a number such that . Since then, this has been commonly referred to as the Brunerie number. Brunerie writes the following about it:
This result is quite remarkable in that even though it is a constructive proof, it is not at all obvious how to actually compute this []. At the time of writing, we still havenโt managed to extract its value from its definition. [Bru16a, Pageย 85]
In fact, [Bru16a, Appendix B] contains a complete and concise definition of as the image of under a sequence of maps:
By implementing this number in a proof assistant with computational support for univalence and HITs, one should be able to normalise it using a computer to establish that and hence that . In 2016, by the time Brunerie was finishing his thesis, there were some experimental proof assistants based on the cubical type theory of [CCHM18], but these were too slow to perform such a complex computation. So, instead of relying on normalisation, Brunerie spends the second part of the thesis (Chapters 4โ6) to prove, using a lot of the advanced machinery mentioned above, that is propositionally equal to . However, if one were instead able to compute the number automatically in a proof assistant, this equality would hold definitionallyโeffectively reducing the complexity and length of the proof by an order of magnitude.
The intriguing possibility of a computer assisted formal proof made many people interested and countless attempts to normalise Brunerieโs have been made using increasingly powerful computers. However, to date, no one has succeeded and it is still unclear whether it is normalisable in a reasonable amount of time. In light of this, it is natural to wonder whether it is possible to simplify Brunerieโs number in order to be able to compute it. For example, Brunerieโs original definition only involves 1-HITs, as the status of higher HITs was still quite understudied at the time. With a better understanding of higher HITs developed in [LS20, CHM18, CH19], one quickly sees that the first maps can be combined into one sending to the 3-cell of defined as a 3-HIT and not as an iterated suspension as in Brunerieโs thesis. Unfortunately, simple optimisations like this do not seem to reduce the complexity of the computation enough and all attempts to run it have thus far failed.
After several unsuccessful attempts at optimising the computation, we instead decided to formalise the second half of Brunerieโs thesis. However, this is by no means straightforward. The first issue appears already in the beginning of Chapterย 4, a chapter concerning smash products of spheres. The main result of the section is Proposition 4.1.2, which says that the smash product is a 1-coherent symmetric monoidal product on pointed types. However, the proof of this result is just a sketch and Brunerie writes the following about it:
The following result is the main result of this section even though we essentially admit it. [Bru16a, Page 90]
Unfortunately, this result is then used to construct integral cohomology rings, , whose cup product, , appears in the definition of the so-called Hopf invariant which is crucially used to prove that is . While one might be convinced that Brunerieโs informal proof sketch is correct, it is not obvious how one convinces a proof assistant of this. A complete formalisation would either have to fill in the holes in the sketch or find an alternative construction which avoids Proposition 4.1.2. In fact, Brunerie tried very hard to fill these holes using metaprogrammingย [Bru18]. However, he never managed to typecheck his computer generated proof of the pentagon identity. Hence, this approach also seems infeasible with current proof assistant technology.
Luckily, Brunerie, Ljungstrรถm and Mรถrtbergย [BLM22] recently gave an alternative synthetic definition of the cup product on which completely avoids smash products. This has allowed us to completely skip the problematic Chapter 4 and, in particular, Proposition 4.1.2, while still following the proofs in Chapters 5 and 6. Having a strategy for a formal proof, we were then able to embark on able to embark on the ambitious project of formalising Brunerieโs proof. Even though we do not need any theory about smash products, there was still a lot left to formalise and our final formalisation closely follows Brunerieโs proof, except for various smaller simplifications and adjustments which we discuss in the paper.
In addition to this, we have also formalised a new proof by Ljungstrรถmย [Lju22] which completely circumvents Chapters 4โ6. This major simplification builds on manually calculating the image of the element , corresponding to under the isomorphism , by dividing this isomorphism into several maps, tracing in each step. In particular, the new proof is completely elementary and does not rely on advanced tools such as cohomology. The elements that one obtains while tracing are all new โBrunerie numbersโ that should normalise to . In fact, one of these normalises, in just under seconds on a regular laptop, to in at the time of writing. So, despite still not being able to compute the original , this work can be seen as an alternative solution to Brunerieโs conjecture about obtaining a computational proof that which relies on simplifying the Brunerie number until it becomes effectively computable.
Outline
The paper closely follows the structure of Brunerieโs proof. In sectionย 2, we discuss key results from HoTT that we will need and their formalisation in . sectionย 3, which roughly corresponds to Chapter 2 of Brunerieโs thesis, contains some first results on homotopy groups of spheresโe.g.ย the computation of for . We then give Brunerieโs definition of and prove that , the formalisation of which involves the James construction and Whitehead products. The remainder of the paper is then devoted to the formalisation of the different proofs that . We first discuss the formalisation of Chapters 4โ6 of Brunerieโs proof in sectionย 5. This involves a lot of technical machinery like cohomology, the Hopf invariant, etc. We then, in sectionย 6, turn our attention to the new elementary proof that and the new Brunerie number which quickly normalises to in . Here, we also present some result concerning joins of spheres and the vanishing of Whitehead products. We conclude in sectionย 7 with a discussion and comparison of the different formal proofs, as well as some directions for future work.
Compared to the previous publication on which the current paper is based, [LM23], the main differences are the following.
-
โข
Many proofs which were omitted because of page constraints in [LM23] have been added or extended throughout the paper. In particular, the proofs in [LM23, Sectionย VI] have been substantially expanded with many details added in subsectionย 6.3.
-
โข
In sectionย 6, many results from [LM23, Sectionย VI] have also been generalised, e.g.ย the alternative definition of homotopy groups in terms of joins of spheres, , is now studied in general and not just for .
-
โข
As part of the expansion and generalisation of [LM23, Sectionย VI] in sectionย 6, a new subsectionย 6.1 on joins and smash products of spheres, a new subsectionย 6.2 on homotopy groups in terms of joins and a new subsectionย 6.4 on the possibility of a stand-alone proof of Brunerieโs theorem have been added.
Formalisation
All results in the paper have been formalised in and are part of the library, available at https://github.com/agda/cubical/. The code in the paper is mainly literal code taken verbatim from the library, but we have taken some liberties when typesetting, e.g.ย shortening notations and omitting some universe levels. A summary file linking the formalisation and paper can be found at: https://github.com/agda/cubical/blob/master/Cubical/Papers/Pi4S3-JournalVersion.agda The development typechecks with โs --safe flag, which ensures that there are no admitted goals or postulates.
2. Homotopy Type Theory in
In this section, we concisely summarise the key HoTT concepts needed for the proofs and their formalisation in . This roughly corresponds to [Bru16a, Chapterย 1]. For a more in-depth introduction, see the HoTT Bookย [Uni13] which also serves as a reference for the formal language โBook HoTTโ. In this paper, we will present many things with cubical notations, but almost all of the results also hold with minor changes in Book HoTT where paths are represented using Martin-Lรถfโs inductive Id-typesย [ML75] instead of cubical path types. In sectionย 7 we discuss in more detail which proofs crucially rely on cubical features.
All of the results presented in this section were already part of the library before we began our formalisation and, while useful as a resource for our notations, experts on HoTT and can safely skim this section.
2.1. Elementary HoTT notions and notations
We write for dependent function types and denote the identity function by . We write for the dependent pair type and and for its projection maps. In what follows, we mean by a pointed type a dependent pair consisting of a type and a fixed basepoint . For ease of notation, we will often omit the basepoint and simply write for the pointed type . Given two pointed types and , the type of pointed functions consists of pairs where and witnesses basepoint preservation. Again, we simply write and take implicit.
HoTT supports inductive types, i.e.ย types inductively generated by their constructors/points. We write Bool for the type of booleans and for the unit/singleton type with a single point . A defining feature of HoTT, as opposed to plain Martin-Lรถf type theory [ML84], is the existence of higher inductive types (HITs). This is a generalisation of inductive types where we are not only allowed to specify the generating points of the type in question, but also identifications between these points (and possibly identifications of these identifications, and so on). This is useful for defining quotient types, but also for defining spaces when working in the types-as-spaces interpretation of HoTT (see e.g.ย [Uni13, Tableย 1] and [AW09]). natively supports HITs and a type representing the circle can be defined as follows: \ExecuteMetaData[agda/latex/background.tex]s1 Here, โโกโ denotes the type of identifications of with itself. This is interpreted as the type of paths from to itself when viewing as a space. Hence, the above HIT captures precisely the representation of the circle as a cell complex with one -cell () and one -cell (). We always take to be pointed by . In order to discuss the induction principle for , we need to discuss paths in more detail. Cubically, paths correspond to functions out of the unit interval, just like in traditional topology. In , there is a primitive interval type222For technical reasons, this is actually just a โpre-typeโ in . I with endpoints and . A path of type between two points is a function such that and judgmentally. For instance, refl, the constant path at a point , is defined by: \ExecuteMetaData[agda/latex/Section2.tex]refl Note that we use โโ for definitional/judgmental equality and โโโกโโ for โs path-equality. This can be contrasted with the HoTT Book [Uni13] which uses the opposite convention where โโ is propositional/typal equality and โโ definitional/judgmental equality.
This type of notational conventions is not the only difference between and Book HoTT. Many proofs that are complicated in Book HoTT become remarkably direct using the direct treatment of equality using path types. For instance, function extensionality and its inverse funExtโป are one-liners that just flip the arguments: \ExecuteMetaData[agda/latex/Section2.tex]funExt \ExecuteMetaData[agda/latex/Section2.tex]funextInv In Book HoTT, however, funExt is typically proved as a consequence of the univalence axiom using a rather ingenious proofย [Lic14] while its inverse follows from path induction. Another elementary example of a proof involving _โโกโ_ is cong (called ap in Book HoTT), which applies a function to a path: \ExecuteMetaData[agda/latex/Section2.tex]cong
Although the treatment of paths in differs somewhat from Book HoTT, we may still prove path induction: for any dependent type , all dependent functions are uniquely determined by . In Book HoTT, this can be used, among other things, to define the notion of a dependent path, which formalises the situation when two points and are equal up to a path . In , however, the type of dependent paths is primitive: \ExecuteMetaData[agda/latex/Section2.tex]PathP In fact, is just the special case of PathP where the line of paths is constant: \ExecuteMetaData[agda/latex/Section2.tex]Path
We are now ready to describe the induction principle of . A dependent function is determined by a point and a loop . In , this would be written using pattern matching, as in the left-most definition below, which is introduced side-by-side with the way it would commonly be written in informal HoTT (as in Brunerieโs thesis):
[agda/latex/Background.tex]s1-fun
2.2. More higher inductive types
Let us now introduce the remaining HITs used in [Bru16a]. These come equipped with induction principles analogous to that of . To define higher spheres, we need suspensions: \ExecuteMetaData[agda/latex/background.tex]susp We always take suspensions to be pointed by . We may now define the -sphere, for , by where Suspn-1โ denotes -fold suspension. We also define (the empty type) and . We remark that we could equivalently have defined as the suspension of as is done in [Bru16a]. Our reason for not doing so is that certain functions using appear to compute better with the definition. Furthermore, this is the definition used in already existing code in the library.
We may also capture the (homotopy) pushout of a span by the HIT: \ExecuteMetaData[agda/latex/background.tex]pushout Diagrammatically this corresponds to:
We use pushouts to define the wedge sum of two pointed types, denoted , the join of two types, denoted , and the cofibre of a map , denoted :
Two particularly important functions out of wedge sums are \ExecuteMetaData[agda/latex/background.tex]nabla and \ExecuteMetaData[agda/latex/background.tex]totimes
2.3. Truncation levels and -truncations
An important concept in HoTT is that of Voevodskyโs h-levelsย [Voe10b], which gives rise to the notion of an n-type. Since types in HoTT are interpreted as spaces (or rather, as homotopy types), they are not only determined by their points but also by which higher paths they may contain. We say that a type is an -type if all -dimensional structure of is trivial. Formally, this is captured by an inductive definition. We say that is a -type if it is contractible, i.e.ย consisting of a single point, as captured by . We inductively say that is an -type if for any , the type is an -type. We call -types propositions and -types sets.
We can turn any type into an -type by -truncation, denoted . For instance, the -truncation may be directly defined using the following HIT: \ExecuteMetaData[agda/latex/background.tex]ptrunc We often use direct definitions like this of - and -truncation in our formalisation, and similar constructions work for any fixed value of , but not when is arbitrary. For higher we rely on the hub-and-spoke constructionย [Uni13, Sectionย 7.3]. \ExecuteMetaData[agda/latex/background.tex]trunc
One caveat with truncations is that a map does not, in general, induce a map . This is, however, the case when is an -type. In particular, always induces a function .
2.4. Univalence, loop spaces, and H-spaces
In order to introduce Voevodskyโs univalence principleย [Voe10a], we need to define the (homotopy) fibre of a function. Given a function and a point , we define the fibre of over by . We say that is an equivalence, written , if is contractible for all . In order to prove that a function is an equivalence, it suffices to provide an inverse and two paths and . If is also pointed, we write .
Univalence states that the canonical map , defined by path induction, is an equivalence. In particular, we get a map promoting equivalences to paths. This provides us with a useful method for transferring proofs between equivalent types which extends to structured types and are then referred to as the structure identity principleย [Uni13, Section 9.8].
Transferring proofs is, however, not the only use case of univalence in HoTT. It can also be used to characterise loop spaces of HITs. This is often done using the encode-decode methodย [Uni13, Sectionย 8.1.4], a type theoretic analogue of proofs by contractibilty of total spaces of fibrations. In HoTT, we define the loop space of a pointed type , by . This is again pointed by , so we may iterate this definition to get the th loop space of , denoted . Loop spaces belong to a particularly important class of types called H-spaces. These consist of a pointed type equipped with a unital magma structure
satisfying . Another particularly important H-space for our purposes is , for which we will use to denote its binary operation. also comes equipped with a notion of inversion which we will denote by . In fact, is a commutative and associative H-space.
3. First results on homotopy groups of spheres
In this section, we cover [Bru16a, Chapterย 2], which introduces some elementary results on the homotopy groups of spheres. All of these results can also be found in the HoTT Bookย [Uni13]. Before even stating them, we need homotopy groups: {defi}[Homotopy groups] For , we define the th homotopy group of a pointed type by:
The name homotopy group should be taken with a grain of salt: it, in general, only has a group structure when (abelian when ). The structure may be defined, much like in [BHF18, Section 5], by considering the equivalence , where the latter type has a multiplication given by pointwise path composition. An alternative definition of is via loop spaces. There is an equivalence and, hence, we could equivalently have defined by setting . This makes the group structure on more transparent: it is simply path composition. This is the definition used in the HoTT Bookย [Uni13]. Brunerie uses both definitions in his thesis and often passes between the two without comment.
An elementary but crucial result for the computation of homotopy groups is the existence of the long exact sequence of homotopy groups. Its proof is usually phrased using the loop space definition of homotopy groups as in e.g.ย [Uni13, Theorem 8.4.6]. For ease of notation, let us write for the fibre of a pointed function over the basepoint of .
Proposition 1 (LES of homotopy groups).
For any pointed map , there is a long exact sequence
where the horizontal maps are induced by the functorial action of on and .
Above, we have implicitly taken the kernel and image of a group homomorphism to be defined by
When analysing loop spaces and homotopy groups of suspensions, the following function is of great importance. It will be used in many constructions to come. {defi}[The suspension map] Given a pointed type , there is a canonical map given by
This induces a homomorphism on homotopy groups by post-composition:
We will often, with some abuse of notation, simply write for this composition. We also define by
We will soon see the suspension map in action, but first we need the following elementary result.
Proposition 2 (Join of spheres).
.
In fact, as we will see inย sectionย 6, there is more to say about this equivalence. We make a forwards reference to 32 and the preceding discussion for a detailed account of its construction.
In particular, 2 gives us an equivalence . Using this fact, we define the following map, which will play a crucial role in the analysis of . {defi}[Hopf map] We define by the composition where h is given by \ExecuteMetaData[agda/latex/BruneriesProof.tex]hopf where is defined using the H-space and inversion structure on . It turns out that the following is trueย [Uni13, Theoremย 8.5.1].
Proposition 3 (The fibre of the Hopf map).
The fibre of hopf is equivalent to , i.e.ย .
3 gives us a fibration sequence which, in particular, will allow us to connect homotopy groups of with those of and . For this, we need to introduce the notion of connectedness. We say that a type is -connected if is contractible. Similarly, we say that a function is -connected if all of its fibres are -connected. This means, in particular, that the induced function is an equivalence. The following is an immediate consequence of the definition of -truncations.
Lemma 4 (Connectedness of spheres).
For , is -connected.
Usingย 4, we can easily prove the following:
Proposition 5 ([Bru16a, Propositionย 2.4.1]).
For , the group is trivial.
For the sake of completeness, let us take the liberty of mentioning some results from [Bru16a, Chapterย 3] already here, since they also concern low-dimensional homotopy groups of spheres. A crucial result is the following theoremย [Uni13, Theoremย 8.6.4]:
Theorem 6 (Freudenthal suspension theorem).
Given an -connected and pointed type , the map is -connected.
On can easily deduce fromย 6 that, in particular, is an equivalence. This allows us to prove the following result:
Corollary 7.
For , we have . Furthermore, is generated by .
Proof 3.1.
The synthetic proof of the classical result that is due to Licata and Shulmanย [LS13]. The fact that is given by the LES associated to the Hopf fibration combined withย 5. The fact that is an immediate consequence ofย 6. The second statement follows by induction on , using that suspension is functorial and thereby preserves the identity map.
We have now analysed all homotopy groups with . This yields the following:
Proposition 8.
Post-composition by hopf induces an isomorphism .
Corollary 9.
There is an isomorphism . Furthermore, is generated by hopf.
Proof 3.3.
By 7 we know that is generated by the identity function on . We know that the isomorphism is given by post-composition by hopf and thus the generator of is mapped to hopf.
3.1. Formalisation of Brunerieโs Chapter 2
Most of these results have already been added to by Mรถrtbergย &ย Pujetย [MP20], Ljungstrรถmย [Lju20], and Brunerie, Ljungstrรถm & Mรถrtbergย [BLM22]. The Freudenthal suspension theorem was formalised in by Cavalloย [Cav20], using a direct cubical proof followingย [Uni13, Theoremย 8.6.4]. 7 was given a direct proof, following the computation of cohomology groups of spheres inย [BLM22].
There were some technical difficulties related to the equivalence , which is used to show that the two different definitions of homotopy groups are equivalent. In several proofs, it is more natural to work on the left-hand-side of . At the same time, working on the right-hand-side often makes constructing elements easier (compare, for instance, an explicit description of the generator of described as a -loop in to the very compact definition ). This means that we often have to translate between the two definitions. One particularly important example is the LES of homotopy groups associated to a function . On each level, the maps are given as follows:
This is then transported to the definition of homotopy groups as maps from spheres via . For the proof of e.g.ย 9, we need to know that the maps in the sequence are given as follows:
What we need is then more than just an equivalence โ we need to show that this equivalence is functorial. This is implicitly assumed in Brunerieโs thesis, but, in , we need to make it precise. Formalising this fact is not entirely trivial. First, we need a tractable definition of the equivalence in question. It can be described inductively with base case given by:
which we take to be pointed by refl. It is easy to verify that this is an equivalence. We define by the composition:
where the last arrow comes from the adjunction . This is a composition of equivalences, and hence an equivalence. We then need to verify that the following commutes
This can be proved inductively. The base case is easy and the inductive step is given by the following diagram
where the commutativity of the outer square comes from the base case paired with the inductive hypothesis, the triangles from the definition of and the right-most square from a straightforward argument.
4. The Brunerie number
Here we give an overview of the first half of Brunerieโs proof. This corresponds to [Bru16a, Chapterย 3] and culminates in the isomorphism for an at this point unknown โBrunerie numberโ . We also discuss the formalisation of this part of the proof and various simplifications found during the formalisation.
4.1. The James construction
To define , Brunerie uses the James constructionย [Jam55], which he introduced in HoTT and partially formalised in [Bru19].
Proposition 10 (James construction).
For a -connected pointed type , there are types with inclusions
such that its sequential colimit . Furthermore, is -connected.
A consequence of 10 is the following fact
Proposition 11.
Given a -connected type , there is a -connected map .
The proof ofย 11 uses that , the sequential colimit of the sequence inย 10, can be shown to be equivalent to . This, paired with some results on the connectivity of sequential colimits, gives the statement. A key consequence of this is the following result which allows us to express as โ a group which turns out to be quite a bit easier to reason about.
Theorem 12.
Proof 4.1.
Because is -connected, 11 tells us that there is a -connected map
In particular, it is -connected and induces an equivalence . We get:
4.2. Formalisation of the James construction
This is a particularly technical part of Brunerieโs thesis, primarily due to the high number of higher coherences which need to be verified in the proof of 10. While this has, subsequent to our efforts, been formalised in its entirety by Kangย [Kan22a], we have taken a shortcut by giving a direct proof ofย 12, which means we do not in fact need the full James construction. Consequently, we instead give direct definitions of for for a pointed type . {defi}[Low dimensional James construction] We define and . The type is defined as the pushout:
We remark that the construction inย subsectionย 4.2 is not definitionally the same as Brunerieโs; in his thesis, these constructions are theorems rather than definitions. Here we take them as definitions. With defined this way, the map is just the constant pointed map and is .
Before we continue, let us temporarily redefine to be the following equivalent HIT. This will make some of the following constructions more compact. \ExecuteMetaData[agda/latex/background.tex]s2
The next lemma will be crucial. It is a special case of the Wedge Connectivity Lemmaย [Uni13, Lemmaย 8.6.2], of which we have formalised a version of the proof of the sphere case inย [BLM22, Lemmaย 8]. From the point of view of formalisation, this proof is easier to work with since it gives more useful definitional equalities.
Lemma 13 (Wedge connectivity for ).
Let . Any function is induced by the following data:
Before we discuss the formalisation of 12 stated with the low dimensional James construction, we first construct the following function. The goal is to define a family of equivalences over . We do this by truncation elimination and pattern matching on , starting with the case:
where the omitted step consists of a proof that . It is an easy lemma that is equal to the identity on . To complete the definition of , we need to consider the case when . This amounts to providing a dependent function:
To do this, we will, in particular, need to provide a family of fillers
This is a -type, and thusย 13 applies. We define:
The fact that these two constructions agree when both and are is a technical but relatively straightforward lemma. Thereby, is defined. We may now define :
The higher cases are easy due to the fact that the goal becomes -truncated, making it sufficient to define them for . Thus, is defined for all .
Lemma 14.
For , is an automorphism on .
Proof 4.2.
To make coming proofs easier, this is proved by explicitly constructing the inverse analogously to .
Proving that these cancel is technical, but direct.
We are now ready to prove the following statement, which is a rephrasing of 12.
Proposition 15.
Proof 4.3.
We take , where is defined using / as above. We employ the encode-decode method and define a family of -types over . Since the universe of -types is a -type, we may do so by truncation elimination:
Code | |||
Code | |||
Code | |||
We now need to define two families of functions
over . We define by path induction, sending refl to the basepoint in . We define by truncation elimination and pattern matching on . The crucial step is defining . On point constructors, it is given by
which is easily verified to be coherent with the higher constructors. The case is immediately induced by , since โโกโ via โ . The case amounts to showing that
The proof is technical but is greatly aided byย 13. The fact that for each holds by path induction. Finally, the fact that holds for each holds by some technical but simple path algebra. Hence is an equivalence.
4.3. Definition of the Brunerie number
Brunerieโs goal is now to analyse . The first result needed is the following: {defi}[Whitehead map] Given two pointed types and , there is a map: \ExecuteMetaData[agda/latex/background.tex]whitehead For our purposes, we only need the case when (although all of the following results appear in full generality in Brunerieโs thesis). We get a composite map:
This induces, via pre-composition, a Whitehead product:
by
Recall that we denote by the generator of . Brunerie shows, in particular, the following about its relation to the Whitehead product (seeย [Bru16a, Proposition 3.4.4.] for the full statement).
Theorem 16.
The kernel of the suspension map is generated by .
The key technical component in the proof is the Blakers-Massey Theorem, first formalised in HoTT byย Favonia,ย Finster,ย Licataย &ย Lumsdaineย inย [HFLL16]:
Theorem 17 (Blakers-Massey).
Consider the diagram
where is the pullback along โ and , i.e.ย , and is defined by
If and are - respectively -connected, then is -connected.
16 is proved by considering the following diagram
Verifying that the outer square is a pushout square is technical and we refer to Brunerieโs proof for the details. Above, is simply the fibre of . The leftmost map is -connected since is -connected and the top map is -connected since and are both -connected. Consequently, by 17, we get that the map is -connected and thus induces a surjection after application of . This gives the diagram:
where the sequence on the top comes from the long exact sequence of homotopy groups associated to . The dashed map sends the generator to by definition.
16 motivates the following definition. Recall that we denote by the isomorphism . {defi}[Brunerie number] We define the Brunerie number by .
We may now prove the main result of [Bru16a, Chapterย 3].
Corollary 18.
.
4.4. Formalisation of the definition of the Brunerie number
The formalisation of this part was straightforward. Arguably the most technical result, the Blakers-Massey theorem, was already available in the library thanks toย Kangย [Kan22b]. Most of the remaining results were essentially just diagram chases which, in a proof assistant, can be somewhat technical. Most work went into verifying that is the cofibre of , the proof of which followed Brunerieโs closely.
In this section we found the only obvious mistake in Brunerieโs thesis. On page 82, in his definition of the โโ-case for W, the path component in the middle was not inverted, making the term ill-typed. Naturally, this was of no mathematical significance and something Brunerie immediately would have noticed if he would have attempted to provide a computer formalisation of this construction.
5. Brunerieโs proof that
This section concerns the final three Chapters (4โ6) of Brunerieโs thesis. The main goal here is proving that .
We will not discuss Chapter 4 in much detail. Chapter 4 is devoted to smash products and, in particular, their symmetric monoidal structure. Brunerie used this in subsequent chapters to define and prove properties about the cup product, a graded multiplicative operation on cohomology groups which will be used to show that . This chapter has turned out to be incredibly difficult to formalise due to the large number of higher coherences involved in the proofs [Bru18]. In fact, the results of this chapter were proved in detail and fully formalised only years after the publication of Brunerieโs thesis by Ljungstrรถmย [Lju24]. We remark that despite the fact that these results have now been made available to us, they are not needed. While, with these results, Brunerieโs construction of the cup product appears correct, his use of smash products still leads to some rather cumbersome diagram chases (with many coherences which still need verification.)
Luckily, it turns out that Chapter 4 can be avoided altogether and that this in fact makes some difficult proofs later on very direct. For this reason, the results in Chapterย 4 were omitted completely from our formalisation. The reason for this is that all results regarding smash products in Brunerieโs thesis concern, in some way, pointed maps out of smash products. In this case, we may exploit the adjunction of maps out of smash products and bi-pointed maps:
Here, is taken to be pointed by the constant map. As shown by Brunerie et al.ย [BLM22], it is arguably easier to define the cup product on the right-hand side of the adjunction, which effectively means that we never have to work with smash products when formalising cohomology theory. The usefulness of the approach by Brunerie et al.ย [BLM22] is not only witnessed by our workโit has been used by Lamiaux et al.ย [LLM23] and Ljungstrรถmย &ย Mรถrtbergย [LM24] in the development of cohomology rings and is used to describe the cup product as an instance of the delooping machinery introduced by Wรคrnย [Wรคr23, Section 4.3]. We remark that the same techniques (although independent fromย [BLM22]) can be found in the work of Christensenย &ย Scoccolaย [CS20, Section 2.4] where it is utilised in a discussion of the magma structure on loop spaces.
5.1. Cohomology and the Hopf invariant
[Bru16a, Chapterย 5] introduces integral cohomology groups and rings, and gives a construction of the Mayer-Vietoris sequence. In more detail, Brunerie defines the integral Eilenberg-MacLane spaces by and for . This allows for a definition of the (integral) cohomology of :
The fact that follows by a proof completely analogous to that ofย 7. Brunerie uses this equivalence to carry over the (commutative) H-space structure on to that of . This provides a notion of addition which lifts to by post-composition, thereby endowing with a group structure.
Similarly, Brunerie gives a definition of a cup product which lifts to the usual cup product . This is shown to induce a graded commutative ring structure on using results from Chapterย 4.
The synthetic construction of the Mayer-Vietoris sequence concerns the long exact sequence
where denotes the pushout of a span . A direct application gives us, for , that if and otherwise. This gives, by another application of the sequence, the following result:
Lemma 19.
For any we have
Let us briefly fix . Denote by and the generators of and respectively given by the image of under the isomorphism inย 19. These generators may be used to define an invariant on called the Hopf invariant. This is done as follows: {defi}[Hopf invariant] The Hopf invariant of is the unique integer such that . We remark that the above definition is given for the more general class of maps in Brunerieโs thesis. For our purposes, the above special case suffices. In particular, we may see HI as a function . The following turns out to be true:
Proposition 20.
HI is a homomorphism .
Proof 5.1 (Proof sketch).
We first rephrase as a composition
By analysing the cohomology of and the action on generators of the obvious maps from , and into , one arrives at the result with some elementary algebra.
Finally, the Hopf invariant of our element of interest is computed (up to a sign), using an argument similar to that of the proof ofย 20.
Proposition 21.
We are now almost done: if there is an element such that , then HIโ is an isomorphism . Since isomorphisms of this type are unique up to a sign, 21 tells us that also for the standard isomorphism , we must have , i.e.ย . Hence, we have so far shown the following:
Lemma 22.
If for some , then .
The final chapter of Brunerieโs thesis is devoted to proving the antecedent of 22.
5.2. Formalisation of cohomology and the Hopf invariant
This section was largely covered by Brunerie, Ljungstrรถm and Mรถrtberg inย [BLM22] and thus also available in . We briefly summarise:
-
โข
was defined explicitly using a direct construction of the Wedge Connectivity for spheresโa generalisation ofย 13. This construction is of great convenience to our formalisation due to the fact that e.g.ย holds definitionally. In fact, all of the basic laws governing are (trivially) provably path equal to refl at , which simplifies a lot of path algebra.
-
โข
The cup product is defined via the following lift
for , where the top map may be thought of as being inductively defined via the equivalence
The lift exists because the type of pointed functions is an -type. This construction gives an inductively defined cup product which is remarkably easy to work with, as showcased in [LLM23] to compute cohomology rings of various classical spaces.
-
โข
The Mayer-Vietoris sequence was formalised by directly translating Brunerieโs original proof.
Hence, what remained to be formalised in Chapter 5 was the Hopf invariant, 20 and 21. The formalisation of these propositions was straightforward and we were able to translate Brunerieโs proofs in a direct manner. This is not surprising as the proofs are very algebraic.
For simplicity, we only formalised these propositions as they stand here and not their generalisations to higher spheres (i.e.ย as in [Bru16a, Propositionย 5.4.3ย &ย 5.4.4]). We remark, however, that the formalised proofs easily should be rephrasable for the general Hopf invariant of maps .
5.3. The Gysin sequence
This section corresponds to [Bru16a, Chapterย 6]. In order to be able to apply 22, this chapter is devoted to proving that , where, recall, is the Hopf mapโthe generator of from 2. This amounts to analysing the cup product on the cohomology of cofibโhopf. It is well-known that cofibโhopf is a model of the complex projective plane (see e.g.ย [Hat02, Example 4.45]), so let us simply write from now on. We hence have defined as the following pushout:
In order to show that , it suffices to show that is an isomorphism for a generator. Brunerie does this by constructing the Gysin sequence.
Proposition 23 (The Gysin sequence).
Let be a pointed and -connected type and be a fibration with . Let be the total space of . If there is a family of maps with a generator of , then there is an element and a long exact sequence
Moreover, (and also ) exists when is -connected.
In order to make use of this, we need the following result.
Proposition 24.
There is a fibration with and total space .
24 is a special case of the following result.
Proposition 25 (Iterated Hopf construction).
Given an associative H-space , let denote the associated Hopf map. There is a fibration with fibre and total space .
We consider the particular case when in 25. In this case, the map corresponds to the usual Hopf map under the equivalence and hence . The total space of this is which is equivalent to by 2 and thus we have proved 24. The associated Gysin sequence gives us the main result of this section:
Proposition 26 (Hopf invariant of the Hopf map).
Proof 5.2.
26 combined with 22 gives the desired path: . This completes Brunerieโs proof and 18 gives us the main result:
Theorem 27.
5.4. Formalisation of the Gysin sequence
Formalising the results from Chapterย 6 was more challenging, but was greatly aided by the alternative construction of the cup product discussed above. The first technical lemma, which is crucial for the construction of the Gysin sequence is:
Lemma 28.
Given and , we have
In Brunerieโs thesis, this lemma relies on a result which in turn requires the symmetric monoidal structure of the smash product (in particular, it uses the pentagon identity). With the alternative construction of the cup product, however, this result follows immediately from the definition of the cup product.
28 is used to show that the map
is an equivalence, which is crucially used in the construction of the Gysin sequence. Above, is a generator of . For reference, is the map in the proof of [Bru16a, Propositionย 6.1.2]. Brunerieโs proof proceeds by induction on : the fact that is an equivalence is easy; for the inductive step, it suffices to show that is an equivalence for reasons of connectedness. This is done by showing that the following diagram commutes
hence getting that is an equivalence from the induction hypothesis.
While the general idea of Brunerieโs proof of this statement is correct, it was difficult to formalise directly. The primary reason for this is that Brunerie does not pay much attention to the fact that the objects of interest are not just functions, but pointed functions. In particular, his argument for the commutativity of the diagram above treats as a plain function rather than a pointed function. Fortunately for us, the whole proof is very direct with the alternative definition of the cup product. Formalising Brunerieโs proof with pointedness of functions respected would have been hard, especially without machinery external to [Bru16a] (e.g.ย [BLM22, Lemma 14.]).
After these subtleties were dealt with, the formalisation of the Gysin sequence could proceed following Brunerieโs proof closely. In our initial formalisation, we made a slight adjustment to the indexing of the Gysin sequence. This removed some bureaucracy but happened at the cost of generality.333A more general form of the Gysin sequence using Brunerieโs indexing has later been added to . This made verifying thatย 26 slightly less direct, because we no longer had access to the case
which is used by Brunerie to show that the element , for which is an isomorphism, is indeed a generator. However, in practice, this is not a big problem. In fact, it provides a nice example of a proof by computation. It is very direct to manually show that the map induced by is equal to the underlying map of . The fact that generates can then be verified by computation: applying the isomorphism to returns by normalisation in . We stress, for those skeptical of this method, that it also is very direct to provide a โmanualโ formalisation of this fact.
The final step of the formalisation wasย 25, i.e.ย the iterated Hopf construction. Although technical, the formalisation could be carried out following Brunerie closely.
6. The simplified proof and normalisation of a Brunerie number
It turns out that not only Chapter 4, but also Chapters 5โ6 can be avoided. As conjectured by Brunerie, it would be possible to do this by simply normalising the Brunerie number. While we still cannot normalise his original definition of it, we can at least provide a computation of a substantially simplified Brunerie number. This is defined via a more tractable description of the isomorphism as a composition of simpler isomorphisms, relying on an alternative definition of in terms of . The idea is then to trace step by step through these isomorphisms. This gives a sequence of new Brunerie numbers and one of these normalises to in in a matter of seconds.
The trick to give a more tractable definition of is to redefine the third homotopy group of a type as . This reformulation of can be given an explicit group structure, such that pre-composition by induces an isomorphism . Let us first set up machinery we need (and a bit more).
6.1. Interlude: joins and smash products of spheres
We have seen that the equivalence played a crucial role in Brunerieโs original proof. What is less clear, however, is what this equivalence actually looks like. It turns out that it is closely related to the multiplication and, as such, has a rather direct and algebraic description. Let us therefore briefly study this multiplication and describe its relation to the decomposition of spheres into joins. Although we only need low-dimensional special cases of these facts, we take the opportunity to tell the general story.
Remark.
In this subsection only, we will use the definition . In particular, this means that we redefine instead of using the construction. This is only done for ease of presentation and is not used in the formalisation.
Let us use the following (explicit) definition of the smash product . \ExecuteMetaData[agda/latex/background.tex]smash This construction is well-known and can easily be seen to be (bi-)functorial (see e.g.ย [Lju24, Definition 6]), i.e.ย given pointed maps and , there is a map with .
The first goal is to define a multiplication . To facilitate future proofs, we first introduce the following construction which lifts maps to maps : \ExecuteMetaData[agda/latex/background.tex]lift-left The function is pointed in the left-argument by construction. It is pointed also in the right-argument if this is the case for . Hence, given any function , we also get (with some abuse of notation) .
Lemma 29.
For any pointed types and , the map is an equivalence.
Proof 6.1.
The inverse of is induced by the map defined by mapping to the composite loop given by:
The fact that these maps cancel follows by some technical but elementary path algebra. For the details, we refer to the formalisation.
Lemma 30.
If is an equivalence, then so is
Proof 6.2.
These lemmas allow us to define an equivalence (we borrow this notation fromย [Bru16a, Proposition 4.2.2]). We will write for the underlying function, i.e. . The name is suggestive: modulo the quotient maps , it is precisely the cup product; this justifies overloading the symbol. We define it by induction on . In the case , we define it on canonical points by case distinction on :
This map induces a map on the full smash product [Bru16a, Sectionย 4.1]. In fact, it is an equivalence, and thereby is defined. For we use the fact that and simply define define . By 29, this is an equivalence.
Let us try to transfer this construction from smash products to joins. To begin with, consider the following map, defined for any two pointed types and : \ExecuteMetaData[agda/latex/background.tex]pinch
Proposition 31.
For any two pointed types and , the map pinch is an equivalence.
Proof 6.3.
While we have, in our formalisation, explicitly constructed an inverse of pinch and proved directly that the two maps cancel, a recent (independent) result by Cagne et al.ย [CBKB24] allows us to give a more principled proof. We proceed by noting that for any pointed type , we have
where the first equivalence comes from the adjunction between Susp and and the second from the adjunction between smash products and doubly pointed maps. The third equivalence is [CBKB24, Lemma 6.1]. This shows that Susp and have the same elimination principle, which implies the desired statement.
Let denote the following composition:
Unfolding the definition of we see that it has an incredibly compact description: \ExecuteMetaData[agda/latex/background.tex]F Since is a composition of two equivalences, we immediately arrive at the following result.
Proposition 32.
is an equivalence
We have already seen that the special case plays an important role in Brunerieโs proof. Now that we have moved from the rather opaque definition of this equivalence presented in Brunerieโs thesis to the definition in terms of the very explicit function , we can hope to better understand its role in the definition of the Brunerie number. Since the only non-trivial component of the construction of is , we may hope that it inherits some of its properties. We study these now.
Let us first analyse the interaction of with inversion. Recall, given a pointed type we can define inversion on Susp by: \ExecuteMetaData[agda/latex/background.tex]susp-inversion We get sphere inversion by letting be boolean negation when and the suspension inversion defined above when .444If we prefer to use the -construction of , we may define the inversion map simply by sending to .
Proposition 33.
The multiplication is graded-commutative, i.e.ย for and , we have .
For the proof, we refer to [BLM22, Proposition 18] which is the corresponding statement for the cup product on and whose proof directly applies also in our setting. Associativity follows, just like in the proof of [BLM22, Proposition 17], by sphere induction:
Proposition 34.
The multiplication is associative.
Proof 6.4.
Let , and . We show that by induction on and . When , the two equalities
hold definitionally. For the inductive step, we use suspension elimination on . The two equalities
also hold definitionally. So, by inspection of the definition of , we need to show that
Using the action of cong on path composition, we can unfold the right-hand side as follows:
6.2. Homotopy groups in terms of joins
As we have seen in Brunerieโs construction of the Hopf map, it is often easier to describe maps of type than those of type . However, the definition of homotopy groups we have relied on so far uses the latter type. This forces us to translate back and forth whenever we want to use the definition in terms of joins. The key strategy behind our new calculation of the Brunerie number is to rephrase homotopy groups in terms of maps out of joins of spheres. {defi} Given a pointed type , we define . Clearly, this is equivalent to the usual definition of via pre-composition by . However, can be endowed with an explicit group structure which turns out to respect. In order to construct the group structure on , let us construct a map for all pointed types and . Recall, we take to be pointed by . We define by:
Note that is pointed in both arguments. Let us also define explicitly (once and for all) a pointed version of cong taking a pointed functions to a pointed function . We define it by
where, recall, . In other words, is the functorial action of .
We can now add two functions and of type by \ExecuteMetaData[agda/latex/background.tex]joinMult We take this function to be pointed by refl. Note that, since is pointed in both arguments, both and vanish. Let us compare this with the addition on the usual definition homotopy groups. In general, we may add any two functions and of type by \ExecuteMetaData[agda/latex/background.tex]suspMult This is precisely the construction used to define the group structure on whenever . Note that, by construction, we have .
Proposition 35.
Given , we have
Proof 6.5.
Proposition 36.
For any pointed type , the set is a group with group structure induced by . Furthermore, pre-composition is an isomorphism.
Proof 6.6.
We know that is an equivalence of types. By 35 and the Structure Identity Principleย [Uni13, Section 9.8], it induces a path
of raw monoids (i.e.ย elements of type ). Since the the left-hand side of this equality can be extended to form a group, so can the right-hand side. This is precisely what we set out to show.
The following result follows in exactly the same manner.
Proposition 37.
is functorial with its action on maps being defined by post-composition.
6.3. The new synthetic proof that
Let us now return to the new proof. We will use from above in dimensions . We remark that, byย 33, it is anti-commutative in these dimensions. In order to make the following constructions somewhat more direct, let us return to the definition of . Under the equivalence, , the multiplication is described by \ExecuteMetaData[agda/latex/background.tex]circprod In addition to anti-commutativity and associativity, we have the following distributivity-like fact about :
Lemma 38.
For , we have
Proof 6.7.
We proceed by -induction on . The equality holds by refl, so we are left to verify the equality
Simplifying the left-hand side using functoriality of binary congย [LM24, Definition 1], we get
We now redefine via the following decomposition, primarily defined in terms of post- and pre-composition with and its inverse. In what follows, let us simply write and . We also remind the reader of the map from 2 for which is an isomorphismโthis follows fromย 8. {defi} Let be defined by the following sequence of isomorphisms
where the last map can be chosen to be any reasonable description of the isomorphism sending to .
The goal is to trace the image of under . Let us define the following three underlying functions of elements , and : \ExecuteMetaData[agda/latex/background.tex]eta1 \ExecuteMetaData[agda/latex/background.tex]eta2 \ExecuteMetaData[agda/latex/background.tex]eta3
The claim is now that the image of under the chain of isomorphisms can be described as follows:
Lemma 39.
Proof 6.8.
The definition of matches that of , and so the statement holds by construction of the Whitehead product.
Lemma 40.
Proof 6.9.
Applying on both sides gives the equation . Thus, we are done if we can show that for . We do it by induction on . When is or , the equality holds by refl. Thus, it remains to show that
We show the identity by unfolding the right-hand side:
Lemma 41.
Proof 6.10.
The identity follows if we can show that for . Again, the identity holds by refl when is or . So it remains to show that
Just like in the proof ofย 41, we show this simply by unfolding the definitions of the, in this case, left-hand side. We get:
where the fourth and seventh equalities come from anti-commutativity and the fifth equality from 38. The fact that commutes with inversion is used throughout.
Theorem 42.
Proof 6.11.
In addition to providing a much shorter proof of , this gives us a sequence of new Brunerie numbers, , of decreasing complexity:
This gives new hope for Brunerieโs conjecture about a proof by normalisation. This may be captured as follows:
Theorem 43 (New Brunerie numbers).
If either of normalises to , then .
Ideally, we could normalise . This, however, turns out to be difficult, as it does not bypass the main hurdle of computing the inverse of the isomorphism induced by the Hopf map, which has a rather indirect construction coming from the LES of homotopy groups associated to the Hopf fibration. This problem does not apply to , for which the computation does not rely on the problematic inverse. Unfortunately, also fails to normalise in reasonable time in . This is surprising, as the only maps playing a fundamental role here are two applications of the equivalence , which is not too involved, and one application of which may be compactly described via
and computes relatively well if the last isomorphism is constructed as inย [BLM22].555As noted inย [Lju20], the Freudenthal suspension theorem should be avoided here as it has a tendency to lead to very slow computations. This is another way in which we deviate from Brunerieโs . We have hence, at the time of writing, not been able to normalise even , despite many optimisations of the functions involved. We are, however, able to normalise after some minor modifications to and the map . This optimised version of , normalises to in in just under seconds, thereby giving us an at least partially computer-assisted proof of .
We emphasise again that is a vastly simplified version of since the isomorphism never has to be computed. Hence, it is rather surprising that computations break down already at this stage. This tells us that has a long way to go before any direct computation of the original is feasible. We hope that this could be useful for benchmarking in future optimisations of and related systems.
Finally, we address the elephant in the room: why is there a minus sign popping up? In other words, have we really chosen the, in some way, canonical isomorphism? The isomorphism maps, as expected, to , so it can hardly be the culprit. Neither can the equivalence , since it is applied equally in the constructions of hopf and of . We could, however, have defined the โโ-case for h by \ExecuteMetaData[agda/latex/background.tex]alt-hopf in which case would have sent to and hopf to (note that this is only possible since altering h would alter the definition of ). The construction of h that we have given is, however, precisely the one which fell out by unfolding our formalisation Brunerieโs construction of the corresponding map. If this indeed is what Brunerie intended, we may also conclude that the original Brunerie number is equal to . We stress that this merely is a fun fact and of no mathematical importance to Brunerieโs proof or our formalisation.
6.4. A stand-alone proof of Brunerieโs theorem?
We saw above that the new proof of together with 18 implies Brunerieโs theorem. However, what conclusions can we draw concerning the cardinality of in the absence of 18? In other words, how self-contained is the new proof? While the fact that does not automatically imply that , it does provide all ingredients necessary for a stand-alone proof of the following fact:
Theorem 44.
If , then .
Before we prove 44, we need to analyse the action of suspension on Whitehead products and, in particular, on . In what follows, let and be pointed types and let us fix two pointed functions and . The Whitehead product of and can be understood as the composition
We remark that this construction has been independently studied by Cagne et al.ย [CBKB24, Definition 6.3] who call it the โgeneralised Whitehead productโ. After a bit of massaging, this function can be given a very simple description: \ExecuteMetaData[agda/latex/background.tex]wh We remark that this composition gives -fun when , and .
Our aim is to show that vanishes under suspension. To this end, let us consider a function very similar to : \ExecuteMetaData[agda/latex/background.tex]gamma Despite the similarity of and , the latter turns out to be trivial.
Lemma 45.
is constant.
Proof 6.12.
We show that for all by induction on . When is , the left-hand side reduces to , so we need to provide a path . Instead of choosing the obvious path refl, we provide . When is , we have the same goal. This time, we provide the path . For the final step, i.e.ย the action of on , we need to provide a filler of the following square of paths:
Squares of this shape always have a filler by definition of path composition, and thus the statement holds.
Now, although and may look similar, it it is now, in light ofย 45, clear that they are not the same. This happens because the actions of the functions on only are the same up to commutation of pathsโsomething which is not always legal in the possibly non-commutative loop space . Nevertheless, after suspending the function, the situation is different:
Lemma 46.
The pointed functions are equal.
Proof 6.13.
Under the adjunction , it is enough to show that for every , we have an equality of loops in :
We proceed by induction on . When is or , the equality holds by refl. Thus, it remains to show that
As before, this is a simple exercise in unfolding the definitions of each respective function:
(EH) | ||||
where the step labelled (EH) is an application of the Eckmann-Hilton argument which says that path composition in is commutative for any pointed type ย [Uni13, Theorem 2.1.6]. In particular, since we may interpret and as loops in , the identity holds.
Proposition 47.
The pointed function is constant.
Proof 6.14.
Since is constant and constant functions are preserved by suspension, 45 gives us the desired equality of (pointed) functions:
As we have seen before, setting and in the definition of , so that and we obtain the usual Whitehead product. , that is
Let us translate 47 to a result concerning these maps.
Proposition 48.
For and , their Whitehead product vanishes under suspension, i.e.
Proof 6.15.
The result follows immediately from the fact that the action of suspension is functorial and from 47.
We get the following classically well-known theorem as an immediate corollary:
Theorem 49.
For any and , the Whitehead product lies in the kernel of the suspension map
We now have all that we need in order to proveย 44.
Proof 6.16 (Proof of 44).
By the Freudenthal suspension theorem, we know that is surjective. Furthermore, we know that the domain of this function is isomorphic to โค via from subsectionย 6.3 and thus we have a surjection . We know from the new direct calculation of the Brunerie number that and thus we have
where the second equality comes from 49. Hence, we have shown that there exists a surjection from โค onto with in its kernel. This implies the theorem.
Now, with 44 in mind, we seem to be very close to having produced a remarkably short proof of Brunerieโs theorem. All that remains is showing that is not trivial. This, however, turns out not to be entirely straightforward. One possible proof uses the so called Steenrod Squares. This is a cohomology operation which was originally defined in HoTT by Brunerieย [Bru16b] and whose theory was recently made available in HoTT by Ljungstrรถmย andย Wรคrnย [LW24]. Such an approach, however, can hardly be said to simplify Brunerieโs original proof, as the Steenrod Squares are rather advanced constructions. A solution to this problem which would truly be impressive would be a direct construction of two elements and a proof that . While this appears to be difficult to do by hand, we can, since we are working constructively, reformulate this problem as a computational challenge.
Challenge.
Construct a function and an element such that
-
โข
computes to true and
-
โข
computes to false.
7. Conclusion
In this paper, we have presented three formalisations of in the system. For the different proofs that , the line count is roughly as follows:
-
(1)
Brunerieโs original proof [ LOC]
-
(2)
A direct calculation of [ LOC]
-
(3)
A computer-assisted reformulation of (2) [ LOC]
As always, the number of lines of code (LOC) should be taken with a grain of salt. First, the LOC in the first formalisation exclude over LOC fromย [Kan22b, Cav20, BLM22] which we have imported as libraries. In addition, these numbers also exclude many elementary results used in the formalisation, including LOC for Chapters 1โ3. We also stress that the line count for formalisations (2) and (3) only concern the part of the proof discussed inย sectionย 6.
Formalisation (1), which constituted the bulk of this paper, was a formalisation of Brunerieโs pen-and-paper proof, taking some convenient shortcuts when possible. The problem of formalising Brunerieโs proof has been a widely discussed open problem in HoTT/UF, and we hope that our efforts here provide a satisfactory solution to it. Formalisations (2) and (3) were of a simplified calculation of the Brunerie number, . The very similar proofs (2) and (3) differ in that (3) uses to carry out part of the computation of the new Brunerie number automatically. Perhaps equally important, we have seen that (3) provides us with new Brunerie numbers which are far simpler than the original one, but still do not normalise in a reasonable amount of time. Our hope is that these can prove useful in future optimisations of and related systems, as they could help shed some light on where the normalisation of the original Brunerie number breaks down.
We remark that proofs (1) and (2) could be done in Book HoTT and do not use any cubical machinery in a fundamental way, making them interpretable in any suitably structured -topos [Shu19]. We hence claim that, in our formalisations, we do not crucially rely on computations using univalence and HITs to prove anything that we could not have proved by hand in Book HoTT. Nevertheless, the system has been very helpful in the formalisation, primarily due to its native support for HITs and definitional computation rules for higher constructors. Formalisation (3), however, is only valid in a system with computational support for univalence as it crucially relies on normalisation of proof terms involving univalence. It would be interesting to run this in other cubical systems, like [CCHM], [Redb], cooltt [Reda], etc.
In addition to the above, we have also taken the opportunity to include some important constructions and results concerning joins of spheres and Whitehead products. In particular, we have given a very explicit definition of the decomposition of spheres into joins of spheres, given a new construction of homotopy groups in terms of maps out of joins of spheres and shown that Whitehead products vanish under suspension. The vanishing of Whitehead products allowed us to extend (2) to a stand-alone proof of the fact that is either trivial or isomorphic to . Interestingly, another direct proof using an entirely different approach of this very fact was recently announced by Bakerย [Bak24]. Bakerโs argument is concerned with showing that a certain path constructed via the Eckmann-Hilton argument generates and then concludes that two times this generator must vanish under suspension due to the so called syllepsisย [SK22]. We leave it to future work to investigate if anything interesting can be said about the relation between Bakerโs proof and ours.
We also remark that our formalisation of Brunerieโs proof does not cover all results of Brunerieโs thesis in full generality. For instance, we have not developed his proof concerning Whitehead products in full generality. We leave this generalisation for future work. This would tie in nicely with another possible direction of future research, namely that of investigating whether the approach outlined in sectionย 6 can be used to compute other Whitehead products. In addition, describing their graded quasi-Lie algebra structure is work in progress.
Acknowledgement
First and foremost we would like to thank Guillaume Brunerie for his excellent thesis, the conjecture about the computability of , and for the many discussions about this over the years. We would also like to thank Thierry Coquand and Simon Huber for the first attempt to compute the number together with Guillaume using in December 2014 and everyone else who has tried to compute the number and contributed ideas to this since. The formalisation relies on many contributions to by more people than we can mention, but we are especially grateful to Evan Cavallo for the Freudenthal suspension theorem as well as many cool cubical tricks and to Rongji Kang for the Blakers-Massey theorem.
References
- [Agd24] The Agda Development Team. The Agda Programming Language, 2024. URL: http://wiki.portal.chalmers.se/agda/.
- [AW09] Steve Awodey and Michaelย A. Warren. Homotopy theoretic models of identity types. Mathematical Proceedings of the Cambridge Philosophical Society, 146(1):45โ55, January 2009. doi:10.1017/S0305004108001783.
- [Bak24] Raymond Baker. Eckmann-Hilton and the Hopf Fibration. Extended abstract at Workshop on Homotopy Type Theory / Univalent Foundations (HoTT/UF24, 2024. URL: https://hott-uf.github.io/2024/abstracts/HoTTUF_2024_paper_24.pdf.
- [BHF18] Ulrik Buchholtz and Kuen-Bang Houย Favonia. Cellular Cohomology in Homotopy Type Theory. In Proceedings of the 33rd Annual ACM/IEEE Symposium on Logic in Computer Science, LICS โ18, pages 521โ529, New York, NY, USA, 2018. Association for Computing Machinery. doi:10.1145/3209108.3209188.
- [BLM22] Guillaume Brunerie, Axel Ljungstrรถm, and Anders Mรถrtberg. Synthetic Integral Cohomology in Cubical Agda. In Florin Manea and Alex Simpson, editors, 30th EACSL Annual Conference on Computer Science Logic (CSL 2022), volume 216 of Leibniz International Proceedings in Informatics (LIPIcs), pages 11:1โ11:19, Dagstuhl, Germany, 2022. Schloss Dagstuhl โ Leibniz-Zentrum fรผr Informatik. URL: https://drops.dagstuhl.de/opus/volltexte/2022/15731, doi:10.4230/LIPIcs.CSL.2022.11.
- [Bru16a] Guillaume Brunerie. On the homotopy groups of spheres in homotopy type theory. PhD thesis, Universitรฉ Nice Sophia Antipolis, 2016. URL: http://arxiv.org/abs/1606.05916.
- [Bru16b] Guillaume Brunerie. The steenrod squares in homotopy type theory. Abstract at 23rd International Conference on Types for Proofs and Programs (TYPES 2017), 2016. URL: https://types2017.elte.hu/proc.pdf#page=45.
- [Bru18] Guillaume Brunerie. Computer-generated proofs for the monoidal structure of the smash product. Homotopy Type Theory Electronic Seminar Talks, November 2018. URL: https://www.uwo.ca/math/faculty/kapulkin/seminars/hottest.html.
- [Bru19] Guillaume Brunerie. The James Construction and (S) in Homotopy Type Theory. Journal of Automated Reasoning, 63:255โ284, 2019.
- [Cav20] Evan Cavallo. Formalisation of the Freudenthal Suspension Theorem, 2020. URL: https://github.com/agda/cubical/blob/master/Cubical/Homotopy/Freudenthal.agda.
- [CBKB24] Pierre Cagne, Ulrik Buchholtz, Nicolai Kraus, and Marc Bezem. On symmetries of spheres in univalent foundations, 2024. arXiv:2401.15037.
- [CCHM] Cyril Cohen, Thierry Coquand, Simon Huber, and Anders Mรถrtberg. cubicaltt: Cubical Type Theory. Implementation available at https://github.com/mortberg/cubicaltt.
- [CCHM18] Cyril Cohen, Thierry Coquand, Simon Huber, and Anders Mรถrtberg. Cubical Type Theory: A Constructive Interpretation of the Univalence Axiom. In Tarmo Uustalu, editor, 21st International Conference on Types for Proofs and Programs (TYPES 2015), volumeย 69 of Leibniz International Proceedings in Informatics (LIPIcs), pages 5:1โ5:34, Dagstuhl, Germany, 2018. Schloss DagstuhlโLeibniz-Zentrum fuer Informatik. doi:10.4230/LIPIcs.TYPES.2015.5.
- [CH19] Evan Cavallo and Robert Harper. Higher Inductive Types in Cubical Computational Type Theory. Proceedings of the ACM on Programming Languages, 3(POPL):1:1โ1:27, January 2019. doi:10.1145/3290314.
- [CHM18] Thierry Coquand, Simon Huber, and Anders Mรถrtberg. On Higher Inductive Types in Cubical Type Theory. In Proceedings of the 33rd Annual ACM/IEEE Symposium on Logic in Computer Science, LICS โ18, pages 255โ264. ACM, 2018. doi:10.1145/3209108.3209197.
- [CS20] J.ย Daniel Christensen and Luis Scoccola. The Hurewicz theorem in Homotopy Type Theory, 2020. Preprint. URL: https://arxiv.org/abs/2007.05833, arXiv:2007.05833.
- [Hat02] Allen Hatcher. Algebraic Topology. Cambridge University Press, 2002. URL: https://pi.math.cornell.edu/~hatcher/AT/AT.pdf.
- [HFLL16] Kuen-Bang Hou (Favonia), Eric Finster, Danielย R. Licata, and Peterย LeFanu Lumsdaine. A Mechanization of the Blakers-Massey Connectivity Theorem in Homotopy Type Theory. In Proceedings of the 31st Annual ACM/IEEE Symposium on Logic in Computer Science, LICS โ16, pages 565โ574, New York, NY, USA, 2016. ACM. doi:10.1145/2933575.2934545.
- [Jac23] Tom Jack. and another Brunerie number in CCHM. Extended abstract at The Second International Conference on Homotopy Type Theory (HoTT 2023), 2023. URL: https://hott.github.io/HoTT-2023/abstracts/HoTT-2023_abstract_21.pdf.
- [Jam55] I.ย M. James. Reduced product spaces. Annals of Mathematics, 62(1):170 โ 197, 1955.
- [Kan22a] Rongji Kang. Formalisation of the James Construction, 2022. URL: https://github.com/agda/cubical/tree/master/Cubical/HITs/James.
- [Kan22b] Rongji Kang. Formalisation of the James Construction, 2022. URL: https://github.com/agda/cubical/tree/master/Cubical/HITs/James.
- [Lic14] Danielย R. Licata. Another proof that univalence implies function extensionality, 2014. Blog post at https://homotopytypetheory.org/2014/02/17/another-proof-that-univalence-implies-function-extensionality/.
- [Lju20] Axel Ljungstrรถm. Computing Cohomology in Cubical Agda. Masterโs thesis, Stockholm University, 2020.
- [Lju22] Axel Ljungstrรถm. The Brunerie Number Is -2, 2022. Blog post at https://homotopytypetheory.org/2022/06/09/the-brunerie-number-is-2/.
- [Lju24] Axel Ljungstrรถm. Symmetric Monoidal Smash Products in Homotopy Type Theory, 2024. arXiv:2402.03523.
- [LLM23] Thomas Lamiaux, Axel Ljungstrรถm, and Anders Mรถrtberg. Computing cohomology rings in cubical agda. In Proceedings of the 12th ACM SIGPLAN International Conference on Certified Programs and Proofs, CPP 2023, page 239โ252, New York, NY, USA, 2023. Association for Computing Machinery. doi:10.1145/3573105.3575677.
- [LM23] Axel Ljungstrรถm and Anders Mรถrtberg. Formalizing 4(S) Z/2Z and Computing a Brunerie Number in Cubical Agda. In LICS, pages 1โ13, 2023. doi:10.1109/LICS56636.2023.10175833.
- [LM24] Axel Ljungstrรถm and Anders Mรถrtberg. Computational Synthetic Cohomology Theory in Homotopy Type Theory, 2024. arXiv:2401.16336.
- [LS13] Danielย R. Licata and Michael Shulman. Calculating the Fundamental Group of the Circle in Homotopy Type Theory. In Proceedings of the 2013 28th Annual ACM/IEEE Symposium on Logic in Computer Science, LICS โ13, pages 223โ232, Washington, DC, USA, 2013. IEEE Computer Society. doi:10.1109/LICS.2013.28.
- [LS20] Peterย LeFanu Lumsdaine and Michael Shulman. Semantics of higher inductive types. Mathematical Proceedings of the Cambridge Philosophical Society, 169(1):159โ208, 2020. doi:10.1017/S030500411900015X.
- [LW24] Axel Ljungstrรถm and David Wรคrn. The Steenrod Squares in HoTT Revisited. Extended abstract at Workshop on Homotopy Type Theory / Univalent Foundations (HoTT/UF24, 2024. URL: https://hott-uf.github.io/2024/abstracts/HoTTUF_2024_paper_8.pdf.
- [ML75] Per Martin-Lรถf. An Intuitionistic Theory of Types: Predicative Part. In H.ย E. Rose and J.ย C. Shepherdson, editors, Logic Colloquium โ73, volumeย 80 of Studies in Logic and the Foundations of Mathematics, pages 73โ118. North-Holland, 1975. doi:10.1016/S0049-237X(08)71945-1.
- [ML84] Per Martin-Lรถf. Intuitionistic type theory, volumeย 1 of Studies in Proof Theory. Bibliopolis, 1984.
- [MP20] Anders Mรถrtberg and Loรฏc Pujet. Cubical Synthetic Homotopy Theory. In Proceedings of the 9th ACM SIGPLAN International Conference on Certified Programs and Proofs, CPP 2020, pages 158โ171, New York, NY, USA, 2020. Association for Computing Machinery. doi:10.1145/3372885.3373825.
- [Reda] RedPRL Development Team. cooltt. https://www.github.com/RedPRL/cooltt.
- [Redb] RedPRL Development Team. redtt. https://www.github.com/RedPRL/redtt.
- [Shu19] Michael Shulman. All -toposes have strict univalent universes, April 2019. Preprint. URL: https://arxiv.org/abs/1904.07004, arXiv:1904.07004.
- [SK22] Kristina Sojakova and G.ย A. Kavvos. Syllepsis in Homotopy Type Theory. In Proceedings of the 37th Annual ACM/IEEE Symposium on Logic in Computer Science, LICS โ22, New York, NY, USA, 2022. Association for Computing Machinery. doi:10.1145/3531130.3533347.
- [Uni13] The Univalent Foundations Program. Homotopy Type Theory: Univalent Foundations of Mathematics. Self-published, Institute for Advanced Study, 2013. URL: https://homotopytypetheory.org/book/.
- [VMA21] Andrea Vezzosi, Anders Mรถrtberg, and Andreas Abel. Cubical Agda: A Dependently Typed Programming Language with Univalence and Higher Inductive Types. Journal of Functional Programming, 31:e8, 2021. doi:10.1017/S0956796821000034.
- [Voe10a] Vladimir Voevodsky. The equivalence axiom and univalent models of type theory, February 2010. Notes from a talk at Carnegie Mellon University. URL: http://www.math.ias.edu/vladimir/files/CMU_talk.pdf.
- [Voe10b] Vladimir Voevodsky. Univalent foundations, September 2010. Notes from a talk in Bonn. URL: https://www.math.ias.edu/vladimir/sites/math.ias.edu.vladimir/files/Bonn_talk.pdf.
- [Wรคr23] David Wรคrn. Eilenbergโmaclane spaces and stabilisation in homotopy type theory. Journal of Homotopy and Related Structures, 18(2):357โ368, Sep 2023. doi:10.1007/s40062-023-00330-5.