Documentation

Projects.Generator.Defs

structure Generator (α : Type) :
Instances For
    theorem Generator.ext_iff {α : Type} {x y : Generator α} :
    x = y ↔ x.σ = y.σ ∧ x.state ≍ y.state ∧ x.step ≍ y.step
    theorem Generator.ext {α : Type} {x y : Generator α} (σ : x.σ = y.σ) (state : x.state ≍ y.state) (step : x.step ≍ y.step) :
    x = y
    @[instance_reducible]
    instance Generator.instInhabited {α : Type} [ha : Inhabited α] :
    Equations
    @[irreducible]
    def Generator.seq' {α : Type} (gen : Generator α) (i : ℕ) :
    Equations
    Instances For
      def Generator.seq {α : Type} (gen : Generator α) (i : ℕ) :
      α
      Equations
      Instances For
        Equations
        Instances For
          def Generator.setState {α : Type} (gen : Generator α) (s : gen.σ) :
          Equations
          Instances For
            def Generator.ofSeq {α : Type} (a : ℕ → α) :
            Equations
            Instances For
              def Generator.take {α : Type} (gen : Generator α) (n : ℕ) :
              List α
              Equations
              Instances For