Skip to content

spec(port): verify_precision as .t27 - #6283

Merged
dmitrii-f-t27 merged 1 commit into
masterfrom
spec/port-verify-precision-5620
Oct 4, 2026
Merged

dmitrii-f-t27 merged 1 commit into
masterfrom
spec/port-verify-precision-5620

Conversation

@dmitrii-f-t27

Copy link
Copy Markdown
Collaborator

Closes #5620

Adds specs/port/scripts/verify_precision.t27, the port of scripts/verify_precision.py. One file, nothing else.

Ported: the refusal to run without mpmath (exit 1), the default of 100 digits, and the closed forms of the phi identity, the trinity identity (phi^2 + phi_inv^2 = 3) and the Pellis expression, in f64. Arbitrary-precision arithmetic, argparse, JSON and file output are plumbing and stay an undefined; main. The Pellis value (137.21633905226457) was checked against the original formula in Python double precision; f64 cannot reproduce the 100-digit output of the original.

Checks from this branch with t27c built from the same tree and Zig 0.16.0: typecheck OK, spec-status IMPLEMENTED, gen 83 lines with 0 x not yet implemented, test-report 7 tests, 7 pass, 0 BLOCKED, dupe_scan ok.

Not checked: CI result is pending.

🤖 Generated with Claude Code

…n.t27 (Closes #5620)

Ports what the script decides and computes: exit 1 without mpmath, the default of
100 digits, and the closed forms of the phi identity, the trinity identity and the
Pellis expression in f64 (arbitrary precision, argparse, JSON and file output stay
plumbing). The Pellis value 137.21633905226457 was checked against the original
formula in Python.

Checked with t27c from this tree and Zig 0.16.0: typecheck OK, spec-status
IMPLEMENTED, gen 83 lines with no "not yet implemented", test-report 7/7.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

PR Dashboard

Generated at: 2026-10-04 21:31:24 UTC

Summary

Status Count
Total Open PRs 50
PRs with Failing Checks 39
PRs with All Checks Green 11
READY 11
FAILING 39
PENDING 0
NO CHECKS YET 0

Seal Status

  • ⚠️ STALE -- sha256(compiler.rs)=8597b6ded596 != manifest seal=87e5cbd3ad94.
    The committed NMSE numbers were certified against an older compiler.rs.
    Run scripts/reseal-check.sh locally for the two-step reseal command (advisory; not a merge gate).

@dmitrii-f-t27
dmitrii-f-t27 merged commit 9ab8c32 into master Oct 4, 2026
23 of 25 checks passed
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.

Port scripts/verify_precision.py (Python, 1 function) to specs/port/scripts/verify_precision.t27

1 participant