@@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
44Authors: Jonas van der Schaaf
55-/
66import Mathlib.Condensed.Light.InternallyProjective
7+ import Mathlib.Topology.FiberPartition
78import LeanCondensed.Projects.LightProfiniteInjective
89import LeanCondensed.Projects.PreservesCoprod
910import LeanCondensed.Projects.Epi
@@ -180,16 +181,14 @@ lemma refinedCover {S T : LightProfinite} (π : T ⟶ S ⊗ ℕ∪{∞}) [Epi π
180181 have : Function.Surjective π := by rwa [← LightProfinite.epi_iff_surjective]
181182 let p (s : S) (n : ℕ∪{∞}) : T := (this (s, n)).choose
182183 have hp (s : S) (n : ℕ∪{∞}) : π (p s n) = (s, n) := (this (s, n)).choose_spec
183- refine ⟨⟨fun n ↦ ⟨p y n, ?_⟩, ?_⟩, ?_⟩
184- · simp [hp]; rfl
185- · simp [hp]
186- · simp [y', hp]
184+ exact ⟨⟨fun n ↦ ⟨p y n, by simp [hp]; rfl⟩, by simp [hp]⟩, by simp [y', hp]⟩
187185 · simp [π_tilde, CompHausLike.pullback.condition]
188- · exact ⟨⟨⟨sectionOfFibreIncl π_tilde σ' hσ', .subtype_mk (.subtype_mk (by fun_prop) _) _⟩⟩, rfl⟩
186+ · exact ⟨TopCat.ofHom ⟨(sectionOfFibreIncl π_tilde σ' hσ'),
187+ (.subtype_mk (.subtype_mk (by fun_prop) _) _)⟩, rfl⟩
189188 · rw [LightProfinite.epi_iff_surjective]
190189 exact smartCoverToFun_surjective _ _ hσ hσ'
191190
192- private lemma comm_sq {X Y : LightCondMod R} (p : X ⟶ Y) [hp : Epi p] {S : LightProfinite}
191+ lemma comm_sq {X Y : LightCondMod R} (p : X ⟶ Y) [hp : Epi p] {S : LightProfinite}
193192 (f : (free R).obj (S).toCondensed ⟶ Y) :
194193 ∃ (T : LightProfinite) (π : T ⟶ S) (g : ((free R).obj T.toCondensed) ⟶ X),
195194 Epi π ∧ (lightProfiniteToLightCondSet ⋙ (free R)).map π ≫ f = g ≫ p := by
@@ -232,22 +231,23 @@ noncomputable def c {X : LightCondMod R} {S T : LightProfinite} (π : T ⟶ (S
232231 refine parallelPairNatTrans (_ ≫ g_tilde) g_tilde ?_ rfl
233232 rw [← cancel_epi ((lightProfiniteToLightCondSet ⋙ (free R)).map <| smartCoverNew π)]
234233 apply (isColimitOfPreserves (lightProfiniteToLightCondSet ⋙ (free R))
235- (CompHausLike.coprod.isColimit _ _)).hom_ext
234+ (CompHausLike.coproductIsColimit _ _)).hom_ext
236235 rintro ⟨⟨⟩⟩
237236 · simp [← Functor.map_comp_assoc, ← Functor.map_comp]
238237 rfl
239- · simp only [comp_obj, pair_obj_right, const_obj_obj, mapCocone_pt, BinaryCofan.mk_pt,
240- mapCocone_ι_app, BinaryCofan.mk_inr, Functor.comp_map, parallelPair_obj_zero,
241- parallelPair_obj_one, parallelPair_map_left, ← map_comp_assoc, ← Functor.map_comp,
242- parallelPair_map_right, const_obj_map, Category.comp_id]
243- have : smartCoverNew π =
244- CompHausLike.coprod.desc (CompHausLike.pullback.lift _ _ (𝟙 T) (𝟙 T) (by simp))
245- (CompHausLike.pullback.lift _ _ ((CompHausLike.pullback.fst _ _) ≫ fibre_incl _ _)
246- ((CompHausLike.pullback.snd _ _) ≫ fibre_incl _ _)
247- (by simp [CompHausLike.pullback.condition])) := rfl
248- simp only [this, CompHausLike.coprod.inr_desc_assoc, CompHausLike.pullback.lift_fst, comp_obj,
249- Functor.comp_map, Preadditive.comp_add, Preadditive.comp_sub, ← map_comp_assoc,
250- ← Functor.map_comp, Category.assoc, CompHausLike.pullback.lift_snd, g_tilde]
238+ · simp only [comp_obj, pair_obj_right, const_obj_obj, mapCocone_pt, mapCocone_ι_app,
239+ Functor.comp_map, parallelPair_obj_zero, parallelPair_obj_one, parallelPair_map_left,
240+ ← map_comp_assoc, ← Functor.map_comp, parallelPair_map_right, const_obj_map, Category.comp_id]
241+ have : smartCoverNew π = (BinaryCofan.IsColimit.desc' (CompHausLike.coproductIsColimit _ _)
242+ (CompHausLike.pullback.lift _ _ (𝟙 T) (𝟙 T) (by simp))
243+ (CompHausLike.pullback.lift _ _ ((CompHausLike.pullback.fst _ _) ≫ fibre_incl _ _)
244+ ((CompHausLike.pullback.snd _ _) ≫ fibre_incl _ _)
245+ (by simp [CompHausLike.pullback.condition]))).val := rfl
246+ simp only [this, pair_obj_left, const_obj_obj, pair_obj_right,
247+ BinaryCofan.IsColimit.desc'_coe, IsColimit.fac_assoc, BinaryCofan.mk_pt, BinaryCofan.mk_inr,
248+ CompHausLike.pullback.lift_fst, comp_obj, Functor.comp_map, Preadditive.comp_add,
249+ Preadditive.comp_sub, ← map_comp_assoc, ← Functor.map_comp, Category.assoc,
250+ CompHausLike.pullback.lift_snd, g_tilde]
251251 simp only [← Functor.comp_map, ← Category.assoc, hr, Category.id_comp, sub_self, zero_add]
252252 simp [CompHausLike.pullback.condition]
253253
0 commit comments