theoremcomparison_base (n p : ℕ) (φ : A→+* S) (hp : Prime (p : A))
(hpS : φ (p : A) ≠0)
(v : ElemA n →+* S)
(vscalar : ∀a : A, v (scalar n a) = φ a)
(vres : ∀F : ElemA n,
IsLocalRing.residue S (v F) =
IsLocalRing.residue S (φ (augmentation n F)))
(b : Aˣ) (FK : ElemA n)
(hFK : F * K = scalar n ((p : A) * (b : A))) :
ResidueOneAssociated (IsLocalRing.residue S) (v F) (φ (augmentation n F)) ∧ResidueOneAssociated (IsLocalRing.residue S) (v K) (φ (augmentation n K)) :=by
proof · 21
lines
havehaug : augmentation n F * augmentation n K = (p : A) * (b : A) :=by
simpa only [map_mul, augmentation_scalar] using congrArg (augmentation n) hFK
havehv : v F * v K = φ ((p : A) * (b : A)) :=by
simpa only [map_mul, vscalar] using congrArg v hFK
havehprod : v F * v K = φ (augmentation n F) * φ (augmentation n K) :=bycalc
v F * v K = φ ((p : A) * (b : A)) := hv
_ = φ (augmentation n F * augmentation n K) := congrArg φ haug.symm
_ = φ (augmentation n F) * φ (augmentation n K) := φ.map_mul _ _
havehne : φ (augmentation n F) * φ (augmentation n K) ≠0:=by
rw [← map_mul, haug, map_mul]
exact mul_ne_zero hpS (b.isUnit.map φ).ne_zero
rcases isUnit_or_isUnit_of_mul_prime_unit hp b haug with hF | hK
· have h := residueOneAssociated_of_isUnit_residue_eq (hF.map φ) (vres F)
exact ⟨h, h.product_complement hprod hne⟩
· have h := residueOneAssociated_of_isUnit_residue_eq (hK.map φ) (vres K)
havehprod' : v K * v F = φ (augmentation n K) * φ (augmentation n F) :=by
simpa only [mul_comm] using hprod
havehne' : φ (augmentation n K) * φ (augmentation n F) ≠0:=by
simpa only [mul_comm] using hne
exact ⟨h.product_complement hprod' hne', h⟩
Induction step when the first projected factor is divisible by p.
The other factor is left intact. The two output associations are both
transported, so the next step may divide either factor.
theoremcomparison_step_left [IsDomainS] (p e : ℕ) (φ : A→+* S)
(hp : (p : A) ≠0)
(v : ElemA (p ^ (e + 1)) →+* S)
(v' : ElemA (p ^ (e + 2)) →+* S)
(vscalar : ∀a : A, v (scalar (p ^ (e + 1)) a) = φ a)
(vq : ∀F : ElemA (p ^ (e + 2)),
v (cyclicProjection A (pow_dvd_pow p (Nat.le_succ (e + 1))) F) = v' F)
(b : Aˣ) (FK : ElemA (p ^ (e + 2)))
(hFK : F * K = scalar (p ^ (e + 2)) ((p : A) ^ (e + 2) * (b : A)))
(F' : ElemA (p ^ (e + 1)))
(hF : cyclicProjection A (pow_dvd_pow p (Nat.le_succ (e + 1))) F =
scalar (p ^ (e + 1)) (p : A) * F')
(ih : ∀UV : ElemA (p ^ (e + 1)),
U * V = scalar (p ^ (e + 1)) ((p : A) ^ (e + 1) * (b : A)) →ResidueOneAssociated (IsLocalRing.residue S) (v U)
(φ (augmentation (p ^ (e + 1)) U)) ∧ResidueOneAssociated (IsLocalRing.residue S) (v V)
(φ (augmentation (p ^ (e + 1)) V))) :
ResidueOneAssociated (IsLocalRing.residue S) (v' F)
(φ (augmentation (p ^ (e + 2)) F)) ∧ResidueOneAssociated (IsLocalRing.residue S) (v' K)
(φ (augmentation (p ^ (e + 2)) K)) :=by
proof · 15
lines
let q := cyclicProjection A (pow_dvd_pow p (Nat.le_succ (e + 1)))
havehdiv : F' * q K = scalar (p ^ (e + 1)) ((p : A) ^ (e + 1) * (b : A)) :=
quotient_scalar_norm_division q (fun a => cyclicProjection_single_zero _ a)
(p : A) hp (e + 1) (b : A) FKF' hFK hF
obtain ⟨hiF, hiK⟩ := ih F' (q K) hdiv
haveheval : v' F = φ (p : A) * v F':=by
rw [← vq F, hF, map_mul, vscalar]
havehaug : augmentation (p ^ (e + 2)) F =
(p : A) * augmentation (p ^ (e + 1)) F':=by
rw [← augmentation_cyclicProjection (pow_dvd_pow p (Nat.le_succ (e + 1))) F,
hF, map_mul, augmentation_scalar]
constructor
· rw [heval, haug, map_mul]
exact hiF.mul_left (φ (p : A))
· simpa only [q, vq, augmentation_cyclicProjection] using hiK
The integral induction with its projection-divisibility input exposed.
The concrete cyclotomic theorem discharges hdivide; it is not a definition
of the comparison conclusion.
theoremcomparison_induction (p : ℕ) (φ : A→+* S)
(hp : Prime (p : A)) (hpS : φ (p : A) ≠0)
(v : (e : ℕ) →ElemA (p ^ (e + 1)) →+* S)
(vscalar : ∀ e a, v e (scalar (p ^ (e + 1)) a) = φ a)
(vres : ∀F : ElemA (p ^ 1),
IsLocalRing.residue S (v 0F) =
IsLocalRing.residue S (φ (augmentation (p ^ 1) F)))
(vq : ∀ e F,
v e (cyclicProjection A (pow_dvd_pow p (Nat.le_succ (e + 1))) F) = v (e + 1) F)
(hdivide : ∀ e (b : Aˣ) (FK : ElemA (p ^ (e + 2))),
F * K = scalar (p ^ (e + 2)) ((p : A) ^ (e + 2) * (b : A)) →
(∃F', cyclicProjection A (pow_dvd_pow p (Nat.le_succ (e + 1))) F =
scalar (p ^ (e + 1)) (p : A) * F') ∨
(∃K', cyclicProjection A (pow_dvd_pow p (Nat.le_succ (e + 1))) K =
scalar (p ^ (e + 1)) (p : A) * K')) :
∀ e (b : Aˣ) (FK : ElemA (p ^ (e + 1))),
F * K = scalar (p ^ (e + 1)) ((p : A) ^ (e + 1) * (b : A)) →ResidueOneAssociated (IsLocalRing.residue S) (v e F)
(φ (augmentation (p ^ (e + 1)) F)) ∧ResidueOneAssociated (IsLocalRing.residue S) (v e K)
(φ (augmentation (p ^ (e + 1)) K)) :=by
proof · 16
lines
intro e
induction e with
| zero =>
intro b FK hFK
exact comparison_base (p ^ (0 + 1)) p φ hp hpS (v 0) (vscalar 0) vres
b FK (by simpa only [Nat.zero_add, pow_one] using hFK)
| succ e ih =>
intro b FK hFK
rcases hdivide e b FK hFK with ⟨F', hF⟩ | ⟨K', hK⟩
· exact comparison_step_left p e φ hp.ne_zero (v e) (v (e + 1))
(vscalar e) (vq e) b FK hFK F' hF (ih b)
· havehKF : K * F = scalar (p ^ (e + 2))
((p : A) ^ (e + 2) * (b : A)) :=by
simpa only [mul_comm] using hFK
exact (comparison_step_left p e φ hp.ne_zero (v e) (v (e + 1))
(vscalar e) (vq e) b KF hKF K' hK (ih b)).symm