/-
Copyright 2026 The Formal Conjectures Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-/
import FormalConjecturesUtilPractical numbers
A positive integer $n$ is called a practical number (or panarithmic number) if every positive integer $m \le n$ can be represented as a sum of distinct divisors of $n$.
References:
namespace OeisA5153A positive integer $n$ is practical if every $m \le n$ can be represented as a sum of distinct divisors of $n$.
def A (n : ℕ) : Prop :=
0 < n ∧ Nat.IsPractical n$1$ is a practical number.
@[category test, AMS 11]
theorem a_1 : A 1 := ⊢ A 1
refine ⟨⊢ 0 < 1 All goals completed! 🐙, fun m hm => ?_⟩
m:ℕhm:0 ≤ 1⊢ 0 ∈ subsetSums ↑(Nat.divisors 1)m:ℕhm:1 ≤ 1⊢ 1 ∈ subsetSums ↑(Nat.divisors 1)
m:ℕhm:0 ≤ 1⊢ 0 ∈ subsetSums ↑(Nat.divisors 1) exact ⟨∅, m:ℕhm:0 ≤ 1⊢ ↑∅ ⊆ ↑(Nat.divisors 1) All goals completed! 🐙, m:ℕhm:0 ≤ 1⊢ 0 = ∑ i ∈ ∅, i All goals completed! 🐙⟩
m:ℕhm:1 ≤ 1⊢ 1 ∈ subsetSums ↑(Nat.divisors 1) exact ⟨{1}, m:ℕhm:1 ≤ 1⊢ ↑{1} ⊆ ↑(Nat.divisors 1) All goals completed! 🐙, m:ℕhm:1 ≤ 1⊢ 1 = ∑ i ∈ {1}, i All goals completed! 🐙⟩$2$ is a practical number.
@[category test, AMS 11]
theorem a_2 : A 2 := ⊢ A 2
refine ⟨⊢ 0 < 2 All goals completed! 🐙, fun m hm => ?_⟩
m:ℕhm:0 ≤ 2⊢ 0 ∈ subsetSums ↑(Nat.divisors 2)m:ℕhm:1 ≤ 2⊢ 1 ∈ subsetSums ↑(Nat.divisors 2)m:ℕhm:2 ≤ 2⊢ 2 ∈ subsetSums ↑(Nat.divisors 2)
m:ℕhm:0 ≤ 2⊢ 0 ∈ subsetSums ↑(Nat.divisors 2) exact ⟨∅, m:ℕhm:0 ≤ 2⊢ ↑∅ ⊆ ↑(Nat.divisors 2) All goals completed! 🐙, m:ℕhm:0 ≤ 2⊢ 0 = ∑ i ∈ ∅, i All goals completed! 🐙⟩
m:ℕhm:1 ≤ 2⊢ 1 ∈ subsetSums ↑(Nat.divisors 2) exact ⟨{1}, m:ℕhm:1 ≤ 2⊢ ↑{1} ⊆ ↑(Nat.divisors 2) All goals completed! 🐙, m:ℕhm:1 ≤ 2⊢ 1 = ∑ i ∈ {1}, i All goals completed! 🐙⟩
m:ℕhm:2 ≤ 2⊢ 2 ∈ subsetSums ↑(Nat.divisors 2) exact ⟨{2}, m:ℕhm:2 ≤ 2⊢ ↑{2} ⊆ ↑(Nat.divisors 2) All goals completed! 🐙, m:ℕhm:2 ≤ 2⊢ 2 = ∑ i ∈ {2}, i All goals completed! 🐙⟩$4$ is a practical number.
m:ℕhd:Nat.divisors 4 = {1, 2, 4}hm:4 ≤ 4⊢ {4} ⊆ {1, 2, 4}; decide All goals completed! 🐙, by m:ℕhd:Nat.divisors 4 = {1, 2, 4}hm:4 ≤ 4⊢ 4 = ∑ i ∈ {4}, i simp All goals completed! 🐙⟩$6$ is a practical number.
@[category test, AMS 11]
theorem a_6 : A 6 := by ⊢ A 6
refine ⟨by ⊢ 0 < 6 decide All goals completed! 🐙, fun m hm => ?_⟩
have hd : Nat.divisors 6 = {1, 2, 3, 6} := by ⊢ A 6 m:ℕhm:m ≤ 6hd:Nat.divisors 6 = {1, 2, 3, 6}⊢ m ∈ subsetSums ↑(Nat.divisors 6) decide m:ℕhm:m ≤ 6hd:Nat.divisors 6 = {1, 2, 3, 6}⊢ m ∈ subsetSums ↑(Nat.divisors 6) m:ℕhm:m ≤ 6hd:Nat.divisors 6 = {1, 2, 3, 6}⊢ m ∈ subsetSums ↑(Nat.divisors 6)
interval_cases m «0» m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:0 ≤ 6⊢ 0 ∈ subsetSums ↑(Nat.divisors 6)«1» m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:1 ≤ 6⊢ 1 ∈ subsetSums ↑(Nat.divisors 6)«2» m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:2 ≤ 6⊢ 2 ∈ subsetSums ↑(Nat.divisors 6)«3» m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:3 ≤ 6⊢ 3 ∈ subsetSums ↑(Nat.divisors 6)«4» m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:4 ≤ 6⊢ 4 ∈ subsetSums ↑(Nat.divisors 6)«5» m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:5 ≤ 6⊢ 5 ∈ subsetSums ↑(Nat.divisors 6)«6» m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:6 ≤ 6⊢ 6 ∈ subsetSums ↑(Nat.divisors 6)
· «0» m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:0 ≤ 6⊢ 0 ∈ subsetSums ↑(Nat.divisors 6) exact ⟨∅, by m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:0 ≤ 6⊢ ↑∅ ⊆ ↑(Nat.divisors 6) simp All goals completed! 🐙, by m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:0 ≤ 6⊢ 0 = ∑ i ∈ ∅, i simp All goals completed! 🐙⟩
· «1» m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:1 ≤ 6⊢ 1 ∈ subsetSums ↑(Nat.divisors 6) exact ⟨{1}, by m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:1 ≤ 6⊢ ↑{1} ⊆ ↑(Nat.divisors 6) rw [hd, m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:1 ≤ 6⊢ ↑{1} ⊆ ↑{1, 2, 3, 6} m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:1 ≤ 6⊢ {1} ⊆ {1, 2, 3, 6} Finset.coe_subset m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:1 ≤ 6⊢ {1} ⊆ {1, 2, 3, 6} m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:1 ≤ 6⊢ {1} ⊆ {1, 2, 3, 6}] m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:1 ≤ 6⊢ {1} ⊆ {1, 2, 3, 6}; decide All goals completed! 🐙, by m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:1 ≤ 6⊢ 1 = ∑ i ∈ {1}, i simp All goals completed! 🐙⟩
· «2» m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:2 ≤ 6⊢ 2 ∈ subsetSums ↑(Nat.divisors 6) exact ⟨{2}, by m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:2 ≤ 6⊢ ↑{2} ⊆ ↑(Nat.divisors 6) rw [hd, m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:2 ≤ 6⊢ ↑{2} ⊆ ↑{1, 2, 3, 6} m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:2 ≤ 6⊢ {2} ⊆ {1, 2, 3, 6} Finset.coe_subset m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:2 ≤ 6⊢ {2} ⊆ {1, 2, 3, 6} m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:2 ≤ 6⊢ {2} ⊆ {1, 2, 3, 6}] m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:2 ≤ 6⊢ {2} ⊆ {1, 2, 3, 6}; decide All goals completed! 🐙, by m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:2 ≤ 6⊢ 2 = ∑ i ∈ {2}, i simp All goals completed! 🐙⟩
· «3» m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:3 ≤ 6⊢ 3 ∈ subsetSums ↑(Nat.divisors 6) exact ⟨{3}, by m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:3 ≤ 6⊢ ↑{3} ⊆ ↑(Nat.divisors 6) rw [hd, m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:3 ≤ 6⊢ ↑{3} ⊆ ↑{1, 2, 3, 6} m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:3 ≤ 6⊢ {3} ⊆ {1, 2, 3, 6} Finset.coe_subset m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:3 ≤ 6⊢ {3} ⊆ {1, 2, 3, 6} m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:3 ≤ 6⊢ {3} ⊆ {1, 2, 3, 6}] m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:3 ≤ 6⊢ {3} ⊆ {1, 2, 3, 6}; decide All goals completed! 🐙, by m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:3 ≤ 6⊢ 3 = ∑ i ∈ {3}, i simp All goals completed! 🐙⟩
· «4» m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:4 ≤ 6⊢ 4 ∈ subsetSums ↑(Nat.divisors 6) exact ⟨{1, 3}, by m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:4 ≤ 6⊢ ↑{1, 3} ⊆ ↑(Nat.divisors 6) rw [hd, m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:4 ≤ 6⊢ ↑{1, 3} ⊆ ↑{1, 2, 3, 6} m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:4 ≤ 6⊢ {1, 3} ⊆ {1, 2, 3, 6} Finset.coe_subset m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:4 ≤ 6⊢ {1, 3} ⊆ {1, 2, 3, 6} m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:4 ≤ 6⊢ {1, 3} ⊆ {1, 2, 3, 6}] m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:4 ≤ 6⊢ {1, 3} ⊆ {1, 2, 3, 6}; decide All goals completed! 🐙, by m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:4 ≤ 6⊢ 4 = ∑ i ∈ {1, 3}, i decide All goals completed! 🐙⟩
· «5» m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:5 ≤ 6⊢ 5 ∈ subsetSums ↑(Nat.divisors 6) exact ⟨{2, 3}, by m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:5 ≤ 6⊢ ↑{2, 3} ⊆ ↑(Nat.divisors 6) rw [hd, m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:5 ≤ 6⊢ ↑{2, 3} ⊆ ↑{1, 2, 3, 6} m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:5 ≤ 6⊢ {2, 3} ⊆ {1, 2, 3, 6} Finset.coe_subset m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:5 ≤ 6⊢ {2, 3} ⊆ {1, 2, 3, 6} m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:5 ≤ 6⊢ {2, 3} ⊆ {1, 2, 3, 6}] m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:5 ≤ 6⊢ {2, 3} ⊆ {1, 2, 3, 6}; decide All goals completed! 🐙, by m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:5 ≤ 6⊢ 5 = ∑ i ∈ {2, 3}, i decide All goals completed! 🐙⟩
· «6» m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:6 ≤ 6⊢ 6 ∈ subsetSums ↑(Nat.divisors 6) exact ⟨{6}, by m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:6 ≤ 6⊢ ↑{6} ⊆ ↑(Nat.divisors 6) rw [hd, m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:6 ≤ 6⊢ ↑{6} ⊆ ↑{1, 2, 3, 6} m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:6 ≤ 6⊢ {6} ⊆ {1, 2, 3, 6} Finset.coe_subset m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:6 ≤ 6⊢ {6} ⊆ {1, 2, 3, 6} m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:6 ≤ 6⊢ {6} ⊆ {1, 2, 3, 6}] m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:6 ≤ 6⊢ {6} ⊆ {1, 2, 3, 6}; decide All goals completed! 🐙, by m:ℕhd:Nat.divisors 6 = {1, 2, 3, 6}hm:6 ≤ 6⊢ 6 = ∑ i ∈ {6}, i simp All goals completed! 🐙⟩$8$ is a practical number.
@[category test, AMS 11]
theorem a_8 : A 8 := by ⊢ A 8
refine ⟨by ⊢ 0 < 8 decide All goals completed! 🐙, fun m hm => ?_⟩
have hd : Nat.divisors 8 = {1, 2, 4, 8} := by ⊢ A 8 m:ℕhm:m ≤ 8hd:Nat.divisors 8 = {1, 2, 4, 8}⊢ m ∈ subsetSums ↑(Nat.divisors 8) decide m:ℕhm:m ≤ 8hd:Nat.divisors 8 = {1, 2, 4, 8}⊢ m ∈ subsetSums ↑(Nat.divisors 8) m:ℕhm:m ≤ 8hd:Nat.divisors 8 = {1, 2, 4, 8}⊢ m ∈ subsetSums ↑(Nat.divisors 8)
interval_cases m «0» m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:0 ≤ 8⊢ 0 ∈ subsetSums ↑(Nat.divisors 8)«1» m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:1 ≤ 8⊢ 1 ∈ subsetSums ↑(Nat.divisors 8)«2» m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:2 ≤ 8⊢ 2 ∈ subsetSums ↑(Nat.divisors 8)«3» m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:3 ≤ 8⊢ 3 ∈ subsetSums ↑(Nat.divisors 8)«4» m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:4 ≤ 8⊢ 4 ∈ subsetSums ↑(Nat.divisors 8)«5» m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:5 ≤ 8⊢ 5 ∈ subsetSums ↑(Nat.divisors 8)«6» m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:6 ≤ 8⊢ 6 ∈ subsetSums ↑(Nat.divisors 8)«7» m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:7 ≤ 8⊢ 7 ∈ subsetSums ↑(Nat.divisors 8)«8» m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:8 ≤ 8⊢ 8 ∈ subsetSums ↑(Nat.divisors 8)
· «0» m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:0 ≤ 8⊢ 0 ∈ subsetSums ↑(Nat.divisors 8) exact ⟨∅, by m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:0 ≤ 8⊢ ↑∅ ⊆ ↑(Nat.divisors 8) simp All goals completed! 🐙, by m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:0 ≤ 8⊢ 0 = ∑ i ∈ ∅, i simp All goals completed! 🐙⟩
· «1» m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:1 ≤ 8⊢ 1 ∈ subsetSums ↑(Nat.divisors 8) exact ⟨{1}, by m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:1 ≤ 8⊢ ↑{1} ⊆ ↑(Nat.divisors 8) rw [hd, m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:1 ≤ 8⊢ ↑{1} ⊆ ↑{1, 2, 4, 8} m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:1 ≤ 8⊢ {1} ⊆ {1, 2, 4, 8} Finset.coe_subset m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:1 ≤ 8⊢ {1} ⊆ {1, 2, 4, 8} m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:1 ≤ 8⊢ {1} ⊆ {1, 2, 4, 8}] m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:1 ≤ 8⊢ {1} ⊆ {1, 2, 4, 8}; decide All goals completed! 🐙, by m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:1 ≤ 8⊢ 1 = ∑ i ∈ {1}, i simp All goals completed! 🐙⟩
· «2» m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:2 ≤ 8⊢ 2 ∈ subsetSums ↑(Nat.divisors 8) exact ⟨{2}, by m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:2 ≤ 8⊢ ↑{2} ⊆ ↑(Nat.divisors 8) rw [hd, m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:2 ≤ 8⊢ ↑{2} ⊆ ↑{1, 2, 4, 8} m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:2 ≤ 8⊢ {2} ⊆ {1, 2, 4, 8} Finset.coe_subset m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:2 ≤ 8⊢ {2} ⊆ {1, 2, 4, 8} m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:2 ≤ 8⊢ {2} ⊆ {1, 2, 4, 8}] m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:2 ≤ 8⊢ {2} ⊆ {1, 2, 4, 8}; decide All goals completed! 🐙, by m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:2 ≤ 8⊢ 2 = ∑ i ∈ {2}, i simp All goals completed! 🐙⟩
· «3» m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:3 ≤ 8⊢ 3 ∈ subsetSums ↑(Nat.divisors 8) exact ⟨{1, 2}, by m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:3 ≤ 8⊢ ↑{1, 2} ⊆ ↑(Nat.divisors 8) rw [hd, m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:3 ≤ 8⊢ ↑{1, 2} ⊆ ↑{1, 2, 4, 8} m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:3 ≤ 8⊢ {1, 2} ⊆ {1, 2, 4, 8} Finset.coe_subset m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:3 ≤ 8⊢ {1, 2} ⊆ {1, 2, 4, 8} m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:3 ≤ 8⊢ {1, 2} ⊆ {1, 2, 4, 8}] m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:3 ≤ 8⊢ {1, 2} ⊆ {1, 2, 4, 8}; decide All goals completed! 🐙, by m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:3 ≤ 8⊢ 3 = ∑ i ∈ {1, 2}, i decide All goals completed! 🐙⟩
· «4» m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:4 ≤ 8⊢ 4 ∈ subsetSums ↑(Nat.divisors 8) exact ⟨{4}, by m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:4 ≤ 8⊢ ↑{4} ⊆ ↑(Nat.divisors 8) rw [hd, m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:4 ≤ 8⊢ ↑{4} ⊆ ↑{1, 2, 4, 8} m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:4 ≤ 8⊢ {4} ⊆ {1, 2, 4, 8} Finset.coe_subset m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:4 ≤ 8⊢ {4} ⊆ {1, 2, 4, 8} m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:4 ≤ 8⊢ {4} ⊆ {1, 2, 4, 8}] m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:4 ≤ 8⊢ {4} ⊆ {1, 2, 4, 8}; decide All goals completed! 🐙, by m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:4 ≤ 8⊢ 4 = ∑ i ∈ {4}, i simp All goals completed! 🐙⟩
· «5» m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:5 ≤ 8⊢ 5 ∈ subsetSums ↑(Nat.divisors 8) exact ⟨{1, 4}, by m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:5 ≤ 8⊢ ↑{1, 4} ⊆ ↑(Nat.divisors 8) rw [hd, m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:5 ≤ 8⊢ ↑{1, 4} ⊆ ↑{1, 2, 4, 8} m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:5 ≤ 8⊢ {1, 4} ⊆ {1, 2, 4, 8} Finset.coe_subset m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:5 ≤ 8⊢ {1, 4} ⊆ {1, 2, 4, 8} m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:5 ≤ 8⊢ {1, 4} ⊆ {1, 2, 4, 8}] m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:5 ≤ 8⊢ {1, 4} ⊆ {1, 2, 4, 8}; decide All goals completed! 🐙, by m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:5 ≤ 8⊢ 5 = ∑ i ∈ {1, 4}, i decide All goals completed! 🐙⟩
· «6» m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:6 ≤ 8⊢ 6 ∈ subsetSums ↑(Nat.divisors 8) exact ⟨{2, 4}, by m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:6 ≤ 8⊢ ↑{2, 4} ⊆ ↑(Nat.divisors 8) rw [hd, m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:6 ≤ 8⊢ ↑{2, 4} ⊆ ↑{1, 2, 4, 8} m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:6 ≤ 8⊢ {2, 4} ⊆ {1, 2, 4, 8} Finset.coe_subset m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:6 ≤ 8⊢ {2, 4} ⊆ {1, 2, 4, 8} m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:6 ≤ 8⊢ {2, 4} ⊆ {1, 2, 4, 8}] m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:6 ≤ 8⊢ {2, 4} ⊆ {1, 2, 4, 8}; decide All goals completed! 🐙, by m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:6 ≤ 8⊢ 6 = ∑ i ∈ {2, 4}, i decide All goals completed! 🐙⟩
· «7» m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:7 ≤ 8⊢ 7 ∈ subsetSums ↑(Nat.divisors 8) exact ⟨{1, 2, 4}, by m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:7 ≤ 8⊢ ↑{1, 2, 4} ⊆ ↑(Nat.divisors 8) rw [hd, m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:7 ≤ 8⊢ ↑{1, 2, 4} ⊆ ↑{1, 2, 4, 8} m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:7 ≤ 8⊢ {1, 2, 4} ⊆ {1, 2, 4, 8} Finset.coe_subset m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:7 ≤ 8⊢ {1, 2, 4} ⊆ {1, 2, 4, 8} m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:7 ≤ 8⊢ {1, 2, 4} ⊆ {1, 2, 4, 8}] m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:7 ≤ 8⊢ {1, 2, 4} ⊆ {1, 2, 4, 8}; decide All goals completed! 🐙, by m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:7 ≤ 8⊢ 7 = ∑ i ∈ {1, 2, 4}, i decide All goals completed! 🐙⟩
· «8» m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:8 ≤ 8⊢ 8 ∈ subsetSums ↑(Nat.divisors 8) exact ⟨{8}, by m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:8 ≤ 8⊢ ↑{8} ⊆ ↑(Nat.divisors 8) rw [hd, m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:8 ≤ 8⊢ ↑{8} ⊆ ↑{1, 2, 4, 8} m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:8 ≤ 8⊢ {8} ⊆ {1, 2, 4, 8} Finset.coe_subset m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:8 ≤ 8⊢ {8} ⊆ {1, 2, 4, 8} m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:8 ≤ 8⊢ {8} ⊆ {1, 2, 4, 8}] m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:8 ≤ 8⊢ {8} ⊆ {1, 2, 4, 8}; decide All goals completed! 🐙, by m:ℕhd:Nat.divisors 8 = {1, 2, 4, 8}hm:8 ≤ 8⊢ 8 = ∑ i ∈ {8}, i simp All goals completed! 🐙⟩Conjecture: every odd number, beginning with 3, is the sum of a prime number and a practical number.
Hal M. Switkay, Jan 28 2023
@[category research open, AMS 11]
theorem conjecture (n : ℕ) (hn : 3 ≤ n) (hodd : Odd n) :
∃ p q : ℕ, p.Prime ∧ A q ∧ n = p + q := by n:ℕhn:3 ≤ nhodd:Odd n⊢ ∃ p q, Nat.Prime p ∧ A q ∧ n = p + q
sorry All goals completed! 🐙end OeisA5153