Module

MorphismPropertyWidePullbackBase.lean

Nyll.SchemeTheory.CategoryTheory.MorphismPropertyWidePullbackBase
5 declarations indexed from sourceView source ↗

Algebra, divisors, and base change

Finite wide pullbacks decompose into binary pullbacks, preserving the required morphism properties.

Declarations

AlgebraicCurves.Foundations.CategoryTheory.Proofs.CategoryTheory_MorphismProperty_widePullback_base.WidePullbackAux.isIso_base_of_isEmpty
Source context 11 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Foundations.CategoryTheory.Proofs
namespace CategoryTheory_MorphismProperty_widePullback_base
universe v u
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
namespace WidePullbackAux
open _root_.CategoryTheory.Limits.WidePullback
variable {C : Type u} [Category.{v} C] [HasPullbacks C] [HasFiniteWidePullbacks C]
omit [HasPullbacks C] in
theorem isIso_base_of_isEmpty {J : Type} [Finite J] [IsEmpty J] {S : C} (X : J → C)
    (f : ∀ j, X j ⟶ S) : IsIso (WidePullback.base f)
AlgebraicCurves.Foundations.CategoryTheory.Proofs.CategoryTheory_MorphismProperty_widePullback_base.WidePullbackAux.succIsoPullback

The isomorphism expressing a nonempty finite wide pullback as a pullback of its first leg and the remaining wide pullback.

Source context 10 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Foundations.CategoryTheory.Proofs
namespace CategoryTheory_MorphismProperty_widePullback_base
universe v u
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
namespace WidePullbackAux
open _root_.CategoryTheory.Limits.WidePullback
variable {C : Type u} [Category.{v} C] [HasPullbacks C] [HasFiniteWidePullbacks C]
def succIsoPullback {S : C} {r : ℕ} (X : Fin (r + 1) → C) (f : ∀ i, X i ⟶ S) :
    widePullback S X f ≅
      pullback (f 0) (WidePullback.base fun i : Fin r => f i.succ) where
  hom := pullback.lift (WidePullback.π f 0)
    (WidePullback.lift (WidePullback.base f) (fun i => WidePullback.π f i.succ)
      (fun i => WidePullback.π_arrow f i.succ))
    (by rw [WidePullback.π_arrow, WidePullback.lift_base])
  inv := WidePullback.lift
    (pullback.snd _ _ ≫ WidePullback.base fun i : Fin r => f i.succ)
    (fun j => Fin.cases (pullback.fst _ _)
      (fun i => pullback.snd _ _ ≫ WidePullback.π (fun i : Fin r => f i.succ) i) j)
    (fun j => by
      cases j using Fin.cases with
      | zero => exact pullback.condition
      | succ i =>
        exact (Category.assoc _ _ _).trans
          (congrArg (pullback.snd _ _ ≫ ·) (WidePullback.π_arrow _ i)))
  hom_inv_id := by
    apply WidePullback.hom_ext
    · intro j
      cases j using Fin.cases with
      | zero =>
        simp only [Category.assoc, WidePullback.lift_π, Fin.cases_zero,
          pullback.lift_fst, Category.id_comp]
      | succ i =>
        simp only [Category.assoc, WidePullback.lift_π, Fin.cases_succ,
          pullback.lift_snd_assoc, Category.id_comp]
    · simp only [Category.assoc, WidePullback.lift_base,
        pullback.lift_snd_assoc, Category.id_comp]
  inv_hom_id := by
    apply pullback.hom_ext
    · simp only [Category.assoc, pullback.lift_fst, WidePullback.lift_π,
        Fin.cases_zero, Category.id_comp]
    · apply WidePullback.hom_ext
      · intro i
        simp only [Category.assoc, pullback.lift_snd_assoc, WidePullback.lift_π,
          Fin.cases_succ, Category.id_comp]
      · simp only [Category.assoc, pullback.lift_snd_assoc, WidePullback.lift_base,
          Category.id_comp]
AlgebraicCurves.Foundations.CategoryTheory.Proofs.CategoryTheory_MorphismProperty_widePullback_base.WidePullbackAux.succIsoPullback_hom_snd_base
Source context 10 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Foundations.CategoryTheory.Proofs
namespace CategoryTheory_MorphismProperty_widePullback_base
universe v u
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
namespace WidePullbackAux
open _root_.CategoryTheory.Limits.WidePullback
variable {C : Type u} [Category.{v} C] [HasPullbacks C] [HasFiniteWidePullbacks C]
theorem succIsoPullback_hom_snd_base {S : C} {r : ℕ} (X : Fin (r + 1) → C) (f : ∀ i, X i ⟶ S) :
    (succIsoPullback X f).hom ≫ pullback.snd _ _ ≫ (WidePullback.base fun i : Fin r => f i.succ) =
      WidePullback.base f := by
  simp only [succIsoPullback, pullback.lift_snd_assoc, WidePullback.lift_base]
AlgebraicCurves.Foundations.CategoryTheory.Proofs.CategoryTheory_MorphismProperty_widePullback_base.MorphismPropertyAux.widePullback_base_aux
Source context 10 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Foundations.CategoryTheory.Proofs
namespace CategoryTheory_MorphismProperty_widePullback_base
universe v u
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
namespace MorphismPropertyAux
open _root_.CategoryTheory.MorphismProperty
variable {C : Type u} [Category.{v} C] [HasPullbacks C] [HasFiniteWidePullbacks C]
theorem widePullback_base_aux {P : MorphismProperty C} [P.IsMultiplicative]
  [P.IsStableUnderBaseChange]
    {S : C} : ∀ {r : ℕ} (X : Fin r → C) (f : ∀ i, X i ⟶ S), (∀ i, P (f i)) →
      P (WidePullback.base f)
  | 0, X, f, _ => by
    have := WidePullbackAux.isIso_base_of_isEmpty X f
    exact P.of_isIso _
  | r + 1, X, f, hf => by
    rw [← WidePullbackAux.succIsoPullback_hom_snd_base X f, P.cancel_left_of_respectsIso]
    exact P.comp_mem _ _ (P.pullback_snd _ _ (hf 0))
      (widePullback_base_aux (fun i => X i.succ) (fun i => f i.succ) fun i => hf i.succ)
CategoryTheory.MorphismProperty.widePullback_base
Source context 7 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Foundations.CategoryTheory.Proofs
namespace CategoryTheory_MorphismProperty_widePullback_base
universe v u
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
theorem _root_.CategoryTheory.MorphismProperty.widePullback_base
    {C : Type u} [Category.{v} C] [HasPullbacks C] [HasFiniteWidePullbacks C]
    {P : MorphismProperty C} [P.IsMultiplicative] [P.IsStableUnderBaseChange]
    {S : C} {r : ℕ} (X : Fin r → C) (f : ∀ i, X i ⟶ S) (hf : ∀ i, P (f i)) :
    P (WidePullback.base f)