Somehow fixing a side-effect bug in tactics-in-terms.
Somehow fixing a side-effect bug in tactics-in-terms.

Before this patch, when tactics-in-terms were relying on the ugly environment-
modifying primitives such as tclABSTRACT, the returned term was ill-typed
because the resulting effects were just dropped. Now we modify the returned
term on the fly, effectively getting rid of the effects it may depend on.

Yet, this is not completely satisfactory, because the tactic may solve some
goals at distance (I would have said by side-effect, but this is ambiguous
here). If ever the resulting terms are depending on the side-effects of the
tactic, then we are still unsound.

This patch should handle most of the use-cases gracefully. To really solve this
issue, we should rewrite the pretyper in the new monad, which is easier said
than done.

barras/coq,ppedrot/coq,asr/coq,amintimany/coq,herbelin/github-coq,Lionel-Rieg/coq,gares/coq,Lionel-Rieg/coq,TheTypoMaster/coq,pirapira/coq2rust,SkySkimmer/coq,Matafou/coq,jpdeplaix/coq,barras/coq,letouzey/coq-wip,ppedrot/coq,Lionel-Rieg/coq,ppedrot/coq,maximedenes/coq,pirapira/coq2rust,8l/coq,Zimmi48/coq,gmalecha/coq,maximedenes/coq,ppedrot/coq,shindere/coq,gares/coq,Ptival/coq,coq/coq,ejgallego/coq,mlasson/coq,mlasson/coq,8l/coq,letouzey/coq-wip,amintimany/coq,ejgallego/coq,JasonGross/coq,maximedenes/coq,ppedrot/coq,silene/coq,gares/coq,coq/coq,Zimmi48/coq,SkySkimmer/coq,maximedenes/coq,william-lawvere/coq,letouzey/coq-wip,ale-f/coq,JasonGross/coq,mlasson/coq,SkySkimmer/coq,jpdeplaix/coq,mattam82/coq,ale-f/coq,pirapira/coq2rust,william-lawvere/coq,mattam82/coq,JasonGross/coq,aspiwack/coq,Ptival/coq,shindere/coq,asr/coq,TOSPIO/coq,shindere/coq,TheTypoMaster/coq,JasonGross/coq,letouzey/coq-wip,aspiwack/coq,gmalecha/coq,aspiwack/coq,Ptival/coq,ejgallego/coq,amintimany/coq,mattam82/coq,TOSPIO/coq,Zimmi48/coq,coq/coq,gares/coq,silene/coq,herbelin/github-coq,TOSPIO/coq,gmalecha/coq,asr/coq,Matafou/coq,silene/coq,gares/coq,8l/coq,maximedenes/coq,jpdeplaix/coq,ale-f/coq,coq/coq,Zimmi48/coq,william-lawvere/coq,Matafou/coq,TheTypoMaster/coq,herbelin/github-coq,SkySkimmer/coq,barras/coq,ejgallego/coq,letouzey/coq-wip