lean4-htt/tests/lean/run/grind_9897.lean
Leonardo de Moura 6683d1eb91
chore: add module keyword to grind tests (#10036)
This PR also fixes missing `@[expose]` in grind support definitions.
2025-08-21 22:02:08 +00:00

22 lines
626 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 α] [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