MIL/C03_Logic/S06_Sequences_and_Convergence.lean
Explanation legend Lean4 Domain Explanation Language (L4DEL)
L4DEL explanations are a separate layer. They do not change the Lean source. Intuition is explanatory prose; numbered items are a reading path; sources link the wording back to evidence.
- L4DEL
- Lean4 Domain Explanation Language
Credit: The upstream authors and contributors retain credit for the project and mathematics. lean4-explainer only renders their pinned source and adds the separately disclosed explanation layer.
Project sources: Pinned Mathematics in Lean documentation, Pinned Mathematics in Lean textbook
12 declarations, 5 contain sorry, 0 declared as axioms
Imports (2)
Imported by 1 file
- def
C03S06.ConvergesToConvergence of a real sequence line 6 sourceL4DEL explanation
A sequence converges to a if, for every positive epsilon, all terms past some index N stay within epsilon of a.
- The definition is ConvergesTo (s : ℕ → ℝ) (a : ℝ) := ∀ ε > 0, ∃ N, ∀ n ≥ N, |s n - a| < ε.
- The alternation of quantifiers matters: N may depend on ε, and n ranges over every index at least N.
See also: C03S06.convergesTo_const
Sources and attribution: Pinned Lean source (dd6d752fedb1)
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,RealProof uses:
GT.gt,OfNat.ofNat,Exists,GE.ge,LT.lt,abs,HSub.hSub8 instances, coercions and auxiliary constants left out.
Also declared: MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean:6 (same declaration text).
epsilon-N definition: the formulation of a limit that quantifies over a tolerance epsilon and a cutoff index N, as used by ConvergesTo.
Tactic trace: 8 steps
Open to load the checked before-and-after goal states.
def ConvergesTo (s : ℕ → ℝ) (a : ℝ) := …
- example
C03S06.(example at line 9)line 9 source - example
C03S06.(example at line 13)line 13 source - example
C03S06.(example at line 17)line 17 source - theorem
C03S06.convergesTo_constA constant sequence converges to its constant line 22 sourceL4DEL explanation
Every term equals a, so the distance to a is 0, which is below any positive epsilon.
- intro ε εpos fixes a positive tolerance.
- use 0 chooses the cutoff N = 0, since all indices work.
- intro n nge fixes an arbitrary index.
- rw [sub_self, abs_zero] turns |a - a| into 0, and apply εpos closes 0 < ε.
Prerequisites: C03S06.ConvergesTo
Sources and attribution: Pinned Lean source (dd6d752fedb1)
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Real, C03S06.ConvergesTo,NatProof uses:
GT.gt,OfNat.ofNat,Exists.intro,GE.ge,LT.lt,abs,HSub.hSub,Eq.mpr,id,Eq,congrArg,sub_self,abs_zero23 instances, coercions and auxiliary constants left out.
Also declared: MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean:9 (same declaration text).
Tactic trace: 5 steps
Open to load the checked before-and-after goal states.
theorem convergesTo_const (a : ℝ) : ConvergesTo (fun _x : ℕ ↦ a) a := by …
Mentions: C03S06.ConvergesTo
- theorem
C03S06.convergesTo_addsorry line 29 sourcedepends on sorry what this means
Statement uses:
Nat,Real, C03S06.ConvergesTo,HAdd.hAddProof uses:
GT.gt,OfNat.ofNat,id,Exists,GE.ge,LT.lt,abs,HSub.hSub,HDiv.hDiv,lt_of_not_ge,LE.le,Mathlib.Tactic.Linarith.lt_irrefl,Eq.mp,HMul.hMul,inferInstance,AddMonoidWithOne,Mathlib.Meta.NormNum.instAtLeastTwo,congrArg,Mathlib.Tactic.Ring.of_eq,Mathlib.Tactic.Ring.Common.add_congrand 69 more82 instances, coercions and auxiliary constants left out.
Distinct definitions of this name: MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean:16 (same statement text; different proof or body). Qualify references as C03S06.convergesTo_add@path.
Tactic trace: 8 steps
Open to load the checked before-and-after goal states.
- theorem
C03S06.convergesTo_mul_constsorry line 40 sourcedepends on sorry what this means
Statement uses:
Nat,Real, C03S06.ConvergesTo,HMul.hMulProof uses:
dite,Eq,OfNat.ofNat,Eq.mpr,eq_of_heq,HEq,Eq.refl,HEq.refl,Eq.symm,funext,id,congrArg,Mathlib.Tactic.Ring.of_eq,Mathlib.Tactic.Ring.Common.mul_congr,HAdd.hAdd,HPow.hPow,Nat.rawCast,Mathlib.Tactic.Ring.cast_zero,Mathlib.Meta.NormNum.isNat_ofNat,Nat.cast_zeroand 16 more46 instances, coercions and auxiliary constants left out.
Distinct definitions of this name: MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean:36 (same statement text; different proof or body). Qualify references as C03S06.convergesTo_mul_const@path.
Tactic trace: 10 steps
Open to load the checked before-and-after goal states.
- theorem
C03S06.exists_abs_le_of_convergesTosorry line 51 sourcedepends on sorry what this means
Statement uses:
Nat,Real, C03S06.ConvergesTo,Exists,LE.le,LT.lt,absProof uses:
GE.ge,HSub.hSub,OfNat.ofNat,zero_lt_one,Exists.intro,HAdd.hAdd,sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous23 instances, coercions and auxiliary constants left out.
Distinct definitions of this name: MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean:56 (same statement text; different proof or body). Qualify references as C03S06.exists_abs_le_of_convergesTo@path.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
- theorem
C03S06.auxsorry line 57 sourcedepends on sorry what this means
Statement uses:
Nat,Real, C03S06.ConvergesTo,OfNat.ofNat,HMul.hMulProof uses:
GT.gt,id,Exists,GE.ge,LT.lt,abs,HSub.hSub,LE.le,C03S06.exists_abs_le_of_convergesTo,lt_of_le_of_lt,abs_nonneg,le_refl,HDiv.hDiv,div_pos,sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous44 instances, coercions and auxiliary constants left out.
Distinct definitions of this name: MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean:68 (same statement text; different proof or body). Qualify references as C03S06.aux@path.
Tactic trace: 7 steps
Open to load the checked before-and-after goal states.
- theorem
C03S06.convergesTo_mulline 67 sourcedepends on sorry what this means
Statement uses:
Nat,Real, C03S06.ConvergesTo,HMul.hMulProof uses:
HAdd.hAdd,Neg.neg,OfNat.ofNat,C03S06.aux,Eq.mpr,eq_of_heq,Eq,HEq,Eq.refl,HEq.refl,Eq.symm,Mathlib.Tactic.Ring.of_eq,Mathlib.Tactic.Ring.cast_zero,Mathlib.Meta.NormNum.isNat_ofNat,Nat.cast_zero,Mathlib.Tactic.Ring.Common.add_congr,HPow.hPow,Nat.rawCast,Int.rawCast,inferInstanceand 38 more37 instances, coercions and auxiliary constants left out.
Also declared: MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean:85 (same declaration text).
Tactic trace: 10 steps
Open to load the checked before-and-after goal states.
- theorem
C03S06.convergesTo_uniquesorry line 79 sourcedepends on sorry what this means
Statement uses:
Nat,Real, C03S06.ConvergesTo,EqProof uses:
Decidable.byContradiction,Not,GT.gt,abs,HSub.hSub,OfNat.ofNat,sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous,HDiv.hDiv,id,lt_of_not_ge,LE.le,Mathlib.Tactic.Linarith.lt_irrefl,Eq.mp,LT.lt,HAdd.hAddand 72 more80 instances, coercions and auxiliary constants left out.
Distinct definitions of this name: MIL/C03_Logic/solutions/Solutions_S06_Sequences_and_Convergence.lean:97 (same statement text; different proof or body). Qualify references as C03S06.convergesTo_unique@path.
Tactic trace: 17 steps
Open to load the checked before-and-after goal states.
- def
C03S06.ConvergesTo'line 99 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
LinearOrder,RealProof uses:
GT.gt,OfNat.ofNat,Exists,GE.ge,LT.lt,abs,HSub.hSub13 instances, coercions and auxiliary constants left out.