We introduce the SHEDAG (Somewhere Honest Entropic sources over Directed Acyclic Graphs) source model, a general model for multi-block randomness sources with causal correlations. A SHEDAG source is defined over a directed acyclic graph (DAG) whose nodes output -bit blocks. Blocks output by honest nodes are independent (by default uniformly random, more generally having high min-entropy), while blocks output by corrupted nodes are arbitrary functions of their causal views (all predecessors in ). We tightly characterize the conditions under which randomness extraction from SHEDAG sources is possible.
We show that perfect extraction from SHEDAG sources with corruptions is possible if and only if contains an "unrelated set" (an antichain under reachability) of size at least . Conversely, if every unrelated set has size at most , we show that no function can output a perfectly uniform bit. We also provide a polynomial-time algorithm to find a maximum unrelated set, thus efficiently identifying the largest corruption threshold allowing perfect extraction.
We identify a quantity that we call "resilience" of a DAG , denoted , that characterizes the possibility of randomness extraction with negligible error (in the block length). We show that negligible-error extraction is impossible whenever , and, to complement this, for every we construct explicit extractors with polynomial output length and negligible error.
Our results generalize prior online source models studied by (Aggarwal, Obremski, Ribeiro, Siniscalchi, Visconti, Eurocrypt 2020) and (Chattopadhyay, Gurumukhani, Ringach, FOCS 2024), which correspond to the special case of a SHEDAG source whose DAG is a path.