Pythagorean triples
Content created by Fredrik Bakke, Jonathan Prieto-Cubides, Alec Barreto and Egbert Rijke.
Created on 2022-06-30.
Last modified on 2023-09-24.
module elementary-number-theory.pythagorean-triples where
Imports
open import elementary-number-theory.addition-natural-numbers open import elementary-number-theory.natural-numbers open import elementary-number-theory.squares-natural-numbers open import foundation.identity-types open import foundation.universe-levels
Idea
A Pythagorean triple is a triple (a,b,c)
of natural numbers such that
a² + b² = c²
.
Definition
is-pythagorean-triple : ℕ → ℕ → ℕ → UU lzero is-pythagorean-triple a b c = ((square-ℕ a) +ℕ (square-ℕ b) = square-ℕ c)
Recent changes
- 2023-09-24. Alec Barreto. The Legendre symbol (#796).
- 2023-05-13. Fredrik Bakke. Refactor to use infix binary operators for arithmetic (#620).
- 2023-03-13. Jonathan Prieto-Cubides. More maintenance (#506).
- 2023-03-10. Fredrik Bakke. Additions to
fix-import
(#497). - 2023-03-07. Fredrik Bakke. Add blank lines between
<details>
tags and markdown syntax (#490).