Returns the ExtensionState for the default grind attribute.
Equations
- Lean.Meta.Grind.getDefaultExtensionState = do let __do_lift ← Lean.getEnv pure (Lean.ScopedEnvExtension.getState Lean.Meta.Grind.grindExt __do_lift)
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
- config : Grind.Config
- extensions : ExtensionStateArray
- extra : PArray EMatchTheorem
- extraInj : PArray InjectiveTheorem
- symPrios : SymbolPriorities
- norm : Simp.Context
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lean.Meta.Grind.mkDefaultParams config = do let __do_lift ← Lean.Meta.Grind.getDefaultExtensionState Lean.Meta.Grind.mkParams config #[__do_lift]
Instances For
Equations
- Lean.Meta.Grind.mkOnlyParams config = do let __do_lift ← Lean.Meta.Grind.getOnlyExtensionState Lean.Meta.Grind.mkParams config #[__do_lift]
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
Asserts extra facts provided as grind parameters.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Returns a new goal for the given metavariable.
Equations
- One or more equations did not get rendered due to their size.
Instances For
- issues : List MessageData
- config : Grind.Config
- counters : Counters
- simp : Simp.Stats
- splitDiags : PArray SplitDiagInfo
Instances For
Equations
- One or more equations did not get rendered due to their size.
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
- Lean.Meta.Grind.processHypotheses goal num? = Lean.Meta.Grind.GoalM.run' goal (discard (Lean.Meta.Grind.processHypotheses.go✝ goal num?).run)
Instances For
A helper combinator for executing a grind-based terminal tactic.
Given an input goal mvarId, it cleans up local hypotheses corresponding to internal details,
creates an auxiliary meta-variable mvarId', and executes k mvarId'.
withNewMCtxDepth is used to prevent metavariables from being accidentally assigned by
grind's isDefEq calls. After grind finishes, delayed metavariable assignments are
resolved, and the resulting proof is assigned to the original goal.
See issue #11806 and issue #12242 for motivating examples.
Equations
- One or more equations did not get rendered due to their size.