-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Put ∃ in its own module Haskell.Extra.Refinement
- Loading branch information
1 parent
90a1dc8
commit fd2ca48
Showing
2 changed files
with
16 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
module Haskell.Extra.Refinement where | ||
|
||
open import Haskell.Prelude | ||
open import Agda.Primitive | ||
|
||
private variable | ||
ℓ ℓ′ : Level | ||
|
||
record ∃ (@0 a : Set ℓ) (@0 P : a → Set ℓ′) : Set (ℓ ⊔ ℓ′) where | ||
constructor _⟨_⟩ | ||
field | ||
value : a | ||
@0 proof : P value | ||
open ∃ public | ||
{-# COMPILE AGDA2HS ∃ unboxed #-} |