Skip to content

positivity improvements suggested by tryAtEachStep#4

Merged
augustepoiroux merged 1 commit into
math-inc:gaussfrom
dwrensha:tryAtEachStep-positivity
Feb 24, 2026
Merged

positivity improvements suggested by tryAtEachStep#4
augustepoiroux merged 1 commit into
math-inc:gaussfrom
dwrensha:tryAtEachStep-positivity

Conversation

@dwrensha

Copy link
Copy Markdown

Saves a bunch of lines of code, and in a bunch of cases avoids using nlinarith, which is slow.

-- One strictly positive term implies the whole sum is positive.
simpa using hsumRe.tsum_pos hnonneg 1 hpos1
(24 : ℝ) * (n : ℝ) * (σ 1 n : ℝ) * Real.exp (-2 * Real.pi * (n : ℝ) * t) :=
Summable.tsum_pos hsumRe (fun i ↦ by positivity) 1 (by positivity)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Impressive improvement

@augustepoiroux augustepoiroux merged commit eae56f8 into math-inc:gauss Feb 24, 2026
@dwrensha dwrensha deleted the tryAtEachStep-positivity branch February 24, 2026 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants