Skip to content

3.2.4 Invariant Checker & Adapter Layer #25

Description

@Mathnerd314

Desired function
Maintain contracts between passes and repair IR when possible.

Futamura role
Cross-cutting infrastructure ensuring all passes see IR satisfying their expectations.

Inputs

  • IR before/after major passes.
  • Invariant specifications per pass.

Processing

  • Check invariants; on failure either:
    • Report diagnostics, or
    • Apply adapter transformations (e.g., reinsert primitives, re-normalize types).
  • Track which “hard algorithms” require/produce which IR flavors.

Outputs

  • Verdict (safe/unsafe/unknown); counterexamples or proofs
  • IR satisfying downstream contracts.
  • Reports on violations and repairs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status
    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions