I'm learning Lean4.
I'm trying to prove in lean4 these basic properties of subsets:
$ X \subseteq X $
$ X \subseteq Y , Y \subseteq Z \Rightarrow X \subseteq Z$
$ X \subseteq Y , Y \subseteq X \Rightarrow X = Y $
I'm wondering whether these translations in lean4 are correct:
import Mathlib.Data.Set.Lattice
variable {α : Type*}
open Set
variable {x y z: Set α}
example (h: x ⊆ x) : x ⊆ x := by
sorry
example (h: x ⊆ z) : x ⊆ y ∧ y ⊆ z := by
sorry
example (h: s = t) : x ⊆ y ∧ y ⊆ x := by
sorry
s
andt
. $\endgroup$