Cauchy sequences #
A basic theory of Cauchy sequences, used in the construction of the reals and p-adic numbers. Where applicable, lemmas that will be reused in other contexts have been stated in extra generality. There are other "versions" of Cauchyness in the library, in particular Cauchy filters in topology. This is a concrete implementation that is useful for simplicity and computability reasons.
Important definitions #
IsCauSeq
: a predicate that saysf : ℕ → β
is Cauchy.CauSeq
: the type of Cauchy sequences valued in typeβ
with respect to an absolute value functionabv
.
Tags #
sequence, cauchy, abs val, absolute value
Given a Cauchy sequence f
, create a Cauchy sequence from a sequence g
with
the same values as f
.
Equations
- CauSeq.ofEq f g e = { val := g, property := (_ : ∀ ε > 0, ∃ (i : ℕ), ∀ j ≥ i, abv (g j - g i) < ε) }
Instances For
The constant Cauchy sequence.
Equations
Instances For
Equations
- CauSeq.instZeroCauSeq = { zero := CauSeq.const abv 0 }
Equations
- CauSeq.instOneCauSeq = { one := CauSeq.const abv 1 }
Equations
- CauSeq.instInhabitedCauSeq = { default := 0 }
Equations
- (_ : IsScalarTower G (CauSeq β abv) (CauSeq β abv)) = (_ : IsScalarTower G (CauSeq β abv) (CauSeq β abv))
Equations
- One or more equations did not get rendered due to their size.
Equations
- CauSeq.instNatCast = { natCast := fun (n : ℕ) => CauSeq.const abv ↑n }
Equations
- CauSeq.instIntCast = { intCast := fun (n : ℤ) => CauSeq.const abv ↑n }
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
LimZero f
holds when f
approaches 0.
Equations
- CauSeq.LimZero f = ∀ ε > 0, ∃ (i : ℕ), ∀ j ≥ i, abv (↑f j) < ε
Instances For
Equations
- CauSeq.equiv = { r := fun (f g : CauSeq β abv) => CauSeq.LimZero (f - g), iseqv := (_ : Equivalence fun (f g : CauSeq β abv) => CauSeq.LimZero (f - g)) }
Given a Cauchy sequence f
with nonzero limit, create a Cauchy sequence with values equal to
the inverses of the values of f
.
Equations
Instances For
The entries of a positive Cauchy sequence eventually have a positive lower bound.
Equations
- CauSeq.Pos f = ∃ K > 0, ∃ (i : ℕ), ∀ j ≥ i, K ≤ ↑f j
Instances For
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
Note that DistribLattice (CauSeq α abs)
is not true because there is no PartialOrder
.