lean4-htt/tests/lean/run/grind_9897.lean
Kim Morrison a78a34bbd7
chore: replace Lean.Grind internal preorder classes with the classes from Std (#10129)
This PR replaces the interim order typeclasses used by `Grind` with the
new publicly available classes in `Std`.
2025-08-26 13:18:22 +00:00

22 lines
644 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.

module
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 α] [Std.LawfulOrderLT α] [DecidableEq α]
[Lean.Grind.Ring α] [Std.IsLinearOrder α] [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