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

« back to all changes in this revision

Viewing changes to test-suite/typeclasses/NewSetoid.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
(************************************************************************)
 
2
(*  v      *   The Coq Proof Assistant  /  The Coq Development Team     *)
 
3
(* <O___,, * CNRS-Ecole Polytechnique-INRIA Futurs-Universite Paris Sud *)
 
4
(*   \VV/  **************************************************************)
 
5
(*    //   *      This file is distributed under the terms of the       *)
 
6
(*         *       GNU Lesser General Public License Version 2.1        *)
 
7
(************************************************************************)
 
8
 
 
9
(* Certified Haskell Prelude.
 
10
 * Author: Matthieu Sozeau
 
11
 * Institution: LRI, CNRS UMR 8623 - Universit�copyright Paris Sud
 
12
 *              91405 Orsay, France *)
 
13
 
 
14
(* $Id: FSetAVL_prog.v 616 2007-08-08 12:28:10Z msozeau $ *)
 
15
 
 
16
Require Import Coq.Program.Program.
 
17
 
 
18
Set Implicit Arguments.
 
19
Unset Strict Implicit.
 
20
 
 
21
Require Import Coq.Classes.SetoidTactics.
 
22
 
 
23
Goal not True == not (not False) -> ((not True -> True)) \/ True.
 
24
  intros.
 
25
  clrewrite H.
 
26
  clrewrite <- H.
 
27
  right ; auto.
 
28
Defined.
 
29
 
 
30
Definition reduced_thm := Eval compute in Unnamed_thm.
 
31
 
 
32
(* Print reduced_thm. *)
 
33
 
 
34
Lemma foo [ Setoid a R ] : True. (* forall x y, R x y -> x -> y. *)
 
35
Proof.
 
36
  intros.
 
37
  Print respect2.
 
38
  pose setoid_morphism.
 
39
  pose (respect2 (b0:=b)).
 
40
  simpl in b0.
 
41
  unfold binary_respectful in b0.
 
42
  pose (arrow_morphism R).
 
43
  pose (respect2 (b0:=b1)).
 
44
  unfold binary_respectful in b2.
 
45
 
 
46
  pose (eq_morphism (A:=a)).
 
47
  pose (respect2 (b0:=b3)).
 
48
  unfold binary_respectful in b4.
 
49
  exact I.
 
50
Qed.
 
51
 
 
52
Goal forall A B C (H : A <-> B) (H' : B <-> C), A /\ B <-> B /\ C.
 
53
  intros.
 
54
  Set Printing All.
 
55
  Print iff_morphism.
 
56
  clrewrite H.
 
57
  clrewrite H'.
 
58
  reflexivity.
 
59
Defined.
 
60
 
 
61
Goal forall A B C (H : A <-> B) (H' : B <-> C), A /\ B <-> B /\ C.
 
62
  intros.
 
63
  rewrite H.
 
64
  rewrite H'.
 
65
  reflexivity.
 
66
Defined.
 
67
 
 
68
Require Import Setoid_tac.
 
69
Require Import Setoid_Prop.
 
70
 
 
71
(* Print Unnamed_thm0. *)
 
72
(* Print Unnamed_thm1. *)
 
73
 
 
74