Skip to content

Commit 2a52b15

Browse files
chore: remove some redundant classical (#41497)
Remove `classical` (in two cases `open scoped Classical in`) when we already did `open (scoped) Classical in` Found by @vlad902 [here](#41423 (comment)) Co-authored-by: Batixx <s59fpern@uni-bonn.de>
1 parent e469acc commit 2a52b15

5 files changed

Lines changed: 1 addition & 6 deletions

File tree

Mathlib/Combinatorics/SimpleGraph/Clique.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,6 @@ lemma CliqueFree.mem_of_sup_edge_isNClique {x y : α} {t : Finset α} {n : ℕ}
546546
have ht : (t : Set α) \ {x} = t := sdiff_eq_left.mpr <| Set.disjoint_singleton_right.mpr hf
547547
exact h t ⟨ht ▸ hc.1.sdiff_of_sup_edge, hc.2
548548

549-
open scoped Classical in
550549
/-- Adding an edge increases the clique number by at most one. -/
551550
protected theorem CliqueFree.sup_edge (h : G.CliqueFree n) (v w : α) :
552551
(G ⊔ edge v w).CliqueFree (n + 1) := by

Mathlib/FieldTheory/PurelyInseparable/Exponent.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ is the smallest natural number `e` such that `a ^ ringExpChar K ^ e ∈ K`. -/
114114
noncomputable def elemExponent (a : L) : ℕ :=
115115
Nat.find <| minpoly_eq_X_pow_sub_C K (ringExpChar K) a
116116

117-
open scoped Classical in
118117
variable {K} in
119118
theorem elemExponent_eq_zero_of_mem_range {a : L} (h : a ∈ (algebraMap K L).range) :
120119
elemExponent K a = 0 := by

Mathlib/NumberTheory/NumberField/CanonicalEmbedding/NormLeOne.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,6 @@ theorem logMap_expMapBasis (x : realSpace K) :
533533
logMap (mixedSpaceOfRealSpace (expMapBasis x)) ∈
534534
ZSpan.fundamentalDomain ((basisUnitLattice K).ofZLatticeBasis ℝ (unitLattice K))
535535
↔ ∀ w, w ≠ w₀ → x w ∈ Set.Ico 0 1 := by
536-
classical
537536
simp_rw [ZSpan.mem_fundamentalDomain, equivFinRank.forall_congr_left, Subtype.forall]
538537
refine forall₂_congr fun w hw ↦ ?_
539538
rw [expMapBasis_apply'', map_smul, logMap_real_smul (norm_expMapBasis_ne_zero _)

Mathlib/RingTheory/DedekindDomain/Different.lean

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ open scoped Classical in
112112
lemma traceDual_top' :
113113
(⊤ : Submodule B L)ᵛ =
114114
if ((LinearMap.range (Algebra.trace K L)).restrictScalars A ≤ 1) thenelse ⊥ := by
115-
classical
116115
split_ifs with h
117116
· rw [_root_.eq_top_iff]
118117
exact fun _ _ _ _ ↦ h ⟨_, rfl⟩
@@ -224,11 +223,11 @@ variable [IsDomain A] [IsFractionRing B L] [Nontrivial B] [NoZeroDivisors B]
224223

225224
namespace FractionalIdeal
226225

227-
open scoped Classical in
228226
/-- The dual of a non-zero fractional ideal is the dual of the submodule under the trace form. -/
229227
noncomputable
230228
def dual (I : FractionalIdeal B⁰ L) :
231229
FractionalIdeal B⁰ L :=
230+
open scoped Classical in
232231
if hI : I = 0 then 0 else
233232
⟨Iᵛ, by
234233
classical

Mathlib/RingTheory/Extension/Presentation/Submersive.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,6 @@ variable [Fintype σ] [Fintype σ']
297297
open scoped Classical in
298298
private lemma jacobiMatrix_comp_inl_inr (i : σ') (j : σ) :
299299
(Q.comp P).jacobiMatrix (Sum.inl i) (Sum.inr j) = 0 := by
300-
classical
301300
rw [jacobiMatrix_apply]
302301
refine MvPolynomial.pderiv_eq_zero_of_notMem_vars (fun hmem ↦ ?_)
303302
apply MvPolynomial.vars_rename at hmem

0 commit comments

Comments
 (0)