github.com/aakash4dev/cometbft@v0.38.2/spec/light-client/verification/typedefs.tla (about)

     1  --------------------------- MODULE typedefs ----------------------------
     2  (*
     3   // a node id, just a string
     4   @typeAlias: node = Str;
     5  
     6   // a block header
     7   @typeAlias: header = {
     8     height: Int,
     9     time: Int,
    10     lastCommit: Set($node),
    11     VS: Set($node),
    12     NextVS: Set($node)
    13   };
    14  
    15   // the blockchain is a function of heights to blocks
    16   @typeAlias: blockchain = Int -> $header;
    17  
    18   // a light-client block header
    19   @typeAlias: lightHeader = {
    20     header: $header,
    21     Commits: Set($node)
    22   };
    23   *)
    24  typedefs == TRUE
    25  ========================================================================