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
Alias of the reverse direction of isCauSeq_neg
.
Alias of the forward direction of isCauSeq_neg
.
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 := ⋯ }
Instances For
The constant Cauchy sequence.
Equations
- CauSeq.const abv x = { val := fun (x_1 : ℕ) => x, property := ⋯ }
Instances For
Equations
- CauSeq.instZeroCauSeq = { zero := CauSeq.const abv 0 }
Equations
- CauSeq.instOneCauSeq = { one := CauSeq.const abv 1 }
Equations
- CauSeq.instInhabitedCauSeq = { default := 0 }
Equations
- CauSeq.instSMulCauSeq = { smul := fun (a : G) (f : CauSeq β abv) => CauSeq.ofEq (CauSeq.const abv (a • 1) * f) (a • ↑f) ⋯ }
Equations
- ⋯ = ⋯
Equations
- CauSeq.addGroup = Function.Injective.addGroup Subtype.val ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯
Equations
- CauSeq.instNatCast = { natCast := fun (n : ℕ) => CauSeq.const abv ↑n }
Equations
- CauSeq.instIntCast = { intCast := fun (n : ℤ) => CauSeq.const abv ↑n }
Equations
- CauSeq.addGroupWithOne = Function.Injective.addGroupWithOne Subtype.val ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯
Equations
- CauSeq.ring = Function.Injective.ring Subtype.val ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯
Equations
- CauSeq.instCommRingCauSeqToRing = let __src := CauSeq.ring; CommRing.mk ⋯
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 := ⋯ }
Given a Cauchy sequence f
with nonzero limit, create a Cauchy sequence with values equal to
the inverses of the values of f
.
Equations
- CauSeq.inv f hf = { val := fun (j : ℕ) => (↑f j)⁻¹, property := ⋯ }
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
- CauSeq.instPreorderCauSeqToRingToStrictOrderedRingToLinearOrderedRingToLinearOrderedCommRingAbsToLatticeInstDistribLatticeToLinearOrderToAddGroupToAddGroupWithOne = Preorder.mk ⋯ ⋯ ⋯
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
.