Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
freem
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Openai/693343d7-a38c-8012-a67c-11cbed4c0fd9
(section)
Add languages
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==== Lemma 1. Define ==== <syntaxhighlight>Aff^{(2)}(A,C) := β«^{BβAgt} Aff(A,B) β Aff(B,C). </syntaxhighlight> Then Aff^{(2)} : Agt^op β Agt β V is a V-profunctor (i.e. natural in both variables). Proof. Composition via coend yields a V-functor in each variable since the integrand Aff(A,B) β Aff(B,C) is V-natural in A (contravariantly) and C (covariantly), and coend is a colimit in V that preserves these naturalities. Concretely: * For any f : A' β A in Agt, naturality in the first argument arises from the map </code>`<code> Aff(A,B) β Aff(A',B) (given by precomposition) </code>`<code> and since (β) β Aff(B,C) is a V-functor and coends are colimits, we get an induced map </code>`<code> β«^B Aff(A,B) β Aff(B,C) β β«^B Aff(A',B) β Aff(B,C). <syntaxhighlight>- Similarly for postcomposition (maps on C). Hence Aff^{(2)} is a V-profunctor. β‘ ==== We will use the standard Fubini / Tonelli style identity for coends (valid in complete cocomplete V such as a quantale): ==== Lemma 2 (Fubini for coends). For V complete cocomplete and for triples of variables, </syntaxhighlight> β«^{b} β«^{c} X(b,c) β β«^{b,c} X(b,c) β β«^{c} β«^{b} X(b,c) <syntaxhighlight> and more generally iterated coends can be rearranged/flattened. Sketch proof / justification. Coends are colimits indexed by small categories; iterated colimits over product categories commute when the target category V is cocomplete and tensor β preserves colimits in each variable (true for quantales). Thus the coend over product category B Γ C equals iterated coends in either order. This is standard; see enriched category texts (Kelly) for full statement. β‘ ==== Theorem 3 (Associativity). For Aff as above, composition is associative up to canonical V-isomorphism; i.e., for any agents A, D: ==== </syntaxhighlight> (Aff β (Aff β Aff))(A,D) β ((Aff β Aff) β Aff)(A,D) <syntaxhighlight> and both are isomorphic to the triple coend </syntaxhighlight> β«^{B,C} Aff(A,B) β Aff(B,C) β Aff(C,D). <syntaxhighlight> Proof. Compute the left side: </syntaxhighlight> Aff β (Aff β Aff) evaluated at (A,D) = β«^{X} Aff(A,X) β (Aff β Aff)(X,D) = β«^{X} Aff(A,X) β ( β«^{Y} Aff(X,Y) β Aff(Y,D) ). <syntaxhighlight> By Fubini (Lemma 2) and monoidality of β distributing over coends (quantale property), we can exchange/flatten coends: </syntaxhighlight> β β«^{X,Y} Aff(A,X) β Aff(X,Y) β Aff(Y,D). <syntaxhighlight> Similarly the right side ((Aff β Aff) β Aff)(A,D) reduces to the same coend: </syntaxhighlight> ((Aff β Aff) β Aff)(A,D) = β«^{Y} (Aff β Aff)(A,Y) β Aff(Y,D) = β«^{Y} ( β«^{X} Aff(A,X) β Aff(X,Y) ) β Aff(Y,D) β β«^{X,Y} Aff(A,X) β Aff(X,Y) β Aff(Y,D). <syntaxhighlight> Therefore the two parenthesizations are canonically isomorphic via the natural associativity isomorphisms of coends and of β, and the associator is coherent because it arises from universal properties. This proves associativity up to canonical isomorphism. β‘ ==== We need to specify units. In enriched profunctor bicategory, units are given by representable profunctors (Yoneda). For Agt (viewed as V-category with homs Agt(A,B)), the identity profunctor Id : Agt^op β Agt β V is ==== </syntaxhighlight> Id(A,B) := Agt(A,B) β V <syntaxhighlight> (If Agt is ordinary and we want a Kronecker style identity for affinity composition, we can alternatively use a Ξ΄ profunctor Ξ΄(A,B) = 1 iff A=B, else bottom; both are valid choices depending on modeling.) Theorem 4 (Left and right unit). For any V-profunctor Ξ¦ : Agt βΈ Agt, </syntaxhighlight> Id β Ξ¦ β Ξ¦ β Ξ¦ β Id <syntaxhighlight> canonically. Proof (sketch). Use definition: </syntaxhighlight> (Id β Ξ¦)(A,C) = β«^{B} Id(A,B) β Ξ¦(B,C) = β«^{B} Agt(A,B) β Ξ¦(B,C). <syntaxhighlight> By enriched Yoneda lemma (or coend calculus), the coend collapses and yields Ξ¦(A,C) (intuitively, integrating Agt(A,B) against B reproduces evaluation at A). Concretely, the universal property of Yoneda provides a canonical iso: </syntaxhighlight> β«^{B} Agt(A,B) β Ξ¦(B,C) β Ξ¦(A,C). <syntaxhighlight> Similarly on the right. This is the standard unit law for enriched profunctors. β‘ (If you use the Kronecker Ξ΄ identity profunctor, the argument is simpler: coend with Ξ΄ picks out the appropriate summand.) ==== Given Aff as a base affinity profunctor, define Aff^{(n)} := Aff β Aff β ... β Aff (n times). Then by repeated application of Theorem 3 and the Fubini identity: ==== </syntaxhighlight> Aff^{(n)}(A,Z) β β«^{B_1,...,B_{n-1}} Aff(A,B_1) β Aff(B_1,B_2) β ... β Aff(B_{n-1},Z). <syntaxhighlight> This gives the natural notion of n-step affinity aggregated across intermediate agents. ==== If V = [0,1] with β = Γ and coend interpreted as sup of products (or an appropriate integral), then composition yields the intuitive inequality: ==== Proposition 5. For all A,C, </syntaxhighlight> Aff^{(2)}(A,C) β€ sup_{B} ( Aff(A,B) β Aff(B,C) ). <syntaxhighlight> and in many semantics where coend collapses to β¨ of β, we get equality: </syntaxhighlight> Aff^{(2)}(A,C) = sup_{B} ( Aff(A,B) β Aff(B,C) ). <syntaxhighlight> Interpretation/proof sketch. In quantale coends often compute as joins (β¨) of β terms, hence the composite is the supremum over intermediate paths of their product weights β i.e., path score equals best intermediate path. This matches the intuitive "max-over-intermediates" transitive affinity. ==== The construction Ξ¦,Ξ¨ β¦ Ξ¨ β Ξ¦ is functorial at the level of V-profunctors and V-natural transformations: given ΞΈ : Ξ¦ β Ξ¦' and Ο : Ξ¨ β Ξ¨', there is an induced Ο β¦ ΞΈ : Ξ¨ β Ξ¦ β Ξ¨' β Ξ¦' obtained by composing the integrand maps and using coend universality. This yields the bicategory structure of V-profunctors. ==== ==== - The quantale V choice determines the algebra of composition: - If V uses β = Γ and coend = sup, composition takes Aff^{(2)}(A,C) = sup_B Aff(A,B)Β·Aff(B,C) β βbest intermediary pathβ model. - If V uses β = min and coend = inf, composition becomes min over joins, etc. Choose according to whether affinity aggregates via bottleneck or by best path or by sum. ==== * If you prefer additive path accumulation (sum of contributions), use V = [0,β] with β = + and β¨ = sup or integrals; composition then sums over intermediate contributions (coend becomes sum/integral). * Unit profunctor choice affects whether composition preserves original affinity exactly (representable yields Yoneda identity) or uses Kronecker delta identity (discrete identity). Use representable for category-theoretic purity. ==== Let V = ([0,1], β€) with β = Γ, coends computed as sup (β¨) over intermediate agents. Then: ==== </syntaxhighlight> Aff^{(2)}(A,C) = sup_{B β Agt} ( Aff(A,B) Γ Aff(B,C) ). <syntaxhighlight> Associativity then says: </syntaxhighlight> sup_{B,C} Aff(A,B)Β·Aff(B,C)Β·Aff(C,D) is independent of parenthesization, <syntaxhighlight> i.e., Aff^{(3)}(A,D) = sup_{paths Aβ...βD} product(weights). This matches the standard best-path multiplicative model (probability of two-step successful transmission is max over intermediates of product of step probabilities). ==== - Affinity Aff : Agt^op Γ Agt β V is exactly a V-profunctor. ==== * Composition of affinities is given by the enriched coend </syntaxhighlight> (Aff β Aff)(A,C) = β«^{B} Aff(A,B) β Aff(B,C), </code>`` which encodes n-step transitive affinity as iterated coends. * Under the standard quantale assumptions on V (completeness, monoidality distributing over joins), coends satisfy Fubini rules and composition is associative (up to canonical iso) and unital (units = representables / Yoneda), giving the bicategory of V-profunctors. * Concrete formulas (supΓ, sum, min etc.) arise by choosing the quantale (and coend semantics) appropriate for your modeling needs in Kogi/Nandi: e.g., supΓ gives best-path multiplicative affinity; sum gives additive contributions. If youβd like I can: * produce a formalization sketch of these proofs in Coq/Lean (using enriched category libraries) for V being a quantale like ([0,1],Γ,β¨); or * instantiate the abstract formulas into a runnable algebra (Python/OCaml) that computes Aff^{(n)} via paths / coend approximations over a finite agent graph; or * extend the proofs to show contractivity / fixed-point results for affinity dynamics (e.g., when W_{t+1} = F(W_t) has a unique fixed point under given quantale norms). Which of those would you like next?
Summary:
Please note that all contributions to freem are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 (see
Freem:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)