- decl
(declName : Name)
 : Origin
A global declaration in the environment.
 - fvar
(fvarId : FVarId)
 : Origin
A local hypothesis.
 - stx
(id : Name)
(ref : Syntax)
 : Origin
A proof term provided directly to a call to
grindwhererefis the provided grind argument. Theidis a unique identifier for the call. - other : Origin
 
Instances For
Equations
- Lean.Meta.Grind.instInhabitedOrigin = { default := Lean.Meta.Grind.Origin.decl default }
 
Equations
- Lean.Meta.Grind.instReprOrigin = { reprPrec := Lean.Meta.Grind.reprOrigin✝ }
 
A unique identifier corresponding to the origin.
Equations
- (Lean.Meta.Grind.Origin.decl a).key = a
 - (Lean.Meta.Grind.Origin.fvar a).key = a.name
 - (Lean.Meta.Grind.Origin.stx a a_1).key = a
 - Lean.Meta.Grind.Origin.other.key = `other
 
Instances For
Equations
- (Lean.Meta.Grind.Origin.decl a).pp = do let __do_lift ← Lean.mkConstWithLevelParams a pure (Lean.MessageData.ofConst __do_lift)
 - (Lean.Meta.Grind.Origin.fvar a).pp = pure (Lean.MessageData.ofExpr (Lean.mkFVar a))
 - (Lean.Meta.Grind.Origin.stx a a_1).pp = pure (Lean.MessageData.ofSyntax a_1)
 - Lean.Meta.Grind.Origin.other.pp = pure ((Lean.MessageData.ofFormat ∘ Std.format) "[unknown]")
 
Instances For
A theorem for heuristic instantiation based on E-matching.
It stores universe parameter names for universe polymorphic proofs. Recall that it is non-empty only when we elaborate an expression provided by the user. When
proofis just a constant, we can use the universe parameter names stored in the declaration.- proof : Expr
 - numParams : Nat
 Contains all symbols used in
pattterns.- origin : Origin
 
Instances For
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
Equations
- Lean.Meta.Grind.mkGroundPattern e = Lean.mkAnnotation `grind.ground_pat e
 
Instances For
Equations
- Lean.Meta.Grind.groundPattern? e = Lean.annotation? `grind.ground_pat e
 
Instances For
Equations
Instances For
- symbolSet : Std.HashSet HeadIndex
 - bvarsFound : Std.HashSet Nat
 
Instances For
Equations
Instances For
Auxiliary type for the checkCoverage function.
- ok : CheckCoverageResult
checkCoveragesucceeded - missing
(pos : List Nat)
 : CheckCoverageResult
checkCoveragefailed because some of the theorem parameters are missing,poscontains their positions 
Instances For
Equations
- Lean.Meta.Grind.getEMatchTheorems = do let __do_lift ← Lean.getEnv pure (Lean.ScopedEnvExtension.getState Lean.Meta.Grind.ematchTheoremsExt✝ __do_lift)