leanprover-community / mathlib

  • Home
  • Zulip archive
  • API documentation
  • Lean web editor
  • Links

Zulip Chat Archive

Stream: maths

Topic: subsets


Christopher Hoskin (Jun 16 2024 at 20:35):

Given:

variable (S T : Set α)

Is there a way to make S ∩ T of type Set T?

Thanks.

Christopher

Ruben Van de Velde (Jun 16 2024 at 20:38):

import Mathlib

open Set.Notation

variable {α : Type*} {S T : Set α}
#check T ↓∩ S

Christopher Hoskin (Jun 16 2024 at 20:51):

Thanks! (I also needed to import Mathlib.Data.Set.Subset.)


Last updated: May 02 2025 at 03:31 UTC

Theme Simple by wildflame © 2016 Powered by jekyll