Documentation

Mathlib.Tactic.CategoryTheory.BicategoryCoherence

A coherence tactic for bicategories #

We provide a bicategory_coherence tactic, which proves that any two 2-morphisms (with the same source and target) in a bicategory which are built out of associators and unitors are equal.

This file mainly deals with the type class setup for the coherence tactic. The actual front end tactic is given in Mathlib/Tactic/CategoryTheory/Coherence.lean at the same time as the coherence tactic for monoidal categories.

class Mathlib.Tactic.BicategoryCoherence.LiftHom {B : Type u} [CategoryTheory.Bicategory B] {a b : B} (f : a b) :
Type (max u v)

A typeclass carrying a choice of lift of a 1-morphism from B to FreeBicategory B.

Instances
    @[implicit_reducible, instance 100]
    class Mathlib.Tactic.BicategoryCoherence.LiftHom₂ {B : Type u} [CategoryTheory.Bicategory B] {a b : B} {f g : a b} [LiftHom f] [LiftHom g] (η : f g) :
    Type (max u v)

    A typeclass carrying a choice of lift of a 2-morphism from B to FreeBicategory B.

    • A lift of a 2-morphism to the free bicategory. This should only exist for "structural" 2-morphisms.

    Instances
      @[implicit_reducible]
      def Mathlib.Tactic.BicategoryCoherence.exception {α : Type} (g : Lean.MVarId) (msg : Lean.MessageData) :
      Lean.MetaM α

      Helper function for throwing exceptions.

      Instances For
        def Mathlib.Tactic.BicategoryCoherence.exception' (msg : Lean.MessageData) :
        Lean.Elab.Tactic.TacticM Unit

        Helper function for throwing exceptions with respect to the main goal.

        Instances For
          def Mathlib.Tactic.BicategoryCoherence.mkLiftMap₂LiftExpr (e : Lean.Expr) :
          Lean.Elab.TermElabM Lean.Expr

          Auxiliary definition for bicategorical_coherence.

          Instances For
            def Mathlib.Tactic.BicategoryCoherence.bicategory_coherence (g : Lean.MVarId) :
            Lean.Elab.TermElabM Unit

            Coherence tactic for bicategories.

            Instances For

              Simp lemmas for rewriting a 2-morphism into a normal form.

              Instances For

                Auxiliary simp lemma for the coherence tactic: this move brackets to the left in order to expose a maximal prefix built out of unitors and associators.