Patterns

Posted on May 1, 2014
Tags: othermath

1 Linear or Cauchy pattern

  f          *
  |         / \
  *    ==  f   f
 / \       |   |
x   y      x   y

2 Functions and differentials

\[ A \mapsto B \] \[ \delta A \overset{?}{\mapsto} \delta B \]

3 Division as mapping

\[\frac{A::Miles}{B::inches}\] \[ B::inches \mapsto A::Miles \]

4 Division as normalization

5 Essence vs Is

IS is a subset relation

\[Squares \subseteq Rectangles\] \[\forall x (x \in Squares \rightarrow x \in Rectangles) \qquad x\in Square = \text{x is a square object}\]

The above says for all objects, if that object is a square then it is also a rectangle.

\[Essence(Squares) = \bigcap\limit_{i \in Squares} Properties(i)\] \[Essence(Rectangles) \subseteq Essence(Squares) \qquad x \in Essence(Squares) = \text{x is in a point in the space of squareness properties }\]

The above says the essence of a rectangle is contained in the essence of a square.
The Essence of a square is the core concept of squareness which is shared by all squares.

In programming the essence relation is how we code compositional interfaces/classes

Example 2

Applications to Classes and Interface

Pattern

type details struct {
    genre       string
    genreRating string
    reviews     string
}
  
type game struct {
  
    name  string
    price string
    details
}

When designing interfaces the hardest part is knowing what is the “essence” of a interface. This requires wisdom from encountering multiple objects and finding the essence intersection of them.

This paradox of power vs contraint which is also shown in sets intersection.

6 logic and Negated quantifier

6.1 Sets

  • Sets to logic notation
    • \(Bleh = \{ x \in U| Even(x) \land Hah(x)\}\)
    • \(\forall x \in U( x \in Bleh \leftrightarrow Even(x) \land Hah(x))\)

6.2 Kinds

A set containing different humanTypes(species) are of one humanKind

\[ humanTypes: humanKind \iff humanTypes \in humanKind \]

  • we literally have a physical pig for every species of pig?
    • for all PigsType : PigsKind ( Exist v TypeOfPig)
    • PigsKind holds the set of different PigsTypes. v is an actual pig selected from each species of Pigs aka each PigsType.
  • A set of genes is sufficient for certain mechanism?
    • (forall Genes : (RelevantGeneSet )( Exist v Gene)) -> Exist z Mechanism
    • Exist v Gene means the “Gene is expressed”
      • v is really evidence of expression. Exist v Gene, tells exist evidence of expression of Gene.
    • Academic biological sufficiency really means if some Gene is in RelevantGeneSet
  • Alternative formulation
  • Think of each gene as a space. The intersection of multiple gene spaces is required for functionality of a mechanism.
  • forall x (RelevantGeneSpace ), Exist z Mechanism

(forall bags in bagkind, there exist a ball in each bag) -> (some ball in the mechanism bag)
sufficency can have vacuous conditions.

x is sufficient for mechanism AND(x,y,z ) -> mechanism

7 Fixpoint

8 Geometric series

9 Plots and equations

9.1 Axis and vectors

We are so used to having each vector represent an observation and each axis aka column represents a different property aka measurement but we should know to reverse this mindset as well

Use Axis to represent samples (clearly limited to 2 or 3 objects/observations/samples aka 2d or 3d axis)
Each vector represents a different property of a sample.
e.g

  • Bob is x-axis, Alice is y-axis
    • Height is vector [5, 6]
    • Weight is vector [50, 70]
    • Looks is vector [2, 6]
  • A convex combination of vectors means we can build an overall profile based on these vectors. Of course this also means we can bias this combination towards Bob or Alice by putting a larger coefficient or weight on a certain vector.
    • Alice has better looks so we can give Height 0.1 , Weight 0.1, Looks 0.8 to bias it towards Alice.

10 CS bridge math