Skip to content

Commit

Permalink
chore: Remove generalize' (#11685)
Browse files Browse the repository at this point in the history
  • Loading branch information
erdOne committed Apr 7, 2024
1 parent 053d79f commit 141a246
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 19 deletions.
12 changes: 4 additions & 8 deletions Mathlib/Analysis/BoxIntegral/Integrability.lean
Expand Up @@ -141,19 +141,15 @@ theorem HasIntegral.of_aeEq_zero {l : IntegrationParams} {I : Box ι} {f : (ι
exact hJ.2 ▸ Nat.le_ceil _
refine' (norm_sum_le_of_le _ this).trans _; clear this
rw [← sum_mul, ← Prepartition.measure_iUnion_toReal]
-- Adaption note: v4.7.0-rc1
-- The behaviour of `generalize` was changed in https://github.com/leanprover/lean4/pull/3575
-- to use transparancy `instances` (rather than `default`)
-- `generalize'` is a temporary backwards compatibility shim.
-- Hopefully we will be able to refactor this proof to use `generalize` again, and then drop
-- `generalize'`.
generalize' hm : μ (π.filter fun J => N (π.tag J) = n).iUnion = m
let m := μ (π.filter fun J => N (π.tag J) = n).iUnion
show m.toReal * ↑n ≤ ↑(δ n)
have : m < δ n / n := by
simp only [Measure.restrict_apply (hUo _).measurableSet] at hμU
refine' hm ▸ (measure_mono _).trans_lt (hμU _)
refine' (measure_mono _).trans_lt (hμU _)
simp only [Set.subset_def, TaggedPrepartition.mem_iUnion, TaggedPrepartition.mem_filter]
rintro x ⟨J, ⟨hJ, rfl⟩, hx⟩
exact ⟨hrU _ (hπ.1 _ hJ (Box.coe_subset_Icc hx)), π.le_of_mem' J hJ hx⟩
clear_value m
lift m to ℝ≥0 using ne_top_of_lt this
rw [ENNReal.coe_toReal, ← NNReal.coe_nat_cast, ← NNReal.coe_mul, NNReal.coe_le_coe, ←
ENNReal.coe_le_coe, ENNReal.coe_mul, ENNReal.coe_nat, mul_comm]
Expand Down
14 changes: 3 additions & 11 deletions Mathlib/Topology/Gluing.lean
Expand Up @@ -210,18 +210,10 @@ theorem ι_eq_iff_rel (i j : D.J) (x : D.U i) (y : D.U j) :
rw [← (InvImage.equivalence _ _ D.rel_equiv).eqvGen_iff]
refine' EqvGen.mono _ (D.eqvGen_of_π_eq h : _)
rintro _ _ ⟨x⟩
rw [← show (sigmaIsoSigma.{u, u} _).inv _ = x from
ConcreteCategory.congr_hom (sigmaIsoSigma.{u, u} _).hom_inv_id x]
-- Adaption note: v4.7.0-rc1
-- The behaviour of `generalize` was changed in https://github.com/leanprover/lean4/pull/3575
-- to use transparancy `instances` (rather than `default`)
-- `generalize'` is a temporary backwards compatibility shim.
-- Hopefully we will be able to refactor this proof to use `generalize` again, and then drop
-- `generalize'`.
generalize' h : (sigmaIsoSigma.{u, u} D.V).hom x = x'
obtain ⟨⟨i, j⟩, y⟩ := x'
obtain ⟨⟨⟨i, j⟩, y⟩, rfl⟩ :=
(ConcreteCategory.bijective_of_isIso (sigmaIsoSigma.{u, u} _).inv).2 x
unfold InvImage MultispanIndex.fstSigmaMap MultispanIndex.sndSigmaMap
simp only [Opens.inclusion_apply, TopCat.comp_app, sigmaIsoSigma_inv_apply,
simp only [forget_map_eq_coe, Opens.inclusion_apply, TopCat.comp_app, sigmaIsoSigma_inv_apply,
Cofan.mk_ι_app]
rw [← comp_apply, colimit.ι_desc, ← comp_apply, colimit.ι_desc]
erw [sigmaIsoSigma_hom_ι_apply, sigmaIsoSigma_hom_ι_apply]
Expand Down

0 comments on commit 141a246

Please sign in to comment.