Skip to content

meta: add assert_computable, synced from ironwood - #8

Merged
daira merged 1 commit into
mainfrom
sync-assert-computable
Jul 19, 2026
Merged

meta: add assert_computable, synced from ironwood#8
daira merged 1 commit into
mainfrom
sync-assert-computable

Conversation

@daira

@daira daira commented Jul 19, 2026

Copy link
Copy Markdown
Owner

Ports assert_computable from ironwood's Zcash/Meta/AxiomCheck.lean, keeping the two shared macro files in sync per their module docstrings: a build check that a declaration is a plain def (not a theorem, not marked noncomputable) with axioms bounded by propext/Quot.sound, with +choice and +native opt-ins. CompElliptic has no computed-reduction defs yet, so no census changes here.

🤖 Claude Fable 5

A build check for computed reductions: the declaration must be a plain
def — an actual definition, not marked noncomputable — with axioms
bounded by propext / Quot.sound. +choice permits Classical.choice,
which with the plain-def check asserts choice enters only through
erased Prop fields. +native permits native_decide compiler-trust
axioms. The plain-def check catches a def being marked noncomputable
later, which would otherwise build and silently void a
computed-reduction convention.

Ported verbatim from ironwood's Zcash/Meta/AxiomCheck.lean; the module
docstrings on both sides say to keep the two files in sync.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
@daira
daira marked this pull request as ready for review July 19, 2026 21:07

@daira daira left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Self-ACK

@daira
daira merged commit bcfefdb into main Jul 19, 2026
2 checks passed
@daira
daira deleted the sync-assert-computable branch July 19, 2026 21:08
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.

1 participant