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

Function LinearOrder

lean_py/z3/core.py:4370–4373  ·  view source on GitHub ↗

Declare a linear (total) order relation.

(name: str, ctx: Context | None = None)

Source from the content-addressed store, hash-verified

4368
4369
4370def LinearOrder(name: str, ctx: Context | None = None) -> FuncDeclRef:
4371 """Declare a linear (total) order relation."""
4372 s = DeclareSort(name)
4373 return FuncDeclRef(f"{name}_le", (s, s), BoolSort())
4374
4375
4376def TreeOrder(name: str, ctx: Context | None = None) -> FuncDeclRef:

Callers

nothing calls this directly

Calls 3

DeclareSortFunction · 0.85
FuncDeclRefClass · 0.85
BoolSortFunction · 0.85

Tested by

no test coverage detected