Documentation

Lean.Elab.Tactic.Grind.Basic

An extra theorem passed to simp in sym => mode.

Instances For

    Cache key for Sym.simp variant invocations.

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

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

              Instances For
                @[implicit_reducible, always_inline]
                Instances For
                  @[inline]
                  Instances For

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

                    Instances For
                      @[inline]

                      Non-backtracking try/catch.

                      Instances For
                        @[inline]

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

                        Instances For

                          Execute x with error recovery disabled

                          Instances For

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

                            Instances For

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

                              Instances For
                                @[inline]
                                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 ;

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

                                    Elaborate x with stx on the macro stack

                                    Instances For

                                      Adapt a syntax transformation to a regular tactic evaluator.

                                      Instances For

                                        Execute x using the main goal local context and instances

                                        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.

                                          Instances For

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

                                            Instances For
                                              Instances For
                                                Instances For