Documentation

EqLift.Tactic.Universe

Universe level utilities #

This file provides utilities for working with universe levels in metaprograms. It includes conversion functions between levels and syntax, and universe level collection.

Main declarations #

Recursively traverse an expression and collect universe levels found. Returns a list of all unique universe levels encountered.

Equations
Instances For

    Collect the universe levels of both sides of an equality and of their type. The Eq constant itself is skipped: its level is the sort of the type of the equality, which is one universe above the terms.

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

      Compute the maximum universe level from a list of levels. The result is normalized, so that the universe levels of the lifted expressions stay small and readable (e.g. max u v instead of max (max u v) (max u v)).

      Equations
      Instances For

        Extract the universe level from the left side of an equality expression.

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