The one-hot code of a word, and clauses that allow only codes #
The code of a word u on N places sets the bit (p, y) when the letter at place p of u
followed by an end mark is y (Tape.wordCode). A family of bits is a code
(Tape.IsWordCode) if every place has at most one letter, and every place has a letter unless the
end mark came before; below the code of u only that code is one (Tape.eq_wordCode), and a code
has at most N set bits (Tape.card_ones_le). Clauses on the input bits (Tape.CodeRule) allow
only codes (Tape.prod_codeLits), so adding them to a clause sum restricts it to codes
(Tape.domainClauseSum_codeLits).
Main definitions #
Main results #
Tape.isWordCode_wordCode,Tape.eq_wordCode,Tape.card_ones_le,Tape.card_ones_wordCode.Tape.prod_codeLits,Tape.domainClauseSum_codeLits.
References #
- Anthropic, VP ≠ VNP over every field, paper and Lean formalization,
modules
Nc.RunOne(code1) andNc.RunMn
The one-hot code of a word with an end mark: bit (p, y) is set when the letter at place p of
u followed by the end mark none is y.
Their weights: 0, except for two equal letters.
The clauses on the input bits allow only codes.
Adding the clauses on the input bits restricts a clause sum to codes.