% This file:
%   https://anggtwu.net/LATEX/2027ebl-abs.tex.html
%   https://anggtwu.net/LATEX/2027ebl-abs.tex
%           (find-angg "LATEX/2027ebl-abs.tex")
% Author: Eduardo Ochs <eduardoochs@gmail.com>
%
% (defun c () (interactive) (find-sh "pdflatex 2027ebl-abs.tex"))
% (defun d () (interactive) (find-pdf-page    "2027ebl-abs.pdf"))
% (defun e () (interactive) (find-fline       "2027ebl-abs.tex"))
% (defun u () (interactive) (find-latex-upload-links "2027ebl-abs"))
%  http://anggtwu.net/LATEX/2027ebl-abs.pdf
% https://anggtwu.net/LATEX/2027ebl-abs.pdf
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% PREAMBLE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\documentclass[11pt, a4paper]{article}

\usepackage[english]{babel}

%%% Choose your encoding: uncomment ONE of the two lines below.
%%% If unsure, or if you use Overleaf, keep utf8.
\usepackage[utf8]{inputenc}    % for Overleaf and most modern editors
%\usepackage[latin1]{inputenc}  % for local texlive if utf8 causes errors

\usepackage[T1]{fontenc}

%%
%% ****  THIS FILE MUST BE COMPILED USING PDFLATEX  ****
%%
%% ****  MAXIMUM: 2 PAGES (references included)     ****
%%

%-------------------------------------------------------------------------%
%%% DO NOT MODIFY THE BLOCK BELOW -- it defines the standard formatting %%%

\usepackage[centertags]{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{mathrsfs}
\usepackage{cite}
\usepackage{geometry}
\geometry{bottom=2cm, top=1.5cm, left=3cm, right=2cm}
\usepackage{indentfirst}
\usepackage{nopageno}

\date{}

%%% END OF FIXED BLOCK %%%
%-------------------------------------------------------------------------%

%-------------------------- AUTHORS' PACKAGES ----------------------------%

% Place additional packages required by your abstract here.
% Examples:
%\usepackage{bussproofs}
%\usepackage{tikz}
%\usepackage{proof}
%\usepackage[all]{xy}

%-------------------------- AUTHORS' MACROS -------------------------------%

% Place your personal macros here.
% Examples:
%\newcommand{\C}{\ensuremath{\mathcal{C}}}
%\newtheorem{theorem}{Theorem}
%\newtheorem{definition}[theorem]{Definition}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DOCUMENT %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{document}

%------------------------------- TITLE -----------------------------------%
% Replace "Talk" with your submission type: Talk, Round Table Contribution, Poster, Round table, or Workshop.

\title{Talk\\\textbf{On the missing (Freyd) diagrams in Lean's Mathlib.CategoryTheory}}

\author{
	{\large  \textsc{Eduardo Ochs}}\thanks{eduardoochs@gmail.com}\\
	{\small UFF, Rio das Ostras, RJ, Brazil} \\
}

\maketitle

%-------------------------------- KEYWORDS -----------------------------------%

\textbf{Keywords:} Category Theory, Diagrammatic Reasoning, Proof Assistants, Lean

\vspace{0.8cm}

%-------------------------------- ABSTRACT ------------------------------------%

Most categorists think diagramatically, and for them categorical
structures are animations. One standard way to represent these
animations on paper is using Freyd's notation (\cite{Freyd76},
\cite{FreydScedrov}, \cite{OnTheMissing}), in which the frames are
drawn side by side; for example, ``the category {\bf C} has
pullbacks'' is drawn as
``$\forall A \,|\, \exists B \,|\, \forall C \,|\, \exists !D$'', but
with $A$, $B$, $C$, $D$ replaced by diagrams: A is a V-shaped diagram,
B is the extension of A to a square, C is a certain extension of B,
and D is a certain extension of D. Actually in Freyd's notation each
of these extensions is an extension ``that obeys the obvious
compatibility conditions'', unless indicated; and these ``obvious
compatibility conditions'' are not always obvious.

When we formalize Category Theory in Lean the style is totally
different: the ``compatibility conditions'' of a categorical structure
become equations given explicity, the diagrams are not drawn, and
there is no visible distinction between what are the ``core ideas''
and what books would describe as ``{\sl the details are left to the
  reader}''.

One way to use both ``Freyd'' and ``Lean'' at the same time is to
imagine that we are working with ``expandable objects'', in the sense
of (\cite{BadFoundations}, sec.2). Imagine that we have a computer
interface that controls the style and the level of detail, and by
rotating a knob one click to the right each entity in the diagrams
$A$, $B$, $C$, $D$ acquires a name; another step/click and the
compatibility conditions appear; another step, and the interface shows
below $A$, $B$, $C$, $D$ their translations to tuples in dependent
types; and in the next steps the notation becomes gradually more
similar to Lean, and more verbose.

Category Theory is full of theorems whose details are left to the
reader, and in which those details are ``bad'', in this sense: when we
try to write those details down we see that there are several best
ways to that, but all these best ways take pages, and are opaque and
ugly.

This is a famous exercise in CWM (\cite{CWM2}, III.4.8(a)): ``{\sl if
  both squares are pullbacks, prove that the outside rectangle (with
  top and bottom edges the evident composites) is a pullback}''. For
many years I thought that the details of that exercise were
irremediably bad, but it turns out that when we apply the ideas above
-- Freyd notation, animations, expandable objects -- to it we get a
big diagram in which all the transitions between frames are easy to
formalize in Lean, and in which the non-trivial steps become clear:
the time in that animation bifurcates into different paths that are
joined again later, and when these paths are joined again the
compatibility conditions are ``glued'' in non-trivial ways.

%------------------------------- REFERENCES -----------------------------------%

% References are optional, but count towards the 2-page limit.

\begin{thebibliography}{00}

\bibitem{Freyd76} Freyd, P.: Properties Invariant within Equivalence
  Types of Categories. In: Heller, A. and Tierney, M., editors: {\sl
    Algebra, Topology and Category Theory: A Collection of Papers in
    Honour of Samuel Eilenberg}. Academic Press, pp.55-61, 1976.

\bibitem{FreydScedrov} Freyd, P.; Scedrov, A.: Categories, Allegories.
  North-Holland, 1990.

\bibitem{OnTheMissing} Ochs, E.: On the missing diagrams in Category
  Theory (First-Person Version); 2022.
  https://arxiv.org/pdf/2204.10630.pdf.

\bibitem{BadFoundations} Ochs, E.: Bad Foundations and Manipulable
  Objects. 2026. https://arxiv.org/pdf/2602.16026.

\bibitem{CWM2} Mac Lane, S.: Categories for the Working Mathematician,
  2nd ed. Springer, 1997.

\end{thebibliography}

\end{document}


% Local Variables:
% coding:  utf-8-unix
% End:
