Skip to content

Base Types

This section is part of the Ledger.Conway.BaseTypes module of the formal ledger specification, in which we define some of the most basic types used throughout the ledger.

{-# OPTIONS --safe #-}

module Ledger.Conway.BaseTypes where

open import Agda.Builtin.FromNat
open import Prelude using (; _×_)
open import Data.Rational using (; _≤_)
open import Data.Refinement using (Refinement-syntax)
private

Some basic types used in many places in the ledger

  Coin   = 
  Slot   = 
  Epoch  = 

Refinement types used in some places in the ledger

  UnitInterval = [ x    (0  x) × (x  1) ]