Skip to content

Add typed paired inline correspondence and source evidence checks - #18

Merged
Kristof Roomp (mcroomp) merged 3 commits into
mainfrom
feature/typed-inline-correspondence
Oct 28, 2026
Merged

Kristof Roomp (mcroomp) merged 3 commits into
mainfrom
feature/typed-inline-correspondence

Conversation

@mcroomp

@mcroomp Kristof Roomp (mcroomp) commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Use annotation-version-4 JSON bind markers on both C# and formal declarations, joined by one shared unique scope::name; neither side repeats the other's native symbol spelling.
  • Resolve TLA+/PlusCal, Dafny and P declaration ownership through authoritative native frontend locations. Reject missing counterparts, duplicate endpoints and unsupported formal-side capture/exclusion properties.
  • Store bindings, captures and exclusions in strongly typed C# records/enums. Keep capture and explicit omissions source-specific, with symbol-resolved logging rules and visible effect/review boundaries.
  • Preserve source premises, copied-source controls, entity/invocation identities, scalar action arguments, cleanup/fault observations and checker-specific claims.
  • Reconstruct both endpoints from archived sources and pinned native inventories; keep archive consistency, current applicability, correspondence review and acceptance separate.
  • Migrate maintained synthetic examples, workflows, schemas, documentation and native regression fixtures.

Breaking authoring change

Annotations require annotation_version: 4 and standard JSON. Each selected common ID must have exactly one C# endpoint and one formal endpoint in its explicit correspondence scope. Native manifests select common IDs rather than duplicating endpoints. Earlier directive grammars and version 3's source-side target are rejected, not silently reinterpreted. The JSON document schema remains version 4.

Pair matching and native checker passes do not establish C# refinement, atomicity, general execution coverage or liveness. Checker-specific claim and execution boundaries remain explicit.

Validation

  • Tests adapted first: new paired contracts initially failed against the previous one-sided implementation.
  • Build succeeded with zero warnings/errors.
  • Core suite: 265/265 passed.
  • Complete suite: 393/393 passed, including provisioned native backend regressions.
  • Direct paired TLA+ regression uses a common ID independent of native declaration spelling and checks both orphan directions; Dafny and P cover native declaration kinds and executable/review-only boundaries.
  • Documented paired Demo review command: links_status: passed.
  • Generated schema and staged whitespace checks passed.

Example-by-example audit

  • Added missing paired endpoints to Components and Evidence; Evidence also checks structural correspondence explicitly.
  • Corrected Integrated's initially full window, which made accepted returns unreachable, and added a native reachability control.
  • Exported direct TLA+ variable endpoints from SANY and covered differently named variables without ad hoc parsing or wrapper operators.
  • Strengthened the P example's valid-domain checks and documented model-only, trace, oracle and structural-link boundaries individually.
  • Suppressed redundant derived identity properties when generating typed annotation JSON; final core suite 265/265 passed after that cleanup.
  • Complete public suite 393/393 passed; P subset 26/26 passed; documented standalone counter and P inspections passed.

Kristof Roomp and others added 2 commits October 27, 2026 21:59
Introduce strict JSON bind/capture/exclude annotations, qualified native contexts, and symbol-resolved omission rules. Migrate maintained public workflows to annotation version 3 and preserve backend-specific evidence boundaries.

Include source premises and control-flow inventories, copied control preparation, guarded cleanup/action capture, and source-report integration with synthetic regression coverage.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Require annotation version 4 common names on independently authored C#, TLA+/PlusCal, Dafny and P endpoints. Resolve declaration ownership through native frontend spans, reject unmatched or duplicate endpoints, and reconstruct correspondence from archived inputs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@mcroomp Kristof Roomp (mcroomp) changed the title Add typed JSON inline bindings and source evidence checks Add typed paired inline correspondence and source evidence checks Oct 27, 2026
Add explicit counter and arithmetic pairs, an evidence inspection stage, and a native nonvacuity regression for accepted unit returns. Export authoritative SANY variable declarations, suppress derived annotation identity metadata, and clarify example assumptions and backend claim boundaries.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@mcroomp
Kristof Roomp (mcroomp) merged commit e3715b0 into main Oct 28, 2026
2 checks passed
@mcroomp
Kristof Roomp (mcroomp) deleted the feature/typed-inline-correspondence branch October 28, 2026 05:34
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