OAI/Combinatorics/ParityLifts/ListPrograms.lean
16 declarations, 0 contain sorry, 0 declared as axioms
- def
OAI.ParityWL.Complexity.PolyProgram.recodeline 7 - def
OAI.ParityWL.Complexity.PolyProgram.tabulateline 18 - def
OAI.ParityWL.Complexity.PolyProgram.filterWithline 28 - def
OAI.ParityWL.Complexity.PolyProgram.memline 37 - def
OAI.ParityWL.Complexity.PolyProgram.subsetline 49 - lemma
OAI.ParityWL.Complexity.fold_dedup_appendline 56 - def
OAI.ParityWL.Complexity.dedupListline 66 - lemma
OAI.ParityWL.Complexity.dedupList_toFinsetline 69 - def
OAI.ParityWL.Complexity.PolyProgram.dedupline 72 - def
OAI.ParityWL.Complexity.findIndexline 87Source documentation
First-index search, expressed by one polynomial fold rather than an oracle.
def findIndex {α : Type} (p : α → Bool) (xs : List α) : ℕ := xs.takeWhile (fun x => !p x) |>.length - lemma
OAI.ParityWL.Complexity.findIndex_nilline 89 - lemma
OAI.ParityWL.Complexity.findIndex_consline 90 - lemma
OAI.ParityWL.Complexity.fold_findIndexline 94 - lemma
OAI.ParityWL.Complexity.findIndex_eq_lengthline 103 - lemma
OAI.ParityWL.Complexity.findIndex_leline 111 - def
OAI.ParityWL.Complexity.PolyProgram.findIndexWithline 114