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

Method test_store_select_ground

tests/test_z3_compat.py:1811–1817  ·  view source on GitHub ↗

Store(a, i, v)[i] == v.

(self, kernel)

Source from the content-addressed store, hash-verified

1809 """Array operations proven through Lean."""
1810
1811 def test_store_select_ground(self, kernel):
1812 """Store(a, i, v)[i] == v."""
1813 a = Array("a", IntSort(), IntSort())
1814 i = Int("i")
1815 v = Int("v")
1816 claim = Select(Store(a, i, v), i) == v
1817 assert _try_prove(claim)
1818
1819 def test_store_select_different_index(self, kernel):
1820 """Store(a, i, v)[j] == a[j] when i != j."""

Callers

nothing calls this directly

Calls 6

ArrayFunction · 0.90
IntSortFunction · 0.90
IntFunction · 0.90
SelectFunction · 0.90
StoreFunction · 0.90
_try_proveFunction · 0.90

Tested by

no test coverage detected