diff options
| author | Emilio Jesus Gallego Arias | 2020-06-22 20:42:39 +0200 |
|---|---|---|
| committer | Emilio Jesus Gallego Arias | 2020-06-26 14:38:12 +0200 |
| commit | ea8b9e060dfba9cc8706677e29c26dabaaa87551 (patch) | |
| tree | 6e1d1b6c35c8d508f022d37db93e5eef4a54d5a8 /vernac/recLemmas.ml | |
| parent | 862e5a0f13e51b51d42041f36576a2c7f07a9d5e (diff) | |
[declare] Improve organization of proof/constant information.
We unify information about constants so it is shared among all the
paths [interactive, NI, obligations].
IMHO the current setup looks pretty good, with information split into
a per-constant record `CInfo.t` and variables affecting mutual
definitions at once, which live in `Info.t`.
Main information outside our `Info` record is `opaque`, which is
provided at different moments in several cases.
There are a few nits regarding interactive proofs, which will go away
in the next commits.
Diffstat (limited to 'vernac/recLemmas.ml')
| -rw-r--r-- | vernac/recLemmas.ml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/vernac/recLemmas.ml b/vernac/recLemmas.ml index c08fdf8b96..e276918526 100644 --- a/vernac/recLemmas.ml +++ b/vernac/recLemmas.ml @@ -16,7 +16,8 @@ module RelDecl = Context.Rel.Declaration let find_mutually_recursive_statements sigma thms = let n = List.length thms in - let inds = List.map (fun ({ Declare.Recthm.name; typ; args; impargs} as x) -> + let inds = List.map (fun x -> + let typ = Declare.CInfo.get_typ x in let (hyps,ccl) = EConstr.decompose_prod_assum sigma typ in let whnf_hyp_hds = EConstr.map_rel_context_in_env (fun env c -> fst (Reductionops.whd_all_stack env sigma c)) @@ -89,10 +90,10 @@ let find_mutually_recursive_statements sigma thms = (finite,guard,None), ordered_inds type mutual_info = - | NonMutual of EConstr.t Declare.Recthm.t + | NonMutual of EConstr.t Declare.CInfo.t | Mutual of { mutual_info : Declare.Proof.mutual_info - ; thms : EConstr.t Declare.Recthm.t list + ; thms : EConstr.t Declare.CInfo.t list ; possible_guards : int list } |
