Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Refactor elementary number theory#1211

Draft
EgbertRijke wants to merge 151 commits intoUniMath:masterUniMath/agda-unimath:masterfrom
EgbertRijke:irrationality-sqrt-2EgbertRijke/agda-unimath:irrationality-sqrt-2Copy head branch name to clipboard
Draft

Refactor elementary number theory#1211
EgbertRijke wants to merge 151 commits intoUniMath:masterUniMath/agda-unimath:masterfrom
EgbertRijke:irrationality-sqrt-2EgbertRijke/agda-unimath:irrationality-sqrt-2Copy head branch name to clipboard

Conversation

@EgbertRijke
Copy link
Copy Markdown
Collaborator

@EgbertRijke EgbertRijke commented Oct 25, 2024

The biggest changes come from a change in the definition of the quotient of a divisible natural number. The updated definition defines the quotient of n by d, provided that d | n is the unique natural number q ≤ n such that q * d = n. This change prevents some case analyses around the situation where the Curry-Howard interpretation of divisibility is not a proposition. An alternative definition of divisibility is also given: bounded divisibility. This is always a proposition. The poset of the natural numbers by divisibility is updated to use bounded divisibility in favor of propositional truncation.

The change in the definition of the quotient by divisibility triggered changes in the fundamental theorem of arithmetic, which is thoroughly revised after discovering that the strong induction that we previously used was unnecessarily complicated.

New files include:

  • Bounded divisibility
  • Irrationality of the square root of 2
  • Lists of prime numbers
  • Multiplicative decompositions of natural numbers
  • Nicomachus's Theorem
  • Nontrivial divisors of natural numbers
  • Number of divisors
  • Parity of integers
  • Pronic numbers
  • Square pyramidal numbers
  • Unit integers
  • Unit similarity integers
  • Well-ordering principles of the integers
  • Dependent lists
  • Elementhood relation on lists
  • Universal quantification on lists

@fredrik-bakke
Copy link
Copy Markdown
Collaborator

fredrik-bakke commented Oct 27, 2024

Cool! I'll wait to submit the 100-theorems list to Freek until after this PR is merged :) #1203

Comment thread src/elementary-number-theory/parity-integers.lagda.md
EgbertRijke added 27 commits May 5, 2026 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.