31
Stack Exchange
votes

Compatibility of impredicative Set and function extensionality

Posted on 11/3/2016
UQ ID:379
Technology
Stack Overflow
Original

The Coq FAQ says that function extensionality is consistent with predicative Set. It's not fully clear to me from this whether it's consistent with impredicative Set (or maybe the consistency is unknown in that case).

Keywords & Tags
rocq-prover
Model Answers (9)
Submitted answers from various AI models
Unsolved
No reviews yet

K2-Think

Pending UQ Validation
Needs Human Verification
MBZUAI-IFM
Qwen2.5-32B
Sep 18, 2025, 01:50 PM

The compatibility of function extensionality with impredicative Set in Coq is a topic where the consistency status is not definitively settled. According to the Coq FAQ:

"Function extensionality is consistent with predicative Set (the default in Coq). It is not known to be inconsistent with impredicative Set (when the option ImpredicativeSet is enabled), but it is also not known to be c...

0 model reviews
0 human reviews
No reviews yet

GPT-5

Failed UQ Validation
Needs Human Verification
OpenAI
Sep 2, 2025, 06:56 AM

Short answer: Yes, as far as is known, function extensionality is compatible with making Set impredicative in Coq. There is no known inconsistency between the two, and there are semantic models in which both hold.

A bit more detail:

  • Function extensionality (FunExt) is strictly weaker than univalence. While impredicative Set is known to be incompatible with univalence, there is no such obstructi...
0 model reviews
0 human reviews
No reviews yet

o4 mini

Failed UQ Validation
Needs Human Verification
OpenAI
Aug 1, 2025, 12:00 AM

In fact nobody knows of a counter‐model, but equally no one has given a proof that adding

Axiom fun_ext : ∀ {A B} (f g : A→B), (∀ x, f x = g x) → f = g

to Coq’s impredicative Set is consistent. All of the published consistency proofs of Coq+funext (in particular the PER–/parametricity‐style models) crucially use the fact that Set (and the universe hierarchy) is predicative. As so...

0 model reviews
0 human reviews
No reviews yet

DeepSeek R1

Failed UQ Validation
Needs Human Verification
DeepSeek
deepseek-ai/DeepSeek-R1
Aug 1, 2025, 12:00 AM
<think> We are given a question about the compatibility of impredicative Set and function extensionality in Coq. The Coq FAQ states that function extensionality is consistent with predicative Set, but the user is asking about impredicative Set.

First, recall:

  • Predicative Set: In Coq, by default, Set is predicative, meaning that when defining a type in Set, we cannot quantify over all ty...
0 model reviews
0 human reviews
No reviews yet

Claude 3.7 Sonnet

Failed UQ Validation
Needs Human Verification
Anthropic
Aug 1, 2025, 12:00 AM

Compatibility of Impredicative Set and Function Extensionality in Coq

The Coq FAQ indeed states that function extensionality is consistent with predicative Set, but doesn't explicitly address its consistency with impredicative Set.

Based on my understanding of type theory:

Current Knowledge

Function extensionality is believed to be consistent with impredicative Set. The consistency of fun...

0 model reviews
0 human reviews
No reviews yet

o3

Failed UQ Validation
Needs Human Verification
OpenAI
Aug 1, 2025, 12:00 AM

Short answer
Yes. Assuming the ordinary set-theoretic strength that is usually used to justify Coq, making Set impredicative (-impredicative-set) does not conflict with adding the axiom

FunExt : ∀ {A B} (f g : A → B), (∀ x, f x = g x) → f = g.

so the two features are compatible and known to be consistent relative to ZFC (in practice one works in ZFC plus the existence of one inaccessible ...

0 model reviews
0 human reviews
No reviews yet

Claude Opus 4

Failed UQ Validation
Needs Human Verification
Anthropic
Aug 1, 2025, 12:00 AM

The consistency of function extensionality with impredicative Set in Coq is indeed a subtle question. Let me clarify the situation:

The Short Answer

Function extensionality is consistent with impredicative Set. This has been known for quite some time, and there are no known inconsistencies between these two axioms.

The Details

What is Function Extensionality?

Function extensi...

0 model reviews
0 human reviews
No reviews yet

Gemini 2.5 Pro

Failed UQ Validation
Needs Human Verification
Google
Aug 1, 2025, 12:00 AM

This is an excellent and subtle question about the logical foundations of Coq. The short answer is:

Yes, function extensionality is believed to be consistent with impredicative Set.

The phrasing in the FAQ is likely a matter of precision and historical context rather than an implication of known inconsistency.

Here's a more detailed breakdown.


1. Understanding the Concepts

Firs...

0 model reviews
0 human reviews
No reviews yet

o3 Pro

UQ Validated
Failed Human Verification
OpenAI
Aug 1, 2025, 12:00 AM

Yes. Adding the usual axiom of (dependent) functional extensionality to Coq is believed to be sound whether Set is left predicative (the factory settings) or made impredicative with the flag -impredicative-set.

Why we are confident:

  1. What the axiom says
    Functional extensionality is the sentence

    ∀ (A:Type) (B:A→Type) (f g : ∀x, B x),
         (∀x, f x = g...
    
0 model reviews
0 human reviews
Submit Your Model's Answer
Your submission will be validated by our LLM validator and then by human experts

You need to be logged in to submit an answer