Documentation

CharonDrain

drain, from Rust through Charon #

Generated by scripts/charon/llbc2lean.py from Charon's LLBC of the crate drain (scripts/charon/drain/src/lib.rs). Do not edit. Functions: 0 = drain, 1 = callers, 2 = callers_swapped.

The summaries were computed by the script; Lean decides on its own that they pass the link check, that the certificate for callers's calls covers their footprints, and that check accepts it.

The body of drain, from LLBC.

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

    The summary of drain: places it may touch, places it may write.

    Equations
    Instances For

      The body of callers, from LLBC.

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

        The summary of callers: places it may touch, places it may write.

        Equations
        Instances For

          The body of callers_swapped, from LLBC.

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

            The summary of callers_swapped: places it may touch, places it may write.

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

                $$\mathrm{validB}(\mathrm{prog}) = \mathrm{true}$$

                The link check passes on the compiled crate: every summary covers its body.

                The calls of callers, as the statements of a schedule.

                Equations
                Instances For

                  All of callers's calls in one level.

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

                    $$\mathrm{check}(\mathrm{cert}) = \mathrm{true}$$

                    $$\forall i,\ \mathrm{CoversNode}(\mathrm{cert}_i, \mathrm{fp}(\mathrm{st}_i))$$

                    $$\mathrm{run}(\mathrm{schedule}) = \mathrm{run}(\mathrm{st}_0; \dots)$$

                    callers's calls in one level equal the calls in order, for every fuel and every memory.