Other Agda modules in this section (47)
- AbsoluteMorphisms
- CommutativeSquareAxiom
- CoreCoproducts
- DiagramCalculus.CoconeAssociativity
- DiagramCalculus.CompositeWitnesses
- DiagramCalculus.DegenerateCocones
- DiagramCalculus.DiagramComparisons
- DiagramCalculus.ExpressionComparisons
- DiagramCalculus.FramedCocones
- DiagramCalculus.IdentityBoundaries
- DiagramCalculus.IdentityComposites
- DiagramCalculus.IdentityPreservation
- DiagramCalculus.JunctionCalculus
- DiagramCalculus.MiddleVertex
- DiagramCalculus.MorphismComparisons
- DiagramCalculus.OuterVertices
- DiagramCalculus.SliceFibers
- DiagramCalculus.TriangleCorners
- DiagramCalculus.UniversalComparisons
- DiagramCalculus.VertexTransport
- EvaluationCalculus.ConstantConeComparison
- EvaluationCalculus.ConstantConeFrames
- EvaluationCalculus.ConstantConeNaturality
- EvaluationCalculus.ConstantDiagramEvaluation
- EvaluationCalculus.ConstantDiagramNaturality
- EvaluationCalculus.CoreInclusions
- EvaluationCalculus.EndpointEvaluation
- EvaluationCalculus.EndpointFibers
- EvaluationCalculus.EndpointNaturality
- Everything
- HomAndSlices
- IntervalCore
- IntervalEndpoints
- Lattice
- Morphisms
- SquareCalculus.FourPoints
- SquareCalculus.LatticePullbacks
- SquareCalculus.LatticeUniqueness
- SquareCalculus.SquareCalculus
- SquareCalculus.SquareFamilies
- SquareCalculus.SquareShape
- SquareGluing
- TriangleCore
- TrianglesAndComposites
- UniversalArrows
- WalkingMorphism
- WalkingTriangle
Complete compiler-highlighted source. Follow a symbol to its declaration.
Corresponding book passages
# The two maps from the square to the walking triangle The maps of `cons:Commutative_Squares_Auxiliary2` come from gluing. Their four restrictions retain the chosen common-edge matching through `glue-Ξ²`. The coordinate formulas of `lem:Commutative_Squares_Auxiliary3` then follow by recognizing their horizontal boundary values. ```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.Section01.CommutativeSquareAxiom as Squares module SCT.VolumeI.Chapter02.Section01.SquareCalculus.SquareRetractions {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) (Q : Squares.CommutativeSquareAxiom π― M β± P I E) where open import SCT.VolumeI.Chapter02.Section01.SquareGluing π― M β± P I E Q public open import SCT.VolumeI.Chapter02.Section01.SquareCalculus.LatticeUniqueness π― M β± P I E collapse-matching : (s : MAP [2] [1]) β (s β dβ) =β (id [1]) β (id [2] β dβ) =β ((dβ β s) β dβ) collapse-matching s Ξ΅ = (comp-assoc dβ s dβ) β»ΒΉ β ((dβ β Ξ΅ β»ΒΉ) β ((comp-unitΚ³ dβ) β»ΒΉ β comp-unitΛ‘ dβ)) lower-cocone upper-cocone : Cocone dβ dβ [2] lower-cocone = record { left = id [2] ; right = dβ β sβ ; match = collapse-matching sβ sβ-dβ } upper-cocone = record { left = dβ β sβ ; right = id [2] ; match = (collapse-matching sβ sβ-dβ) β»ΒΉ } pβ pβ : MAP ([1] Γ [1]) [2] pβ = glue lower-cocone pβ = glue upper-cocone pβ-jβ : (pβ β jβ) =β (id [2]) pβ-jβ = glue-left lower-cocone pβ-jβ : (pβ β jβ) =β (dβ β sβ) pβ-jβ = glue-right lower-cocone pβ-jβ : (pβ β jβ) =β (dβ β sβ) pβ-jβ = glue-left upper-cocone pβ-jβ : (pβ β jβ) =β (id [2]) pβ-jβ = glue-right upper-cocone coordinate-bottom : (F : MAP [2] [1]) (t : Cocone dβ dβ [2]) β ((F β glue t) β insert zero) =β ((F β Cocone.right t) β dβ) coordinate-bottom F t = (comp-assoc dβ (Cocone.right t) F) β»ΒΉ β ((F β glue-bottom t) β comp-assoc (insert zero) (glue t) F) coordinate-top : (F : MAP [2] [1]) (t : Cocone dβ dβ [2]) β ((F β glue t) β insert one) =β ((F β Cocone.left t) β dβ) coordinate-top F t = (comp-assoc dβ (Cocone.left t) F) β»ΒΉ β ((F β glue-top t) β comp-assoc (insert one) (glue t) F) collapse-coordinate : (s : MAP [2] [1]) β (s β dβ) =β (id [1]) β (t : MAP [2] [1]) β (s β (dβ β t)) =β t collapse-coordinate s Ξ΅ t = comp-unitΛ‘ t β ((Ξ΅ β· t) β (comp-assoc t dβ s) β»ΒΉ) sβ-pβ : (sβ β pβ) =β min sβ-pβ = recognize-min _ (sβ-dβ β ((collapse-coordinate sβ sβ-dβ sβ β· dβ) β coordinate-bottom sβ lower-cocone)) (sβ-dβ β ((comp-unitΚ³ sβ β· dβ) β coordinate-top sβ lower-cocone)) sβ-pβ : (sβ β pβ) =β prβ sβ-pβ = recognize-second-projection _ (sβ-dβ β ((collapse-coordinate sβ sβ-dβ sβ β· dβ) β coordinate-bottom sβ lower-cocone)) (sβ-dβ β ((comp-unitΚ³ sβ β· dβ) β coordinate-top sβ lower-cocone)) sβ-pβ : (sβ β pβ) =β prβ sβ-pβ = recognize-second-projection _ (sβ-dβ β ((comp-unitΚ³ sβ β· dβ) β coordinate-bottom sβ upper-cocone)) (sβ-dβ β ((collapse-coordinate sβ sβ-dβ sβ β· dβ) β coordinate-top sβ upper-cocone)) sβ-pβ : (sβ β pβ) =β max sβ-pβ = recognize-max _ (sβ-dβ β ((comp-unitΚ³ sβ β· dβ) β coordinate-bottom sβ upper-cocone)) (sβ-dβ β ((collapse-coordinate sβ sβ-dβ sβ β· dβ) β coordinate-top sβ upper-cocone)) jβ-pβ : (jβ β pβ) =β (pair min prβ) jβ-pβ = pair-cong sβ-pβ sβ-pβ β pair-pre sβ sβ pβ jβ-pβ : (jβ β pβ) =β (pair prβ min) jβ-pβ = pair-cong sβ-pβ sβ-pβ β pair-pre sβ sβ pβ jβ-pβ : (jβ β pβ) =β (pair prβ max) jβ-pβ = pair-cong sβ-pβ sβ-pβ β pair-pre sβ sβ pβ jβ-pβ : (jβ β pβ) =β (pair max prβ) jβ-pβ = pair-cong sβ-pβ sβ-pβ β pair-pre sβ sβ pβ ```