aboutsummaryrefslogtreecommitdiff
path: root/tactics
diff options
context:
space:
mode:
Diffstat (limited to 'tactics')
-rw-r--r--tactics/tauto.ml411
1 files changed, 10 insertions, 1 deletions
diff --git a/tactics/tauto.ml4 b/tactics/tauto.ml4
index 4af760ed8c..ad6d022306 100644
--- a/tactics/tauto.ml4
+++ b/tactics/tauto.ml4
@@ -10,6 +10,7 @@
(*i $Id$ i*)
+open Term
open Hipattern
open Names
open Libnames
@@ -36,10 +37,18 @@ let is_unit ist =
<:tactic<idtac>>
else
<:tactic<fail>>
+
+let is_record t =
+ let (hdapp,args) = decompose_app t in
+ match (kind_of_term hdapp) with
+ | Ind ind ->
+ let (mib,mip) = Global.lookup_inductive ind in
+ mib.Declarations.mind_record
+ | _ -> false
let is_conj ist =
let ind = assoc_last ist in
- if (is_conjunction ind) && (is_nodep_ind ind) then
+ if (is_conjunction ind) && (is_nodep_ind ind) && not (is_record ind) then
<:tactic<idtac>>
else
<:tactic<fail>>