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

Method sexpr

lean_py/z3/solver.py:622–627  ·  view source on GitHub ↗

Return S-expression representation of assertions.

(self)

Source from the content-addressed store, hash-verified

620 return {}
621
622 def sexpr(self) -> str:
623 """Return S-expression representation of assertions."""
624 if not self._assertions:
625 return "()"
626 parts = [_ast_repr(a._ast) for a in self._assertions]
627 return "(" + " ".join(parts) + ")"
628
629 def to_smt2(self) -> str:
630 """Return SMT-LIB2 representation (approximate)."""

Callers 2

test_solver_sexprMethod · 0.95

Calls 1

_ast_reprFunction · 0.90

Tested by 2

test_solver_sexprMethod · 0.76