MCPcopy Create free account
hub / github.com/BasisResearch/lean.py / assert_refined

Function assert_refined

examples/06_effectful_verifier/python/refine.py:57–63  ·  view source on GitHub ↗

Declare that *value* satisfies *refinement*. During symbolic execution, the handler intercepts this and collects the verification condition as a ``Term[bool]``.

(value: int, refinement)

Source from the content-addressed store, hash-verified

55
56@defop
57def assert_refined(value: int, refinement) -> None:
58 """Declare that *value* satisfies *refinement*.
59
60 During symbolic execution, the handler intercepts this and collects the
61 verification condition as a ``Term[bool]``.
62 """
63 pass # no-op in concrete mode
64
65
66# ---------------------------------------------------------------------------

Callers 3

positive_incrementFunction · 0.90
bounded_sumFunction · 0.90
failingFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected