quote4 icon indicating copy to clipboard operation
quote4 copied to clipboard

Poor elaboration performance on structure matches

Open eric-wieser opened this issue 2 years ago • 0 comments

This takes a very long time to elaborate:

import Lean
import Qq

open Lean Qq

def ohNo : MetaM Unit := do
  let xx ← inferTypeQ q(False)
  let res ← match xx with
  | ⟨0, ~q(True), _⟩ => return
  | ⟨0, ~q(True), _⟩ => return
  | ⟨0, ~q(True), _⟩ => return
  | ⟨0, ~q(True), _⟩ => return
  | ⟨0, ~q(True), _⟩ => return
  | ⟨0, ~q(True), _⟩ => return
  | _ => return

eric-wieser avatar Feb 20 '24 07:02 eric-wieser