Skip to content

Commit 43a34ca

Browse files
committed
chore: remove some superfluous parens (#35921)
Found by manually auditing the output of regex-searching for '\([A-Za-z0-9_][A-Za-z0-9_]+\)'. Most results are false positives (such as, documentation or export statements), a few are more interesting. Not exhaustive, I looked at perhaps a fifth or a tenth of all results.
1 parent b764b11 commit 43a34ca

File tree

11 files changed

+14
-14
lines changed

11 files changed

+14
-14
lines changed

Counterexamples/AharoniKorman.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ lemma to prove that fact later: `no_infinite_antichain`.
235235
-/
236236
lemma no_infinite_antichain_level {n : ℕ} {A : Set Hollom} (hA : A ⊆ level n)
237237
(hA' : IsAntichain (· ≤ ·) A) : A.Finite :=
238-
hA'.finite_of_partiallyWellOrderedOn ((level_isPWO).mono hA)
238+
hA'.finite_of_partiallyWellOrderedOn (level_isPWO.mono hA)
239239

240240
/--
241241
Each level is order-connected, i.e. for any `x ∈ level n` and `y ∈ level n` we have

Counterexamples/CanonicallyOrderedCommSemiringTwoMul.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ instance : CanonicallyOrderedAdd L where
205205
le_self_add := le_self_add
206206

207207
instance : NoZeroDivisors L where
208-
eq_zero_or_eq_zero_of_mul_eq_zero := @(eq_zero_or_eq_zero_of_mul_eq_zero)
208+
eq_zero_or_eq_zero_of_mul_eq_zero := @eq_zero_or_eq_zero_of_mul_eq_zero
209209

210210
/-- The elements `(1,0)` and `(1,1)` of `L` are different, but their doubles coincide.
211211
-/

Mathlib/Algebra/Category/ModuleCat/Presheaf/Pullback.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ this object shall be mapped to `(free R).obj (yoneda.obj (F.obj X))`. -/
7070
noncomputable def pushforwardCompCoyonedaFreeYonedaCorepresentableBy (X : C) :
7171
(pushforward φ ⋙ coyoneda.obj (op ((free S).obj (yoneda.obj X)))).CorepresentableBy
7272
((free R).obj (yoneda.obj (F.obj X))) where
73-
homEquiv {M} := (freeYonedaEquiv).trans
73+
homEquiv {M} := freeYonedaEquiv.trans
7474
(freeYonedaEquiv (M := (pushforward φ).obj M)).symm
7575
homEquiv_comp {M N} g f := freeYonedaEquiv.injective (by
7676
dsimp

Mathlib/Algebra/Category/Ring/Basic.lean

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ initialize_simps_projections SemiRingCat (-semiring)
4242

4343
namespace SemiRingCat
4444

45-
instance : CoeSort (SemiRingCat) (Type u) :=
45+
instance : CoeSort SemiRingCat (Type u) :=
4646
⟨SemiRingCat.carrier⟩
4747

4848
attribute [coe] SemiRingCat.carrier
@@ -200,7 +200,7 @@ initialize_simps_projections RingCat (-ring)
200200

201201
namespace RingCat
202202

203-
instance : CoeSort (RingCat) (Type u) :=
203+
instance : CoeSort RingCat (Type u) :=
204204
⟨RingCat.carrier⟩
205205

206206
attribute [coe] RingCat.carrier
@@ -532,7 +532,7 @@ initialize_simps_projections CommRingCat (-commRing)
532532

533533
namespace CommRingCat
534534

535-
instance : CoeSort (CommRingCat) (Type u) :=
535+
instance : CoeSort CommRingCat (Type u) :=
536536
⟨CommRingCat.carrier⟩
537537

538538
attribute [coe] CommRingCat.carrier

Mathlib/Algebra/Group/Pointwise/Finset/BigOperators.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ variable [DecidableEq α]
4343
@[to_additive (attr := simp, norm_cast)]
4444
theorem coe_prod (s : Finset ι) (f : ι → Finset α) :
4545
↑(∏ i ∈ s, f i) = ∏ i ∈ s, (f i : Set α) :=
46-
map_prod ((coeMonoidHom) : Finset α →* Set α) _ _
46+
map_prod (coeMonoidHom : Finset α →* Set α) _ _
4747

4848
omit [DecidableEq α]
4949
variable [DecidableEq ι]

Mathlib/Algebra/Group/Subgroup/Basic.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -830,14 +830,14 @@ theorem inf_subgroupOf_inf_normal_of_right (A B' B : Subgroup G)
830830
[hN : (B'.subgroupOf B).Normal] : ((A ⊓ B').subgroupOf (A ⊓ B)).Normal := by
831831
rw [normal_subgroupOf_iff_le_normalizer_inf] at hN ⊢
832832
rw [inf_inf_inf_comm, inf_idem]
833-
exact le_trans (inf_le_inf A.le_normalizer hN) (inf_normalizer_le_normalizer_inf)
833+
exact le_trans (inf_le_inf A.le_normalizer hN) inf_normalizer_le_normalizer_inf
834834

835835
@[to_additive]
836836
theorem inf_subgroupOf_inf_normal_of_left {A' A : Subgroup G} (B : Subgroup G)
837837
[hN : (A'.subgroupOf A).Normal] : ((A' ⊓ B).subgroupOf (A ⊓ B)).Normal := by
838838
rw [normal_subgroupOf_iff_le_normalizer_inf] at hN ⊢
839839
rw [inf_inf_inf_comm, inf_idem]
840-
exact le_trans (inf_le_inf hN B.le_normalizer) (inf_normalizer_le_normalizer_inf)
840+
exact le_trans (inf_le_inf hN B.le_normalizer) inf_normalizer_le_normalizer_inf
841841

842842
@[to_additive]
843843
instance normal_inf_normal (H K : Subgroup G) [hH : H.Normal] [hK : K.Normal] : (H ⊓ K).Normal :=

Mathlib/Algebra/Lie/Semisimple/Lemmas.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ lemma hasCentralRadical_and_of_isIrreducible_of_isFaithful :
6767

6868
theorem hasTrivialRadical_of_isIrreducible_of_isFaithful
6969
(h : ∀ x, LinearMap.trace k _ (toEnd k L M x) = 0) : HasTrivialRadical k L := by
70-
have : finrank k M ≠ 0 := ((finrank_pos_iff).mpr <| nontrivial_of_isIrreducible k L M).ne'
70+
have : finrank k M ≠ 0 := (finrank_pos_iff.mpr <| nontrivial_of_isIrreducible k L M).ne'
7171
obtain ⟨_i, h'⟩ := hasCentralRadical_and_of_isIrreducible_of_isFaithful k L M
7272
rw [hasTrivialRadical_iff, (hasCentralRadical_iff k L).mp inferInstance, LieSubmodule.eq_bot_iff]
7373
intro x hx

Mathlib/Algebra/Order/Antidiag/Nat.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,6 @@ open scoped ArithmeticFunction.omega in -- access notation `ω`
306306
theorem card_pair_lcm_eq {n : ℕ} (hn : Squarefree n) :
307307
#{p ∈ (n.divisors ×ˢ n.divisors) | p.1.lcm p.2 = n} = 3 ^ ω n := by
308308
rw [← card_finMulAntidiag_of_squarefree hn, eq_comm]
309-
apply Finset.card_bij f (f_img hn) (f_inj) (f_surj hn.ne_zero)
309+
apply Finset.card_bij f (f_img hn) f_inj (f_surj hn.ne_zero)
310310

311311
end Nat

Mathlib/Algebra/Order/Archimedean/Class.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ theorem mulArchimedean_of_mk_eq_mk (h : ∀ a ≠ (1 : M), ∀ b ≠ 1, mk a = m
504504
· use 0
505505
simpa using hx
506506
· have hxy : mk x = mk y := h x hx.ne.symm y hy.ne.symm
507-
obtain ⟨_, ⟨m, hm⟩⟩ := (mk_eq_mk).mp hxy
507+
obtain ⟨_, ⟨m, hm⟩⟩ := mk_eq_mk.mp hxy
508508
rw [mabs_eq_self.mpr hx.le, mabs_eq_self.mpr hy.le] at hm
509509
exact ⟨m, hm⟩
510510

Mathlib/Algebra/Order/CompleteField.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def inducedOrderRingHom : α →+*o β :=
269269
refine fun x hx => csSup_eq_of_forall_le_of_forall_lt_exists_gt (cutMap_nonempty β _) ?_ ?_
270270
· exact le_inducedMap_mul_self_of_mem_cutMap hx
271271
· exact exists_mem_cutMap_mul_self_of_lt_inducedMap_mul_self hx)
272-
(two_ne_zero) (inducedMap_one _ _) with
272+
two_ne_zero (inducedMap_one _ _) with
273273
monotone' := inducedMap_mono _ _ }
274274

275275
/-- The isomorphism of ordered rings between two conditionally complete linearly ordered fields. -/

0 commit comments

Comments
 (0)