diff options
| author | coqbot-app[bot] | 2020-08-25 08:32:20 +0000 |
|---|---|---|
| committer | GitHub | 2020-08-25 08:32:20 +0000 |
| commit | bd4791ff350bef9dc45b42b2ae77769625644c4f (patch) | |
| tree | 02fb8f7c029ea53839714688edd8b888af9a3db8 /proofs | |
| parent | 016bafd7519859737610810df77f72bf812c542a (diff) | |
| parent | a970072a64348a1b5af1cd45a138da819ef0a8d2 (diff) | |
Merge PR #12878: Update sigma instead of erasing it in `update_global_env`
Reviewed-by: SkySkimmer
Diffstat (limited to 'proofs')
| -rw-r--r-- | proofs/proof.ml | 4 | ||||
| -rw-r--r-- | proofs/proof.mli | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/proofs/proof.ml b/proofs/proof.ml index a183fa7797..38fcdd6e5f 100644 --- a/proofs/proof.ml +++ b/proofs/proof.ml @@ -356,6 +356,10 @@ let compact p = let entry, proofview = Proofview.compact p.entry p.proofview in { p with proofview; entry } +let update_sigma_env p env = + let proofview = Proofview.Unsafe.update_sigma_env p.proofview env in + { p with proofview } + (*** Function manipulation proof extra informations ***) (*** Tactics ***) diff --git a/proofs/proof.mli b/proofs/proof.mli index 0e5bdaf07d..2d4966676e 100644 --- a/proofs/proof.mli +++ b/proofs/proof.mli @@ -78,6 +78,9 @@ val partial_proof : t -> EConstr.constr list val compact : t -> t +(** [update_sigma_env] lifts [Evd.update_sigma_env] to the proof *) +val update_sigma_env : t -> Environ.env -> t + (* Returns the proofs (with their type) of the initial goals. Raises [UnfinishedProof] is some goals remain to be considered. Raises [HasShelvedGoals] if some goals are left on the shelf. |
