Download data/lean/OAI/NumberTheory/SingleFold/Model.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 1.03 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/NumberTheory/SingleFold/Model.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/NumberTheory/SingleFold/Model.lean
-
curl -L -o Model.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/NumberTheory/SingleFold/Model.lean
1.03 kB
| import Mathlib | |
| namespace OAI | |
| namespace SingleFold | |
| /-- Evaluation over the integers of an integer polynomial at natural inputs. -/ | |
| noncomputable def evalNat {n m : β} (P : MvPolynomial (Fin n β Fin m) β€) | |
| (a : Fin n β β) (w : Fin m β β) : β€ := | |
| MvPolynomial.eval (Sum.elim (fun i => (a i : β€)) (fun j => (w j : β€))) P | |
| /-- Exact existence on members, no witness on nonmembers, and uniqueness of the | |
| whole witness on every input. No coordinates are hidden outside `w`. -/ | |
| def Represents {n m : β} (P : MvPolynomial (Fin n β Fin m) β€) | |
| (S : Set (Fin n β β)) : Prop := | |
| β a, (a β S β β w, evalNat P a w = 0) β§ | |
| β w v, evalNat P a w = 0 β evalNat P a v = 0 β w = v | |
| /-- Single-fold representation with positive input and witness lengths. -/ | |
| def MainStatement : Prop := | |
| β (n : β), 1 β€ n β β (S : Set (Fin n β β)), REPred (fun a => a β S) β | |
| β (m : β), 1 β€ m β§ β P : MvPolynomial (Fin n β Fin m) β€, Represents P S | |
| end SingleFold | |
| end OAI | |