1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
* SPDX-License-Identifier: MIT
* Copyright (c) 2023 - 2026. The DeepCausality Authors and Contributors. All Rights Reserved.
*/
use crate::;
/// The `Promonad` trait models the "fusion" or "interaction" of two contexts to produce a third.
///
/// # Category Theory
/// This is related to **Monoidal Functors** and **Day Convolution**. It defines a mapping from the
/// tensor product of two functors to a third functor:
/// $$ F(A) \otimes G(B) \to H(A \otimes B) $$
///
/// In our Arity-3 definition $P<A, B, C>$, it acts as a "Pre-Arrow" or a specialized profunctor
/// mapping $(A, B) \to C$.
///
/// # Use Cases
/// * **Tensor Contraction**: Merging a Vector $u$ and a Dual Vector $v^*$ to produce a Scalar.
/// * **Quantum Entanglement**: Combining Qubit A and Qubit B into an Entangled Pair C.
/// * **Force Calculation**: Combining Current $J$ and Magnetic Field $B$ to produce Force $F$.