Skip to content

Commit ab18fa8

Browse files
committed
chore(Probability/Process): golf entire hitting_of_lt using grind (#27616)
1 parent cd5e6a6 commit ab18fa8

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

Mathlib/Probability/Process/HittingTime.lean

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,7 @@ variable [ConditionallyCompleteLinearOrder ι] {u : ι → Ω → β} {s : Set
6565

6666
/-- This lemma is strictly weaker than `hitting_of_le`. -/
6767
theorem hitting_of_lt {m : ι} (h : m < n) : hitting u s n m ω = m := by
68-
simp_rw [hitting]
69-
have h_not : ¬∃ (j : ι) (_ : j ∈ Set.Icc n m), u j ω ∈ s := by
70-
push_neg
71-
intro j
72-
rw [Set.Icc_eq_empty_of_lt h]
73-
simp only [Set.mem_empty_iff_false, IsEmpty.forall_iff]
74-
simp only [exists_prop] at h_not
75-
simp only [h_not, if_false]
68+
grind [hitting, not_le, Set.Icc_eq_empty, Set.mem_empty_iff_false]
7669

7770
theorem hitting_le {m : ι} (ω : Ω) : hitting u s n m ω ≤ m := by
7871
simp only [hitting]

0 commit comments

Comments
 (0)