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 fd06b1a
Browse filesBrowse the repository at this point in the historyBrowse files
Fermat's little theorem and the freshman's dream, for every prime (#1502)
Under a quantifier that establishes p prime, p divides d where writing each power
(u + v)^p in d as u^p + v^p leaves nothing: what the binomial theorem adds are
multiples of binomial(p, k) with 0 < k < p, and the rule asks the quantifiers for
that first (add_pow_char, resting on Nat.Prime.dvd_choose_self). A congruence
reads the same rule.
A congruence modulo a symbol, or an equation of residues, over a row of whole
numbers holds where it holds at one member and the difference of its sides changes
by a multiple of the modulus from each member to the next (Int.inductionOn'). For
a^p = a (mod p) that change is (a + 1)^p - a^p - 1, which the binomial theorem reads.
Sullivan and Mackey's Prob 8.9.25 and 8.9.26.
Part of #1409.
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
$"by the binomial theorem each ({string.Join("), (",d.Nodes.OfType<Powf>().Where(power =>power.BaseisSumf or Minusf&&power.Exponent==p).Select(power =>power.Base).Distinct())})^{p} is the sum of the {p}-th powers of its terms and multiples of {p}, and what is left of {d} is a multiple of {p}",
295
+
"add_pow_char",Entity.Boolean.True);
296
+
returntrue;
297
+
}
298
+
299
+
/// <summary>The p-th powers of the terms of a sum, added: <c>(u - v)^p</c> is read as <c>u^p - v^p</c>.</summary>
ProofRecording.AddBelow(newForallf(x,set,newDividesf(modulus,step)),$"{modulus} divides the difference at {x} + 1 less the difference at {x}, at every member","intro",Entity.Boolean.True);
460
+
how=($"by induction up and down from {start}: {modulus} divides the difference of the two sides there, and the difference changes by a multiple of {modulus} from each member to the next","Int.inductionOn'");
461
+
returnEntity.Boolean.True;
462
+
}
463
+
464
+
/// <summary>
465
+
/// Whether <c>m divides d</c> simplifies to true, with what it rests on recorded under
466
+
/// the decision, or <paramref name="deeper"/> under a step the caller records itself.
0 commit comments