File size: 812 Bytes
4a56cd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | import Mathlib.CategoryTheory.Category.Basic
/-! # Composition Square -/
namespace OAI.AlgebraicGeometry.ComplexMultiplication.CompositionSquare
/-! # Composition of an actual commuting square with two further maps -/
open _root_.CategoryTheory
universe u v
variable {C : Type u} [Category.{v} C]
theorem compositionSquare_postcomp {A B D E F G H : C}
(u : A ⟶ B) (v : B ⟶ D) (w : D ⟶ E) (u' : A ⟶ F) (v' : F ⟶ E)
(b : E ⟶ G) (a : G ⟶ H) (h : u ≫ v ≫ w = u' ≫ v') :
u ≫ (v ≫ w ≫ b) ≫ a = u' ≫ v' ≫ b ≫ a := by
calc
_ = (u ≫ v ≫ w) ≫ b ≫ a := by simp only [Category.assoc]
_ = (u' ≫ v') ≫ b ≫ a := congrArg (fun f => f ≫ b ≫ a) h
_ = _ := by rw [Category.assoc]
end OAI.AlgebraicGeometry.ComplexMultiplication.CompositionSquare
|