Zulip Chat Archive

Stream: lean4

Topic: internal grind error


Bhavik Mehta (Jul 26 2025 at 18:35):

Here's the example:

def List.Disjoint (l₁ l₂ : List α) : Prop :=
  ∀ ⦃a⦄, a ∈ l₁ → a ∈ l₂ → False

theorem test (f : Nat → List (List Nat)) {l : List Nat} :
    l.Pairwise
      (fun x y ↦
        (if x ^ i ≤ n then List.map (fun m ↦ x :: m) (f x) else []).Disjoint
        (if y ^ i ≤ n then List.map (fun m ↦ y :: m) (f y) else [])) := by
  grind

Is this a known problem, or should I make an issue for it?

Bhavik Mehta (Jul 26 2025 at 18:35):

Here's the error message:

internal `grind` error, term has not been internalized
  List.map (fun m => _fvar.2077 :: m) (@_fvar.557 _fvar.2077)

Robin Arnez (Jul 26 2025 at 19:41):

I think this is just a bug, so yeah make an issue for it on the Lean repo

Bhavik Mehta (Jul 27 2025 at 03:44):

lean4#9572


Last updated: Feb 28 2026 at 14:05 UTC