Skip to content

Commit 4279b15

Browse files
leanprover-community-mathlib4-botkim-emnomeatamathlib4-botjcommelin
authored
chore: adaptations for nightly-2025-06-18 (#26077)
* bump toolchain * Adapt eqns * Revert "Adapt eqns" This reverts commit 34f1f7f. * Simply remove check for now * fix a bunch * fixes? * chore: adaptations for nightly-2025-06-04 * add `simp low` lemma `injOn_of_eq_iff_eq` * wip * wip * wip * fix * Trigger CI for leanprover-community/batteries#1220 * Merge master into nightly-testing * chore: bump to nightly-2025-06-05 * Kick CI * Bump lean4-cli * Bump import-graph * Kick CI * update lakefile * chore: use more robust syntax quotation in Shake * Trigger CI for leanprover/lean4#8419 * Revert "chore: use more robust syntax quotation in Shake" This reverts commit cd87328. * fix(Shake): fix import syntax @Kha this is deliberately using this approach because syntax quotations are also not robust but for a different reason: they fail to parse the new versions of the syntax (and do so at run time). And using all the optional doohickeys will not be future proof. The current setup is explicitly meant to ping me when there is a syntax change so I can evaluate the right way to handle it. In this case we want all the module options to be ignored (treated the same as a regular import for the purpose of dependency tracking), we don't want to fail. * cleanup lakefile * chore: bump to nightly-2025-06-06 * Update lean-toolchain for testing leanprover/lean4#8653 * fix * how did this get dropped?!?! * chore: bump to nightly-2025-06-07 * chore: bump to nightly-2025-06-08 * chore: bump to nightly-2025-06-09 * fix lakefile * fix lint-style for new Lean.Options API * chore: bump to nightly-2025-06-10 * chore: bump to nightly-2025-06-09 * merge lean-pr-testing-4 * chore: bump to nightly-2025-06-11 * chore: adaptations for nightly-2025-06-11 * Update Shake/Main.lean Co-authored-by: Johan Commelin <[email protected]> * Apply suggestions from code review * revert * chore: adaptations for nightly-2025-06-11 * cleanup grind tests * chore: bump to nightly-2025-06-12 * merge lean-pr-testing-8419 * chore: bump to nightly-2025-06-12 * merge lean-pr-testing-8653 * adaptation note * oops * chore: adaptations for nightly-2025-06-12 * remove nolint simpNF * remove spurious file * Update lean-toolchain for testing leanprover/lean4#8751 * fix * chore: bump to nightly-2025-06-13 * Merge master into nightly-testing * fix * remove upstreamed * drop no-op `show` * chore: bump to nightly-2025-06-14 * chore: bump to nightly-2025-06-15 * intentionally left blank * fix tests * chore: bump to nightly-2025-06-16 * fix upstream * fix * fix * fixes * chore: adaptations for nightly-2025-06-16 * chore: bump to nightly-2025-06-17 * fixes * more fixes * fixes! * more fixes! * hmm * chore: adaptations for nightly-2025-06-17 * chore: adaptations for nightly-2025-06-17 * chore: lint `show` (adaptation for leanprover/lean4#7395) (#25749) Adds `show` as an exception to the unused tactic linter and adds a separate linter for `show`s that should be replaced by `change`. Context: https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/unused.20tactic.20linter.20for.20.60show.60/with/523701633 Co-authored-by: Christian Merten <[email protected]> Co-authored-by: Kenny Lau <[email protected]> Co-authored-by: Fabrizio Barroero <[email protected]> Co-authored-by: Rob23oba <[email protected]> Co-authored-by: leanprover-community-mathlib4-bot <[email protected]> Co-authored-by: Rob23oba <[email protected]> Co-authored-by: Kim Morrison <[email protected]> * chore: bump to nightly-2025-06-18 * chore: adaptations for nightly-2025-06-18 --------- Co-authored-by: leanprover-community-mathlib4-bot <[email protected]> Co-authored-by: Kim Morrison <[email protected]> Co-authored-by: Joachim Breitner <[email protected]> Co-authored-by: mathlib4-bot <[email protected]> Co-authored-by: Johan Commelin <[email protected]> Co-authored-by: Jovan Gerbscheid <[email protected]> Co-authored-by: github-actions <[email protected]> Co-authored-by: Sebastian Ullrich <[email protected]> Co-authored-by: Mario Carneiro <[email protected]> Co-authored-by: sgouezel <[email protected]> Co-authored-by: Kyle Miller <[email protected]> Co-authored-by: Rob23oba <[email protected]> Co-authored-by: Rob23oba <[email protected]> Co-authored-by: Christian Merten <[email protected]> Co-authored-by: Kenny Lau <[email protected]> Co-authored-by: Fabrizio Barroero <[email protected]> Co-authored-by: Rob23oba <[email protected]>
1 parent 1861a8f commit 4279b15

File tree

338 files changed

+718
-609
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

338 files changed

+718
-609
lines changed

Counterexamples/DiscreteTopologyNonDiscreteUniformity.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ instance counterUniformity : UniformSpace ℕ := UniformSpace.ofCore counterCore
269269

270270
lemma HasBasis_counterUniformity :
271271
(uniformity ℕ).HasBasis (fun _ ↦ True) fundamentalEntourage := by
272-
show counterCoreUniformity.uniformity.HasBasis (fun _ ↦ True) fundamentalEntourage
272+
change counterCoreUniformity.uniformity.HasBasis (fun _ ↦ True) fundamentalEntourage
273273
simp only [Filter.hasBasis_iff, exists_and_left, true_and]
274274
intro T
275275
refine ⟨fun ⟨s, ⟨⟨r, hr⟩, hs⟩⟩ ↦ ⟨r, subset_of_eq_of_subset hr hs⟩ , fun ⟨n, hn⟩ ↦ ?_⟩
@@ -292,7 +292,7 @@ theorem TopIsDiscrete' : DiscreteTopology ℕ := by
292292
rw [mem_fundamentalEntourage]
293293
aesop
294294
· refine ⟨fundamentalEntourage (n + 1), ?_, ?_⟩
295-
· show fundamentalEntourage (n + 1) ∈ counterCoreUniformity.uniformity
295+
· change fundamentalEntourage (n + 1) ∈ counterCoreUniformity.uniformity
296296
exact @Filter.HasBasis.mem_of_mem (ℕ × ℕ) ℕ counterCoreUniformity.uniformity (fun _ ↦ True)
297297
fundamentalEntourage (n + 1) HasBasis_counterUniformity trivial
298298
· simp only [preimage_subset_iff, mem_fundamentalEntourage, add_le_iff_nonpos_right,

Mathlib/Algebra/Algebra/NonUnitalSubalgebra.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ protected def copy (S : NonUnitalSubalgebra R A) (s : Set A) (hs : s = ↑S) :
154154
NonUnitalSubalgebra R A :=
155155
{ S.toNonUnitalSubsemiring.copy s hs with
156156
smul_mem' := fun r a (ha : a ∈ s) => by
157-
show r • a ∈ s
157+
change r • a ∈ s
158158
rw [hs] at ha ⊢
159159
exact S.smul_mem' r ha }
160160

@@ -673,7 +673,7 @@ lemma adjoin_eq_span (s : Set A) : (adjoin R s).toSubmodule = span R (Subsemigro
673673
case Hsmul_r => exact fun r x y _ _ hxy ↦ by simpa [mul_smul_comm] using smul_mem _ _ hxy
674674
| smul r x _ hpx => exact smul_mem _ _ hpx
675675
· apply span_le.2 _
676-
show Subsemigroup.closure s ≤ (adjoin R s).toSubsemigroup
676+
change Subsemigroup.closure s ≤ (adjoin R s).toSubsemigroup
677677
exact Subsemigroup.closure_le.2 (subset_adjoin R)
678678

679679
variable (R A)

Mathlib/Algebra/Algebra/Operations.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ theorem map_op_mul :
437437
· simp_rw [map_le_iff_le_comap]
438438
refine mul_le.2 fun m hm n hn => ?_
439439
rw [mem_comap, map_equiv_eq_comap_symm, map_equiv_eq_comap_symm]
440-
show op n * op m ∈ _
440+
change op n * op m ∈ _
441441
exact mul_mem_mul hn hm
442442
· refine mul_le.2 (MulOpposite.rec' fun m hm => MulOpposite.rec' fun n hn => ?_)
443443
rw [Submodule.mem_map_equiv] at hm hn ⊢

Mathlib/Algebra/Algebra/Subalgebra/Operations.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ theorem mem_of_finset_sum_eq_one_of_pow_smul_mem
4949
let l' : ι → S' := fun x => ⟨l x, hl x⟩
5050
have e' : ∑ i ∈ ι', l' i * s' i = 1 := by
5151
ext
52-
show S'.subtype (∑ i ∈ ι', l' i * s' i) = 1
52+
change S'.subtype (∑ i ∈ ι', l' i * s' i) = 1
5353
simpa only [map_sum, map_mul] using e
5454
have : Ideal.span (s' '' ι') = ⊤ := by
5555
rw [Ideal.eq_top_iff_one, ← e']

Mathlib/Algebra/Algebra/Subalgebra/Pointwise.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ theorem mul_toSubmodule_le (S T : Subalgebra R A) :
2424
(Subalgebra.toSubmodule S)* (Subalgebra.toSubmodule T) ≤ Subalgebra.toSubmodule (S ⊔ T) := by
2525
rw [Submodule.mul_le]
2626
intro y hy z hz
27-
show y * z ∈ S ⊔ T
27+
change y * z ∈ S ⊔ T
2828
exact mul_mem (Algebra.mem_sup_left hy) (Algebra.mem_sup_right hz)
2929

3030
/-- As submodules, subalgebras are idempotent. -/

Mathlib/Algebra/Algebra/Unitization.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -562,12 +562,12 @@ instance instAlgebra : Algebra S (Unitization R A) where
562562
commutes' := fun s x => by
563563
induction x with
564564
| inl_add_inr =>
565-
show inl (algebraMap S R s) * _ = _ * inl (algebraMap S R s)
565+
change inl (algebraMap S R s) * _ = _ * inl (algebraMap S R s)
566566
rw [mul_add, add_mul, inl_mul_inl, inl_mul_inl, inl_mul_inr, inr_mul_inl, mul_comm]
567567
smul_def' := fun s x => by
568568
induction x with
569569
| inl_add_inr =>
570-
show _ = inl (algebraMap S R s) * _
570+
change _ = inl (algebraMap S R s) * _
571571
rw [mul_add, smul_add,Algebra.algebraMap_eq_smul_one, inl_mul_inl, inl_mul_inr,
572572
smul_one_mul, inl_smul, inr_smul, smul_one_smul]
573573

Mathlib/Algebra/Algebra/ZMod.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ abbrev algebra' (h : m ∣ n) : Algebra (ZMod n) R where
3131
commutes' := fun a r =>
3232
show (cast a * r : R) = r * cast a by
3333
rcases ZMod.intCast_surjective a with ⟨k, rfl⟩
34-
show ZMod.castHom h R k * r = r * ZMod.castHom h R k
34+
change ZMod.castHom h R k * r = r * ZMod.castHom h R k
3535
rw [map_intCast, Int.cast_comm]
3636
smul_def' := fun _ _ => rfl
3737

Mathlib/Algebra/BigOperators/Fin.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ theorem alternatingProd_eq_finset_prod {G : Type*} [DivisionCommMonoid G] :
717717
rw [alternatingProd, Finset.prod_eq_one]
718718
rintro ⟨i, ⟨⟩⟩
719719
| g::[] => by
720-
show g = ∏ i : Fin 1, [g][i] ^ (-1 : ℤ) ^ (i : ℕ)
720+
change g = ∏ i : Fin 1, [g][i] ^ (-1 : ℤ) ^ (i : ℕ)
721721
rw [Fin.prod_univ_succ]; simp
722722
| g::h::L =>
723723
calc g * h⁻¹ * L.alternatingProd

Mathlib/Algebra/Category/ModuleCat/Topology/Basic.lean

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ instance : (forget₂ (TopModuleCat R) TopCat).ReflectsIsomorphisms where
179179
reflects {X Y} f hf := by
180180
let e : X ≃L[R] Y :=
181181
{ __ := f.hom, __ := TopCat.homeoOfIso (asIso ((forget₂ (TopModuleCat R) TopCat).map f)) }
182-
show IsIso (ofIso e).hom
182+
change IsIso (ofIso e).hom
183183
infer_instance
184184

185185
@[simp]
@@ -230,7 +230,7 @@ def isColimit {J : Type*} [Category J] {F : J ⥤ TopModuleCat R}
230230
refine sInf_le ⟨continuousSMul_induced (M₂ := s.pt) (hc.desc ((forget₂ _ _).mapCocone s)).hom,
231231
continuousAdd_induced (N := s.pt) (hc.desc ((forget₂ _ _).mapCocone s)).hom, fun i ↦ ?_⟩
232232
rw [coinduced_le_iff_le_induced, induced_compose, ← continuous_iff_le_induced]
233-
show Continuous (X := F.obj i) (Y := s.pt)
233+
change Continuous (X := F.obj i) (Y := s.pt)
234234
(c.ι.app i ≫ hc.desc ((forget₂ _ (ModuleCat R)).mapCocone s)).hom
235235
rw [hc.fac]
236236
exact (s.ι.app i).hom.2
@@ -290,7 +290,7 @@ def isLimit {J : Type*} [Category J] {F : J ⥤ TopModuleCat R}
290290
rw [continuous_iff_coinduced_le]
291291
refine le_iInf fun i ↦ ?_
292292
rw [coinduced_le_iff_le_induced, induced_compose, ← continuous_iff_le_induced]
293-
show Continuous (X := s.pt) (Y := F.obj i)
293+
change Continuous (X := s.pt) (Y := F.obj i)
294294
(hc.lift ((forget₂ _ (ModuleCat R)).mapCone s) ≫ c.π.app i).hom
295295
rw [hc.fac]
296296
exact (s.π.app i).hom.2

Mathlib/Algebra/Category/ModuleCat/Topology/Homology.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ instance : CategoryWithHomology (TopModuleCat R) := by
9494
let F := ShortComplex.leftRightHomologyComparison' D₁ D₂
9595
suffices IsIso F from ⟨⟨.ofIsIsoLeftRightHomologyComparison' D₁ D₂⟩⟩
9696
have hF : Function.Bijective F := by
97-
show Function.Bijective ((forget₂ _ (ModuleCat R)).map F)
97+
change Function.Bijective ((forget₂ _ (ModuleCat R)).map F)
9898
rw [← ConcreteCategory.isIso_iff_bijective, ShortComplex.map_leftRightHomologyComparison']
9999
infer_instance
100100
have hF' : Topology.IsEmbedding F := by

0 commit comments

Comments
 (0)