One-hot encodings of dependent functions #
The one-hot encoding of a function g : ∀ d, E d is the family of bits indexed by the pairs
⟨d, e⟩, with bit ⟨d, e⟩ set exactly when g d = e (Pi.oneHot). It is injective
(Pi.oneHot_injective), and its range consists of the families with exactly one set bit over
each point (Pi.exists_oneHot_eq_iff).