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

Method num_scopes

lean_py/z3/solver.py:577–579  ·  view source on GitHub ↗

Return number of push scopes.

(self)

Source from the content-addressed store, hash-verified

575 self._assertions = self._assertions[: self._stack.pop()]
576
577 def num_scopes(self) -> int:
578 """Return number of push scopes."""
579 return len(self._stack)
580
581 def check(self, *assumptions: BoolRef) -> CheckSatResult:
582 asserts = list(self._assertions)

Callers 1

Calls

no outgoing calls

Tested by 1