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.
OeisA181078.a_1 in FormalConjectures.OEIS.«181078».propext, Classical.choice, Quot.sound. Any other axiom or placeholder is turned down.import FormalConjectures.OEIS.«181078»
namespace Submission
open PowerSeries
theorem solution : type_of% @OeisA181078.a_1 := by
unfold OeisA181078.a OeisA181078.hannaExp
set L := OeisA181078.hannaLog (fun n k => ((n + k - 1).choose k : ℤ) ^ (n + k - 1)) with hLdef
have hL0 : constantCoeff L = 0 := by
simp [hLdef, OeisA181078.hannaLog, ← coeff_zero_eq_constantCoeff_apply]
have hL1 : coeff 1 L = 1 := by
simp [hLdef, OeisA181078.hannaLog]
have hcoeff : ∀ d : ℕ, 2 ≤ d → coeff 1 (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)]
rw [coeff_subst' (HasSubst.of_constantCoeff_zero' hL0)]
rw [finsum_eq_single _ 1]
· simp [coeff_exp, hL1]
· intro d hd
rcases Nat.lt_or_ge d 2 with h | h
· interval_cases d
· simp
· exact absurd rfl hd
· simp [hcoeff d h]
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/9914c343-edce-4b2b-a713-ab748a51a182.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_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 9914c343-edce-4b2b-a713-ab748a51a182.lean proof-key.pem with OpenSSL 3.