Documentation

CordialMiners.Ref.FinalizedAnchors

def CordialMiners.leaderList {Hash : Type u_1} (leaderOf : Hash) :
List Hash

The cumulative leader list: the first k canonical leaders, in wave order.

Equations
Instances For
    theorem CordialMiners.leaderList_prefix_of_le {Hash : Type u_1} (leaderOf : Hash) {m n : } :
    m nleaderList leaderOf m <+: leaderList leaderOf n

    The cumulative leader list is prefix-monotone in its length: more finalized waves give a longer list that extends the shorter one, never reordering it.

    def CordialMiners.finalizedAnchors {P : Type u_2} {Wave : Type u_3} {Slot : Type u_4} {Hash : Type u_5} (finalCount : Blocklace P Wave Slot Hash) (leaderOf : Hash) :
    Blocklace P Wave Slot HashList Hash

    The finalized-anchor sequence: the first finalCount L canonical leaders, where finalCount L is the number of consecutively finalized waves in L.

    Equations
    Instances For
      theorem CordialMiners.finalizedAnchors_prefixMonotone {P : Type u_2} {Wave : Type u_3} {Slot : Type u_4} {Hash : Type u_5} (finalCount : Blocklace P Wave Slot Hash) (leaderOf : Hash) (hcount : ∀ {L₁ L₂ : Blocklace P Wave Slot Hash}, L₁ L₂finalCount L₁ finalCount L₂) :

      Leader safety derived: if the finalized-wave count is monotone in the blocklace (finality permanence plus wave-ordered finalization), the anchor sequence is prefix-monotone. This reduces the leader-safety hypothesis to one scalar fact.