Syntax for referring to a proof-mode hypothesis by name or index.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Locations for proof-mode hypotheses. Can be a name or an index.
- byName (name : String) : TemporalHypLoc
- byIdx (idx : Nat) : TemporalHypLoc
Instances For
Parse a temporalHypLoc syntax into a TemporalHypLoc.
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
TLA.ProofMode.quoteTemporalHypLoc :
TemporalHypLoc → Lean.Elab.Tactic.TacticM (Lean.TSyntax `TLA.ProofMode.temporalHypLoc)
Quote a TemporalHypLoc back into temporalHypLoc syntax.
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
TLA.ProofMode.findByTemporalHypLocOpt
{α : Type u_1}
(xs : List (String × α))
:
TemporalHypLoc → Option (String × α)
Look up a hypothesis by location, returning none if absent.
Equations
- TLA.ProofMode.findByTemporalHypLocOpt xs (TLA.ProofMode.TemporalHypLoc.byName name) = List.find? (fun (x : String × α) => x.fst == name) xs
- TLA.ProofMode.findByTemporalHypLocOpt xs (TLA.ProofMode.TemporalHypLoc.byIdx idx) = xs[idx]?
Instances For
def
TLA.ProofMode.findByTemporalHypLoc
{m : Type → Type}
{α : Type}
[Monad m]
[Lean.MonadError m]
(xs : List (String × α))
(loc : TemporalHypLoc)
(errorMsgPrefix errorMsgSuffix : String)
:
Look up a hypothesis by location, throwing an error if absent.
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
TLA.ProofMode.temporalHypNameOfBareTermOpt
{α : Type u_1}
(hyps : List (String × α))
(tm : Lean.Term)
:
If tm is a bare identifier that names a proof-mode hypothesis in hyps,
return that name. Lean locals shadow proof-mode hypotheses.
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
TLA.ProofMode.temporalHypLocOfBareTermOpt
{α : Type u_1}
(hyps : List (String × α))
(tm : Lean.Term)
:
Interpret a bare term as a hypothesis location, if it names one.
Equations
- TLA.ProofMode.temporalHypLocOfBareTermOpt hyps tm = do let __do_lift ← TLA.ProofMode.temporalHypNameOfBareTermOpt hyps tm pure (Option.map TLA.ProofMode.TemporalHypLoc.byName __do_lift)
Instances For
def
TLA.ProofMode.parseRewriteLocation
(hyps : List (String × Lean.Expr))
(loc? : Option (Lean.TSyntax `Lean.Parser.Tactic.location))
(errorMsgPrefix : String)
:
Parse a rewrite location into the targeted indices.