Download lean/OAI/NumberTheory/PiExponent/Approximation/AddEquivSignedSum.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 754 Bytes
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/NumberTheory/PiExponent/Approximation/AddEquivSignedSum.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/OAI/NumberTheory/PiExponent/Approximation/AddEquivSignedSum.lean
-
curl -L -o AddEquivSignedSum.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/NumberTheory/PiExponent/Approximation/AddEquivSignedSum.lean
754 Bytes
| import Mathlib | |
| namespace OAI | |
| namespace PiExponent.AddEquivSignedSum | |
| open scoped BigOperators | |
| theorem map_signed_sum {A B : Type*} [AddCommGroup A] [AddCommGroup B] | |
| (E : A ≃+ B) (q : ℕ) (f : Fin (q+2) → A) : | |
| E (∑ k, (-1 : ℤ)^k.val • f k) = ∑ k, (-1 : ℤ)^k.val • E (f k) := by | |
| simp only [map_sum, map_zsmul] | |
| theorem map_signed_sum_eq {A B : Type*} [AddCommGroup A] [AddCommGroup B] | |
| (E : A ≃+ B) (q : ℕ) (f : Fin (q+2) → A) (g : Fin (q+2) → B) | |
| (h : ∀ k, E (f k) = g k) : | |
| E (∑ k, (-1 : ℤ)^k.val • f k) = ∑ k, (-1 : ℤ)^k.val • g k := by | |
| rw [map_signed_sum] | |
| exact Finset.sum_congr rfl (fun k _ => congrArg (fun z => (-1 : ℤ)^k.val • z) (h k)) | |
| end PiExponent.AddEquivSignedSum | |
| end OAI | |