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

Function Ext

lean_py/z3/core.py:4303–4308  ·  view source on GitHub ↗

Array extensionality: return an index where a and b differ.

(a: ExprRef, b: ExprRef)

Source from the content-addressed store, hash-verified

4301
4302
4303def Ext(a: ExprRef, b: ExprRef) -> ExprRef:
4304 """Array extensionality: return an index where a and b differ."""
4305 sort = a._sort
4306 dom = sort.domain() if isinstance(sort, ArraySortRef) else IntSort()
4307 merged = _merge(a._vars, b._vars)
4308 return ExprRef(AppNode(_AstVar("ext"), (a._ast, b._ast)), dom, merged)
4309
4310
4311# ---------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 5

AppNodeClass · 0.90
IntSortFunction · 0.85
_mergeFunction · 0.85
ExprRefClass · 0.85
domainMethod · 0.45

Tested by

no test coverage detected