-
Notifications
You must be signed in to change notification settings - Fork 82
Eventually pointed sequences #1382
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
Changes from all commits
19d91dc
ff0e5f2
15a1f5c
c7508f4
5fcaac0
f7b86a4
a33a64e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,98 @@ | ||||||
# Eventually constant sequences | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
```agda | ||||||
module foundation.eventually-constant-sequences where | ||||||
``` | ||||||
|
||||||
<details><summary>Imports</summary> | ||||||
|
||||||
```agda | ||||||
open import elementary-number-theory.based-induction-natural-numbers | ||||||
open import elementary-number-theory.inequality-natural-numbers | ||||||
open import elementary-number-theory.maximum-natural-numbers | ||||||
open import elementary-number-theory.natural-numbers | ||||||
|
||||||
open import foundation.constant-maps | ||||||
open import foundation.dependent-pair-types | ||||||
open import foundation.eventually-equal-sequences | ||||||
open import foundation.eventually-pointed-sequences-types | ||||||
open import foundation.function-types | ||||||
open import foundation.functoriality-dependent-pair-types | ||||||
open import foundation.identity-types | ||||||
open import foundation.sequences | ||||||
open import foundation.universe-levels | ||||||
``` | ||||||
|
||||||
</details> | ||||||
|
||||||
## Idea | ||||||
|
||||||
A [sequence](foundation.sequences.md) `u` is | ||||||
{{#concept "eventually constant" Disambiguation="sequence" Agda=has-modulus-eventually-constant-sequence}} | ||||||
if `u p = u q` for sufficiently large `p` and `q`. | ||||||
Comment on lines
+30
to
+32
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please update the idea section to instead define moduli of eventually constant sequences |
||||||
|
||||||
## Definitions | ||||||
|
||||||
### Eventually constant sequences | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
```agda | ||||||
module _ | ||||||
{l : Level} {A : UU l} (u : sequence A) | ||||||
where | ||||||
|
||||||
has-modulus-eventually-constant-sequence : UU l | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Under your current definitions, you can't deduce that "an eventually constant sequence has a modulus" without a choice principle. By omitting the qualifier
Suggested change
This is analogous to how we say "countings of finite types" as opposed to "finite types have counting". |
||||||
has-modulus-eventually-constant-sequence = | ||||||
has-modulus-eventually-pointed-sequence | ||||||
(λ p → has-modulus-eventually-pointed-sequence (λ q → u p = u q)) | ||||||
``` | ||||||
|
||||||
### The eventual value of an eventually constant sequence | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe the standard nomenclature is to call this "eventual value" the "clustering point" or "asymptotic value". Please find a standard reference to follow for the terminology usage here. |
||||||
|
||||||
```agda | ||||||
module _ | ||||||
{l : Level} {A : UU l} {u : sequence A} | ||||||
(H : has-modulus-eventually-constant-sequence u) | ||||||
where | ||||||
|
||||||
value-has-modulus-eventually-constant-sequence : A | ||||||
value-has-modulus-eventually-constant-sequence = | ||||||
u (modulus-has-modulus-eventually-pointed-sequence H) | ||||||
|
||||||
has-modulus-eventual-value-has-modulus-eventually-constant-sequence : | ||||||
has-modulus-eventually-pointed-sequence | ||||||
(λ n → value-has-modulus-eventually-constant-sequence = u n) | ||||||
has-modulus-eventual-value-has-modulus-eventually-constant-sequence = | ||||||
value-at-modulus-has-modulus-eventually-pointed-sequence H | ||||||
``` | ||||||
|
||||||
## Properties | ||||||
|
||||||
### Constant sequences are eventually constant | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
```agda | ||||||
module _ | ||||||
{l : Level} {A : UU l} (x : A) | ||||||
where | ||||||
|
||||||
has-modulus-eventually-constant-const-sequence : | ||||||
has-modulus-eventually-constant-sequence (const ℕ x) | ||||||
pr1 has-modulus-eventually-constant-const-sequence = zero-ℕ | ||||||
pr2 has-modulus-eventually-constant-const-sequence p I = | ||||||
(zero-ℕ , λ _ _ → refl) | ||||||
``` | ||||||
|
||||||
### An eventually constant sequence is eventually equal to the constant sequence of its eventual value | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
```agda | ||||||
module _ | ||||||
{l : Level} {A : UU l} {u : sequence A} | ||||||
(H : has-modulus-eventually-constant-sequence u) | ||||||
where | ||||||
|
||||||
has-modulus-eventually-eq-value-has-modulus-eventually-constant-sequence : | ||||||
has-modulus-eventually-eq-sequence | ||||||
( const ℕ (value-has-modulus-eventually-constant-sequence H)) | ||||||
( u) | ||||||
has-modulus-eventually-eq-value-has-modulus-eventually-constant-sequence = | ||||||
has-modulus-eventual-value-has-modulus-eventually-constant-sequence H | ||||||
``` |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,153 @@ | ||
# Eventually equal sequences | ||
|
||
```agda | ||
module foundation.eventually-equal-sequences where | ||
``` | ||
|
||
<details><summary>Imports</summary> | ||
|
||
```agda | ||
open import elementary-number-theory.inequality-natural-numbers | ||
open import elementary-number-theory.maximum-natural-numbers | ||
open import elementary-number-theory.natural-numbers | ||
|
||
open import foundation.dependent-pair-types | ||
open import foundation.eventually-pointed-sequences-types | ||
open import foundation.functoriality-dependent-pair-types | ||
open import foundation.homotopies | ||
open import foundation.identity-types | ||
open import foundation.sequences | ||
open import foundation.universe-levels | ||
|
||
open import foundation-core.function-types | ||
``` | ||
|
||
</details> | ||
|
||
## Idea | ||
|
||
Two [sequences](foundation.sequences.md) `u` and `v` are | ||
{{#concept "eventually equal" Disambiguation="sequences" Agda=has-modulus-eventually-eq-sequence}} | ||
if `u n = v n` for sufficiently large | ||
[natural numbers](elementary-number-theory.natural-numbers.md) `n : ℕ`. | ||
|
||
## Definitions | ||
|
||
### The relation of being eventually equal sequences | ||
|
||
```agda | ||
module _ | ||
{l : Level} {A : UU l} (u v : sequence A) | ||
where | ||
|
||
has-modulus-eventually-eq-sequence : UU l | ||
has-modulus-eventually-eq-sequence = | ||
has-modulus-eventually-pointed-sequence (λ n → u n = v n) | ||
``` | ||
|
||
### Modulus of eventual equality | ||
|
||
```agda | ||
module _ | ||
{l : Level} {A : UU l} {u v : sequence A} | ||
(H : has-modulus-eventually-eq-sequence u v) | ||
where | ||
|
||
modulus-has-modulus-eventually-eq-sequence : ℕ | ||
modulus-has-modulus-eventually-eq-sequence = pr1 H | ||
|
||
is-modulus-has-modulus-eventually-eq-sequence : | ||
(n : ℕ) → leq-ℕ modulus-has-modulus-eventually-eq-sequence n → u n = v n | ||
is-modulus-has-modulus-eventually-eq-sequence = pr2 H | ||
``` | ||
|
||
## Properties | ||
|
||
### Any sequence is asymptotically equal to itself | ||
|
||
```agda | ||
module _ | ||
{l : Level} {A : UU l} (u : sequence A) | ||
where | ||
|
||
refl-has-modulus-eventually-eq-sequence : | ||
has-modulus-eventually-eq-sequence u u | ||
pr1 refl-has-modulus-eventually-eq-sequence = zero-ℕ | ||
pr2 refl-has-modulus-eventually-eq-sequence m H = refl | ||
``` | ||
|
||
### Homotopic sequences are eventually equal | ||
|
||
```agda | ||
has-modulus-eventually-eq-htpy-sequence : | ||
{u v : sequence A} → (u ~ v) → has-modulus-eventually-eq-sequence u v | ||
has-modulus-eventually-eq-htpy-sequence {u} {v} I = (zero-ℕ , λ n H → I n) | ||
``` | ||
|
||
### Eventual equality is a symmetric relation | ||
|
||
```agda | ||
module _ | ||
{l : Level} {A : UU l} (u v : sequence A) | ||
where | ||
|
||
symmetric-has-modulus-eventually-eq-sequence : | ||
has-modulus-eventually-eq-sequence u v → | ||
has-modulus-eventually-eq-sequence v u | ||
symmetric-has-modulus-eventually-eq-sequence = | ||
map-Π-has-modulus-eventually-pointed-sequence (λ n → inv) | ||
|
||
module _ | ||
{l : Level} {A : UU l} {u v : sequence A} | ||
where | ||
|
||
inv-has-modulus-eventually-eq-sequence : | ||
has-modulus-eventually-eq-sequence u v → | ||
has-modulus-eventually-eq-sequence v u | ||
inv-has-modulus-eventually-eq-sequence = | ||
symmetric-has-modulus-eventually-eq-sequence u v | ||
``` | ||
|
||
### Eventual equality is a transitive relation | ||
|
||
```agda | ||
module _ | ||
{l : Level} {A : UU l} (u v w : sequence A) | ||
where | ||
|
||
transitive-has-modulus-eventually-eq-sequence : | ||
has-modulus-eventually-eq-sequence v w → | ||
has-modulus-eventually-eq-sequence u v → | ||
has-modulus-eventually-eq-sequence u w | ||
transitive-has-modulus-eventually-eq-sequence = | ||
map-binary-Π-has-modulus-eventually-pointed-sequence (λ n I J → J ∙ I) | ||
``` | ||
|
||
### Conjugation of asymptotical equality | ||
|
||
```agda | ||
module _ | ||
{l : Level} {A : UU l} {u u' v v' : sequence A} | ||
where | ||
|
||
conjugate-has-modulus-eventually-eq-sequence : | ||
has-modulus-eventually-eq-sequence u u' → | ||
has-modulus-eventually-eq-sequence v v' → | ||
has-modulus-eventually-eq-sequence u v → | ||
has-modulus-eventually-eq-sequence u' v' | ||
conjugate-has-modulus-eventually-eq-sequence H K I = | ||
transitive-has-modulus-eventually-eq-sequence u' u v' | ||
( transitive-has-modulus-eventually-eq-sequence u v v' K I) | ||
( inv-has-modulus-eventually-eq-sequence H) | ||
|
||
conjugate-has-modulus-eventually-eq-sequence' : | ||
has-modulus-eventually-eq-sequence u u' → | ||
has-modulus-eventually-eq-sequence v v' → | ||
has-modulus-eventually-eq-sequence u' v' → | ||
has-modulus-eventually-eq-sequence u v | ||
conjugate-has-modulus-eventually-eq-sequence' H K I = | ||
transitive-has-modulus-eventually-eq-sequence u u' v | ||
( transitive-has-modulus-eventually-eq-sequence u' v' v | ||
(inv-has-modulus-eventually-eq-sequence K) I) | ||
( H) | ||
``` |
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file can be called
moduli-eventually-constant-sequences
, leaving room for the eventual file (no pun intended)eventually-constant-sequences
, which should consider the proof theoretically correct notion of eventually constant sequences.