Relation-certificate encoding proofs #
Completeness and cardinality of the site enumeration give absence of duplicates. Reading at a site's index then yields both directions of the encoding bijection.
theorem
Complexity.DescriptiveComplexity.DecREnv.mem_encodingSites_internal
(card : ℕ)
(rctx : List ℕ)
(site : EncodingSite card rctx)
:
theorem
Complexity.DescriptiveComplexity.DecREnv.encodingSites_length_internal
(card : ℕ)
(rctx : List ℕ)
:
theorem
Complexity.DescriptiveComplexity.DecREnv.encodingSites_nodup_internal
(card : ℕ)
(rctx : List ℕ)
:
(encodingSites card rctx).Nodup
theorem
Complexity.DescriptiveComplexity.DecREnv.encodingPolynomial_eval_internal
(card : ℕ)
(rctx : List ℕ)
:
theorem
Complexity.DescriptiveComplexity.DecREnv.encodingLength_mono_internal
(rctx : List ℕ)
:
Monotone fun (card : ℕ) => encodingLength card rctx