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

« back to all changes in this revision

Viewing changes to test/succeed/Issue337.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
 
module Issue337 where
2
 
 
3
 
data ℕ : Set where
4
 
  zero : ℕ
5
 
  suc  : (n : ℕ) → ℕ
6
 
 
7
 
{-# BUILTIN NATURAL ℕ    #-}
8
 
{-# BUILTIN ZERO    zero #-}
9
 
{-# BUILTIN SUC     suc  #-}
10
 
 
11
 
data _≡_ {A : Set}(x : A) : A → Set where
12
 
  refl : x ≡ x
13
 
 
14
 
postulate
15
 
  _≤_ : ℕ → ℕ → Set
16
 
  p₁  : 0 ≤ 1
17
 
  p₂  : 0 ≤ 1
18
 
 
19
 
data SList (bound : ℕ) : Set where
20
 
  []    : SList bound
21
 
  scons : (head : ℕ) →
22
 
          .(head ≤ bound) →
23
 
          (tail : SList head) →
24
 
          SList bound
25
 
 
26
 
l₁ : SList 1
27
 
l₁ = scons 0 p₁ []
28
 
 
29
 
l₂ : SList 1
30
 
l₂ = scons 0 p₂ []
31
 
 
32
 
l₁≡l₂ : l₁ ≡ l₂
33
 
l₁≡l₂ with Set
34
 
... | _ = refl