open import Paths
def isProp (A : Type) ⇒  (a b : A) → a = b
def isSet (A : Type) : Type (a b : A) → isProp (a = b)

def HPropΣ (A : Type) ** isProp A
def HSetΣ (A : Type) ** isSet A

open import Arith::Nat::Core
def isHLvl Nat Type : Type
| 0, AisContr A
| 1, AisProp A
| suc n, A (a b : A) → isHLvl n (a = b)