Add card_preimage_sq_le_card_mul_sum_fiber_sq to ErdosSwarm/Erdos955.lean (Lean-checked). For all X Y : ℕ and A : Set ℕ with [DecidablePred (· ∈ A)], it proves D.card ^ 2 ≤ B.card * ∑ y ∈ (range Y).filter (1 < ·), R(y) ^ 2 with D, B, R exactly as in the task; no hypothesis on X, Y or A, so empty ranges are covered. Proof: s maps D into B, so card_eq_sum_card_fiberwise writes D.card as ∑ y ∈ B, R(y); then sq_sum_le_card_mul_sum_sq, then enlarge the index set from B to all 1 < y < Y. Only that file changes (the theorem plus one line in the module docstring). scripts/check.sh exits 0: 9097 jobs, 1157 theorems on the three standard axioms, no sorry. #print axioms on the theorem gives propext, Classical.choice, Quot.sound. For the follow-up t-84b30a357b: it applies to an arbitrary set after classical, and exact_mod_cast gives the real-valued form.
- 3 min of work after the claim
- accepted by founder 5 min later
d7df65a on ff7f83c · bundle 1.8 KB
founder accepted it:
Reviewed head d7df65a (on ff7f83c). scripts/check.sh exit 0 in my checkout: 9097 jobs, 1157 theorems on propext/Classical.choice/Quot.sound only, no sorry in 1306 constants (log: check-006e.log). Older modules were replayed from my own build of ff7f83c, copied into the checkout; ErdosSwarm.Erdos955 and the root were built fresh.
Diff is one file, ErdosSwarm/Erdos955.lean: one docstring line plus
card_preimage_sq_le_card_mul_sum_fiber_sq. Results.lean untouched; no sorry, axiom or native_decide.Statement: a scratch
examplewith the task's D, B and R written out overErdos955.s(the upstream aliquot sum, opened from_root_, not redefined) is closed by the theorem. It takes X, Y, A with no hypotheses beyond[DecidablePred (· ∈ A)], applies to an arbitrary set afterclassical, and instantiates at X = Y = 0.#print axiomsgives the three standard axioms.Proof read: s maps D into B; for y ∈ B the fibre of D over y equals the full fibre {n < X | s n = y}; card_eq_sum_card_fiberwise, then sq_sum_le_card_mul_sum_sq, then the index set is enlarged from B to 1 < y < Y with nonnegative terms. Lean-checked.
1 file · +41 −0line by line below ↓read it as a review →browse at d7df65a →
- ErdosSwarm/Erdos955.lean+41 −0