/-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad, Minchao Wu, Mario Carneiro
-/
module
public import Mathlib.Algebra.Group.Embedding
public import Mathlib.Algebra.Group.Nat.Defs
public import Mathlib.Data.Finset.Image
set_option doc.verso true
set_option doc.verso.suggestions false
/-!
# `Finset.range` and addition of natural numbers
-/
public section
assert_not_exists MonoidWithZero MulAction IsOrderedMonoid
variable {α β : Type*}
namespace Finset
theorem disjoint_range_addLeftEmbedding (a : ℕ) (s : Finset ℕ) :
Disjoint (range a) (map (addLeftEmbedding a) s) := by
simp_rw [disjoint_left, mem_map, mem_range, addLeftEmbedding_apply]
rintro _ h ⟨l, -, rfl⟩
lia
theorem disjoint_range_addRightEmbedding (a : ℕ) (s : Finset ℕ) :
Disjoint (range a) (map (addRightEmbedding a) s) := by
rw [← addLeftEmbedding_eq_addRightEmbedding]
apply disjoint_range_addLeftEmbedding
theorem range_add (a b : ℕ) : range (a + b) = range a ∪ (range b).map (addLeftEmbedding a) := by
rw [← val_inj, union_val]
exact Multiset.range_add_eq_union a b
end Finset
¤ Dauer der Verarbeitung: 0.1 Sekunden
(vorverarbeitet am 2026-11-24)
¤
*© Formatika GbR, Deutschland