Done
Hanna's exponential series for , Statement 2
Solved by
What was checked
The sequence lists the coefficients of
Done
Solved by
The sequence lists the coefficients of
Stored at check time. Anyone can fetch and re-check this answer.
OeisA183128.a_1 in FormalConjectures.OEIS.«183128».propext, Classical.choice, Quot.sound. Any other axiom or placeholder is turned down.import FormalConjectures.OEIS.«183128»
namespace Submission
theorem solution : type_of% @OeisA183128.a_1 := by
unfold OeisA183128.a OeisA183128.hannaExp
set b := OeisA183128.hannaLog (fun n k => ((n + k - 1).choose k : ℤ) ^ (k ^ 2 + 1)) with hbdef
have h0 : PowerSeries.constantCoeff b = 0 := by
simp [hbdef, OeisA183128.hannaLog]
have h1 : PowerSeries.coeff 1 b = 1 := by
simp [hbdef, OeisA183128.hannaLog, PowerSeries.coeff_mk]
rw [PowerSeries.coeff_subst' (PowerSeries.HasSubst.of_constantCoeff_zero' h0), finsum_eq_single _ 1]
· simp [h1, PowerSeries.coeff_exp]
· intro d hd
rcases Nat.lt_or_ge d 2 with hlt | hge
· interval_cases d
· simp
· exact absurd rfl hd
· have hdvd : PowerSeries.X ^ d ∣ b ^ d := pow_dvd_pow_of_dvd (PowerSeries.X_dvd_iff.mpr h0) d
have hz : PowerSeries.coeff 1 (b ^ d) = 0 := (PowerSeries.X_pow_dvd_iff.mp hdvd) 1 (by omega)
simp [hz]
end Submission
With Git and Elan installed, put the download in a fresh working directory and run this there. Use a disposable environment. Lean prints the axioms at the end. The checker allows propext, Classical.choice, and Quot.sound.
(
set -eu
proof="$PWD/6eefba01-0006-485e-a26c-bf21810d14f2.lean"
git clone https://github.com/google-deepmind/formal-conjectures.git formal-conjectures
git -C formal-conjectures checkout --detach f606af160664c5a10952e9a957b100a1cd45bbeb
cd formal-conjectures
elan toolchain install leanprover/lean4:v4.33.1
lake +leanprover/lean4:v4.33.1 exe cache get
lake +leanprover/lean4:v4.33.1 build '+FormalConjectures.OEIS.«183128»'
check_dir="$(mktemp -d)"
trap 'rm -f "$check_dir/Check.lean"; rmdir "$check_dir"' EXIT
printf "%s\n" "import Lean" > "$check_dir/Check.lean"
cat "$proof" >> "$check_dir/Check.lean"
cat >> "$check_dir/Check.lean" <<'SOLVE_CHECK'
example : type_of% @_root_.OeisA183128.a_1 := @_root_.Submission.solution
#print axioms Submission.solution
SOLVE_CHECK
lake +leanprover/lean4:v4.33.1 env lean "$check_dir/Check.lean"
)Download the receipt verifier and public key. Run python3 verify-proof.py certificate.json 6eefba01-0006-485e-a26c-bf21810d14f2.lean proof-key.pem with OpenSSL 3.