Zulip Chat Archive
Stream: lean4
Topic: Unknown free variable in v4.15.0
Marcus Rossel (Jan 05 2025 at 17:43):
I haven't been able to minimize this further so far, but it fails with unknown free variable: _uniq.4:
import Lean
#version -- Lean 4.15.0
example : Std.HashSet Nat := Id.run do
if "".isEmpty then dbg_trace ""; return ∅
if (#[] : Array Nat).all (fun _ => True) then return ∅
return ∅
Kim Morrison (Jan 05 2025 at 21:23):
This is not new in v4.15.0. I suspect that, as with lean#4418 and lean#4548, this is an issue with the old code generator (and good news, the new one is under active development again!). You can work around this for now by adding noncomputable.
Last updated: May 02 2025 at 03:31 UTC