Proofs for encoding validation #
Literal tests characterize the header and one-hot blocks. Encoding reconstruction proves completeness of these tests; finite connective laws account for size and depth.
theorem
Complexity.DescriptiveComplexity.encodingHeaderFormula_eval_internal
(V : Vocabulary)
(card : ℕ)
(input : BitString (encodingLength V card))
:
theorem
Complexity.DescriptiveComplexity.constantValueFormula_eval_internal
(V : Vocabulary)
(card : ℕ)
(c : Fin V.numConsts)
(a : Fin card)
(input : BitString (encodingLength V card))
:
AC0Formula.eval input (constantValueFormula V card c a) = true ↔ ∀ (b : Fin card), input ((encodingLayout V card).const c b) = decide (a = b)
theorem
Complexity.DescriptiveComplexity.encodingValidityFormula_eval_internal
(V : Vocabulary)
(card : ℕ)
(input : BitString (encodingLength V card))
:
theorem
Complexity.DescriptiveComplexity.encodingValidityFormula_encoded_internal
{V : Vocabulary}
(A : DecFinStruct V)
:
theorem
Complexity.DescriptiveComplexity.encodingValidityFormula_correct_internal
(V : Vocabulary)
(card : ℕ)
(input : BitString (encodingLength V card))
:
AC0Formula.eval input (encodingValidityFormula V card) = true ↔ ∃ (A : DecFinStruct V), encodeStruct A = List.ofFn input
theorem
Complexity.DescriptiveComplexity.encodingValidityFormula_size_internal
(V : Vocabulary)
(card : ℕ)
:
theorem
Complexity.DescriptiveComplexity.encodingValidityFormula_depth_internal
(V : Vocabulary)
(card : ℕ)
:
theorem
Complexity.DescriptiveComplexity.validatedExpansion_correct_internal
{V : Vocabulary}
(φ : Sentence V)
(card : ℕ)
(input : BitString (encodingLength V card))
:
AC0Formula.eval input (φ.validatedExpansion card) = true ↔ List.ofFn input ∈ queryLanguage fun (A : FinStruct V) => Sentence.Models A φ
theorem
Complexity.DescriptiveComplexity.validatedExpansion_size_internal
{V : Vocabulary}
(φ : Sentence V)
(card : ℕ)
:
theorem
Complexity.DescriptiveComplexity.validatedExpansion_depth_internal
{V : Vocabulary}
(φ : Sentence V)
(card : ℕ)
: