Documentation

Aesop.RuleTac.Forward.Basic

def Aesop.forwardHypPrefix :
Lean.Name

Prefix of the regular hyps added by forward.

Equations
Instances For

    Prefix of the implDetail hyps added by forward.

    Equations
    Instances For
      def Aesop.forwardImplDetailHypName (fwdHypName : Lean.Name) (depth : Nat) :
      Lean.Name

      Name of the implDetail hyp corresponding to the forward hyp with name fwdHypName and depth depth.

      Equations
      Instances For
        def Aesop.matchForwardImplDetailHypName (n : Lean.Name) :
        Option (Nat × Lean.Name)

        Parse a name generated by forwardImplDetailHypName, obtaining the fwdHypName and depth.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          def Aesop.isForwardImplDetailHypName (n : Lean.Name) :
          Bool

          Check whether the given name was generated by forwardImplDetailHypName. We assume that nobody else adds hyps with the forwardImplHypDetailPrefix prefix.

          Equations
          Instances For
            def Aesop.isForwardImplDetailHyp (ldecl : Lean.LocalDecl) :
            Bool
            Equations
            Instances For
              def Aesop.getForwardImplDetailHyps :
              Lean.MetaM (Array Lean.LocalDecl)
              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                def Aesop.clearForwardImplDetailHyps (goal : Lean.MVarId) :
                Lean.MetaM Lean.MVarId
                Equations
                Instances For
                  • depths : Std.HashMap Lean.FVarId Nat

                    Depths of the hypotheses that have already been added by forward reasoning.

                  Instances For
                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For
                      def Aesop.hideForwardImplDetailHyps (goal : Lean.MVarId) :
                      Lean.MetaM Lean.MVarId

                      Mark hypotheses that, according to their name, are forward implementation detail hypotheses, as implementation details. This is a hack that works around the fact that certain tactics (particularly anything based on the revert-intro pattern) can turn implementation detail hyps into regular hyps.

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