lambdapi icon indicating copy to clipboard operation
lambdapi copied to clipboard

rewrite tactic raises "Assertion failed" in infer.ml

Open fblanqui opened this issue 1 year ago • 0 comments

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)

fblanqui avatar Nov 19 '24 12:11 fblanqui