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

Method add_decl

lean_py/z3/solver.py:1140–1143  ·  view source on GitHub ↗

Add a declaration to the parser context.

(self, decl: Any)

Source from the content-addressed store, hash-verified

1138 self._sorts[sort.name()] = sort
1139
1140 def add_decl(self, decl: Any) -> None:
1141 """Add a declaration to the parser context."""
1142 if hasattr(decl, "name"):
1143 self._decls[decl.name()] = decl
1144
1145 def from_string(self, s: str) -> list:
1146 """Parse SMT-LIB2 string (not supported)."""

Callers

nothing calls this directly

Calls 1

nameMethod · 0.45

Tested by

no test coverage detected