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.
OeisA183128.a_2 in FormalConjectures.OEIS.«183128».propext, Classical.choice, Quot.sound. Any other axiom or placeholder is turned down.import FormalConjectures.OEIS.«183128»
namespace Submission
open PowerSeries OeisA183128
theorem solution : type_of% @OeisA183128.a_2 := by
set f : ℕ → ℕ → ℤ := fun n k => ((n + k - 1).choose k : ℤ) ^ (k ^ 2 + 1) with hf
set L := hannaLog f with hL
have hL0 : constantCoeff L = 0 := by
simp [hL, hannaLog]
have hsub : HasSubst L := HasSubst.of_constantCoeff_zero' hL0
have hL1 : coeff 1 L = 1 := by
simp [hL, hannaLog, hf]
have hL2 : coeff 2 L = 3 / 2 := by
simp [hL, hannaLog, hf, Finset.sum_Icc_succ_top]
norm_num
have hL2sq : coeff 2 (L ^ 2) = 1 := by
rw [sq, coeff_mul]
simp [Finset.Nat.sum_antidiagonal_succ, hL0, hL1]
have hsupp : ∀ d, 2 < d → coeff 2 (L ^ d) = 0 := by
intro d hd
have hdvd : (X : ℚ⟦X⟧) ^ d ∣ L ^ d :=
pow_dvd_pow_of_dvd (X_dvd_iff.mpr hL0) d
exact X_pow_dvd_iff.mp hdvd 2 hd
show coeff 2 (subst L (exp ℚ)) = 2
rw [coeff_subst' hsub]
have hsum : (fun d : ℕ => coeff d (exp ℚ) • coeff 2 (L ^ d)).support ⊆ ↑(Finset.range 3) := by
intro d hd
simp only [Function.mem_support, ne_eq] at hd
simp only [Finset.coe_range, Set.mem_Iio]
by_contra h
exact hd (by simp [hsupp d (by omega)])
rw [finsum_eq_sum_of_support_subset _ hsum]
simp [Finset.sum_range_succ, hL2, hL2sq, coeff_exp]
norm_num
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/7fe26d4a-361f-403d-b122-abba62272bde.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_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 7fe26d4a-361f-403d-b122-abba62272bde.lean proof-key.pem with OpenSSL 3.