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

« back to all changes in this revision

Viewing changes to test-suite/bugs/opened/shouldnotfail/1416.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
Set Implicit Arguments.
 
2
 
 
3
Record Place (Env A: Type) : Type := {
 
4
  read: Env -> A ;
 
5
  write: Env -> A -> Env ;
 
6
  write_read: forall (e:Env), (write e (read e))=e
 
7
}. 
 
8
 
 
9
Hint Rewrite -> write_read: placeeq.
 
10
 
 
11
Record sumPl (Env A B: Type) (vL:(Place Env A)) (vR:(Place Env B)) : Type :=
 
12
 { 
 
13
   mkEnv: A -> B -> Env ;
 
14
   mkEnv2writeL: forall (e:Env) (x:A), (mkEnv x (read vR e))=(write vL e x)
 
15
 }.
 
16
 
 
17
(* when the following line is commented, the bug does not appear *)
 
18
Hint Rewrite -> mkEnv2writeL: placeeq.
 
19
 
 
20
Lemma autorewrite_raise_anomaly: forall (Env A:Type) (e: Env) (p:Place Env A),
 
21
  (exists e1:Env, e=(write p e1 (read p e))).
 
22
Proof.
 
23
  intros Env A e p; eapply ex_intro.
 
24
  autorewrite with placeeq. (* Here is the bug *)
 
25
  auto.
 
26
Qed.
 
27