Documentation

Lean.Elab.Tactic.Grind.Basic

Instances For
    @[reducible, inline]
    Equations
      Instances For
        @[reducible, inline]
        Equations
          Instances For

            Returns the list of goals. Goals may or may not already be assigned.

            Equations
              Instances For
                Equations
                  Instances For
                    Equations
                      Instances For
                        @[inline]
                        Equations
                          Instances For

                            Runs x with only the first unsolved goal as the goal. Fails if there are no goal to be solved.

                            Equations
                              Instances For
                                @[inline]

                                Non-backtracking try/catch.

                                Equations
                                  Instances For
                                    @[inline]

                                    Backtracking try/catch. This is used for the MonadExcept instance for GrindTacticM.

                                    Equations
                                      Instances For

                                        Execute x with error recovery disabled

                                        Equations
                                          Instances For

                                            Like throwErrorAt, but, if recovery is enabled, logs the error instead.

                                            Equations
                                              Instances For

                                                Like throwError, but, if recovery is enabled, logs the error instead.

                                                Equations
                                                  Instances For
                                                    @[inline]
                                                    Equations
                                                      Instances For

                                                        Save the current tactic state for a token stx. This method is a no-op if stx has no position information. We use this method to save the tactic state at punctuation such as ;

                                                        Equations
                                                          Instances For
                                                            @[inline]
                                                            def Lean.Elab.Tactic.Grind.withMacroExpansion {α : Type} (beforeStx afterStx : Syntax) (x : GrindTacticM α) :

                                                            Elaborate x with stx on the macro stack

                                                            Equations
                                                              Instances For

                                                                Adapt a syntax transformation to a regular tactic evaluator.

                                                                Equations
                                                                  Instances For

                                                                    Return the first goal.

                                                                    Equations
                                                                      Instances For

                                                                        Execute x using the main goal local context and instances

                                                                        Equations
                                                                          Instances For
                                                                            Equations
                                                                              Instances For
                                                                                Equations
                                                                                  Instances For
                                                                                    Equations
                                                                                      Instances For
                                                                                        Equations
                                                                                          Instances For

                                                                                            Runs tactic with only the first unsolved goal as the goal, and expects it leave no goals. Fails if there are no goal to be solved.

                                                                                            Equations
                                                                                              Instances For

                                                                                                Close the main goal using the given tactic. If it fails, log the error and admit

                                                                                                Equations
                                                                                                  Instances For
                                                                                                    Equations
                                                                                                      Instances For
                                                                                                        Equations
                                                                                                          Instances For