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/L08_UnionInter.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
set_option tactic.hygienic false
Game "Adam"
World "SetTheory"
Level 8
Title "Schnittmenge und Vereinigung"
Introduction
"
Ansonsten gibt es jegliche Lemmas in der Mathlib
die beim Umgang mit diesen Operationen weiterhelfen. Schaue in der Bibliothek auf
der Seite nach Lemmas, die dir hier weiterhelfen!
Denk daran, die lemma Namen sind blockweise aus der Aussage konstruiert. Ein lemma mit
der Aussage `C \\ (A ∩ B) + …` wird vermutlich mit `diff_inter_…` anfangen.
"
open Set
Statement
""
(A B : Set ) : univ \ (A ∩ B) = (univ \ A) (univ \ B) (A \ B) := by
rw [diff_inter]
Hint (hidden := true) "mit `union_assoc` und `union_diff_distrib` kannst du
auf der rechten Seite weiterkommen."
rw [union_assoc]
rw [←union_diff_distrib]
rw [univ_union]
NewTactic constructor intro rw assumption rcases simp tauto trivial
DisabledTactic tauto
NewLemma Set.diff_inter Set.union_assoc Set.union_diff_distrib Set.univ_union
LemmaTab "Set"
Conclusion "Wie du vielleicht bemerkt hast, könnte `tauto` sowas automatisch lösen."