@@ -62,7 +62,7 @@ let rewriter_heuristic_process_rules_proofs env sigma ~poly rules_proofs =
6262 let rules_proofs_with_args = mkApp (rules_proofs_with_args, [|rules_proofs_ty; rules_proofs|]) in
6363 let uctx = Evd.evar_universe_context sigma in
6464 let (rules_proofs_sig, _maybe_type, _univs, _uses_unsafe_tactic, uctx) =
65- Declare .build_by_tactic env ~uctx ~poly ~typ:rules_proofs_with_args rules_proofs_with_args_tac in
65+ Subproof .build_by_tactic env ~uctx ~poly ~typ:rules_proofs_with_args rules_proofs_with_args_tac in
6666 let sigma = Evd.from_ctx uctx in (* XXX IS THIS RIGHT? *)
6767 let rules_proofs_sig = EConstr.of_constr rules_proofs_sig in
6868 (sigma, projT2_skip_cast env sigma rules_proofs_sig)
@@ -83,7 +83,7 @@ let rewriter_scrape_data env sigma ~poly (rules_proofs : EConstr.t) (extra : ECo
8383 let scraped_data_ty = mkApp (scraped_data_with_args, [|rules_ty; rules_proofs; extra_ty; extra|]) in
8484 let uctx = Evd.evar_universe_context sigma in
8585 let (scraped_data, _maybe_type, _univs, _uses_unsafe_tactic, uctx) =
86- Declare .build_by_tactic env ~uctx ~poly ~typ:scraped_data_ty scraped_data_with_args_tac in
86+ Subproof .build_by_tactic env ~uctx ~poly ~typ:scraped_data_ty scraped_data_with_args_tac in
8787 let sigma = Evd.from_ctx uctx in (* XXX IS THIS RIGHT? *)
8888 (sigma, EConstr.of_constr scraped_data)
8989
@@ -98,7 +98,7 @@ let rewriter_emit_inductives sigma ~poly (scraped_data : EConstr.t) (base_name :
9898 let (sigma, raw_ident_elim_with_args) = Evd.fresh_global env sigma (r_raw_ident_elim_with_args ()) in
9999 let uctx = Evd.evar_universe_context sigma in
100100 let (base_elim, _maybe_type, _univs, _uses_unsafe_tactic, uctx) =
101- Declare .build_by_tactic env ~uctx ~poly ~typ:base_elim_ty base_elim_with_args_tac in
101+ Subproof .build_by_tactic env ~uctx ~poly ~typ:base_elim_ty base_elim_with_args_tac in
102102 let sigma = Evd.from_ctx uctx in (* XXX IS THIS RIGHT? *)
103103 let base_name = name_or base_name "base" in
104104 let (sigma, base) = make_inductive_from_elim sigma (Some base_name) (EConstr.of_constr base_elim) in
@@ -109,11 +109,11 @@ let rewriter_emit_inductives sigma ~poly (scraped_data : EConstr.t) (base_name :
109109 let raw_ident_elim_ty = mkApp (raw_ident_elim_with_args, [|scraped_data;base|]) in
110110 let uctx = Evd.evar_universe_context sigma in
111111 let (ident_elim, _maybe_type, _univs, _uses_unsafe_tactic, uctx) =
112- Declare .build_by_tactic env ~uctx ~poly ~typ:ident_elim_ty ident_elim_with_args_tac in
112+ Subproof .build_by_tactic env ~uctx ~poly ~typ:ident_elim_ty ident_elim_with_args_tac in
113113 let (pattern_ident_elim, _maybe_type, _univs, _uses_unsafe_tactic, uctx) =
114- Declare .build_by_tactic env ~uctx ~poly ~typ:pattern_ident_elim_ty pattern_ident_elim_with_args_tac in
114+ Subproof .build_by_tactic env ~uctx ~poly ~typ:pattern_ident_elim_ty pattern_ident_elim_with_args_tac in
115115 let (raw_ident_elim, _maybe_type, _univs, _uses_unsafe_tactic, uctx) =
116- Declare .build_by_tactic env ~uctx ~poly ~typ:raw_ident_elim_ty raw_ident_elim_with_args_tac in
116+ Subproof .build_by_tactic env ~uctx ~poly ~typ:raw_ident_elim_ty raw_ident_elim_with_args_tac in
117117 let sigma = Evd.from_ctx uctx in (* XXX IS THIS RIGHT? *)
118118 let ident_name = name_or ident_name "ident" in
119119 let (sigma, ident) = make_inductive_from_elim sigma (Some ident_name) (EConstr.of_constr ident_elim) in
0 commit comments