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/adam/Adam/Levels/SetTheory/L09_Complement.lean

41 lines
1.1 KiB
Plaintext

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

import Adam.Metadata
import Mathlib.Data.Set.Basic
Game "Adam"
World "SetTheory"
Level 9
Title "Komplement"
Introduction
"
Das Komplement einer Menge wird als `Aᶜ` (`\\^c`) geschrieben. Wichtige Lemmas
sind `not_mem_compl_iff` und `compl_eq_univ_diff`.
"
open Set
Statement
""
(A : Set ) (h : Aᶜ ⊆ A) : A = univ := by
Hint "Start doch mit `apply Subset.antisymm`."
apply Subset.antisymm
simp only [subset_univ]
Hint "Da `⊆` als `∀x, x ∈ A → x ∈ B ` definiert ist, fängst du
am besten mit `intro` an."
intros x hx
Hint "Eine Möglichkeit ist, eine Fallunterscheidung zu machen: `by_cases g: {x} ∈ {A}ᶜ`."
by_cases h4 : x ∈ Aᶜ
Hint "Hier könnte `mem_of_subset_of_mem` hilfreich werden."
apply mem_of_subset_of_mem h
assumption
Hint "Diese Richtung geben wir als Lemma: `not_mem_compl_iff`."
rw [not_mem_compl_iff] at h4
assumption
NewTactic constructor intro rw assumption rcases simp tauto trivial
NewLemma Set.not_mem_compl_iff Set.mem_of_subset_of_mem Set.compl_eq_univ_diff
DisabledTactic tauto
LemmaTab "Set"