Diaconescu Paradox in Choice and Logic
- Diaconescu Paradox is a result showing that a specifically formulated axiom of choice over equivalence relations entails the law of excluded middle in a type-theoretic setting.
- The construction employs a representative-selector function over a two-element set, distinguishing cases where a proposition holds or not, thereby enforcing classical logic.
- This paradox highlights the boundary where full extensional choice principles overwhelm intuitionistic logic, offering critical insights into proof-assistant kernel design.
The Diaconescu paradox is the result that an appropriate axiom of choice entails the law of excluded middle. In the mechanized presentation in the coq-paradoxes library, the theorem is stated in a typed form as
$\text{Tchoice} \;\Rightarrow\; \forall P:\Prop,\; P \vee \neg P,$
and is formalized in diaconescu.v by deriving EM : P \/ ~P for an arbitrary proposition P (Alonso, 26 May 2026). In categorical terms, the same phenomenon is expressed by the principle that every epimorphism splits, which forces Boolean internal logic. The paradox is therefore not a contradiction in the ordinary sense, but a sharp incompatibility result: sufficiently strong choice collapses intuitionistic reasoning at Prop to classical logic.
1. Formal statement and logical status
In the mechanization, the Diaconescu argument is not phrased as unrestricted set-theoretic choice. It uses a typed choice principle over equivalence relations, called Tchoice, and proves that this principle yields excluded middle at Prop. Concretely, the file formalizes: $\text{Tchoice} \;\Rightarrow\; \forall P:\Prop,\; P \,\vee\, \neg P.$
The final theorem is presented as EM : P \/ ~P under the hypothesis Tchoice (Alonso, 26 May 2026).
This formulation is narrower than full set-theoretic AC but still strong enough to recover classical propositional reasoning. The proof is carried out entirely inside the intensional setting of the Calculus of Inductive Constructions, with A quantified in Set, relations valued in Prop, and the existential witness packaged by ex, which is itself a Prop-inductive. Because the conclusion also lives in Prop, the development does not require large elimination from Prop into Set. That restriction is one of the reasons the proof fits the kernel discipline described for Rocq.
The broader foundational role of the theorem is explicit in constructive mathematics. Bishop-style constructive mathematics rejects the law of excluded middle and also rejects full AC precisely because full AC implies LEM by Diaconescu’s theorem. A standard formulation given in recent discussion is: for LEM, together with the observation that full AC suffices to derive it (Nezhad, 2024).
2. Typed choice over equivalence classes
The mechanized proof begins from a definition of equivalence relation on a set A:
meaning reflexivity, symmetry, and transitivity of a relation $R : A \to A \to \Prop$. The typed choice principle is then defined as
$\forall (A:\mathrm{Set}) (R:A\to A\to \Prop),\; \text{EquivRel}(A,R)\Rightarrow \exists f:A\to A,\; \big[\forall x,\;R(x,f(x))\big]\land\big[\forall x\,y,\;R(x,y)\Rightarrow f(x)=f(y)\big].$
The output is not merely a witness-selection principle in the ordinary relational sense. It yields a representative-selector satisfying two conditions. First, each is -equivalent to . Second, $\text{Tchoice} \;\Rightarrow\; \forall P:\Prop,\; P \,\vee\, \neg P.$0 is constant on $\text{Tchoice} \;\Rightarrow\; \forall P:\Prop,\; P \,\vee\, \neg P.$1-equivalence classes: $\text{Tchoice} \;\Rightarrow\; \forall P:\Prop,\; P \,\vee\, \neg P.$2 The second clause is an explicit extensionality condition and is crucial to the paradox.
The file reads this as functional choice for equivalence classes rather than general set-theoretic choice. Intuitively, if $\text{Tchoice} \;\Rightarrow\; \forall P:\Prop,\; P \,\vee\, \neg P.$3 is the quotient map, then Tchoice yields a section of the quotient in the form of a canonical representative function. In the Coq development, the data obtained is $\text{Tchoice} \;\Rightarrow\; \forall P:\Prop,\; P \,\vee\, \neg P.$4, where $\text{Tchoice} \;\Rightarrow\; \forall P:\Prop,\; P \,\vee\, \neg P.$5 picks a representative for each class.
A common misconception is to identify Diaconescu’s theorem with every form of constructive choice. The mechanized development separates this typed, extensional quotient-choice principle from weaker or computationally structured forms of choice. The same source explicitly distinguishes compatible forms such as choice for types with decidable equality in Set, or extracted selectors carrying computational evidence, from the stronger schema used here, which is strong enough to force excluded middle (Alonso, 26 May 2026).
3. The boolean construction and the derivation of $\text{Tchoice} \;\Rightarrow\; \forall P:\Prop,\; P \,\vee\, \neg P.$6
For an arbitrary proposition $\text{Tchoice} \;\Rightarrow\; \forall P:\Prop,\; P \,\vee\, \neg P.$7, the proof specializes to the two-point set $\text{Tchoice} \;\Rightarrow\; \forall P:\Prop,\; P \,\vee\, \neg P.$8 with elements true and false. It defines a proposition-dependent relation: $\text{Tchoice} \;\Rightarrow\; \forall P:\Prop,\; P \,\vee\, \neg P.$9
0
1
This relation has the intended behavior. If 2 holds, then rel2 makes every pair of booleans related, so the quotient has one equivalence class. If 3 does not hold, then the only available constructor is reflexivity, so the quotient has two singleton classes. The file proves rel_sym, rel_trans, and rel_equiv : EquivRel bool rel, and then applies Tchoice to 4.
Choice returns 5 together with:
- 6,
- 7.
The proof then uses decidable equality on bool, proved in Prop, to split into two cases.
If 8, then from the representative conditions one gets
9
By rewriting with the equality 0, and then using symmetry and transitivity, one derives 1. Since true and false are distinct, this cannot come from rrefl; it must come from rel2, which requires 2. Hence 3.
If 4, assume for contradiction that 5 holds. Then rel2 yields 6, and the extensionality clause gives 7, contradicting the case hypothesis. Hence 8.
Therefore,
9
The file also includes a second presentation, TTDiaconescu2, using an existential formulation of choice rather than the functional selector version; it derives the same excluded middle (Alonso, 26 May 2026).
4. Classical and topos-theoretic forms
The mechanized proof mirrors the classical Diaconescu trick. In the set-theoretic or topos-theoretic presentation, one starts with a two-element set $R : A \to A \to \Prop$0 and defines
$R : A \to A \to \Prop$1
There is an evident surjection
$R : A \to A \to \Prop$2
Intuitionistically, this map is still surjective: if $R : A \to A \to \Prop$3, both $R : A \to A \to \Prop$4 and $R : A \to A \to \Prop$5 are all of $R : A \to A \to \Prop$6; if $R : A \to A \to \Prop$7, then $R : A \to A \to \Prop$8 and $R : A \to A \to \Prop$9. If one assumes choice in the form “every epimorphism splits,” then $\forall (A:\mathrm{Set}) (R:A\to A\to \Prop),\; \text{EquivRel}(A,R)\Rightarrow \exists f:A\to A,\; \big[\forall x,\;R(x,f(x))\big]\land\big[\forall x\,y,\;R(x,y)\Rightarrow f(x)=f(y)\big].$0 has a section $\forall (A:\mathrm{Set}) (R:A\to A\to \Prop),\; \text{EquivRel}(A,R)\Rightarrow \exists f:A\to A,\; \big[\forall x,\;R(x,f(x))\big]\land\big[\forall x\,y,\;R(x,y)\Rightarrow f(x)=f(y)\big].$1, and an analysis of $\forall (A:\mathrm{Set}) (R:A\to A\to \Prop),\; \text{EquivRel}(A,R)\Rightarrow \exists f:A\to A,\; \big[\forall x,\;R(x,f(x))\big]\land\big[\forall x\,y,\;R(x,y)\Rightarrow f(x)=f(y)\big].$2 and $\forall (A:\mathrm{Set}) (R:A\to A\to \Prop),\; \text{EquivRel}(A,R)\Rightarrow \exists f:A\to A,\; \big[\forall x,\;R(x,f(x))\big]\land\big[\forall x\,y,\;R(x,y)\Rightarrow f(x)=f(y)\big].$3 forces $\forall (A:\mathrm{Set}) (R:A\to A\to \Prop),\; \text{EquivRel}(A,R)\Rightarrow \exists f:A\to A,\; \big[\forall x,\;R(x,f(x))\big]\land\big[\forall x\,y,\;R(x,y)\Rightarrow f(x)=f(y)\big].$4 or $\forall (A:\mathrm{Set}) (R:A\to A\to \Prop),\; \text{EquivRel}(A,R)\Rightarrow \exists f:A\to A,\; \big[\forall x,\;R(x,f(x))\big]\land\big[\forall x\,y,\;R(x,y)\Rightarrow f(x)=f(y)\big].$5.
The categorical formulation sharpened in the same discussion is: $\forall (A:\mathrm{Set}) (R:A\to A\to \Prop),\; \text{EquivRel}(A,R)\Rightarrow \exists f:A\to A,\; \big[\forall x,\;R(x,f(x))\big]\land\big[\forall x\,y,\;R(x,y)\Rightarrow f(x)=f(y)\big].$6 Here $\forall (A:\mathrm{Set}) (R:A\to A\to \Prop),\; \text{EquivRel}(A,R)\Rightarrow \exists f:A\to A,\; \big[\forall x,\;R(x,f(x))\big]\land\big[\forall x\,y,\;R(x,y)\Rightarrow f(x)=f(y)\big].$7 is the subobject classifier of an elementary topos. Thus the paradox does not depend on classical metatheory; it arises internally from the interaction of choice and intuitionistic logic.
The Coq proof replaces the explicit coproduct $\forall (A:\mathrm{Set}) (R:A\to A\to \Prop),\; \text{EquivRel}(A,R)\Rightarrow
\exists f:A\to A,\;
\big[\forall x,\;R(x,f(x))\big]\land\big[\forall x\,y,\;R(x,y)\Rightarrow f(x)=f(y)\big].$8 and split epi with a quotient of bool by the proposition-dependent equivalence relation rel. The selector $\forall (A:\mathrm{Set}) (R:A\to A\to \Prop),\; \text{EquivRel}(A,R)\Rightarrow
\exists f:A\to A,\;
\big[\forall x,\;R(x,f(x))\big]\land\big[\forall x\,y,\;R(x,y)\Rightarrow f(x)=f(y)\big].$9 plays the role of a split quotient map, and the case distinction on 0 and 1 is the type-theoretic analogue of analyzing 2 and 3. This suggests that the paradox is best understood as a quotient-selection argument rather than merely a peculiarity of set theory.
5. Significance for type theory and proof-assistant kernels
Within the coq-paradoxes library, the Diaconescu construction is one of four mechanized paradoxes used to delineate the boundary of the Calculus of Inductive Constructions from the outside. The package collects derivations of False in systems close to CIC and shows where Rocq’s kernel is designed to refuse compilation. Taken together, the four paradoxes establish three boundary conditions on the kernel: the placement of impredicativity, the restriction of large elimination, and the discipline of universe constraints (Alonso, 26 May 2026).
For the Diaconescu case specifically, several technical features matter. The proof keeps both the choice schema and the excluded-middle conclusion in Prop. It does not require large elimination from Prop into Set, and decidable equality on bool is used only to branch inside Prop. At the same time, the schema is extensional in a strong sense, because it explicitly asserts
4
That clause is what makes the contradiction in the 5 branch go through.
The mechanization therefore clarifies that not every use of impredicativity is problematic. The quantified proposition 6 appears harmlessly inside the relation rel, but the kernel must still block combinations that would transport classical consequences into computationally relevant fragments. Read alongside Hurkens_Set.v, the point is sharper: excluded middle in Prop is consistent in Coq, whereas excluded middle or comparably strong classical principles at Set can interact with impredicativity to produce inconsistency. A plausible implication is that the Diaconescu paradox serves as a design test for how far choice may be internalized without collapsing constructive stratification.
6. Weaker choice principles, contemporary disputes, and scope
A second recent discussion places Diaconescu’s theorem in the context of Bishop-style constructive mathematics. There, full AC is rejected because it implies LEM, but weaker principles such as the Countable Axiom of Choice 7 and the Axiom of Dependent Choice (DC) are described as “widely used.” The same source states constructively that
8
and provides the standard proof via chains of finite sequences (Nezhad, 2024).
That discussion also draws an important distinction. It does not claim that 9 or DC imply LEM. Instead, it argues that 0 and DC, combined with constructive complex analysis and algebraic results, lead to a paradox. The proposed contradiction uses an analytic function on a simply connected domain, a theorem asserting that algebraic zeros on a compact are finite under certain hypotheses, and a concrete construction that allegedly violates that finiteness conclusion. The stated comparison with Diaconescu is structural rather than direct: Diaconescu derives a decision procedure for arbitrary 1 from strong choice, while the later argument derives contradiction indirectly from weaker choice plus analytic and algebraic machinery.
The same discussion records a standard cautionary fact: 2 and DC do not, in general, imply LEM; there are well-known realizability and sheaf models of constructive set or type theories in which these weaker choice principles hold while excluded middle fails. This suggests that Diaconescu’s paradox has a specific scope. It targets full AC or sufficiently strong extensional quotient-choice principles, not arbitrary constructive choice.
Accordingly, one of the central interpretive lessons is negative but precise. Diaconescu’s theorem explains why full choice is incompatible with intuitionistic logic. It does not by itself rule out all weaker forms of choice, and it does not erase the distinction between Prop-level classicality and stronger principles with Set-level computational consequences. In that sense, the paradox remains a boundary theorem: it identifies exactly where a choice principle becomes strong enough to force Boolean reasoning.