Yana 0.1
This document is draft 0.1. The obligations, verdicts, and evidence rules it requires are normative.
1 Purpose
Yana is a system of verification verdicts over two source representations and their Lena representations. Yana needs no separate language for writing programs to run. The user supplies the pair to compare. The verifier generates the obligations the comparison scope needs, and the checker confirms the binding and the evidence.
Conformance tests observe · obligations generated from the pair alone, and differences between the check result and the submitted verdict.
2 Subjects and input domain
A comparison pair consists of the reference source S, the target artifact A, and their Lena representations L_S and L_A. The entry points of the two sources and their Lena signatures are mapped onto a common input tuple and result type. Being the reference source is a role at a boundary. An artifact may be the reference at another boundary.
U is the product set of all input tuples possible under the common signature and width. With zero parameters, the product set holds a single empty tuple. Without a restriction, D = U. With a restriction, D = { x ∈ U | P(x) = true }. The predicate P is bound by its canonical S-expression bytes under Lena core §10. P uses the same width and ordered input types, and must yield one boolean value on all of U. A predicate that breaks this premise is a contract violation. If the evidence needed to confirm it is missing, the result is undecided. Before a relation is established, D ≠ ∅ must be confirmed. One well-typed input that satisfies P(x) can serve as that evidence.
The predicate of an explicit contract first fixes a candidate domain. If the candidate domain the user specified is empty, it is rejected as a contract violation. Such a candidate is not adopted as the D of an obligation. If a D that the verifier built by default or accepted turns out empty, that is a verifier defect.
Conformance tests observe · differences in signature and width, a domain with no parameters, faults in a restricting predicate, rejection of an empty contract candidate, an empty domain arising in the verifier, and evidence of non-emptiness.
3 Premises and the observation contract
The default contract uses the full domain of the common signature, all of Lena's values and language faults, and the equivalence relation. Values on both sides are compared by type and value. Language faults are compared by kind, cause, source ID, and range. The two variants are distinct from each other. Target internal defects are always looked for as a separate failure condition. Two defect observations are identical when their (module, code) pairs are. module is the full text header of the extension where the defect arose. For example, a storage defect has lena-storage-0.1 and a control defect has lena-control-0.1. A storage defect raised inside control keeps the storage module and code. Codes are written exactly, including case. Cell, block, and binding IDs are auxiliary diagnostics.
The contract binds the set of original sources both sides share and the position mapping for each side. Normalization and relation obligations both compare observations in this coordinate system. For example, if the original and the generated output point to the same original operation, their source IDs and ranges must match even when their representation files differ. If the generated output points to a different original range, that difference in location is preserved.
Execution premises, the entry boundary, the exclusion of host effects, the source mapping, and size and depth limits are stated and bound in the verification profile. A premise whose application must be confirmed and that does not hold is a contract violation. Assumed premises are listed openly, and the conclusion is limited to what holds under those assumptions.
An explicit contract is optional. It may specify an input predicate or a relation. Only under the refinement relation may it add a finite list of complete observation pairs, each a reference fault and a target fault to allow. It may not drop default observation fields or allow internal defects.
Conformance tests observe · application of the default contract, violated entry premises, a difference in a single fault field, and the scope and binding of explicit contracts.
3.1 Position mapping topaz-diag-1
When Topaz diagnostics are observed, both sides declare scheme = "topaz-diag-1" and version = "1" in the verification profile. The rules rest on topaz_diag at Topaz dab00d2b17fe502d1de7277c4516ce6f2246245e. They use line_bounds and line_col in compiler/v6/crates/topaz_diag/src/source_map.rs, and render_label in src/render.rs of the same crate. That tool and its version are recorded under outside_lena.
- Lines are counted from 1. LF, CRLF, and a lone CR end a line. The line terminator is removed from the line's content. The last line may end without a line break.
- A column is a Unicode scalar column counted from 1. A tab also counts as one scalar. Let
Kbe the number of consecutive^in the primary label. If the original span lies on one line,K = max(1, end column − C). If it spans several lines,K = max(1, scalars in the first line − (C − 1)). The end column is the scalar column, counted from 1, of the exclusive end byte position. A trailing CR and LF are left out of the line text and of the scalar count of the first of several lines. If an end position on the same line falls after a CR and before an LF, the Topaz end column counts the CR. If that result cannot be mapped back onto the line text, it is a contract violation. An empty span hasK = 1. - On the generated side,
F:L:Cis read from--> F:L:C, andKfrom its primary label.Fresolves to a bound source ID. The line text repeated in the diagnostic must equal lineLof the source, byte for byte. - On the original side, the AST span goes through the Topaz rendering rules to give
L, C, K. The same inverse mapping as on the generated side then applies. On both sides, the start is the line start in the original source plus the byte length of the firstC−1scalars. Adding the byte length of the nextKscalars gives the end. - If the source or the primary label cannot be determined, or the line text or scalar range does not match, it is a contract violation. The same rule applies when the marker of an empty span at the end of a line cannot point to a next scalar.
Conformance tests observe · a line with Hangul before the span, tabs, CRLF, a last line with no line break, two-digit line numbers, multiline expressions, empty spans, and mismatched line text bytes.
4 Obligations
Once the verifier has the common signature and both Lena representations, it generates the following obligations from the observation contract on its own. A normalization obligation also binds the actual source it stands for. If the signature, lowering, or the domain check stops first, only the one obligation shown in the table is made. Until the common signature is settled, signature is null.
| Situation | Obligation recorded | Verdict |
|---|---|---|
| The common input or result signature cannot be matched | relation, with signature set to null |
Contract violation |
| Lowering stops on one side, or that side's Lena output is rejected | normalization for that side |
A verdict that follows the reason for stopping or rejecting |
| The domain description or a predicate premise is violated | domain_nonempty |
Contract violation |
| An internal defect is observed in the reference representation of the comparison | relation |
Contract violation |
- Domain non-emptiness · the predicate that defines
Dis valid, and∃x ∈ D. - Normalization soundness · one for each side. The source and its Lena representation give the same observations on
D. This comparison also preserves target internal defects that actually occur in the source. A structural check cannot be evidence for a normalization obligation. It serves as backing for a premise that states the scope it confirms. - Total definedness and determinism · for every
x ∈ D, each Lena representation gives exactly one observation. An encoding that picks arbitrarily among existing observations also violates it. For an encoding that attaches its applicable inputs to each candidate result as a formula, the check looks for inputs that belong to no candidate and for inputs that belong to two different candidates at once. AnInternalDefectproduced by the model also counts as one observation for this obligation. - Semantic relation · for every
x ∈ D, there is no target internal defect and the requested relation holds. The premise that the reference side also yields a value or ends in a language fault, with no internal defect, is confirmed as well. The relation's violation formula includes any input that produces an internal defect on either side. Even when both observations are the same internal defect, that input cannot establish the relation.
Equivalence requires the two observations to be identical on each input. Refinement requires the target observation to belong to the set the reference observation allows. The allowed set contains the reference observation itself, plus the target fault of each explicit contract entry whose reference fault matches. With the same allowed set as the default contract, the two relations succeed under the same condition.
One may query whether any input violates the conditions of the semantic relation. Establishing a universal obligation requires non-emptiness to be established over the same scope. Establishing a relation also requires definedness and determinism to be established. The relation obligation itself compares the Lena pair. A conclusion about the actual source pair is reported only after the relation and the normalization of both sides are checked together. An input found for one obligation may serve as a witness for another. For that other obligation, a new evidence record is bound.
Conformance tests observe · the set of generated obligations, normalization failing on either side, missing or overlapping results, the direction of refinement, and a relation query that succeeds without its prerequisite obligations.
5 Verdict kinds
| Verdict | Subcategory | Evidence notation |
|---|---|---|
| Established | Execution / single solver / double solver / checked certificate / machine proof | |
| Counterexample | Semantic difference / target internal defect (a defect of the target transformation in which the generated artifact reaches InvalidCell, EmptySlotAccess, or InvalidPc, with a concrete counterexample input) | SAT (unreproduced) / execution replay / solver + execution replay |
| Undecided | Timeout / resource limit / missing evidence / solver unknown | |
| Unsupported | Form outside the spec | |
| Contract violation | Violation of the structural or observation contract | |
| Verifier defect | Empty domain (D = ∅), violation of total definedness, solver disagreement (SAT↔UNSAT), encoder invariant failure |
A malformed input, an empty candidate domain in an explicit contract, and a broken source premise are contract violations. If D = ∅ is confirmed for a domain the verifier built or accepted, that is a verifier defect. If the evidence needed to decide the domain or an obligation cannot be obtained, the result is undecided. If an evaluation accepted as valid has no result or allows several results, that is a verifier defect. A target internal defect observed in the reference representation breaks the reference side contract of §4. The checker records this contract violation under the relation obligation and can bind it to a solver record for an input whose reference observation is an internal defect. If only the artifact reaches an internal defect and the reference side has none, the checker records a target internal defect counterexample. Matching observations are no reason to drop this defect.
If the answers to the same bound query include both SAT and UNSAT, that is a solver disagreement. This includes conflicts that come from the same implementation or the same version. unknown and timeouts do not count as definite answers.
The invariant of a SAT encoding is that the observation decoded from a model equals the observation of concrete Lena evaluation on the same input. If the observation cannot be decoded, or the two observations differ, that is encoding_invariant_failure. If concrete Lena evaluation agrees with the model and only the source execution differs, that is a replayed normalization counterexample for that side.
If one solver returns unknown or times out and no permitted evidence of establishment is obtained, the result is undecided with solver_unknown or timeout respectively. If both reasons are present, timeout is used. A single solver counts as evidence of establishment only when the verification profile allows it. A valid SAT counterexample from one solver may be recorded in a form that the set of counterexample evidence permits. A conflict between definite answers falls under the solver disagreement rule.
If Lena text supplied directly by the user is rejected by reading, static checking, or the binding check, that is a contract violation. If Lena text that a registered adapter produced while declaring success is rejected by these checks, that is encoding_invariant_failure. If the output of a registered adapter breaks its module declaration, that is encoding_invariant_failure. Adapter output that goes past the nesting limit is undecided with resource_limit. A module declaration violation or excess depth in a representation the user submitted is a contract violation.
Conformance tests observe · each verdict and subcategory, the distinction between SAT↔UNSAT and unknown or timeout, the required evidence level, a counterexample from a SAT answer on one side, target internal defects versus verifier defects, and blocking vacuous establishment.
6 Evidence levels
| Level of establishment | Required evidence |
|---|---|
| Execution | An execution record that covers the whole scope of the obligation. Point checks are limited to those points. Non-emptiness can be proved with a single point. |
| Single solver | A bound query and one definite answer that establishes its obligation. |
| Double solver | Agreeing definite answers from two independent solver implementations to the same bound query. |
| Checked certificate | A record of an independent checker confirming the certificate for a bound obligation or query. No item may be left open. |
| Machine proof | A record of the named proof checker confirming a proof of the stated theorem under the stated assumptions. |
Each piece of evidence records the tool version, the exact input, and the result. Agreement between two solvers still leaves the shared normalization and encoding as conditions of trust.
The implementation registry for double solver establishment is z3 and cvc5. The checker confirms the actual implementation from the tool record. The implementation identifier stays the same across aliases, wrappers, and versions. Submitting an implementation outside the list, an implementation that cannot be confirmed, or the same identifier twice is not accepted as double solver establishment.
A counterexample holds a concrete input in D and two observations. SAT (unreproduced) carries the input and the observations decoded from the solver model. Execution replay carries an execution record confirming, on the concrete input, the mismatch between the two observations or the target internal defect. Solver + execution replay carries both the model and an execution comparison record for the same input.
In a relation counterexample, left is L_S and right is L_A. The checker runs both representations again on the same input and compares each observation. If the verification profile requires native replay, that side must match both this observation and a native replay outside Lena. In a normalization counterexample, left is the actual source of that side and right is its Lena representation. A normalization counterexample is always semantic_difference. target_internal_defect is used only for relation counterexamples. The execution boundary and the tools must be confirmable from the record.
The kinds of evidence allowed for establishment and for counterexamples are given as sets in the verification profile. There is no implied order among the kinds. If a counterexample is found but there is no permitted counterexample evidence, the result is undecided with missing_evidence. When evidence needed for establishment is missing and no separately defined solver failure reason applies, the reason is also missing_evidence.
Conformance tests observe · the scope of a partial execution, other names or versions of the same implementation, two genuinely different implementations, a certificate with open items, a witness outside the domain, and the distinction between replay levels.
7 Binding
Every verdict binds the exact bytes of the original and the artifact, the entry points, the version of each adapter, the Lena representations that could be obtained, the verification profile, the obligation, the evidence, and the checker version. A Lena representation fingerprint is computed from the UTF-8 bytes of the module's canonical S-expression. When the user supplies a Lena pair directly, the bytes of each source are the submitted Lena text. The entry point is main, and the adapter is user-lena 0.1. The core representation follows Lena core §10. Lena 0.1
A byte reference is a SHA-256 digest written as 64 lowercase hexadecimal digits. The checker must be able to obtain and confirm the bytes each reference points to. The obligation inside the bundle must match the structure obtained by reading, as the same type, the exact obligation JSON that obligation_sha256 points to. A fingerprint is never inferred by normalizing object key order or whitespace.
The checker regenerates the obligation from the subjects and the settings, compares the two, and confirms the binding. It reruns the regenerated query with the registered solvers. Comparing the recorded answer with the new answer follows §8.2. An early stop is compared at the normalization boundary that caused it. If the common signature or a Lena representation has not been obtained yet, that field is null. An established verdict or a counterexample needs the common signature and the fingerprints of the Lena representations its obligation references. The only Lena representation a non-emptiness obligation references is the explicit predicate. On the default domain, not even a predicate fingerprint is needed.
prerequisites references only the prerequisite established bundles given in the table below, each exactly once. The checker confirms the exact bundle bytes and fingerprint, the established verdict, the same obligation scope, and the evidence. Missing items, extra items, duplicates, and cycles are rejected. Fingerprints of Lena representations an obligation does not use are left out when its scope is compared.
| Submitted verdict | Required prerequisites |
|---|---|
| Non-emptiness established | None |
| Normalization established, or definedness and determinism established | Non-emptiness established |
| Lena relation established | Non-emptiness established, and definedness and determinism established |
| Counterexample, undecided, unsupported, contract violation, verifier defect | None |
If relation establishment is submitted with a single or double solver, the prerequisite definedness and determinism must also be established with a double solver. Submitting execution establishment of definedness and determinism in that place is a contract violation. Execution establishment may be submitted for the non-emptiness prerequisite.
Reporting a relation between actual sources means confirming the normalization bundles of both the reference and the target, in addition to the Lena relation bundle. This report is built by reading the set of bundles.
A tool record must bind the obligation under check, the exact input it consumed, and the result it returned. A solver record includes the query bytes and the mapping used to decode the model. A replay record includes the input used, the boundary, and the two observations. A verdict submitted with a record that points to a different obligation, subject, observation contract, or tool version is not accepted.
Conformance tests observe · swapping in different source bytes, entry points, obligations, prerequisite scopes, checker versions, fingerprints, or evidence.
8 Evidence bundle format
One JSON object holds one obligation and its verdict. deny_unknown_fields applies to every object and every tagged variant. Duplicate keys, and positional arrays standing in for named objects, are rejected. Every field is required. A reference the table marks as optional may express its absence as null. Ordered arrays keep their order. Integer values are signed 64-bit JSON integers, and positions are unsigned 64-bit JSON integers. Numbers allow integer syntax only. -0, decimal points, and exponents are rejected. Integer precision must be preserved. The portable form of an input tuple is an array of values in parameter order.
| Where | Fields |
|---|---|
| Bundle | version is "0.1". It has obligation_sha256, checker, obligation, verdict, trust_base, and prerequisites, an array of prerequisite bundle fingerprints. |
| Obligation | Has scope and kind. The obligation kinds are domain_nonempty, normalization (side: source/artifact), total_deterministic, and relation. The tag key of the kind object is type. |
| Scope | Has source, artifact, profile_sha256, signature (optional), and observation. The profile fingerprint binds the set of sources, the premises, the versions of the modules in use, and the related representation formats. |
| Common signature | Has domain and the result type result. |
| Source reference | Has bytes_sha256, a nonempty entry function identifier entry, a tool object adapter, and normalized_sha256 (optional). |
| Domain | Has width, ordered parameters, and predicate_sha256 (optional). Format checking limits the width to 2 through 64. Types are int or bool. |
| Observation contract | type is equivalence or refinement. Refinement has a fault_allowances array. Each entry is a pair of complete fault records, source and artifact. |
| Tools and records | A tool has name and version. A tool record has tool and record_sha256. |
| Verdict | type is established, counterexample, undecided, unsupported, contract_violation, or verifier_defect. An established verdict requires evidence. |
| Evidence of establishment | type is execution (run), single_solver (solver), double_solver (first, second), certificate_checked (check), or machine_proof (check). The fields in parentheses are tool records. |
| Counterexample | kind is semantic_difference or target_internal_defect. Has input, left, right, and evidence. The evidence type is sat_unreproduced (solver), replayed (run), or solver_and_replayed (solver, run). |
| Other verdicts | Undecided has reason (timeout, resource_limit, missing_evidence, solver_unknown). Unsupported and contract violation have detail. Verifier defect has kind (empty_domain, definedness_violation, solver_disagreement, encoding_invariant_failure). All four verdicts have record_sha256, which binds the diagnostics. |
| Observations and values | Observation type is value (value), language_fault (fault), or internal_defect (module, code). Value type is int or bool, with value. A fault record has kind, cause, and location (source, start, end). |
| Trust base | Each trust_base entry has the tool tool, the category boundary, the trusted role role, and records, an array of fingerprints for its grounds. |
Below is a format example with placeholder fingerprints.
{
"version": "0.1",
"obligation_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"checker": {"name": "yana-check", "version": "0.1"},
"obligation": {
"scope": {
"source": {
"bytes_sha256": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
"entry": "f",
"adapter": {"name": "source-to-lena", "version": "0.1"},
"normalized_sha256": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"
},
"artifact": {
"bytes_sha256": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd",
"entry": "f",
"adapter": {"name": "artifact-to-lena", "version": "0.1"},
"normalized_sha256": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"
},
"profile_sha256": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"signature": {
"domain": {"width": 64, "parameters": ["int"], "predicate_sha256": null},
"result": "int"
},
"observation": {"type": "equivalence"}
},
"kind": {"type": "relation"}
},
"verdict": {
"type": "counterexample",
"kind": "semantic_difference",
"input": [{"type": "int", "value": 9223372036854775807}],
"left": {"type": "value", "value": {"type": "int", "value": 9223372036854775807}},
"right": {"type": "value", "value": {"type": "int", "value": -9223372036854775808}},
"evidence": {
"type": "sat_unreproduced",
"solver": {
"tool": {"name": "z3", "version": "example"},
"record_sha256": "1111111111111111111111111111111111111111111111111111111111111111"
}
}
},
"prerequisites": [],
"trust_base": [
{"tool": {"name": "z3", "version": "example"}, "boundary": "backend", "role": "SMT query", "records": []}
]
}
Conformance tests observe · versions and tags, unknown keys at any depth, missing required fields, 64-bit precision, and the allowed combinations of evidence and verdicts.
8.1 Verification profile 0.1
profile_sha256 binds the exact bytes of a separate UTF-8 JSON object. The same rules as for bundles apply to duplicate keys, positional arrays, deny_unknown_fields, and required fields.
| Field | Shape and meaning |
|---|---|
version |
"0.1". |
sources |
An array of original sources. Each entry has a unique id and a bytes_sha256. |
position_map |
scheme and version strings that identify how original coordinates are converted. The values for Topaz follow §3.1. |
modules |
Arrays of the extension modules used for source and for artifact. Each extension is written with name and version, for example {name:"lena-storage", version:"0.1"}. |
premises |
An array of premises. Each entry has an id unique within its scope, the proposition statement, an array of backing backing, a boundary, and a scope. |
bounds |
max_size caps the number of representation nodes, and max_depth caps list nesting as defined in Lena core §10. Size is an unsigned 64-bit integer, and depth is an integer from 1 to 128. null means this profile sets no separate cap. |
required_evidence |
For each of domain_nonempty, normalization, total_deterministic, and relation, the set of permitted kinds of evidence of establishment. Each set is an array, without duplicates, of the evidence of establishment type values from §8. |
required_counterexample |
An array, without duplicates, of the permitted counterexample evidence type values from §8. An empty set of counterexample evidence rejects every submitted counterexample evidence. |
provenance |
A full 40-digit lowercase hexadecimal compiler_commit, an array of compile options strings that keeps their order, a nonempty request_id, the original's source_sha256, and an array of artifacts outputs. Each artifact has a unique role and a sha256. |
The name of the core is lena. If an implementation does not support an extension with the declared header, it reports unsupported. The Lena representation on each side uses only the extensions declared in that side's modules. The declaration includes the full dependency closure of its extensions. Using the header or tags of an undeclared module, or leaving out a dependency, is a contract violation. Listing the core among the extensions is a contract violation. The core version is bound by the header of the Lena text, and the core version an extension header uses follows that module's dependency declaration.
The optional profile field predicate is {"type":"text","text":"…"} or {"type":"sha256","sha256":"…"}. When present, it must match the predicate fingerprint of the common signature. The UTF-8 bytes of the text must equal the canonical output of Lena core. If they differ, it is a contract violation. The optional field fault_allowances is the array of fault pairs for refinement in §3. If the array is submitted, even an empty one means refinement. If it is left out, the relation is equivalence.
The optional field bounds.solver_timeout_ms is a positive integer number of milliseconds. If it is left out, it is 25,000. This limit applies to each solver rerun. The optional field replay_boundary is lena or native. If it is left out, the profile requires no replay boundary. Replaying a counterexample for a Lena pair the user submitted directly allows only lena. Requiring or submitting native for such a pair is a contract violation.
A profile max_depth outside the range 1 to 128 is a contract violation. Excess depth in a representation follows the rules of §5 for where the representation came from. If the depth is null, the core's 128 applies.
Only normalization allows an empty set of evidence of establishment. It means the named premises are recorded and no separate evidence of establishment is required. A submission of establishment with evidence attached is rejected, because no kind fits an empty allowed set. An empty set of evidence of establishment for any other obligation is a contract violation.
A premise needs at least one piece of backing. Backing type is conformance (check), structure (check), assumption (record), execution (run), or machine_proof (check). The fields in parentheses are tool records from §8. scope has side (source or artifact), the detail of what it applies to, and coverage. coverage.type is declared or points. points has the inputs_sha256 of the list of inputs actually checked, using the input list encoding of §8.2. declared declares the scope of application, and what is proved follows the backing records.
When successive boundaries of one compile request are compared, the roles and byte fingerprints of the original and of each artifact are bound to the same request_id. The checker confirms that each boundary matches the pair chosen from that request. An artifact from a different request is a contract violation. For fault injection, provenance binds the bytes before injection, the target reference binds the mutated bytes, and the premise backing binds the mutation and its boundary.
Conformance tests observe · the profile version, strictness of nested fields, rejection of an artifact swapped in from another request, the tool version and checked scope of each premise, and the required evidence level.
8.2 Evidence record 0.1
Evidence records go through the same strict JSON checks as bundles. Each record has version, obligation_sha256, tool, and body. version is "0.1". The tool and the exact obligation fingerprint must match the ones the bundle points to.
Body type |
Fields |
|---|---|
nonempty |
The non-emptiness witness input |
execution |
inputs_sha256 of the list of inputs run over the whole domain. Each input appears exactly once. |
solver |
query_sha256 and a responses array. Each response has tool, status, the raw stdout, and model. When there is no model, model is null. A model has input and the observations left and right. |
replay |
boundary, input, left, right, and transcript_sha256. The boundary is lena or native. A native replay needs executions, whose left and right each have source_sha256, executable_sha256, and an ordered argv. Submitting executions for a lena replay is a contract violation. |
When establishment is submitted through execution over the whole domain, the checker confirms that the input list is valid and complete, and evaluates both representations again on each input. An exhaustive result at a reduced width cannot stand in for a wider width.
inputs_sha256 is the SHA-256 of the RFC 8785 canonical UTF-8 bytes of an input list made of §8 value arrays. To stay within the exact integer range of RFC 8785, in this list only, an int.value whose absolute value exceeds 9,007,199,254,740,991 is written as a signed canonical decimal string. Reading restores it to the exact Lena integer. RFC 8785
A premise backing record 0.1 has version, premise_id, tool, scope, and body. When the body type is conformance, structure, or execution, it has transcript_sha256. When it is assumption, it has statement_sha256. The premise and the record must agree on the tool and the checked scope. Raw per-tool backing from earlier 0.1 material is read within the bound premise scope.
The record bodies of certificate_checked and machine_proof are not defined in 0.1. Submitting such a record to the checker is unsupported. A machine_proof in premise backing makes only the obligations that depend on that premise unsupported. A normalization obligation depends on the premises of its own side. The relation and definedness of a Lena pair verify Lena representations already obtained. This version does not define independent certificate checking.
Solver status is sat, unsat, unknown, or timeout. The checker confirms the fingerprint of the query rebuilt from the obligation against the bound query bytes. It confirms the version and executable fingerprint of a backend in the registry and reruns the query. It compares the new status with the recorded status. Model bit strings are not compared. If the statuses differ, the bundle is rejected. If a definite recorded answer becomes unknown or timeout on rerun, the result is undecided with resource_limit. A sat model from the rerun is decoded and checked to agree with concrete evaluation on the same input and to make the obligation's violation formula true. Conflicting answers to the same query and disagreement between a model and concrete evaluation are judged under §5. For a relation counterexample, both representations are evaluated again on the same input to confirm left and right. The input and both observations of a native replay record must match the submitted counterexample.
Conformance tests observe · swapping in the record of another obligation, altered query bytes, disagreement between a model and evaluation, and a required native boundary.
9 Trust base record
boundary is one of lena, backend, and outside_lena. lena is used for Lena's semantic execution and the normalization components. backend is used for tools connected as verification backends, such as query solvers and certificate checkers. outside_lena is used for tools that observe or confirm assumptions without passing through the Lena semantic boundary, and reports mark them as tools outside Lena.
The trust boundary is set by the tool registry the checker uses. Registry 0.1 is an array of strict JSON objects with name, version, and boundary. binary_sha256 is required for external tools the checker runs as separate processes. The checker's own evaluation and adapters are bound by the checker version. Supplying a fingerprint for one of those entries is a contract violation. The fingerprints live in the checker's deployment registry, outside the submitted bundle. The fixed tool registry is part of the build. The checker deployment determines the execution paths.
binary_sha256 binds the fingerprint list for the executable itself and all dynamic libraries loaded from the same directory. The list excludes data files. It is an RFC 8785 canonical JSON object with lowercase file names as keys and the SHA-256 of each file as values. The checker compares every entry in the dedicated deployment directory with the list. It rejects extra files, subdirectories, file redirection entries, missing entries, and fingerprint mismatches. For Topaz and the generated Rust run outside the checker, replay binds each executable's bytes by its SHA-256 in executions.*.executable_sha256. The trust_base of a submitted bundle must list every tool and version used in the evidence of establishment or counterexample and in the premise backing of the verification profile. A missing tool, or a tool not in the registry, is rejected. A submitted boundary that differs from the registered value is rejected. The boundary written in a premise must also match the registered value of each backing tool. Replaced runtimes, applied size and depth limits, and unconfirmed assumptions are left in the bound profile or tool records.
The records of the encoder entry hold the exact record fingerprints of exhaustive concrete and symbolic comparison at 2 to 8 bits, independent comparison of the relation, definedness, and non-emptiness formulas, encoder mutation, and point checks at 64-bit boundary values. Even when the same query is produced, the scope of the independent grounds used follows these records.
Conformance tests observe · the version and role of each tool, different trust boundaries, and preventing evidence from being promoted beyond its limits.
10 Versions and compatibility
The strict form of evidence version 0.1 is used. Changing the meaning or the set of fields assigns a new version. The checker reads only the versions it supports and rejects other versions explicitly. Checker versions and evidence versions are recorded separately. Using conclusions from different versions together means confirming again the obligations and evidence that fit the new contract.
Conformance tests observe · rejection of unknown versions and fields, and separate binding of checker versions and evidence versions.
Source revision 4259231 ·