This repository contains a formal verification and computational search for
A prime constellation is defined by a base prime
-
Twin Primes:
${0, 2}$ -
Prime Triplets:
${0, 2, 6}$ and${0, 4, 6}$ -
Prime Quadruplets:
${0, 2, 6, 8}$
The constellation
The core logic utilizes a Decidable instance for
def is_k_twin_prime (offsets : List ℕ) (p : ℕ) : Prop :=
offsets.all (fun s => Nat.Prime (p + s))
- Triplets [0, 2, 6]:
[5, 11, 17, 41] - Quadruplets [0, 2, 6, 8]:
[5, 11]
The search procedure is specified using algorithm2e logic:
- Iterate through the search space.
- For each , verify
Nat.Prime (p + s). - Return if the conjunction holds.
Ensure you have Lean 4 and lake installed.
git clone [https://github.com/your-username/primes.git](https://github.com/your-username/primes.git)
cd primes
lake env lean TwinPrimes.leanSince you’ve already pushed the previous version, simply overwrite the file and push the update:
# Overwrite the README.md with the content above
git add README.md
git commit -m "Refactor: README focused on Lean and Math logic"
git push origin main- Git Log: Your commit history now shows a clean transition from "Development" to "Technical Documentation."
- Verification: Running
lake env lean TwinPrimes.leanone last time confirms that your output[5, 11, 17, 41]exactly matches what you've documented in your README.