Skip to content

Commit 61154fb

Browse files
committed
chore(*): remove some set_option linter.flexible false (leanprover-community#36738)
These `set_option`s are derived from the fact that prior to leanprover-community#29027, linarith and nlinarith were not properly marked as flexible.
1 parent 5449ee7 commit 61154fb

4 files changed

Lines changed: 0 additions & 9 deletions

File tree

Mathlib/Analysis/Calculus/LHopital.lean

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ to be satisfied on an explicitly-provided interval.
5050

5151
namespace HasDerivAt
5252

53-
-- TODO: fix non-terminal simp (acting on three goals, with different simp sets)
54-
set_option linter.flexible false in
5553
theorem lhopital_zero_right_on_Ioo (hab : a < b) (hff' : ∀ x ∈ Ioo a b, HasDerivAt f (f' x) x)
5654
(hgg' : ∀ x ∈ Ioo a b, HasDerivAt g (g' x) x) (hg' : ∀ x ∈ Ioo a b, g' x ≠ 0)
5755
(hfa : Tendsto f (𝓝[>] a) (𝓝 0)) (hga : Tendsto g (𝓝[>] a) (𝓝 0))

Mathlib/Analysis/SpecialFunctions/Pow/NNReal.lean

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -852,8 +852,6 @@ theorem rpow_lt_rpow_of_exponent_gt {x : ℝ≥0∞} {y z : ℝ} (hx0 : 0 < x) (
852852
simp only [coe_lt_one_iff, coe_pos] at hx0 hx1
853853
simp [← coe_rpow_of_ne_zero (ne_of_gt hx0), NNReal.rpow_lt_rpow_of_exponent_gt hx0 hx1 hyz]
854854

855-
-- TODO: fix non-terminal simp (acting on three goals, with different simp sets)
856-
set_option linter.flexible false in
857855
theorem rpow_le_rpow_of_exponent_ge {x : ℝ≥0∞} {y z : ℝ} (hx1 : x ≤ 1) (hyz : z ≤ y) :
858856
x ^ y ≤ x ^ z := by
859857
lift x to ℝ≥0 using ne_of_lt (lt_of_le_of_lt hx1 coe_lt_top)

Mathlib/Analysis/SpecialFunctions/Trigonometric/Inverse.lean

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,6 @@ theorem arccos_pos {x : ℝ} : 0 < arccos x ↔ x < 1 := by simp [arccos]
291291
theorem cos_arccos {x : ℝ} (hx₁ : -1 ≤ x) (hx₂ : x ≤ 1) : cos (arccos x) = x := by
292292
rw [arccos, cos_pi_div_two_sub, sin_arcsin hx₁ hx₂]
293293

294-
-- TODO: fix non-terminal simp (acting on three goals, with different simp sets)
295-
set_option linter.flexible false in
296294
theorem arccos_cos {x : ℝ} (hx₁ : 0 ≤ x) (hx₂ : x ≤ π) : arccos (cos x) = x := by
297295
rw [arccos, ← sin_pi_div_two_sub, arcsin_sin] <;> simp [sub_eq_add_neg] <;> linarith
298296

Mathlib/Combinatorics/Additive/SmallTripling.lean

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,6 @@ private lemma small_neg_pos_neg_mul (hA : #(A ^ 3) ≤ K * #A) : #(A⁻¹ * A *
121121
rw [← card_inv]
122122
simpa [mul_assoc] using small_pos_neg_pos_mul (A := A) (K := K) (by simpa)
123123

124-
-- TODO: find a good way to fix this non-terminal simp;
125-
-- simp is called on 8 goals, with different simp sets
126-
set_option linter.flexible false in
127124
/-- If `A` has small tripling, say with constant `K`, then `A` has small alternating powers, in the
128125
sense that `|A^±1 * ... * A^±1|` is at most `|A|` times a constant exponential in the number of
129126
terms in the product.

0 commit comments

Comments
 (0)