open import Algebra.Prelude open import Cat.Diagram.Colimit.Base open import Cat.Diagram.Limit.Finite open import Cat.Functor.Everything open import Cat.Diagram.Initial open import Cat.Instances.Comma open import Topoi.Base import Cat.Functor.Reasoning as Functor-kit import Cat.Reasoning module Topoi.Classifying.Diaconescu where
Diaconescu’s theorem🔗
Let be a signature consisting of sorts , function symbols , and relation symbols . We can build a logical theory on top of this signature by imposing axioms of the form
where and are formulae, and is a context consisting of variables typed with sorts from the signature. Depending on the signature and on what connectives are used to build up the formulae and , our logical theory can fit within several frameworks:
If our formulae can be presented using only , , and the equality relation , then our logic is called cartesian logic, and our theory a cartesian theory.
Regular logic is obtained by augmenting cartesian logic with the quantifier .
Coherent logic is obtained by augmenting regular logic with disjunction and falsity .
Geometric logic is obtained by augmenting coherent logic with infinitary disjunction .
In addition to the qualifiers above, if our signature has no sorts, then our theory will be called a “propositional theory”: A theory built up of on a signature with no sorts is called a propositional geometric theory.
Let the contexts of such a theory be denoted by — we see that the entailment relation equips the objects of with a preorder structure, with the conjunctions providing meets and the (infinitary) disjunctions providing joins. Additionally, in this proset, the distributive law
holds. We call such a structure a frame, and we can see that that a frame determines a topological space , by letting the opens of the topology be the elements of the frame (the points come for free as filters satisfying a certain condition). This space can be called the classifying space of the theory , since points of correspond to models of , and the specialisation preorder on corresponds to homomorphism of models.
If our theory is not propositional, however, a topological space won’t cut it, since there can be more than one homomorphism between two given models! Most geometric theories (the theory of groups, the theory of (local) rings, the theory of fields, the theory of an object) are not propositional, so they won’t have useful classifying spaces in this sense. If we relax the requirement that specialisation be a preorder and allow a set of model homomorphisms, the structure we get is a category satisfying certain completeness and exactness properties:
The meets our frame used to have are now finite limits, and the infinitary disjunctions are colimits; The infinite distributive law corresponds to the statement that the pullback functors preserve colimits, which follows from the pullback functors having right adjoints (i.e. the category is locally cartesian closed). Up to a couple of small omissions1, a category satisfying these assumptions is exactly a Grothendieck topos, and every topos classifies a particular theory, in the sense that, letting and be topoi, a geometric morphism is equivalent to an -model in .
That begs a question: What theory do presheaf topoi classify? Most presheaf topoi (e.g. the topos of quivers, the topos of simplicial sets, the topos of sets) are very far from being logically inspired: Most of those are conceived as being categories of geometric objects! The answer is given by Diaconescu’s theorem:
A presheaf topos classifies the flat functors on its site.
A flat functor is one whose left Kan extension along the Yoneda embedding (i.e. its realisation) is left exact. The theorem is almost tautological then: Letting be a functor, the nerve-realisation adjunction is 75% of the way to being a geometric morphism, with flatness definitionally guaranteeing that the left adjoint is lex.
Flat : {D : Precategory κ κ} → Functor D C → Type _ Flat F = is-lex (Realisation colim F) Diaconescu : {D : Precategory κ κ} (F : Functor D C) → Flat F → Geom[ C , PSh κ D ] Inv[ Diaconescu F F-flat ] = Realisation colim F Dir[ Diaconescu F F-flat ] = Nerve F Diaconescu F F-flat .Inv-lex = F-flat Diaconescu F F-flat .Inv⊣Dir = Realisation⊣Nerve colim F
Conversely, any given geometric morphism has an inverse image , which we can turn into a functor by precomposing with the Yoneda embedding:
Diaconescu⁻¹ : ∀ {D : Precategory κ κ} → Geom[ C , PSh κ D ] → Functor D C Diaconescu⁻¹ f = Inv[ f ] F∘ よ _
A standard fact about the computation of left Kan extensions as colimits tells us that any functor (flat or not) can be recovered as the composite , because is a fully faithful functor.
Diaconescu-invl : Diaconescu⁻¹ (Diaconescu F flat) DC.≅ F Diaconescu-invl = ff-lan-ext colim F (よ D) (よ-is-fully-faithful D)