-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: port FieldTheory.Finite.Trace (#5344)
- Loading branch information
1 parent
f707e57
commit 41ed4a5
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/- | ||
Copyright (c) 2022 Michael Stoll. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Michael Stoll | ||
! This file was ported from Lean 3 source module field_theory.finite.trace | ||
! leanprover-community/mathlib commit 0723536a0522d24fc2f159a096fb3304bef77472 | ||
! Please do not edit these lines, except to modify the commit id | ||
! if you have ported upstream changes. | ||
-/ | ||
import Mathlib.RingTheory.Trace | ||
import Mathlib.FieldTheory.Finite.GaloisField | ||
|
||
/-! | ||
# The trace map for finite fields | ||
We state the fact that the trace map from a finite field of | ||
characteristic `p` to `ZMod p` is nondegenerate. | ||
## Tags | ||
finite field, trace | ||
-/ | ||
|
||
|
||
namespace FiniteField | ||
|
||
/-- The trace map from a finite field to its prime field is nongedenerate. -/ | ||
theorem trace_to_zMod_nondegenerate (F : Type _) [Field F] [Finite F] | ||
[Algebra (ZMod (ringChar F)) F] {a : F} (ha : a ≠ 0) : | ||
∃ b : F, Algebra.trace (ZMod (ringChar F)) F (a * b) ≠ 0 := by | ||
haveI : Fact (ringChar F).Prime := ⟨CharP.char_is_prime F _⟩ | ||
have htr := traceForm_nondegenerate (ZMod (ringChar F)) F a | ||
simp_rw [Algebra.traceForm_apply] at htr | ||
by_contra' hf | ||
exact ha (htr hf) | ||
#align finite_field.trace_to_zmod_nondegenerate FiniteField.trace_to_zMod_nondegenerate | ||
|
||
end FiniteField |