Step |
Hyp |
Ref |
Expression |
1 |
|
2sqreuopnnltb |
⊢ ( 𝑃 ∈ ℙ → ( ( 𝑃 mod 4 ) = 1 ↔ ∃! 𝑝 ∈ ( ℕ × ℕ ) ( ( 1st ‘ 𝑝 ) < ( 2nd ‘ 𝑝 ) ∧ ( ( ( 1st ‘ 𝑝 ) ↑ 2 ) + ( ( 2nd ‘ 𝑝 ) ↑ 2 ) ) = 𝑃 ) ) ) |
2 |
|
breq12 |
⊢ ( ( 𝑎 = ( 1st ‘ 𝑝 ) ∧ 𝑏 = ( 2nd ‘ 𝑝 ) ) → ( 𝑎 < 𝑏 ↔ ( 1st ‘ 𝑝 ) < ( 2nd ‘ 𝑝 ) ) ) |
3 |
|
simpl |
⊢ ( ( 𝑎 = ( 1st ‘ 𝑝 ) ∧ 𝑏 = ( 2nd ‘ 𝑝 ) ) → 𝑎 = ( 1st ‘ 𝑝 ) ) |
4 |
3
|
oveq1d |
⊢ ( ( 𝑎 = ( 1st ‘ 𝑝 ) ∧ 𝑏 = ( 2nd ‘ 𝑝 ) ) → ( 𝑎 ↑ 2 ) = ( ( 1st ‘ 𝑝 ) ↑ 2 ) ) |
5 |
|
simpr |
⊢ ( ( 𝑎 = ( 1st ‘ 𝑝 ) ∧ 𝑏 = ( 2nd ‘ 𝑝 ) ) → 𝑏 = ( 2nd ‘ 𝑝 ) ) |
6 |
5
|
oveq1d |
⊢ ( ( 𝑎 = ( 1st ‘ 𝑝 ) ∧ 𝑏 = ( 2nd ‘ 𝑝 ) ) → ( 𝑏 ↑ 2 ) = ( ( 2nd ‘ 𝑝 ) ↑ 2 ) ) |
7 |
4 6
|
oveq12d |
⊢ ( ( 𝑎 = ( 1st ‘ 𝑝 ) ∧ 𝑏 = ( 2nd ‘ 𝑝 ) ) → ( ( 𝑎 ↑ 2 ) + ( 𝑏 ↑ 2 ) ) = ( ( ( 1st ‘ 𝑝 ) ↑ 2 ) + ( ( 2nd ‘ 𝑝 ) ↑ 2 ) ) ) |
8 |
7
|
eqeq1d |
⊢ ( ( 𝑎 = ( 1st ‘ 𝑝 ) ∧ 𝑏 = ( 2nd ‘ 𝑝 ) ) → ( ( ( 𝑎 ↑ 2 ) + ( 𝑏 ↑ 2 ) ) = 𝑃 ↔ ( ( ( 1st ‘ 𝑝 ) ↑ 2 ) + ( ( 2nd ‘ 𝑝 ) ↑ 2 ) ) = 𝑃 ) ) |
9 |
2 8
|
anbi12d |
⊢ ( ( 𝑎 = ( 1st ‘ 𝑝 ) ∧ 𝑏 = ( 2nd ‘ 𝑝 ) ) → ( ( 𝑎 < 𝑏 ∧ ( ( 𝑎 ↑ 2 ) + ( 𝑏 ↑ 2 ) ) = 𝑃 ) ↔ ( ( 1st ‘ 𝑝 ) < ( 2nd ‘ 𝑝 ) ∧ ( ( ( 1st ‘ 𝑝 ) ↑ 2 ) + ( ( 2nd ‘ 𝑝 ) ↑ 2 ) ) = 𝑃 ) ) ) |
10 |
9
|
opreuopreu |
⊢ ( ∃! 𝑝 ∈ ( ℕ × ℕ ) ( ( 1st ‘ 𝑝 ) < ( 2nd ‘ 𝑝 ) ∧ ( ( ( 1st ‘ 𝑝 ) ↑ 2 ) + ( ( 2nd ‘ 𝑝 ) ↑ 2 ) ) = 𝑃 ) ↔ ∃! 𝑝 ∈ ( ℕ × ℕ ) ∃ 𝑎 ∃ 𝑏 ( 𝑝 = 〈 𝑎 , 𝑏 〉 ∧ ( 𝑎 < 𝑏 ∧ ( ( 𝑎 ↑ 2 ) + ( 𝑏 ↑ 2 ) ) = 𝑃 ) ) ) |
11 |
1 10
|
bitrdi |
⊢ ( 𝑃 ∈ ℙ → ( ( 𝑃 mod 4 ) = 1 ↔ ∃! 𝑝 ∈ ( ℕ × ℕ ) ∃ 𝑎 ∃ 𝑏 ( 𝑝 = 〈 𝑎 , 𝑏 〉 ∧ ( 𝑎 < 𝑏 ∧ ( ( 𝑎 ↑ 2 ) + ( 𝑏 ↑ 2 ) ) = 𝑃 ) ) ) ) |