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

Method test_tuple_constructor

tests/test_z3_ported.py:3354–3358  ·  view source on GitHub ↗
(self, kernel)

Source from the content-addressed store, hash-verified

3352 assert Pair.name() == "Pair_t1"
3353
3354 def test_tuple_constructor(self, kernel):
3355 Pair, mk_pair, [fst, snd] = TupleSort("Pair_t2", [IntSort(), IntSort()])
3356 assert isinstance(mk_pair, FuncDeclRef)
3357 assert mk_pair.arity() == 2
3358 assert mk_pair.name() == "Pair_t2"
3359
3360 def test_tuple_accessors(self, kernel):
3361 Pair, mk_pair, [fst, snd] = TupleSort("Pair_t3", [IntSort(), IntSort()])

Callers

nothing calls this directly

Calls 4

TupleSortFunction · 0.90
IntSortFunction · 0.90
arityMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected