Equations
Instances For
Equations
- Lean.Elab.Term.elabSort stx x✝ = do let __do_lift ← Lean.Elab.Term.elabOptLevel✝ stx[1] pure (Lean.mkSort __do_lift)
Instances For
Equations
- Lean.Elab.Term.elabTypeStx stx x✝ = do let __do_lift ← Lean.Elab.Term.elabOptLevel✝ stx[1] pure (Lean.mkSort (Lean.mkLevelSucc __do_lift))
Instances For
the method resolveName adds a completion point for it using the given
expected type. Thus, we propagate the expected type if stx[0] is an identifier.
It doesn't "hurt" if the identifier can be resolved because the expected type is not used in this case.
Recall that if the name resolution fails a synthetic sorry is returned.
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
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
Returns true if stx is a by expression with an empty tactic body
(not a parse error producing .missing).
The structure is: node byTactic [atom "by", node tacticSeq [node tacticSeq1Indented [node null []]]]
Equations
- One or more equations did not get rendered due to their size.
Instances For
Returns true if all conditions are met for empty by to be elaborated as try?:
the body is empty, the option is enabled, we are in an interactive (non-combinator) context,
and the try? infrastructure (parser Lean.Parser.Tactic.tryTrace) is available — the latter
matters when working on the prelude, before Init.Try is imported.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Body of the byTactic term elaborator: registers a tactic mvar for the body, or
errors when there's no expected type. Shared between elabByTactic and
Lean.Elab.Tactic.Try's elabEmptyByAsTry so the two paths can't drift.
Equations
- One or more equations did not get rendered due to their size.
- Lean.Elab.Term.elabByTacticCore stx none = do Lean.Elab.Term.tryPostpone Lean.throwError ((Lean.MessageData.ofFormat ∘ Std.format) "invalid 'by' tactic, expected type has not been provided")
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lean.Elab.Term.elabNoImplicitLambda stx expectedType? = Lean.Elab.Term.elabTerm stx[1] (Lean.Elab.Term.mkNoImplicitLambdaAnnotation <$> expectedType?)
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lean.Elab.Term.elabStrLit stx x✝ = match stx.isStrLit? with | some val => pure (Lean.mkStrLit val) | none => Lean.Elab.throwIllFormedSyntax
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lean.Elab.Term.elabRawNatLit stx x✝ = match stx[1].isNatLit? with | some val => pure (Lean.mkRawNatLit val) | none => Lean.Elab.throwIllFormedSyntax
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lean.Elab.Term.elabCharLit stx x✝ = match stx.isCharLit? with | some val => pure (Lean.mkApp (Lean.mkConst `Char.ofNat) (Lean.mkRawNatLit val.toNat)) | none => Lean.Elab.throwIllFormedSyntax
Instances For
Equations
- Lean.Elab.Term.elabQuotedName stx x✝ = match stx[0].isNameLit? with | some val => pure (Lean.toExpr val) | none => Lean.Elab.throwIllFormedSyntax
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
- Lean.Elab.Term.elabTypeOf stx x✝ = do let __do_lift ← Lean.Elab.Term.elabTerm stx[1] none liftM (Lean.Meta.inferType __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
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
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.