OAI/Computability/WLIdentification/PolynomialArithmetic.lean
22 declarations, 0 contain sorry, 0 declared as axioms
- theorem
OAI.WLIdentification.WordExpressions.Poly.replicateline 11 - theorem
OAI.WLIdentification.WordExpressions.Poly.mapBitsline 17 - theorem
OAI.WLIdentification.WordExpressions.Poly.appendline 22 - theorem
OAI.WLIdentification.WordExpressions.Poly.reverseline 53 - theorem
OAI.WLIdentification.WordExpressions.Poly.takeline 66 - theorem
OAI.WLIdentification.WordExpressions.Poly.dropPrefixline 76 - theorem
OAI.WLIdentification.WordExpressions.NatPoly.sumline 96 - theorem
OAI.WLIdentification.WordExpressions.NatPoly.pairline 141 - theorem
OAI.WLIdentification.WordExpressions.NatPoly.sqrtline 148 - theorem
OAI.WLIdentification.WordExpressions.NatPoly.unpair_fstline 163 - theorem
OAI.WLIdentification.WordExpressions.NatPoly.unpair_sndline 171 - theorem
OAI.WLIdentification.WordExpressions.NatPoly.cap_mulline 184 - theorem
OAI.WLIdentification.WordExpressions.NatPoly.cappedPowline 193 - theorem
OAI.WLIdentification.WordExpressions.NatPoly.bitsSizeline 216 - theorem
OAI.WLIdentification.WordExpressions.NatPoly.div_capline 250 - theorem
OAI.WLIdentification.WordExpressions.NatPoly.testBitline 255 - theorem
OAI.WLIdentification.WordExpressions.Poly.bitsline 265 - theorem
OAI.WLIdentification.WordExpressions.Poly.binaryline 276 - def
OAI.WLIdentification.WordExpressions.NatPoly.decodeCapline 286Source documentation
Saturated, genuine left-to-right binary decoding. It stays unary-bounded by c.
def decodeCap (w : Word) (c : ℕ) : ℕ := w.foldl (fun x b => Min.min (2*x+if b then 1 else 0) c) 0
Mentions: OAI.WLIdentification.Word
- theorem
OAI.WLIdentification.WordExpressions.NatPoly.decodeCap_auxline 288 - theorem
OAI.WLIdentification.WordExpressions.NatPoly.decodeCap_correctline 306 - theorem
OAI.WLIdentification.WordExpressions.NatPoly.decodeline 309