Aller au contenu
login
arrow_backRetour aux issues
timerloggedout-spec/termux-monorepo #320

Notation Sets

ecoDébutant enhancement help wanted priority production Search'n'Re-Search H@× & Cπ@¢k$ && W4π3z && 3×9£017$ `gh`ActionsWorkflows Linguist ToDo-2-Ta'Dã!n!!🪄 4πchw12

descriptionDescription

#309 && related #182 Grimiore Compression Optimizations: https://share.google/aimode/SIzooKvZOBUCCi9vN ===START=== Category theory is a highly abstract branch of mathematics that focuses on the structural relationships between objects rather than looking inside them. It uses a distinct language of objects, arrows (morphisms), and compositions to unify different areas like algebra, geometry, and computer science. [1, 2, 3, 4] Below is a breakdown of core Category Theory notations alongside similar mathematical or computational structures that use parallel concepts. ------------------------------ ## 1. Core Category Theory Notation A category $\mathcal{C}$ consists of a collection of objects (A, B, C) and morphisms (arrows) between them. [1, 5] * Morphism Assignment: f: A → B * Meaning: f is an arrow with domain (source) A and codomain (target) B. [1, 6] * Composition: $g \circ f$ or g f * Meaning: If f: A → B and g: B → C, then $g \circ f: A \to C$. (Read as "g after f"). [1, 7] * Alternative Diagrammatic Composition: f ; g or $f \gg= g$ * Meaning: Read as "f then g". Increasingly popular in computer science to keep structural ordering left-to-right. [7] * Hom-Set: $\text{Hom}_\mathcal{C}(A, B)$ or $\mathcal{C}(A,B)$ * Meaning: The collection of all arrows pointing from object A to object B. [2] * Identity: $\text{id}_A$ or $1_A$ * Meaning: The mandatory arrow mapping an object back to itself without modification. [1, 8] ------------------------------ ## 2. Functors and Natural Transformations Category theory shifts up in abstraction by mapping entire categories to other categories. * Functor: $F: \mathcal{C} \to \mathcal{D}$ * Meaning: A structure-preserving map that transforms objects in $\mathcal{C}$ to objects in $\mathcal{D}$, and arrows in $\mathcal{C}$ to arrows in $\mathcal{D}$. [2, 5] * Natural Transformation: $\alpha: F \implies G$ * Meaning: A mapping between two functors F and G. It provides a bridge between different structural paths. ------------------------------ ## 3. Similar Notations Across Other Fields The foundational framework of category theory heavily mirrors (and often formally models) notation found in logic, set theory, type theory, and abstract algebra. | Framework | Arrow / Mapping Notation | Composition Notation | Identity Concept | |---|---|---|---| | Category Theory | f: A → B | $g \circ f$ (or f ; g) | $\text{id}_A$ | | Set Theory | f: X → Y (Functions) | $(g \circ f)(x) = g(f(x))$ | I(x) = x | | Formal Logic | $A \implies B$ (Implication) | If $A \implies B$ and $B \implies C$, then $A \implies C$ (Hypothetical Syllogism) | $A \implies A$ (Tautology) | | Type Theory & Functional Prog. | f :: A -> B (Types) | g . f (or f >>> g) | id | | Order Theory (Posets) | x ≤ y (Relations) | If x ≤ y and y ≤ z, then x ≤ z (Transitivity) | x ≤ x (Reflexivity) | ------------------------------ ## 4. Advanced & Dual Notations Category Theory features specific shorthand for complex constructions: * Opposite Category ($\mathcal{C}^{\text{op}}$): The same category but with all its arrows reversed. * The "Co-" Prefix: Almost every concept has a structural dual achieved by reversing arrows. For example, Products (×) turn into Coproducts ($\sqcup$ or +), and Limits turn into Colimits. [9] * Exponential Objects ($Y^X$): In a closed category, this notation represents the internal object of arrows from X to Y, structurally matching the set-theoretic calculation of total possible functions ($\vert{}Y\vert{}^{\vert{}X\vert{}}$). [10] If you are exploring a specific application of this notation, let me know if you are approaching this from a pure mathematics standpoint or a computer science/functional programming perspective, and I can tailor the examples accordingly! [1] [https://www.youtube.com](https://www.youtube.com/watch?v=5Ykrfqrxc8o) [2] [https://www.youtube.com](https://www.youtube.com/watch?v=jfkeLKjBlQg) [3] [https://www.youtube.com](https://www.youtube.com/watch?v=yP2RjVD-cZ0) [4] [https://ww
codeOuvre sur GitHub