Skip to content

Commit 1a5c8fe

Browse files
kim-emleanprover-community-mathlib4-botmathlib4-bot
committed
chore: bump toolchain to v4.22.0-rc2 (leanprover-community#26564)
This merged the reviewed changes from `bump/v4.22.0`, and updates Mathlib to use the `v4.22.0-rc2` toolchain. Co-authored-by: Kim Morrison <477956+kim-em@users.noreply.github.com> Co-authored-by: leanprover-community-mathlib4-bot <129911861+leanprover-community-mathlib4-bot@users.noreply.github.com> Co-authored-by: mathlib4-bot <github-mathlib4-bot@leanprover.zulipchat.com>
1 parent 96db0ce commit 1a5c8fe

File tree

528 files changed

+1627
-1256
lines changed

Some content is hidden

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

528 files changed

+1627
-1256
lines changed

Archive/Imo/Imo1987Q1.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def fixedPointsEquiv : { σx : α × Perm α // σx.2 σx.1 = σx.1 } ≃ Σ x :
4646
theorem card_fixed_points :
4747
card { σx : α × Perm α // σx.2 σx.1 = σx.1 } = card α * (card α - 1)! := by
4848
simp only [card_congr (fixedPointsEquiv α), card_sigma, card_perm]
49-
have (x) : ({x}ᶜ : Set α) = Finset.filter (· ≠ x) Finset.univ := by
49+
have (x : _) : ({x}ᶜ : Set α) = Finset.filter (· ≠ x) Finset.univ := by
5050
ext; simp
5151
simp [this]
5252

Cache/Lean.lean

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ Released under Apache 2.0 license as described in the file LICENSE.
44
Authors: Jon Eugster, Arthur Paulino
55
-/
66

7-
import Lean.Util.Paths
7+
import Lean.Data.Json
8+
import Lean.Util.Path
89

910
/-!
1011
# Helper Functions

Counterexamples/DiscreteTopologyNonDiscreteUniformity.lean

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

269269
lemma HasBasis_counterUniformity :
270270
(uniformity ℕ).HasBasis (fun _ ↦ True) fundamentalEntourage := by
271-
show counterCoreUniformity.uniformity.HasBasis (fun _ ↦ True) fundamentalEntourage
271+
change counterCoreUniformity.uniformity.HasBasis (fun _ ↦ True) fundamentalEntourage
272272
simp only [Filter.hasBasis_iff, true_and]
273273
intro T
274274
refine ⟨fun ⟨s, ⟨⟨r, hr⟩, hs⟩⟩ ↦ ⟨r, subset_of_eq_of_subset hr hs⟩ , fun ⟨n, hn⟩ ↦ ?_⟩
@@ -291,7 +291,7 @@ theorem TopIsDiscrete' : DiscreteTopology ℕ := by
291291
rw [mem_fundamentalEntourage]
292292
aesop
293293
· refine ⟨fundamentalEntourage (n + 1), ?_, ?_⟩
294-
· show fundamentalEntourage (n + 1) ∈ counterCoreUniformity.uniformity
294+
· change fundamentalEntourage (n + 1) ∈ counterCoreUniformity.uniformity
295295
exact @Filter.HasBasis.mem_of_mem (ℕ × ℕ) ℕ counterCoreUniformity.uniformity (fun _ ↦ True)
296296
fundamentalEntourage (n + 1) HasBasis_counterUniformity trivial
297297
· 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

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

682682
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
@@ -712,7 +712,7 @@ theorem alternatingProd_eq_finset_prod {G : Type*} [DivisionCommMonoid G] :
712712
rw [alternatingProd, Finset.prod_eq_one]
713713
rintro ⟨i, ⟨⟩⟩
714714
| g::[] => by
715-
show g = ∏ i : Fin 1, [g][i] ^ (-1 : ℤ) ^ (i : ℕ)
715+
change g = ∏ i : Fin 1, [g][i] ^ (-1 : ℤ) ^ (i : ℕ)
716716
rw [Fin.prod_univ_succ]; simp
717717
| g::h::L =>
718718
calc g * h⁻¹ * L.alternatingProd

0 commit comments

Comments
 (0)