Materializing existential relation witnesses #
The certificate layout of an existential second-order sentence already reads a polynomial-length word as a family of relation tables. This module materializes those tables and appends them to the original encoded structure. The transformation has a native polynomial-time certificate and its decoded structure is exactly the expansion by the guessed relations. Missing witness bits read as false; nullary relations have one table entry, and an empty family adds no tables.
Main definitions #
Cslib.Logic.ESO.Sentence.Layout.witnessInput: append the certificate's relation tables.
Main results #
Cslib.Logic.ESO.Sentence.Layout.wellFormed_witnessInput_iff: materialization preserves and reflects the validity of the original input tables.Cslib.Logic.ESO.Sentence.Layout.decode_witnessInput: the decoded output is the expansion by the certificate relations.Cslib.Logic.ESO.Sentence.Layout.computableInPolyTime_witnessInput: materialization is polynomial-time in the original input and certificate lengths.
References #
A relation table materialized from the certificate, in tuple-index order.
Append the materialized witness relations to the original relation tables. The sentence and its enumeration are fixed parameters, not parts of the machine input.
Materialization does not change the universe.
A materialized relation table has one entry for each tuple, including one for arity zero.
Reading a materialized table returns the corresponding certificate bit.
The materialized witness tables always have the declared shapes, even for short certificates. Short certificates supply false bits to the missing positions.
Appending witness tables preserves and reflects source shape validity; it cannot repair a missing, extra, or incorrectly sized source relation table.
The output decodes to exactly the input structure expanded by the certificate relations.
The exact additional encoding cost is the sum of the framed witness-table lengths.
A uniform polynomial bound in the original encoded input length, independent of witness contents and length. The sentence and layout determine the constants and degree.
Materializing one fixed relation uses polynomially many certificate lookups.
The entire witness expansion is computed by an actual polynomial-time machine on the input and certificate. No well-formedness or certificate-length premise is needed for its running time.