You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit cd786d5
Browse filesBrowse the repository at this point in the historyBrowse files
n in ZZ and 2^n > n^2 is solved to a set, and a power's residues repeat with the base's order (#1449)
* n in ZZ and 2^n > n^2 is solved to a set: a window searched and its tails proved by induction
An inequality with an exponential or a factorial over the whole numbers, conjoined with the
membership, is searched over a window from the least member; the members are the points where it
holds, and the whole numbers from the start of the final run -- and over ZZ down from the end of the
first -- where the quantifier proves the statement there by induction. A tail it does not prove
leaves the inequality solver's refusal in place: a window is evidence about the window. Sullivan
and Mackey's Ex 5.3.2 is { 0, 1 } \/ ZZ /\ [5; +oo). The inequality induction reads the sign of
the whole expression off its shape before looking for a step, which is what proves a downward tail.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
* A power of a whole base repeats modulo m with the base's order, so the residues decide it
forall n in ZZ+ : 3 divides 7^n - 4^n is one residue and forall n in ZZ* : not (7 divides 2^n + 1)
three: a divisibility or a congruence in a polynomial of n and of powers a^e(n), a prime to the
modulus and e a whole polynomial, has period lcm(m, ord_m(a), ...) in n over the non-negative
whole numbers. A base sharing a factor with the modulus repeats only eventually, and over ZZ a
power is fractional at a negative exponent; both are left as written. Sullivan and Mackey's §5.2.4
Try 3 and Ex 5.3.7.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
---------
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: BREAKING-CHANGES.md
+28Lines changed: 28 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -788,6 +788,34 @@ written
788
788
|`"forall n in ZZ+ : n! >= 2^(n - 1)".ToEntity().Evaled`|`UnhandledParseException`|`True`|
789
789
|`"forall n in ZZ+ /\\ [4; +oo) : n^2 - 2 n - 1 > 0".ToEntity().Evaled`|`UnhandledParseException`|`True` — decided about `4 + t` over `ZZ*`|
790
790
791
+
### `n in ZZ and 2^n > n^2` is solved to a set, and was a refusal
792
+
793
+
An inequality with an exponential or a factorial over the whole numbers is solved to the members
794
+
of a window from the least member and the rays the quantifier proves by induction, upwards and,
795
+
over `ZZ`, downwards; a tail it does not prove leaves the refusal in place, since a window is
796
+
evidence about the window ([#1409](https://github.com/asc-community/AngouriMath/issues/1409),
797
+
Sullivan and Mackey's Ex 5.3.2 and Prob 5.7.2, 5.7.8–9).
798
+
799
+
| Input | Was (2.5.0) | Now |
800
+
|---|---|---|
801
+
|`"n in ZZ and 2^n > n^2".ToEntity().Solve("n")`|`NotSufficientlySupportedException` — "Only polynomial inequalities are supported" |`{ 0, 1 } \/ ZZ /\ [5; +oo)`|
802
+
|`"n in ZZ+ and n! > 3^n".ToEntity().Solve("n")`|`NotSufficientlySupportedException`|`ZZ+ /\ [7; +oo)`|
803
+
|`"n in ZZ and n^3 < 3^(n - 1)".ToEntity().Solve("n")`|`NotSufficientlySupportedException`|`ZZ /\ (-oo; 0] \/ ZZ /\ [6; +oo)`|
804
+
|`"n in ZZ and 2^n >= n^2 - 3 n + 3".ToEntity().Solve("n")`|`NotSufficientlySupportedException`| the same — the tail from `1` is not proved, and the window is not guessed from |
805
+
806
+
And a divisibility or a congruence with a power of a whole base in the quantified name is decided
807
+
by its residues too, over the non-negative whole numbers: `a^n` modulo `m` repeats with the order
808
+
of `a` where `a` is prime to `m`, so `forall n in ZZ+ : 3 divides 7^n - 4^n` is `True` by one
809
+
residue and `forall n in ZZ* : not (7 divides 2^n + 1)` by three (Sullivan and Mackey's §5.2.4 Try 3
810
+
and Ex 5.3.7). A base sharing a factor with the modulus, or a negative exponent over `ZZ`, is left
811
+
as written.
812
+
813
+
| Input | Was (2.5.0) | Now |
814
+
|---|---|---|
815
+
|`forall n in ZZ+ : 3 divides 7^n - 4^n`|`UnhandledParseException`|`True`|
816
+
|`forall n in ZZ* : not (7 divides 2^n + 1)`|`UnhandledParseException`|`True`|
817
+
|`forall n in ZZ+ : 5 divides 7^n - 1`|`UnhandledParseException`|`False`|
818
+
791
819
### `binomial(n, k)` is a function
792
820
793
821
**Addition, not silent.** The binomial coefficient is a node, `Entity.Binomialf`, spelled
from `5`), `forall n in ZZ+ /\ [4; +oo) : 2^n > n^2` is `False` at `4`, and `forall n in ZZ+ :
319
323
n! >= 2^(n - 1)` is `True`. The whole numbers from `m` are `ZZ*` shifted by `m`, so a statement
320
-
over `ZZ+ /\ [4; +oo)` is decided as one about `4 + t` over `ZZ*`, whichever route reads it. `not`
324
+
over `ZZ+ /\ [4; +oo)` is decided as one about `4 + t` over `ZZ*`, whichever route reads it. A
325
+
divisibility or a congruence in a polynomial of `n` with whole coefficients repeats with the
326
+
modulus, so its residues decide it (`forall n in ZZ : 6 divides n^3 + 5 n` is `True` by six cases),
327
+
and with a power `a^n` of a whole base prime to the modulus among the terms it repeats with the
328
+
order of `a` as well: `forall n in ZZ+ : 3 divides 7^n - 4^n` is `True` by one residue, `forall n
329
+
in ZZ* : not (7 divides 2^n + 1)` by three — over the non-negative whole numbers, where the powers
330
+
are whole; a base sharing a factor with the modulus repeats only eventually and is left as written. `not`
321
331
passes through a quantifier by flipping it: `not forall x in S : P` is `exists x in S : not P`. In LaTeX, `\forall x \in S : P`. `forall`, `exists` and
0 commit comments