introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
3.86 kB
21
def IntersectionModel.FiniteIntersectionModel.overlapRecovery : (Finite.AffineIntersections.finiteIntersectionChart X (Unions.finiteIntersectionUnion X T U)).left ⟶
    M.overlapPullback hST hSU :=
body · 1 line
  IntersectionModel.finiteIntersectionModelMap X M (Unions.finiteIntersectionUnion X T U) ≫ M.overlapComparison hST hSU
25
theorem IntersectionModel.FiniteIntersectionModel.overlapRecovery_fst :
    M.overlapRecovery hST hSU ≫ pullback.fst (M.inclusion hST) (M.inclusion hSU) =
      (Arrows.finiteIntersectionArrow X (Unions.finiteIntersection_subset_union_left X T U)).left ≫
        IntersectionModel.finiteIntersectionModelMap X M T := by
proof · 3 lines
  change (IntersectionModel.finiteIntersectionModelMap X M _ ≫ M.overlapComparison hST hSU) ≫ _ = _
  rw [Category.assoc, M.overlapComparison_fst]
  exact M.inclusion_recovery _
33
theorem IntersectionModel.FiniteIntersectionModel.overlapRecovery_snd :
    M.overlapRecovery hST hSU ≫ pullback.snd (M.inclusion hST) (M.inclusion hSU) =
      (Arrows.finiteIntersectionArrow X (Unions.finiteIntersection_subset_union_right X T U)).left ≫
        IntersectionModel.finiteIntersectionModelMap X M U := by
proof · 3 lines
  change (IntersectionModel.finiteIntersectionModelMap X M _ ≫ M.overlapComparison hST hSU) ≫ _ = _
  rw [Category.assoc, M.overlapComparison_snd]
  exact M.inclusion_recovery _
41
theorem IntersectionModel.FiniteIntersectionModel.overlapRecovery_isPullback :
    IsPullback (M.overlapRecovery hST hSU)
      (Finite.AffineIntersections.finiteIntersectionChart X (Unions.finiteIntersectionUnion X T U)).hom
      (M.overlapMap hST hSU) (Spec.map (CommRingCat.ofHom M.coefficients.val.toRingHom)) := by
proof · 15 lines
  let hT := Unions.finiteIntersection_subset_union_left X T U
  let hU := Unions.finiteIntersection_subset_union_right X T U
  have h := Cartesian.DiagramComparison.isPullback_comparison_recovery
    (Arrows.finiteIntersectionArrow X hT).left (Arrows.finiteIntersectionArrow X hU).left
    (Arrows.finiteIntersectionArrow X hST).left (Arrows.finiteIntersectionArrow X hSU).left
    (IntersectionModel.finiteIntersectionModelMap X M T) (IntersectionModel.finiteIntersectionModelMap X M U)
    (IntersectionModel.finiteIntersectionModelMap X M S) (M.inclusion hST) (M.inclusion hSU)
    (Finite.AffineIntersections.finiteIntersectionChart X U).hom (M.chartMap U)
    (Spec.map (CommRingCat.ofHom M.coefficients.val.toRingHom))
    (Pullbacks.finiteIntersection_isPullback X hST hSU) (M.inclusion_isPullback hST)
    (IntersectionModel.finiteIntersectionModelMap_isPullback X M U) (M.inclusion_recovery hSU).symm
    (M.overlapRecovery hST hSU) (M.overlapRecovery_fst hST hSU) (M.overlapRecovery_snd hST hSU)
  exact (congrArg (fun b => IsPullback (M.overlapRecovery hST hSU) b
      (M.overlapMap hST hSU) (Spec.map (CommRingCat.ofHom M.coefficients.val.toRingHom)))
    (Arrows.finiteIntersectionArrow X hU).w).mp h