Repository navigation
A statement about a sum up to n is decided by induction, and an identity is read over atoms - #1446
Conversation
…ity is read over atoms forall n in ZZ+ : sum(f, k, a, n) = g is proved from the least member of the set: the statement there, and the statement at n + 1 with the sum unfolded by one term and the sum to n replaced by g, decided as an identity. A piecewise body -- what a closed form comes as -- is read as the case whose condition holds at every member; the polynomial identity test reads over atoms (2^(n + 1) is 2 * 2^n, (n + 2)! is (n + 2)(n + 1) n!) and puts quotients over one denominator, claimed where the denominator is not zero -- decided over the set for the quantified name, stated as a condition for a free parameter. ZZ+ /\ [2; +oo) has a least member, and Closed knows it is not empty. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
…ion, and the whole numbers from m are ZZ* shifted by m forall n in S : L > R (or >=, <, <=) with an exponential or a factorial in n, from the least member of S: it holds there, and with P = L - R, P(n + 1) = c P(n) + D for a multiplier c >= 0 -- one, the base of an exponential, n + 1 beside a factorial -- and a remainder D >= 0 read by a sign calculus: a positive base to any power, a factorial of a whole number, a polynomial in n decided over the set, sums and products of these, and a sum read per atom product with its collected coefficient. ZZ+ /\ [4; +oo) is decided as a statement about 4 + t over ZZ*, so every route reads a cut set, and a sum whose upper bound is n plus a whole number still unfolds. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
|
Don't just call that book "the reference" because we may have more references later. |
There will be more references; Sullivan and Mackey is named in every comment, test summary and BREAKING-CHANGES entry that cites it, as the maintainer asked on #1446. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
|
Done in f2dd604: Sullivan and Mackey named at every citation — the two comments of this PR, and the earlier ones in |
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
|
Is the original link saved anywhere in a reference list of this repository as credits? |
…nks, as the credits Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
|
It was not — the link lived only in #1409's body. Now it is: |
forall n in ZZ+ : sum(f, k, a, n) = gis decided by induction from the least member of the set: the statement at that member, and the statement atn + 1with the sum unfolded by one term and the sum tonreplaced byg— the hypothesis — decided as an identity. Sullivan and Mackey's chapter 5 (Ex 5.2.5, §5.2.4 Try 1, §5.3.4 Try 6, Prob 5.7.1, 5.7.16, Thm 5.3.1's induction from any base).Three things had to be read on the way, each a route in
Quantifiers.Decide:sum(k, k, 1, n)is(n + n^2)/2 provided n >= 0— and a quantifier did not read one, soforall n in ZZ+ : sum(k, k, 1, n) = n (n + 1)/2stayed as written. The case whose condition holds at every member is the body; a case whose condition holds at none is passed over.-(1 - 2^(n + 1)) = 2^(n + 1) - 1was not an identity. Whatever is not a sum, product, quotient or whole power is one indeterminate; a whole shift in an exponent is a factor (2^(n + 1)is2 · 2^n,(-1)^(n - 1)is(-1)^n / (-1)), a whole multiple is a power (x^(2 n)is(x^n)^2), and a factorial of a shifted argument is the smaller one times the numbers between ((n + 2)!is(n + 2)(n + 1) n!). A difference of quotients is put over one denominator, and the identity is claimed where the denominator is not zero: decided over the set for the quantified name (n + 1is never0onZZ+), stated as a condition for a free parameter (sum(1/(a k (k + 1)), k, 1, n) = n/(a (n + 1))isTrue provided not a = 0), and not claimed otherwise (forall x in RR : x/(x - 1) - 1/(x - 1) = 1stays).ZZ+ /\ [2; +oo), so that induction starts there andClosedknows the set is not empty.forall n in ZZ+ : sum(k, k, 1, n) = n (n + 1) / 2Trueforall n in ZZ+ : sum(1 / (k (k + 1)), k, 1, n) = n / (n + 1)True, by inductionforall n in ZZ+ : sum(k k!, k, 1, n) = (n + 1)! - 1Trueforall n in ZZ+ : sum((-1)^(k - 1) k^2, k, 1, n) = (-1)^(n - 1) n (n + 1) / 2Trueforall n in ZZ+ : product((2 k - 1) / (2 k), k, 1, n) = (2 n)! / (4^n (n!)^2)Trueforall n in ZZ+ : sum(k k!, k, 1, n) = (n + 1)!False, atn = 1forall n in ZZ+ : n! >= 2^(n - 1)Trueforall n in ZZ+ /\ [5; +oo) : 2^n > n^2(Ex 5.3.2)True; from4it isFalseforall n in ZZ+ /\ [7; +oo) : n! > 3^n,[12; +oo) : n! > 5^n(Prob 5.7.8–9),[8; +oo) : 3^n > n^4,[5; +oo) : 4^n > n^4(Prob 5.7.2),[6; +oo) : n^3 < 3^(n - 1)(§5.3.4 Try 4)Trueforall n in ZZ+ : 7^n + 7 < 7^(n + 1)(Prob 5.7.12)True; with base2it isFalseat1forall n in ZZ+ /\ [4; +oo) : n^2 - 2 n - 1 > 0TrueSecond commit — inequalities, which the first commit's body called v3-shaped and are not. The step of
P(n) >= 0is read off a multiple of the hypothesis:P(n + 1) = c P(n) + Dfor ac >= 0(one, the base of an exponential,n + 1beside a factorial) and aD >= 0by a sign calculus over the shape — a positive base to any power, a factorial of a whole number, a polynomial inndecided over the set, sums and products of these, and a sum read per atom product with its collected coefficient ((n + 1) n! - 2 n!is(n - 1) n!). No hypothesis line is needed because the hypothesis enters asc P(n)and never as a rewrite. And the whole numbers frommareZZ*shifted bym: a statement overZZ+ /\ [4; +oo)is decided as one about4 + toverZZ*, which reaches every route (residues, solving, witness, both inductions) rather than one.Only the shape with one sum or product alone on a side of an equation is read; a closed form with a case on a free parameter (the geometric sum at
q = 1) is left as written, as the doc says, and so is an inequality whose step is not a multiple of the hypothesis plus something of known sign (2^n >= n^2 - 3 n + 3is true and stays).InductionTest(75 rows: proved, proved under a condition, refuted at a member, inequalities, left as written, identities over atoms);Syntax.mdandBREAKING-CHANGES.mdupdated. Full suite 12342 passed; the allocation gate passes on all 19 gated benchmarks on each of the two commits (nothing here is on a benchmarked path).Part of #1409.
🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura