Wires #
References #
- [Ghica, Kaye, and Sprunger, A Complete Theory of Sequential Digital Circuits][Ghica2025]
A bundle of I wires, each carrying a value of type V.
Equations
- Circuit.Wires V I = Vector V I
Instances For
@[instance_reducible]
Equations
- Circuit.instPreorderWires = { le := fun (a b : Circuit.Wires V I) => ∀ (i : Fin I), Vector.get a i ≤ Vector.get b i, le_refl := ⋯, le_trans := ⋯, lt_iff_le_not_ge := ⋯ }
theorem
Circuit.Wires.ext
{V : Type u_1}
{n : ℕ}
{a b : Wires V n}
:
(∀ (i : Fin n), Vector.get a i = Vector.get b i) → a = b
@[simp]
The lemmas above are stated for Wires. Vector.cast, Vector.take, Vector.drop and
Vector.append all report their results at type Vector, and simp matches argument types up to
reducible unfolding only, so the same facts are restated below for Vector-typed arguments.