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

Method add_sort

lean_py/z3/solver.py:1135–1138  ·  view source on GitHub ↗

Add a sort to the parser context.

(self, sort: Any)

Source from the content-addressed store, hash-verified

1133 self._decls: dict[str, Any] = {}
1134
1135 def add_sort(self, sort: Any) -> None:
1136 """Add a sort to the parser context."""
1137 if hasattr(sort, "name"):
1138 self._sorts[sort.name()] = sort
1139
1140 def add_decl(self, decl: Any) -> None:
1141 """Add a declaration to the parser context."""

Callers

nothing calls this directly

Calls 1

nameMethod · 0.45

Tested by

no test coverage detected