misc
{-# OPTIONS --cubical #-} module agda.subtype where open import Agda.Primitive open import Cubical.Foundations.Prelude
record Subtype {β β'} {A : Type β} (P : A β Type β') : Type (β β β') where field a : A prop : P a
Example
open import Cubical.Data.Nat open import Cubical.Data.Nat.Order m : Subtype (Ξ» (x : β) β 1 β€ x) m = record { a = 10; prop = suc-β€-suc zero-β€ }