Download data/lean/OAI/Algebra/FormulaHitting/FormulaSeries.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 1.15 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Algebra/FormulaHitting/FormulaSeries.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Algebra/FormulaHitting/FormulaSeries.lean
-
curl -L -o FormulaSeries.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Algebra/FormulaHitting/FormulaSeries.lean
1.15 kB
| import OAI.Algebra.FormulaHitting.Evaluation | |
| import OAI.Algebra.FormulaHitting.Series | |
| namespace OAI | |
| noncomputable section | |
| namespace NCHitting | |
| namespace Formula | |
| variable {F : Type*} {n : β} [Field F] | |
| def series (f : Formula F n) : PowerSeries F := | |
| f.polynomial.sum (fun w a => PowerSeries.C a * wordSeries w) | |
| theorem series_eq_smul_sum (f : Formula F n) : | |
| f.series = f.polynomial.sum (fun w a => a β’ wordSeries w) := by | |
| simp only [series, PowerSeries.smul_eq_C_mul] | |
| theorem series_eq_sum_of_cutoff (f : Formula F n) (d : β) | |
| (hcut : β w, d β€ w.length β f.coeff w = 0) : | |
| f.series = β k β Finset.range d, β w β wordsOfLength n k, | |
| PowerSeries.C (f.coeff w) * wordSeries w := by | |
| exact sum_eq_sum_wordsOfLength f.polynomial hcut _ (by intro w; simp) | |
| theorem series_eq_sum_wordsOfLength (f : Formula F n) {s : β} (hs : f.size β€ s) : | |
| f.series = β k β Finset.range (s + 1), β w β wordsOfLength n k, | |
| PowerSeries.C (f.coeff w) * wordSeries w := by | |
| apply f.series_eq_sum_of_cutoff | |
| intro w hw | |
| exact f.coeff_eq_zero_of_length_gt w (by omega) | |
| end Formula | |
| end NCHitting | |
| end | |
| end OAI | |