Coding-Logic Correspondence: Turning Information and Communication Networks into Logical Formulae via Hypergraph Heyting Algebra

Cheuk Ting LiarXiv 2025 · DOI

Introduction

In classical information theory, Shannon's framework excels at modeling simple point-to-point communication. However, as networks grow in complexity, standard tools struggle to define operations like "knowing $X$ or $Y$" or the "implication" of one piece of information on another. This paper, authored by Cheuk Ting Li, introduces a "Coding-Logic Correspondence," establishing that designing optimal communication networks is fundamentally equivalent to simplifying formulas in intuitionistic logic.

The Correspondence Framework

The central thesis is that information does not follow Boolean logic (where the Law of Excluded Middle holds) but rather intuitionistic logic. In this view, a communication "code" is analogous to a mathematical "proof" of a logical requirement. The table below summarizes how various concepts across logic, type theory, and information theory align under this new correspondence.

Correspondence between logic, information theory, and coding tasks.

Modeling Information as Hyperconfusions

To formalize this, the author introduces hyperconfusions (confusion hypergraphs). Instead of partitions of a sample space, information is modeled as a collection of "confusable" sets of outcomes. If a set of outcomes is in the hyperconfusion, those outcomes can be mapped to the same value without losing the essential information required for a task.

The paper proves that these hyperconfusions form a Heyting algebra, the algebraic structure of intuitionistic logic. This allows for well-defined operations:

  • Conjunction ($\cap$): Decoding both sources.
  • Disjunction ($\cup$): Decoding one of two sources.
  • Implication ($\to$): Decoding with side information.

Case Study: The Butterfly Network

The power of this framework is best illustrated by the classic butterfly network. The entire communication requirement can be condensed into a single logical formula: $((X \cap M) \to Y) \cap ((Y \cap M) \to X)$. By solving for $M$ using the rules of Heyting algebra, the optimal XOR-based network coding scheme emerges naturally.

The butterfly network mapped to its logical formula and corresponding confusion hypergraphs.

Key Results and Theoretical Insights

Beyond the mapping, the paper introduces Hypergraph Entropy, generalizing Shannon entropy to these logical structures. The "size" or entropy of a logical formula directly corresponds to the minimum bitrate required to satisfy that requirement. The paper also provides a generalized Blahut-Arimoto algorithm to numerically compute the entropy of these complex logical requirements.

A critical bridge to practical implementation is the Unconfusing Lemma. It proves that abstract hyperconfusion solutions can be converted back into standard random variables with only a small, logarithmic cost overhead. Furthermore, the author identifies that "trivial" coding tasks (zero communication) are characterized by Medvedev logic, an intermediate logic between intuitionistic and classical systems.

Limitations and Future Work

While elegant, the framework currently faces challenges. The "Unconfusing Lemma" incurs a $O(\log H)$ penalty, and computing Heyting implications for large spaces is computationally expensive. Future research will focus on closing this cost gap and extending the framework to noisy interference channels where partial information leakage occurs.

Summary updated

BibTeX
@misc{li2025coding,
  author = {Cheuk Ting Li},
  title = {{Coding-Logic Correspondence: Turning Information and Communication Networks into Logical Formulae via Hypergraph Heyting Algebra}},
  year = {2025},
  eprint = {2512.21112},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.21112},
}
Figure