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

Method test_lambda_square

tests/test_z3_semantic.py:1333–1337  ·  view source on GitHub ↗

Select(Lambda(x, x*x), 7) = 49

(self, kernel)

Source from the content-addressed store, hash-verified

1331 assert _try_prove(Select(f, IntVal(999)) == IntVal(42))
1332
1333 def test_lambda_square(self, kernel):
1334 """Select(Lambda(x, x*x), 7) = 49"""
1335 x = Int("x")
1336 f = Lambda([x], x * x)
1337 assert _try_prove(Select(f, IntVal(7)) == IntVal(49))
1338
1339
1340# ===================================================================

Callers

nothing calls this directly

Calls 5

IntFunction · 0.90
LambdaFunction · 0.90
_try_proveFunction · 0.90
SelectFunction · 0.90
IntValFunction · 0.90

Tested by

no test coverage detected