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

Method test_array_getitem_syntax

tests/test_z3_ported.py:956–961  ·  view source on GitHub ↗

a[i] is shorthand for Select(a, i).

(self)

Source from the content-addressed store, hash-verified

954 assert prove(claim)
955
956 def test_array_getitem_syntax(self):
957 """a[i] is shorthand for Select(a, i)."""
958 a = Array("a", IntSort(), IntSort())
959 i = Int("i")
960 sel = a[i]
961 assert isinstance(sel._ast, SelectNode)
962
963 def test_lambda_array(self):
964 """Lambda as array comprehension."""

Callers

nothing calls this directly

Calls 3

ArrayFunction · 0.90
IntSortFunction · 0.90
IntFunction · 0.90

Tested by

no test coverage detected