Skip to content

Commit

Permalink
feat(number_theory/divisors): mem_divisors_self (#10359)
Browse files Browse the repository at this point in the history
From flt-regular.



Co-authored-by: Eric <37984851+ericrbg@users.noreply.github.com>
  • Loading branch information
ericrbg and ericrbg committed Nov 16, 2021
1 parent 8f7971a commit bce0ede
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/number_theory/divisors.lean
Expand Up @@ -91,6 +91,8 @@ begin
apply nat.le_of_dvd (nat.succ_pos m) hdvd }
end

lemma mem_divisors_self (n : ℕ) (h : n ≠ 0) : n ∈ n.divisors := mem_divisors.2 ⟨dvd_rfl, h⟩

lemma dvd_of_mem_divisors {m : ℕ} (h : n ∈ divisors m) : n ∣ m :=
begin
cases m,
Expand Down

0 comments on commit bce0ede

Please sign in to comment.