The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V34. The tactics of Mathlib

Mathlib.Tactic.CategoryTheory.BicategoryCoherence

27 declarations and 1 deprecated aliases. Mathlib docs · Source

def Mathlib.Tactic.BicategoryCoherence.LiftHom.ctorIdx E1 #

{B : Type u} →
  {inst : CategoryTheory.Bicategory B} → {a b : B} → {f : a ⟶ b} → Mathlib.Tactic.BicategoryCoherence.LiftHom f → ℕ

def Mathlib.Tactic.BicategoryCoherence.LiftHom₂.ctorIdx E1 #

{B : Type u} →
  {inst : CategoryTheory.Bicategory B} →
    {a b : B} →
      {f g : a ⟶ b} →
        {inst_1 : Mathlib.Tactic.BicategoryCoherence.LiftHom f} →
          {inst_2 : Mathlib.Tactic.BicategoryCoherence.LiftHom g} →
            {η : f ⟶ g} → Mathlib.Tactic.BicategoryCoherence.LiftHom₂ η → ℕ

class Mathlib.Tactic.BicategoryCoherence.LiftHom E1 #

{B : Type u} → [inst : CategoryTheory.Bicategory B] → {a b : B} → (a ⟶ b) → Type (max u v)

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

ctor Mathlib.Tactic.BicategoryCoherence.LiftHom.mk E0 #

{B : Type u} →
  [inst : CategoryTheory.Bicategory B] →
    {a b : B} →
      {f : a ⟶ b} →
        (CategoryTheory.FreeBicategory.of.obj a ⟶ CategoryTheory.FreeBicategory.of.obj b) →
          Mathlib.Tactic.BicategoryCoherence.LiftHom f

abbrev Mathlib.Tactic.BicategoryCoherence.LiftHom.lift E1 #

{B : Type u} →
  {inst : CategoryTheory.Bicategory B} →
    {a b : B} →
      (f : a ⟶ b) →
        [self : Mathlib.Tactic.BicategoryCoherence.LiftHom f] →
          CategoryTheory.FreeBicategory.of.obj a ⟶ CategoryTheory.FreeBicategory.of.obj b

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

instance Mathlib.Tactic.BicategoryCoherence.liftHomId E0 #

{B : Type u} →
  [inst : CategoryTheory.Bicategory B] →
    {a : B} → Mathlib.Tactic.BicategoryCoherence.LiftHom (CategoryTheory.CategoryStruct.id a)

instance Mathlib.Tactic.BicategoryCoherence.liftHomComp E0 #

{B : Type u} →
  [inst : CategoryTheory.Bicategory B] →
    {a b c : B} →
      (f : a ⟶ b) →
        (g : b ⟶ c) →
          [Mathlib.Tactic.BicategoryCoherence.LiftHom f] →
            [Mathlib.Tactic.BicategoryCoherence.LiftHom g] →
              Mathlib.Tactic.BicategoryCoherence.LiftHom (CategoryTheory.CategoryStruct.comp f g)

instance Mathlib.Tactic.BicategoryCoherence.liftHomOf E0 #

{B : Type u} →
  [inst : CategoryTheory.Bicategory B] → {a b : B} → (f : a ⟶ b) → Mathlib.Tactic.BicategoryCoherence.LiftHom f

class Mathlib.Tactic.BicategoryCoherence.LiftHom₂ E1 #

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

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

ctor Mathlib.Tactic.BicategoryCoherence.LiftHom₂.mk E0 #

{B : Type u} →
  [inst : CategoryTheory.Bicategory B] →
    {a b : B} →
      {f g : a ⟶ b} →
        [inst_1 : Mathlib.Tactic.BicategoryCoherence.LiftHom f] →
          [inst_2 : Mathlib.Tactic.BicategoryCoherence.LiftHom g] →
            {η : f ⟶ g} →
              (Mathlib.Tactic.BicategoryCoherence.LiftHom.lift f ⟶ Mathlib.Tactic.BicategoryCoherence.LiftHom.lift g) →
                Mathlib.Tactic.BicategoryCoherence.LiftHom₂ η

abbrev Mathlib.Tactic.BicategoryCoherence.LiftHom₂.lift E1 #

{B : Type u} →
  {inst : CategoryTheory.Bicategory B} →
    {a b : B} →
      {f g : a ⟶ b} →
        {inst_1 : Mathlib.Tactic.BicategoryCoherence.LiftHom f} →
          {inst_2 : Mathlib.Tactic.BicategoryCoherence.LiftHom g} →
            (η : f ⟶ g) →
              [self : Mathlib.Tactic.BicategoryCoherence.LiftHom₂ η] →
                Mathlib.Tactic.BicategoryCoherence.LiftHom.lift f ⟶ Mathlib.Tactic.BicategoryCoherence.LiftHom.lift g

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

instance Mathlib.Tactic.BicategoryCoherence.liftHom₂Id E0 #

{B : Type u} →
  [inst : CategoryTheory.Bicategory B] →
    {a b : B} →
      (f : a ⟶ b) →
        [inst_1 : Mathlib.Tactic.BicategoryCoherence.LiftHom f] →
          Mathlib.Tactic.BicategoryCoherence.LiftHom₂ (CategoryTheory.CategoryStruct.id f)

instance Mathlib.Tactic.BicategoryCoherence.liftHom₂LeftUnitorHom E0 #

{B : Type u} →
  [inst : CategoryTheory.Bicategory B] →
    {a b : B} →
      (f : a ⟶ b) →
        [inst_1 : Mathlib.Tactic.BicategoryCoherence.LiftHom f] →
          Mathlib.Tactic.BicategoryCoherence.LiftHom₂ (CategoryTheory.Bicategory.leftUnitor f).hom

instance Mathlib.Tactic.BicategoryCoherence.liftHom₂LeftUnitorInv E0 #

{B : Type u} →
  [inst : CategoryTheory.Bicategory B] →
    {a b : B} →
      (f : a ⟶ b) →
        [inst_1 : Mathlib.Tactic.BicategoryCoherence.LiftHom f] →
          Mathlib.Tactic.BicategoryCoherence.LiftHom₂ (CategoryTheory.Bicategory.leftUnitor f).inv

instance Mathlib.Tactic.BicategoryCoherence.liftHom₂RightUnitorHom E0 #

{B : Type u} →
  [inst : CategoryTheory.Bicategory B] →
    {a b : B} →
      (f : a ⟶ b) →
        [inst_1 : Mathlib.Tactic.BicategoryCoherence.LiftHom f] →
          Mathlib.Tactic.BicategoryCoherence.LiftHom₂ (CategoryTheory.Bicategory.rightUnitor f).hom

instance Mathlib.Tactic.BicategoryCoherence.liftHom₂RightUnitorInv E0 #

{B : Type u} →
  [inst : CategoryTheory.Bicategory B] →
    {a b : B} →
      (f : a ⟶ b) →
        [inst_1 : Mathlib.Tactic.BicategoryCoherence.LiftHom f] →
          Mathlib.Tactic.BicategoryCoherence.LiftHom₂ (CategoryTheory.Bicategory.rightUnitor f).inv

instance Mathlib.Tactic.BicategoryCoherence.liftHom₂AssociatorHom E0 #

{B : Type u} →
  [inst : CategoryTheory.Bicategory B] →
    {a b c d : B} →
      (f : a ⟶ b) →
        (g : b ⟶ c) →
          (h : c ⟶ d) →
            [inst_1 : Mathlib.Tactic.BicategoryCoherence.LiftHom f] →
              [inst_2 : Mathlib.Tactic.BicategoryCoherence.LiftHom g] →
                [inst_3 : Mathlib.Tactic.BicategoryCoherence.LiftHom h] →
                  Mathlib.Tactic.BicategoryCoherence.LiftHom₂ (CategoryTheory.Bicategory.associator f g h).hom

instance Mathlib.Tactic.BicategoryCoherence.liftHom₂AssociatorInv E0 #

{B : Type u} →
  [inst : CategoryTheory.Bicategory B] →
    {a b c d : B} →
      (f : a ⟶ b) →
        (g : b ⟶ c) →
          (h : c ⟶ d) →
            [inst_1 : Mathlib.Tactic.BicategoryCoherence.LiftHom f] →
              [inst_2 : Mathlib.Tactic.BicategoryCoherence.LiftHom g] →
                [inst_3 : Mathlib.Tactic.BicategoryCoherence.LiftHom h] →
                  Mathlib.Tactic.BicategoryCoherence.LiftHom₂ (CategoryTheory.Bicategory.associator f g h).inv

instance Mathlib.Tactic.BicategoryCoherence.liftHom₂Comp E0 #

{B : Type u} →
  [inst : CategoryTheory.Bicategory B] →
    {a b : B} →
      {f g h : a ⟶ b} →
        [inst_1 : Mathlib.Tactic.BicategoryCoherence.LiftHom f] →
          [inst_2 : Mathlib.Tactic.BicategoryCoherence.LiftHom g] →
            [inst_3 : Mathlib.Tactic.BicategoryCoherence.LiftHom h] →
              (η : f ⟶ g) →
                (θ : g ⟶ h) →
                  [Mathlib.Tactic.BicategoryCoherence.LiftHom₂ η] →
                    [Mathlib.Tactic.BicategoryCoherence.LiftHom₂ θ] →
                      Mathlib.Tactic.BicategoryCoherence.LiftHom₂ (CategoryTheory.CategoryStruct.comp η θ)

instance Mathlib.Tactic.BicategoryCoherence.liftHom₂WhiskerLeft E0 #

{B : Type u} →
  [inst : CategoryTheory.Bicategory B] →
    {a b c : B} →
      (f : a ⟶ b) →
        [inst_1 : Mathlib.Tactic.BicategoryCoherence.LiftHom f] →
          {g h : b ⟶ c} →
            (η : g ⟶ h) →
              [inst_2 : Mathlib.Tactic.BicategoryCoherence.LiftHom g] →
                [inst_3 : Mathlib.Tactic.BicategoryCoherence.LiftHom h] →
                  [Mathlib.Tactic.BicategoryCoherence.LiftHom₂ η] →
                    Mathlib.Tactic.BicategoryCoherence.LiftHom₂ (CategoryTheory.Bicategory.whiskerLeft f η)

instance Mathlib.Tactic.BicategoryCoherence.liftHom₂WhiskerRight E0 #

{B : Type u} →
  [inst : CategoryTheory.Bicategory B] →
    {a b c : B} →
      {f g : a ⟶ b} →
        (η : f ⟶ g) →
          [inst_1 : Mathlib.Tactic.BicategoryCoherence.LiftHom f] →
            [inst_2 : Mathlib.Tactic.BicategoryCoherence.LiftHom g] →
              [Mathlib.Tactic.BicategoryCoherence.LiftHom₂ η] →
                {h : b ⟶ c} →
                  [inst_4 : Mathlib.Tactic.BicategoryCoherence.LiftHom h] →
                    Mathlib.Tactic.BicategoryCoherence.LiftHom₂ (CategoryTheory.Bicategory.whiskerRight η h)

def Mathlib.Tactic.BicategoryCoherence.exception E1 #

{α : Type} → Lean.MVarId → Lean.MessageData → Lean.MetaM α

Helper function for throwing exceptions.

def Mathlib.Tactic.BicategoryCoherence.exception' E1 #

Lean.MessageData → Lean.Elab.Tactic.TacticM Unit

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

def Mathlib.Tactic.BicategoryCoherence.mkLiftMap₂LiftExpr E1 #

Lean.Expr → Lean.Elab.TermElabM Lean.Expr

Auxiliary definition for bicategorical_coherence.

def Mathlib.Tactic.BicategoryCoherence.bicategoryCoherence E1 #

Lean.MVarId → Lean.Elab.TermElabM Unit

Coherence tactic for bicategories.

def Mathlib.Tactic.BicategoryCoherence.whisker_simps E1 #

Lean.ParserDescr

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

theorem Mathlib.Tactic.BicategoryCoherence.assoc_liftHom₂ E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b : B} {f g h i : a ⟶ b}
  [inst_1 : Mathlib.Tactic.BicategoryCoherence.LiftHom f] [inst_2 : Mathlib.Tactic.BicategoryCoherence.LiftHom g]
  [inst_3 : Mathlib.Tactic.BicategoryCoherence.LiftHom h] (η : f ⟶ g) (θ : g ⟶ h) (ι : h ⟶ i)
  [Mathlib.Tactic.BicategoryCoherence.LiftHom₂ η] [Mathlib.Tactic.BicategoryCoherence.LiftHom₂ θ],
  CategoryTheory.CategoryStruct.comp η (CategoryTheory.CategoryStruct.comp θ ι) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.CategoryStruct.comp η θ) ι

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.

Deprecated aliases

NameNew nameSince
Mathlib.Tactic.BicategoryCoherence.bicategory_coherenceMathlib.Tactic.BicategoryCoherence.bicategoryCoherence2026-05-27