[Merged by Bors] - chore: remove nonterminal simp#7580
[Merged by Bors] - chore: remove nonterminal simp#7580BoltonBailey wants to merge 46 commits intomasterfrom
Conversation
…lib4 into BoltonBailey/nonterminal-simp-w-brackets-removal-squad
|
Lean 4 issue 2131 seems like it would make this easier, since I am currently trying to fix these by hand. |
…lib4 into BoltonBailey/nonterminal-simp-w-brackets-removal-squad
|
This PR/issue depends on: |
Mathlib/Algebra/ContinuedFractions/Computation/Translations.lean
Outdated
Show resolved
Hide resolved
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Mathlib/Algebra/ContinuedFractions/Computation/Translations.lean
Outdated
Show resolved
Hide resolved
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
| have : IntFractPair.stream v (n + 1) = some (IntFractPair.of ifp_n.fr⁻¹) := by | ||
| cases ifp_n | ||
| simp [IntFractPair.stream, stream_nth_eq, nth_fr_ne_zero] | ||
| simp only [IntFractPair.stream, Nat.add_eq, add_zero, stream_nth_eq, Option.some_bind, ite_eq_right_iff] |
There was a problem hiding this comment.
[lint-style] reported by reviewdog 🐶
| simp only [IntFractPair.stream, Nat.add_eq, add_zero, stream_nth_eq, Option.some_bind, ite_eq_right_iff] | |
| simp only [IntFractPair.stream, Nat.add_eq, add_zero, stream_nth_eq, Option.some_bind, ite_eq_right_iff] |
| have : IntFractPair.stream v (n + 1) = some (IntFractPair.of ifp_n.fr⁻¹) := by | ||
| cases ifp_n | ||
| simp [IntFractPair.stream, stream_nth_eq, nth_fr_ne_zero] | ||
| simp only [IntFractPair.stream, Nat.add_eq, add_zero, stream_nth_eq, Option.some_bind, ite_eq_right_iff] |
There was a problem hiding this comment.
[lint-style] reported by reviewdog 🐶
| simp only [IntFractPair.stream, Nat.add_eq, add_zero, stream_nth_eq, Option.some_bind, ite_eq_right_iff] | |
| simp only [IntFractPair.stream, Nat.add_eq, add_zero, stream_nth_eq, Option.some_bind, | |
| ite_eq_right_iff] |
| simp at hj | ||
| dsimp [σ, δ, Fin.predAbove, Fin.succAbove] | ||
| simp [Fin.lt_iff_val_lt_val, Fin.ite_val, Fin.dite_val] | ||
| simp only [Fin.lt_iff_val_lt_val, Fin.dite_val, Fin.ite_val, Fin.coe_pred, ge_iff_le, Fin.coe_castLT, dite_eq_ite] |
There was a problem hiding this comment.
[lint-style] reported by reviewdog 🐶
| simp only [Fin.lt_iff_val_lt_val, Fin.dite_val, Fin.ite_val, Fin.coe_pred, ge_iff_le, Fin.coe_castLT, dite_eq_ite] | |
| simp only [Fin.lt_iff_val_lt_val, Fin.dite_val, Fin.ite_val, Fin.coe_pred, ge_iff_le, | |
| Fin.coe_castLT, dite_eq_ite] |
| simp at H hk | ||
| dsimp [σ, Fin.predAbove] | ||
| simp [Fin.lt_iff_val_lt_val, Fin.ite_val] | ||
| simp only [Fin.lt_iff_val_lt_val, Fin.ite_val, Fin.coe_pred, ge_iff_le, dite_eq_ite, Fin.coe_castLT] |
There was a problem hiding this comment.
[lint-style] reported by reviewdog 🐶
| simp only [Fin.lt_iff_val_lt_val, Fin.ite_val, Fin.coe_pred, ge_iff_le, dite_eq_ite, Fin.coe_castLT] | |
| simp only [Fin.lt_iff_val_lt_val, Fin.ite_val, Fin.coe_pred, ge_iff_le, dite_eq_ite, | |
| Fin.coe_castLT] |
| · rw [dist_self_sub_left] | ||
| refine' (add_le_add_left (pi_norm_const_le <| 3 / 4 * δ) _).trans_eq _ | ||
| simp [abs_of_pos, abs_of_pos hδ] | ||
| simp only [norm_mul, norm_div, Real.norm_eq_abs, gt_iff_lt, zero_lt_three, abs_of_pos, zero_lt_four, abs_of_pos hδ] |
There was a problem hiding this comment.
[lint-style] reported by reviewdog 🐶
| simp only [norm_mul, norm_div, Real.norm_eq_abs, gt_iff_lt, zero_lt_three, abs_of_pos, zero_lt_four, abs_of_pos hδ] | |
| simp only [norm_mul, norm_div, Real.norm_eq_abs, gt_iff_lt, zero_lt_three, abs_of_pos, | |
| zero_lt_four, abs_of_pos hδ] |
| ⟨r • ‖y - x‖⁻¹ • (y - x) + x, _⟩⟩ | ||
| have : ‖y - x‖ ≠ 0 := by simpa [sub_eq_zero] | ||
| simp [norm_smul, this, Real.norm_of_nonneg hr] | ||
| simp only [mem_sphere_iff_norm, add_sub_cancel, norm_smul, Real.norm_eq_abs, norm_inv, norm_norm, ne_eq, norm_eq_zero] |
There was a problem hiding this comment.
[lint-style] reported by reviewdog 🐶
| simp only [mem_sphere_iff_norm, add_sub_cancel, norm_smul, Real.norm_eq_abs, norm_inv, norm_norm, ne_eq, norm_eq_zero] | |
| simp only [mem_sphere_iff_norm, add_sub_cancel, norm_smul, Real.norm_eq_abs, norm_inv, norm_norm, | |
| ne_eq, norm_eq_zero] |
| rw [toList, hc.cycleOf_eq (mem_support.mp _), hs, card_toFinset, dedup_eq_self.mpr hn] | ||
| · refine' ext_get (by simp) fun k hk hk' => _ | ||
| simp [formPerm_pow_apply_nthLe _ hn, Nat.mod_eq_of_lt hk'] | ||
| simp only [Nat.zero_eq, get_map, get_range, formPerm_pow_apply_nthLe _ hn, zero_add, Nat.mod_eq_of_lt hk'] |
There was a problem hiding this comment.
[lint-style] reported by reviewdog 🐶
| simp only [Nat.zero_eq, get_map, get_range, formPerm_pow_apply_nthLe _ hn, zero_add, Nat.mod_eq_of_lt hk'] | |
| simp only [Nat.zero_eq, get_map, get_range, formPerm_pow_apply_nthLe _ hn, zero_add, | |
| Nat.mod_eq_of_lt hk'] |
| theorem coeFn_add (μ ν : FiniteMeasure Ω) : (⇑(μ + ν) : Set Ω → ℝ≥0) = (⇑μ + ⇑ν : Set Ω → ℝ≥0) := by | ||
| funext | ||
| simp [← ENNReal.coe_eq_coe] | ||
| simp only [Pi.add_apply, ← ENNReal.coe_eq_coe, ne_eq, ennreal_coeFn_eq_coeFn_toMeasure, ENNReal.coe_add] |
There was a problem hiding this comment.
[lint-style] reported by reviewdog 🐶
| simp only [Pi.add_apply, ← ENNReal.coe_eq_coe, ne_eq, ennreal_coeFn_eq_coeFn_toMeasure, ENNReal.coe_add] | |
| simp only [Pi.add_apply, ← ENNReal.coe_eq_coe, ne_eq, ennreal_coeFn_eq_coeFn_toMeasure, | |
| ENNReal.coe_add] |
| (⇑(c • μ) : Set Ω → ℝ≥0) = c • (⇑μ : Set Ω → ℝ≥0) := by | ||
| funext | ||
| simp [← ENNReal.coe_eq_coe, ENNReal.coe_smul] | ||
| simp only [Pi.smul_apply, ← ENNReal.coe_eq_coe, ne_eq, ennreal_coeFn_eq_coeFn_toMeasure, ENNReal.coe_smul] |
There was a problem hiding this comment.
[lint-style] reported by reviewdog 🐶
| simp only [Pi.smul_apply, ← ENNReal.coe_eq_coe, ne_eq, ennreal_coeFn_eq_coeFn_toMeasure, ENNReal.coe_smul] | |
| simp only [Pi.smul_apply, ← ENNReal.coe_eq_coe, ne_eq, ennreal_coeFn_eq_coeFn_toMeasure, | |
| ENNReal.coe_smul] |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…lib4 into BoltonBailey/nonterminal-simp-w-brackets-removal-squad
Co-authored-by: Joël Riou <37772949+joelriou@users.noreply.github.com>
|
LGTM! I am sorry to have caused so much pain, but I think that this is a strong improvement! I agree with the comment that ideally the linter should be implemented in lean directly, but currently, this is what is available! Thanks! |
What doesn't kill you makes you stronger! |
|
Thanks! bors merge |
Removes nonterminal simps on lines looking like `simp [...]`
|
Pull request successfully merged into master. Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
Removes nonterminal simps on lines looking like
simp [...][<- x]) leanprover/lean4#2131