Implement total pure v0 expression calculus - #140
Conversation
|
Independent blocking review by Codex task |
|
Addressed every blocking finding in
Focused type/calculus tests and all five local gates are green. Please re-review only the new exact head. |
|
Independent re-review by Codex task |
|
Resolved the Decimal allocation blocker in |
|
Independent approval by task Final re-review result: approved; no actionable findings.
Because the shared GitHub account authored the PR, this comment records the independent reviewer identity and approval instead of an invalid author approval. Exact-head squash auto-merge may proceed once all required checks pass. |
Closes #104
Outcome
Red-to-green evidence
cargo test --test expression_calculusinitially failed becausebhcp::expressiondid not exist; the next focused run pinned record/tuple/let/if, match, and cast forms asBHCP4201unsupported forms.u64::MAXRational comparison and identified unbound verifier witnesses, Text-only maps, rejected open-record extras, and an unbounded Decimal-exponent allocation path.BHCP4202; the 10 calculus tests cover all constructors/patterns and adversarial totality/purity behavior.Validation
cargo fmt --checkcargo clippy --all-targets -- -D warningscargo test --all-targets(green in under one minute locally; focused calculus tests complete in 0.00s)cargo build --releasecargo test --test schema_fixturesReview finding resolution
[K, V]pairs; exact Text maps retain native canonical CBOR-map encoding.Documentation impact
Updated README implementation coverage, the S5 implementation-status paragraph, conformance EXP evidence, and the CI semantic/conformance shard. General source definition resolution and semantic-IR elaboration remain explicitly deferred to #105.
Residual risk
The checked value model retains the repository-wide deterministic-CBOR integer component boundary; explicitly machine-sized overflow, non-integral Integer division, non-terminating Decimal quotients, and Decimal evaluation beyond the explicit allocation ceiling fault. The evaluator does not invoke verifier callbacks: it consumes evidence already accepted at the evaluation boundary and binds it to the complete checked quantifier.
Reviewed head
ea952c2b56510f803bb2aebc1e718900407b59d6