Skip to content
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

rewrite tactic raises "Assertion failed" in infer.ml #1152

Open
fblanqui opened this issue Nov 19, 2024 · 0 comments
Open

rewrite tactic raises "Assertion failed" in infer.ml #1152

fblanqui opened this issue Nov 19, 2024 · 0 comments

Comments

@fblanqui
Copy link
Member

In Stdlib.List:

opaque symbol rot_size [a] (l:𝕃 a) : Ο€ (rot (size l) l = l) ≔
begin
  assume a l; simplify; rewrite take_size l;
  rewrite @drop_size;
  reflexivity;
end;

fails with

Uncaught [File "src/core/infer.ml", line 156, characters 63-69: Assertion failed].

infer.ml:

and infer_aux : problem -> octxt -> term -> term * term * bool = fun pb c t ->
  match unfold t with
  [...]
  | Vari x ->
      let a = try Ctxt.type_of x (classic c) with Not_found -> assert false in
      (t, a, 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