Blockchain Cohomology
arXiv:1805.07047v1 · This workspace stays on this version. Check arXiv for newer versions
Some source details need review 1 to check
Original formulas, table values and figures are preserved. The web version was not compared with the PDF; use the original PDF to check details.
Reading view checked: 127 math expressions, 0 rendering failures; 0 of 0 images available.
- Source comparison was unavailable. Original content is preserved without AI corrections.
0 of 0 figure, table and graphic images captured. Open original PDF
Abstract
We follow existing distributed systems frameworks employing methods from algebraic topology to formally define primitives of blockchain technology. We define the notion of cross chain liquidity, sharding and probability spaces between and within blockchain protocols. We incorporate recent advancements in synthetic homology to show that this topological framework can be implemented within a type system. We use recursion schemes to define kernels admitting smooth manifolds across protocol complexes, leading to the formal definition of a Poincare protocol.
Recent advancements in distributed computing adopt methods from algebraic topology for formally defining protocols . We use these methods to model blockchain protocols as well as an internet of blockchains. We first define an execution space as a topological space equipped with a discrete product topology. Defining a distributed process in terms of topology only requires us to care about the structure of the set of possible schedules of a distributed system. We adopt Nowak’s algebraic definition of an execution space in terms of the homology of protocol complexes . We define a protocol complex as the q-dimensional standard simplex
at morphism described by the following vertex set
where is the set of all admissible configurations and is the set of all possible configurations.
We define a consensus protocol as the singular homology of a simplicial chain complex, carried by a group morphism implementing distributed consensus. Let be a simplex configuration at step and be the differential of a distributed consensus morphism:
where and is also an abelian group. Thus, is a graded abelian group which is referred to as the homology of a protocol complex . We abuse our notation of but rectify by noting that an admissible state is required for anther step , thus we define as the functor carrying our consensus operator defined below.
Define a consensus operator as the group morphism on the singular q-simplex
which are continuous on discrete topologies such as . Define homology between configurations as a measure of divergence given by the differential
for continuous functions where
As the graded abelian group of our protocol complex is the simplicial singular homology group and is our homology preserving map, it is trivial to note that homology holds , i.e.
As a corollary of the fact that the geometric realization of a simplicial complex is dually a topological space, due to the vanishing cohomology up to , we note that is k-acyclic.
It’s possible that we could ’mix’ protocol complexes defined as above. We employ our notion of cohomology to define a ’liquidity’ or the ability to exchange configuration states between protocol complexes. We leave applications of this as an exercise for the reader.
We define liquidity as the existence of a functoral vertex map between singular homologies (defined equivalently here as the disjoint subset of protocol complexes) .
Making use of homotopy type theory allows us to focus on structure by treating topological characteristics called homotopy groups as primitives. If we redefine our k-acyclic distributed consensus protocol categorically as the functoral carrier we can form a chain complex that adheres to the homology theory of homotopy types
Simplicial complexes together with simplicial vertex maps form a category. Let us define a protocol topology as the singular homology of a chain complex of protocol complexes carried by a homotopy preserving functor . The protocol topology is given by the following chain complex
where
For protocol complex morphisms chain homotopy from to is a homotopy preserving graded abelian group morphism yielding a vanishing homology, i.e.
Noting that these conditions are met by the definitions of an acyclic carrier , it follows that a protocol topology as defined above is -acyclic.
Designing distributed architectures with topology gives us a lot of power, but in order to use it we need to design our topologies such that they are mathematically tractable for solving a specific problem. In principle, Abstract Differential Geomoetry (ADT) admits any topological space as a base space on which to ’solder sheaves’ for carrying out differential geometry. We introduce methods from Abstract Differential Geometry, namely finitary cech-deRham cohomology in order to define an orientable manifold from our definition of protocol topology.
First we need to introduce the dual of homology as described above, namely cohomology. In describing our protocol complex it only makes sense to have an arrow moving ’forward in time’ as consensus itself is acyclic, with each iteration pointing ’backwards in time’ to its previous state. In this sense our evolution was the compounding dimensionality of the space of all configurations, as implied by the discrete product topology of a protocol complex. In defining an orientable manifold, we need to move ’backwards’ through our space, i.e. from higher to lower dimension. This is shown as the differential on an arrow going right instead of left.
By constructing the protocol topology within a monoidal category, the singular cohomology of a protocol topology is equivalent to an A-module of Z+-graded discrete differential forms. One can, in a natural way, assign a decision tree to any set of executions that captures the decision of choosing a successor. A blockchain can be defined as an extension of an execution tree, where each block is formulated as a sheaf with a well defined tensor operation. We define a sheaf as the ’enrichment’ of any cochain -complex of positive degree/grade, corresponding to the -resolution of an abstract -module
and homomorphism given by Cartan-Kahler-type of nilpotent differential operator d. We will make use of the fact that an -module sheaf on any arbitrary topological space (shown above with an arbitrary simplicial cochain-complex) admits an injective resolution per (10).
Blockchains are naturally equipped with a sheaf, that of the block. This would allow us to ’unpack’ data within a block recursively under the product operation. Every abelian unital ring admits a derivation map , thus if we reformulate our definition of a consensus protocol above as a sheaf with semigroup operations carried by right derived functors with monadic bind, we can form a manifold.
By noting the equivalence of Sorkin’s fintoposets as simplicial complexes, Mallios et al. showed that the Gelfand duality implies that a manifold can be constructed out of the incidence Rota algebra of a simplex’s corresponding fintoposet . For a fintoposet (the topological equivalent of a directed acyclyc graph), it’s incidence algebra can be broken down into a direct sum of vector subspaces
where s are graded linear spaces, is a commutative sub algebra of and is a linear (ringed) subspace. It is trivial to notice that is an A-module of a Z+-graded discrete differential form.
A manifold can be constructed by organizing the incidence algebras of our protocol complexes into algebra sheaves. The n-th (singular) cohomolgy group of an A-module sheaf over topological space , can be described by global sections
where is the right derived functor of the global section functor . Note that is equivalent to the linear ringed subspace above. These dual definitions of gamma correspond to out definitions of and with respect to our functoral vertex map in our definition of a protocol topology.
The sheaf cohomology of a topological space is the cohomology of any -acyclic resolution of . The corresponding abstract -complex can be directly translated by the functor to the ’global section -complex’
which is the abstract de Rham complex of a discrete manifold . The action of d is to effect transitions between the linear subspaces of in (11), as follows: d: .
The finitary de Rham theorem defines a finitary equivalent of the typical smooth manifold. Noting is fine by construction, Mallios et al. show that finsheaf-cohomology differential tetrads
is equivalent to the -smooth Cech-de Rham complex. In our definition of , is the categorically dual finsheaf (finitary sheaf) of Sorkin’s fintoposets , d is effectively an exterior product, and is the abstract de Rahm complex.
We’ve shown how to create a manifold from the cohomology of a discrete topological space. We can define a synthetic manifold out of a protocol topology. Define a cochain-complex within the cohomology theory of homotopy types under the cup product.
Making note of the existence of a tensor product in the cohomology theory of homotopy types by E. Cavallo we define the protocol manifold as
Up until now we have not explicitly defined functoral group homomorphisms that can construct the complexes described above. We show that the dual nature of the hylomorphic and metamorphic recursion schemes maintain vanishing differentials and thus poincare duality for all .
If we define a catamorphism and anamorphism with the same f-algebra and f-coalgebra, we can show by construction that the resulting co/chain-complexes are valid definitions of protocol topologies/manifolds and that poincarre duality of the protocol manifold is maintained up to isomorphism. We define in terms of and , noting that our functor is a valid f-algebra and sheaf a co-algebra.
Let us define a hylomorphism
and metamorphism
we formally verify by the construction of the following geometric cw-complex
that and form a poincare complex, clearly satisfying the poincare duality as vanishes in our construction of and . The fundamental class of our corresponding space is which carries the type signatures of our hylo and metamorphisms. Formally define as a Poincare protocol.
It’s worth noting that the isomorphism between simplectic and poset topology shown by Sorkin’s fintoposets implies that when applied to blockchains, the existence of cycles in a cohomological or homological cw-complex imples the existence of forks. In future work we will show that finite autamata with monoidal state transitions (semiautomation) admit a Poincare protocol with enrichment isomorphic to the semigroup operation of state transitions. Extending this, we’ll make use of a Poincare protocol’s manifold to define monoidal state transitions that prevent divergences, and transitively forks.