Skip to content

Commit 49764fe

Browse files
authored
Merge branch 'master' into feature/group-theory/commutator-le-sup
2 parents 9cffbe8 + 54f98fd commit 49764fe

319 files changed

Lines changed: 6665 additions & 2412 deletions

File tree

Some content is hidden

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

.github/actions/get-mathlib-ci/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ inputs:
1010
# Default pinned commit used by workflows unless they explicitly override.
1111
# Update this ref as needed to pick up changes to mathlib-ci scripts
1212
# This is also updated automatically by .github/workflows/update_dependencies.yml
13-
default: 99a8d566da03485d4e08fa0a85e38200f2d4e964
13+
default: 78f34ded6a5f5aa11ea5b7c3120fe5d8422db1da
1414
path:
1515
description: Checkout destination path.
1616
required: false

.github/workflows/labels_from_comment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
steps:
3030
- name: Add / remove label based on comment
3131
run: |
32-
labelArray=("awaiting-author" "awaiting-zulip" "WIP" "easy" "please-adopt" "help-wanted" "CI" "brownian" "carleson" "CFT" "FLT" "infinity-cosmos" "sphere-packing" "toric" "IMO" "t-algebra" "t-algebraic-geometry" "t-algebraic-topology" "t-analysis" "t-category-theory" "t-combinatorics" "t-computability" "t-condensed" "t-convex-geometry" "t-data" "t-differential-geometry" "t-dynamics" "t-euclidean-geometry" "t-geometric-group-theory" "t-group-theory" "t-linter" "t-logic" "t-measure-probability" "t-meta" "t-number-theory" "t-order" "t-ring-theory" "t-set-theory" "t-topology")
32+
labelArray=("awaiting-author" "awaiting-zulip" "WIP" "easy" "please-adopt" "help-wanted" "CI" "brownian" "carleson" "CFT" "FLT" "infinity-cosmos" "sphere-packing" "toric" "LLM-generated" "IMO" "t-algebra" "t-algebraic-geometry" "t-algebraic-topology" "t-analysis" "t-category-theory" "t-combinatorics" "t-computability" "t-condensed" "t-convex-geometry" "t-data" "t-differential-geometry" "t-dynamics" "t-euclidean-geometry" "t-geometric-group-theory" "t-group-theory" "t-linter" "t-logic" "t-measure-probability" "t-meta" "t-number-theory" "t-order" "t-ring-theory" "t-set-theory" "t-topology")
3333
3434
# we strip `\r` since line endings from GitHub contain this character
3535
COMMENT="${COMMENT//$'\r'/}"

.github/workflows/shake.yaml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,15 @@ jobs:
3535
use-github-cache: false
3636
use-mathlib-cache: true
3737

38+
# - name: lake build
39+
# run: |
40+
# lake build Archive Counterexamples
41+
3842
- name: lake shake
3943
id: shake
4044
run: |
41-
lake shake --add-public --keep-implied --keep-prefix --fix --explain > explain.txt 2>&1
45+
# Add back Archive and Counterexamples when they've been modulized
46+
lake shake --add-public --keep-implied --keep-prefix --fix --explain Mathlib > explain.txt 2>&1
4247
if git diff --quiet; then
4348
echo "changed=false" >> "$GITHUB_OUTPUT"
4449
else
@@ -53,12 +58,17 @@ jobs:
5358
5459
- name: Upload explain.txt
5560
id: upload-artifact
56-
if: steps.shake.outputs.changed == 'true'
61+
if: failure() || steps.shake.outputs.changed == 'true'
5762
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
5863
with:
5964
name: shake-explain
6065
path: explain.txt
6166

67+
- name: Cleanup explain.txt
68+
if: steps.shake.outputs.changed == 'true'
69+
run: |
70+
rm -f explain.txt
71+
6272
- name: Build PR body
6373
id: pr_body
6474
if: steps.shake.outputs.changed == 'true' && toJson(inputs.dry_run) != 'true'
@@ -118,7 +128,7 @@ jobs:
118128
api-key: ${{ secrets.ZULIP_API_KEY }}
119129
email: 'github-mathlib4-bot@leanprover.zulipchat.com'
120130
organization-url: 'https://leanprover.zulipchat.com'
121-
to: 'nightly-testing'
131+
to: 'nightly-testing-mathlib'
122132
type: 'stream'
123133
topic: 'Mathlib `shake --fix`'
124134
content: |
@@ -134,7 +144,7 @@ jobs:
134144
api-key: ${{ secrets.ZULIP_API_KEY }}
135145
email: 'github-mathlib4-bot@leanprover.zulipchat.com'
136146
organization-url: 'https://leanprover.zulipchat.com'
137-
to: 'nightly-testing'
147+
to: 'nightly-testing-mathlib'
138148
type: 'stream'
139149
topic: 'Mathlib `shake --fix`'
140150
content: |

Archive/Imo/Imo2024Q5.lean

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -938,8 +938,7 @@ lemma winningStrategy_play_one_eq_none_or_play_two_eq_none_of_edge_zero (hN : 2
938938
lia
939939
· simp at hm
940940
exact m.notMem_monsterCells_of_fst_eq_zero rfl hm
941-
· simp at h
942-
lia
941+
· simp [eqComm] at h
943942
· dsimp only [Nat.reduceAdd, Nat.reduceDiv, Fin.mk_one] at hm
944943
have h1N : 1 ≤ N := by lia
945944
rw [m.mk_mem_monsterCells_iff_of_le (le_refl _) h1N] at hm

Cache/Requests.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def findMathlibRemote (mathlibDepPath : FilePath) : IO String := do
9494
let remoteUrl := parts[1]!.takeWhile (· != ' ') |>.copy -- Remove (fetch) or (push) suffix
9595

9696
-- Check if this remote points to leanprover-community/mathlib4
97-
let isMathlibRepo := remoteUrl.containsSubstr "leanprover-community/mathlib4"
97+
let isMathlibRepo := remoteUrl.contains "leanprover-community/mathlib4"
9898

9999
if isMathlibRepo then
100100
if remoteName == "origin" then

Mathlib.lean

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,7 @@ public import Mathlib.Algebra.Homology.LeftResolution.Transport
652652
public import Mathlib.Algebra.Homology.Linear
653653
public import Mathlib.Algebra.Homology.LocalCohomology
654654
public import Mathlib.Algebra.Homology.Localization
655+
public import Mathlib.Algebra.Homology.ModelCategory.Injective
655656
public import Mathlib.Algebra.Homology.ModelCategory.Lifting
656657
public import Mathlib.Algebra.Homology.Monoidal
657658
public import Mathlib.Algebra.Homology.Opposite
@@ -1323,6 +1324,7 @@ public import Mathlib.AlgebraicGeometry.AffineSpace
13231324
public import Mathlib.AlgebraicGeometry.AffineTransitionLimit
13241325
public import Mathlib.AlgebraicGeometry.AlgClosed.Basic
13251326
public import Mathlib.AlgebraicGeometry.Artinian
1327+
public import Mathlib.AlgebraicGeometry.Birational.RationalMap
13261328
public import Mathlib.AlgebraicGeometry.ColimitsOver
13271329
public import Mathlib.AlgebraicGeometry.Cover.Directed
13281330
public import Mathlib.AlgebraicGeometry.Cover.MorphismProperty
@@ -1423,7 +1425,6 @@ public import Mathlib.AlgebraicGeometry.Properties
14231425
public import Mathlib.AlgebraicGeometry.PullbackCarrier
14241426
public import Mathlib.AlgebraicGeometry.Pullbacks
14251427
public import Mathlib.AlgebraicGeometry.QuasiAffine
1426-
public import Mathlib.AlgebraicGeometry.RationalMap
14271428
public import Mathlib.AlgebraicGeometry.RelativeGluing
14281429
public import Mathlib.AlgebraicGeometry.ResidueField
14291430
public import Mathlib.AlgebraicGeometry.Restrict
@@ -1554,6 +1555,7 @@ public import Mathlib.AlgebraicTopology.SimplicialSet.HoFunctorMonoidal
15541555
public import Mathlib.AlgebraicTopology.SimplicialSet.Homology.Basic
15551556
public import Mathlib.AlgebraicTopology.SimplicialSet.Homology.HomologyZero
15561557
public import Mathlib.AlgebraicTopology.SimplicialSet.Homology.HomotopyInvariance
1558+
public import Mathlib.AlgebraicTopology.SimplicialSet.Homology.Nondegenerate
15571559
public import Mathlib.AlgebraicTopology.SimplicialSet.Homotopy
15581560
public import Mathlib.AlgebraicTopology.SimplicialSet.HomotopyCat
15591561
public import Mathlib.AlgebraicTopology.SimplicialSet.Horn
@@ -1816,6 +1818,7 @@ public import Mathlib.Analysis.Complex.Arg
18161818
public import Mathlib.Analysis.Complex.Asymptotics
18171819
public import Mathlib.Analysis.Complex.Basic
18181820
public import Mathlib.Analysis.Complex.BorelCaratheodory
1821+
public import Mathlib.Analysis.Complex.BranchLogRoot
18191822
public import Mathlib.Analysis.Complex.CanonicalDecomposition
18201823
public import Mathlib.Analysis.Complex.Cardinality
18211824
public import Mathlib.Analysis.Complex.CauchyIntegral
@@ -1863,6 +1866,7 @@ public import Mathlib.Analysis.Complex.Trigonometric
18631866
public import Mathlib.Analysis.Complex.UnitDisc.Basic
18641867
public import Mathlib.Analysis.Complex.UpperHalfPlane.Basic
18651868
public import Mathlib.Analysis.Complex.UpperHalfPlane.Exp
1869+
public import Mathlib.Analysis.Complex.UpperHalfPlane.FixedPoints
18661870
public import Mathlib.Analysis.Complex.UpperHalfPlane.FunctionsBoundedAtInfty
18671871
public import Mathlib.Analysis.Complex.UpperHalfPlane.Manifold
18681872
public import Mathlib.Analysis.Complex.UpperHalfPlane.Measure
@@ -2731,6 +2735,7 @@ public import Mathlib.CategoryTheory.GuitartExact.HorizontalComposition
27312735
public import Mathlib.CategoryTheory.GuitartExact.KanExtension
27322736
public import Mathlib.CategoryTheory.GuitartExact.Opposite
27332737
public import Mathlib.CategoryTheory.GuitartExact.Over
2738+
public import Mathlib.CategoryTheory.GuitartExact.Quotient
27342739
public import Mathlib.CategoryTheory.GuitartExact.VerticalComposition
27352740
public import Mathlib.CategoryTheory.HomCongr
27362741
public import Mathlib.CategoryTheory.Idempotents.Basic
@@ -2757,6 +2762,7 @@ public import Mathlib.CategoryTheory.LiftingProperties.Over
27572762
public import Mathlib.CategoryTheory.LiftingProperties.ParametrizedAdjunction
27582763
public import Mathlib.CategoryTheory.LiftingProperties.PushoutProduct
27592764
public import Mathlib.CategoryTheory.Limits.Bicones
2765+
public import Mathlib.CategoryTheory.Limits.Chosen.End
27602766
public import Mathlib.CategoryTheory.Limits.ColimitLimit
27612767
public import Mathlib.CategoryTheory.Limits.Comma
27622768
public import Mathlib.CategoryTheory.Limits.ConcreteCategory.Basic
@@ -2942,6 +2948,7 @@ public import Mathlib.CategoryTheory.Limits.Types.ColimitType
29422948
public import Mathlib.CategoryTheory.Limits.Types.ColimitTypeFiltered
29432949
public import Mathlib.CategoryTheory.Limits.Types.Colimits
29442950
public import Mathlib.CategoryTheory.Limits.Types.Coproducts
2951+
public import Mathlib.CategoryTheory.Limits.Types.End
29452952
public import Mathlib.CategoryTheory.Limits.Types.Equalizers
29462953
public import Mathlib.CategoryTheory.Limits.Types.Filtered
29472954
public import Mathlib.CategoryTheory.Limits.Types.Images
@@ -4405,6 +4412,7 @@ public import Mathlib.Dynamics.Newton
44054412
public import Mathlib.Dynamics.OmegaLimit
44064413
public import Mathlib.Dynamics.PeriodicPts.Defs
44074414
public import Mathlib.Dynamics.PeriodicPts.Lemmas
4415+
public import Mathlib.Dynamics.SymbolicDynamics.Basic
44084416
public import Mathlib.Dynamics.TopologicalEntropy.CoverEntropy
44094417
public import Mathlib.Dynamics.TopologicalEntropy.DynamicalEntourage
44104418
public import Mathlib.Dynamics.TopologicalEntropy.NetEntropy
@@ -4601,6 +4609,7 @@ public import Mathlib.Geometry.Manifold.SmoothApprox
46014609
public import Mathlib.Geometry.Manifold.SmoothEmbedding
46024610
public import Mathlib.Geometry.Manifold.StructureGroupoid
46034611
public import Mathlib.Geometry.Manifold.VectorBundle.Basic
4612+
public import Mathlib.Geometry.Manifold.VectorBundle.ContMDiffSection
46044613
public import Mathlib.Geometry.Manifold.VectorBundle.CovariantDerivative.Basic
46054614
public import Mathlib.Geometry.Manifold.VectorBundle.CovariantDerivative.Torsion
46064615
public import Mathlib.Geometry.Manifold.VectorBundle.FiberwiseLinear
@@ -5635,7 +5644,6 @@ public import Mathlib.NumberTheory.Harmonic.Int
56355644
public import Mathlib.NumberTheory.Harmonic.ZetaAsymp
56365645
public import Mathlib.NumberTheory.Height.Basic
56375646
public import Mathlib.NumberTheory.Height.MvPolynomial
5638-
public import Mathlib.NumberTheory.Height.Northcott
56395647
public import Mathlib.NumberTheory.Height.NumberField
56405648
public import Mathlib.NumberTheory.Height.Projectivization
56415649
public import Mathlib.NumberTheory.JacobiSum.Basic
@@ -5685,6 +5693,7 @@ public import Mathlib.NumberTheory.ModularForms.Cusps
56855693
public import Mathlib.NumberTheory.ModularForms.DedekindEta
56865694
public import Mathlib.NumberTheory.ModularForms.Delta
56875695
public import Mathlib.NumberTheory.ModularForms.Derivative
5696+
public import Mathlib.NumberTheory.ModularForms.DimensionFormulas.LevelOne
56885697
public import Mathlib.NumberTheory.ModularForms.Discriminant
56895698
public import Mathlib.NumberTheory.ModularForms.EisensteinSeries.Basic
56905699
public import Mathlib.NumberTheory.ModularForms.EisensteinSeries.Defs
@@ -5702,6 +5711,7 @@ public import Mathlib.NumberTheory.ModularForms.JacobiTheta.Bounds
57025711
public import Mathlib.NumberTheory.ModularForms.JacobiTheta.Manifold
57035712
public import Mathlib.NumberTheory.ModularForms.JacobiTheta.OneVariable
57045713
public import Mathlib.NumberTheory.ModularForms.JacobiTheta.TwoVariable
5714+
public import Mathlib.NumberTheory.ModularForms.LevelOne
57055715
public import Mathlib.NumberTheory.ModularForms.LevelOne.Basic
57065716
public import Mathlib.NumberTheory.ModularForms.LevelOne.DimensionFormula
57075717
public import Mathlib.NumberTheory.ModularForms.LevelOne.GradedRing
@@ -6042,6 +6052,7 @@ public import Mathlib.Order.Monotone.Odd
60426052
public import Mathlib.Order.Monotone.Union
60436053
public import Mathlib.Order.Nat
60446054
public import Mathlib.Order.NonemptyFiniteChains
6055+
public import Mathlib.Order.Northcott
60456056
public import Mathlib.Order.Notation
60466057
public import Mathlib.Order.Nucleus
60476058
public import Mathlib.Order.OmegaCompletePartialOrder
@@ -6397,6 +6408,7 @@ public import Mathlib.RingTheory.Etale.Locus
63976408
public import Mathlib.RingTheory.Etale.Pi
63986409
public import Mathlib.RingTheory.Etale.QuasiFinite
63996410
public import Mathlib.RingTheory.Etale.StandardEtale
6411+
public import Mathlib.RingTheory.Etale.Weakly
64006412
public import Mathlib.RingTheory.EuclideanDomain
64016413
public import Mathlib.RingTheory.Extension.Basic
64026414
public import Mathlib.RingTheory.Extension.Cotangent.BaseChange
@@ -6599,6 +6611,7 @@ public import Mathlib.RingTheory.LocalRing.Length
65996611
public import Mathlib.RingTheory.LocalRing.LocalSubring
66006612
public import Mathlib.RingTheory.LocalRing.MaximalIdeal.Basic
66016613
public import Mathlib.RingTheory.LocalRing.MaximalIdeal.Defs
6614+
public import Mathlib.RingTheory.LocalRing.MaximalIdeal.Square
66026615
public import Mathlib.RingTheory.LocalRing.Module
66036616
public import Mathlib.RingTheory.LocalRing.NonLocalRing
66046617
public import Mathlib.RingTheory.LocalRing.Quotient
@@ -7093,6 +7106,7 @@ public import Mathlib.Tactic.Contrapose
70937106
public import Mathlib.Tactic.Conv
70947107
public import Mathlib.Tactic.Convert
70957108
public import Mathlib.Tactic.Core
7109+
public import Mathlib.Tactic.CrossRefAttribute
70967110
public import Mathlib.Tactic.DSimpPercent
70977111
public import Mathlib.Tactic.DeclarationNames
70987112
public import Mathlib.Tactic.DefEqAbuse
@@ -7297,6 +7311,7 @@ public import Mathlib.Tactic.Says
72977311
public import Mathlib.Tactic.ScopedNS
72987312
public import Mathlib.Tactic.Set
72997313
public import Mathlib.Tactic.SetLike
7314+
public import Mathlib.Tactic.SetNotationForOrder
73007315
public import Mathlib.Tactic.SimpIntro
73017316
public import Mathlib.Tactic.SimpRw
73027317
public import Mathlib.Tactic.Simproc.Divisors
@@ -7308,7 +7323,6 @@ public import Mathlib.Tactic.Simps.Basic
73087323
public import Mathlib.Tactic.Simps.NotationClass
73097324
public import Mathlib.Tactic.SplitIfs
73107325
public import Mathlib.Tactic.Spread
7311-
public import Mathlib.Tactic.StacksAttribute
73127326
public import Mathlib.Tactic.Subsingleton
73137327
public import Mathlib.Tactic.Substs
73147328
public import Mathlib.Tactic.SuccessIfFailWithMsg
@@ -7714,6 +7728,7 @@ public import Mathlib.Topology.Hom.ContinuousEvalConst
77147728
public import Mathlib.Topology.Hom.Open
77157729
public import Mathlib.Topology.Homeomorph.Defs
77167730
public import Mathlib.Topology.Homeomorph.Lemmas
7731+
public import Mathlib.Topology.Homeomorph.Quotient
77177732
public import Mathlib.Topology.Homeomorph.TransferInstance
77187733
public import Mathlib.Topology.Homotopy.Affine
77197734
public import Mathlib.Topology.Homotopy.Basic
@@ -8008,6 +8023,7 @@ public import Mathlib.Topology.UrysohnsBounded
80088023
public import Mathlib.Topology.UrysohnsLemma
80098024
public import Mathlib.Topology.VectorBundle.Basic
80108025
public import Mathlib.Topology.VectorBundle.Constructions
8026+
public import Mathlib.Topology.VectorBundle.ContinuousAlternatingMap
80118027
public import Mathlib.Topology.VectorBundle.FiniteDimensional
80128028
public import Mathlib.Topology.VectorBundle.Hom
80138029
public import Mathlib.Topology.VectorBundle.Riemannian

Mathlib/Algebra/Algebra/Equiv.lean

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -278,16 +278,11 @@ theorem mk_coe' (e : A₁ ≃ₐ[R] A₂) (f h₁ h₂ h₃ h₄ h₅) :
278278
(⟨⟨f, e, h₁, h₂⟩, h₃, h₄, h₅⟩ : A₂ ≃ₐ[R] A₁) = e.symm :=
279279
symm_bijective.injective <| ext fun _ => rfl
280280

281-
/-- Auxiliary definition to avoid looping in `dsimp` with `AlgEquiv.symm_mk`. -/
282-
protected def symm_mk.aux (f f') (h₁ h₂ h₃ h₄ h₅) :=
283-
(⟨⟨f, f', h₁, h₂⟩, h₃, h₄, h₅⟩ : A₁ ≃ₐ[R] A₂).symm
284-
285281
@[simp]
286-
theorem symm_mk (f f') (h₁ h₂ h₃ h₄ h₅) :
287-
(⟨⟨f, f', h₁, h₂⟩, h₃, h₄, h₅⟩ : A₁ ≃ₐ[R] A₂).symm =
288-
{ symm_mk.aux f f' h₁ h₂ h₃ h₄ h₅ with
289-
toFun := f'
290-
invFun := f } :=
282+
theorem symm_mk (e : A₁ ≃ A₂) (h₁ h₂ h₃) : dsimp%
283+
(mk e h₁ h₂ h₃ : A₁ ≃ₐ[R] A₂).symm =
284+
{ (mk e h₁ h₂ h₃ : A₁ ≃ₐ[R] A₂).symm with
285+
toEquiv := e.symm } :=
291286
rfl
292287

293288
@[simp]

Mathlib/Algebra/BigOperators/Ring/Finset.lean

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ lemma sum_pow' (s : Finset κ) (f : κ → R) (n : ℕ) :
166166
(∑ a ∈ s, f a) ^ n = ∑ p ∈ piFinset fun _i : Fin n ↦ s, ∏ i, f (p i) := by
167167
convert @prod_univ_sum (Fin n) _ _ _ _ _ (fun _i ↦ s) fun _i d ↦ f d; simp
168168

169-
set_option backward.isDefEq.respectTransparency false in
170169
/-- The product of `f a + g a` over all of `s` is the sum over the powerset of `s` of the product of
171170
`f` over a subset `t` times the product of `g` over the complement of `t` -/
172171
theorem prod_add (f g : ι → R) (s : Finset ι) :
@@ -184,7 +183,7 @@ theorem prod_add (f g : ι → R) (s : Finset ι) :
184183
(by simp)
185184
(by simp [Classical.em])
186185
(by simp_rw [mem_filter, funext_iff, eq_iff_iff, mem_pi, mem_insert]; tauto)
187-
(by simp_rw [Finset.ext_iff, @mem_filter _ _ (id _), mem_powerset]; tauto)
186+
(by simp_rw [Finset.ext_iff, mem_filter, mem_powerset]; tauto)
188187
(fun a _ ↦ by
189188
simp only [prod_ite, filter_attach', prod_map, Function.Embedding.coeFn_mk,
190189
Subtype.map_coe, id_eq, prod_attach]

Mathlib/Algebra/EuclideanDomain/Defs.lean

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,17 @@ class EuclideanDomain (R : Type u) extends CommRing R, Nontrivial R where
9393
/-- An additional constraint on `r`. -/
9494
mul_left_not_lt : ∀ (a) {b}, b ≠ 0 → ¬r (a * b) a
9595

96+
/-
97+
Lean has far more theorems about fields than about Euclidean domains. We thus
98+
lower the priority of `Euclideandomain.toCommRing`, encouraging typeclass inference
99+
to try `Field.toCommRing` first. Without this priority-lowering, typeclass inference
100+
finds the more inefficient path `Field.toEuclideanDomain.toCommRing` by default. This
101+
priority change saves over 500G instructions across mathlib. See
102+
https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/We.20need.20to.20talk.20about.20Euclidean.20Domains/near/594655420
103+
-/
104+
-- see Note [lower instance priority]
105+
attribute [instance 100] EuclideanDomain.toCommRing
106+
96107
namespace EuclideanDomain
97108

98109
variable {R : Type u} [EuclideanDomain R]

Mathlib/Algebra/Exact.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ lemma exact_zero_iff_surjective {M N : Type*} (P : Type*)
289289
[AddCommGroup M] [AddCommGroup N] [AddCommMonoid P] [Module R N] [Module R M]
290290
[Module R P] (f : M →ₗ[R] N) :
291291
Function.Exact f (0 : N →ₗ[R] P) ↔ Function.Surjective f := by
292-
simp [range_eq_top, exact_iff, eq_comm]
292+
simp [range_eq_top, exact_iff, eqComm]
293293

294294
end LinearMap
295295

0 commit comments

Comments
 (0)