lean4-htt/tests/lean/run/grind_9897.lean
Leonardo de Moura 05e8c856fa
fix: reset decision stack in grind linarith (#9904)
This PR ensures the decision stack is reset after an assignment is found
in `grind linarith`.

Closes #9897
2025-08-14 02:53:01 +00:00

21 lines
619 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

def Set' (α : Type u) := α → Prop
namespace Set'
protected def Mem (s : Set' α) (a : α) : Prop :=
s a
instance : Membership α (Set' α) :=
⟨Set'.Mem⟩
end Set'
def Ioi' [LT α] (a : α) : Set' α := fun x => a < x
@[grind =] theorem mem_Ioi [LT α] {x a : α} : x ∈ Ioi' a ↔ a < x := Iff.rfl
theorem ProbabilityTheory.crash.extracted_1_3
[LE α] [LT α] [DecidableEq α]
[Lean.Grind.Ring α] [Lean.Grind.LinearOrder α] [Lean.Grind.OrderedRing α] (X : αα)
(hnonneg : ∀ (i : α), 0 ≤ X i) (n : α) (hn : X n ∉ Ioi' 0) :
(if n = X n then 0 else 0) + X n = 0 := by grind