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

« back to all changes in this revision

Viewing changes to test-suite/bugs/closed/shouldsucceed/1925.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
(* Check that the analysis of projectable rel's in an evar instance is up to
 
2
   aliases *)
 
3
 
 
4
Require Import List.
 
5
 
 
6
Definition compose (A B C : Type) (g : B -> C) (f : A -> B) : A -> C := 
 
7
  fun x : A => g(f x).
 
8
 
 
9
Definition map_fuse' : 
 
10
  forall (A B C : Type) (g : B -> C) (f : A -> B) (xs : list A), 
 
11
    (map g (map f xs)) = map (compose _ _ _ g f) xs 
 
12
    :=
 
13
    fun A B C g f => 
 
14
      (fix loop (ys : list A) {struct ys} :=
 
15
        match ys as ys return (map g (map f ys)) = map (compose _ _ _ g f) ys
 
16
        with
 
17
        | nil => refl_equal nil
 
18
        | x :: xs =>
 
19
           match loop xs in eq _ a return eq _  ((g (f x)) :: a) with
 
20
            | refl_equal => refl_equal (map g (map f (x :: xs)))
 
21
           end
 
22
        end).