Exact recovery of task labels under both bit errors and erasures
ProvedEmulationTaskReadout.mixed_errors_task_decodercoding-theoryidentifiabilitywhole-brain-emulation
Each underlying state has a binary record of length and a task label. The decoder sees a mask of at most erasures and a received word with at most discrepancies outside that mask. A single decoder can return the right label for every compatible state and observation if and only if any two differently labelled states have record distance strictly greater than . The decoder may abstain off the set of feasible observations.
Preamble
import Mathlib.InformationTheory.Hamming
Formal statement
namespace EmulationTaskReadout
theorem mixed_errors_task_decoder {X L : Type*} (n e s : Nat)
(record : X → Fin n → Bool) (label : X → L) :
(∃ decode : Finset (Fin n) → (Fin n → Bool) → Option L,
∀ (x : X) (mask : Finset (Fin n)) (y : Fin n → Bool), mask.card ≤ s →
((Finset.univ \ mask).filter (fun i => record x i ≠ y i)).card ≤ e →
decode mask y = some (label x)) ↔
(∀ x z : X, label x ≠ label z → 2 * e + s < hammingDist (record x) (record z)) := by sorry
end EmulationTaskReadoutSource
Task-labelled errors-and-erasures exercise based on the metric viewpoint of R. W. Hamming, Error Detecting and Error Correcting Codes (1950), Part II, pp. 154–156, https://doi.org/10.1002/j.1538-7305.1950.tb00463.x . The task labels and known masks are part of this exercise.