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

Function SeqMap

lean_py/z3/core.py:3955–3961  ·  view source on GitHub ↗

Map function over sequence.

(f: FuncDeclRef, s: ExprRef)

Source from the content-addressed store, hash-verified

3953
3954
3955def SeqMap(f: FuncDeclRef, s: ExprRef) -> ExprRef:
3956 """Map function over sequence."""
3957 return ExprRef(
3958 AppNode(_AstVar("seq.map"), (_AstVar(f._name), s._ast)),
3959 s._sort,
3960 s._vars | frozenset([(f._name, f._ast_sort)]),
3961 )
3962
3963
3964def SeqMapI(f: FuncDeclRef, s: ExprRef) -> ExprRef:

Callers

nothing calls this directly

Calls 2

AppNodeClass · 0.90
ExprRefClass · 0.85

Tested by

no test coverage detected