Download data/lean/OAI/NumberTheory/Ostmann/Arithmetic/ArithmeticCRTSeparation.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 2.51 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/NumberTheory/Ostmann/Arithmetic/ArithmeticCRTSeparation.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/NumberTheory/Ostmann/Arithmetic/ArithmeticCRTSeparation.lean
-
curl -L -o ArithmeticCRTSeparation.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/NumberTheory/Ostmann/Arithmetic/ArithmeticCRTSeparation.lean
2.51 kB
| import OAI.NumberTheory.Ostmann.Construction.RegularDiagonalCancellation | |
| namespace OAI | |
| /-! # Removing the regular-prime block from the signed arithmetic average -/ | |
| namespace Ostmann | |
| open scoped BigOperators | |
| /-- Simultaneously split the integer and unit giant residues. -/ | |
| noncomputable def crtSplitExternalEquiv (c r : β) (hc : c.Coprime r) : | |
| (ZMod (c * r) Γ (ZMod (c * r))Λ£) β | |
| (ZMod c Γ (ZMod c)Λ£) Γ (ZMod r Γ (ZMod r)Λ£) := | |
| ((ZMod.chineseRemainder hc).toEquiv.prodCongr (crtSplitUnitEquiv c r hc)).trans | |
| (Equiv.prodProdProdComm _ _ _ _) | |
| /-- The signed remainder includes spectator, internal-prime and frequency | |
| tests, including the retained Page correction. No absolute value is taken. -/ | |
| theorem crt_external_regular_with_remainder {I : Type*} [Fintype I] [DecidableEq I] | |
| (p : I β β) [β i, Fact (p i).Prime] [β i, NeZero (p i)] [NeZero (β i, p i)] | |
| (hc : Pairwise (fun i j => (p i).Coprime (p j))) | |
| (r : β) [NeZero r] [NeZero ((β i, p i) * r)] | |
| (hcop : (β i, p i).Coprime r) | |
| (active : I β Bool) (a : β i, (ZMod (p i))Λ£) (g : β i, ZMod (p i) β β) | |
| (hg : β i, g i 0 = 0) (henergy : β i, (β x : ZMod (p i), βg i xβ ^ 2) = p i) | |
| (F : ZMod r Γ (ZMod r)Λ£ β β) : | |
| (Fintype.card (ZMod ((β i, p i) * r) Γ (ZMod ((β i, p i) * r))Λ£) : β)β»ΒΉ * | |
| (β z, | |
| ((β i, externalRegularLocal (active i) (a i) (g i) | |
| (crtExternalPairEquiv p hc (crtSplitExternalEquiv (β i, p i) r hcop z).1 i) : β) : β) * | |
| F (crtSplitExternalEquiv (β i, p i) r hcop z).2) = | |
| ((β i, if active i then (1 : β) else 1 - (p i : β)β»ΒΉ : β) : β) * | |
| ((Fintype.card (ZMod r Γ (ZMod r)Λ£) : β)β»ΒΉ * β z, F z) := by | |
| have hreg := crt_external_regular_cancellation p hc active a g hg henergy | |
| have hregC : (Fintype.card (ZMod (β i, p i) Γ (ZMod (β i, p i))Λ£) : β)β»ΒΉ * | |
| (β z, ((β i, externalRegularLocal (active i) (a i) (g i) | |
| (crtExternalPairEquiv p hc z i) : β) : β)) = | |
| ((β i, if active i then (1 : β) else 1 - (p i : β)β»ΒΉ : β) : β) := by | |
| simpa only [Complex.ofReal_mul, Complex.ofReal_inv, Complex.ofReal_natCast, | |
| Complex.ofReal_sum] using congrArg (fun t : β => (t : β)) hreg | |
| rw [uniform_equiv_product_average (crtSplitExternalEquiv (β i, p i) r hcop) | |
| (fun z => ((β i, externalRegularLocal (active i) (a i) (g i) | |
| (crtExternalPairEquiv p hc z i) : β) : β)) F, hregC] | |
| end Ostmann | |
| end OAI | |