blob: 4d6cbe28a7c5be8f775d13461fb11305e3e2e87c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
(************************************************************************)
(* v * The Coq Proof Assistant / The Coq Development Team *)
(* <O___,, * CNRS-Ecole Polytechnique-INRIA Futurs-Universite Paris Sud *)
(* \VV/ **************************************************************)
(* // * This file is distributed under the terms of the *)
(* * GNU Lesser General Public License Version 2.1 *)
(************************************************************************)
(*i $Id: Transitive_Closure.v,v 1.1.2.1 2004/07/16 19:31:42 herbelin Exp $ i*)
(** Author: Bruno Barras *)
Require Relation_Definitions.
Require Relation_Operators.
Section Wf_Transitive_Closure.
Variable A: Set.
Variable R: (relation A).
Notation trans_clos := (clos_trans A R).
Lemma incl_clos_trans: (inclusion A R trans_clos).
Red;Auto with sets.
Qed.
Lemma Acc_clos_trans: (x:A)(Acc A R x)->(Acc A trans_clos x).
NewInduction 1 as [x0 _ H1].
Apply Acc_intro.
Intros y H2.
NewInduction H2;Auto with sets.
Apply Acc_inv with y ;Auto with sets.
Qed.
Hints Resolve Acc_clos_trans.
Lemma Acc_inv_trans: (x,y:A)(trans_clos y x)->(Acc A R x)->(Acc A R y).
Proof.
NewInduction 1 as [|x y];Auto with sets.
Intro; Apply Acc_inv with y; Assumption.
Qed.
Theorem wf_clos_trans: (well_founded A R) ->(well_founded A trans_clos).
Proof.
Unfold well_founded;Auto with sets.
Qed.
End Wf_Transitive_Closure.
|