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

« back to all changes in this revision

Viewing changes to test-suite/success/CanonicalStructure.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
(* Bug #1172 *)
 
2
 
 
3
Structure foo : Type := Foo {
 
4
   A : Set; Aopt := option A; unopt : Aopt -> A
 
5
}.
 
6
 
 
7
Canonical Structure unopt_nat := @Foo nat (fun _ => O).
 
8
 
 
9
(* Granted wish #1187 *)
 
10
 
 
11
Record Silly (X : Set) : Set := mkSilly { x : X }.
 
12
Definition anotherMk := mkSilly.
 
13
Definition struct := anotherMk nat 3.
 
14
Canonical Structure struct.
 
15
 
 
16
(* Intertwinning canonical structures and delta-expansion *)
 
17
(* Assia's short example *)
 
18
 
 
19
Open Scope bool_scope.
 
20
 
 
21
Set Implicit Arguments.
 
22
 
 
23
Structure test_struct : Type := mk_test {dom :> Type; f : dom -> dom -> bool}.
 
24
 
 
25
Notation " x != y":= (f _ x y)(at level 10).
 
26
 
 
27
Canonical Structure bool_test := mk_test (fun x y => x || y).
 
28
 
 
29
Definition b := bool.
 
30
 
 
31
Check (fun x : b => x != x).