Skip to content

Commit d6cfca7

Browse files
committed
chore: big combination of things
1 parent a71d881 commit d6cfca7

File tree

16 files changed

+26
-27
lines changed

16 files changed

+26
-27
lines changed

Mathlib/Algebra/GCDMonoid/Basic.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -828,11 +828,11 @@ instance subsingleton_gcdMonoid_of_unique_units : Subsingleton (GCDMonoid α) :=
828828
have hgcd : g₁.gcd = g₂.gcd := by
829829
ext a b
830830
refine associated_iff_eq.mp (associated_of_dvd_dvd ?_ ?_) <;>
831-
apply_rules (config := { allowSynthFailures := true }) [dvd_gcd, gcd_dvd_left, gcd_dvd_right]
831+
apply_rules +allowSynthFailures [dvd_gcd, gcd_dvd_left, gcd_dvd_right]
832832
have hlcm : g₁.lcm = g₂.lcm := by
833833
ext a b
834834
refine associated_iff_eq.mp (associated_of_dvd_dvd ?_ ?_) <;>
835-
apply_rules (config := { allowSynthFailures := true }) [lcm_dvd, dvd_lcm_left, dvd_lcm_right]
835+
apply_rules +allowSynthFailures [lcm_dvd, dvd_lcm_left, dvd_lcm_right]
836836
cases g₁
837837
cases g₂
838838
dsimp only at hgcd hlcm

Mathlib/Algebra/Group/Equiv/Opposite.lean

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ variable {α : Type*}
1515
namespace MulOpposite
1616

1717
/-- The function `MulOpposite.op` is an additive equivalence. -/
18-
@[simps! (config := { fullyApplied := false, simpRhs := true }) apply symm_apply]
18+
@[simps! -fullyApplied +simpRhs apply symm_apply]
1919
def opAddEquiv [Add α] : α ≃+ αᵐᵒᵖ where
2020
toEquiv := opEquiv
2121
map_add' _ _ := rfl
@@ -27,7 +27,7 @@ end MulOpposite
2727
namespace AddOpposite
2828

2929
/-- The function `AddOpposite.op` is a multiplicative equivalence. -/
30-
@[simps! (config := { fullyApplied := false, simpRhs := true })]
30+
@[simps! -fullyApplied +simpRhs]
3131
def opMulEquiv [Mul α] : α ≃* αᵃᵒᵖ where
3232
toEquiv := opEquiv
3333
map_mul' _ _ := rfl
@@ -40,7 +40,7 @@ open MulOpposite
4040

4141
/-- Inversion on a group is a `MulEquiv` to the opposite group. When `G` is commutative, there is
4242
`MulEquiv.inv`. -/
43-
@[to_additive (attr := simps! (config := { fullyApplied := false, simpRhs := true }))
43+
@[to_additive (attr := simps! -fullyApplied +simpRhs)
4444
"Negation on an additive group is an `AddEquiv` to the opposite group. When `G`
4545
is commutative, there is `AddEquiv.inv`."]
4646
def MulEquiv.inv' (G : Type*) [DivisionMonoid G] : G ≃* Gᵐᵒᵖ :=

Mathlib/CategoryTheory/Comma/Over/Pullback.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ variable [HasPullbacks C]
4949

5050
/-- In a category with pullbacks, a morphism `f : X ⟶ Y` induces a functor `Over Y ⥤ Over X`,
5151
by pulling back a morphism along `f`. -/
52-
@[simps! (config := { simpRhs := true}) obj_left obj_hom map_left]
52+
@[simps! +simpRhs obj_left obj_hom map_left]
5353
def pullback {X Y : C} (f : X ⟶ Y) : Over Y ⥤ Over X where
5454
obj g := Over.mk (pullback.snd g.hom f)
5555
map := fun g {h} {k} =>

Mathlib/Data/List/SplitLengths.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ theorem length_splitLengths_getElem_eq {i : ℕ} (hi : i < sz.length)
8181
simp only [take_splitLength]
8282
conv_rhs =>
8383
rw [List.getElem_take' (hj := i.lt_add_one)]
84-
simp (config := {singlePass := true}) only [← map_splitLengths_length l _ h]
84+
simp +singlePass only [← map_splitLengths_length l _ h]
8585
rw [getElem_map]
8686

8787
theorem splitLengths_length_getElem {α : Type*} (l : List α) (sz : List ℕ)

Mathlib/Geometry/Euclidean/Circumcenter.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ theorem existsUnique_dist_eq_of_insert {s : AffineSubspace ℝ P}
6161
let cc₂ := (ycc₂ / y) • (p -ᵥ orthogonalProjection s p : V) +ᵥ cc
6262
let cr₂ := √(cr * cr + ycc₂ * ycc₂)
6363
use ⟨cc₂, cr₂⟩
64-
simp (config := { zeta := false, proj := false }) only
64+
simp -zeta -proj only
6565
have hpo : p = (1 : ℝ) • (p -ᵥ orthogonalProjection s p : V) +ᵥ (orthogonalProjection s p : P) :=
6666
by simp
6767
constructor

Mathlib/Geometry/Manifold/IsManifold/Basic.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ theorem ModelWithCorners.range_eq_univ {𝕜 : Type*} [NontriviallyNormedField
477477
range I = univ := ModelWithCorners.Boundaryless.range_eq_univ
478478

479479
/-- If `I` is a `ModelWithCorners.Boundaryless` model, then it is a homeomorphism. -/
480-
@[simps (config := {simpRhs := true})]
480+
@[simps +simpRhs]
481481
def ModelWithCorners.toHomeomorph {𝕜 : Type*} [NontriviallyNormedField 𝕜] {E : Type*}
482482
[NormedAddCommGroup E] [NormedSpace 𝕜 E] {H : Type*} [TopologicalSpace H]
483483
(I : ModelWithCorners 𝕜 E H) [I.Boundaryless] : H ≃ₜ E where

Mathlib/LinearAlgebra/Pi.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ theorem sumArrowLequivProdArrow_symm_apply_inr {α β} (f : α → M) (g : β
541541
rfl
542542

543543
/-- If `ι` has a unique element, then `ι → M` is linearly equivalent to `M`. -/
544-
@[simps (config := { simpRhs := true, fullyApplied := false }) symm_apply]
544+
@[simps +simpRhs -fullyAppliedsymm_apply]
545545
def funUnique (ι R M : Type*) [Unique ι] [Semiring R] [AddCommMonoid M] [Module R M] :
546546
(ι → M) ≃ₗ[R] M :=
547547
{ Equiv.funUnique ι M with
@@ -555,7 +555,7 @@ theorem funUnique_apply (ι R M : Type*) [Unique ι] [Semiring R] [AddCommMonoid
555555
variable (R M)
556556

557557
/-- Linear equivalence between dependent functions `(i : Fin 2) → M i` and `M 0 × M 1`. -/
558-
@[simps (config := { simpRhs := true, fullyApplied := false }) symm_apply]
558+
@[simps +simpRhs -fullyApplied symm_apply]
559559
def piFinTwo (M : Fin 2Type v)
560560
[(i : Fin 2) → AddCommMonoid (M i)] [(i : Fin 2) → Module R (M i)] :
561561
((i : Fin 2) → M i) ≃ₗ[R] M 0 × M 1 :=

Mathlib/LinearAlgebra/QuadraticForm/Complex.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ noncomputable def isometryEquivSumSquares (w' : ι → ℂ) :
5353
split_ifs with h
5454
· simp only [h, zero_smul, zero_mul]
5555
have hww' : w' j = w j := by simp only [w, dif_neg h, Units.val_mk0]
56-
simp (config := {zeta := false}) only [one_mul, Units.val_mk0, smul_eq_mul]
56+
simp -zeta only [one_mul, Units.val_mk0, smul_eq_mul]
5757
rw [hww']
5858
suffices v j * v j = w j ^ (-(1 / 2 : ℂ)) * w j ^ (-(1 / 2 : ℂ)) * w j * v j * v j by
5959
rw [this]; ring

Mathlib/Logic/Embedding/Basic.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ theorem equiv_symm_toEmbedding_trans_toEmbedding {α β : Sort*} (e : α ≃ β)
148148
simp
149149

150150
/-- Transfer an embedding along a pair of equivalences. -/
151-
@[simps! (config := { fullyApplied := false, simpRhs := true })]
151+
@[simps! -fullyApplied +simpRhs]
152152
protected def congr {α : Sort u} {β : Sort v} {γ : Sort w} {δ : Sort x} (e₁ : α ≃ β) (e₂ : γ ≃ δ)
153153
(f : α ↪ γ) : β ↪ δ :=
154154
(Equiv.toEmbedding e₁.symm).trans (f.trans e₂.toEmbedding)

Mathlib/MeasureTheory/Covering/Differentiation.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ measure. (This is a nontrivial result, following from the covering property of V
9494
theorem ae_eventually_measure_pos [SecondCountableTopology α] :
9595
∀ᵐ x ∂μ, ∀ᶠ a in v.filterAt x, 0 < μ a := by
9696
set s := {x | ¬∀ᶠ a in v.filterAt x, 0 < μ a} with hs
97-
simp (config := { zeta := false }) only [not_lt, not_eventually, nonpos_iff_eq_zero] at hs
97+
simp -zeta only [not_lt, not_eventually, nonpos_iff_eq_zero] at hs
9898
change μ s = 0
9999
let f : α → Set (Set α) := fun _ => {a | μ a = 0}
100100
have h : v.FineSubfamilyOn f s := by

0 commit comments

Comments
 (0)