Documentation

Mathlib.Tactic.Widget.CommDiag

This module defines tactic/meta infrastructure for displaying commutative diagrams in the infoview.

@[inline]

If the expression is a function application of fName with 7 arguments, return those arguments. Otherwise return none.

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

Metaprogramming utilities for breaking down category theory expressions #

Given a Hom type α ⟶ β, return (α, β). Otherwise none.

Equations

Given composed homs g ≫ h, return (g, h). Otherwise none.

Equations
@[inline, reducible]

Expressions to display as labels in a diagram.

Equations

Widget for general commutative diagrams #

Construct a commutative diagram from a Penrose substance program and expressions embeds to display as labels in the diagram.

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

Commutative triangles #

Triangle with homs = [f,g,h] and objs = [A,B,C]

A f B
  h g
    C
Equations
  • One or more equations did not get rendered due to their size.

Given a commutative triangle f ≫ g = h or e ≡ h = f ≫ g, return a triangle diagram. Otherwise none.

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

Commutative squares #

Square with homs = [f,g,h,i] and objs = [A,B,C,D]

A f B
i   g
D h C
Equations
  • One or more equations did not get rendered due to their size.

Given a commutative square f ≫ g = i ≫ h, return a square diagram. Otherwise none.

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