Кодирование задач ограничений в SMT-LIB2 и Z3
★ 6.5 · data
encode is a Claude Code skill that translates constraint problem descriptions — given in natural language, pseudocode, or partial formulations — into complete, syntactically valid SMT-LIB2 files or Z3 Python scripts. It runs encode.py, automatically identifies the required SMT theory from a supported set (LIA, LRA, QF_BV, QF_AX, QF_S, QF_UF, and combined logics), then declares all variables, asserts all constraints, and appends check-sat / get-model commands. Covered problem classes include integer and real arithmetic, bitvector operations, array reasoning, scheduling, graph coloring, and verification conditions. A built-in validation step pipes the output through z3 -in in parse-only mode and reports the offending line on error. The resulting artifact feeds directly into the solve, prove, or optimize skills.
- #z3
- #smt-lib2
- #constraint-solving
- #python
- #smtlib