]> matita.cs.unibo.it Git - helm.git/commitdiff
Bug fixed: the tactic to analyze the term and understand whose inductive
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Tue, 4 Mar 2014 12:24:19 +0000 (12:24 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Tue, 4 Mar 2014 12:24:19 +0000 (12:24 +0000)
type it belongs to did not put the sort in whd before concluding that
it was not a sort.

matita/components/ng_tactics/nTactics.ml

index 6241a3ea6baa7f13b25a9f2105b443e0ea018624..3ef2dbe5b0c331a122e57137fadab9ec44242379 100644 (file)
@@ -515,7 +515,9 @@ let sort_of_goal_tac sortref = distribute_tac (fun status goal ->
   let goalty = get_goalty status goal in
   let status,sort = typeof status (ctx_of goalty) goalty in
   let status, sort = fix_sorts status sort in
-  let status, sort = term_of_cic_term status sort (ctx_of goalty) in
+  let ctx = ctx_of goalty in
+  let status, sort = whd status (ctx_of sort) sort in
+  let status, sort = term_of_cic_term status sort ctx in
    sortref := sort;
    status)
 ;;