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

Method test_concat_assoc

tests/test_z3_semantic.py:802–807  ·  view source on GitHub ↗

String concatenation is associative.

(self, kernel)

Source from the content-addressed store, hash-verified

800 """Universal string properties."""
801
802 def test_concat_assoc(self, kernel):
803 """String concatenation is associative."""
804 x, y, z = Strings("x y z")
805 g = Goal()
806 g.add(StrConcat(StrConcat(x, y), z) == StrConcat(x, StrConcat(y, z)))
807 assert len(Tactic("simp [String.append_assoc]").apply(g)) == 0
808
809 def test_empty_concat_left(self, kernel):
810 x = String("x")

Callers

nothing calls this directly

Calls 6

addMethod · 0.95
StringsFunction · 0.90
GoalClass · 0.90
StrConcatFunction · 0.90
TacticClass · 0.90
applyMethod · 0.45

Tested by

no test coverage detected