]> matita.cs.unibo.it Git - helm.git/commitdiff
Bug fixed in generation of elimination principles of inductive types having
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Fri, 8 Feb 2008 13:44:54 +0000 (13:44 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Fri, 8 Feb 2008 13:44:54 +0000 (13:44 +0000)
at least one constructor of type (A -> i) -> i that was not the last
constructor.

helm/software/components/library/cicElim.ml

index c994a9c53865c685bb75ab3ffec85448f0d08db2..22bece0338e08f7a777a11464cd6ca5adcbaaf8e 100644 (file)
@@ -217,7 +217,7 @@ let rec branch (uri, typeno) insource paramsno t fix head args =
       if insource then
         (match args with
         | [arg] -> Cic.Appl (fix :: args)
-        | _ -> Cic.Appl (head :: [Cic.Appl args]))
+        | _ -> Cic.Appl (fix :: [Cic.Appl args]))
       else
         (match args with
         | [] -> head