Skip to content

Regression in v4.33.0-rc1: simp triggers a max heartbeats error #14540

Description

@sonmarcho

Prerequisites

Description

example (x : Nat) :
    let v := Vector.ofFn fun k : Fin 5 => (x >>> k.val) % 2 != 0
    (Vector.ofFn fun i : Fin 1 =>
      Fin.foldl 5 (fun (acc : BitVec 1) j =>
        acc + v[i.val + j.val].toNat) 0)[0] = 0 := by
  -- The `simp only` works instantly in 4.32.0 but fails in 4.33.0-rc1 with:
  -- "timeout at `whnf`, maximum number of heartbeats (200000) has been reached"
  simp only [Vector.getElem_ofFn] -- 
  sorry

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions