~ubuntu-branches/ubuntu/vivid/agda-stdlib/vivid

« back to all changes in this revision

Viewing changes to src/Data/Nat/Coprimality.agda

  • Committer: Package Import Robot
  • Author(s): Iain Lane
  • Date: 2011-11-29 17:00:35 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20111129170035-00v3pq4mmhoo5ulf
Tags: 0.6~darcs20111129t1640-1
* [ef445ab] Imported Upstream version 0.6~darcs20111129t1640
  + Darcs snapshot required for Agda 2.3.0 compatibility
* [f801f83] Update BDs and deps to require Agda 2.3.0
* [c52be90] Use 3.0 (quilt) for bz2 orig

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
------------------------------------------------------------------------
 
2
-- The Agda standard library
 
3
--
2
4
-- Coprimality
3
5
------------------------------------------------------------------------
4
6
 
65
67
-- Everything is coprime to 1.
66
68
 
67
69
1-coprimeTo : ∀ m → Coprime 1 m
68
 
1-coprimeTo m = 1∣1 ∘ proj₁
 
70
1-coprimeTo m = ∣1⇒≡1 ∘ proj₁
69
71
 
70
72
-- Nothing except for 1 is coprime to 0.
71
73