IntensionalSetoids

github.com/amp12/IntensionalSetoids

Accompanying paper

We show that a certain notion of displayed setoid (family of setoids) in intensional type theory can be used to give a semantics for extensional type theory with universes (ETU). Agda with options --safe and --without-K serves as a machine-checkable formalization of intentional type theory augmented with a universe closed under inductive-recursive definitions (IRU). The syntax of ETU is defined in IRU in a traditional extrinsic form, using an Agda library WSLN for well-scoped locally nameless representation of its expressions. Giving the semantics of ETU in terms of displayed setoids is complicated by the very limited means of expression afforded by IRU. As a corollary we obtain a proof within IRU of the consistency of ETU.

Browsable code

Checked with Agda version 2.8.0 using options

--safe --without-K --no-postfix-projections