Bool-linear equivalences for concatenating and partitioning bit strings #
Bit strings form Bool-modules under coordinatewise exclusive or (BooleanRing Bool). This module
packages length congruence, binary concatenation (Fin.append / fstBits / sndBits), and
variable-length block slicing (finSigmaFinEquiv) as Bool-linear equivalences (≃ₗ[Bool]).
Definitions and simp interface equations only.
Main definitions #
Cslib.BitString.congrLinearEquiv:BitString n₁ ≃ₗ[Bool] BitString n₂fromn₁ = n₂.Cslib.BitString.appendLinearEquiv:(BitString a × BitString b) ≃ₗ[Bool] BitString (a + b)viaFin.appendand(fstBits, sndBits).Cslib.BitString.piBlocksLinearEquiv:BitString (∑ i, b i) ≃ₗ[Bool] (∀ i : Fin t, BitString (b i))viafinSigmaFinEquiv.
@[simp]
theorem Cslib.BitString.congrLinearEquiv_apply {n₁ n₂ : ℕ} (h : n₁ = n₂) (x : BitString n₁) (i : Fin n₂) :
@[simp]
@[simp]