Alphabeta Math
Session-authored (Fable 5 assisted)
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.

14 results · all verified · 7 also independently AI-judged
Every result on this page is machine-checked by a proof checker and read in full and owner-audited; the judge is an additional, independent cross-model AI review of the proofs. The 7 not AI-judged were verified by owner audit (typically over a confirmed judge false positive), not failures.

Positive Definite Binary Quadratic Forms and Reduction

1 · Prerequisites

2 · Summary

Integral binary quadratic forms are the ternary coefficient data (a,b,c) behind ax2+bxy+cy2, and this page studies how much of that data survives unimodular change of variables. The background actually used here is arithmetic rather than geometry: gcd language separates primitive forms from primitive representations, congruences modulo an integer classify discriminants and encode the discriminant-square criterion, and basic matrix multiplication makes substitution by SL2(Z) a genuine right action.

The page defines discriminant, principal form, proper equivalence, positive definiteness, reduced form, and form class number. It proves that proper equivalence preserves represented integers and discriminant, identifies positive-definite forms by the sign conditions a>0 and Δ<0, and shows that every positive-definite class has one reduced representative and no more. From there it bounds the leading coefficient of a reduced form in terms of the discriminant, deduces that each negative discriminant has only finitely many positive-definite classes, and turns reduction plus uniqueness into a decision procedure for proper equivalence.

3 · Logical flowchart

4 · Definitions, theorems and proofs

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-5.6-terra)audited 2026-08-26Open item page →

Integral binary quadratic forms

Definition

An integral binary quadratic form is a homogeneous polynomial

f(x,y)=ax2+bxy+cy2

with coefficients a,b,cZ. We also denote this form by the triple

f=(a,b,c).

The coefficient of xy is written as b, not 2b.

Remarks

  • The variables are two independent integer variables, so "binary" refers to the number of variables and "quadratic" to the total degree.
  • Later items pass freely between the polynomial notation ax2+bxy+cy2 and the coefficient notation (a,b,c).
DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-5.6-terra)audited 2026-08-26Open item page →

Integers represented, and primitively represented, by a binary quadratic form

Definition

Let f(x,y)=ax2+bxy+cy2 be an integral binary quadratic form (Integral binary quadratic forms) and let nZ.

We say that f represents n when there exist integers r,s such that

n=f(r,s)=ar2+brs+cs2.

We say that f primitively represents n when there exist integers r,s with

n=f(r,s)andgcd(r,s)=1

(Common divisor, and the greatest common divisor gcd(a,b), with the convention gcd(0,0):=0).

Remarks

  • Primitive representation is a condition on the representing pair (r,s), not on the coefficients of the form.
  • A form can represent an integer without primitively representing it.
DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-5.6-terra)audited 2026-08-26Open item page →

Primitive binary quadratic forms

Definition

An integral binary quadratic form f=(a,b,c) (Integral binary quadratic forms) is primitive when the only integers dividing all three coefficients a, b, and c are 1 and 1.

Equivalently, f is primitive when there is no positive integer greater than 1 dividing all three coefficients simultaneously.

Remarks

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-5.6-terra)audited 2026-08-26Open item page →

The discriminant of a binary quadratic form

Definition

The discriminant of the integral binary quadratic form

f=(a,b,c)=ax2+bxy+cy2

is the integer

Δ(f):=b24ac.

When the form is clear from context, we also write its discriminant as Δ=b24ac.

PropositionStatement: Literature-sourcedProof: Literature-sourcedprecheck passaudited 2026-08-26Open item page →

An integer is the discriminant of an integral binary quadratic form exactly when it is congruent to 0 or 1 modulo 4

Statement

An integer Δ is the discriminant of an integral binary quadratic form if and only if

Δ0(mod4)orΔ1(mod4).

Facts & Assumptions

Given: An integer Δ.

[F1]

The discriminant of (a,b,c) is b24ac (The discriminant of a binary quadratic form).

Proof

technique · direct
1.1

Suppose Δ is the discriminant of some integral form, say Δ=b24ac. Then Δb2(mod4).

F1L1L2
1.2

If Δ0(mod4), then (1,0,Δ/4) is an integral binary quadratic form and its discriminant is 0241(Δ/4)=Δ.

F1L1givenconstructalgebra
1.3

If Δ1(mod4), then (1,1,(1Δ)/4) is an integral binary quadratic form and its discriminant is 1241((1Δ)/4)=Δ.

F1L1givenconstructalgebra
2.1

If b=2m is even, then b2=4m20(mod4); if b=2m+1 is odd, then b2=4m(m+1)+11(mod4). Hence every discriminant is congruent to 0 or 1 modulo 4.

step 1.1algebra
3.1

Step 2.1 proves the forward implication, while steps 1.2 and 1.3 prove the converse in the two possible congruence classes.

step 2.1step 1.2step 1.3
DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-5.6-terra)audited 2026-08-26Open item page →

The principal binary quadratic form of a discriminant

Definition

Let Δ be an integer with Δ0 or 1(mod4) (An integer is the discriminant of an integral binary quadratic form exactly when it is congruent to 0 or 1 modulo 4).

The principal binary quadratic form of discriminant Δ is

{(1,0,Δ/4),if Δ0(mod4),(1,1,(1Δ)/4),if Δ1(mod4).

By the preceding proposition, both coefficient triples are integral in their respective cases, and by direct calculation each has discriminant Δ.

Remarks

  • This is terminology only: no class-group structure is asserted here.
  • Later examples identify the principal form explicitly at small discriminants, such as x2+y2 at Δ=4 and x2+2y2 at Δ=8.
DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-5.6-terra)audited 2026-08-26Open item page →

Proper equivalence of binary quadratic forms

Definition

Let f and g be integral binary quadratic forms. We say that f and g are properly equivalent when there exists a matrix

M=(pqrs)SL2(Z)

such that

g(x,y)=f(px+qy,rx+sy)

for all integers x,y.

When this holds we also write

g=fM.

Remarks

  • The determinant condition is psqr=1, so proper equivalence uses only orientation-preserving unimodular substitutions.
  • On the companion page, an example shows that allowing determinant 1 can merge two distinct proper-equivalence classes.
LemmaStatement: Literature-sourcedProof: Literature-sourcedprecheck passjudge pass (gpt-5.6-terra)audited 2026-08-26Open item page →

Integral substitution defines a right action of SL2(Z) on integral binary quadratic forms

Statement

For an integral binary quadratic form f and matrices M,NSL2(Z), the substitution notation of Proper equivalence of binary quadratic forms satisfies

fI=f,(fM)N=f(MN).

Thus integral substitution defines a right action of SL2(Z) on integral binary quadratic forms.

Facts & Assumptions

Given: An integral binary quadratic form f=(a,b,c) and matrices M,NSL2(Z).

[F1]

Proper equivalence is defined by the substitution g(x,y)=f(px+qy,rx+sy) for a determinant-one integer matrix (pqrs) (Proper equivalence of binary quadratic forms).

[L1]

Matrix multiplication is associative, and identity matrices act as units on either side whenever the shapes are compatible (Matrix multiplication is associative, unital, distributive, and compatible with scalar multiplication).

Proof

technique · direct
1.1

If I is the 2×2 identity matrix, then (fI)(x,y)=f(1x+0y,0x+1y)=f(x,y) for all x,y, so fI=f.

F1L1algebra
1.2

Write M=(pqrs) and N=(uvwz). Then ((fM)N)(x,y)=(fM)(ux+vy,wx+zy)=f(p(ux+vy)+q(wx+zy),r(ux+vy)+s(wx+zy)), which is exactly (f(MN))(x,y) by the definition of matrix multiplication.

F1L1algebra
2.1

The coefficients of fM are ap2+bpr+cr2, 2apq+b(ps+qr)+2crs, and aq2+bqs+cs2, hence are integers. Therefore the substitutions stay inside the set of integral binary quadratic forms, and steps 1.1 and 1.2 are precisely the right-action axioms.

F1step 1.2algebra
TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (gpt-5.6-terra)audited 2026-08-26Open item page →

Properly equivalent binary quadratic forms represent the same integers, with primitive representations in bijection

Statement

Let f and g be integral binary quadratic forms. If f and g are properly equivalent, then:

  1. f and g represent exactly the same integers.
  2. Primitive representations correspond bijectively: for each integer n, a pair (x,y) with gcd(x,y)=1 satisfies g(x,y)=n if and only if the pair (px+qy,rx+sy) has relatively prime coordinates and satisfies f(px+qy,rx+sy)=n, where g=f(pqrs).

Facts & Assumptions

Given: Integral binary quadratic forms f and g, an integer n, and a matrix M=(pqrs)SL2(Z) with g=fM.

[F1]

Proper equivalence means g(x,y)=f(px+qy,rx+sy) for all integers x,y (Proper equivalence of binary quadratic forms).

[F2]

The form h represents n when n=h(u,v) for some integers u,v, and it primitively represents n when moreover gcd(u,v)=1 (Integers represented, and primitively represented, by a binary quadratic form).

[L1]

Integral substitution defines a right action of SL2(Z) on integral binary quadratic forms (Integral substitution defines a right action of SL2(Z) on integral binary quadratic forms).

Proof

technique · direct
1.1

If g(x,y)=n, then n=f(px+qy,rx+sy) by [F1], so every representation of n by g yields a representation of n by f.

F1F2
2.1

Since psqr=1, the inverse matrix is M1=(sqrp)SL2(Z). By [L1], (fM)M1=f, so f=gM1. Applying step 1.1 to g and M1 gives the converse implication. Therefore f and g represent exactly the same integers.

F1L1step 1.1algebra
3.1

Let u=px+qy and v=rx+sy. If gcd(x,y)=1 and an integer d divides both u and v, then d divides suqv=(psqr)x=x and ru+pv=(psqr)y=y, so gcd(u,v)=1. The same argument with M1 gives the converse, so the correspondence of steps 1.1 and 2.1 restricts to a bijection on primitive representations.

F2step 2.1algebra
PropositionStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (gpt-5.6-terra)audited 2026-08-26Open item page →

Proper equivalence preserves discriminant and primitivity of the form

Statement

Let f and g be properly equivalent integral binary quadratic forms. Then:

  1. f and g have the same discriminant.
  2. f is primitive if and only if g is primitive.

Facts & Assumptions

Given: Integral binary quadratic forms f=(a,b,c) and g=(A,B,C), and a matrix M=(pqrs)SL2(Z) with g=fM.

[F1]

Proper equivalence means g(x,y)=f(px+qy,rx+sy) for a determinant-one integer matrix (Proper equivalence of binary quadratic forms).

[F2]

The discriminant of (u,v,w) is v24uw (The discriminant of a binary quadratic form).

[F3]

The form (u,v,w) is primitive when the only integers dividing all three coefficients are 1 and 1 (Primitive binary quadratic forms).

[L1]

Integral substitution defines a right action of SL2(Z) on integral binary quadratic forms (Integral substitution defines a right action of SL2(Z) on integral binary quadratic forms).

Proof

technique · direct
1.1

Expanding g(x,y)=f(px+qy,rx+sy) gives A=ap2+bpr+cr2, B=2apq+b(ps+qr)+2crs, and C=aq2+bqs+cs2. A direct simplification yields B24AC=(psqr)2(b24ac)=b24ac, since psqr=1. Thus f and g have the same discriminant.

F1F2algebra
2.1

Suppose an integer d divides a, b, and c. Then the formulas of step 1.1 show that d also divides A, B, and C.

step 1.1algebra
3.1

Since psqr=1, the inverse matrix M1=(sqrp) is integral and lies in SL2(Z). By [L1], f=gM1, so the same argument as in step 2.1 with M1 shows that every common divisor of A, B, and C also divides a, b, and c.

F1L1step 2.1algebra
4.1

Steps 2.1 and 3.1 show that (a,b,c) and (A,B,C) have exactly the same common divisors. Therefore one form is primitive exactly when the other is, by [F3].

F3step 2.1step 3.1
PropositionStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (gpt-5.6-terra)audited 2026-08-26Open item page →

A positive integer n is primitively represented by some discriminant Δ form exactly when Δ is a square modulo 4n

Statement

Let n be a positive integer and let ΔZ. Then the following are equivalent:

  1. some integral binary quadratic form of discriminant Δ primitively represents n;
  2. Δ is a square modulo 4n.

Facts & Assumptions

Given: A positive integer n and an integer Δ.

[F1]

A form primitively represents n when n=f(r,s) for some integers r,s with gcd(r,s)=1 (Integers represented, and primitively represented, by a binary quadratic form).

[F2]

The discriminant of (a,b,c) is b24ac (The discriminant of a binary quadratic form).

[F3]

Proper equivalence means substitution by a determinant-one integer matrix, and properly equivalent forms have the same discriminant (Proper equivalence of binary quadratic forms, Proper equivalence preserves discriminant and primitivity of the form).

Proof

technique · direct
1.1

Suppose a form f=(a,b,c) of discriminant Δ primitively represents n, say n=f(r,s) with gcd(r,s)=1. By [L1] choose integers t,u with rust=1, and put M=(rtsu)SL2(Z).

F1L1givenchoose
1.2

Conversely, suppose Δb2(mod4n) for some integer b. Then 4n divides b2Δ, so c:=(b2Δ)/(4n) is an integer. The form f=(n,b,c) has discriminant Δ, and f(1,0)=n with gcd(1,0)=1, so it primitively represents n.

F1F2L2givenconstructalgebra
2.1

The properly equivalent form g=fM has leading coefficient g(1,0)=f(r,s)=n, so g=(n,b,c) for some integers b,c. By [F3], g has the same discriminant Δ, hence Δ=b24nc, which says exactly that Δb2(mod4n).

F2F3step 1.1algebra
3.1

Step 2.1 proves that primitive representation implies the square congruence, and step 1.2 proves the converse.

step 2.1step 1.2
DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-5.6-terra)audited 2026-08-26Open item page →

Positive-definite binary quadratic forms

Definition

An integral binary quadratic form f(x,y)=ax2+bxy+cy2 (Integral binary quadratic forms) is positive definite when

f(x,y)>0

for every real pair (x,y)(0,0).

Remarks

  • The condition is about positivity on R2, not only on Z2.
  • The next proposition turns this intrinsic condition into the coefficient test a>0 and Δ<0.
PropositionStatement: Literature-sourcedProof: AI-adaptedprecheck passaudited 2026-08-26Open item page →

An integral binary quadratic form is positive definite exactly when its leading coefficient is positive and its discriminant is negative

Statement

Let f(x,y)=ax2+bxy+cy2 be an integral binary quadratic form, and let Δ=b24ac be its discriminant. Then f is positive definite if and only if

a>0andΔ<0.

Facts & Assumptions

Given: The integral binary quadratic form f(x,y)=ax2+bxy+cy2 and its discriminant Δ=b24ac.

[F1]

A form is positive definite when f(x,y)>0 for every real pair (x,y)(0,0) (Positive-definite binary quadratic forms).

[F2]

The discriminant is Δ=b24ac (The discriminant of a binary quadratic form).

Proof

technique · direct
1.1

Suppose f is positive definite. Then a=f(1,0)>0 by [F1].

F1
1.2

Conversely, suppose a>0 and Δ<0. For every real (x,y) one has 4af(x,y)=(2ax+by)2Δy2 by direct expansion.

F2givenalgebra
1.3

If (x,y)(0,0) and y=0, then x0 and f(x,0)=ax2>0 because a>0.

givenalgebra
2.1

Also (b2a,1)(0,0), so [F1] gives f(b2a,1)>0. Multiplying by 4a>0 from step 1.1 yields Δ=(2a(b/(2a))+b)2Δ>0, hence Δ<0.

F1F2step 1.1algebra
2.2

If (x,y)(0,0) and y0, then step 1.2 gives 4af(x,y)=(2ax+by)2+(Δ)y2>0 because both summands are nonnegative and the second is positive.

step 1.2givenalgebra
3.1

Steps 2.2 and 1.3 cover every nonzero real pair, so f is positive definite by [F1]. Together with steps 1.1 and 2.1, this proves the criterion.

F1step 1.1step 2.1step 2.2step 1.3
DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-5.6-terra)audited 2026-08-26Open item page →

Reduced positive-definite binary quadratic forms

Definition

A positive-definite binary quadratic form (a,b,c) (Positive-definite binary quadratic forms) is reduced when

bac,

and, in the two boundary cases, the middle coefficient is required to be nonnegative:

b0wheneverb=a  or  a=c.

Remarks

  • The inequalities alone are not enough for uniqueness: the sign convention at the boundary removes the duplicate reduced representatives.
  • The definition applies only to positive-definite forms; the companion page records that the indefinite theory uses a different convention and does not have uniqueness.
LemmaStatement: AI-adaptedProof: AI-generatedprecheck passjudge pass (gpt-5.6-terra)audited 2026-08-26Open item page →

A non-reduced positive-definite form admits an equivalent positive-definite form with smaller reduction measure

Statement

Let f=(a,b,c) be a positive-definite integral binary quadratic form that is not reduced. Define its reduction measure

μ(f):=3a+c+ε(f),

where ε(f)=0 when b0 whenever b=a or a=c, and ε(f)=1 otherwise. Then there exists a properly equivalent positive-definite form g with

μ(g)<μ(f).

Facts & Assumptions

Given: A positive-definite integral binary quadratic form f=(a,b,c) that is not reduced.

[F1]

Proper equivalence is substitution by a determinant-one integer matrix (Proper equivalence of binary quadratic forms).

[F2]

Proper equivalence preserves the discriminant, and hence preserves primitivity as well (Proper equivalence preserves discriminant and primitivity of the form).

[F3]

A 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).

[F4]

A positive-definite form is reduced exactly when bac and b0 whenever b=a or a=c (Reduced positive-definite binary quadratic forms).

Proof

technique · direct
1.1

Since f is positive definite, [F3] gives a>0 and Δ:=b24ac<0.

F3
2.1

If c<a or if c=a and b<0, let g=f(0110)=(c,b,a). This matrix lies in SL2(Z), so g is properly equivalent to f; by [F2] and [F3] it is again positive definite because its leading coefficient is c>0 and its discriminant is still Δ<0. Its measure satisfies μ(g)=3c+a+ε(g)<3a+c+ε(f)=μ(f) because c<a gives a drop of at least 1, and when c=a with b<0 the boundary defect disappears so ε(g)=0<1=ε(f).

F1F2F3F4step 1.1constructalgebra
3.1

Assume now that step 2.1 does not apply. Then ac and, because f is not reduced, one must have b(a,a]. Choose the unique integer k for which b:=b+2ak lies in (a,a], and let g=f(1k01)=(a,b,c), where c=ak2+bk+c.

F1F4step 1.1choose
4.1

The new form g is properly equivalent to f, so it has the same discriminant Δ<0 by [F2]; its leading coefficient is still a>0, so [F3] makes it positive definite. Also 4a(cc)=b2b2, hence cc, with strict inequality when b<b.

F2F3step 1.1step 3.1algebra
5.1

If b>a, then b<b, so step 4.1 gives c<c. In this case ε(f)=0: if a<c there is no boundary defect, while if a=c then step 2.1 was excluded and therefore b>0.

step 2.1step 3.1step 4.1algebra
5.2

If b=a, then step 2.1 is excluded, so a<c and the only way b(a,a] can occur is b=a. Then the chosen residue is b=a, so c=c and the boundary defect disappears: ε(g)=0<1=ε(f). Hence again μ(g)<μ(f).

F4step 3.1step 4.1algebra
6.1

If b>a and c>a, then a<ba<c, so g already satisfies the reduced-form boundary sign conditions and ε(g)=0. Therefore μ(g)=3a+c<3a+c=μ(f).

F4step 5.1algebra
6.2

If b>a and c=a, then step 5.1 gives c>a because otherwise c=a and c=c would force b=b, contradicting b<b. If b0, then ε(g)=0 and μ(g)=4a<3a+c=μ(f). If instead b<0, let h=g(0110)=(a,b,a). Then h is properly equivalent to f, still positive definite, and ε(h)=0, so again μ(h)=4a<3a+c=μ(f).

F1F4step 2.1step 4.1step 5.1algebra
6.3

If b>a and c<a, let h=g(0110)=(c,b,a). Then h is properly equivalent to f and positive definite. Since ca1 and ε(h)1, μ(h)=3c+a+ε(h)3(a1)+a+1=4a2<4a3a+c=μ(f).

F1step 4.1step 5.1algebra
7.1

Step 2.1 covers the case c<a or c=a with b<0; steps 6.1, 6.2, and 6.3 cover the remaining case b>a; and step 5.2 covers the case b=a with b<0. Therefore every non-reduced positive-definite form is properly equivalent to a positive-definite form of smaller reduction measure.

F4step 2.1step 6.1step 6.2step 6.3step 5.2
TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passaudited 2026-08-26Open item page →

Every positive-definite integral binary quadratic form is properly equivalent to a reduced form

Statement

Every positive-definite integral binary quadratic form is properly equivalent to a reduced form.

Facts & Assumptions

Given: A positive-definite integral binary quadratic form f.

[F1]

A positive-definite form is reduced exactly when it satisfies the inequalities and boundary sign condition of Reduced positive-definite binary quadratic forms.

[L1]

If a positive-definite form is not reduced, then some properly equivalent positive-definite form has strictly smaller reduction measure (A non-reduced positive-definite form admits an equivalent positive-definite form with smaller reduction measure).

[L2]

Every nonempty subset of N has a least element (The well-ordering principle).

Proof

technique · direct
1.1

Let S be the set of reduction measures of the positive-definite forms properly equivalent to f. The set S is nonempty because it contains the measure of f, and SN.

givenconstruct
2.1

By [L2], the set S has a least element. Choose a positive-definite form g properly equivalent to f whose reduction measure is that least element.

step 1.1L2choose
3.1

If g were not reduced, [L1] would produce a properly equivalent positive-definite form h with strictly smaller reduction measure. Since h is properly equivalent to g and g is properly equivalent to f, the form h is also properly equivalent to f, so its measure lies in S, contradicting the choice of g.

step 2.1L1algebra
4.1

Therefore g is reduced, and it is properly equivalent to f by construction.

F1step 2.1step 3.1
LemmaStatement: AI-adaptedProof: AI-generatedprecheck passaudited 2026-08-26Open item page →

The leading coefficient of a reduced positive-definite form is minimal in its proper-equivalence class

Statement

Let f=(a,b,c) be a reduced positive-definite binary quadratic form, and let g be any form properly equivalent to f. Then the leading coefficient of g is at least a.

Facts & Assumptions

Given: A reduced positive-definite form f=(a,b,c) and a matrix M=(pqrs)SL2(Z) such that g=fM.

[F1]

A reduced positive-definite form satisfies bac (Reduced positive-definite binary quadratic forms).

[F2]

Proper equivalence means g(x,y)=f(px+qy,rx+sy) (Proper equivalence of binary quadratic forms).

[F3]

Primitive representation means representation by a pair of coprime integers (Integers represented, and primitively represented, by a binary quadratic form).

Proof

technique · direct
1.1

Since f is positive definite, a=f(1,0)>0. Also the leading coefficient of g is g(1,0)=f(p,r)=ap2+bpr+cr2.

F2givenalgebra
1.2

Because psqr=1, every common divisor of p and r divides 1, so gcd(p,r)=1. Thus the integer f(p,r) is primitively represented by f.

F2F3algebra
2.1

Using bac from [F1], we have f(p,r)ap2apr+ar2=a(p2pr+r2).

F1step 1.1algebra
3.1

If r=0, then p0 because psqr=1, so p2pr+r2=p21. If r0, then p2pr+r2=(pr)2+pr1. Hence in all cases p2pr+r21.

step 2.1algebra
4.1

Combining steps 1.1, 2.1, and 3.1 gives g(1,0)=f(p,r)a. So the leading coefficient of g is at least a.

step 1.1step 2.1step 3.1
LemmaStatement: AI-adaptedProof: AI-generatedprecheck passjudge pass (gpt-5.6-terra)audited 2026-08-26Open item page →

Properly equivalent reduced forms with the same leading coefficient are equal

Statement

Let f=(a,b,c) and g=(a,b,c) be reduced positive-definite binary quadratic forms. If f and g are properly equivalent, then f=g.

Facts & Assumptions

Given: Reduced positive-definite forms f=(a,b,c) and g=(a,b,c), and a matrix M=(pqrs)SL2(Z) with g=fM.

[F1]

Proper equivalence means g(x,y)=f(px+qy,rx+sy) (Proper equivalence of binary quadratic forms).

[F2]

Reduced forms satisfy bac and bac, with b0 whenever b=a or a=c, and similarly for b (Reduced positive-definite binary quadratic forms).

[F3]

The discriminant of (u,v,w) is v24uw (The discriminant of a binary quadratic form).

Proof

technique · direct
1.1

The leading coefficient of g is g(1,0)=f(p,r)=ap2+bpr+cr2, and because bac one has g(1,0)a(p2pr+r2)a. Since g has leading coefficient exactly a, equality holds throughout.

F1F2algebra
2.1

Equality in step 1.1 forces p2pr+r2=1, so (p,r) is one of (1,0), (0,1), or (1,1).

step 1.1algebra
3.1

If (p,r)=(1,0), then r=0 and p=±1. The determinant condition gives s=p and M=(pq0p). The transformed middle coefficient is b=b+2aq when p=1 and b=b2aq when p=1, so ba and ba force q=0 unless b=a and b=b. But the boundary rule in [F2] forbids b=a for a reduced form, so q=0, hence b=b and c=c.

F1F2step 2.1algebra
3.2

If (p,r)=(0,1), then p=0 and r=±1. Equality in step 1.1 gives c=a, so reducedness of f yields 0ba. The determinant condition gives q=r, so M=(0rrs), and direct substitution gives g=(a,b+2ars,abrs+as2). Since g is reduced, b+2arsa. If s=0, then g=(a,b,a), and reducedness of g with a=c=a forces b0; together with b0 this gives b=0, hence g=f. If s0, then the same bound implies 2asba, so s=1 and b=a; because 0ba, this means b=a, and the sign of b+2ars shows rs=1. Then g=(a,a,a)=f.

F1F2step 1.1step 2.1algebra
3.3

If (p,r)=(1,1), equality in step 1.1 forces c=a and b=a. By reducedness, b=a. Replacing M by M if necessary does not change the substitution, so we may assume (p,r)=(1,1). Then s+q=1, and the transformed middle coefficient is b=a(2q1). Since ba, one has q=0 or q=1; reducedness excludes b=a, so q=1 and b=a. The discriminant identity b24ac=b24ac then gives c=a=c, so again g=f.

F1F2F3step 1.1step 2.1algebra
4.1

The three cases of step 2.1 are exhaustive, and each yields g=f. Therefore properly equivalent reduced forms with the same leading coefficient are equal.

step 3.1step 3.2step 3.3
TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passaudited 2026-08-26Open item page →

Each proper-equivalence class of positive-definite integral binary quadratic forms contains exactly one reduced form

Statement

Each proper-equivalence class of positive-definite integral binary quadratic forms contains exactly one reduced form.

Facts & Assumptions

Given: A positive-definite integral binary quadratic form f.

[L1]

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).

[L2]

In a reduced class, the leading coefficient is minimal among all properly equivalent forms (The leading coefficient of a reduced positive-definite form is minimal in its proper-equivalence class).

[L3]

Properly equivalent reduced forms with the same leading coefficient are equal (Properly equivalent reduced forms with the same leading coefficient are equal).

Proof

technique · direct
1.1

By [L1], the proper-equivalence class of f contains at least one reduced form.

L1
2.1

Suppose g and h are reduced forms properly equivalent to f. Then g and h are properly equivalent to each other. Applying [L2] first to g against h and then to h against g shows that their leading coefficients are equal.

L2step 1.1algebra
3.1

With equal leading coefficients, [L3] gives g=h. So the reduced representative is unique.

L3step 2.1
4.1

Existence from step 1.1 and uniqueness from step 3.1 prove the theorem.

step 1.1step 3.1
LemmaStatement: AI-adaptedProof: AI-generatedprecheck passjudge pass (gpt-5.6-terra)audited 2026-08-26Open item page →

A reduced positive-definite form of discriminant Δ satisfies aΔ/3

Statement

Let (a,b,c) be a reduced positive-definite binary quadratic form with discriminant Δ. Then

aΔ/3.

Facts & Assumptions

Given: A reduced positive-definite form (a,b,c) with discriminant Δ.

[F1]

Reduced forms satisfy bac (Reduced positive-definite binary quadratic forms).

[F2]

The discriminant of (a,b,c) is Δ=b24ac (The discriminant of a binary quadratic form).

Proof

technique · direct
1.1

From bac we get b2a2ac.

F1algebra
2.1

Since the form is positive definite, [L1] gives Δ<0, so Δ=4acb2. Using step 1.1 yields Δ=4acb24a2a2=3a2.

F2L1step 1.1algebra
3.1

Therefore a2Δ/3, and since a>0 for a positive-definite form, taking square roots gives aΔ/3.

F1step 2.1algebra
CorollaryStatement: Literature-sourcedProof: AI-adaptedprecheck passaudited 2026-08-26Open item page →

For each negative discriminant, there are only finitely many proper-equivalence classes of positive-definite integral binary quadratic forms

Statement

For every negative integer Δ, there are only finitely many proper-equivalence classes of positive-definite integral binary quadratic forms of discriminant Δ.

Facts & Assumptions

Given: A negative integer Δ.

[L1]

Each proper-equivalence class of positive-definite integral binary quadratic forms contains exactly one reduced form (Each proper-equivalence class of positive-definite integral binary quadratic forms contains exactly one reduced form).

[L2]

A reduced positive-definite form of discriminant Δ satisfies aΔ/3 (A reduced positive-definite form of discriminant Δ satisfies aΔ/3).

Proof

technique · direct
1.1

By [L1], it is enough to show that only finitely many reduced forms have discriminant Δ.

L1
1.2

If (a,b,c) is reduced with discriminant Δ, then 1aΔ/3 by [L2], so only finitely many positive integers a can occur.

L2algebra
2.1

For each such a, reducedness gives ba, so only finitely many integers b can occur. Once a and b are fixed, the discriminant equation Δ=b24ac determines c=(b2Δ)/(4a) uniquely. Therefore only finitely many reduced triples (a,b,c) have discriminant Δ.

step 1.2algebra
3.1

Hence there are only finitely many proper-equivalence classes of positive-definite integral binary quadratic forms of discriminant Δ.

step 1.1step 2.1
DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-5.6-terra)audited 2026-08-26Open item page →

The class number of primitive positive-definite binary quadratic forms of discriminant Δ

Definition

Let Δ<0 be an integer with Δ0 or 1(mod4). The binary quadratic form class number h(Δ) is the number of proper-equivalence classes of primitive positive-definite integral binary quadratic forms of discriminant Δ.

This number is finite by For each negative discriminant, there are only finitely many proper-equivalence classes of positive-definite integral binary quadratic forms, since primitive positive-definite forms of discriminant Δ are a subclass of all positive-definite forms of discriminant Δ.

Remarks

  • The adjective "form" matters: later pages may compare this quantity with class numbers defined through ideals in quadratic orders.
  • The companion page computes h(4), h(8), h(20), and h(23) by enumerating reduced representatives.
CorollaryStatement: Literature-sourcedProof: AI-adaptedprecheck passaudited 2026-08-26Open item page →

Proper equivalence of positive-definite integral binary quadratic forms is decidable

Statement

There is an algorithm to decide whether two positive-definite integral binary quadratic forms are properly equivalent: reduce both forms, and compare the two reduced triples.

Facts & Assumptions

Given: Positive-definite integral binary quadratic forms f and g.

[L1]

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).

Proof

technique · direct
1.1

By [L1], choose reduced forms fred and gred properly equivalent to f and g, respectively.

L1choose
2.1

If f and g are properly equivalent, then fred and gred lie in the same proper-equivalence class, so [L2] gives fred=gred.

L2step 1.1
2.2

Conversely, if fred=gred, then f and g are both properly equivalent to that same reduced form, hence are properly equivalent to each other.

step 1.1algebra
3.1

Therefore f and g are properly equivalent exactly when their reduced representatives are equal. Since equality of two explicit coefficient triples is decidable, proper equivalence is decidable.

step 2.1step 2.2

5 · Examples, counterexamples and false statements

None yet.

Sources