I was wondering what the name is for a mathematical structure equipped with two operations, composition ($\circ$ or juxtaposition) and application ($\cdot [ \cdot ]$) where the two operations satisfy the following laws. It's a bit like a category, but also has application and constrains application to distribute over composition. It's possible that it's just a category equipped with additional structure and doesn't have a specific name.
composition is associative when defined✱.
$$ a \circ bc \sqsubseteq ab \circ c $$ $$ a \circ bc \sqsupseteq ab \circ c $$
application distributes over compoisiton when defined
$$ f[ab] \sqsubseteq f[a] \circ f[b] $$ $$ f[ab] \sqsupseteq f[a] \circ f[b] $$
For motivation, consider a monoid $A$ with operation $+$ . Consider a homomorphism $f$ from $A$ to $B$. Further suppose that $B \subseteq A$ and is therefore a submonoid of $A$ . So we have
$$ f : A \to B $$
where
$$ f[a+b] = f[a] \circ_{\small{B}} f[b] = f[a] + f[b]$$
I was trying to figure out how to create a larger structure with some new term based on $f$ as an element, i.e. $A^* \stackrel{\small{df}}{=} A \cup \{ \; (\cdots f \cdots ) \; \} $ , but there didn't seem to be a general way to get a new element based on $f$ that was "on the same plane" as the elements of $A$ .
However, the endomorphisms on $A$ themselves form a monoid, $\text{End}(A)$ .
$A \cup \text{End}(A)$ with application given by endomorphism application (where defined) and composition given by $\circ_{\small{A}}$ or $\circ_{\small\text{End}(A)}$ seems like a reasonable object in its own right. At most one of the composition operators is defined for any pair of items in $A \cup \text{End}(A)$ . Since $\text{End}(A)$ is a monoid, we can iterate the construction $A \cup \text{End}(A) \cup \text{End}(\text{End}(A)) \cdots $ and get back an "application category".
There's another unrelated example I can think of on $\mathbb{N}$ where $x \circ y \stackrel{\small{df}}{=} x \times y$ and $x[y] \stackrel{\small{df}}{=} y^x $ . I think it also works with $+$ and $\times$ .
Another example of something satisfying this structure is the class of sets $U$ with $\bot$ and $\top$ . In this setting, $x \circ y \stackrel{\small{df}}{=} x \cup y \text{ or } x \lor y $ and $x[y] \stackrel{\small{df}}{=} y \in x$ . The truth values $\{ \top, \bot \}$ are not sets and are not elements of any set.
Anyway, what do you call this kind of thing?
✱ $\sqsubseteq$ is true if the elements are equal, or the left hand side is undefined. It is false if the elements are unequal or the right hand is defined while the left is undefined.