lemmaprimeTuple_update_weight (f : ι →Eisenstein) (i : ι) (p : Eisenstein)
(w : ι →Eisenstein→ℂ) :
(∏ j, w j (Function.update f i p j)) = w i p*(∏ j ∈Finset.univ.erase i, w j (f j)) :=by
proof · 6
lines
rw [←Finset.mul_prod_erase Finset.univ (fun j => w j (Function.update f i p j))
(Finset.mem_univ i),Function.update_self]
congr 1
apply Finset.prod_congr rfl
intro j hj
rw [Function.update_of_ne (Finset.mem_erase.mp hj).1]
theoremdistinguished_tuple_largest_reindex [Nonempty ι]
(S : ι →FinsetEisenstein) (hS : ∀ i, ∀ p ∈S i, primaryPrime p)
{d : Eisenstein} (hd : primary d) (F : (ι →Eisenstein) →ℂ) :
(∑ f ∈ (Fintype.piFinset S).filter (fun f =>Squarefree ((∏ i, f i)*d)),
if largestPrimeChoice ((∏ i, f i)*d) ∣∏ i, f i thenF f else0) =
∑ i, ∑ g ∈ coordinateComplementTuples S i, ∑ p ∈S i,
ifSquarefree ((∏ j, Function.update g i p j)*d) ∧
largestPrimeChoice ((∏ j, Function.update g i p j)*d) = p
thenF (Function.update g i p) else0:=by
proof · 21
lines
rw [Finset.sum_filter]
calc
_ = ∑ f ∈Fintype.piFinset S, ∑ i,
ifSquarefree ((∏ j, f j)*d) ∧ largestPrimeChoice ((∏ j, f j)*d) = f i
thenF f else0:=by
apply Finset.sum_congr rfl
intro f hf
by_cases hs : Squarefree ((∏ j, f j)*d)
· simpa only [hs,ite_true,true_and] using
distinguished_largest_coordinate_roles f
(fun i => hS i (f i) ((Fintype.mem_piFinset.mp hf) i)) hd hs (F f)
· simp only [hs,false_and,ite_false,Finset.sum_const_zero]
_ = ∑ i, ∑ f ∈Fintype.piFinset S,
ifSquarefree ((∏ j, f j)*d) ∧ largestPrimeChoice ((∏ j, f j)*d) = f i
thenF f else0:=Finset.sum_comm
_ = _ :=by
apply Finset.sum_congr rfl
intro i hi
rw [primeTuple_coordinate_reindex S i]
rw [Finset.sum_comm]
simp only [Function.update_self]