Sorting histories can destroy eventual generation #
Output zero on a sorted sample with a gap, and otherwise output one above its maximum.
Equations
Instances For
The ordered-history generator implementing the sorting counterexample.
Equations
Instances For
@[simp]
theorem
GenLimit.FiniteWitness.Sorting.strictMono_of_all_prefixes
{stream : ℕ → ℕ}
(h : ∀ (t : ℕ), List.Pairwise (fun (x1 x2 : ℕ) => x1 < x2) (textPrefix stream t))
:
StrictMono stream
theorem
GenLimit.FiniteWitness.Sorting.increasing_presented_sample
{stream : ℕ → ℕ}
(hp : Generic.Presents stream language)
(hm : StrictMono stream)
(t : ℕ)
:
theorem
GenLimit.FiniteWitness.Sorting.bad_sample_gap
{k : ℕ}
:
1 ≤ k → 2 * k ∉ Generic.sample badStream (2 * k)
Evaluate the counterexample output after sorting the observed sample.
Equations
- GenLimit.FiniteWitness.Sorting.sortedOutput S = GenLimit.FiniteWitness.Sorting.output (S.sort fun (x1 x2 : ℕ) => x1 ≤ x2)