-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(number_theory/basic): dvd_sub_pow_of_dvd_sub (#2640)
Co-authored with: Kenny Lau <kc_kennylau@yahoo.com.hk>
- Loading branch information
Showing
3 changed files
with
52 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,31 @@ | ||
/- | ||
Copyright (c) 2020 Johan Commelin. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Johan Commelin, Kenny Lau | ||
-/ | ||
|
||
import algebra.geom_sum | ||
import ring_theory.ideals | ||
|
||
section | ||
|
||
open ideal ideal.quotient | ||
|
||
lemma dvd_sub_pow_of_dvd_sub {R : Type*} [comm_ring R] {p : ℕ} | ||
{a b : R} (h : (p : R) ∣ a - b) (k : ℕ) : | ||
(p^(k+1) : R) ∣ a^(p^k) - b^(p^k) := | ||
begin | ||
induction k with k ih, | ||
{ rwa [pow_one, nat.pow_zero, pow_one, pow_one] }, | ||
rw [nat.pow_succ, pow_mul, pow_mul, ← geom_sum₂_mul, pow_succ], | ||
refine mul_dvd_mul _ ih, | ||
let I : ideal R := span {p}, | ||
let f : R →+* ideal.quotient I := mk_hom I, | ||
have hp : (p : ideal.quotient I) = 0, | ||
{ rw [← f.map_nat_cast, ← mk_eq_mk_hom, eq_zero_iff_mem, mem_span_singleton] }, | ||
rw [← mem_span_singleton, ← ideal.quotient.eq, mk_eq_mk_hom, mk_eq_mk_hom] at h, | ||
rw [← mem_span_singleton, ← eq_zero_iff_mem, mk_eq_mk_hom, ring_hom.map_geom_series₂, | ||
ring_hom.map_pow, ring_hom.map_pow, h, geom_series₂_self, hp, zero_mul], | ||
end | ||
|
||
end |
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