Zulip Chat Archive

Stream: new members

Topic: How to write about there are infinite primes p % 4 = 3


Elizabeth Sun (Jan 16 2020 at 20:25):

Hi, I'm think about how to write about there are infinite primes that are congruent to 3 mod 4.

Johan Commelin (Jan 16 2020 at 20:31):

One way would be:

example : \forall n, \exists p, p  n \and p.prime \and p % 4 = 3 := sorry

Yury G. Kudryashov (Jan 16 2020 at 20:32):

Did you ask how to formalize the statement, or which proof is simple enough to be formalized?

Elizabeth Sun (Jan 16 2020 at 20:34):

I mean the statement

Elizabeth Sun (Jan 16 2020 at 20:38):

Okay, thank you but I think we should say \exists p : nat, right?

Yury G. Kudryashov (Jan 16 2020 at 20:41):

You can write exists p >= n, p.prime, and lean will figure out the type.

Elizabeth Sun (Jan 16 2020 at 20:44):

trial2:10:28: error
don't know how to synthesize placeholder
context:
⊢ Sort ?
trial2:10:39: error
invalid expression starting at 10:31
trial2:10:42: error
unknown identifier 'p.prime'
trial2:10:53: error
unknown identifier 'p'

No, mine shows the errors.

Johan Commelin (Jan 16 2020 at 20:44):

Do you have import data.nat.prime?

Elizabeth Sun (Jan 16 2020 at 20:46):

emmmm...no....

Elizabeth Sun (Jan 16 2020 at 20:48):

but there is still the error

Johan Commelin (Jan 16 2020 at 20:49):

Did you take my statement or Yury's?

Elizabeth Sun (Jan 16 2020 at 20:53):

I took yours and Yury's, but neither worked unless I added p:nat

Johan Commelin (Jan 16 2020 at 20:54):

Ok, too bad

Yury G. Kudryashov (Jan 16 2020 at 20:55):

Indeed, you have to specify the type at least once

Yury G. Kudryashov (Jan 16 2020 at 20:55):

For n or for p

Yury G. Kudryashov (Jan 16 2020 at 20:55):

Or use nat.prime p instead of p.prime

Yury G. Kudryashov (Jan 16 2020 at 20:56):

Sorry for a misleading comment

Elizabeth Sun (Jan 16 2020 at 20:58):

Oh, it's okay, thank you!

Kevin Buzzard (Jan 16 2020 at 21:17):

As for the proof, if you have finitely many primes congruent to 3 mod 4 then multiply them all together, square, and add two, and then one of the factors must be a new prime congruent to 3 mod 4.


Last updated: Dec 20 2023 at 11:08 UTC