Chinese Remainder Theorem #
This file provides definitions and theorems for the Chinese Remainder Theorem. These are used in Gödel's Beta function, which is used in proving Gödel's incompleteness theorems.
Main result #
chineseRemainderOfList: Definition of the Chinese remainder of a list
Tags #
Chinese Remainder Theorem, Gödel, beta function
The natural number less than (l.map s).prod congruent to
a i mod s i for all i ∈ l.
Equations
- Nat.chineseRemainderOfList a s [] x_2 = ⟨0, ⋯⟩
- Nat.chineseRemainderOfList a s (i :: l) co = ⟨↑(Nat.chineseRemainder ⋯ (a i) ↑(Nat.chineseRemainderOfList a s l ⋯)), ⋯⟩
Instances For
@[simp]
theorem Nat.chineseRemainderOfList_lt_prod {ι : Type u_1} (a s : ι → ℕ) (l : List ι) (co : List.Pairwise (Function.onFun Coprime s) l) (hs : ∀ i ∈ l, s i ≠ 0) :
theorem Nat.chineseRemainderOfList_modEq_unique {ι : Type u_1} (a s : ι → ℕ) (l : List ι) (co : List.Pairwise (Function.onFun Coprime s) l) {z : ℕ} (hz : ∀ i ∈ l, z ≡ a i [MOD s i]) :
theorem Nat.chineseRemainderOfList_perm {ι : Type u_1} (a s : ι → ℕ) {l l' : List ι} (hl : l.Perm l') (hs : ∀ i ∈ l, s i ≠ 0) (co : List.Pairwise (Function.onFun Coprime s) l) :
The natural number less than (m.map s).prod congruent to
a i mod s i for all i ∈ m.
Equations
- One or more equations did not get rendered due to their size.
Instances For
def Nat.chineseRemainderOfFinset {ι : Type u_1} (a s : ι → ℕ) (t : Finset ι) (hs : ∀ i ∈ t, s i ≠ 0) (pp : (↑t).Pairwise (Function.onFun Coprime s)) :
The natural number less than ∏ i ∈ t, s i congruent to
a i mod s i for all i ∈ t.
Equations
- Nat.chineseRemainderOfFinset a s t hs pp = Nat.chineseRemainderOfMultiset a s ⋯ ⋯ ⋯
Instances For
theorem Nat.chineseRemainderOfFinset_lt_prod {ι : Type u_1} (a s : ι → ℕ) {t : Finset ι} (hs : ∀ i ∈ t, s i ≠ 0) (pp : (↑t).Pairwise (Function.onFun Coprime s)) :