Fermat and Sums of Two Squares — Exact Proof Explorer

Explore the complete constructive all-natural two-square classification: prime representations, multiplication, valuation necessity, strictly decreasing sufficiency, and the explicit zero boundary.

140 theorem bodies · 425 proof edges · 4463 tactic lines · 13 layers

dependency-curried kernel-checked theorem body; Alpha enrollment and checked-use authority follow separately sealed release evidence; Stable membership remains unchanged

Current library: Alpha v34, 4,223 checked-use theorems; Stable remains 432. Historical first admissions, original proof editions, and non-admitted aliases are preserved. Exact original first-admission records.

140 theorems
0123456789101112
TS0000 · even_square_is_four_multiple

The square of an even natural has an explicit multiple-of-four witness.

layer 0 · 28 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS0001 · odd_square_is_four_multiple_plus_one

The square of an odd natural has an explicit residue-one witness modulo four.

layer 0 · 29 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS0002 · square_mod_four_zero_or_one

Every natural square is constructively either zero or one modulo four.

layer 1 · 14 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS0003 · sum_two_squares_mod_four_cases

A sum of two natural squares has residue zero, one, or two modulo four.

layer 2 · 40 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS000C · prime_is_not_natural_square

No natural square satisfies the nonunit factor-pair definition of primality.

layer 0 · 21 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS000D · natural_square_monotone_expanded

Witnessed weak order on natural coordinates transports to their squares.

layer 0 · 21 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS000J · floor_square_oversized_grid_exists

Every natural admits an explicitly witnessed floor-square grid with more cells than that natural.

layer 1 · 12 lines · Dependency-curried candidate body; not Alpha-enrolled; no checked-use authority
TS000O · finite_prefix_collision_succ

A witnessed collision in a finite prefix remains a collision after adjoining one more decoded entry.

layer 0 · 31 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS000P · finite_prefix_last_occurrence_collision

If the last decoded value already occurs, its earlier index and final index form an explicit witnessed collision.

layer 0 · 28 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS000Q · finite_prefix_injective_extend_fresh

An injective decoded prefix stays injective when its new final value has no earlier occurrence.

layer 0 · 77 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS000R · finite_prefix_collision_or_injective

Every finite beta-coded prefix constructively yields either explicit distinct equal-value indices or a proof of injectivity.

layer 1 · 60 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS000S · finite_bounded_into_oversized_collision

An oversized beta-coded map into a bounded finite interval has an actual existentially witnessed collision.

layer 2 · 17 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS000U · affine_grid_point_remainder_exists

Every flat grid index has canonical row, column, affine quotient, and strictly bounded residue witnesses.

layer 0 · 33 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS000V · beta_affine_residue_grid_extend

Append the next canonical affine residue while preserving every decoded row, column, quotient, and earlier residue.

layer 0 · 79 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS000W · beta_affine_residue_grid_exists

Every nonzero modulus and positive grid width admit a full beta-coded prefix of bounded affine residues.

layer 1 · 47 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS000X · beta_affine_residue_grid_bounded

The encoded affine residue grid is an explicit BoundedInto map from its full domain into the modulus.

layer 0 · 25 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS000Y · prime_floor_affine_residue_grid_exists

A prime floor-square grid admits a canonical beta-coded affine residue map on all successor-square points.

layer 2 · 18 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS000Z · prime_floor_affine_residue_grid_collision

The actual affine prime-residue grid on all square-root points has explicit distinct flat indices with the same residue.

layer 4 · 37 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS0010 · equal_affine_remainders_balanced

Equal affine remainders yield an exact subtraction-free balanced congruence between their two grid values.

layer 0 · 20 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS0013 · negative_one_scaled_square_identity

Distributivity identifies the scaled negative-one polynomial with the linear square plus its coordinate square.

layer 0 · 29 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS0014 · negative_one_scaled_square_congruent_zero

A witnessed root of minus one forces its scaled linear square plus the coordinate square to vanish modulo the modulus.

layer 1 · 22 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS001A · natural_absolute_difference_exists

Total natural order supplies an explicit absolute coordinate difference without subtraction.

layer 0 · 19 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS001B · bounded_natural_absolute_difference

An absolute difference between two coordinates bounded by s is itself bounded by s.

layer 0 · 20 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS001C · affine_collision_difference_linear_or_opposite

Every affine collision and both absolute coordinate differences yield exactly one of the constructive same-sign or opposite-sign linear congruences.

layer 0 · 116 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS001F · flat_square_index_row_below_width

Division decoding of a flat index strictly inside a square grid yields a strictly width-bounded row.

layer 1 · 34 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS001K · shared_beta_collision_remainders_equal

Both independently decoded affine remainders equal the same witnessed beta-collision value.

layer 0 · 33 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS001O · prime_mod_four_one_is_sum_of_two_squares

Every prime congruent to one modulo four has an explicitly witnessed constructive representation as the sum of two natural squares.

layer 7 · 45 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS001P · two_square_add_swap_nested

Adjacent terms can be constructively exchanged under a shared additive tail.

layer 0 · 11 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS001Q · two_square_sum_square_expands

The square of a natural sum expands into its two squares and two equal cross terms.

layer 0 · 3 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS001S · two_square_cross_product_interchange

The cross products ac·bd and ad·bc coincide by associativity and commutativity.

layer 0 · 12 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS001T · two_square_product_expands

Distributivity expands a product of two natural two-square norms into four squared products.

layer 0 · 12 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS001U · two_square_product_norm_blocks

The four squared products regroup into diagonal and off-diagonal norm blocks.

layer 1 · 11 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS001V · two_square_sum_square_blocks

The square of a sum separates into its diagonal square block and repeated cross-product block.

layer 1 · 14 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS001W · brahmagupta_fibonacci_two_square_identity

Brahmagupta–Fibonacci: the product of two witnessed norms is the norm of ac+bd and the natural magnitude of ad−bc.

layer 2 · 34 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS0020 · prime_is_two_or_odd

Every prime is constructively either the exceptional prime two or an odd number.

layer 0 · 26 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS0021 · prime_mod_four_trichotomy

Every prime lies in exactly the constructive residue branches two, one modulo four, or three modulo four.

layer 1 · 13 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS0022 · two_square_scaled_norm_identity

Scaling a two-square norm by z² scales both coordinates by z.

layer 0 · 7 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS0029 · two_square_add_left_comm

Associativity and commutativity swap the first two entries of a right-associated natural sum.

layer 0 · 11 lines · Dependency-curried candidate body; not Alpha-enrolled; no checked-use authority
TS002A · two_square_mul_left_comm

Associativity and commutativity swap the first two factors of a right-associated natural product.

layer 0 · 11 lines · Dependency-curried candidate body; not Alpha-enrolled; no checked-use authority
TS002B · two_square_cross_products_equal

The two cross products in the Brahmagupta identity are exactly equal.

layer 1 · 5 lines · Dependency-curried candidate body; not Alpha-enrolled; no checked-use authority
TS002C · two_square_product_norm_expanded

The product of two natural two-square norms expands into its four squared coordinate products.

layer 1 · 5 lines · Dependency-curried candidate body; not Alpha-enrolled; no checked-use authority
TS002D · two_square_balanced_difference_identity

Equal cross products and a witnessed natural difference imply the exact balanced sum-of-two-squares identity.

layer 1 · 17 lines · Dependency-curried candidate body; not Alpha-enrolled; no checked-use authority
TS002G · two_square_product_explicit_witness

The product of two two-square norms has the explicit coordinates a*c+b*d and a constructively witnessed absolute difference |a*d-b*c|.

layer 3 · 25 lines · Dependency-curried candidate body; not Alpha-enrolled; no checked-use authority
TS002H · two_square_product_is_two_square

The complete constructive Brahmagupta--Fibonacci identity supplies actual natural coordinates for every product of two-square norms.

layer 4 · 13 lines · Dependency-curried candidate body; not Alpha-enrolled; no checked-use authority
TS002J · beta_two_square_prefix_drop_last

Restricting a successor-length prefix preserves every witnessed two-square factor representation.

layer 0 · 16 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS002L · beta_two_square_prefix_last_represented

The final decoded factor of a represented successor prefix has its own explicit two-square witnesses.

layer 0 · 12 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS002M · beta_two_square_represented_factor_product

Induction on an arbitrary beta-coded product constructs a two-square representation from represented decoded factors.

layer 4 · 55 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS002N · beta_witnessed_two_square_factor_product

A represented decoded factor supplied existentially at every bounded index suffices for an explicit representation of the whole product.

layer 5 · 17 lines · Dependency-curried candidate body; not Alpha-enrolled; no checked-use authority
TS002O · prime_two_or_one_mod_four_is_sum_of_two_squares

The exceptional prime two and every prime congruent to one modulo four have explicit constructive two-square representations.

layer 8 · 22 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS002P · beta_all_prime_entry_is_prime

Every concrete decoded entry in the canonical all-prime prefix is prime, by uniqueness of beta decoding.

layer 0 · 26 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS002U · beta_two_square_prefix_append_equal_pair

Appending two equal adjacent decoded factors to any represented beta-coded prefix preserves constructive two-square representability.

layer 6 · 31 lines · Dependency-curried candidate body; not Alpha-enrolled; no checked-use authority
TS002V · positive_number_with_admissible_prime_divisors_is_two_square

A positive natural number all of whose prime divisors are two or one modulo four has an explicitly constructed two-square representation via its canonical prime factorization.

layer 10 · 47 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS002Y · positive_double_at_least_two

The double of a positive natural has an explicit witness for being at least two.

layer 0 · 11 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS0033 · pairing_double_equals_two_mul

The additive double of a natural equals its standard multiplicative parity witness.

layer 0 · 7 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS0034 · even_double_sum_reflects_even_tail

If an additive even block plus a tail is even, the tail has its own constructive additive half witness.

layer 1 · 31 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS003A · all_bad_prime_even_valuation_value_eq_transport

The universally quantified bad-prime even-valuation invariant transports constructively along equality of natural values.

layer 0 · 24 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS003B · prime_mod_four_good_or_three

The constructive prime residue trichotomy splits into one represented-prime branch and one three-modulo-four branch.

layer 2 · 16 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS003H · two_square_norm_zero_iff_coordinates_zero

Zero is an explicit boundary: a two-square norm vanishes exactly when both natural coordinates vanish.

layer 1 · 18 lines · Dependency-curried candidate body; not Alpha-enrolled; no checked-use authority
TS003I · prime_power_valuation_square_even

At every prime, the valuation of a nonzero square is exactly twice the valuation of its coordinate.

layer 0 · 21 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS003J · two_square_common_factor_norm_identity

A common factor of both coordinates extracts as its exact square from their two-square norm.

layer 0 · 9 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
TS003P · prime_power_valuation_square_factor_shift

Multiplying a nonzero value by a nonzero square increases its prime valuation by exactly twice the factor valuation.

layer 1 · 51 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable

Exactly 114 displayed theorems have independently verified Alpha checked-use authority; none is admitted to Stable. Body-only enrollment never grants checked theorem use.