I actually suspect there's a closer relation between integration and the existential quantifier.
From the perspective of category theory, summation is an instance of a coproduct, which is in turn closely related to existential quantification. For instance:
- Given a family of sets $(X_i \mid i \in I)$, their disjoint union $\sum_{i \in I} X_i$ satisfies the following universal property: functions $f : \sum_{i \in I} X_i \to Y$ correspond with $I$-indexed families of functions $f_i : X_i \to Y$. (More generally, replace 'sets' with 'objects of a category', 'functions' with 'morphisms', and 'disjoint union' with 'coproduct'.)
- Given a proposition $\varphi(x)$, where $x$ ranges over some set $I$, proofs of $[(\exists x \in I) \varphi(x)] \Rightarrow \psi$ correspond with proofs of $\varphi(i) \Rightarrow \psi$ for each $i \in I$.
[In fact, from the perspective of Martin-Löf dependent type theory, the notions of 'disjoint union of sets' and 'existentially quantified formula' are identified.]
Another perspective is that indexed disjoint unions and existential quantification are both instances of left adjoints to substitution functors of the appropriate kinds. I'll spare you the details now, but Sections 9.5 and 9.7 of Steve Awodey's textbook on category theory is a good starting point.
Now integration generalises summation and coends generalise coproducts, and these generalisations happen in similar ways (people smarter than myself have studied connections between integrals and coends).
So in conclusion, you're thinking along the right lines, but I think you'll find more parallels between integration and $\exists$ than integration and $\forall$.
Addendum: this blog post by Bartosz Milewski discusses the connection between coends and the existential quantifier as implemented in Haskell. It says:
Just like the end is related to a product, the coend is related to a coproduct, or a sum (in this respect, it resembles an integral, which is a limit of a sum). Rather than having projections, we have injections going from the diagonal elements of the profunctor down to the coend. If it weren’t for the cowedge conditions, we could say that the coend of the profunctor p
is either p a a
, or p b b
, or p c c
, and so on. Or we could say that there exists such an a
for which the coend is just the set p a a
. The universal quantifier that we used in the definition of the end turns into an existential quantifier for the coend.
This is why, in pseudo-Haskell, we would define the coend as:
exists a. p a a