Skip to content

Commit

Permalink
feat(field_theory/polynomial_galois_group): ext lemma (#6627)
Browse files Browse the repository at this point in the history
Two elements of `gal p` are equal if they agree on all roots of `p`
  • Loading branch information
tb65536 committed Mar 11, 2021
1 parent 3dd1257 commit 41f1196
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/field_theory/polynomial_galois_group.lean
Expand Up @@ -40,6 +40,13 @@ def gal := p.splitting_field ≃ₐ[F] p.splitting_field

namespace gal

@[ext] lemma ext {σ τ : p.gal} (h : ∀ x ∈ p.root_set p.splitting_field, σ x = τ x) : σ = τ :=
begin
refine alg_equiv.ext (λ x, (alg_hom.mem_equalizer σ.to_alg_hom τ.to_alg_hom x).mp
((subalgebra.ext_iff.mp _ x).mpr algebra.mem_top)),
rwa [eq_top_iff, ←splitting_field.adjoin_roots, algebra.adjoin_le_iff],
end

instance [h : fact (p.splits (ring_hom.id F))] : unique p.gal :=
{ default := 1,
uniq := λ f, alg_equiv.ext (λ x, by { obtain ⟨y, rfl⟩ := algebra.mem_bot.mp
Expand Down

0 comments on commit 41f1196

Please sign in to comment.