Documentation

Complexitylib.Classes.AverageCase.Heuristic.Internal

Errorless average-case heuristics -- proof internals #

This layer proves codec exactness, semantic soundness of complement and decision adapters, and the elementary probability/class monotonicity laws.

theorem Complexity.HeuristicAlgorithm.ofDecision_isErrorlessFor_internal {decide : List Bool → Bool} {L : Language} (hdecide : ∀ (x : List Bool), decide x = true ↔ x ∈ L) :
theorem Complexity.AvgPAt_mono_internal {δ ε : ℕ → ℚ} (hδε : ∀ (n : ℕ), δ n ≤ ε n) :
AvgPAt δ ⊆ AvgPAt ε
theorem Complexity.DistributionalProblem.mem_AvgPAt_of_decision_internal (problem : DistributionalProblem) (δ : ℕ → ℚ) (decide : List Bool → Bool) (htime : (fun (x : List Bool) => [decide x]) ∈ FP) (hdecide : ∀ (x : List Bool), decide x = true ↔ x ∈ problem.language) (hδ : ∀ (n : ℕ), 0 ≤ δ n) :
problem ∈ AvgPAt δ
theorem Complexity.DistributionalProblem.mem_AvgP_of_decision_internal (problem : DistributionalProblem) (decide : List Bool → Bool) (htime : (fun (x : List Bool) => [decide x]) ∈ FP) (hdecide : ∀ (x : List Bool), decide x = true ↔ x ∈ problem.language) :
problem ∈ AvgP