diff options
| author | herbelin | 2000-10-01 13:20:02 +0000 |
|---|---|---|
| committer | herbelin | 2000-10-01 13:20:02 +0000 |
| commit | 9e6e6202c073fed0e2fc915d7f7e6ce927d55218 (patch) | |
| tree | ed17038b7fc77a5cba80c41616d4d18d66dd51f1 /contrib/ring | |
| parent | afdb9b7fa4a6ce1165b270ffdae4574897aa7c40 (diff) | |
Disparition du type oper mais nouveau type global_reference
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@620 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'contrib/ring')
| -rw-r--r-- | contrib/ring/ring.ml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/ring/ring.ml b/contrib/ring/ring.ml index f5a8746b97..7c514bd2a9 100644 --- a/contrib/ring/ring.ml +++ b/contrib/ring/ring.ml @@ -103,7 +103,7 @@ let coq_eqT = lazy (constant "#Logic_Type#eqT.cci" "eqT") module OperSet = Set.Make (struct - type t = sorts oper + type t = global_reference let compare = (Pervasives.compare : t->t->int) end) @@ -299,7 +299,7 @@ let build_spolynom gl th lc = (* aux creates the spolynom p by a recursive destructuration of c and builds the varmap with side-effects *) let rec aux c = - match (kind_of_term (whd_castapp c)) with + match (kind_of_term (strip_outer_cast c)) with | IsAppL (binop,[|c1; c2|]) when pf_conv_x gl binop th.th_plus -> mkAppA [| Lazy.force coq_SPplus; th.th_a; aux c1; aux c2 |] | IsAppL (binop,[|c1; c2|]) when pf_conv_x gl binop th.th_mult -> @@ -353,7 +353,7 @@ let build_polynom gl th lc = let varlist = ref ([] : constr list) in (* list of variables *) let counter = ref 1 in (* number of variables created + 1 *) let rec aux c = - match (kind_of_term (whd_castapp c)) with + match (kind_of_term (strip_outer_cast c)) with | IsAppL (binop, [|c1; c2|]) when pf_conv_x gl binop th.th_plus -> mkAppA [| Lazy.force coq_Pplus; th.th_a; aux c1; aux c2 |] | IsAppL (binop, [|c1; c2|]) when pf_conv_x gl binop th.th_mult -> @@ -418,7 +418,7 @@ let build_aspolynom gl th lc = (* aux creates the aspolynom p by a recursive destructuration of c and builds the varmap with side-effects *) let rec aux c = - match (kind_of_term (whd_castapp c)) with + match (kind_of_term (strip_outer_cast c)) with | IsAppL (binop, [|c1; c2|]) when pf_conv_x gl binop th.th_plus -> mkAppA [| Lazy.force coq_ASPplus; aux c1; aux c2 |] | IsAppL (binop, [|c1; c2|]) when pf_conv_x gl binop th.th_mult -> @@ -469,7 +469,7 @@ let build_apolynom gl th lc = let varlist = ref ([] : constr list) in (* list of variables *) let counter = ref 1 in (* number of variables created + 1 *) let rec aux c = - match (kind_of_term (whd_castapp c)) with + match (kind_of_term (strip_outer_cast c)) with | IsAppL (binop, [|c1; c2|]) when pf_conv_x gl binop th.th_plus -> mkAppA [| Lazy.force coq_APplus; aux c1; aux c2 |] | IsAppL (binop, [|c1; c2|]) when pf_conv_x gl binop th.th_mult -> |
