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
      Equations
      Instances For
        Instances For
          Instances For

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

            Equations
            Instances For
              Equations
              Instances For
                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For
                    Equations
                    Instances For
                      Equations
                      Instances For
                        @[implicit_reducible, always_inline]
                        Equations
                        • One or more equations did not get rendered due to their size.
                        Equations
                        • One or more equations did not get rendered due to their size.
                        Instances For
                          Equations
                          • One or more equations did not get rendered due to their size.
                          Instances For

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

                            Equations
                            • One or more equations did not get rendered due to their size.
                            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
                                  • One or more equations did not get rendered due to their size.
                                  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
                                        @[implicit_reducible]
                                        Equations
                                        • One or more equations did not get rendered due to their size.

                                        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
                                          • One or more equations did not get rendered due to their size.
                                          Instances For

                                            Adapt a syntax transformation to a regular tactic evaluator.

                                            Equations
                                            Instances For

                                              Execute x using the main goal local context and instances

                                              Equations
                                              Instances For
                                                Equations
                                                Instances For
                                                  Equations
                                                  • One or more equations did not get rendered due to their size.
                                                  Instances For
                                                    Equations
                                                    • One or more equations did not get rendered due to their size.
                                                    Instances For
                                                      Equations
                                                      • One or more equations did not get rendered due to their size.
                                                      Instances For
                                                        Equations
                                                        • One or more equations did not get rendered due to their size.
                                                        Instances For
                                                          Equations
                                                          • One or more equations did not get rendered due to their size.
                                                          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
                                                              • One or more equations did not get rendered due to their size.
                                                              Instances For
                                                                Equations
                                                                Instances For
                                                                  Equations
                                                                  • One or more equations did not get rendered due to their size.
                                                                  Instances For
                                                                    Equations
                                                                    • One or more equations did not get rendered due to their size.
                                                                    Instances For