Documentation

EqLift.Tactic.Lift

Lift tactic #

This file defines the lift_eq tactic, which lifts an equality to a common universe level. It propagates the lifting through the structure of the equality. The tactic is implemented in a way that it can be easily extended to support new types of expressions by registering new lifting functions.

Registers a new lifting function for expressions. The function should take an expression, a universe level (most likely the common universe level where the equality is being lifted), and a list of proofs, and return a new expression and an updated list of proofs.

Equations
Instances For

    Registers a new finisher function for constructing the final proof of equality after lifting inner expressions. The function should take the original left-hand side and right-hand side, the transformed left-hand side and right-hand side, the common universe level, and return a proof of equality.

    Equations
    Instances For

      Lifts an expression to a common universe level using the registered lifting functions.

      Equations
      Instances For

        Gets the maximum universe level from an equality expression by collecting all universe levels from the left-hand side and right-hand side of the equality.

        Equations
        Instances For

          Lifts an equality expression to a common universe level using the registered lifting functions and finisher functions.

          Equations
          Instances For

            Same as liftEquality, but allows specifying a universe level that will be taken into account when computing the maximum universe level.

            Equations
            Instances For

              Transforms an equality expression by lifting both sides to a common universe level.

              The tactic supports location specifiers like rw or simp:

              • lift_eq — applies to the goal
              • lift_eq at h — applies to hypothesis h
              • lift_eq at h₁ h₂ — applies to multiple hypotheses
              • lift_eq at h ⊢ — applies to hypothesis h and the goal
              • lift_eq at * — applies to all hypotheses and the goal
              Equations
              • One or more equations did not get rendered due to their size.
              Instances For