Documentation

Complexitylib.DescriptiveComplexity.SecondOrder.Encoding.Internal

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.read_encode_internal {card : ℕ} {rctx : List ℕ} (ρ : DecREnv card rctx) :
read card rctx ρ.encode = ρ
theorem Complexity.DescriptiveComplexity.DecREnv.encode_read_internal (card : ℕ) (rctx : List ℕ) (bits : List Bool) (h : bits.length = encodingLength card rctx) :
(read card rctx bits).encode = bits