Other Agda modules in this section (43)
- CompositionCalculus.LeftTriangleAction
- CompositionCalculus.RightTriangleAction
- CompositionCalculus.SourceCompositionCones
- CompositionCalculus.SourceCompositionInverse
- CompositionCalculus.TargetCompositionCones
- CompositionCalculus.TargetCompositionEquivalence
- CompositionCalculus.TargetCompositionInverse
- Everything
- IdentityIsomorphisms
- InverseCalculus.AbsoluteInverseTriangles
- InverseCalculus.ConstantArrows
- InverseCalculus.ConstantIdentityComparison
- InverseCalculus.ConstantLongEdgeFiber
- InverseCalculus.ExpressionCalculusLifts
- InverseCalculus.ExpressionInverseLaws
- InverseCalculus.ExpressionOperations
- InverseCalculus.ExpressionParameterChanges
- InverseCalculus.InverseTriangleData
- InverseCalculus.InverseTriangleExpressions
- InverseCalculus.InverseTriangleLift
- InverseCalculus.LiftedInverseExpressions
- InverseCalculus.LiftedInverseWitnesses
- InverseCalculus.NaturalTransformationCancellation
- InverseCalculus.NormalizedTriangles
- InverseCalculus.OneSidedInverseFibers
- InverseCalculus.PrimitiveInverses
- InverseCalculus.ProjectedRestriction
- InverseCalculus.PullbackInvertibility
- InverseCalculus.RetractionsReflectInverses
- InverseCalculus.UncurryingInvertibility
- InverseCalculus.UniversalInverseExpressions
- InvertibleExpressions
- InvertibleIdentifications
- IsomorphismEmbedding
- Isomorphisms
- NaturalIsomorphisms
- PullbackCalculus.IntersectionEmbedding
- PullbackCalculus.InversePullbackComparison
- PullbackCalculus.TwoStageFibers
- RezkAxiom
- RezkFibers
- RezkIdentification
- RezkRecovery
Complete compiler-highlighted source. Follow a symbol to its declaration.
# Composition with an invertible arrow is an equivalence The left and right inverse triangles supply a retraction and a section of composition on arrows starting at the target. They need not use the same inverse. The resulting functor retains its projection to the base. ```agda {-# OPTIONS --safe --without-K #-} open import Agda.Primitive using (Level) open import SCT.VolumeI.Chapter01.Theory using (Theory) import SCT.VolumeI.Chapter01.Section04.MappingAnimae as Mapping import SCT.VolumeI.Chapter01.Section07.FunctorCategories as Categories import SCT.VolumeI.Chapter01.Section06.PullbackLaws as Laws import SCT.VolumeI.Chapter02.Section01.WalkingMorphism as Walking import SCT.VolumeI.Chapter02.Section01.IntervalEndpoints as Endpoints import SCT.VolumeI.Chapter02.Section02.SegalAxiom as Segal import SCT.VolumeI.Chapter02.Section01.CommutativeSquareAxiom as Squares module SCT.VolumeI.Chapter02.Section03.CompositionCalculus.SourceCompositionEquivalence {c m a : Level} (𝒯 : Theory c m a) (M : Mapping.MappingAnimae 𝒯) (ℱ : Categories.FunctorCategories 𝒯 M) (P : Laws.PullbackStructure 𝒯) (I : Walking.WalkingMorphism 𝒯) (E : Endpoints.IntervalEndpoints 𝒯 M ℱ P I) (S : Segal.SegalAxiom 𝒯 M ℱ P I E) (Q : Squares.CommutativeSquareAxiom 𝒯 M ℱ P I E) where open import SCT.VolumeI.Chapter02.Section03.InverseCalculus.ExpressionParameterChanges 𝒯 M ℱ P I E S public open import SCT.VolumeI.Chapter01.Section06.Cones 𝒯 open Laws.PullbackStructure P open import SCT.VolumeI.Chapter01.Section06.ConeCalculus.Operations 𝒯 P using (ConeOperation; module Realize; module Inverse) open import SCT.VolumeI.Chapter02.Section03.InverseCalculus.UniversalInverseExpressions 𝒯 M ℱ P I E S using (IsInvertibleExpression) import SCT.VolumeI.Chapter02.Section03.CompositionCalculus.SourceCompositionCones as Actions import SCT.VolumeI.Chapter02.Section03.CompositionCalculus.SourceCompositionInverse as Cancellation operation : {B C : CAT} {x y : MAP B C} → MorphismExpression x y → ConeOperation (ev₀ {C}) y ev₀ x operation f = record { act = F.act ; compare = F.Compared.comparison ; restrict = F.Restriction.comparison } where module F = Actions.Action 𝒯 M ℱ P I E S f module At {B C : CAT} {x y : MAP B C} (f : MorphismExpression x y) where private module F = Realize (operation f) compose-at-source : MAP (Pullback (ev₀ {C}) y) (Pullback (ev₀ {C}) x) compose-at-source = F.map compose-at-source-base : (pullback₂ ∘ compose-at-source) =₁ (pullback₂ {f = ev₀ {C}} {y}) compose-at-source-base = pullbackLift-β₂ (ConeOperation.act (operation f) (pullbackCone ev₀ y)) compose-at-source-isEquiv : IsInvertibleExpression f → IsEquiv compose-at-source compose-at-source-isEquiv witness = section-retraction-isEquiv (record { section = G.map ; comparison = Right.inverse-comparison }) (record { retraction = H.map ; comparison = Left.inverse-comparison ⁻¹ }) where module W = IsInvertibleExpression witness module G = Realize (operation W.left-inverse) module H = Realize (operation W.right-inverse) module Right = Inverse (operation W.left-inverse) (operation f) (Cancellation.Inverse.inverse-law 𝒯 M ℱ P I E S Q W.left-inverse f W.left-inverse-law) module Left = Inverse (operation f) (operation W.right-inverse) (Cancellation.Inverse.inverse-law 𝒯 M ℱ P I E S Q f W.right-inverse W.right-inverse-law) ```