Theorems · Definition · number theory
GenContFract.squashSeq
{K : Type u_1} → [DivisionRing K] → Stream'.Seq (GenContFract.Pair K) → ℕ → Stream'.Seq (GenContFract.Pair K)Given a sequence of GenContFract.Pairs s = [(a₀, b₀), (a₁, b₁), ...], squashSeq s n
combines ⟨aₙ, bₙ⟩ and ⟨aₙ₊₁, bₙ₊₁⟩ at position n to ⟨aₙ, bₙ + aₙ₊₁ / bₙ₊₁⟩. For example,
squashSeq s 0 = [(a₀, b₀ + a₁ / b₁), (a₁, b₁),...].
If s.TerminatedAt (n + 1), then squashSeq s n = s.
- Cited by
- 7 results in Mathlib
- Foundations
- Depth 45 from the axioms · uses propext, Classical.choice, Quot.sound
- Assumes
- DivisionRing
Around this declaration
Dashed lines are statement dependencies; solid lines are citations in proofs.
Cites8
Mathlib declarations this one mentions in its statement or cites explicitly in its proof. Plumbing is filtered out.
- DivisionRingstatement and proof · cited by 1,062
- Stream'.Seqstatement and proof · cited by 226
- Stream'.Seq.get?proof · cited by 122
- GenContFract.Pairstatement and proof · cited by 85
- GenContFract.Pair.bproof · cited by 51
- GenContFract.Pair.aproof · cited by 43
- Stream'.Seq.zipWithproof · cited by 11
- Stream'.Seq.natsproof · cited by 6
Cited by8
Results whose statement or proof uses this declaration.
- GenContFract.squashGCFproof · cited by 6
- GenContFract.squashSeq_eq_self_of_terminatedstatement · cited by 3
- GenContFract.squashSeq_nth_of_not_terminatedstatement · cited by 3
- GenContFract.squashGCF_eq_self_of_terminatedproof · cited by 2
- GenContFract.squashSeq_nth_of_ltstatement · cited by 2
- GenContFract.squashSeq_succ_n_tail_eq_squashSeq_tail_nstatement · cited by 1
- GenContFract.succ_nth_conv'_eq_squashGCF_nth_conv'proof · cited by 1
- GenContFract.succ_succ_nth_conv'Aux_eq_succ_nth_conv'Aux_squashSeqstatement and proof · cited by 1