enc
The definition enc encodes a Boolean bit b by returning the mask R unchanged when b is false and the pointwise negation of R when b is true. Complexity researchers establishing query lower bounds for hidden-bit recognition cite this as the basic hiding construction. It is realized by a direct lambda that branches on b and applies negation at each index of Fin n.
claimLet $b$ be a Boolean and $R : [n] → {0,1}$ a mask. Define the encoder by $enc(b,R)(i) = R(i)$ if $b$ is false and $enc(b,R)(i) = ¬R(i)$ if $b$ is true.
background
This definition sits in the BalancedParityHidden module, which constructs query lower bounds showing that any decoder recovering a hidden bit from a masked parity must examine all n indices. The encoder hides b inside R by conditional negation. Sibling operations include restrict, which projects an encoded mask onto a queried subset M, together with the simplification lemmas enc_false and enc_true.
proof idea
The definition is given directly by a lambda expression performing case analysis on b: return R(i) when b is false and negate R(i) when b is true. No lemmas or tactics are applied; it is a primitive functional definition.
why it matters in Recognition Science
enc supplies the core encoding step used by enc_false, enc_true, restrict_enc_false, restrict_enc_true, omega_n_queries and recognition_lower_bound_sat. The last two establish that no fixed-view decoder succeeds on fewer than n indices, furnishing the SAT recognition lower bound. This supports the module's contribution to information-theoretic constraints within the Recognition Science monolith.
scope and limits
- Does not specify any distribution or generation rule for the mask R.
- Does not extend the construction to probabilistic or continuous domains.
- Does not itself prove any query lower bound or decoder existence.
- Does not address adaptive or multi-round query models.
formal statement (Lean)
10def enc (b : Bool) (R : Fin n → Bool) : Fin n → Bool :=
proof body
Definition body.
11 fun i => if b then ! (R i) else R i
12
used by (17)
-
enc_false -
enc_true -
omega_n_queries -
recognition_lower_bound_sat -
restrict_enc_false -
restrict_enc_true -
restrict_extendMask -
circuit_cannot_sense_moat -
CircuitLedgerCert -
CircuitSeparation -
no_sublinear_universal_decoder -
LedgerComputation -
ledger_forces_separation -
Turing_incomplete -
PvsNPDissolution -
rs_adversarial_lower_bound -
RSATSeparation