How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Positive Definite Binary Quadratic Forms and Reduction — Examples
1 · Prerequisites
- Binary Operations, Monoids, Groups and Subgroups
- Congruences, the Integers Modulo n and the Chinese Remainder Theorem
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Cosets, Index and Lagrange's Theorem
- Countability and Uncountability
- Cyclic Groups and Direct Products
- Divisibility, Greatest Common Divisors and Bézout's Identity
- Finite Counting, Factorials and Binomial Coefficients
- Foundations of the Real Numbers for Analysis
- Group Homomorphisms and the Isomorphism Theorems
- Matrices, the Matrix of a Linear Map, and Change of Basis
- Normal Subgroups and Quotient Groups
- Polynomial Rings, the Division Algorithm and Roots
- Positive Definite Binary Quadratic Forms and Reduction
- Primes, Euclid's Lemma and the Fundamental Theorem of Arithmetic
- Primitive Roots and Unit Groups Modulo N
- Quadratic Residues and the Legendre Symbol
- Relations, Functions, and Quotients
- Rings, Subrings, Integral Domains and Fields
- Roots, Rational Powers, and Classical Inequalities
- The Fundamental Theorem of Finite Abelian Groups
- The ZFC Axioms and the Basic Set Constructions
- Vector Spaces, Linear Subspaces, Span and Direct Sums
2 · Summary
3 · Logical flowchart
4 · Definitions, theorems and proofs
None yet.
5 · Examples, counterexamples and false statements
Reducing to
Example
The positive-definite form reduces to through the explicit swap-and-shear moves
Equivalently,
Facts & Assumptions
Given: The integral form .
Integral substitution defines a right action of on integral binary quadratic forms (Integral substitution defines a right action of on integral binary quadratic forms).
Every positive-definite integral binary quadratic form is properly equivalent to a reduced form (Every positive-definite integral binary quadratic form is properly equivalent to a reduced form).
A positive-definite form is reduced when and the boundary sign condition holds (Reduced positive-definite binary quadratic forms).
Verification
Let and . Direct substitution gives , , , then after one gets , after another one gets , and after one gets .
The final form is reduced because and the boundary sign condition is automatic.
By repeated use of the right-action law [L1], the composite matrix is , which has determinant , so the single displayed substitution is exactly the product of the six moves in step 1.1.
Thus the explicit reduction algorithm indeed carries to the reduced form .
The reduced primitive forms of discriminant
Example
The only reduced primitive positive-definite binary quadratic form of discriminant is
Consequently .
Facts & Assumptions
Given: A reduced primitive positive-definite form of discriminant .
A reduced form of discriminant satisfies (A reduced positive-definite form of discriminant satisfies ).
Each proper-equivalence class contains exactly one reduced form (Each proper-equivalence class of positive-definite integral binary quadratic forms contains exactly one reduced form).
The class number counts proper-equivalence classes of primitive positive-definite forms of discriminant (The class number of primitive positive-definite binary quadratic forms of discriminant ).
Verification
Here by [L1], so the positive integer must be .
The discriminant equation gives , so . Since the form is reduced, ; the choices make , not an integer, while gives . Thus the only reduced possibility is .
The form is primitive, so by [L2] there is exactly one proper-equivalence class of primitive positive-definite forms of discriminant . Hence [L3] gives .
The reduced primitive forms of discriminant
Example
The only reduced primitive positive-definite binary quadratic form of discriminant is
Consequently , and every primitive positive-definite form of discriminant is properly equivalent to .
Facts & Assumptions
Given: A reduced primitive positive-definite form of discriminant .
A reduced form of discriminant satisfies (A reduced positive-definite form of discriminant satisfies ).
Each proper-equivalence class contains exactly one reduced form (Each proper-equivalence class of positive-definite integral binary quadratic forms contains exactly one reduced form).
The class number counts proper-equivalence classes of primitive positive-definite forms of discriminant (The class number of primitive positive-definite binary quadratic forms of discriminant ).
Verification
Here , so the positive integer must be .
The discriminant equation gives , so . Reducedness gives ; the choices make , not an integer, while gives . Thus the only reduced possibility is .
The form is primitive, so by [L2] there is exactly one proper-equivalence class of primitive positive-definite forms of discriminant . Hence [L3] gives , and every such form is properly equivalent to .
Odd primes congruent to or modulo are represented by
Example
An odd prime is represented by if and only if
Facts & Assumptions
Given: An odd prime .
The unique reduced primitive form of discriminant is , so every primitive positive-definite form of discriminant is properly equivalent to (The reduced primitive forms of discriminant ).
Properly equivalent binary quadratic forms represent the same integers (Properly equivalent binary quadratic forms represent the same integers, with primitive representations in bijection).
An integral binary quadratic form is positive definite exactly when its leading coefficient is positive and its discriminant is negative (An integral binary quadratic form is positive definite exactly when its leading coefficient is positive and its discriminant is negative).
For an odd prime , exactly when , and exactly when (First supplement: ).
For an odd prime , exactly when or , and exactly when or (Second supplement: ).
For every odd prime and integers , (The Legendre symbol is multiplicative for all integer numerators).
For an odd prime , exactly when is a quadratic residue modulo (The Legendre symbol, including its zero value).
Verification
If , then reducing modulo shows and or , because squares modulo are and is odd. Hence or .
Conversely, suppose or . Then [L4] and [L5] give , so [L6] yields . By [L7], there is an integer with .
Set , which is an integer by step 1.2, and define Then and , so represents . If a divisor of , , and were greater than , then because is prime; but would force , hence , so , impossible for an odd prime. Thus is primitive. Since its leading coefficient is and its discriminant is , [L3] makes positive definite. Therefore [L1] shows that is properly equivalent to , and then [L2] shows that represents .
Steps 1.1 and 2.1 prove the claimed criterion.
The reduced primitive forms of discriminant
Example
The reduced primitive positive-definite binary quadratic forms of discriminant are
Consequently .
Facts & Assumptions
Given: A reduced primitive positive-definite form of discriminant .
A reduced form of discriminant satisfies (A reduced positive-definite form of discriminant satisfies ).
Each proper-equivalence class contains exactly one reduced form (Each proper-equivalence class of positive-definite integral binary quadratic forms contains exactly one reduced form).
The class number counts proper-equivalence classes of primitive positive-definite forms of discriminant (The class number of primitive positive-definite binary quadratic forms of discriminant ).
Verification
Here , so is or .
If , then , so . Reducedness gives . The values make , not an integer, while gives , yielding .
If , then , so . Reducedness gives . The values give no integer , while gives ; the boundary rule forces . Thus the only reduced possibility with is .
The two forms of steps 2.1 and 2.2 are primitive and distinct, and [L2] shows that no other reduced primitive form of discriminant exists. Hence [L3] gives .
The reduced primitive forms of discriminant
Example
The reduced primitive positive-definite binary quadratic forms of discriminant are
Consequently .
Facts & Assumptions
Given: A reduced primitive positive-definite form of discriminant .
A reduced form of discriminant satisfies (A reduced positive-definite form of discriminant satisfies ).
Each proper-equivalence class contains exactly one reduced form (Each proper-equivalence class of positive-definite integral binary quadratic forms contains exactly one reduced form).
The class number counts proper-equivalence classes of primitive positive-definite forms of discriminant (The class number of primitive positive-definite binary quadratic forms of discriminant ).
Verification
Here , so is or .
If , then , so . Reducedness gives . The value gives no integer , while gives ; the boundary rule forces . Thus is the only reduced possibility with .
If , then , so . Reducedness gives . The values give no integer , while gives , and both signs are allowed because . Thus the reduced possibilities are and .
The three forms from steps 2.1 and 2.2 are primitive and distinct, and [L2] shows that no other reduced primitive form of discriminant exists. Hence [L3] gives .
Forms of discriminant need not be properly equivalent
Statement refuted
Two integral binary quadratic forms with the same discriminant need not be properly equivalent. The forms
both have discriminant , but they are not properly equivalent.
Facts & Assumptions
Given: The forms and .
The discriminant of is (The discriminant of a binary quadratic form).
Properly equivalent forms represent exactly the same integers (Properly equivalent binary quadratic forms represent the same integers, with primitive representations in bijection).
A form represents when it takes the value at some integer pair (Integers represented, and primitively represented, by a binary quadratic form).
Counterexample
The discriminants are and .
The form represents , since .
The form does not represent : if , then , but would force the left-hand side to be at least , while would give , impossible in integers.
Since and do not represent the same integers, [L1] shows that they are not properly equivalent.
Distinct reduced forms can represent the same integers
Statement refuted
Two binary quadratic forms can represent exactly the same integers and still fail to be properly equivalent. The forms
have this property.
Facts & Assumptions
Given: The forms and .
Reducedness is defined by together with the boundary sign condition (Reduced positive-definite binary quadratic forms).
Each proper-equivalence class of positive-definite forms contains exactly one reduced form (Each proper-equivalence class of positive-definite integral binary quadratic forms contains exactly one reduced form).
A form represents an integer when it takes that value at some integer pair (Integers represented, and primitively represented, by a binary quadratic form).
Counterexample
Both forms are reduced: for each one, , and no boundary clause is violated because .
For every integers , one has . Thus represents exactly the integers that represents, and conversely.
The reduced triples are distinct because . Therefore [L2] forbids proper equivalence between and .
Improper equivalence can merge two distinct proper classes
Example
If one allows determinant substitutions as well as determinant substitutions, then the two distinct reduced forms
become equivalent.
Facts & Assumptions
Given: The forms and .
Proper equivalence uses determinant-one integer matrices (Proper equivalence of binary quadratic forms).
The previous counterexample shows that and are not properly equivalent (Distinct reduced forms can represent the same integers).
Verification
The matrix has determinant , and direct substitution gives .
Thus allowing determinant merges the two distinct proper classes from [L1]: the forms are equivalent under a unimodular substitution, but not under a determinant-one unimodular substitution.
An indefinite proper-equivalence class can contain a cycle of reduced forms
Statement refuted
The uniqueness theorem for reduced positive-definite forms does not extend to positive discriminant. Under Granville's positive-discriminant convention, both
are reduced forms of discriminant , and they are properly equivalent.
Facts & Assumptions
Given: The forms and .
Positive-definite proper-equivalence classes contain exactly one reduced form (Each proper-equivalence class of positive-definite integral binary quadratic forms contains exactly one reduced form).
The discriminant of is (The discriminant of a binary quadratic form).
Counterexample
Both forms have discriminant , since and .
The matrix has determinant , and direct substitution gives . Thus and are properly equivalent.
Under Granville's positive-discriminant convention, a form of discriminant is reduced when . Since , one has and . Hence for and for , so both are reduced in that convention.
The two reduced forms and are distinct, yet step 1.2 puts them in one proper-equivalence class. So the uniqueness statement [L1], which is true for positive-definite forms, does not extend to positive discriminant.
Sources
- William Stein, Elementary Number Theory and Elliptic Curves, Examples 9.2.5 and 9.3.3
- William Stein, Elementary Number Theory and Elliptic Curves, Section 9.4
- Andrew Granville, Binary Quadratic Forms, Exercise 4.1h
- William Stein, Elementary Number Theory and Elliptic Curves, discussion after Proposition 9.2.8
- William Stein, Elementary Number Theory and Elliptic Curves, Example 9.3.4
- Andrew Granville, Binary Quadratic Forms, Chapter 4
- Andrew Granville, Binary Quadratic Forms, Section 4.6