Skip to content

Document and test the certified real-ball pi enclosure - #11

Open
ValentinHirschi wants to merge 1 commit into
symbolica-dev:mainfrom
ValentinHirschi:codex/certified-real-ball-pi
Open

ValentinHirschi wants to merge 1 commit into
symbolica-dev:mainfrom
ValentinHirschi:codex/certified-real-ball-pi

Conversation

@ValentinHirschi

Copy link
Copy Markdown
Contributor

RealBall::pi() already encloses the mathematical constant, but its documentation excludes it from the certified operations. Document the existing rounding argument and test it without changing the arithmetic: a nearest-rounded p-bit centre c lies in [2,4], its error is at most 2^(1-p), and the upward-rounded radius c·2^-p covers that error. The endpoints also round outward. MPFR and Astro both provide the required nearest rounding; Astro may use more than the requested precision.

The tests cover low and word-boundary precisions, the exact rational rounding bound, containment of a higher-precision enclosure, and the failure of a zero-radius rounded centre. The claim is specific to pi and does not certify the other inherited transcendental operations.

Validation:

  • All 12 interval tests pass with default MPFR and with --no-default-features --features integer-malachite,float-astro.
  • cargo fmt --check and cargo doc --lib --no-deps with broken intra-doc links denied pass.
  • Whole-crate strict Clippy fails on existing findings. An isolated comparison against the same base and lockfile, allowing only the inherited approx_constant deny, produces the same 277 warning diagnostics in base and candidate, with no new findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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