Skip to content

Commit

Permalink
chore: speed up a proof in FieldTheory/NormalClosure (#12199)
Browse files Browse the repository at this point in the history
Speed up a proof which will otherwise timeout on nightly-testing.

Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
  • Loading branch information
semorrison and semorrison committed Apr 17, 2024
1 parent 08a6c1d commit 22f7e6f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Mathlib/FieldTheory/NormalClosure.lean
Expand Up @@ -213,11 +213,11 @@ noncomputable def Algebra.IsAlgebraic.algHomEmbeddingOfSplits (alg : IsAlgebraic
· exact splits_of_splits_of_dvd _ (minpoly.ne_zero iy)
(h y) (minpoly.dvd F x (mem_rootSet.mp hx).2)
· simp [minpoly.eq_zero iy] at hx
{ toFun := (φ.comp <| inclusion <| normalClosure_le_iSup_adjoin alg).comp ∘
(normalClosure.algHomEquiv F K L').symm
let φ' := (φ.comp <| inclusion <| normalClosure_le_iSup_adjoin alg)
{ toFun := φ'.comp ∘ (normalClosure.algHomEquiv F K L').symm
inj' := fun _ _ h ↦ (normalClosure.algHomEquiv F K L').symm.injective <| by
rw [DFunLike.ext'_iff] at h ⊢
exact (φ.comp _).injective.comp_left h }
exact φ'.injective.comp_left h }

namespace IntermediateField

Expand Down

0 comments on commit 22f7e6f

Please sign in to comment.