rfc: specify closed contract proof and report rules
This commit is contained in:
1 parent
a4181f2d8d
commit
8260d3521e
8 files changed
+185
-4
No files matched your search
@@ -129,7 +129,7 @@ False pre/post conditions need distinct stable trap codes, not allocated here; a
|
||||
| ASSUMED_UNSAFE | an explicit unsafe assumption and its visible boundary; never inferred from an empty effect list |
|
||||
| UNPROVEN | no discharged obligation; no caller may rely on it as a fact |
|
||||
|
||||
The [status/accounting research](../design/contract-accounting-and-status.md) proposes a restricted automatic proof classifier, explicit assumed/documented clause modes and a staged diagnostic/report candidate. Proven runtime clauses still execute their predicates; assumption requires an unsafe boundary, documentation grants no truth guarantee, and checked value construction remains enforced. Exact proof-cost conventions, diagnostic collection, report schema and owner adoption remain gates. The audit table must identify clause, boundary, status and source/AIR position; existing assertion counts remain counts. Proposed E7xxx reason fields and new AIR/contract trap codes are not allocated by this draft.
|
||||
The [status/accounting research](../design/contract-accounting-and-status.md) proposes a restricted automatic proof classifier, explicit assumed/documented clause modes and staged diagnostics. The [proof/report refinement](../design/contract-proof-and-report.md) supplies exact logical charges, fallback order, function/value rows, source-provenance rules and call/check accounting. Proven runtime clauses still execute their predicates; assumption requires an unsafe boundary, documentation grants no truth guarantee, and checked value construction remains enforced. Module metadata, diagnostic collection, adoption and implementation remain gates. Existing assertion counts remain counts. Proposed E7xxx reason fields and new AIR/contract trap codes are not allocated by this draft.
|
||||
|
||||
Valid target example: a function with `requires { x > 0u64; }` and `ensures { result == old(x); }` returning x; a positive argument succeeds and zero traps at entry. Rejected target example: a postcondition dereferencing an owner consumed by the body; the existing availability rule must still reject it. These are design targets, not current conformance fixtures.
|
||||
|
||||
|
||||
Reference in new issue
Block a user