Documentation

LeanPool.LanguageGeneration.FiniteWitness.Width.Sorting

Sorting histories can destroy eventual generation #

The positive natural numbers used for the sorting counterexample.

Equations
Instances For

    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
        theorem GenLimit.FiniteWitness.Sorting.strictMono_of_all_prefixes {stream : ℕ → ℕ} (h : ∀ (t : ℕ), List.Pairwise (fun (x1 x2 : ℕ) => x1 < x2) (textPrefix stream t)) :
        StrictMono stream

        The presentation starting with 1 and then interleaving 3, 2, 5, 4, and so on.

        Equations
        Instances For

          Evaluate the counterexample output after sorting the observed sample.

          Equations
          Instances For