pith. machine review for the scientific record. sign in

IndisputableMonolith.Mathematics.CategoryTheoryFromRS

IndisputableMonolith/Mathematics/CategoryTheoryFromRS.lean · 34 lines · 4 declarations

show as:
view math explainer →

open module explainer GitHub source

Explainer status: ready · generated 2026-05-13 09:37:32.908573+00:00

   1import Mathlib
   2
   3/-!
   4# Category Theory from RS — C Mathematics
   5
   6Five canonical categorical structures (objects, morphisms, functors,
   7natural transformations, adjunctions) = configDim D = 5.
   8
   9In RS: recognition map = functor (preserves J-cost structure).
  10J-cost morphism: J(f(r)) = J(r) for recognition-preserving maps.
  11
  12Yoneda lemma: the recognition field embeds in the functor category.
  13
  14Lean: 5 structures.
  15
  16Lean status: 0 sorry, 0 axiom.
  17-/
  18
  19namespace IndisputableMonolith.Mathematics.CategoryTheoryFromRS
  20
  21inductive CategoricalStructure where
  22  | objects | morphisms | functors | naturalTransformations | adjunctions
  23  deriving DecidableEq, Repr, BEq, Fintype
  24
  25theorem categoricalStructureCount : Fintype.card CategoricalStructure = 5 := by decide
  26
  27structure CategoryTheoryCert where
  28  five_structures : Fintype.card CategoricalStructure = 5
  29
  30def categoryTheoryCert : CategoryTheoryCert where
  31  five_structures := categoricalStructureCount
  32
  33end IndisputableMonolith.Mathematics.CategoryTheoryFromRS
  34

source mirrored from github.com/jonwashburn/shape-of-logic