Documentation

LeanPool.Lentil.ProofMode.Location

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.

    Instances For

      Parse a temporalHypLoc syntax into a TemporalHypLoc.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For

        Quote a TemporalHypLoc back into temporalHypLoc syntax.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For

          Look up a hypothesis by location, returning none if absent.

          Equations
          Instances For
            def TLA.ProofMode.findByTemporalHypLoc {m : TypeType} {α : Type} [Monad m] [Lean.MonadError m] (xs : List (String × α)) (loc : TemporalHypLoc) (errorMsgPrefix errorMsgSuffix : String) :
            m (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

              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

                Interpret a bare term as a hypothesis location, if it names one.

                Equations
                Instances For

                  Locations for rewrite/simp-like tactics.

                  • idxs : Array Nat

                    The hypothesis indices targeted by a rewrite location.

                  • includeGoal : Bool

                    Whether the rewrite location includes the goal.

                  • isWildCard : Bool

                    Whether the rewrite location is a wildcard.

                  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.

                    Equations
                    Instances For