Proof Assistant Projects
Collection
Digesting proof assistant libraries for AI ingestion. • 103 items • Updated • 3
statement stringlengths 9 7.99k | proof stringlengths 0 12.1k | type stringclasses 3
values | symbolic_name stringlengths 1 37 | library stringclasses 115
values | filename stringlengths 20 89 | imports listlengths 2 31 | deps listlengths 0 28 | docstring stringclasses 1
value | source_url stringclasses 1
value | commit stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|
2-Category : (o ℓ e t : Level) → Set (suc (o ⊔ ℓ ⊔ e ⊔ t)) | 2-Category o ℓ e t = Category (Product.Cats-Monoidal {o} {ℓ} {e}) t | function | 2-Category | Categories | src/Categories/2-Category.agda | [
"Level",
"Categories.Category.Monoidal.Instance.StrictCats",
"Categories.Enriched.Category"
] | [
"Category"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
2-Functor : ∀ {o ℓ e c d} →
2-Category o ℓ e c → 2-Category o ℓ e d → Set (o ⊔ ℓ ⊔ e ⊔ c ⊔ d) | 2-Functor C D = Functor (Product.Cats-Monoidal) C D | function | 2-Functor | Categories | src/Categories/2-Functor.agda | [
"Level",
"Categories.Category.Monoidal.Instance.StrictCats",
"Categories.2-Category",
"Categories.Enriched.Functor"
] | [
"2-Category",
"Functor"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
Adjoint (L : Functor C D) (R : Functor D C) : Set (levelOfTerm L ⊔ levelOfTerm R) where
private
module C = Category C
module D = Category D
module L = Functor L
module R = Functor R
field
unit : NaturalTransformation idF (R ∘F L)
counit : NaturalTransformation (L ∘F R) idF
module unit ... | record | Adjoint | Categories | src/Categories/Adjoint.agda | [
"Level",
"Data.Product",
"Function",
"Function.Bundles",
"Relation.Binary",
"Relation.Binary.PropositionalEquality",
"Categories.Category.Core",
"Categories.Category.Product",
"Categories.Category.Instance.Setoids",
"Categories.Functor",
"Categories.Functor.Bifunctor",
"Categories.Functor.Hom"... | [
"Bifunctor",
"Category",
"Functor",
"Hom[",
"Inverse",
"LiftSetoids",
"NaturalIsomorphism",
"NaturalTransformation",
"Setoids",
"assoc",
"ntHelper",
"op"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | ||
⊣-id : idF {C = C} ⊣ idF {C = C} | ⊣-id {C = C} = record
{ unit = F⇐G unitorˡ
; counit = F⇒G unitorʳ
; zig = identityˡ
; zag = identityʳ
}
where open Category C
open NaturalIsomorphism | function | ⊣-id | Categories | src/Categories/Adjoint.agda | [
"Level",
"Data.Product",
"Function",
"Function.Bundles",
"Relation.Binary",
"Relation.Binary.PropositionalEquality",
"Categories.Category.Core",
"Categories.Category.Product",
"Categories.Category.Instance.Setoids",
"Categories.Functor",
"Categories.Functor.Bifunctor",
"Categories.Functor.Hom"... | [
"Category",
"NaturalIsomorphism",
"identityʳ",
"identityˡ",
"unitorʳ",
"unitorˡ"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
op-involutive : ∀ {C : Category o ℓ e} {D : Category o′ ℓ′ e′} {L : Functor C D} {R : Functor D C} (L⊣R : L ⊣ R) →
Adjoint.op (Adjoint.op L⊣R) ≡ L⊣R | op-involutive _ = ≡.refl | function | op-involutive | Categories | src/Categories/Adjoint.agda | [
"Level",
"Data.Product",
"Function",
"Function.Bundles",
"Relation.Binary",
"Relation.Binary.PropositionalEquality",
"Categories.Category.Core",
"Categories.Category.Product",
"Categories.Category.Instance.Setoids",
"Categories.Functor",
"Categories.Functor.Bifunctor",
"Categories.Functor.Hom"... | [
"Category",
"Functor"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
_⊣_ = Adjoint | function | _⊣_ | Categories | src/Categories/Adjoint.agda | [
"Level",
"Data.Product",
"Function",
"Function.Bundles",
"Relation.Binary",
"Relation.Binary.PropositionalEquality",
"Categories.Category.Core",
"Categories.Category.Product",
"Categories.Category.Instance.Setoids",
"Categories.Functor",
"Categories.Functor.Bifunctor",
"Categories.Functor.Hom"... | [
"Adjoint"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | ||
Bicategory o ℓ e t : Set (suc (o ⊔ ℓ ⊔ e ⊔ t)) where
field
enriched : Enriched (Product.Cats-Monoidal {o} {ℓ} {e}) t
open Enriched enriched public
module hom {A B} = Category (hom A B)
module ComHom {A B} = Commutation (hom A B)
infix 4 _⇒₁_ _⇒₂_ _≈_
infixr 7 _∘ᵥ_ _∘₁_
infixr 9 _▷_
infixl 9 _◁_
... | record | Bicategory | Categories | src/Categories/Bicategory.agda | [
"Level",
"Data.Product",
"Relation.Binary",
"Categories.Category",
"Categories.Category.Monoidal.Instance.Cats",
"Categories.Enriched.Category",
"Categories.Functor",
"Categories.NaturalTransformation.NaturalIsomorphism"
] | [
"Category",
"_∘ᵥ_",
"_∘ₕ_",
"_≈_",
"id",
"pentagon",
"triangle",
"α⇒",
"λ⇒",
"ρ⇒"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | ||
_[_,_] : (C : Category o ℓ e) → (X : Category.Obj C) → (Y : Category.Obj C) → Set ℓ | _[_,_] = Category._⇒_ | function | _[_,_] | Categories | src/Categories/Category.agda | [
"Level",
"Categories.Category.Core"
] | [
"Category"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
_[_≈_] : (C : Category o ℓ e) → ∀ {X Y} (f g : C [ X , Y ]) → Set e | _[_≈_] = Category._≈_ | function | _[_≈_] | Categories | src/Categories/Category.agda | [
"Level",
"Categories.Category.Core"
] | [
"Category"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
_[_∘_] : (C : Category o ℓ e) → ∀ {X Y Z} (f : C [ Y , Z ]) → (g : C [ X , Y ]) → C [ X , Z ] | _[_∘_] = Category._∘_ | function | _[_∘_] | Categories | src/Categories/Category.agda | [
"Level",
"Categories.Category.Core"
] | [
"Category"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
Comonad {o ℓ e} (C : Category o ℓ e) : Set (o ⊔ ℓ ⊔ e) where
field
F : Endofunctor C
ε : NaturalTransformation F idF
δ : NaturalTransformation F (F ∘F F)
module F = Functor F
module ε = NaturalTransformation ε
module δ = NaturalTransformation δ
open Category C
open Functor F
field
assoc... | record | Comonad | Categories | src/Categories/Comonad.agda | [
"Level",
"Categories.Category",
"Categories.Functor",
"Categories.NaturalTransformation",
"Categories.NaturalTransformation.NaturalIsomorphism",
"Categories.NaturalTransformation.Equivalence"
] | [
"Category",
"Endofunctor",
"Functor",
"NaturalTransformation",
"assoc",
"id",
"identityʳ",
"identityˡ"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | ||
Endofunctor : Category o ℓ e → Set _ | Endofunctor C = Functor C C | function | Endofunctor | Categories | src/Categories/Functor.agda | [
"Level",
"Function",
"Categories.Category",
"Categories.Functor.Core"
] | [
"Category",
"Functor"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
id : ∀ {C : Category o ℓ e} → Functor C C | id {C = C} = record
{ F₀ = id→
; F₁ = id→
; identity = Category.Equiv.refl C
; homomorphism = Category.Equiv.refl C
; F-resp-≈ = id→
} | function | id | Categories | src/Categories/Functor.agda | [
"Level",
"Function",
"Categories.Category",
"Categories.Functor.Core"
] | [
"Category",
"Functor",
"identity"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
_∘F_ : ∀ {C : Category o ℓ e} {D : Category o′ ℓ′ e′} {E : Category o″ ℓ″ e″}
→ Functor D E → Functor C D → Functor C E | _∘F_ {C = C} {D = D} {E = E} F G = record
{ F₀ = F.₀ ● G.₀
; F₁ = F.₁ ● G.₁
; identity = identity′
; homomorphism = homomorphism′
; F-resp-≈ = F.F-resp-≈ ● G.F-resp-≈
}
where
module C = Category C using (id)
module D = Category D using (id)
module E = Category E using (id; module HomReasoning)
mo... | function | _∘F_ | Categories | src/Categories/Functor.agda | [
"Level",
"Function",
"Categories.Category",
"Categories.Functor.Core"
] | [
"Category",
"Functor",
"id",
"identity"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
GlobularSet : (o : Level) → Set (suc o) | GlobularSet o = Presheaf Globe (Sets o)
-- TODO? make universe polymorphic with polymorphic ⊤ | function | GlobularSet | Categories | src/Categories/GlobularSet.agda | [
"Level",
"Data.Unit",
"Relation.Binary.PropositionalEquality",
"Categories.Category",
"Categories.Category.Instance.Globe",
"Categories.Category.Instance.Sets",
"Categories.Functor",
"Categories.Functor.Presheaf"
] | [
"Globe",
"Presheaf",
"Sets"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
Trivial : GlobularSet zero | Trivial = record
{ F₀ = λ _ → ⊤
; F₁ = λ _ x → x
; identity = λ _ → refl
; homomorphism = λ _ → refl
; F-resp-≈ = λ _ _ → refl
} | function | Trivial | Categories | src/Categories/GlobularSet.agda | [
"Level",
"Data.Unit",
"Relation.Binary.PropositionalEquality",
"Categories.Category",
"Categories.Category.Instance.Globe",
"Categories.Category.Instance.Sets",
"Categories.Functor",
"Categories.Functor.Presheaf"
] | [
"GlobularSet",
"identity",
"refl"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
GlobularObject : Category o ℓ e → Set _ | GlobularObject C = Functor (Category.op Globe) C | function | GlobularObject | Categories | src/Categories/GlobularSet.agda | [
"Level",
"Data.Unit",
"Relation.Binary.PropositionalEquality",
"Categories.Category",
"Categories.Category.Instance.Globe",
"Categories.Category.Instance.Sets",
"Categories.Functor",
"Categories.Functor.Presheaf"
] | [
"Category",
"Functor",
"Globe"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
-2-Category : Set (suc (o ⊔ ℓ ⊔ e)) where
field
cat : Category o ℓ e
open Category cat public
open M cat using (_≅_)
field
Obj-Contr : Σ Obj (λ x → (y : Obj) → x ≅ y)
Hom-Conn : {x y : Obj} {f g : x ⇒ y} → f ≈ g | record | -2-Category | Categories | src/Categories/Minus2-Category.agda | [
"Level",
"Categories.Category",
"Data.Product",
"Categories.Morphism"
] | [
"Category",
"_≅_"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | ||
Monad {o ℓ e} (C : Category o ℓ e) : Set (o ⊔ ℓ ⊔ e) where
field
F : Endofunctor C
η : NaturalTransformation idF F
μ : NaturalTransformation (F ∘F F) F
module F = Functor F
module η = NaturalTransformation η
module μ = NaturalTransformation μ
open Category C
open F
field
assoc : ∀ {... | record | Monad | Categories | src/Categories/Monad.agda | [
"Level",
"Categories.Category",
"Categories.Functor",
"Categories.NaturalTransformation",
"Categories.NaturalTransformation.NaturalIsomorphism",
"Categories.NaturalTransformation.Equivalence"
] | [
"Category",
"Endofunctor",
"Functor",
"NaturalTransformation",
"assoc",
"id",
"identityʳ",
"identityˡ"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | ||
_↣_ (A B : Obj) : Set (o ⊔ ℓ ⊔ e) where
field
mor : A ⇒ B
mono : Mono mor | record | _↣_ | Categories | src/Categories/Morphism.agda | [
"Categories.Category.Core",
"Level",
"Relation.Binary",
"Data.Fin",
"Categories.Morphism.Reasoning.Core"
] | [
"Mono",
"mono"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | ||
_↠_ (A B : Obj) : Set (o ⊔ ℓ ⊔ e) where
field
mor : A ⇒ B
epi : Epi mor | record | _↠_ | Categories | src/Categories/Morphism.agda | [
"Categories.Category.Core",
"Level",
"Relation.Binary",
"Data.Fin",
"Categories.Morphism.Reasoning.Core"
] | [
"Epi",
"epi"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | ||
Retract (X U : Obj) : Set (ℓ ⊔ e) where
field
section : X ⇒ U
retract : U ⇒ X
is-retract : retract ∘ section ≈ id | record | Retract | Categories | src/Categories/Morphism.agda | [
"Categories.Category.Core",
"Level",
"Relation.Binary",
"Data.Fin",
"Categories.Morphism.Reasoning.Core"
] | [
"id"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | ||
Iso (from : A ⇒ B) (to : B ⇒ A) : Set e where
field
isoˡ : to ∘ from ≈ id
isoʳ : from ∘ to ≈ id
-- We often say that a morphism "is an iso" if there exists some inverse to it.
-- This does buck the naming convention we use somewhat, but it lines up
-- better with the literature. | record | Iso | Categories | src/Categories/Morphism.agda | [
"Categories.Category.Core",
"Level",
"Relation.Binary",
"Data.Fin",
"Categories.Morphism.Reasoning.Core"
] | [
"id"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | ||
IsIso (from : A ⇒ B) : Set (ℓ ⊔ e) where
field
inv : B ⇒ A
iso : Iso from inv
open Iso iso public | record | IsIso | Categories | src/Categories/Morphism.agda | [
"Categories.Category.Core",
"Level",
"Relation.Binary",
"Data.Fin",
"Categories.Morphism.Reasoning.Core"
] | [
"Iso"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | ||
_≅_ (A B : Obj) : Set (ℓ ⊔ e) where
field
from : A ⇒ B
to : B ⇒ A
iso : Iso from to
open Iso iso public
-- don't pollute the name space too much | record | _≅_ | Categories | src/Categories/Morphism.agda | [
"Categories.Category.Core",
"Level",
"Relation.Binary",
"Data.Fin",
"Categories.Morphism.Reasoning.Core"
] | [
"Iso"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | ||
Mono : ∀ (f : A ⇒ B) → Set (o ⊔ ℓ ⊔ e) | Mono {A = A} f = ∀ {C} → (g₁ g₂ : C ⇒ A) → f ∘ g₁ ≈ f ∘ g₂ → g₁ ≈ g₂ | function | Mono | Categories | src/Categories/Morphism.agda | [
"Categories.Category.Core",
"Level",
"Relation.Binary",
"Data.Fin",
"Categories.Morphism.Reasoning.Core"
] | [] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
JointMono : {ι : Level} (I : Set ι) (B : I → Obj) → ((i : I) → A ⇒ B i) → Set (o ⊔ ℓ ⊔ e ⊔ ι) | JointMono {A} I B f = ∀ {C} → (g₁ g₂ : C ⇒ A) → ((i : I) → f i ∘ g₁ ≈ f i ∘ g₂) → g₁ ≈ g₂ | function | JointMono | Categories | src/Categories/Morphism.agda | [
"Categories.Category.Core",
"Level",
"Relation.Binary",
"Data.Fin",
"Categories.Morphism.Reasoning.Core"
] | [] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
JointMono₂ : (f : A ⇒ B) (g : A ⇒ C) → Set (o ⊔ ℓ ⊔ e) | JointMono₂ {A}{B}{C} f g = JointMono (Fin 2) (λ{zero → B; (nzero _) → C}) (λ{zero → f; (nzero _) → g}) | function | JointMono₂ | Categories | src/Categories/Morphism.agda | [
"Categories.Category.Core",
"Level",
"Relation.Binary",
"Data.Fin",
"Categories.Morphism.Reasoning.Core"
] | [
"Fin",
"JointMono"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
Epi : ∀ (f : A ⇒ B) → Set (o ⊔ ℓ ⊔ e) | Epi {B = B} f = ∀ {C} → (g₁ g₂ : B ⇒ C) → g₁ ∘ f ≈ g₂ ∘ f → g₁ ≈ g₂ | function | Epi | Categories | src/Categories/Morphism.agda | [
"Categories.Category.Core",
"Level",
"Relation.Binary",
"Data.Fin",
"Categories.Morphism.Reasoning.Core"
] | [] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
JointEpi : (I : Set) (A : I → Obj) → ((i : I) → A i ⇒ B) → Set (o ⊔ ℓ ⊔ e) | JointEpi {B} I A f = ∀ {C} → (g₁ g₂ : B ⇒ C) → ((i : I) → g₁ ∘ f i ≈ g₂ ∘ f i) → g₁ ≈ g₂ | function | JointEpi | Categories | src/Categories/Morphism.agda | [
"Categories.Category.Core",
"Level",
"Relation.Binary",
"Data.Fin",
"Categories.Morphism.Reasoning.Core"
] | [] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
JointEpi₂ : (f : A ⇒ B) (g : C ⇒ B) → Set (o ⊔ ℓ ⊔ e) | JointEpi₂ {A}{B}{C} f g = JointEpi (Fin 2) (λ{zero → A; (nzero _) → C}) (λ{zero → f; (nzero _) → g}) | function | JointEpi₂ | Categories | src/Categories/Morphism.agda | [
"Categories.Category.Core",
"Level",
"Relation.Binary",
"Data.Fin",
"Categories.Morphism.Reasoning.Core"
] | [
"Fin",
"JointEpi"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
_SectionOf_ : (g : B ⇒ A) (f : A ⇒ B) → Set e | function | _SectionOf_ | Categories | src/Categories/Morphism.agda | [
"Categories.Category.Core",
"Level",
"Relation.Binary",
"Data.Fin",
"Categories.Morphism.Reasoning.Core"
] | [] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | ||
_RetractOf_ : (g : B ⇒ A) (f : A ⇒ B) → Set e | function | _RetractOf_ | Categories | src/Categories/Morphism.agda | [
"Categories.Category.Core",
"Level",
"Relation.Binary",
"Data.Fin",
"Categories.Morphism.Reasoning.Core"
] | [] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | ||
≅-refl : Reflexive _≅_ | ≅-refl = record
{ from = id
; to = id
; iso = record
{ isoˡ = identity²
; isoʳ = identity²
}
} | function | ≅-refl | Categories | src/Categories/Morphism.agda | [
"Categories.Category.Core",
"Level",
"Relation.Binary",
"Data.Fin",
"Categories.Morphism.Reasoning.Core"
] | [
"_≅_",
"id"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
≅-sym : Symmetric _≅_ | ≅-sym A≅B = record
{ from = to
; to = from
; iso = record
{ isoˡ = isoʳ
; isoʳ = isoˡ
}
}
where open _≅_ A≅B | function | ≅-sym | Categories | src/Categories/Morphism.agda | [
"Categories.Category.Core",
"Level",
"Relation.Binary",
"Data.Fin",
"Categories.Morphism.Reasoning.Core"
] | [
"Symmetric",
"_≅_"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
≅-trans : Transitive _≅_ | ≅-trans A≅B B≅C = record
{ from = from B≅C ∘ from A≅B
; to = to A≅B ∘ to B≅C
; iso = record
{ isoˡ = begin
(to A≅B ∘ to B≅C) ∘ from B≅C ∘ from A≅B ≈⟨ cancelInner (isoˡ B≅C) ⟩
to A≅B ∘ from A≅B ≈⟨ isoˡ A≅B ⟩
id ∎
... | function | ≅-trans | Categories | src/Categories/Morphism.agda | [
"Categories.Category.Core",
"Level",
"Relation.Binary",
"Data.Fin",
"Categories.Morphism.Reasoning.Core"
] | [
"_≅_",
"id"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
≅-isEquivalence : IsEquivalence _≅_ | ≅-isEquivalence = record
{ refl = ≅-refl
; sym = ≅-sym
; trans = ≅-trans
}
-- But make accessing it easy: | function | ≅-isEquivalence | Categories | src/Categories/Morphism.agda | [
"Categories.Category.Core",
"Level",
"Relation.Binary",
"Data.Fin",
"Categories.Morphism.Reasoning.Core"
] | [
"_≅_",
"refl",
"sym",
"trans",
"≅-refl",
"≅-sym",
"≅-trans"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
≅-setoid : Setoid _ _ | ≅-setoid = record
{ Carrier = Obj
; _≈_ = _≅_
; isEquivalence = ≅-isEquivalence
} | function | ≅-setoid | Categories | src/Categories/Morphism.agda | [
"Categories.Category.Core",
"Level",
"Relation.Binary",
"Data.Fin",
"Categories.Morphism.Reasoning.Core"
] | [
"_≅_",
"_≈_",
"isEquivalence",
"≅-isEquivalence"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
g SectionOf f = f ∘ g ≈ id | g RetractOf f = g ∘ f ≈ id | function | g | Categories | src/Categories/Morphism.agda | [
"Categories.Category.Core",
"Level",
"Relation.Binary",
"Data.Fin",
"Categories.Morphism.Reasoning.Core"
] | [
"id"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
Pseudofunctor : Set (o ⊔ ℓ ⊔ e ⊔ t ⊔ o′ ⊔ ℓ′ ⊔ e′ ⊔ t′) where
field
P₀ : C.Obj → D.Obj
P₁ : {x y : C.Obj} → Functor (C.hom x y) (D.hom (P₀ x) (P₀ y))
-- For maximal generality, shift the levels of One. P preserves id
P-identity : {A : C.Obj} → D.id {P₀ A} ∘F shift o′ ℓ′ e′ ≃ P₁ ∘F (C.id {A})
-- ... | record | Pseudofunctor | Categories | src/Categories/Pseudofunctor.agda | [
"Categories.Bicategory",
"Level",
"Data.Product",
"Categories.Bicategory.Extras",
"Categories.Category",
"Categories.Category.Instance.One",
"Categories.Category.Product",
"Categories.Functor",
"Categories.NaturalTransformation",
"Categories.NaturalTransformation.NaturalIsomorphism"
] | [
"Functor",
"NaturalTransformation",
"assoc",
"shift"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | ||
_∘⊣_ : {L : Functor C D} {R : Functor D C} {M : Functor D E} {S : Functor E D} →
L ⊣ R → M ⊣ S → (M ∘F L) ⊣ (R ∘F S) | _∘⊣_ {C = C} {D = D} {E = E} {L = L} {R} {M} {S} LR MS = record
{ unit = ((F⇐G (associator _ S R) ∘ᵥ R ∘ˡ (F⇒G (associator L M S))) ∘ᵥ
(R ∘ˡ (MSη′ ∘ʳ L)) ∘ᵥ (R ∘ˡ (F⇐G unitorˡ))) ∘ᵥ LRη′
; counit = MSε′ ∘ᵥ (((F⇒G (unitorʳ {F = M}) ∘ʳ S) ∘ᵥ ((M ∘ˡ LRε′) ∘ʳ S)) ∘ᵥ
(F⇒G (associator R L M) ∘ʳ ... | function | _∘⊣_ | Categories.Adjoint | src/Categories/Adjoint/Compose.agda | [
"Level",
"Data.Product",
"Function",
"Relation.Binary",
"Categories.Adjoint",
"Categories.Category.Core",
"Categories.Category.Product",
"Categories.Category.Instance.Setoids",
"Categories.Morphism",
"Categories.Functor",
"Categories.Functor.Bifunctor",
"Categories.Functor.Hom",
"Categories.... | [
"Adjoint",
"Category",
"Functor",
"NaturalIsomorphism",
"NaturalTransformation",
"_∘_",
"_≈_",
"_⊚_",
"assoc",
"associator",
"id",
"identity",
"identityʳ",
"identityˡ",
"unitorʳ",
"unitorˡ",
"∘-resp-≈"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
⊣Equivalence (C : Category o ℓ e) (D : Category o′ ℓ′ e′) : Set (o ⊔ ℓ ⊔ e ⊔ o′ ⊔ ℓ′ ⊔ e′) where
field
L : Functor C D
R : Functor D C
L⊣⊢R : L ⊣⊢ R
module L = Functor L
module R = Functor R
open _⊣⊢_ L⊣⊢R public | record | ⊣Equivalence | Categories.Adjoint | src/Categories/Adjoint/Equivalence.agda | [
"Level",
"Categories.Adjoint",
"Categories.Adjoint.TwoSided",
"Categories.Adjoint.TwoSided.Compose",
"Categories.Category.Core",
"Categories.Functor",
"Categories.NaturalTransformation.NaturalIsomorphism",
"Relation.Binary"
] | [
"Category",
"Functor",
"_⊣⊢_"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | ||
refl : ⊣Equivalence C C | refl = record
{ L = idF
; R = idF
; L⊣⊢R = id⊣⊢id
} | function | refl | Categories.Adjoint | src/Categories/Adjoint/Equivalence.agda | [
"Level",
"Categories.Adjoint",
"Categories.Adjoint.TwoSided",
"Categories.Adjoint.TwoSided.Compose",
"Categories.Category.Core",
"Categories.Functor",
"Categories.NaturalTransformation.NaturalIsomorphism",
"Relation.Binary"
] | [
"id⊣⊢id",
"⊣Equivalence"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
sym : ⊣Equivalence C D → ⊣Equivalence D C | sym e = record
{ L = R
; R = L
; L⊣⊢R = op₂
}
where open ⊣Equivalence e | function | sym | Categories.Adjoint | src/Categories/Adjoint/Equivalence.agda | [
"Level",
"Categories.Adjoint",
"Categories.Adjoint.TwoSided",
"Categories.Adjoint.TwoSided.Compose",
"Categories.Category.Core",
"Categories.Functor",
"Categories.NaturalTransformation.NaturalIsomorphism",
"Relation.Binary"
] | [
"⊣Equivalence"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
trans : ⊣Equivalence C D → ⊣Equivalence D E → ⊣Equivalence C E | trans e e′ = record
{ L = e′.L ∘F e.L
; R = e.R ∘F e′.R
; L⊣⊢R = e.L⊣⊢R ∘⊣⊢ e′.L⊣⊢R
}
where module e = ⊣Equivalence e using (L; R; L⊣⊢R)
module e′ = ⊣Equivalence e′ using (L; R; L⊣⊢R) | function | trans | Categories.Adjoint | src/Categories/Adjoint/Equivalence.agda | [
"Level",
"Categories.Adjoint",
"Categories.Adjoint.TwoSided",
"Categories.Adjoint.TwoSided.Compose",
"Categories.Category.Core",
"Categories.Functor",
"Categories.NaturalTransformation.NaturalIsomorphism",
"Relation.Binary"
] | [
"⊣Equivalence"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
isEquivalence : ∀ {o ℓ e} → IsEquivalence (⊣Equivalence {o} {ℓ} {e}) | isEquivalence = record
{ refl = refl
; sym = sym
; trans = trans
} | function | isEquivalence | Categories.Adjoint | src/Categories/Adjoint/Equivalence.agda | [
"Level",
"Categories.Adjoint",
"Categories.Adjoint.TwoSided",
"Categories.Adjoint.TwoSided.Compose",
"Categories.Category.Core",
"Categories.Functor",
"Categories.NaturalTransformation.NaturalIsomorphism",
"Relation.Binary"
] | [
"refl",
"sym",
"trans",
"⊣Equivalence"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
setoid : ∀ o ℓ e → Setoid _ _ | setoid o ℓ e = record
{ Carrier = Category o ℓ e
; _≈_ = ⊣Equivalence
; isEquivalence = isEquivalence
} | function | setoid | Categories.Adjoint | src/Categories/Adjoint/Equivalence.agda | [
"Level",
"Categories.Adjoint",
"Categories.Adjoint.TwoSided",
"Categories.Adjoint.TwoSided.Compose",
"Categories.Category.Core",
"Categories.Functor",
"Categories.NaturalTransformation.NaturalIsomorphism",
"Relation.Binary"
] | [
"Category",
"_≈_",
"isEquivalence",
"⊣Equivalence"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
Mate {L : Functor C D}
(L⊣R : L ⊣ R) (L′⊣R′ : L′ ⊣ R′)
(α : NaturalTransformation L L′)
(β : NaturalTransformation R′ R) : Set (levelOfTerm L⊣R ⊔ levelOfTerm L′⊣R′) where
private
module L⊣R = Adjoint L⊣R
module L′⊣R′ = Adjoint L′⊣R′
module C = Category C
module D ... | record | Mate | Categories.Adjoint | src/Categories/Adjoint/Mate.agda | [
"Level",
"Data.Product",
"Function.Bundles",
"Function.Construct.Composition",
"Function.Construct.Setoid",
"Relation.Binary",
"Categories.Category",
"Categories.Category.Instance.Setoids",
"Categories.Functor",
"Categories.Functor.Hom",
"Categories.NaturalTransformation",
"Categories.NaturalT... | [
"Adjoint",
"Category",
"Functor",
"NaturalTransformation"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | ||
HaveMate {L L′ : Functor C D} {R R′ : Functor D C}
(L⊣R : L ⊣ R) (L′⊣R′ : L′ ⊣ R′) : Set (levelOfTerm L⊣R ⊔ levelOfTerm L′⊣R′) where
field
α : NaturalTransformation L L′
β : NaturalTransformation R′ R
mate : Mate L⊣R L′⊣R′ α β
module α = NaturalTransformation α
module β = Natura... | record | HaveMate | Categories.Adjoint | src/Categories/Adjoint/Mate.agda | [
"Level",
"Data.Product",
"Function.Bundles",
"Function.Construct.Composition",
"Function.Construct.Setoid",
"Relation.Binary",
"Categories.Category",
"Categories.Category.Instance.Setoids",
"Categories.Functor",
"Categories.Functor.Hom",
"Categories.NaturalTransformation",
"Categories.NaturalT... | [
"Functor",
"Mate",
"NaturalTransformation"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | ||
IsMonadicAdjunction {L : Functor 𝒞 𝒟} {R : Functor 𝒟 𝒞} (adjoint : L ⊣ R) : Set (levelOfTerm 𝒞 ⊔ levelOfTerm 𝒟) where
private
T : Monad 𝒞
T = adjoint⇒monad adjoint
field
Comparison⁻¹ : Functor (EilenbergMoore T) 𝒟
comparison-equiv : WeakInverse (ComparisonF adjoint) Comparison⁻¹ | record | IsMonadicAdjunction | Categories.Adjoint | src/Categories/Adjoint/Monadic.agda | [
"Level",
"Categories.Adjoint",
"Categories.Adjoint.Properties",
"Categories.Category",
"Categories.Category.Equivalence",
"Categories.Functor",
"Categories.Monad",
"Categories.Category.Construction.EilenbergMoore",
"Categories.Category.Construction.Properties.EilenbergMoore"
] | [
"EilenbergMoore",
"Functor",
"Monad",
"WeakInverse"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | ||
ParametricAdjoint {C D E : Category o ℓ e} (L : Functor C (Functors D E)) (R : Functor (Category.op C) (Functors E D)) : Set (o ⊔ ℓ ⊔ e) where
private
module C = Category C
module D = Category D
module E = Category E
module L = Functor L
module R = Functor R
-- use double letters whenever we r... | record | ParametricAdjoint | Categories.Adjoint | src/Categories/Adjoint/Parametric.agda | [
"Level",
"Data.Product",
"Function.Bundles",
"Function.Properties.Inverse",
"Categories.Category.Core",
"Categories.Functor",
"Categories.Adjoint",
"Categories.Category.Construction.Functors",
"Categories.Diagram.Cowedge",
"Categories.NaturalTransformation.Dinatural",
"Categories.Functor.Bifunct... | [
"Adjoint",
"Bifunctor",
"Category",
"Cowedge",
"Functor",
"Functors",
"dtHelper",
"identity"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | ||
ra-preserves-diagram : {L : Functor J K} {R : Functor K J} (L⊣R : L ⊣ R) {F : Functor J C} → Colimit F → Colimit (F ∘F R) | ra-preserves-diagram L⊣R colim = Duality.coLimit⇒Colimit _ (la-preserves-diagram (Adjoint.op L⊣R) (Duality.Colimit⇒coLimit _ colim))
-- adjoint functors induce monads and comonads | function | ra-preserves-diagram | Categories.Adjoint | src/Categories/Adjoint/Properties.agda | [
"Level",
"Data.Product",
"Function.Base",
"Categories.Adjoint",
"Categories.Adjoint.Equivalents",
"Categories.Adjoint.RAPL",
"Categories.Category",
"Categories.Category.Product",
"Categories.Category.Construction.Comma",
"Categories.Diagram.Cone",
"Categories.Diagram.Cone.Properties",
"Categor... | [
"Colimit",
"Functor"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
RelativeAdjoint {C : Category o ℓ e} (D : Category o ℓ e) (J : Functor E C) : Set (levelOfTerm D ⊔ levelOfTerm J) where
field
L : Functor E D
R : Functor D C
private
module C = Category C
module D = Category D
module E = Category E
module L = Functor L
module R = Functor R
module J... | record | RelativeAdjoint | Categories.Adjoint | src/Categories/Adjoint/Relative.agda | [
"Level",
"Data.Product",
"Function",
"Function.Bundles",
"Relation.Binary",
"Categories.Adjoint",
"Categories.Category.Core",
"Categories.Category.Product",
"Categories.Category.Instance.Setoids",
"Categories.Functor",
"Categories.Functor.Bifunctor",
"Categories.Functor.Hom",
"Categories.Nat... | [
"Bifunctor",
"Category",
"Functor",
"Hom[",
"NaturalIsomorphism",
"Setoids"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | ||
RA⇒RMonad : {C D : Category o ℓ e} {E : Category o′ ℓ′ e′} {J : Functor E C} → RelativeAdjoint D J → RMonad J | RA⇒RMonad {C = C} {D} {E} {J} RA = record
{ F₀ = F₀ (R ∘F L)
; unit = λ {c} → ⇐.η (c , F₀ L c) ⟨$⟩ D.id {F₀ L c}
; extend = λ {X} {Y} k → F₁ R (⇒.η (X , F₀ L Y) ⟨$⟩ k)
; identityʳ = idʳ
; identityˡ = R.F-resp-≈ (iso.isoʳ _) ○ R.identity
; assoc = a
; sym-assoc = sym a
; extend-≈ = λ k≈h → F-resp-≈ R (Fu... | function | RA⇒RMonad | Categories.Adjoint | src/Categories/Adjoint/Relative.agda | [
"Level",
"Data.Product",
"Function",
"Function.Bundles",
"Relation.Binary",
"Categories.Adjoint",
"Categories.Category.Core",
"Categories.Category.Product",
"Categories.Category.Instance.Setoids",
"Categories.Functor",
"Categories.Functor.Bifunctor",
"Categories.Functor.Hom",
"Categories.Nat... | [
"Category",
"Functor",
"NaturalIsomorphism",
"RelativeAdjoint",
"assoc",
"identityʳ",
"identityˡ",
"sym"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
⊣⇒RAdjoint : {C D : Category o ℓ e} {E : Category o′ ℓ′ e′} (L : Functor C D) (R : Functor D C) (J : Functor E C) → L ⊣ R → RelativeAdjoint D J | ⊣⇒RAdjoint {C = C} {D} L R J A = record
{ L = L ∘F J
; R = R
; Hom-NI = record
{ F⇒G = ntHelper record
{ η = λ _ → record { to = Radjunct ; cong = ∘-resp-≈ʳ ∙ L.F-resp-≈ }
; commute = λ _ → Radjunct-comm C.Equiv.refl
}
; F⇐G = ntHelper record
{ η = λ _ → record { to = Ladjunct ; co... | function | ⊣⇒RAdjoint | Categories.Adjoint | src/Categories/Adjoint/Relative.agda | [
"Level",
"Data.Product",
"Function",
"Function.Bundles",
"Relation.Binary",
"Categories.Adjoint",
"Categories.Category.Core",
"Categories.Category.Product",
"Categories.Category.Instance.Setoids",
"Categories.Functor",
"Categories.Functor.Bifunctor",
"Categories.Functor.Hom",
"Categories.Nat... | [
"Adjoint",
"Category",
"Functor",
"RelativeAdjoint",
"ntHelper"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
_⊣⊢_ (L : Functor C D) (R : Functor D C) : Set (levelOfTerm L ⊔ levelOfTerm R) where
field
unit : idF ≃ (R ∘F L)
counit : (L ∘F R) ≃ idF
module unit = NaturalIsomorphism unit
module counit = NaturalIsomorphism counit
private
module C = Category C using (Obj; id; _∘_; _≈_; module HomReasoning)
... | record | _⊣⊢_ | Categories.Adjoint | src/Categories/Adjoint/TwoSided.agda | [
"Level",
"Categories.Adjoint",
"Categories.Category.Core",
"Categories.Functor",
"Categories.Functor.Properties",
"Categories.NaturalTransformation",
"Categories.NaturalTransformation.NaturalIsomorphism",
"Categories.NaturalTransformation.NaturalIsomorphism.Properties",
"Categories.Morphism.Reasonin... | [
"Adjoint",
"Category",
"Functor",
"NaturalIsomorphism",
"_∘_",
"_≈_",
"id",
"identity",
"op"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | ||
WithZig (L : Functor C D) (R : Functor D C) : Set (levelOfTerm L ⊔ levelOfTerm R) where
field
unit : idF ≃ (R ∘F L)
counit : (L ∘F R) ≃ idF
private
module unit = NaturalIsomorphism unit
module counit = NaturalIsomorphism counit
module C = Category C using (Obj; id; _∘_; _≈_; m... | record | WithZig | Categories.Adjoint | src/Categories/Adjoint/TwoSided.agda | [
"Level",
"Categories.Adjoint",
"Categories.Category.Core",
"Categories.Functor",
"Categories.Functor.Properties",
"Categories.NaturalTransformation",
"Categories.NaturalTransformation.NaturalIsomorphism",
"Categories.NaturalTransformation.NaturalIsomorphism.Properties",
"Categories.Morphism.Reasonin... | [
"Category",
"Functor",
"NaturalIsomorphism",
"_∘_",
"_≈_",
"id",
"identity",
"op"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | ||
WithZag (L : Functor C D) (R : Functor D C) : Set (levelOfTerm L ⊔ levelOfTerm R) where
field
unit : idF ≃ (R ∘F L)
counit : (L ∘F R) ≃ idF
private
module unit = NaturalIsomorphism unit
module counit = NaturalIsomorphism counit
module C = Category C using (Obj; id; _∘_; _≈_; m... | record | WithZag | Categories.Adjoint | src/Categories/Adjoint/TwoSided.agda | [
"Level",
"Categories.Adjoint",
"Categories.Category.Core",
"Categories.Functor",
"Categories.Functor.Properties",
"Categories.NaturalTransformation",
"Categories.NaturalTransformation.NaturalIsomorphism",
"Categories.NaturalTransformation.NaturalIsomorphism.Properties",
"Categories.Morphism.Reasonin... | [
"Category",
"Functor",
"NaturalIsomorphism",
"_∘_",
"_≈_",
"id",
"identity",
"op"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | ||
id⊣⊢id : idF {C = C} ⊣⊢ idF | id⊣⊢id {C = C} = record
{ unit = ≃.sym ≃.unitor²
; counit = ≃.unitor²
; zig = identity²
; zag = identity²
}
where open Category C | function | id⊣⊢id | Categories.Adjoint | src/Categories/Adjoint/TwoSided.agda | [
"Level",
"Categories.Adjoint",
"Categories.Category.Core",
"Categories.Functor",
"Categories.Functor.Properties",
"Categories.NaturalTransformation",
"Categories.NaturalTransformation.NaturalIsomorphism",
"Categories.NaturalTransformation.NaturalIsomorphism.Properties",
"Categories.Morphism.Reasonin... | [
"Category"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
SolutionSet i : Set (o ⊔ ℓ ⊔ o′ ⊔ ℓ′ ⊔ e′ ⊔ (suc i)) where
field
I : Set i
S : I → C.Obj
S₀ : ∀ {A X} → X ⇒ F₀ A → I
S₁ : ∀ {A X} (f : X ⇒ F₀ A) → S (S₀ f) C.⇒ A
ϕ : ∀ {A X} (f : X ⇒ F₀ A) → X ⇒ F₀ (S (S₀ f))
commute : ∀ {A X} (f : X ⇒ F₀ A) → F₁ (S₁ f) ∘ ϕ f ≈ f | record | SolutionSet | Categories.Adjoint.AFT | src/Categories/Adjoint/AFT/SolutionSet.agda | [
"Categories.Category",
"Categories.Functor",
"Level"
] | [] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | ||
SolutionSet′ : Set (o ⊔ ℓ ⊔ o′ ⊔ ℓ′ ⊔ e′) where
field
S₀ : ∀ {A X} → X ⇒ F₀ A → C.Obj
S₁ : ∀ {A X} (f : X ⇒ F₀ A) → S₀ f C.⇒ A
ϕ : ∀ {A X} (f : X ⇒ F₀ A) → X ⇒ F₀ (S₀ f)
commute : ∀ {A X} (f : X ⇒ F₀ A) → F₁ (S₁ f) ∘ ϕ f ≈ f | record | SolutionSet′ | Categories.Adjoint.AFT | src/Categories/Adjoint/AFT/SolutionSet.agda | [
"Categories.Category",
"Categories.Functor",
"Level"
] | [] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | ||
SolutionSet⇒SolutionSet′ : ∀ {i} → SolutionSet i → SolutionSet′ | SolutionSet⇒SolutionSet′ s = record
{ S₀ = λ f → S (S₀ f)
; S₁ = S₁
; ϕ = ϕ
; commute = commute
}
where open SolutionSet s | function | SolutionSet⇒SolutionSet′ | Categories.Adjoint.AFT | src/Categories/Adjoint/AFT/SolutionSet.agda | [
"Categories.Category",
"Categories.Functor",
"Level"
] | [
"SolutionSet",
"SolutionSet′"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
SolutionSet′⇒SolutionSet : ∀ i → SolutionSet′ → SolutionSet (o ⊔ i) | SolutionSet′⇒SolutionSet i s = record
{ I = Lift i C.Obj
; S = lower
; S₀ = λ f → lift (S₀ f)
; S₁ = S₁
; ϕ = ϕ
; commute = commute
}
where open SolutionSet′ s | function | SolutionSet′⇒SolutionSet | Categories.Adjoint.AFT | src/Categories/Adjoint/AFT/SolutionSet.agda | [
"Categories.Category",
"Categories.Functor",
"Level"
] | [
"SolutionSet",
"SolutionSet′"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
Forgetful : Functor CoEilenbergMoore C | Forgetful = record
{ F₀ = Comodule.A
; F₁ = Comodule⇒.arr
; identity = refl
; homomorphism = refl
; F-resp-≈ = λ eq → eq
} | function | Forgetful | Categories.Adjoint.Construction | src/Categories/Adjoint/Construction/CoEilenbergMoore.agda | [
"Categories.Category.Core",
"Categories.Comonad",
"Categories.Category.Construction.CoEilenbergMoore",
"Categories.Adjoint",
"Categories.Functor",
"Categories.Functor.Properties",
"Categories.NaturalTransformation.NaturalIsomorphism",
"Categories.NaturalTransformation.Core",
"Categories.NaturalTrans... | [
"CoEilenbergMoore",
"Functor",
"identity",
"refl"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
Cofree : Functor C CoEilenbergMoore | Cofree = record
{ F₀ = λ A → record
{ A = F₀ A
; coaction = M.δ.η A
; commute = M.sym-assoc
; identity = Comonad.identityʳ M
}
; F₁ = λ f → record
{ arr = F₁ f
; commute = M.δ.commute f
}
; identity = identity
; homomorphism = homomorphism
; F-resp-≈ = F-resp-≈
} | function | Cofree | Categories.Adjoint.Construction | src/Categories/Adjoint/Construction/CoEilenbergMoore.agda | [
"Categories.Category.Core",
"Categories.Comonad",
"Categories.Category.Construction.CoEilenbergMoore",
"Categories.Adjoint",
"Categories.Functor",
"Categories.Functor.Properties",
"Categories.NaturalTransformation.NaturalIsomorphism",
"Categories.NaturalTransformation.Core",
"Categories.NaturalTrans... | [
"CoEilenbergMoore",
"Functor",
"identity"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
UC≃M : Forgetful ∘F Cofree ≃ M.F | UC≃M = niHelper (record
{ η = λ _ → F₁ C.id
; η⁻¹ = λ _ → F₁ C.id
; commute = λ f → [ M.F ]-resp-square id-comm-sym
; iso = λ _ → record
{ isoˡ = elimˡ identity ○ identity
; isoʳ = elimˡ identity ○ identity
}
}) | function | UC≃M | Categories.Adjoint.Construction | src/Categories/Adjoint/Construction/CoEilenbergMoore.agda | [
"Categories.Category.Core",
"Categories.Comonad",
"Categories.Category.Construction.CoEilenbergMoore",
"Categories.Adjoint",
"Categories.Functor",
"Categories.Functor.Properties",
"Categories.NaturalTransformation.NaturalIsomorphism",
"Categories.NaturalTransformation.Core",
"Categories.NaturalTrans... | [
"Cofree",
"Forgetful",
"identity",
"niHelper"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
Forgetful⊣Cofree : Forgetful ⊣ Cofree | Forgetful⊣Cofree = record
{ unit = record
{ η = λ X → let module X = Comodule X
in record
{ arr = X.coaction
; commute = ⟺ X.commute
}
; commute = Comodule⇒.commute
; sym-commute = λ f → ⟺ (Comodule⇒.commute f)
}
; counit = record
{ η = M.ε.η
; commute = M.ε.commute
; s... | function | Forgetful⊣Cofree | Categories.Adjoint.Construction | src/Categories/Adjoint/Construction/CoEilenbergMoore.agda | [
"Categories.Category.Core",
"Categories.Comonad",
"Categories.Category.Construction.CoEilenbergMoore",
"Categories.Adjoint",
"Categories.Functor",
"Categories.Functor.Properties",
"Categories.NaturalTransformation.NaturalIsomorphism",
"Categories.NaturalTransformation.Core",
"Categories.NaturalTrans... | [
"Cofree",
"Comodule",
"Forgetful"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
Forgetful : Functor (CoKleisli M) C | Forgetful =
record
{ F₀ = λ X → F₀ X
; F₁ = λ f → F₁ f ∘ M.δ.η _
; identity = Comonad.identityˡ M
; homomorphism = λ {X Y Z} {f g} → hom-proof {X} {Y} {Z} {f} {g}
; F-resp-≈ = λ eq → ∘-resp-≈ˡ (F-resp-≈ eq)
}
where
trihom : {X Y Z W : Obj} {f : X ⇒ Y} {g : Y ⇒ Z} {h : Z ⇒ W}... | function | Forgetful | Categories.Adjoint.Construction | src/Categories/Adjoint/Construction/CoKleisli.agda | [
"Categories.Category.Core",
"Categories.Comonad",
"Categories.Category.Construction.CoKleisli",
"Categories.Adjoint",
"Categories.Functor",
"Categories.Functor.Properties",
"Categories.NaturalTransformation.Core",
"Categories.NaturalTransformation.NaturalIsomorphism",
"Categories.Morphism.Reasoning"... | [
"CoKleisli",
"Functor",
"identity",
"sym"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
Cofree : Functor C (CoKleisli M) | Cofree =
record
{ F₀ = λ X → X
; F₁ = λ f → f ∘ M.ε.η _
; identity = λ {A} → identityˡ
; homomorphism = λ {X Y Z} {f g} → hom-proof {X} {Y} {Z} {f} {g}
; F-resp-≈ = λ x → ∘-resp-≈ˡ x
}
where
hom-proof :
{X Y Z : Obj} {f : X ⇒ Y} {g : Y ⇒ Z} →
(g ∘ f) ∘ M.ε.η X ≈ (g ∘ M.ε.η Y) ∘ (F₁ (f ∘ M.ε.η X) ... | function | Cofree | Categories.Adjoint.Construction | src/Categories/Adjoint/Construction/CoKleisli.agda | [
"Categories.Category.Core",
"Categories.Comonad",
"Categories.Category.Construction.CoKleisli",
"Categories.Adjoint",
"Categories.Functor",
"Categories.Functor.Properties",
"Categories.NaturalTransformation.Core",
"Categories.NaturalTransformation.NaturalIsomorphism",
"Categories.Morphism.Reasoning"... | [
"CoKleisli",
"Functor",
"identity",
"identityˡ",
"sym"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
FC≃M : Forgetful ∘F Cofree ≃ M.F | FC≃M =
record
{ F⇒G = ntHelper record
{ η = λ X → F₁ C.id
; commute = λ {X Y} f → to-commute {X} {Y} f
}
; F⇐G = ntHelper record
{ η = λ X → F₁ C.id
; commute = λ {X Y} f → from-commute {X} {Y} f
}
; iso = λ X → record
{ isoˡ = elimʳ identity ○ identity
; isoʳ = elimʳ identity ○ i... | function | FC≃M | Categories.Adjoint.Construction | src/Categories/Adjoint/Construction/CoKleisli.agda | [
"Categories.Category.Core",
"Categories.Comonad",
"Categories.Category.Construction.CoKleisli",
"Categories.Adjoint",
"Categories.Functor",
"Categories.Functor.Properties",
"Categories.NaturalTransformation.Core",
"Categories.NaturalTransformation.NaturalIsomorphism",
"Categories.Morphism.Reasoning"... | [
"Cofree",
"Forgetful",
"identity",
"ntHelper",
"sym"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
FF1≈1 : {X : Obj} → F₁ (F₁ (C.id {X})) ≈ C.id | FF1≈1 {X} = begin
F₁ (F₁ (C.id {X})) ≈⟨ F-resp-≈ identity ⟩
F₁ (C.id) ≈⟨ identity ⟩
C.id ∎ | function | FF1≈1 | Categories.Adjoint.Construction | src/Categories/Adjoint/Construction/CoKleisli.agda | [
"Categories.Category.Core",
"Categories.Comonad",
"Categories.Category.Construction.CoKleisli",
"Categories.Adjoint",
"Categories.Functor",
"Categories.Functor.Properties",
"Categories.NaturalTransformation.Core",
"Categories.NaturalTransformation.NaturalIsomorphism",
"Categories.Morphism.Reasoning"... | [
"identity"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
Forgetful⊣Cofree : Forgetful ⊣ Cofree | Forgetful⊣Cofree =
record
{ unit = ntHelper record
{ η = λ X → F₁ C.id
; commute = λ {X Y} f → unit-commute {X} {Y} f
}
; counit = ntHelper record
{ η = M.ε.η
; commute = λ {X Y} f → counit-commute {X} {Y} f
}
; zig = λ {A} → zig-proof {A}
; zag = λ {B} → zag-proof {B}
}
where
uni... | function | Forgetful⊣Cofree | Categories.Adjoint.Construction | src/Categories/Adjoint/Construction/CoKleisli.agda | [
"Categories.Category.Core",
"Categories.Comonad",
"Categories.Category.Construction.CoKleisli",
"Categories.Adjoint",
"Categories.Functor",
"Categories.Functor.Properties",
"Categories.NaturalTransformation.Core",
"Categories.NaturalTransformation.NaturalIsomorphism",
"Categories.Morphism.Reasoning"... | [
"Cofree",
"FF1≈1",
"Forgetful",
"assoc",
"identity",
"ntHelper",
"sym"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
Forgetful : Functor EilenbergMoore C | Forgetful = record
{ F₀ = Module.A
; F₁ = Module⇒.arr
; identity = refl
; homomorphism = refl
; F-resp-≈ = λ eq → eq
} | function | Forgetful | Categories.Adjoint.Construction | src/Categories/Adjoint/Construction/EilenbergMoore.agda | [
"Categories.Category.Core",
"Categories.Monad",
"Categories.Category.Construction.EilenbergMoore",
"Categories.Adjoint",
"Categories.Functor",
"Categories.Functor.Properties",
"Categories.NaturalTransformation.Core",
"Categories.NaturalTransformation.NaturalIsomorphism",
"Categories.Morphism.Reasoni... | [
"EilenbergMoore",
"Functor",
"identity",
"refl"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
Free : Functor C EilenbergMoore | Free = record
{ F₀ = λ A → record
{ A = F₀ A
; action = M.μ.η A
; commute = M.assoc
; identity = M.identityʳ
}
; F₁ = λ f → record
{ arr = F₁ f
; commute = ⟺ (M.μ.commute f)
}
; identity = identity
; homomorphism = homomorphism
; F-resp-≈ ... | function | Free | Categories.Adjoint.Construction | src/Categories/Adjoint/Construction/EilenbergMoore.agda | [
"Categories.Category.Core",
"Categories.Monad",
"Categories.Category.Construction.EilenbergMoore",
"Categories.Adjoint",
"Categories.Functor",
"Categories.Functor.Properties",
"Categories.NaturalTransformation.Core",
"Categories.NaturalTransformation.NaturalIsomorphism",
"Categories.Morphism.Reasoni... | [
"EilenbergMoore",
"Functor",
"identity"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
FF≃F : Forgetful ∘F Free ≃ M.F | FF≃F = record
{ F⇒G = record
{ η = λ _ → F₁ C.id
; commute = λ _ → [ M.F ]-resp-square id-comm-sym
; sym-commute = λ _ → [ M.F ]-resp-square id-comm
}
; F⇐G = record
{ η = λ _ → F₁ C.id
; commute = λ _ → [ M.F ]-resp-square id-comm-sym
; sym-commute = λ _ → [ M.F ]-re... | function | FF≃F | Categories.Adjoint.Construction | src/Categories/Adjoint/Construction/EilenbergMoore.agda | [
"Categories.Category.Core",
"Categories.Monad",
"Categories.Category.Construction.EilenbergMoore",
"Categories.Adjoint",
"Categories.Functor",
"Categories.Functor.Properties",
"Categories.NaturalTransformation.Core",
"Categories.NaturalTransformation.NaturalIsomorphism",
"Categories.Morphism.Reasoni... | [
"Forgetful",
"Free",
"identity"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
Free⊣Forgetful : Free ⊣ Forgetful | Free⊣Forgetful = record
{ unit = record
{ η = M.η.η
; commute = M.η.commute
; sym-commute = M.η.sym-commute
}
; counit = record
{ η = λ X →
let module X = Module X
in record
{ arr = X.action
; commute = ⟺ X.commute
}
; commute... | function | Free⊣Forgetful | Categories.Adjoint.Construction | src/Categories/Adjoint/Construction/EilenbergMoore.agda | [
"Categories.Category.Core",
"Categories.Monad",
"Categories.Category.Construction.EilenbergMoore",
"Categories.Adjoint",
"Categories.Functor",
"Categories.Functor.Properties",
"Categories.NaturalTransformation.Core",
"Categories.NaturalTransformation.NaturalIsomorphism",
"Categories.Morphism.Reasoni... | [
"Forgetful",
"Free",
"Module"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
Forgetful : Functor (Kleisli M) C | Forgetful = record
{ F₀ = λ X → F₀ X
; F₁ = λ f → μ.η _ ∘ F₁ f
; identity = M.identityˡ
; homomorphism = λ {X Y Z} {f g} → begin
μ.η Z ∘ F₁ ((μ.η Z ∘ F₁ g) ∘ f) ≈⟨ refl⟩∘⟨ homomorphism ⟩
μ.η Z ∘ F₁ (μ.η Z ∘ F₁ g) ∘ F₁ f ≈⟨ refl⟩∘⟨ homomorphism ⟩∘⟨refl ⟩
μ.η Z ∘... | function | Forgetful | Categories.Adjoint.Construction | src/Categories/Adjoint/Construction/Kleisli.agda | [
"Categories.Category.Core",
"Categories.Monad",
"Categories.Category.Construction.Kleisli",
"Categories.Adjoint",
"Categories.Functor",
"Categories.Morphism",
"Categories.Functor.Properties",
"Categories.NaturalTransformation.Core",
"Categories.NaturalTransformation.NaturalIsomorphism",
"Categorie... | [
"Functor",
"Kleisli",
"center",
"identity",
"pull-first",
"refl"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
Free : Functor C (Kleisli M) | Free = record
{ F₀ = λ X → X
; F₁ = λ f → η.η _ ∘ f
; identity = C.identityʳ
; homomorphism = λ {X Y Z} {f g} → begin
η.η Z ∘ g ∘ f ≈⟨ sym-assoc ○ ⟺ identityˡ ⟩
C.id ∘ (η.η Z ∘ g) ∘ f ≈˘⟨ pull-first M.identityˡ ⟩
μ.η Z ∘ (F₁ (η.η... | function | Free | Categories.Adjoint.Construction | src/Categories/Adjoint/Construction/Kleisli.agda | [
"Categories.Category.Core",
"Categories.Monad",
"Categories.Category.Construction.Kleisli",
"Categories.Adjoint",
"Categories.Functor",
"Categories.Morphism",
"Categories.Functor.Properties",
"Categories.NaturalTransformation.Core",
"Categories.NaturalTransformation.NaturalIsomorphism",
"Categorie... | [
"Functor",
"Kleisli",
"center",
"identity",
"identityˡ",
"pull-first"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
FF≃F : Forgetful ∘F Free ≃ M.F | FF≃F = record
{ F⇒G = ntHelper record
{ η = λ X → F₁ C.id
; commute = λ {X Y} f → begin
F₁ C.id ∘ μ.η Y ∘ F₁ (η.η Y ∘ f) ≈⟨ refl⟩∘⟨ refl⟩∘⟨ homomorphism ⟩
F₁ C.id ∘ μ.η Y ∘ F₁ (η.η Y) ∘ F₁ f ≈⟨ refl⟩∘⟨ cancelˡ M.identityˡ ⟩
F₁ C.id ∘ F₁ f ≈⟨ [ M.F ]-resp-s... | function | FF≃F | Categories.Adjoint.Construction | src/Categories/Adjoint/Construction/Kleisli.agda | [
"Categories.Category.Core",
"Categories.Monad",
"Categories.Category.Construction.Kleisli",
"Categories.Adjoint",
"Categories.Functor",
"Categories.Morphism",
"Categories.Functor.Properties",
"Categories.NaturalTransformation.Core",
"Categories.NaturalTransformation.NaturalIsomorphism",
"Categorie... | [
"Forgetful",
"Free",
"identity",
"ntHelper"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
Free⊣Forgetful : Free ⊣ Forgetful | Free⊣Forgetful = record
{ unit = ntHelper record
{ η = η.η
; commute = λ {X Y} f → begin
η.η Y ∘ f ≈⟨ η.commute f ⟩
F₁ f ∘ η.η X ≈˘⟨ cancelˡ M.identityˡ ⟩∘⟨refl ⟩
(μ.η Y ∘ F₁ (η.η Y) ∘ F₁ f) ∘ η.η X ≈˘⟨ ∘-resp-≈ʳ homomorphism ⟩∘⟨ref... | function | Free⊣Forgetful | Categories.Adjoint.Construction | src/Categories/Adjoint/Construction/Kleisli.agda | [
"Categories.Category.Core",
"Categories.Monad",
"Categories.Category.Construction.Kleisli",
"Categories.Adjoint",
"Categories.Functor",
"Categories.Morphism",
"Categories.Functor.Properties",
"Categories.NaturalTransformation.Core",
"Categories.NaturalTransformation.NaturalIsomorphism",
"Categorie... | [
"Forgetful",
"Free",
"identity",
"ntHelper"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
Inclusion : ∀ {c ℓ} e → Functor (Setoids c ℓ) (Groupoids c ℓ e) | Inclusion {c} {ℓ} e = record
{ F₀ = 0-Groupoid e
; F₁ = λ f → record { F₀ = to f; F₁ = cong f }
; identity = refl
; homomorphism = refl
; F-resp-≈ = λ {S T f g} f≗g →
let module S = Setoid S
module T = Setoid T
in record
{ F⇒G = record { η = λ _ → f≗g }
... | function | Inclusion | Categories.Adjoint.Instance | src/Categories/Adjoint/Instance/0-Truncation.agda | [
"Function.Base",
"Function.Bundles",
"Function.Construct.Identity",
"Relation.Binary",
"Categories.Adjoint",
"Categories.Category.Core",
"Categories.Category.Construction.0-Groupoid",
"Categories.Category.Groupoid",
"Categories.Category.Instance.Groupoids",
"Categories.Category.Instance.Setoids",
... | [
"0-Groupoid",
"Functor",
"Groupoids",
"Setoids",
"identity",
"refl"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
TruncAdj : ∀ {o ℓ e} → Trunc ⊣ Inclusion {o} {ℓ} e | TruncAdj {o} {ℓ} {e} = record
{ unit = unit
; counit = counit
; zig = λ {A} → Category.id (category A)
; zag = refl
}
where
open Func
open Groupoid using (category)
unit : NaturalTransformation idF (Inclusion e ∘F Trunc)
unit = record
{ η = λ _ → record { F₀ = id→ ; ... | function | TruncAdj | Categories.Adjoint.Instance | src/Categories/Adjoint/Instance/0-Truncation.agda | [
"Function.Base",
"Function.Bundles",
"Function.Construct.Identity",
"Relation.Binary",
"Categories.Adjoint",
"Categories.Category.Core",
"Categories.Category.Construction.0-Groupoid",
"Categories.Category.Groupoid",
"Categories.Category.Instance.Groupoids",
"Categories.Category.Instance.Setoids",
... | [
"Groupoid",
"Inclusion",
"NaturalTransformation",
"Trunc",
"ntHelper",
"refl"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
Inclusion : ∀ {c ℓ₁ ℓ₂} e → Functor (Posets c ℓ₁ ℓ₂) (Cats c ℓ₂ e) | Inclusion {c} {ℓ₁} e = record
{ F₀ = Thin e
; F₁ = λ f → record { F₀ = ⟦ f ⟧ ; F₁ = mono f }
; identity = refl
; homomorphism = refl
; F-resp-≈ = λ {A B f g} f≗g →
let open Poset B
in record
{ F⇒G = record { η = λ _ → reflexive f≗g }
; F⇐G = record { η = λ ... | function | Inclusion | Categories.Adjoint.Instance | src/Categories/Adjoint/Instance/01-Truncation.agda | [
"Data.Product",
"Function",
"Relation.Binary",
"Relation.Binary.Morphism.Bundles",
"Categories.Adjoint",
"Categories.Category.Construction.Thin",
"Categories.Category",
"Categories.Category.Instance.Cats",
"Categories.Category.Instance.Posets",
"Categories.Functor",
"Categories.Functor.Instance.... | [
"Cats",
"Functor",
"Poset",
"Posets",
"Thin",
"identity",
"mono",
"refl"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
TruncAdj : ∀ {o ℓ e} → Trunc ⊣ Inclusion {o} {ℓ} e | TruncAdj {o} {ℓ} {e} = record
{ unit = unit
; counit = counit
; zig = λ {C} → id C , id C
; zag = refl
}
where
open Category
unit : NaturalTransformation idF (Inclusion e ∘F Trunc)
unit = record
{ η = λ _ → record { F₀ = Function.id ; F₁ = Function.id }
; commute ... | function | TruncAdj | Categories.Adjoint.Instance | src/Categories/Adjoint/Instance/01-Truncation.agda | [
"Data.Product",
"Function",
"Relation.Binary",
"Relation.Binary.Morphism.Bundles",
"Categories.Adjoint",
"Categories.Category.Construction.Thin",
"Categories.Category",
"Categories.Category.Instance.Cats",
"Categories.Category.Instance.Posets",
"Categories.Functor",
"Categories.Functor.Instance.... | [
"Category",
"Inclusion",
"NaturalTransformation",
"Trunc",
"id",
"ntHelper",
"refl"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
Forgetful : ∀ {o ℓ e} → Functor (Groupoids o ℓ e) (Cats o ℓ e) | Forgetful = record
{ F₀ = category
; F₁ = Function.id
; identity = refl
; homomorphism = refl
; F-resp-≈ = Function.id
}
where open Groupoid
-- Core is right-adjoint to the forgetful functor from Groupoids to
-- Cats | function | Forgetful | Categories.Adjoint.Instance | src/Categories/Adjoint/Instance/Core.agda | [
"Level",
"Function",
"Categories.Adjoint",
"Categories.Category",
"Categories.Category.Construction.Core",
"Categories.Category.Groupoid",
"Categories.Category.Instance.Cats",
"Categories.Category.Instance.Groupoids",
"Categories.Functor",
"Categories.Functor.Instance.Core",
"Categories.Morphism... | [
"Cats",
"Functor",
"Groupoid",
"Groupoids",
"identity",
"refl"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
CoreAdj : ∀ {o ℓ e} → Forgetful {o} {ℓ ⊔ e} {e} ⊣ Core | CoreAdj = record
{ unit = ntHelper record { η = unit ; commute = λ {G} {H} F → unit-commute {G} {H} F }
; counit = ntHelper record { η = counit ; commute = counit-commute }
; zig = λ {G} → zig {G}
; zag = zag
}
where
open Groupoid using (category)
module Core = Functor Core
unit : ∀ G... | function | CoreAdj | Categories.Adjoint.Instance | src/Categories/Adjoint/Instance/Core.agda | [
"Level",
"Function",
"Categories.Adjoint",
"Categories.Category",
"Categories.Category.Construction.Core",
"Categories.Category.Groupoid",
"Categories.Category.Instance.Cats",
"Categories.Category.Instance.Groupoids",
"Categories.Functor",
"Categories.Functor.Instance.Core",
"Categories.Morphism... | [
"Category",
"Core",
"Forgetful",
"Functor",
"Groupoid",
"Morphism",
"id",
"identity",
"identityˡ",
"ntHelper"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
Forgetful : ∀ {c ℓ} → Functor (Setoids c ℓ) (Posets c ℓ ℓ) | Forgetful = record
{ F₀ = Forgetful₀
; F₁ = λ f → mkPosetHomo _ _ (to f) (cong f)
; identity = λ {S} → refl S
; homomorphism = λ {_ _ S} → refl S
; F-resp-≈ = λ {S _} f≗g → f≗g
}
where
Forgetful₀ : ∀ {c ℓ} → Setoid c ℓ → Poset c ℓ ℓ
Forgetful₀ S = record
{... | function | Forgetful | Categories.Adjoint.Instance | src/Categories/Adjoint/Instance/PosetCore.agda | [
"Level",
"Function",
"Function.Bundles",
"Relation.Binary",
"Relation.Binary.Morphism.Bundles",
"Relation.Binary.Morphism.Construct.Composition",
"Categories.Adjoint",
"Categories.Adjoint.Instance.0-Truncation",
"Categories.Adjoint.Instance.01-Truncation",
"Categories.Category.Core",
"Categories... | [
"Functor",
"Poset",
"Posets",
"Setoids",
"_≈_",
"identity",
"isEquivalence",
"refl",
"trans"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
Core : ∀ {c ℓ₁ ℓ₂} → Functor (Posets c ℓ₁ ℓ₂) (Setoids c ℓ₁) | Core = record
{ F₀ = λ A → record { isEquivalence = isEquivalence A }
; F₁ = λ f → record { to = ⟦ f ⟧ ; cong = cong f }
; identity = λ {A} → Eq.refl A
; homomorphism = λ {_ _ Z} → Eq.refl Z
; F-resp-≈ = λ f≗g → f≗g
}
where open Poset
-- Core is right-adjoint to the forgetful ... | function | Core | Categories.Adjoint.Instance | src/Categories/Adjoint/Instance/PosetCore.agda | [
"Level",
"Function",
"Function.Bundles",
"Relation.Binary",
"Relation.Binary.Morphism.Bundles",
"Relation.Binary.Morphism.Construct.Composition",
"Categories.Adjoint",
"Categories.Adjoint.Instance.0-Truncation",
"Categories.Adjoint.Instance.01-Truncation",
"Categories.Category.Core",
"Categories... | [
"Functor",
"Poset",
"Posets",
"Setoids",
"identity",
"isEquivalence"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
CoreAdj : ∀ {o ℓ} → Forgetful ⊣ Core {o} {ℓ} {ℓ} | CoreAdj = record
{ unit = ntHelper record { η = unit ; commute = λ {_} {Y} _ → Setoid.refl Y}
; counit = ntHelper record { η = counit ; commute = λ {_ B} _ → Eq.refl B }
; zig = λ {S} → Setoid.refl S
; zag = λ {B} → Eq.refl B
}
where
open Poset
open Functor Core using () renaming (F₀ ... | function | CoreAdj | Categories.Adjoint.Instance | src/Categories/Adjoint/Instance/PosetCore.agda | [
"Level",
"Function",
"Function.Bundles",
"Relation.Binary",
"Relation.Binary.Morphism.Bundles",
"Relation.Binary.Morphism.Construct.Composition",
"Categories.Adjoint",
"Categories.Adjoint.Instance.0-Truncation",
"Categories.Adjoint.Instance.01-Truncation",
"Categories.Category.Core",
"Categories... | [
"Core",
"Forgetful",
"Functor",
"Poset",
"ntHelper"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
Core-commutes : ∀ {c ℓ} e → Setd.Inclusion e ∘F Core ≃
Cat.Core ∘F Pos.Inclusion {c} {ℓ ⊔ e} {ℓ} e | Core-commutes e = niHelper record
{ η = λ A → record { F₀ = Function.id ; F₁ = EqIsIso.≈⇒≅ e A }
; η⁻¹ = λ A → record { F₀ = Function.id ; F₁ = EqIsIso.≅⇒≈ e A }
; commute = λ {A B} f →
let open Morphism (Thin e B)
in niHelper record { η = λ _ → ≅.refl ; η⁻¹ = λ _ → ≅.refl }
; iso = λ A →
let op... | function | Core-commutes | Categories.Adjoint.Instance | src/Categories/Adjoint/Instance/PosetCore.agda | [
"Level",
"Function",
"Function.Bundles",
"Relation.Binary",
"Relation.Binary.Morphism.Bundles",
"Relation.Binary.Morphism.Construct.Composition",
"Categories.Adjoint",
"Categories.Adjoint.Instance.0-Truncation",
"Categories.Adjoint.Instance.01-Truncation",
"Categories.Category.Core",
"Categories... | [
"Core",
"Morphism",
"Poset",
"Thin",
"niHelper"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
Forgetful : ∀ {o ℓ e} → Functor (StrictGroupoids o ℓ e) (StrictCats o ℓ e) | Forgetful {o} {ℓ} {e} = record
{ F₀ = Groupoid.category
; F₁ = Function.id
; identity = λ {G} → Groupoids.Equiv.refl {G} {G} {idF}
; homomorphism = λ {G H K F H} → Groupoids.Equiv.refl {G} {K} {H ∘F F}
; F-resp-≈ = Function.id
}
where
module Groupoids = Category (StrictGroupoids o ℓ e)
-- Cor... | function | Forgetful | Categories.Adjoint.Instance | src/Categories/Adjoint/Instance/StrictCore.agda | [
"Level",
"Function",
"Relation.Binary",
"Relation.Binary.PropositionalEquality",
"Categories.Adjoint",
"Categories.Category.Core",
"Categories.Category.Groupoid",
"Categories.Category.Construction.Core",
"Categories.Category.Instance.StrictCats",
"Categories.Category.Instance.StrictGroupoids",
"... | [
"Category",
"Functor",
"Groupoids",
"StrictCats",
"StrictGroupoids",
"identity"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
CoreAdj : ∀ {o ℓ e} → Forgetful {o} {ℓ ⊔ e} {e} ⊣ Core | CoreAdj = record
{ unit = record { η = unit ; commute = λ {G H} F → unit-commute {G} {H} F ; sym-commute = λ {G H} F → unit-sym-commute {G} {H} F }
; counit = record { η = counit ; commute = counit-commute ; sym-commute = counit-sym-commute }
; zig = λ {G} → zig {G}
; zag = zag
}... | function | CoreAdj | Categories.Adjoint.Instance | src/Categories/Adjoint/Instance/StrictCore.agda | [
"Level",
"Function",
"Relation.Binary",
"Relation.Binary.PropositionalEquality",
"Categories.Adjoint",
"Categories.Category.Core",
"Categories.Category.Groupoid",
"Categories.Category.Construction.Core",
"Categories.Category.Instance.StrictCats",
"Categories.Category.Instance.StrictGroupoids",
"... | [
"Category",
"Core",
"Forgetful",
"Functor",
"Groupoid",
"Morphism",
"identity",
"refl"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
Forgetful : ∀ {o ℓ e} → Functor (StrictCats o ℓ e) (Sets o) | Forgetful {o} {ℓ} {e} = record
{ F₀ = Obj
; F₁ = F₀
; identity = λ _ → refl
; homomorphism = λ _ → refl
; F-resp-≈ = eq₀
}
where
open Category
open Functor
open _≡F_
-- The discrete functor (strict version) | function | Forgetful | Categories.Adjoint.Instance | src/Categories/Adjoint/Instance/StrictDiscrete.agda | [
"Level",
"Data.Unit",
"Function",
"Relation.Binary.PropositionalEquality",
"Categories.Adjoint",
"Categories.Category",
"Categories.Category.Instance.StrictCats",
"Categories.Category.Instance.Sets",
"Categories.Functor",
"Categories.Functor.Equivalence",
"Categories.Category.Construction.Strict... | [
"Category",
"Functor",
"Sets",
"StrictCats",
"_≡F_",
"identity",
"refl"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
Discrete : ∀ {o} → Functor (Sets o) (StrictCats o o o) | Discrete {o} = record
{ F₀ = D.Discrete
; F₁ = λ f → record
{ F₀ = f
; F₁ = cong f
; identity = refl
; homomorphism = λ {_ _ _ p q} → cong-trans f p q
; F-resp-≈ = cong (cong f)
}
; identity = record
{ eq₀ = λ _ → refl
; eq₁ = λ p → let open ≡-Reasoning in begin
tra... | function | Discrete | Categories.Adjoint.Instance | src/Categories/Adjoint/Instance/StrictDiscrete.agda | [
"Level",
"Data.Unit",
"Function",
"Relation.Binary.PropositionalEquality",
"Categories.Adjoint",
"Categories.Category",
"Categories.Category.Instance.StrictCats",
"Categories.Category.Instance.Sets",
"Categories.Functor",
"Categories.Functor.Equivalence",
"Categories.Category.Construction.Strict... | [
"Functor",
"Sets",
"StrictCats",
"identity",
"refl",
"trans"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
Codiscrete : ∀ {o} ℓ e → Functor (Sets o) (StrictCats o ℓ e) | Codiscrete {o} ℓ e = record
{ F₀ = λ A → record
{ Obj = A
; _⇒_ = λ _ _ → Lift ℓ ⊤
; _≈_ = λ _ _ → Lift e ⊤
; id = lift tt
; _∘_ = λ _ _ → lift tt
; assoc = lift tt
; identityˡ = lift tt
; identityʳ = lift tt
; equiv = record
{ refl = lift tt
; sym = λ _ → l... | function | Codiscrete | Categories.Adjoint.Instance | src/Categories/Adjoint/Instance/StrictDiscrete.agda | [
"Level",
"Data.Unit",
"Function",
"Relation.Binary.PropositionalEquality",
"Categories.Adjoint",
"Categories.Category",
"Categories.Category.Instance.StrictCats",
"Categories.Category.Instance.Sets",
"Categories.Functor",
"Categories.Functor.Equivalence",
"Categories.Category.Construction.Strict... | [
"Category",
"Functor",
"Sets",
"StrictCats",
"_∘_",
"_≈_",
"assoc",
"equiv",
"id",
"identity",
"identityʳ",
"identityˡ",
"refl",
"sym",
"trans",
"∘-resp-≈"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
DiscreteLeftAdj : ∀ {o} → Discrete ⊣ Forgetful {o} {o} {o} | DiscreteLeftAdj {o} = record
{ unit = unit
; counit = counit
; zig = zig
; zag = λ _ → refl
}
where
module U = Functor Forgetful
module Δ = Functor Discrete
unit : NaturalTransformation idF (Forgetful ∘F Discrete)
unit = NT.id
counitFun : ∀ C → Functor (Δ.F₀ (U.F₀ C)) C
cou... | function | DiscreteLeftAdj | Categories.Adjoint.Instance | src/Categories/Adjoint/Instance/StrictDiscrete.agda | [
"Level",
"Data.Unit",
"Function",
"Relation.Binary.PropositionalEquality",
"Categories.Adjoint",
"Categories.Category",
"Categories.Category.Instance.StrictCats",
"Categories.Category.Instance.Sets",
"Categories.Functor",
"Categories.Functor.Equivalence",
"Categories.Category.Construction.Strict... | [
"Category",
"Discrete",
"Forgetful",
"Functor",
"NaturalTransformation",
"hid",
"hid-cong",
"hid-trans",
"id",
"identity",
"identityʳ",
"identityˡ",
"ntHelper",
"refl"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
CodiscreteRightAdj : ∀ {o ℓ e} → Forgetful ⊣ Codiscrete {o} ℓ e | CodiscreteRightAdj {o} {ℓ} {e} = record
{ unit = unit
; counit = counit
; zig = λ _ → refl
; zag = zag
}
where
module U = Functor Forgetful
module ∇ = Functor (Codiscrete ℓ e)
unitFun : ∀ C → Functor C (∇.F₀ (U.F₀ C))
unitFun C = let open Category C in record
{ F₀ = Fun.id
... | function | CodiscreteRightAdj | Categories.Adjoint.Instance | src/Categories/Adjoint/Instance/StrictDiscrete.agda | [
"Level",
"Data.Unit",
"Function",
"Relation.Binary.PropositionalEquality",
"Categories.Adjoint",
"Categories.Category",
"Categories.Category.Instance.StrictCats",
"Categories.Category.Instance.Sets",
"Categories.Functor",
"Categories.Functor.Equivalence",
"Categories.Category.Construction.Strict... | [
"Category",
"Codiscrete",
"Forgetful",
"Functor",
"NaturalTransformation",
"identity",
"ntHelper",
"refl"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
PreservesReflexiveCoequalizers : (F : Functor 𝒟 𝒞) → Set _ | PreservesReflexiveCoequalizers F = ∀ {A B} {f g : 𝒟 [ A , B ]} → ReflexivePair 𝒟 f g → (coeq : Coequalizer 𝒟 f g) → IsCoequalizer 𝒞 (F.F₁ f) (F.F₁ g) (F.F₁ (arr coeq))
where
module F = Functor F | function | PreservesReflexiveCoequalizers | Categories.Adjoint.Monadic | src/Categories/Adjoint/Monadic/Crude.agda | [
"Categories.Adjoint",
"Categories.Category",
"Categories.Functor",
"Level",
"Function",
"Data.Product",
"Categories.Adjoint.Properties",
"Categories.Adjoint.Monadic",
"Categories.Adjoint.Monadic.Properties",
"Categories.Category.Equivalence",
"Categories.Category.Equivalence.Properties",
"Cate... | [
"Coequalizer",
"Functor",
"IsCoequalizer",
"ReflexivePair"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
_∘⊣⊢_ : {C : Category o ℓ e} {D : Category o′ ℓ′ e′} {E : Category o″ ℓ″ e″}
{L : Functor C D} {R : Functor D C} {L′ : Functor D E} {R′ : Functor E D}
(L⊣⊢R : L ⊣⊢ R) (L′⊣⊢R′ : L′ ⊣⊢ R′) → (L′ ∘F L) ⊣⊢ (R ∘F R′) | _∘⊣⊢_ {C = C} {D} {E} {L} {R} {L′} {R′} L⊣⊢R L′⊣⊢R′ = withZig record
{ unit = unit
; counit = counit
; zig = zig
}
where
module C = Category C using (_∘_; id; assoc; identityˡ; module HomReasoning)
module D = Category D using (id)
module E = Category E using (_∘_; id; _≈_; assoc; identi... | function | _∘⊣⊢_ | Categories.Adjoint.TwoSided | src/Categories/Adjoint/TwoSided/Compose.agda | [
"Level",
"Categories.Adjoint",
"Categories.Adjoint.TwoSided",
"Categories.Category.Core",
"Categories.Functor",
"Categories.Functor.Properties",
"Categories.NaturalTransformation",
"Categories.NaturalTransformation.NaturalIsomorphism",
"Categories.NaturalTransformation.NaturalIsomorphism.Properties"... | [
"Category",
"Functor",
"NaturalIsomorphism",
"_∘_",
"_≈_",
"_⊣⊢_",
"assoc",
"center",
"id",
"identity",
"identityˡ",
"ntHelper",
"pull-first"
] | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 | |
IsBigroupoid {o ℓ e t} (C : Bicategory o ℓ e t) : Set (o ⊔ ℓ ⊔ e ⊔ t) where
open BicategoryExtras C
open Shorthands
field
hom-isGroupoid : ∀ A B → IsGroupoid (hom A B)
hom[_,_]⁻¹ : ∀ A B → Functor (hom A B) (hom B A)
cancel : ∀ A B → ⊚ ∘F (hom[ A , B ]⁻¹ ※ idF) ≃ const id₁
cancel′ ... | record | IsBigroupoid | Categories.Bicategory | src/Categories/Bicategory/Bigroupoid.agda | [
"Level",
"Function",
"Data.Product",
"Categories.Adjoint.TwoSided",
"Categories.Category",
"Categories.Category.Equivalence",
"Categories.Category.Equivalence.Properties",
"Categories.Category.Product",
"Categories.Category.Groupoid",
"Categories.Bicategory",
"Categories.Bicategory.Extras",
"C... | [
"Bicategory",
"Functor",
"IsGroupoid",
"Iso-∘",
"NaturalIsomorphism",
"WeakInverse",
"assoc₂",
"center",
"center⁻¹",
"const",
"hom-isGroupoid",
"identity₂ʳ",
"identity₂ˡ",
"ntHelper",
"refl",
"α⇐",
"α⇐-◁-∘₁",
"α⇒",
"λ⇐",
"λ⇒",
"λ⇒-∘ᵥ-▷",
"ρ⇐",
"ρ⇒",
"ρ⇒-∘ᵥ-◁",
"⊚-resp... | https://github.com/agda/agda-categories | fbd1259c2dcf011ee1936fa8c24a1b10e6285673 |
Structured dataset from agda-categories — Category theory.
fbd1259c2dcf011ee1936fa8c24a1b10e6285673| Column | Type | Description |
|---|---|---|
| statement | string | Declaration signature/claim with the leading keyword removed (verbatim slice); the full declaration minus its proof |
| proof | string | Verbatim proof/body, empty if the declaration has none |
| type | string | Declaration keyword |
| symbolic_name | string | Declaration identifier |
| library | string | Sub-library |
| filename | string | Repository-relative source path |
| imports | list[string] | File-level Require/Import modules |
| deps | list[string] | Intra-corpus identifiers referenced |
| docstring | string | Preceding documentation comment, empty if absent |
| source_url | string | Upstream repository |
| commit | string | Upstream commit extracted |
| Type | Count |
|---|---|
| function | 1,116 |
| record | 240 |
| data | 6 |
2-Category : (o ℓ e t : Level) → Set (suc (o ⊔ ℓ ⊔ e ⊔ t))
2-Category o ℓ e t = Category (Product.Cats-Monoidal {o} {ℓ} {e}) t
2-Category | src/Categories/2-Category.agdaEach declaration is split into a statement (signature/claim) and a proof (body) that are disjoint
and together form the complete declaration, for proof modeling, autoformalization, retrieval, and
dependency analysis via deps.
@misc{agda_categories_dataset,
title = {Agda-Categories},
author = {Norton, Charles},
year = {2026},
note = {Extracted from https://github.com/agda/agda-categories, commit fbd1259c2dcf},
url = {https://huggingface.co/datasets/phanerozoic/Agda-Categories}
}