lean4-htt/tests/lean/run/grind_canon_bug_2.lean
Leonardo de Moura 99ff606d58
chore: rename cutsat => lia (#10991)
This PR renames `cutsat` in configuration options and trace messages to
`lia`.
2025-10-28 12:25:48 +00:00

21 lines
725 B
Text

import Std.Data.ExtHashMap
open Std
set_option warn.sorry false
-- The following trace should contain only one `m[k]` and `(m.insert 1 3)[k]`
/--
trace: [grind.lia.model] k := 101
[grind.lia.model] (ExtHashMap.filter (fun k x => decide (101 ≤ k)) (m.insert 1 3))[k] := 4
[grind.lia.model] (m.insert 1 2)[k] := 4
[grind.lia.model] (m.insert 1 3)[k] := 4
[grind.lia.model] m[k] := 4
[grind.lia.model] (m.insert 1 2).getKey k ⋯ := 101
[grind.lia.model] m.getKey k ⋯ := 101
-/
#guard_msgs in
example (m : ExtHashMap Nat Nat) :
(m.insert 1 2).filter (fun k _ => k > 1000) = (m.insert 1 3).filter fun k _ => k > 100 := by
ext1 k
set_option trace.grind.lia.model true in
fail_if_success grind (splits := 4)
sorry