You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lean4game/server/testgame/TestGame/Levels/SetTheory/L17_SetOf.lean

40 lines
610 B
Plaintext

import TestGame.Metadata
import Mathlib.Data.Set.Basic
import Mathlib.Algebra.Parity
import Mathlib
Game "TestGame"
World "SetTheory2"
Level 4
Title ""
Introduction
"
"
open Set
Statement
"" :
{2, 7} ⊆ {n : | n = 2 (n ≤ 10 ∧ Odd n)} := by
rw [setOf_or, setOf_and]
intro x hx
rw [mem_union, mem_inter_iff]
simp_rw [mem_setOf, mem_insert_iff, mem_singleton_iff] at *
rcases hx with hx | hx
left
assumption
right
constructor
linarith
use 3
rw [hx]
ring
Tactics constructor intro rw assumption rcases simp tauto trivial
Lemmas Subset.antisymm_iff empty_subset