]> matita.cs.unibo.it Git - helm.git/commitdiff
Fixed a bug in the discrimination principle: the refiner was not able to
authorWilmer Ricciotti <ricciott@cs.unibo.it>
Tue, 12 Jan 2010 12:23:37 +0000 (12:23 +0000)
committerWilmer Ricciotti <ricciott@cs.unibo.it>
Tue, 12 Jan 2010 12:23:37 +0000 (12:23 +0000)
synthesize the return type of the inner match correctly.

helm/software/components/ng_tactics/nDestructTac.ml

index 4f87707ebdc2f20c2ab33d0dd101788192daffd6..8b2065a4393a1c3bcb12913a9fa106b40f161d27 100644 (file)
@@ -206,7 +206,8 @@ let mk_discriminator it status =
                Some (CicNotationPt.Binder (`Lambda, (mk_id "y",None), 
                  CicNotationPt.Binder (`Forall, (mk_id "_", Some
                  (mk_appl [mk_id "eq";CicNotationPt.Implicit
-                 `JustOne;CicNotationPt.Implicit `JustOne;mk_id "y"])),
+                 `JustOne;(*CicNotationPt.Implicit `JustOne*)
+                  mk_appl (mk_id (kname it i)::ts);mk_id "y"])),
                  CicNotationPt.Implicit `JustOne ))),
                   List.map
                   (fun j ->