~ubuntu-branches/ubuntu/wily/coq-doc/wily

« back to all changes in this revision

Viewing changes to test-suite/ideal-features/Case3.v

  • Committer: Bazaar Package Importer
  • Author(s): Stéphane Glondu, Stéphane Glondu, Samuel Mimram
  • Date: 2010-01-07 22:50:39 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100107225039-n3cq82589u0qt0s2
Tags: 8.2pl1-1
[ Stéphane Glondu ]
* New upstream release (Closes: #563669)
  - remove patches
* Packaging overhaul:
  - use git, advertise it in Vcs-* fields of debian/control
  - use debhelper 7 and dh with override
  - use source format 3.0 (quilt)
* debian/control:
  - set Maintainer to d-o-m, set Uploaders to Sam and myself
  - add Homepage field
  - bump Standards-Version to 3.8.3
* Register PDF documentation into doc-base
* Add debian/watch
* Update debian/copyright

[ Samuel Mimram ]
* Change coq-doc's description to mention that it provides documentation in
  pdf format, not postscript, closes: #543545.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Inductive Le : nat -> nat -> Set :=
 
2
  | LeO : forall n : nat, Le 0 n
 
3
  | LeS : forall n m : nat, Le n m -> Le (S n) (S m).
 
4
 
 
5
Parameter discr_l : forall n : nat, S n <> 0.
 
6
 
 
7
Type
 
8
  (fun n : nat =>
 
9
   match n return (n = 0 \/ n <> 0) with
 
10
   | O => or_introl (0 <> 0) (refl_equal 0)
 
11
   | S O => or_intror (1 = 0) (discr_l 0)
 
12
   | S (S x) => or_intror (S (S x) = 0) (discr_l (S x))
 
13
   end).
 
14
 
 
15
Parameter iguales : forall (n m : nat) (h : Le n m), Prop.
 
16
 
 
17
Type
 
18
  match LeO 0 as h in (Le n m) return Prop with
 
19
  | LeO O => True
 
20
  | LeS (S x) (S y) H => iguales (S x) (S y) H
 
21
  | _ => False
 
22
  end.
 
23
 
 
24
Type
 
25
  match LeO 0 as h in (Le n m) return Prop with
 
26
  | LeO O => True
 
27
  | LeS (S x) O H => iguales (S x) 0 H
 
28
  | _ => False
 
29
  end.