Skip to content

Commit 0634717

Browse files
adomanijoneugster
andcommitted
feat: allow several identifiers in assert_not_exists (leanprover-community#15994)
Align the `assert_not_exists` syntax to `assert_not_imported`: they now both allow several identifiers. Co-authored-by: Jon Eugster <eugster.jon@gmail.com>
1 parent 62f729a commit 0634717

File tree

192 files changed

+241
-561
lines changed

Some content is hidden

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

192 files changed

+241
-561
lines changed

Mathlib/Algebra/Algebra/Defs.lean

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,7 @@ the second approach only when you need to weaken a condition on either `R` or `A
8080
8181
-/
8282

83-
assert_not_exists Field
84-
assert_not_exists Finset
85-
assert_not_exists Module.End
83+
assert_not_exists Field Finset Module.End
8684

8785
universe u v w u₁ v₁
8886

Mathlib/Algebra/Associated/Basic.lean

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ Then we show that the quotient type `Associates` is a monoid
2121
and prove basic properties of this quotient.
2222
-/
2323

24-
assert_not_exists OrderedCommMonoid
25-
assert_not_exists Multiset
24+
assert_not_exists OrderedCommMonoid Multiset
2625

2726
variable {M : Type*}
2827

Mathlib/Algebra/BigOperators/Group/Finset.lean

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ See the documentation of `to_additive.attr` for more information.
3838

3939
-- TODO
4040
-- assert_not_exists AddCommMonoidWithOne
41-
assert_not_exists MonoidWithZero
42-
assert_not_exists MulAction
43-
assert_not_exists OrderedCommMonoid
41+
assert_not_exists MonoidWithZero MulAction OrderedCommMonoid
4442

4543
variable {ι κ α β γ : Type*}
4644

Mathlib/Algebra/CharP/Basic.lean

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ imports of `CharP/Lemmas.lean`.
1919
As such, we can probably reorganize and find a better home for most of these lemmas.
2020
-/
2121

22-
assert_not_exists Finset
23-
assert_not_exists TwoSidedIdeal
22+
assert_not_exists Finset TwoSidedIdeal
2423

2524
open Set
2625

Mathlib/Algebra/CharP/Defs.lean

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ import Mathlib.Data.Nat.Prime.Defs
1919
prime characteristic `p`)
2020
-/
2121

22-
assert_not_exists Field
23-
assert_not_exists Finset
22+
assert_not_exists Field Finset
2423

2524
open Set
2625

Mathlib/Algebra/CharP/Lemmas.lean

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ import Mathlib.Data.Nat.Choose.Sum
1212
# Characteristic of semirings
1313
-/
1414

15-
assert_not_exists Algebra
16-
assert_not_exists LinearMap
17-
assert_not_exists orderOf
15+
assert_not_exists Algebra LinearMap orderOf
1816

1917
open Finset
2018

Mathlib/Algebra/CharP/Two.lean

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ The lemmas in this file with a `_sq` suffix are just special cases of the `_pow_
1515
elsewhere, with a shorter name for ease of discovery, and no need for a `[Fact (Prime 2)]` argument.
1616
-/
1717

18-
assert_not_exists Algebra
19-
assert_not_exists LinearMap
18+
assert_not_exists Algebra LinearMap
2019

2120
variable {R ι : Type*}
2221

Mathlib/Algebra/Group/Action/Opposite.lean

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ With `open scoped RightActions`, this provides:
2626
* `p <+ᵥ v` as an alias for `AddOpposite.op v +ᵥ p`
2727
-/
2828

29-
assert_not_exists MonoidWithZero
30-
assert_not_exists Units
29+
assert_not_exists MonoidWithZero Units
3130

3231
variable {M N α β : Type*}
3332

Mathlib/Algebra/Group/Basic.lean

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ one-liners from the corresponding axioms. For the definitions of semigroups, mon
1919
`Algebra/Group/Defs.lean`.
2020
-/
2121

22-
assert_not_exists MonoidWithZero
23-
assert_not_exists DenselyOrdered
22+
assert_not_exists MonoidWithZero DenselyOrdered
2423

2524
open Function
2625

Mathlib/Algebra/Group/Center.lean

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ We provide `Monoid.centralizer`, `AddMonoid.centralizer`, `Subgroup.centralizer`
3636
`AddSubgroup.centralizer` in other files.
3737
-/
3838

39-
assert_not_exists Finset
40-
assert_not_exists MonoidWithZero
41-
assert_not_exists Subsemigroup
39+
assert_not_exists Finset MonoidWithZero Subsemigroup
4240

4341
variable {M : Type*} {S T : Set M}
4442

0 commit comments

Comments
 (0)