Documentation

Mathlib.Tactic.CategoryTheory.CheckCompositions

The check_compositions tactic, which checks the typing of categorical compositions in the goal, reporting discrepancies at "instances and reducible" transparency.

Reports from this tactic do not necessarily indicate a problem, although typically simp should reduce rather than increase the reported discrepancies.

check_compositions may be useful in diagnosing uses of erw in the category theory library.

Find appearances of CategoryStruct.comp C inst X Y Z f g, and apply f to each.

Equations
Instances For

    Given a composition CategoryStruct.comp _ _ X Y Z f g, infer the types of f and g and check whether their sources and targets agree, at "instances and reducible" transparency, with X, Y, and Z, reporting any discrepancies.

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

      Check the typing of categorical compositions in the goal.

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

        For each composition f ≫ g in the goal, which internally is represented as CategoryStruct.comp C inst X Y Z f g, infer the types of f and g and check whether their sources and targets agree with X, Y, and Z at "instances and reducible" transparency, reporting any discrepancies.

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