Documentation

Mathlib.Tactic.ClickSuggestions.SectionState

Infrastructure for searching and displaying sets of lemmas #

This is used for apply, apply at, rw and grw suggestions.

Result stores the information from a lemma that was successfully applied.

Instances For
    @[instance_reducible]
    @[instance_reducible]
    @[instance_reducible]

    Maintaining the state of the widget #

    The state of one section of library search suggestions. We use this for 4 kinds of suggestions: rw, grw, apply and apply at.

    • results : Array (Result α)

      The results of the theorems that successfully applied.

    • The results of the theorems that threw an error when trying to apply them. Usually, errors will be caught, except for when using click_suggestions.debug.

    Instances For
      @[specialize #[]]
      def Mathlib.Tactic.ClickSuggestions.Result.insertInArray {α : Type} [Ord α] [Inhabited α] (res : Result α) (arr : Array (Result α)) (isDup : ααLean.MetaM Bool) :

      Insert the new result res into the array arr of already existing results.

      We maintain the invariants that results is sorted, and for each set of duplicate results, only the first one can have the filtered field set to some.

      Instances For

        Insert res into the section state s.

        Instances For

          Whether the section corresponds to local hypotheses, declarations from the current file, or imported declarations.

          Instances For

            Create the HTML corresponding to s.

            Instances For
              @[specialize #[]]

              Spawn a task that computes a piece of Html to be displayed when finished.

              Instances For