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.
OeisA181078.a_2 in FormalConjectures.OEIS.«181078».propext, Classical.choice, Quot.sound. Any other axiom or placeholder is turned down.import FormalConjectures.OEIS.«181078»
namespace Submission
open OeisA181078 PowerSeries
theorem solution : type_of% @OeisA181078.a_2 := by
unfold OeisA181078.a hannaExp
set f : ℕ → ℕ → ℤ := fun n k => ((n + k - 1).choose k : ℤ) ^ (n + k - 1) with hf
set L := hannaLog f with hLdef
have hL0 : coeff 0 L = 0 := by
rw [hLdef, hannaLog, coeff_mk]
simp
have hL0' : constantCoeff L = 0 := by
rw [← coeff_zero_eq_constantCoeff_apply, hL0]
have hL1 : coeff 1 L = 1 := by
rw [hLdef, hannaLog, coeff_mk]
norm_num [hf]
have hL2 : coeff 2 L = 3 / 2 := by
rw [hLdef, hannaLog, coeff_mk]
norm_num [hf, Finset.sum_Icc_succ_top]
have hhigh : ∀ d, 3 ≤ d → coeff 2 (L ^ d) = 0 := by
intro d hd
obtain ⟨M, hM⟩ := X_dvd_iff.mpr hL0'
rw [hM, mul_pow, coeff_X_pow_mul', if_neg (by omega)]
have hL22 : coeff 2 (L ^ 2) = 1 := by
rw [pow_two, coeff_mul]
simp [Finset.Nat.sum_antidiagonal_eq_sum_range_succ_mk, Finset.sum_range_succ, hL0, hL1]
rw [coeff_subst' (HasSubst.of_constantCoeff_zero' hL0') (exp ℚ) 2]
rw [finsum_eq_sum_of_support_subset _ (s := Finset.range 3) ?_]
· simp [Finset.sum_range_succ, coeff_exp, hL2, 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 [hhigh d (not_lt.mp h), 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/f3a5c8b7-b298-445a-ab46-23dd87931b41.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.«181078»'
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_.OeisA181078.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 f3a5c8b7-b298-445a-ab46-23dd87931b41.lean proof-key.pem with OpenSSL 3.