Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit ee5e9fb

Browse files
feat(data/indicator_function): eq_self_of_superset (#6829)
1 parent aadd853 commit ee5e9fb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/data/indicator_function.lean

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ ite_eq_left_iff.trans $ by rw [@eq_comm _ (f a)]
7373
@[simp] lemma indicator_eq_self : s.indicator f = f ↔ support f ⊆ s :=
7474
by simp only [funext_iff, subset_def, mem_support, indicator_apply_eq_self, not_imp_comm]
7575

76+
lemma indicator_eq_self_of_superset (h1 : s.indicator f = f) (h2 : s ⊆ t) : t.indicator f = f :=
77+
by { rw indicator_eq_self at h1 ⊢, exact subset.trans h1 h2 }
78+
7679
@[simp] lemma indicator_support : (support f).indicator f = f :=
7780
indicator_eq_self.2 $ subset.refl _
7881

0 commit comments

Comments
 (0)