Documentation

Computable2Guarded.Errors

Computable2Guarded's diagnostics: a single defense-in-depth catch-all. Every case it reports is one this pass's own invariants rule out (๐’ž_cflow finding a while not at block-front, say); the pass introduces no user-facing restriction of its own.

inductive GuardedError :

Computable2Guarded's errors.

  • internalInvariantViolated (pos : SourceSpan) (description : String) : GuardedError

    Defense-in-depth: an input shape this pass's own invariants guarantee can't occur (e.g. a while not immediately preceded by a labelled block) still turned up. No proof of unreachability exists yet, so this stays a runtime check rather than absurd/nomatch. pos is SourceSpan.placeholder at callers past the point where a real position is still available (ElaboratedPlusCal/GuardedPlusCal.Statement carry none), matching Typed2Computable.lean's own precedent.

Instances For
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      @[implicit_reducible]
      Equations
      • One or more equations did not get rendered due to their size.