Compare commits

...

1 Commits

Author SHA1 Message Date
Scott Morrison
18ed50950d chore: adding failing grind test 2025-04-23 11:37:17 +10:00

View File

@@ -0,0 +1,18 @@
import Std.Data.HashMap
reset_grind_attrs%
open Std
attribute [grind ] List.length_pos_of_mem
attribute [grind] HashMap.size_insert
-- Fails with issue:
-- [issue] type error constructing proof for List.length_pos_of_mem
-- when assigning metavariable ?l with
-- m.insert 1 2
-- has type
-- HashMap Nat Nat : Type
-- but is expected to have type
-- List Nat : Type
example (m : HashMap Nat Nat) : ((m.insert 1 2).insert 3 4).size m.size := by grind