Repository navigation
Add divisibility, primes, congruence and factorial - #565
Open
d-morrison wants to merge 13 commits into
Open
d-morrison wants to merge 13 commits into
d-morrison wants to merge 13 commits into
Conversation
These six definitions were local to the mcs course notes (CSCI 201). They are general number facts, so they move here and mcs will include them from mds, as the consolidation plan for mds and mcs approved on 2026-11-02 sets out. The ids match the mcs ones (def-divides, def-prime, def-congruence, def-factorial, def-floor, def-logarithm), so links into mcs keep working. The logarithm sits on the algebra page after the real power it uses; the rest go on the number-systems page, with a new Divisibility section. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019xfc9pMBq15Hq3DgNBx1ox
Review of the first commit found that the factorial was undefined at 0, which binomial coefficients need, and that the logarithm did not say its value exists and is unique. Also renames the section to cover primes and congruence, and makes the page intro say which numbers each applies to. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019xfc9pMBq15Hq3DgNBx1ox
check-term-links flagged unlinked first uses of integer, prime, factorial, floor, real number, natural numbers and base. Rewords two sentences whose words (exists, product) match unrelated defined terms. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019xfc9pMBq15Hq3DgNBx1ox
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
…mark The review asked for an example after each new definition, as the lab's content rules require. Floor and logarithm get R figures; the single-value examples carry no-figure notes. The uniqueness of log_b x now has its own remark with the derivation from the natural logarithm, and the long lines are split at clause boundaries. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019xfc9pMBq15Hq3DgNBx1ox
The branch went over the PR size cap; the logarithm is a separate concern on a separate page, so it moves to its own branch and PR. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019xfc9pMBq15Hq3DgNBx1ox
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019xfc9pMBq15Hq3DgNBx1ox
Contributor
Author
|
Here is how each point from the review was handled. The new head is 6b02717.
Suggestions:
The floor and the logarithm moved to #566 to keep this PR under the size cap. Posted by Claude Code (AI agent) --- not written by a human. Generated by Claude Code |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
The review asked for semantic line breaks in the prime and congruence definitions; the divides definition had the same pattern. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019xfc9pMBq15Hq3DgNBx1ox
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
# Conflicts: # _number-systems.qmd
Contributor
Built to branch |
gha v3 now flags "term (@Def-x)" on added lines (gha#1402). Each of the seven flagged lines in the number-systems subfiles now links the term itself. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019xfc9pMBq15Hq3DgNBx1ox
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Contributor
|
Claude finished review — View run Re-reviewed
The prior verdict, from the 2026-11-03T00:08 review of VerdictReady for merge. Structured Review Data (JSON){
"schema_version": "1.1",
"reviewer": "claude",
"commit_sha": "e3de9b66603670c5e1dd6bfebef4443a5c2d9f6f",
"verdict": "CLEAN",
"findings": [],
"detailed_assessment": "Seven number-systems subfiles swap trailing (@def-id) crossrefs for linked terms; every target id (divides, integers, positive-integer, nonnegative-integers, congruence, prime, factorial) is defined, and the prime definition wording is logically equivalent.",
"holistic_assessment": "The change is scoped to crossref style, preserves ids and meaning, adds no math or generated-file changes, and does not alter the earlier clean verdict."
}Reviewed commit: e3de9b6 |
Contributor
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is the first PR in the mds/mcs consolidation that Ezra approved on 2026-11-02. It moves four general definitions out of the mcs CSCI 201 notes and into mds, and adds an example after each one. A later mcs PR will include them from here.
The floor function and the logarithm to base b were split out into Morrison-Lab/mds#566 to keep this PR under the size cap.
What changes
All of the definitions below go on the number-systems page.
def-factorialandexm-factorial. The factorial is defined for non-negative integers, and the definition states that 0! = 1, which the mcs version left undefined.def-divides,def-primeanddef-congruence, each followed by an example.references.bibgets three Wikipedia entries copied from mcs.The ids are the same as in mcs, so existing links in mcs keep working once mcs switches to these includes.
Two mcs theorems are held back for a follow-up: infinitely many primes, and √2 is irrational. Their proofs cite mcs remarks and an mcs exercise solution, so those have to move first.
Checks
number-systems.qmdrenders to HTML with no warnings.check-term-links,check-new-line-breaksandcheck-exm-figurespass locally againstorigin/main.🤖 Generated with Claude Code
https://claude.ai/code/session_019xfc9pMBq15Hq3DgNBx1ox