Language and Category theory

Posted on March 1, 2020
Tags: typetheory

1 Function application

Typical application

Piping application order

1.1 Monads

  • Human may be ugly :: human -> Maybe Ugly
  • Ugly people may be rich :: Ugly -> Maybe Rich
  • composed is, Human may be rich :: human -> Maybe Rich

2 Function, Fibre , Preimage

3 Choice vs Determination

The subset of (distances) of (Falling Apples) in terms of (distance fallen function) is RESTRICTED by the subset of (durations) that a (falling apple) in terms of (duration of the fall).

Analogy OO properties:

Our “Apple” object has 2 properties, how do these properties relate to each other?


3.1 Section and Retraction

We will find the Section and Retraction wrt.

3.1.1 Section

Destiny calling out

There are many possible Destinies that calls out to the same person but only one of such destiny is fulfilled. Every person has their own destiny and their destiny also calls out to them.

Every person represents a unique group of destinies. [calls out] Every person can only fulfil one destiny from said group of destinies. [fulfil, injective]

The section for “calls out” function is the “fulfil” function. Notice this section must be injective.

Generalize Section is a CHoice problem

Every “Person” represents a “Group” The section of such representation means Each “Person” much select one object of said “Group”.

3.1.2 Retraction

retraction for “calls out” is the fulfil function. Every person must be the representative of some group of Destinies. [calls out]