Lol, this is not the first time that I am mocked here :)
How does Stokes' theorem in a discrete setting just amount to associativity?
Manifolds are modeled by graphs, and calculus on manifolds becomes linear algebra using the matrices naturally associated to these graphs.
Consider a graph with n vertices and m edges.
The most important matrix is the oriented incidence matrix B, of size mxn, that has a single +1 and a single -1 on each row, indicating the vertices connected by the corresponding edge.
Scalar fields := functions defined over the vertices = vectors of R^n
Vector fields := functions defined over the edges = vectors of R^m
When you interpret matrices as linear operators:
B : R^n -> R^m is the gradient operator
-B' : R^m -> R^n is the divergence operator
-B'.B : R^n -> R^n is the laplacian
A subset of the vertices is given by a binary vector M \in R^n. The integral of a scalar field f over M is M'.fThe outwards boundary of a subset M is -B.M. The flux of a vector field F through this boundary is (-B.M)'.F
Stokes theorem is thus the trivial identity (-B.M)'.F = M'.(-B'.F)
(I use a dot for matrix products because the star breaks the formatting. You can also define the divergence without the minus sign, but I like my laplacians to be negative-definite, it feels weird otherwise.)