Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a misformalization of putnam_2022_b1 #227

Merged
merged 2 commits into from
Oct 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 7 additions & 11 deletions lean4/src/putnam_2022_b1.lean
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,10 @@ open Polynomial
Suppose that $P(x)=a_1x+a_2x^2+\cdots+a_nx^n$ is a polynomial with integer coefficients, with $a_1$ odd. Suppose that $e^{P(x)}=b_0+b_1x+b_2x^2+\dots$ for all $x$. Prove that $b_k$ is nonzero for all $k \geq 0$.
-/
theorem putnam_2022_b1
(n : ℕ)
(P : Polynomial ℝ)
(B : Polynomial ℝ)
(npos : n ≥ 1)
(Pconst : P.coeff 0 = 0)
(Pdegree : P.degree = n)
(Pint : ∀ k : Set.Icc 1 n, P.coeff k = round (P.coeff k))
(Podd : Odd (round (P.coeff 1)))
(hB : ∀ x : ℝ, Real.exp (P.eval x) = B.eval x)
: ∀ k : ℕ, B.coeff k ≠ 0 :=
sorry
(P : Polynomial ℤ)
(b : ℕ → ℝ)
(Pconst : P.coeff 0 = 0)
(Podd : Odd (P.coeff 1))
(hB : ∀ x : ℝ, HasSum (fun i => b i * x ^ i) (Real.exp (aeval x P))) :
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there might be a preferred spelling of this with PowerSeries or FormalMultilinearSeries, but I couldn't work it out.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ocfnash, do you think HasSum or tsum is better here?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a mild preference for HasSum here but either is fine.

∀ k : ℕ, b k ≠ 0 := by
sorry
Loading