Papers
Topics
Authors
Recent
Search
2000 character limit reached

Reynolds Paradox in System F Semantics

Updated 4 July 2026
  • Reynolds Paradox is a demonstration that impredicative universal quantification in System F yields no nontrivial set-theoretic model due to Cantor-style diagonal self-reference.
  • It is formalized in Coq using a Church-encoded preinitial algebra and Lawvere’s fixed-point theorem to reconstruct the contradiction within the impredicative Prop universe.
  • The paradox informs type-theoretic kernel design by illustrating that preserving extensionality requires stratified universes or weakened impredicativity to avoid self-referential collapses.

Reynolds paradox is the diagonal obstruction showing that System F, understood with impredicative universal quantification interpreted set-theoretically by intersection, has no non-trivial set-theoretic model. In the standard semantic aspiration, one assigns to each type a set, interprets function types as ordinary function sets, and interprets X.A\forall X.\,A by ranging over all subsets of a universe of sets. Reynolds’s result is that this combination of impredicativity, functoriality, and extensionality collapses through a Cantor-style self-reference. In the mechanised presentation in Reynolds.v from the coq-paradoxes library, the contradiction is reconstructed inside impredicative Prop by means of the [PHI](https://www.emergentmind.com/topics/preference-hijacking-phi) construction, a Church-encoded preinitial algebra, and Lawvere’s fixed-point theorem, yielding a proof of False from exactly the hypotheses that Rocq’s kernel is designed to reject (Alonso, 26 May 2026).

1. Semantic content of the paradox

System F, the second-order polymorphic λ\lambda-calculus, extends the simply-typed λ\lambda-calculus by impredicative universal quantification over types. Its type grammar is

A,B  ::=  XABX.A.A,B \;::=\; X \mid A\to B \mid \forall X.\,A.

A set-theoretic model assigns to each closed type AA a set A\llbracket A\rrbracket and to each term t:At:A an element of A\llbracket A\rrbracket, with the clauses

AB=AB,X.A=SUA[X:=S].\llbracket A\to B\rrbracket = \llbracket A\rrbracket \to \llbracket B\rrbracket, \qquad \llbracket \forall X.\,A\rrbracket = \bigcap_{S\subseteq U}\llbracket A\rrbracket_{[X:=S]}.

Here UU is a universe of sets, and impredicativity means that in forming λ\lambda0 one quantifies over all subsets λ\lambda1, including those that themselves involve λ\lambda2-types.

The paradox arises because these semantic requirements force more than a naive interpretation of polymorphism. The function-space clause is ordinary set-theoretic semantics. The universal-quantifier clause is impredicative by construction. The semantic account also requires type-substitution to be functorial: interpreting a type-level function λ\lambda3 should give a set-theoretic map on each interpretation λ\lambda4. Reynolds’s theorem, as stated in the later exposition, is that there is no non-trivial set-theoretic model of System F that validates the impredicative intersection clause; equivalently, System F has no model in the usual category of sets that interprets λ\lambda5 by intersection (Coquand, 2023).

The key intuition is diagonal. If polymorphism is interpreted by unrestricted intersection over a universe of sets, then the interpretation recreates a Cantor-style self-reference. The mechanised exposition sharpens this intuition into the claim that one cannot have a set Heyt into which all propositions inject in a way that respects extensionality (Alonso, 26 May 2026).

2. The impredicative PHI construction

In Reynolds.v, the argument is conducted in Coq’s impredicative Prop universe. One fixes a carrier Heyt : Prop together with a purported injection t:At:A0 This hypothesis packages the extensionality condition needed for the diagonal collapse: equality in Heyt must reflect logical equivalence of propositions.

The central endofunctor analogue is the double-power construction t:At:A1 The exposition renders the idealised set-theoretic notation as

λ\lambda6

From this one builds the Church-encoded preinitial algebra t:At:A2 An element λ\lambda7 is a polymorphic fold: for every algebra structure λ\lambda8, it produces an element of λ\lambda9. Because Prop is impredicative, A0 can itself be defined in Prop. However, the construction is only preinitial. Its universal property holds up to provable equality rather than definitional equality (Alonso, 26 May 2026).

This distinction is structurally important. The paradox does not begin from a strong initial algebra already granted by the ambient theory. Instead, it extracts from impredicativity a weak enough algebraic object to support diagonalisation, and then repairs the gap between preinitiality and strict inverse laws by quotienting with a partial-equivalence relation in the next stage.

3. Lawvere diagonalisation and the contradiction

The categorical core is Lawvere’s fixed-point theorem: in a cartesian-closed setting, a surjection λ\lambda0 yields a fixed point for every endomorphism λ\lambda1. In the simple set-theoretic form used in the exposition,

λ\lambda2

In the mechanisation, the statement is specialised to λ\lambda3 and λ\lambda4, using a particular surjection khi : A0 → (A0 → Heyt) supplied by the Reynolds construction (Alonso, 26 May 2026).

To obtain that surjection, Reynolds.v defines fold and unfold maps for the Church-encoded algebra: t:At:A3 These are the algebra and coalgebra structures

λ\lambda5

Because A0 is only preinitial, the mechanisation quotients by a partial-equivalence relation E0 so that cons and match become strict inverses modulo E0. This yields the bona fide isomorphism

λ\lambda6

The crucial map is then taken to be t:At:A4 and is shown surjective onto the reflexive elements of the relevant setoid of subsets of λ\lambda7.

Lawvere’s theorem is then applied to the endomorphism t:At:A5 to obtain a fixed point λ\lambda8 with λ\lambda9. The final step is elementary logic combined with the injectivity hypothesis: one shows that there is no A,B  ::=  XABX.A.A,B \;::=\; X \mid A\to B \mid \forall X.\,A.0 such that A,B  ::=  XABX.A.A,B \;::=\; X \mid A\to B \mid \forall X.\,A.1, so the fixed point is impossible. Coq therefore closes the theorem t:At:A6 The mathematical content is Reynolds’s diagonal or Cantor argument recast in Prop (Alonso, 26 May 2026).

4. Consequences for impredicativity and kernel design

The mechanised result is formulated as a no-model theorem for impredicative polymorphism. Any attempt to interpret the impredicative A,B  ::=  XABX.A.A,B \;::=\; X \mid A\to B \mid \forall X.\,A.2-quantifier of System F in a genuine set universe, together with an extensionality or injectivity requirement, leads to diagonal collapse and contradiction. In the formulation given in the exposition, one must give up at least one of the following: stratification of universes, impredicativity built into the function-type, or extensionality/injectivity of the interpretation map (Alonso, 26 May 2026).

Rocq’s kernel resolves the situation in three ways. First, universes are stratified so that one cannot form a type of “all types.” Second, Prop is impredicative, but Set is not impredicative by default. Third, the kernel refuses to admit an injective map I : Prop → Heyt by universe-constraint failures. In this sense, Reynolds.v functions as a parametrized proof of False, parametrized by the very hypotheses that the kernel refuses to discharge.

Within the broader coq-paradoxes package, Reynolds paradox is one of four formalised paradoxes that “draw the boundary of the Calculus of Inductive Constructions from the outside.” The package as a whole is presented as a negative specification of what Rocq’s kernel had to be designed to refuse, and the four examples together 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).

5. Relation to Hurkens and Coquand’s variation

Later work presents Reynolds paradox together with two type-theoretic refinements: Hurkens’ paradox and Coquand’s variation. The comparative structure is explicit.

Construction Ambient setting Key obstruction
Reynolds Set-theoretic semantics of System F No model interpreting A,B  ::=  XABX.A.A,B \;::=\; X \mid A\to B \mid \forall X.\,A.3 by intersection
Hurkens Pure type system A,B  ::=  XABX.A.A,B \;::=\; X \mid A\to B \mid \forall X.\,A.4 Weak A,B  ::=  XABX.A.A,B \;::=\; X \mid A\to B \mid \forall X.\,A.5-algebra yields A,B  ::=  XABX.A.A,B \;::=\; X \mid A\to B \mid \forall X.\,A.6
Coquand variation Minimal HOL and A,B  ::=  XABX.A.A,B \;::=\; X \mid A\to B \mid \forall X.\,A.7 A single judgmental weak-algebra law yields A,B  ::=  XABX.A.A,B \;::=\; X \mid A\to B \mid \forall X.\,A.8

Hurkens internalises the diagonal in a pure type system with two universes A,B  ::=  XABX.A.A,B \;::=\; X \mid A\to B \mid \forall X.\,A.9 and AA0 and an impredicative low universe. The relevant functor is

AA1

and a weak AA2-algebra consists of a type AA3 with maps

AA4

satisfying the judgmental equation

AA5

From this, Hurkens derives a closed term of type AA6.

Coquand’s variation sharpens the diagnosis. In minimal HOL, one sets

AA7

assumes maps AA8 and AA9, and proves two impossibility results. The simplified theorem states that there is no type A\llbracket A\rrbracket0 for which A\llbracket A\rrbracket1 is a judgmental retract of A\llbracket A\rrbracket2. The refined theorem states that there is no A\llbracket A\rrbracket3 with maps A\llbracket A\rrbracket4 and A\llbracket A\rrbracket5 satisfying

A\llbracket A\rrbracket6

The same refined paradox is then embedded into A\llbracket A\rrbracket7 by taking

A\llbracket A\rrbracket8

and defining intro and match so that the exact definitional law above holds (Coquand, 2023).

The explicit comparative claim is that Reynolds’s original impossibility was couched in set-theoretic semantics, Hurkens internalised the diagonal in a pure type system, and Coquand’s variation isolates a single judgmental weak-algebra equation as the culprit. The variation therefore refines the semantic no-go theorem into a more sharply targeted syntactic obstruction (Coquand, 2023).

6. Misconceptions, scope, and technical interpretation

A common overstatement is that the paradox requires a strong initial algebra, full extensionality, or the machinery of partial-equivalence relations from the outset. The later variation states instead that one does not need full extensionality, nor partial-equivalence relations, nor a strong initial algebra—just a weak initial-algebra law at the judgmental level (Coquand, 2023). In the mechanised Reynolds proof itself, the quotient by the partial-equivalence relation E0 appears only because the Church encoding supplies preinitiality rather than definitional initiality.

Another common misunderstanding is to read the paradox as a curiosity about one proof assistant encoding. The coq-paradoxes article explicitly argues against that reading. The package is presented not as a collection of curiosities but as a negative specification of what Rocq’s kernel had to be designed to refuse, and as evidence that the refusal is being made for the right reasons (Alonso, 26 May 2026). This suggests that the paradox is best understood as a structural boundary result for impredicative type theory and its semantics.

A further technical point concerns what exactly fails in set-theoretic semantics. The contradiction does not say that all semantics of polymorphism are impossible. The statement given is narrower and more precise: there is no non-trivial set-theoretic model of System F that validates the impredicative clause

A\llbracket A\rrbracket9

In the Coq mechanisation, the corresponding forbidden ingredient is an injective interpretation of propositions into a carrier Heyt compatible with extensionality. A plausible implication is that any consistent semantics must block the diagonal by constraining universes, weakening impredicativity, or refusing the relevant injectivity or functoriality principles.

The paradox therefore occupies a precise place in the landscape of impredicative reasoning. Reynolds’s original theorem rules out the naive set-theoretic dream for System F; the mechanisation in Reynolds.v reconstructs that theorem through a fixed-point argument over an impredicative Church encoding; and later variations show that the decisive obstruction can be isolated in even weaker, more syntactic forms.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (2)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Reynolds Paradox.