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

Method test_length_nonneg

tests/test_z3_semantic.py:825–827  ·  view source on GitHub ↗
(self, kernel)

Source from the content-addressed store, hash-verified

823 assert _try_prove(PrefixOf(StringVal("ab"), StringVal("abcd")))
824
825 def test_length_nonneg(self, kernel):
826 x = String("x")
827 assert _try_prove(Length(x) >= IntVal(0))
828
829
830# ===================================================================

Callers

nothing calls this directly

Calls 4

StringFunction · 0.90
_try_proveFunction · 0.90
LengthFunction · 0.90
IntValFunction · 0.90

Tested by

no test coverage detected