Documentation

LeanPool.Lentil.ProofMode.Tactics.Rename

def TLA.ProofMode.renameFun {σ : Type u} (newName : String) (h : NamedPred σ) :

Change the displayed name of a hypothesis while retaining its predicate.

Equations
Instances For
    def TLA.ProofMode.renameHyp {σ : Type u} (hyps : List (NamedPred σ)) (oldName newName : String) :

    Rename a hypothesis in a hypothesis list.

    Equations
    Instances For
      theorem TLA.ProofMode.Entails_rename_by_name {σ : Type u} {hyps : List (NamedPred σ)} {goal : pred σ} (newName oldName : String) :
      Entails (renameHyp hyps oldName newName) goal = Entails hyps goal
      theorem TLA.ProofMode.Entails_rename_by_idx {σ : Type u} {hyps : List (NamedPred σ)} {goal : pred σ} (newName : String) (idx : Nat) :
      Entails (hyps.modify idx (renameFun newName)) goal = Entails hyps goal

      Reduction rules used after renaming a proof-mode hypothesis.

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

        Rename the hypothesis at the given location.

        Instances For

          tla_rename h => h' renames a proof-mode temporal hypothesis. The predicate and the hypothesis position are unchanged.

          For example, if the context contains hp : p, then

          tla_rename hp => hp'
          

          changes the context entry to hp' : p. A numeric index can be used instead of a name:

          tla_rename 0 => hHead
          
          Equations
          • One or more equations did not get rendered due to their size.
          Instances For