/- 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. -/ module public import FormalConjecturesUtil

Erdős Problem 768

References:

    erdosproblems.com/768

    [Er74b] Erdős, P., Remarks on some problems in number theory. Math. Balkanica (1974), 197–202.

@[expose] public sectionnamespace Erdos768open Filter Asymptotics

The defining property of $A$: for every prime $p \mid n$, there is some $d \mid n$ with $d>1$ and $d \equiv 1 \pmod p$.

def HasErdos768Property (n : ℕ) : Prop := ∀ p, p.Prime → p ∣ n → ∃ d, d ∣ n ∧ 1 < d ∧ d % p = 1

The divisors $3$, $10$ and $6$ witness the property for the prime factors of $30$.

p:ℕhp:Nat.Prime phpd:p ∣ 30hp_le:p ≤ 30⊢ ∃ d, d ∣ 30 ∧ 1 < d ∧ d % p = 1 p:ℕhp:Nat.Prime phpd:p ∣ 30hp_le:p ≤ 30⊢ (if p = 2 then 3 else if p = 3 then 10 else 6) ∣ 30 ∧ (1 < if p = 2 then 3 else if p = 3 then 10 else 6) ∧ (if p = 2 then 3 else if p = 3 then 10 else 6) % p = 1 p:ℕhp:Nat.Prime 0hpd:0 ∣ 30hp_le:0 ≤ 30⊢ (if 0 = 2 then 3 else if 0 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 0 = 2 then 3 else if 0 = 3 then 10 else 6) ∧ (if 0 = 2 then 3 else if 0 = 3 then 10 else 6) % 0 = 1p:ℕhp:Nat.Prime 1hpd:1 ∣ 30hp_le:1 ≤ 30⊢ (if 1 = 2 then 3 else if 1 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 1 = 2 then 3 else if 1 = 3 then 10 else 6) ∧ (if 1 = 2 then 3 else if 1 = 3 then 10 else 6) % 1 = 1p:ℕhp:Nat.Prime 2hpd:2 ∣ 30hp_le:2 ≤ 30⊢ (if 2 = 2 then 3 else if 2 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 2 = 2 then 3 else if 2 = 3 then 10 else 6) ∧ (if 2 = 2 then 3 else if 2 = 3 then 10 else 6) % 2 = 1p:ℕhp:Nat.Prime 3hpd:3 ∣ 30hp_le:3 ≤ 30⊢ (if 3 = 2 then 3 else if 3 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 3 = 2 then 3 else if 3 = 3 then 10 else 6) ∧ (if 3 = 2 then 3 else if 3 = 3 then 10 else 6) % 3 = 1p:ℕhp:Nat.Prime 4hpd:4 ∣ 30hp_le:4 ≤ 30⊢ (if 4 = 2 then 3 else if 4 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 4 = 2 then 3 else if 4 = 3 then 10 else 6) ∧ (if 4 = 2 then 3 else if 4 = 3 then 10 else 6) % 4 = 1p:ℕhp:Nat.Prime 5hpd:5 ∣ 30hp_le:5 ≤ 30⊢ (if 5 = 2 then 3 else if 5 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 5 = 2 then 3 else if 5 = 3 then 10 else 6) ∧ (if 5 = 2 then 3 else if 5 = 3 then 10 else 6) % 5 = 1p:ℕhp:Nat.Prime 6hpd:6 ∣ 30hp_le:6 ≤ 30⊢ (if 6 = 2 then 3 else if 6 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 6 = 2 then 3 else if 6 = 3 then 10 else 6) ∧ (if 6 = 2 then 3 else if 6 = 3 then 10 else 6) % 6 = 1p:ℕhp:Nat.Prime 7hpd:7 ∣ 30hp_le:7 ≤ 30⊢ (if 7 = 2 then 3 else if 7 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 7 = 2 then 3 else if 7 = 3 then 10 else 6) ∧ (if 7 = 2 then 3 else if 7 = 3 then 10 else 6) % 7 = 1p:ℕhp:Nat.Prime 8hpd:8 ∣ 30hp_le:8 ≤ 30⊢ (if 8 = 2 then 3 else if 8 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 8 = 2 then 3 else if 8 = 3 then 10 else 6) ∧ (if 8 = 2 then 3 else if 8 = 3 then 10 else 6) % 8 = 1p:ℕhp:Nat.Prime 9hpd:9 ∣ 30hp_le:9 ≤ 30⊢ (if 9 = 2 then 3 else if 9 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 9 = 2 then 3 else if 9 = 3 then 10 else 6) ∧ (if 9 = 2 then 3 else if 9 = 3 then 10 else 6) % 9 = 1p:ℕhp:Nat.Prime 10hpd:10 ∣ 30hp_le:10 ≤ 30⊢ (if 10 = 2 then 3 else if 10 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 10 = 2 then 3 else if 10 = 3 then 10 else 6) ∧ (if 10 = 2 then 3 else if 10 = 3 then 10 else 6) % 10 = 1p:ℕhp:Nat.Prime 11hpd:11 ∣ 30hp_le:11 ≤ 30⊢ (if 11 = 2 then 3 else if 11 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 11 = 2 then 3 else if 11 = 3 then 10 else 6) ∧ (if 11 = 2 then 3 else if 11 = 3 then 10 else 6) % 11 = 1p:ℕhp:Nat.Prime 12hpd:12 ∣ 30hp_le:12 ≤ 30⊢ (if 12 = 2 then 3 else if 12 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 12 = 2 then 3 else if 12 = 3 then 10 else 6) ∧ (if 12 = 2 then 3 else if 12 = 3 then 10 else 6) % 12 = 1p:ℕhp:Nat.Prime 13hpd:13 ∣ 30hp_le:13 ≤ 30⊢ (if 13 = 2 then 3 else if 13 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 13 = 2 then 3 else if 13 = 3 then 10 else 6) ∧ (if 13 = 2 then 3 else if 13 = 3 then 10 else 6) % 13 = 1p:ℕhp:Nat.Prime 14hpd:14 ∣ 30hp_le:14 ≤ 30⊢ (if 14 = 2 then 3 else if 14 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 14 = 2 then 3 else if 14 = 3 then 10 else 6) ∧ (if 14 = 2 then 3 else if 14 = 3 then 10 else 6) % 14 = 1p:ℕhp:Nat.Prime 15hpd:15 ∣ 30hp_le:15 ≤ 30⊢ (if 15 = 2 then 3 else if 15 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 15 = 2 then 3 else if 15 = 3 then 10 else 6) ∧ (if 15 = 2 then 3 else if 15 = 3 then 10 else 6) % 15 = 1p:ℕhp:Nat.Prime 16hpd:16 ∣ 30hp_le:16 ≤ 30⊢ (if 16 = 2 then 3 else if 16 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 16 = 2 then 3 else if 16 = 3 then 10 else 6) ∧ (if 16 = 2 then 3 else if 16 = 3 then 10 else 6) % 16 = 1p:ℕhp:Nat.Prime 17hpd:17 ∣ 30hp_le:17 ≤ 30⊢ (if 17 = 2 then 3 else if 17 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 17 = 2 then 3 else if 17 = 3 then 10 else 6) ∧ (if 17 = 2 then 3 else if 17 = 3 then 10 else 6) % 17 = 1p:ℕhp:Nat.Prime 18hpd:18 ∣ 30hp_le:18 ≤ 30⊢ (if 18 = 2 then 3 else if 18 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 18 = 2 then 3 else if 18 = 3 then 10 else 6) ∧ (if 18 = 2 then 3 else if 18 = 3 then 10 else 6) % 18 = 1p:ℕhp:Nat.Prime 19hpd:19 ∣ 30hp_le:19 ≤ 30⊢ (if 19 = 2 then 3 else if 19 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 19 = 2 then 3 else if 19 = 3 then 10 else 6) ∧ (if 19 = 2 then 3 else if 19 = 3 then 10 else 6) % 19 = 1p:ℕhp:Nat.Prime 20hpd:20 ∣ 30hp_le:20 ≤ 30⊢ (if 20 = 2 then 3 else if 20 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 20 = 2 then 3 else if 20 = 3 then 10 else 6) ∧ (if 20 = 2 then 3 else if 20 = 3 then 10 else 6) % 20 = 1p:ℕhp:Nat.Prime 21hpd:21 ∣ 30hp_le:21 ≤ 30⊢ (if 21 = 2 then 3 else if 21 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 21 = 2 then 3 else if 21 = 3 then 10 else 6) ∧ (if 21 = 2 then 3 else if 21 = 3 then 10 else 6) % 21 = 1p:ℕhp:Nat.Prime 22hpd:22 ∣ 30hp_le:22 ≤ 30⊢ (if 22 = 2 then 3 else if 22 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 22 = 2 then 3 else if 22 = 3 then 10 else 6) ∧ (if 22 = 2 then 3 else if 22 = 3 then 10 else 6) % 22 = 1p:ℕhp:Nat.Prime 23hpd:23 ∣ 30hp_le:23 ≤ 30⊢ (if 23 = 2 then 3 else if 23 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 23 = 2 then 3 else if 23 = 3 then 10 else 6) ∧ (if 23 = 2 then 3 else if 23 = 3 then 10 else 6) % 23 = 1p:ℕhp:Nat.Prime 24hpd:24 ∣ 30hp_le:24 ≤ 30⊢ (if 24 = 2 then 3 else if 24 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 24 = 2 then 3 else if 24 = 3 then 10 else 6) ∧ (if 24 = 2 then 3 else if 24 = 3 then 10 else 6) % 24 = 1p:ℕhp:Nat.Prime 25hpd:25 ∣ 30hp_le:25 ≤ 30⊢ (if 25 = 2 then 3 else if 25 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 25 = 2 then 3 else if 25 = 3 then 10 else 6) ∧ (if 25 = 2 then 3 else if 25 = 3 then 10 else 6) % 25 = 1p:ℕhp:Nat.Prime 26hpd:26 ∣ 30hp_le:26 ≤ 30⊢ (if 26 = 2 then 3 else if 26 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 26 = 2 then 3 else if 26 = 3 then 10 else 6) ∧ (if 26 = 2 then 3 else if 26 = 3 then 10 else 6) % 26 = 1p:ℕhp:Nat.Prime 27hpd:27 ∣ 30hp_le:27 ≤ 30⊢ (if 27 = 2 then 3 else if 27 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 27 = 2 then 3 else if 27 = 3 then 10 else 6) ∧ (if 27 = 2 then 3 else if 27 = 3 then 10 else 6) % 27 = 1p:ℕhp:Nat.Prime 28hpd:28 ∣ 30hp_le:28 ≤ 30⊢ (if 28 = 2 then 3 else if 28 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 28 = 2 then 3 else if 28 = 3 then 10 else 6) ∧ (if 28 = 2 then 3 else if 28 = 3 then 10 else 6) % 28 = 1p:ℕhp:Nat.Prime 29hpd:29 ∣ 30hp_le:29 ≤ 30⊢ (if 29 = 2 then 3 else if 29 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 29 = 2 then 3 else if 29 = 3 then 10 else 6) ∧ (if 29 = 2 then 3 else if 29 = 3 then 10 else 6) % 29 = 1p:ℕhp:Nat.Prime 30hpd:30 ∣ 30hp_le:30 ≤ 30⊢ (if 30 = 2 then 3 else if 30 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 30 = 2 then 3 else if 30 = 3 then 10 else 6) ∧ (if 30 = 2 then 3 else if 30 = 3 then 10 else 6) % 30 = 1 p:ℕhp:Nat.Prime 0hpd:0 ∣ 30hp_le:0 ≤ 30⊢ (if 0 = 2 then 3 else if 0 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 0 = 2 then 3 else if 0 = 3 then 10 else 6) ∧ (if 0 = 2 then 3 else if 0 = 3 then 10 else 6) % 0 = 1p:ℕhp:Nat.Prime 1hpd:1 ∣ 30hp_le:1 ≤ 30⊢ (if 1 = 2 then 3 else if 1 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 1 = 2 then 3 else if 1 = 3 then 10 else 6) ∧ (if 1 = 2 then 3 else if 1 = 3 then 10 else 6) % 1 = 1p:ℕhp:Nat.Prime 2hpd:2 ∣ 30hp_le:2 ≤ 30⊢ (if 2 = 2 then 3 else if 2 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 2 = 2 then 3 else if 2 = 3 then 10 else 6) ∧ (if 2 = 2 then 3 else if 2 = 3 then 10 else 6) % 2 = 1p:ℕhp:Nat.Prime 3hpd:3 ∣ 30hp_le:3 ≤ 30⊢ (if 3 = 2 then 3 else if 3 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 3 = 2 then 3 else if 3 = 3 then 10 else 6) ∧ (if 3 = 2 then 3 else if 3 = 3 then 10 else 6) % 3 = 1p:ℕhp:Nat.Prime 4hpd:4 ∣ 30hp_le:4 ≤ 30⊢ (if 4 = 2 then 3 else if 4 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 4 = 2 then 3 else if 4 = 3 then 10 else 6) ∧ (if 4 = 2 then 3 else if 4 = 3 then 10 else 6) % 4 = 1p:ℕhp:Nat.Prime 5hpd:5 ∣ 30hp_le:5 ≤ 30⊢ (if 5 = 2 then 3 else if 5 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 5 = 2 then 3 else if 5 = 3 then 10 else 6) ∧ (if 5 = 2 then 3 else if 5 = 3 then 10 else 6) % 5 = 1p:ℕhp:Nat.Prime 6hpd:6 ∣ 30hp_le:6 ≤ 30⊢ (if 6 = 2 then 3 else if 6 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 6 = 2 then 3 else if 6 = 3 then 10 else 6) ∧ (if 6 = 2 then 3 else if 6 = 3 then 10 else 6) % 6 = 1p:ℕhp:Nat.Prime 7hpd:7 ∣ 30hp_le:7 ≤ 30⊢ (if 7 = 2 then 3 else if 7 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 7 = 2 then 3 else if 7 = 3 then 10 else 6) ∧ (if 7 = 2 then 3 else if 7 = 3 then 10 else 6) % 7 = 1p:ℕhp:Nat.Prime 8hpd:8 ∣ 30hp_le:8 ≤ 30⊢ (if 8 = 2 then 3 else if 8 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 8 = 2 then 3 else if 8 = 3 then 10 else 6) ∧ (if 8 = 2 then 3 else if 8 = 3 then 10 else 6) % 8 = 1p:ℕhp:Nat.Prime 9hpd:9 ∣ 30hp_le:9 ≤ 30⊢ (if 9 = 2 then 3 else if 9 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 9 = 2 then 3 else if 9 = 3 then 10 else 6) ∧ (if 9 = 2 then 3 else if 9 = 3 then 10 else 6) % 9 = 1p:ℕhp:Nat.Prime 10hpd:10 ∣ 30hp_le:10 ≤ 30⊢ (if 10 = 2 then 3 else if 10 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 10 = 2 then 3 else if 10 = 3 then 10 else 6) ∧ (if 10 = 2 then 3 else if 10 = 3 then 10 else 6) % 10 = 1p:ℕhp:Nat.Prime 11hpd:11 ∣ 30hp_le:11 ≤ 30⊢ (if 11 = 2 then 3 else if 11 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 11 = 2 then 3 else if 11 = 3 then 10 else 6) ∧ (if 11 = 2 then 3 else if 11 = 3 then 10 else 6) % 11 = 1p:ℕhp:Nat.Prime 12hpd:12 ∣ 30hp_le:12 ≤ 30⊢ (if 12 = 2 then 3 else if 12 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 12 = 2 then 3 else if 12 = 3 then 10 else 6) ∧ (if 12 = 2 then 3 else if 12 = 3 then 10 else 6) % 12 = 1p:ℕhp:Nat.Prime 13hpd:13 ∣ 30hp_le:13 ≤ 30⊢ (if 13 = 2 then 3 else if 13 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 13 = 2 then 3 else if 13 = 3 then 10 else 6) ∧ (if 13 = 2 then 3 else if 13 = 3 then 10 else 6) % 13 = 1p:ℕhp:Nat.Prime 14hpd:14 ∣ 30hp_le:14 ≤ 30⊢ (if 14 = 2 then 3 else if 14 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 14 = 2 then 3 else if 14 = 3 then 10 else 6) ∧ (if 14 = 2 then 3 else if 14 = 3 then 10 else 6) % 14 = 1p:ℕhp:Nat.Prime 15hpd:15 ∣ 30hp_le:15 ≤ 30⊢ (if 15 = 2 then 3 else if 15 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 15 = 2 then 3 else if 15 = 3 then 10 else 6) ∧ (if 15 = 2 then 3 else if 15 = 3 then 10 else 6) % 15 = 1p:ℕhp:Nat.Prime 16hpd:16 ∣ 30hp_le:16 ≤ 30⊢ (if 16 = 2 then 3 else if 16 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 16 = 2 then 3 else if 16 = 3 then 10 else 6) ∧ (if 16 = 2 then 3 else if 16 = 3 then 10 else 6) % 16 = 1p:ℕhp:Nat.Prime 17hpd:17 ∣ 30hp_le:17 ≤ 30⊢ (if 17 = 2 then 3 else if 17 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 17 = 2 then 3 else if 17 = 3 then 10 else 6) ∧ (if 17 = 2 then 3 else if 17 = 3 then 10 else 6) % 17 = 1p:ℕhp:Nat.Prime 18hpd:18 ∣ 30hp_le:18 ≤ 30⊢ (if 18 = 2 then 3 else if 18 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 18 = 2 then 3 else if 18 = 3 then 10 else 6) ∧ (if 18 = 2 then 3 else if 18 = 3 then 10 else 6) % 18 = 1p:ℕhp:Nat.Prime 19hpd:19 ∣ 30hp_le:19 ≤ 30⊢ (if 19 = 2 then 3 else if 19 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 19 = 2 then 3 else if 19 = 3 then 10 else 6) ∧ (if 19 = 2 then 3 else if 19 = 3 then 10 else 6) % 19 = 1p:ℕhp:Nat.Prime 20hpd:20 ∣ 30hp_le:20 ≤ 30⊢ (if 20 = 2 then 3 else if 20 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 20 = 2 then 3 else if 20 = 3 then 10 else 6) ∧ (if 20 = 2 then 3 else if 20 = 3 then 10 else 6) % 20 = 1p:ℕhp:Nat.Prime 21hpd:21 ∣ 30hp_le:21 ≤ 30⊢ (if 21 = 2 then 3 else if 21 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 21 = 2 then 3 else if 21 = 3 then 10 else 6) ∧ (if 21 = 2 then 3 else if 21 = 3 then 10 else 6) % 21 = 1p:ℕhp:Nat.Prime 22hpd:22 ∣ 30hp_le:22 ≤ 30⊢ (if 22 = 2 then 3 else if 22 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 22 = 2 then 3 else if 22 = 3 then 10 else 6) ∧ (if 22 = 2 then 3 else if 22 = 3 then 10 else 6) % 22 = 1p:ℕhp:Nat.Prime 23hpd:23 ∣ 30hp_le:23 ≤ 30⊢ (if 23 = 2 then 3 else if 23 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 23 = 2 then 3 else if 23 = 3 then 10 else 6) ∧ (if 23 = 2 then 3 else if 23 = 3 then 10 else 6) % 23 = 1p:ℕhp:Nat.Prime 24hpd:24 ∣ 30hp_le:24 ≤ 30⊢ (if 24 = 2 then 3 else if 24 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 24 = 2 then 3 else if 24 = 3 then 10 else 6) ∧ (if 24 = 2 then 3 else if 24 = 3 then 10 else 6) % 24 = 1p:ℕhp:Nat.Prime 25hpd:25 ∣ 30hp_le:25 ≤ 30⊢ (if 25 = 2 then 3 else if 25 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 25 = 2 then 3 else if 25 = 3 then 10 else 6) ∧ (if 25 = 2 then 3 else if 25 = 3 then 10 else 6) % 25 = 1p:ℕhp:Nat.Prime 26hpd:26 ∣ 30hp_le:26 ≤ 30⊢ (if 26 = 2 then 3 else if 26 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 26 = 2 then 3 else if 26 = 3 then 10 else 6) ∧ (if 26 = 2 then 3 else if 26 = 3 then 10 else 6) % 26 = 1p:ℕhp:Nat.Prime 27hpd:27 ∣ 30hp_le:27 ≤ 30⊢ (if 27 = 2 then 3 else if 27 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 27 = 2 then 3 else if 27 = 3 then 10 else 6) ∧ (if 27 = 2 then 3 else if 27 = 3 then 10 else 6) % 27 = 1p:ℕhp:Nat.Prime 28hpd:28 ∣ 30hp_le:28 ≤ 30⊢ (if 28 = 2 then 3 else if 28 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 28 = 2 then 3 else if 28 = 3 then 10 else 6) ∧ (if 28 = 2 then 3 else if 28 = 3 then 10 else 6) % 28 = 1p:ℕhp:Nat.Prime 29hpd:29 ∣ 30hp_le:29 ≤ 30⊢ (if 29 = 2 then 3 else if 29 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 29 = 2 then 3 else if 29 = 3 then 10 else 6) ∧ (if 29 = 2 then 3 else if 29 = 3 then 10 else 6) % 29 = 1p:ℕhp:Nat.Prime 30hpd:30 ∣ 30hp_le:30 ≤ 30⊢ (if 30 = 2 then 3 else if 30 = 3 then 10 else 6) ∣ 30 ∧ (1 < if 30 = 2 then 3 else if 30 = 3 then 10 else 6) ∧ (if 30 = 2 then 3 else if 30 = 3 then 10 else 6) % 30 = 1 All goals completed! 🐙

A prime has no divisor other than $1$ that is congruent to $1$ modulo itself.

@[category test, AMS 11] theorem not_hasErdos768Property_prime {p : ℕ} (hp : p.Prime) : ¬ HasErdos768Property p := p:ℕhp:Nat.Prime p⊢ ¬HasErdos768Property p p:ℕhp:Nat.Prime ph:HasErdos768Property p⊢ False p:ℕhp:Nat.Prime ph:HasErdos768Property pd:ℕhd:d ∣ phgt:1 < dhmod:d % p = 1⊢ False p:ℕhp:Nat.Prime ph:HasErdos768Property phd:1 ∣ phgt:1 < 1hmod:1 % p = 1⊢ Falsed:ℕhgt:1 < dhp:Nat.Prime dh:HasErdos768Property dhd:d ∣ dhmod:d % d = 1⊢ False p:ℕhp:Nat.Prime ph:HasErdos768Property phd:1 ∣ phgt:1 < 1hmod:1 % p = 1⊢ False All goals completed! 🐙 d:ℕhgt:1 < dhp:Nat.Prime dh:HasErdos768Property dhd:d ∣ dhmod:d % d = 1⊢ False All goals completed! 🐙

The counting function $\lvert A \cap [1,N]\rvert$.

noncomputable def erdos768Count (N : ℕ) : ℕ := N:ℕ⊢ ℕ classical All goals completed! 🐙

The normalized density $\lvert A \cap [1,N]\rvert/N$.

noncomputable def erdos768Density (N : ℕ) : ℝ := (erdos768Count N : ℝ) / (N : ℝ)

The scale $\sqrt{\log N}\log\log N$ appearing in the conjecture.

noncomputable def erdos768Scale (N : ℕ) : ℝ := Real.sqrt (Real.log (N : ℝ)) * Real.log (Real.log (N : ℝ))

Let $A \subset \mathbb{N}$ be the set of $n$ such that for every prime $p \mid n$ there is some $d \mid n$ with $d>1$ and $d \equiv 1 \pmod p$. Is there a constant $c>0$ such that, for all large $N$, $$\frac{\lvert A\cap[1,N]\rvert}{N}= \exp\big(-(c+o(1))\sqrt{\log N}\log\log N\big)?$$

@[category research open, question, AMS 11] theorem erdos_768 : ∃ c > 0, ∃ error : ℕ → ℝ, error =o[atTop] (fun _ ↦ (1 : ℝ)) ∧ ∀ᶠ N in atTop, erdos768Density N = Real.exp (-(c + error N) * erdos768Scale N) := ⊢ ∃ c > 0, ∃ error, (error =o[atTop] fun x ↦ 1) ∧ ∀ᶠ (N : ℕ) in atTop, erdos768Density N = Real.exp (-(c + error N) * erdos768Scale N) All goals completed! 🐙end Erdos768