X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Facic_procedural%2FproceduralTypes.ml;h=6534b872538b0912e4e1d8ce75fa72a2a434a604;hb=128ea02422e0cc4254ea3f8e4b0c5248c7182479;hp=8a60f9658047118ad4c8c0ddc7b2dc4674d19326;hpb=2921483dad22e14c2e697cbe5597a0b32af04090;p=helm.git diff --git a/helm/software/components/acic_procedural/proceduralTypes.ml b/helm/software/components/acic_procedural/proceduralTypes.ml index 8a60f9658..6534b8725 100644 --- a/helm/software/components/acic_procedural/proceduralTypes.ml +++ b/helm/software/components/acic_procedural/proceduralTypes.ml @@ -134,8 +134,9 @@ let mk_letin name what punctation = let mk_rewrite direction what where pattern punctation = let direction = if direction then `RightToLeft else `LeftToRight in let pattern, rename = match where with - | None -> (None, [], Some pattern), [] - | Some (premise, name) -> (None, [premise, pattern], None), [name] + | None -> (None, [], Some pattern), [] + | Some (premise, Some name) -> (None, [premise, pattern], None), [Some name] + | Some (premise, None) -> (None, [premise, pattern], None), [] in let tactic = G.Rewrite (floc, direction, what, pattern, rename) in mk_tactic tactic punctation @@ -146,7 +147,7 @@ let mk_elim what using pattern punctation = mk_tactic tactic punctation let mk_apply t punctation = - let tactic = G.Apply (floc, t) in + let tactic = G.ApplyP (floc, t) in mk_tactic tactic punctation let mk_change t where pattern punctation =