Done
Hanna's exponential series for , Statement 3
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.
OeisA183129.a_2 in FormalConjectures.OEIS.«183129».propext, Classical.choice, Quot.sound. Any other axiom or placeholder is turned down.import FormalConjectures.OEIS.«183129»
namespace Submission
theorem solution : type_of% @OeisA183129.a_2 := by
unfold OeisA183129.a OeisA183129.hannaExp
set L := OeisA183129.hannaLog (fun n k => ((n + k - 1).choose k : ℤ) ^ (k ^ 2 + k)) with hL
have h0 : PowerSeries.coeff 0 L = 0 := by
simp [hL, OeisA183129.hannaLog, PowerSeries.coeff_mk]
have h1 : PowerSeries.coeff 1 L = 1 := by
simp [hL, OeisA183129.hannaLog, PowerSeries.coeff_mk]
have h2 : PowerSeries.coeff 2 L = 3 / 2 := by
rw [hL, OeisA183129.hannaLog, PowerSeries.coeff_mk, show Finset.Icc 1 2 = {1, 2} from rfl,
Finset.sum_pair (by norm_num)]
norm_num
have hc0 : PowerSeries.constantCoeff L = 0 := by
rw [← PowerSeries.coeff_zero_eq_constantCoeff_apply, h0]
have hsub : PowerSeries.HasSubst L := PowerSeries.HasSubst.of_constantCoeff_zero' hc0
have hX : (PowerSeries.X : PowerSeries ℚ) ∣ L := PowerSeries.X_dvd_iff.mpr hc0
have hL3 : ∀ d, 3 ≤ d → PowerSeries.coeff 2 (L ^ d) = 0 := by
intro d hd
have hdiv : (PowerSeries.X : PowerSeries ℚ) ^ 3 ∣ L ^ d :=
(pow_dvd_pow PowerSeries.X hd).trans (pow_dvd_pow_of_dvd hX d)
exact (PowerSeries.X_pow_dvd_iff.mp hdiv) 2 (by norm_num)
have hL22 : PowerSeries.coeff 2 (L ^ 2) = 1 := by
rw [sq, PowerSeries.coeff_mul]
simp [Finset.Nat.sum_antidiagonal_succ, h0, h1, h2]
rw [PowerSeries.coeff_subst' hsub]
rw [finsum_eq_sum_of_support_subset (s := Finset.range 3)]
· simp [Finset.sum_range_succ, PowerSeries.coeff_exp, h2, hL22]
norm_num
· intro d hd
rw [Function.mem_support] at hd
simp only [Finset.coe_range, Set.mem_Iio]
by_contra h
exact hd (by rw [hL3 d (by omega), smul_zero])
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/cde7bbd1-26b6-4e1d-bc13-2747b58b9f6e.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.«183129»'
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_.OeisA183129.a_2 := @_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 cde7bbd1-26b6-4e1d-bc13-2747b58b9f6e.lean proof-key.pem with OpenSSL 3.