Package hardware-def: Definition of the hardware model

Information

namehardware-def
version1.21
descriptionDefinition of the hardware model
authorJoe Leslie-Hurd <joe@gilith.com>
licenseMIT
provenanceHOL Light theory extracted on 2014-11-01
checksum57a720b860eec336c8df6a5b95175283225194bc
requiresbase
stream
showData.Bool
Data.List
Data.Stream
Hardware
Number.Natural

Files

Defined Type Operators

Defined Constants

Theorems

Bus.nil = bus []

ground = wire (replicate )

power = wire (replicate )

x. bus (Bus.wires x) = x

w. wire (signals w) = w

l. Bus.wires (bus l) = l

s. signals (wire s) = s

x. Bus.width x = length (Bus.wires x)

w. signal w = nth (signals w)

w. Bus.single w = bus (w :: [])

n. Bus.ground n = bus (replicate ground n)

n. Bus.power n = bus (replicate power n)

x y. Bus.append x y = bus (Bus.wires x @ Bus.wires y)

x t. Bus.signal x t = map (λw. signal w t) (Bus.wires x)

x k n y.
    Bus.sub x k n y
    k + n Bus.width x y = bus (take n (drop k (Bus.wires x)))

External Type Operators

External Constants

Assumptions

() = λp. p ((select) p)

t. (x. t) t

() = λp. p = λx.

t. ( t) t

() = λp q. p q p

() = λp q. (λf. f p q) = λf. f