Documentation

Complexitylib.Metacomplexity.StatisticalTest.Oracle.Internal

Finite statistical tests as Boolean oracles -- proof internals #

theorem Complexity.finiteTestOracle_ofFn_internal {outputLength : ℕ} (test : Finset (Fin outputLength → Bool)) (output : Fin outputLength → Bool) :
finiteTestOracle test (List.ofFn output) = decide (output ∈ test)
theorem Complexity.finiteTestOracle_ofFn_eq_true_iff_internal {outputLength : ℕ} (test : Finset (Fin outputLength → Bool)) (output : Fin outputLength → Bool) :
finiteTestOracle test (List.ofFn output) = true ↔ output ∈ test
theorem Complexity.finiteTestOracle_eq_false_of_length_ne_internal {outputLength : ℕ} (test : Finset (Fin outputLength → Bool)) {query : List Bool} (hlength : query.length ≠ outputLength) :