import OAI.NumberTheory.PadicHodge.GeometricComparison.RefinedGlobalSquare /-! # Refined Inferred -/ namespace OAI.NumberTheory.PadicHodge.IntegralComparison.RefinedInferred.Comparison /-! Compose refinement squares while inferring the shared arrows from the squares. -/ open _root_.CategoryTheory universe u v variable {C : Type u} [Category.{v} C] theorem source {A B D P H : C} {a : A ⟶ B} {r : B ⟶ P} {e : B ⟶ H} {t : A ⟶ D} {c : D ⟶ P} {h : P ⟶ H} (hc : a ≫ r = t ≫ c) (hg : r ≫ h = e) : a ≫ e = t ≫ c ≫ h := GeometricComparison.RefinedGlobalSquare.RefinedComparisonGlobalSquare.source a r e t c h hc hg theorem target {A B D₁ D₂ P₁ P₂ H₁ H₂ : C} {a : A ⟶ B} {r : B ⟶ P₂} {e : B ⟶ H₂} {g : H₂ ⟶ H₁} {t : A ⟶ D₂} {c₂ : D₂ ⟶ P₂} {b : P₂ ⟶ P₁} {d : D₂ ⟶ D₁} {c₁ : D₁ ⟶ P₁} {h : P₁ ⟶ H₁} (hc : a ≫ r = t ≫ c₂) (hb : c₂ ≫ b = d ≫ c₁) (hg : r ≫ b ≫ h = e ≫ g) : a ≫ e ≫ g = t ≫ d ≫ c₁ ≫ h := GeometricComparison.RefinedGlobalSquare.RefinedComparisonGlobalSquare.target a r e g t c₂ b d c₁ h hc hb hg end OAI.NumberTheory.PadicHodge.IntegralComparison.RefinedInferred.Comparison