Documentation

Lean.Meta.Tactic.Grind.Main

Returns the ExtensionState for the default grind attribute.

Equations
    Instances For
      Instances For
        Equations
          Instances For
            Equations
              Instances For
                Equations
                  Instances For
                    Equations
                      Instances For
                        def Lean.Meta.Grind.GrindM.run {α : Type} (x : GrindM α) (params : Params) (evalTactic? : Option EvalTactic := none) :
                        Equations
                          Instances For

                            Asserts extra facts provided as grind parameters.

                            Equations
                              Instances For

                                Returns a new goal for the given metavariable.

                                Equations
                                  Instances For
                                    Instances For
                                      Equations
                                        Instances For

                                          When Config.revert := false, we preprocess the hypotheses, and add them to the grind state. It starts at goal.nextDeclIdx. If num? is some num, then at most num local declarations are processed. Otherwise, all remaining local declarations are processed.

                                          Remark: this function assumes the local context does not contains holes with none in decls.

                                          Equations
                                            Instances For
                                              Equations
                                                Instances For
                                                  def Lean.Meta.Grind.GrindM.runAtGoal {α : Type} (mvarId : MVarId) (params : Params) (k : GoalGrindM α) (evalTactic? : Option EvalTactic := none) :
                                                  Equations
                                                    Instances For
                                                      def Lean.Meta.Grind.main (mvarId : MVarId) (params : Params) :
                                                      Equations
                                                        Instances For

                                                          A helper combinator for executing a grind-based terminal tactic. Given an input goal mvarId, it first abstracts meta-variables, cleans up local hypotheses corresponding to internal details, creates an auxiliary meta-variable mvarId', and executes k mvarId'. The execution is performed in a new meta-variable context depth to ensure that universe meta-variables cannot be accidentally assigned by grind. If k fails, it admits the input goal.

                                                          See issue #11806 for a motivating example.

                                                          Equations
                                                            Instances For