Skip to content

Commit 807277f

Browse files
authored
Merge pull request #257 from rkirov/ch3.6-more-ex
Add some missing exercises in Ch3.6
2 parents e51552d + cf476cf commit 807277f

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

‎analysis/Analysis/Section_3_6.lean‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,9 @@ theorem SetTheory.Set.pow_pow_EqualCard_pow_prod (A B C:Set) :
246246

247247
example (a b c:ℕ): (a^b)^c = a^(b*c) := by sorry
248248

249+
theorem SetTheory.Set.pow_prod_pow_EqualCard_pow_union (A B C:Set) (hd: Disjoint B C) :
250+
EqualCard ((A ^ B) ×ˢ (A ^ C)) (A ^ (B ∪ C)) := by sorry
251+
249252
example (a b c:ℕ): (a^b) * a^c = a^(b+c) := by sorry
250253

251254
/-- Exercise 3.6.7 -/
@@ -264,6 +267,26 @@ theorem SetTheory.Set.card_union_add_card_inter {A B:Set} (hA: A.finite) (hB: B.
264267
theorem SetTheory.Set.pigeonhole_principle {n:ℕ} {A: Fin n → Set}
265268
(hA: ∀ i, (A i).finite) (hAcard: (iUnion _ A).card > n) : ∃ i, (A i).card ≥ 2 := by sorry
266269

270+
/-- Exercise 3.6.11 -/
271+
theorem SetTheory.Set.two_to_two_iff {X Y:Set} (f: X → Y): Function.Injective f ↔
272+
∀ S ⊆ X, S.card = 2 → (image f S).card = 2 := by sorry
273+
274+
/-- Exercise 3.6.12 -/
275+
def SetTheory.Set.Permutations (n: ℕ): Set := (Fin n ^ Fin n).specify (fun F ↦
276+
let f := Classical.choose ((powerset_axiom F).mp F.prop)
277+
Function.Bijective f)
278+
279+
/-- Exercise 3.6.12 (i) -/
280+
theorem SetTheory.Set.Permutations_finite (n: ℕ): (Permutations n).finite := by sorry
281+
282+
/-- Exercise 3.6.12 (i) -/
283+
theorem SetTheory.Set.Permutations_ih (n: ℕ):
284+
(Permutations (n + 1)).card = (n + 1) * (Permutations n).card := by sorry
285+
286+
/-- Exercise 3.6.12 (ii) -/
287+
theorem SetTheory.Set.Permutations_card (n: ℕ):
288+
(Permutations n).card = Nat.factorial n := by sorry
289+
267290
/-- Connections with Mathlib's `Nat.card` -/
268291
theorem SetTheory.Set.card_eq_nat_card {X:Set} : X.card = Nat.card X := by sorry
269292

0 commit comments

Comments
 (0)