Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sequences of positive rational numbers #1371

Open
wants to merge 36 commits into
base: master
Choose a base branch
from

Conversation

malarbol
Copy link
Contributor

@malarbol malarbol commented Mar 19, 2025

This PR implements some of my suggestions from #1354 (comment)
It introduces the following modules:

  • group-theory.arithmetic-sequences-semigroups:

    • sequences in a semigroup with a common difference: uₙ₊₁ = uₙ + d;
    • standard arithmetic sequences given by initial value and common difference;
    • homotopy between arithmetic sequences with same initial value and common difference.
  • elementary-number-theory.arithmetic-sequences-positive-rational-numbers:

    • arithmetic sequences in the additive semigroup of positive rational numbers;
    • basic properties;
    • computational rule uₙ = u₀ + n d;
    • an arithmetic sequence in ℚ⁺ is strictly increasing and unbounded.
  • elementary-number-theory.geometric-sequences-positive-rational-numbers:

    • arithmetic sequences in the multiplicative semigroup of positive rational numbers;
    • basic properties;
    • computational rule uₙ = u₀ rⁿ ;
    • constant sequences are geometric;
    • multiplication of geometric sequences in ℚ⁺;
    • inversion of geometric sequences in ℚ⁺.
  • elementary-number-theory.bernoullis-inequality-positive-rational-numbers:

    • ∀ (h : ℚ⁺) (n : ℕ) → 1 + (n + 1)h ≤ (1 + n h)(1 + h);
    • Bernoulli's inequality in ℚ⁺: ∀ (h : ℚ⁺) (n : ℕ) → 1 + n h ≤ (1 + h)ⁿ.

@malarbol
Copy link
Contributor Author

Hi @fredrik-bakke! I hope you are doing well.
This is the follow-up of my comment in #1354 (comment) . I finally went through the technical details and wrote a few proof that will probably help us doing real analysis.

The next steps would probably be to work with geometric series, if we prove (1 - r)(1 + r + ... + rⁿ) = 1 - rⁿ⁺¹ we could prove the convergence of positive rational geometric series. We should also build some similar machinery for the positive real numbers but we'll need addition and multiplication. Let's talk about it ;)

PS: I have no idea why the link-check doesn't pass. Do you have any tip? Also, the typechecking seems a bit long; I guess we'll have to abstract a few proofs but I don't really know which one.

@VojtechStep
Copy link
Collaborator

I have no idea why the link-check doesn't pass

"Concept definition not found: arithmetic sequence ; expected "arithmetic-sequence-ℚ⁺" to exist in elementary-number-theory.arithmetic-sequences-positive-rational-numbers.md" means that there's an issue with the {{#concept}} tag for that definition. The problem here is that the Agda=xyz part shouldn't have quotes around xyz.

we'll have to abstract a few proofs but I don't really know which one

Unless you really need to calculate with the definition, probably at least proofs of inequalities should be abstract

@malarbol
Copy link
Contributor Author

The problem here is that the Agda=xyz part shouldn't have quotes around xyz.

oh! I see. sorry, you could have caught that!

Unless you really need to calculate with the definition, probably at least proofs of inequalities should be abstract

ok. I'll do that. thanks a lot!

Copy link
Collaborator

@fredrik-bakke fredrik-bakke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice pull request, and welcome back!

I've attempted to give a proper review of this PR, but seeing as I'm one of the people least involved with elementary number theory, it might make sense in the future to defer some of the review work to @lowasser if he's comfortable with that, or @EgbertRijke given that he has time.

@malarbol
Copy link
Contributor Author

Hello. Thanks for your feedback. I'll mark this as a draft while I address your comments and re-open it when I have a cleaner version.

@malarbol malarbol marked this pull request as draft March 22, 2025 14:38
@malarbol malarbol marked this pull request as ready for review March 23, 2025 22:14
@malarbol
Copy link
Contributor Author

I rewrote the definitions of arithmetic and geometric sequences as arithmetic sequences in semigroups. These are the sequences with a constant difference between successive terms. I think it's more in the spirit of what you expected.

All the ingredients are here to prove (r > 1)ⁿ -> +∞ and (r < 1)ⁿ -> 0 but, if you don't mind, I'll to it in another PR involving limits in metric spaces.

@fredrik-bakke
Copy link
Collaborator

I rewrote the definitions of arithmetic and geometric sequences as arithmetic sequences in semigroups. These are the sequences with a constant difference between successive terms. I think it's more in the spirit of what you expected.

Yes, I saw, that's a great solution!

All the ingredients are here to prove (r > 1)ⁿ -> +∞ and (r < 1)ⁿ -> 0 but, if you don't mind, I'll to it in another PR involving limits in metric spaces.

Yes, that sounds good. This PR is already getting somewhat large.

@malarbol malarbol requested a review from fredrik-bakke March 23, 2025 22: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.

3 participants