/-
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 FormalConjecturesUtilPierpont primes
A Pierpont prime is a prime of the form $2^a 3^b + 1$, where $a$ and $b$ are nonnegative integers. Marc Gleason conjectured that there are infinitely many.
References:
namespace PierpontPrimeA Pierpont prime is a prime of the form $2^a3^b + 1$.
def IsPierpontPrime (p : ℕ) : Prop :=
p.Prime ∧ ∃ a b : ℕ, p = 2 ^ a * 3 ^ b + 1@[category test, AMS 11]
theorem two_isPierpontPrime : IsPierpontPrime 2 := ⊢ IsPierpontPrime 2
refine ⟨⊢ Nat.Prime 2 All goals completed! 🐙, 0, 0, ?_⟩
All goals completed! 🐙@[category test, AMS 11]
theorem thirtySeven_isPierpontPrime : IsPierpontPrime 37 := ⊢ IsPierpontPrime 37
refine ⟨⊢ Nat.Prime 37 All goals completed! 🐙, 2, 2, ?_⟩
All goals completed! 🐙There are infinitely many Pierpont primes.
@[category research open, AMS 11]
theorem infinitely_many_pierpont_primes :
Set.Infinite {p : ℕ | IsPierpontPrime p} := ⊢ {p | IsPierpontPrime p}.Infinite
All goals completed! 🐙end PierpontPrime