~ubuntu-branches/ubuntu/wily/agda/wily-proposed

« back to all changes in this revision

Viewing changes to test/succeed/TrustMe-with-doubly-indexed-equality.agda

  • Committer: Package Import Robot
  • Author(s): Iain Lane
  • Date: 2014-08-05 06:38:12 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20140805063812-io8e77niomivhd49
Tags: 2.4.0.2-1
* [6e140ac] Imported Upstream version 2.4.0.2
* [2049fc8] Update Build-Depends to match control
* [93dc4d4] Install the new primitives
* [e48f40f] Fix typo dev→doc

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
{-# OPTIONS --universe-polymorphism #-}
2
 
 
3
 
module TrustMe-with-doubly-indexed-equality where
4
 
 
5
 
open import Common.Level
6
 
 
7
 
infix 4 _≡_
8
 
 
9
 
data _≡_ {a} {A : Set a} : A → A → Set a where
10
 
  refl : ∀ {x} → x ≡ x
11
 
 
12
 
{-# BUILTIN EQUALITY _≡_  #-}
13
 
{-# BUILTIN REFL     refl #-}
14
 
 
15
 
primitive
16
 
  primTrustMe : ∀ {a} {A : Set a} {x y : A} → x ≡ y
17
 
 
18
 
postulate
19
 
  A : Set
20
 
  x : A
21
 
 
22
 
eq : x ≡ x
23
 
eq = primTrustMe
24
 
 
25
 
sym : ∀ {a} {A : Set a} {x y : A} → x ≡ y → y ≡ x
26
 
sym refl = refl
27
 
 
28
 
evaluates-to-refl : sym (sym eq) ≡ eq
29
 
evaluates-to-refl = refl