Reading + AI

Blockchain Cohomology

Wyatt Meldman-Floch

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 1^{1} 2^{2}. 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 topology3^{3}. 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 system4^{4}. We adopt Nowak’s algebraic definition of an execution space in terms of the homology of protocol complexes 5^{5}. We define a protocol complex Sk:PkΔqS_{k}:P_{k}{\Delta^{q}} as the q-dimensional standard simplex

Δq={x∈R∣Σxj=1,xj≥∀j}\Delta^{q}=\{x\in\mathbb{R}|\Sigma x_{j}=1,x_{j}\geq\forall j\}
(1)

at morphism kk described by the following vertex set

Sk={vi,0…vi,q}S_{k}=\{v_{i,0}\dots v_{i,q}\}
(2)

where P⊂SP\subset S is the set of all admissible configurations and SS is the set of all possible configurations.

We define a consensus protocol P∗σ(S):{Sk,∂k}P^{\sigma}_{*}(S):\{S_{k},\partial_{k}\} as the singular homology of a simplicial chain complex, carried by a group morphism implementing distributed consensus. Let SkS_{k} be a simplex configuration at step kk and ∂k\partial_{k} be the differential of a distributed consensus morphism:

P∗σ(S):0←…Pσ(Sk−1)←∂k−1Pσ(Sk)←∂kPσ(Sk+1)…P^{\sigma}_{*}(S):0\leftarrow\dots P^{\sigma}(S_{k-1})\xleftarrow{\partial_{k-1}}P^{\sigma}(S_{k})\xleftarrow{\partial_{k}}P^{\sigma}(S_{k+1})\dots
(3)

where Pk=ker∂k/im∂k+1P_{k}=ker\partial_{k}/im\partial_{k+1} and is also an abelian group. Thus, P∗=(Pk) ∣k∈ZP_{*}=(P_{k})\ |k\in\mathbb{Z} is a graded abelian group which is referred to as the homology of a protocol complex SS. We abuse our notation of PP but rectify by noting that an admissible state kk is required for anther step k+1k+1, thus we define PP as the functor carrying our consensus operator defined below.

Define a consensus operator σ\sigma as the group morphism on the singular q-simplex σ:Δq→S\sigma:\Delta^{q}\rightarrow S

σk:Sk−1×Pk→Sk\sigma_{k}:S_{k-1}\times P_{k}\rightarrow S_{k}
(4)

which are continuous on discrete topologies6^{6} such as Δq\Delta^{q}. Define homology between configurations as a measure of divergence given by the differential

∂k(σ)=∑k=0q(−i)i−1(σ∘δqi)\partial_{k}(\sigma)=\sum^{q}_{k=0}(-i)^{i-1}(\sigma\circ\delta_{q}^{i})
(5)

for continuous functions δqi:Δq−1→Δq∣1≤i≤q+1\delta^{i}_{q}:\Delta^{q-1}\rightarrow\Delta^{q}|1\leq i\leq q+1 where

δqi(x1,…,xq)=(x1,…xi−1,0,xi,xi+1,…,xq−1,…,xq)\delta^{i}_{q}(x_{1},\dots,x_{q})=(x_{1},\dots x_{i-1},0,x_{i},x_{i+1},\dots,x_{q-1},\dots,x_{q})
(6)

As the graded abelian group of our protocol complex is the simplicial singular homology group and σ\sigma is our homology preserving map, it is trivial to note that homology holds ∀k∈Z\forall k\in\mathbb{Z}, i.e.

∂k∘∂k+1=0\partial_{k}\circ\partial_{k+1}=0
(7)

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 kk, we note that PkΔqP_{k}\Delta^{q} is k-acyclic7^{7}.

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) l:⋃kPπ→⋃kPπ+1l:\bigcup_{k}P_{\pi}\rightarrow\bigcup_{k}P_{\pi+1}.

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 σ\sigma categorically as the functoral carrier Σ∗\Sigma_{*} we can form a chain complex that adheres to the homology theory of homotopy types8^{8}

Simplicial complexes together with simplicial vertex maps form a category. Let us define a protocol topology TPΣ:T^{\Sigma}_{P}: Σ∗Pπ\Sigma_{*}P_{\pi} as the singular homology of a chain complex of protocol complexes carried by a homotopy preserving functor Σ∗\Sigma_{*}. The protocol topology is given by the following chain complex

TPΣ:0←Σ∗Pπ←∂ΣP0←∂…ΣPi ∣i≤π∈ZT^{\Sigma}_{P}:0\leftarrow\Sigma_{*}P_{\pi}\xleftarrow{\partial}\Sigma P_{0}\xleftarrow{\partial}\dots\Sigma P_{i}\ |i\leq\pi\in\mathbb{Z}
(8)

where Σπ:\Sigma_{\pi}: ker∂kπ/im∂k+1π→∂kπ+1/im∂k+1π+1ker\partial^{\pi}_{k}/im\partial^{\pi}_{k+1}\rightarrow\partial^{\pi+1}_{k}/im\partial^{\pi+1}_{k+1}

For protocol complex morphisms Σπ,Σπ+1\Sigma_{\pi},\Sigma_{\pi+1} chain homotopy from Σπ\Sigma_{\pi} to Σπ+1\Sigma_{\pi+1} is a homotopy preserving graded abelian group morphism l:Pπ→Pπ+1l:P_{\pi}\rightarrow P_{\pi+1} yielding a vanishing homology, i.e.

Σπ−Σπ+1=∂π∘l+l∘∂π+1=∂π∘∂π+1=0\begin{split}\Sigma_{\pi}-\Sigma_{\pi+1}=\partial^{\pi}\circ l+l\circ\partial^{\pi+1}\\ =\partial^{\pi}\circ\partial^{\pi+1}=0\\ \end{split}
(9)

Noting that these conditions are met by the definitions of an acyclic carrier 9^{9}, it follows that a protocol topology as defined above is π\pi-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 geometry10^{10}. 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 successor11^{11}. 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 ϵ\epsilon as the ’enrichment’ of any cochain A\mathbb{A}-complex of positive degree/grade, corresponding to the A\mathbb{A}-resolution of an abstract A\mathbb{A}-module

S∗:0→ϵ→S0→d0S1→d1…S^{*}:0\rightarrow\epsilon\rightarrow S^{0}\xrightarrow{d^{0}}S^{1}\xrightarrow{d^{1}}\dots
(10)

and homomorphism given by Cartan-Kahler-type of nilpotent differential operator d. We will make use of the fact that an A\mathbb{A}-module sheaf ϵ\epsilon 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 12^{12}, 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 fintoposets13^{13} as simplicial complexes, Mallios et al. showed that the Gelfand duality14^{14} implies that a manifold can be constructed out of the incidence Rota algebra of a simplex’s corresponding fintoposet 15^{15}. 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

Ω(P)=⨁i∈Z+Ωi=Ω0⊕Ω0⋯:=A⊕R\Omega(P)=\bigoplus_{i\in\mathbb{Z}_{+}}\Omega^{i}=\Omega^{0}\oplus\Omega^{0}\dots:=A\oplus R
(11)

where Ω(P)\Omega(P)s are Z+\mathbb{Z}_{+} graded linear spaces, AA is a commutative sub algebra of Ω\Omega and R:=⨁i≥1ΩiR:=\bigoplus_{i\geq 1}\Omega^{i} is a linear (ringed) subspace. It is trivial to notice that Ω(P)\Omega(P) 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 Hn(X,ϵ)H_{n}(X,\epsilon) of an A-module sheaf ϵ(X)\epsilon(X) over topological space XX, can be described by global sections ΓX(ϵ)≡Γ(X,ϵ)\Gamma_{X}(\epsilon)\equiv\Gamma(X,\epsilon)

Hn(X,ϵ):=Rn(Γ(C,ϵ):=Hn[Γ(C,S∗)]:=kerΓX(dn)/imΓX(dn−1)H_{n}(X,\epsilon):=R^{n}(\Gamma(C,\epsilon):=H^{n}[\Gamma(C,S^{*})]:=ker\Gamma_{X}(d^{n})/im\Gamma_{X}(d^{n-1})
(12)

where RnΓR^{n}\Gamma is the right derived functor of the global section functor Γx(.)≡Γ(X,.)\Gamma_{x}(.)\equiv\Gamma(X,.). Note that RnR^{n} is equivalent to the ithi^{th} linear ringed subspace above. These dual definitions of gamma correspond to out definitions of σ\sigma and Σ∗\Sigma_{*} with respect to our functoral vertex map ll in our definition of a protocol topology.

The sheaf cohomology of a topological space is the cohomology of any ΓX\Gamma_{X}-acyclic resolution of ϵ\epsilon 16^{16}. The corresponding abstract A\mathbb{A}-complex S∗S^{*} can be directly translated by the functor Γx\Gamma_{x} to the ’global section A\mathbb{A}-complex’ ΓX(S∗)\Gamma_{X}(S^{*})

ΓX(S∗):0→ ΓX(ϵ)→d0ΓX(S0)→d1…\Gamma_{X}(S^{*}):0\xrightarrow{~}\Gamma_{X}(\epsilon)\xrightarrow{d^{0}}\Gamma_{X}(S^{0})\xrightarrow{d^{1}}\dots
(13)

which is the abstract de Rham complex of a discrete manifold XX. The action of d is to effect transitions between the linear subspaces Ωi\Omega_{i} of Ω(P)\Omega(P) in (11), as follows: d: Ωi→Ωi+1\Omega_{i}\rightarrow\Omega_{i+1}.

The finitary de Rham theorem defines a finitary equivalent of the typical c∞c^{\infty} smooth manifold. Noting ΓmPm\Gamma^{P_{m}}_{m} is fine by construction, Mallios et al. show that finsheaf-cohomology differential tetrads

τ:=(Pm,ΩM,d,ΩdeRM)\tau:=(P_{m},\Omega_{M},d,\Omega^{M}_{deR})
(14)

is equivalent to the c∞c^{\infty}-smooth Cech-de Rham complex. In our definition of τ\tau, ΩM\Omega_{M} is the categorically dual finsheaf (finitary sheaf) of Sorkin’s fintoposets PmP_{m}, d is effectively an exterior product, and ΩdeRM\Omega^{M}_{deR} 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 topology17^{17}. 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 18^{18} we define the protocol manifold as

ΓΣϵ=⨁0≤i≤πΣ∗ϵi\Gamma^{\epsilon}_{\Sigma}=\bigoplus_{0\leq i\leq\pi}\Sigma_{*}\epsilon_{i}
(15)

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 π\pi.

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 π\pi isomorphism. We define in terms of Σ\Sigma and ϵ\epsilon, noting that our functor Σ\Sigma is a valid f-algebra and sheaf ϵ\epsilon a co-algebra.

Let us define a hylomorphism

ϵ←P×Σ:ΩT(ϵ,P)\epsilon\leftarrow P\times\Sigma:\Omega^{T}(\epsilon,P)
(16)

and metamorphism

ΩΓ(P,ϵ):ΓΣ×ϵ→P\Omega_{\Gamma}(P,\epsilon):\Gamma_{\Sigma}\times\epsilon\rightarrow P
(17)

we formally verify by the construction of the following geometric cw-complex

ΩΓT:0↔∂ΩΓ∗T∗(ϵ)↔∂ΩΓT(ϵ(P0))…ΩΓT(ϵ(Pπ))\Omega^{T}_{\Gamma}:0\xleftrightarrow{\partial}\Omega^{T^{*}}_{\Gamma^{*}}(\epsilon)\xleftrightarrow{\partial}\Omega^{T}_{\Gamma}(\epsilon(P_{0}))\dots\Omega^{T}_{\Gamma}(\epsilon(P_{\pi}))
(18)

that TT and Γ\Gamma form a poincare complex, clearly satisfying the poincare duality as ∂\partial vanishes in our construction of TT and ΓΣϵ\Gamma^{\epsilon}_{\Sigma}. The fundamental class of our corresponding space is ΩΓ∗T∗\Omega^{T^{*}}_{\Gamma^{*}} which carries the type signatures of our hylo and metamorphisms. Formally define ΩΓT\Omega^{T}_{\Gamma} 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.