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.
- filtered : Option ProofWidgets.Html
filteredwill be shown in the filtered view. - unfiltered : ProofWidgets.Html
unfilteredwill be shown in the unfiltered view. - key : α
keyis used for sorting and comparing theorems. - pattern : ProofWidgets.Html
The
patternof the first lemma in a section is shown as the header of that section.
Instances For
Equations
- Mathlib.Tactic.ClickSuggestions.instOrdResult = { compare := fun (x1 x2 : Mathlib.Tactic.ClickSuggestions.Result α) => compare x1.key x2.key }
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.
The results of the theorems that successfully applied.
- errors : Array ProofWidgets.Html
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
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.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Insert res into the section state s.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Whether the section corresponds to local hypotheses, declarations from the current file, or imported declarations.
- hyp : SectionKind
- currFile : SectionKind
- imported : SectionKind
Instances For
Create the HTML corresponding to s.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Spawn a task that computes a piece of Html to be displayed when finished.
Equations
- One or more equations did not get rendered due to their size.