Skip to content

exception in remove tactic #1251

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
bodeveix opened this issue May 6, 2025 · 0 comments
Open

exception in remove tactic #1251

bodeveix opened this issue May 6, 2025 · 0 comments

Comments

@bodeveix
Copy link

bodeveix commented May 6, 2025

An exception is raised by the remove tactic from function codom_binder when the list of hypotheses contains a defined variable.

The following modified code (libTerm.ml) seems to solve the problem:

let rec codom_binder : int -> term -> binder = fun n t ->
match unfold t with
| Prod(_,b) ->
if n <= 0 then b else codom_binder (n-1) (subst b mk_Kind)
| LLet(a,t,u) ->
if n <= 0 then u else codom_binder (n-1) (subst u a)
| _ -> assert false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant