Skip to content

Commit 7a98523

Browse files
committed
Formatting.
1 parent 46df2fa commit 7a98523

22 files changed

Lines changed: 41 additions & 39 deletions

File tree

Mathlib/Algebra/Group/Action/Basic.lean

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,7 @@ variable (M α) in
150150
@[to_additive
151151
/-- Embedding of `α` into functions `M → α` induced by an additive action of `M` on `α`. -/]
152152
def toFun : α ↪ M → α :=
153-
fun y x ↦ x • y, fun y₁ y₂ H ↦ one_smul M y₁ ▸ one_smul M y₂ ▸ by convert
154-
congr_fun H 1
153+
fun y x ↦ x • y, fun y₁ y₂ H ↦ one_smul M y₁ ▸ one_smul M y₂ ▸ by convert congr_fun H 1
155154

156155
@[to_additive (attr := simp)]
157156
lemma toFun_apply (x : M) (y : α) : MulAction.toFun M α y x = x • y := rfl

Mathlib/Algebra/Order/Field/Basic.lean

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,8 +539,6 @@ theorem sub_one_div_inv_le_two (a2 : 2 ≤ a) : (1 - 1 / a)⁻¹ ≤ 2 := by
539539
rw [le_sub_iff_add_le, add_comm, ← le_sub_iff_add_le]
540540
-- take inverses on both sides and use the assumption `2 ≤ a`.
541541
convert (one_div a).le.trans (inv_anti₀ zero_lt_two a2) using 1
542-
-- show `1 - 1 / 2 = 1 / 2`.
543-
544542
-- show `1 - 1 / 2 = 1 / 2`.
545543
rw [sub_eq_iff_eq_add, ← two_mul, mul_inv_cancel₀ two_ne_zero]
546544

Mathlib/Algebra/Ring/Parity.lean

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,11 +220,11 @@ lemma Odd.sub_odd (ha : Odd a) (hb : Odd b) : Even (a - b) := by
220220

221221
@[simp]
222222
lemma even_add_one : Even (a + 1) ↔ Odd a :=
223-
⟨(by convert x✝.sub_odd odd_one; rw [eq_sub_iff_add_eq]), (·.add_one)⟩
223+
⟨(by convert ·.sub_odd odd_one; rw [eq_sub_iff_add_eq]), (·.add_one)⟩
224224

225225
@[simp]
226226
lemma even_sub_one : Even (a - 1) ↔ Odd a :=
227-
⟨(by convert x✝.add_odd odd_one; rw [sub_add_cancel]), (·.sub_odd odd_one)⟩
227+
⟨(by convert ·.add_odd odd_one; rw [sub_add_cancel]), (·.sub_odd odd_one)⟩
228228

229229
@[simp]
230230
lemma even_add_two : Even (a + 2) ↔ Even a :=
@@ -236,11 +236,11 @@ lemma even_sub_two : Even (a - 2) ↔ Even a :=
236236

237237
@[simp]
238238
lemma odd_add_one : Odd (a + 1) ↔ Even a :=
239-
⟨(by convert x✝.sub_odd odd_one; rw [eq_sub_iff_add_eq]), (·.add_one)⟩
239+
⟨(by convert ·.sub_odd odd_one; rw [eq_sub_iff_add_eq]), (·.add_one)⟩
240240

241241
@[simp]
242242
lemma odd_sub_one : Odd (a - 1) ↔ Even a :=
243-
⟨(by convert x✝.add_odd odd_one; rw [sub_add_cancel]), (·.sub_odd odd_one)⟩
243+
⟨(by convert ·.add_odd odd_one; rw [sub_add_cancel]), (·.sub_odd odd_one)⟩
244244

245245
@[simp]
246246
lemma odd_add_two : Odd (a + 2) ↔ Odd a := by

Mathlib/Analysis/Fourier/Convolution.lean

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@ theorem fourier_bilin_convolution_eq_integral (B : F₁ →L[𝕜] F₂ →L[
8888
congr
8989
ext y
9090
-- Linear change of variables
91-
convert! integral_sub_right_eq_self _ y (μ := volume)
92-
congr
91+
convert integral_sub_right_eq_self _ y (μ := volume)
9392
simp
9493

9594
variable [CompleteSpace F₁] [CompleteSpace F₂] [CompleteSpace F₃]

Mathlib/Analysis/PSeries.lean

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,10 @@ theorem summable_condensed_iff {f : ℕ → ℝ≥0} (hf : ∀ ⦃m n⦄, 0 < m
204204
have h_succ_diff : SuccDiffBounded 2 (2 ^ ·) := by
205205
intro n
206206
simp [pow_succ, mul_two, two_mul]
207-
convert! summable_schlomilch_iff hf (pow_pos zero_lt_two) (pow_right_strictMono₀ _root_.one_lt_two)
208-
two_ne_zero h_succ_diff
207+
convert! summable_schlomilch_iff hf (pow_pos zero_lt_two)
208+
(pow_right_strictMono₀ _root_.one_lt_two)
209+
two_ne_zero
210+
h_succ_diff
209211
simp [pow_succ, mul_two]
210212

211213
end NNReal

Mathlib/Analysis/SpecialFunctions/Arsinh.lean

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ theorem arsinh_neg_iff : arsinh x < 0 ↔ x < 0 :=
158158
lt_iff_lt_of_le_iff_le arsinh_nonneg_iff
159159

160160
theorem hasStrictDerivAt_arsinh (x : ℝ) : HasStrictDerivAt arsinh (√(1 + x ^ 2))⁻¹ x := by
161-
convert! sinhHomeomorph.toOpenPartialHomeomorph.hasStrictDerivAt_symm (mem_univ x) (cosh_pos _).ne'
161+
convert! sinhHomeomorph.toOpenPartialHomeomorph.hasStrictDerivAt_symm (mem_univ x)
162+
(cosh_pos _).ne'
162163
(hasStrictDerivAt_sinh _) using 2
163164
exact (cosh_arsinh _).symm
164165

Mathlib/Analysis/SpecialFunctions/PolarCoord.lean

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,8 @@ theorem lintegral_comp_pi_polarCoord_symm (f : (ι → ℝ × ℝ) → ℝ≥0
285285
∫⁻ p in (Set.univ.pi fun _ : ι ↦ polarCoord.target),
286286
(∏ i, .ofReal (p i).1) * f (fun i ↦ polarCoord.symm (p i)) = ∫⁻ p, f p := by
287287
rw [← setLIntegral_univ f, ← setLIntegral_congr pi_polarCoord_symm_target_ae_eq_univ]
288-
convert! (lintegral_image_eq_lintegral_abs_det_fderiv_mul volume measurableSet_pi_polarCoord_target
288+
convert! (lintegral_image_eq_lintegral_abs_det_fderiv_mul volume
289+
measurableSet_pi_polarCoord_target
289290
(fun p _ ↦ (hasFDerivAt_pi_polarCoord_symm p).hasFDerivWithinAt)
290291
injOn_pi_polarCoord_symm f).symm using 1
291292
refine setLIntegral_congr_fun measurableSet_pi_polarCoord_target (fun x hx ↦ ?_)

Mathlib/CategoryTheory/Limits/Constructions/Equalizers.lean

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,9 @@ abbrev pushoutInl (F : WalkingParallelPair ⥤ C) :
147147
set_option backward.isDefEq.respectTransparency false in
148148
theorem pushoutInl_eq_pushout_inr (F : WalkingParallelPair ⥤ C) :
149149
pushoutInl F = pushout.inr _ _ := by
150-
convert
151-
(whisker_eq Limits.coprod.inl pushout.condition : (_ : F.obj _ ⟶ constructCoequalizer _) = _) <;> simp
150+
convert (whisker_eq Limits.coprod.inl pushout.condition :
151+
(_ : F.obj _ ⟶ constructCoequalizer _) = _) <;>
152+
simp
152153

153154
set_option backward.isDefEq.respectTransparency false in
154155
/-- Define the equalizing cocone -/

Mathlib/CategoryTheory/Monoidal/Internal/Types/Basic.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ namespace CommMonTypeEquivalenceCommMon
9797

9898
instance commMonCommMonoid (A : Type u) [MonObj A] [IsCommMonObj A] : CommMonoid A :=
9999
{ MonTypeEquivalenceMon.monMonoid A with
100-
mul_comm := fun x y => by convert! congr_hom (CC := fun X ↦ X) (IsCommMonObj.mul_comm A) (y, x) }
100+
mul_comm x y := by convert! congr_hom (CC := fun X ↦ X) (IsCommMonObj.mul_comm A) (y, x) }
101101

102102
/-- Converting a commutative monoid object in `Type` to a bundled commutative monoid.
103103
-/

Mathlib/CategoryTheory/Monoidal/Internal/Types/CommGrp_.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ namespace CommGrpTypeEquivalenceCommGrp
2929

3030
instance commGrpCommGroup (A : Type u) [GrpObj A] [IsCommMonObj A] : CommGroup A :=
3131
{ GrpTypeEquivalenceGrp.grpGroup A with
32-
mul_comm := fun x y => by convert! congr_hom (CC := fun X ↦ X) (IsCommMonObj.mul_comm A) (y, x) }
32+
mul_comm x y := by convert! congr_hom (CC := fun X ↦ X) (IsCommMonObj.mul_comm A) (y, x) }
3333

3434
/-- Converting a commutative group object in `Type u` into a group. -/
3535
noncomputable def functor : CommGrp (Type u) ⥤ CommGrpCat.{u} where

0 commit comments

Comments
 (0)