Skip to content

About

No description, website, or topics provided.

Resources

Stars

13 stars

Watchers

1 watching

Forks

Latest commit

 

History

35 Commits

Folders and files

Repository files navigation

A Universe for Proof-relevant Setoids in Coq

A new construction for a universe of setoids, only using Coq's indexed inductive types. The construction is agnostic regarding the nature of the setoid equality, which can be defined in Prop, Type or SProp.

Using our universe hierarchy, we can get a shallow embedding of an observational type theory in Coq. The precise properties that are supported by the embedded theory depend on the sort that has been chosen for the setoid equality:

Prop Type SProp Impredicative-Set
Pi-types, Sigma-types, W-types, Integers ✅ ✅ ✅ ✅
Universes ✅ ✅ ✅ ✅
Sort of propositions Impredicative Predicative Impredicative Impredicative
Quotient types ✅ ✅ ✅ ✅
Observational equality with typecasting ✅ ✅ ✅ ✅
UIP Propositional Propositional Definitional Propositional
Funext, Propext ✅ ✅ ✅ ✅
Unique choice ❌ ✅ ❌ ❌
Countable/Dependent choice ❌ ✅ ❌ ❌
N -> N indexed choice ❌ Needs meta-funext ❌ ❌
Large elimination of accessibility ✅ ✅ ❌ ✅
Eta expansion for functions Propositional Propositional Definitional Propositional
Substitutions commuting with binders Propositional Propositional Definitional Propositional

The files in impredicative_universe use equalities in Prop, the files in predicative_universe use equalities in Type, and the files in sprop_universe use equalities in SProp. Description of the files:

  • utils.v : Auxiliary definitions and lemmas
  • univ0.v : Definition of the lowest universe U0 and its induction principle
  • univ0_lemmas.v : Reflexivity, Symmetry, Transitivity and Typecasting for the equality on U0
  • univ1.v : Definition of the larger universe U1 and its induction principle
  • univ1_lemmas.v : Reflexivity, Symmetry, Transitivity and Typecasting for the equality on U1
  • model.v : Embedding of the observational type theory (somewhat sketchy because of the missing definitional equalities)
  • cwf.v : Careful embedding of the observational type theory (only for the SProp version)

To typecheck the development, go into one of the folders and run "make". The Coq proof has been tested to compile with Coq 8.16.1

About

No description, website, or topics provided.

Resources

Stars

13 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages