aboutsummaryrefslogtreecommitdiff
path: root/kernel/sosub.ml
diff options
context:
space:
mode:
authorherbelin2000-09-10 07:19:28 +0000
committerherbelin2000-09-10 07:19:28 +0000
commit79dc33cbc403ebab0bd1fe815c13f740f0a1b850 (patch)
treee38e167003d7dd97d95a59ea7c026a1629b346f8 /kernel/sosub.ml
parentc0ff579606f2eba24bc834316d8bb7bcc076000d (diff)
Ajout d'un LetIn primitif.
Abstraction de constr via kind_of_constr dans une bonne partie du code. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@591 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'kernel/sosub.ml')
-rw-r--r--kernel/sosub.ml34
1 files changed, 6 insertions, 28 deletions
diff --git a/kernel/sosub.ml b/kernel/sosub.ml
index 904d089d34..7212216ee5 100644
--- a/kernel/sosub.ml
+++ b/kernel/sosub.ml
@@ -3,9 +3,9 @@
open Util
open Names
-open Generic
+(*i open Generic i*)
open Term
-
+(*
(* Given a term with variables in it, and second-order substitution,
this function will apply the substitution. The special
operator "XTRA[$SOAPP]" is used to represent the second-order
@@ -100,15 +100,6 @@ let propagate_names =
cllist (smap,[])
in
(smap',DOPN(op,Array.of_list cl'list))
- | DOPL(op,cl) ->
- let cllist = cl in
- let (smap',cl'list) =
- List.fold_right
- (fun c (smap,acc) ->
- let (smap',c') = proprec smap c in (smap',c'::acc))
- cllist (smap,[])
- in
- (smap',DOPL(op,cl'list))
| DLAM(na,c) ->
let (lna', c') = proprec (na::smap) c in
(List.tl lna', DLAM(List.hd lna', c'))
@@ -163,14 +154,6 @@ let rec soeval t=
socontract args lam
else
DOPN(op,cl')
- | DOPL(op,cl) ->
- let cl' = List.map soeval cl in
- if is_soapp_operator t then
- let lam = List.hd cl'
- and args = List.tl cl' in
- socontract args lam
- else
- DOPL(op,cl')
let rec try_soeval t =
match t with
@@ -197,15 +180,6 @@ let rec try_soeval t =
with (Failure _ | UserError _) -> DOPN(op,cl'))
else
DOPN(op,cl')
- | DOPL(op,cl) ->
- let cl' = List.map try_soeval cl in
- if is_soapp_operator t then
- let lam = List.hd cl'
- and args = List.tl cl' in
- (try socontract args lam
- with (Failure _ | UserError _) -> DOPL(op,cl'))
- else
- DOPL(op,cl')
let soexecute t =
let (_,t) = propagate_names [] t in
@@ -217,3 +191,7 @@ let try_soexecute t =
with (Failure _ | UserError _) -> ([],t)
in
try_soeval t
+*)
+
+let soexecute a = failwith "No longer implemented"
+