OAI/Computability/WLIdentification/AddressArithmetic.lean
18 declarations, 0 contain sorry, 0 declared as axioms
- def
OAI.WLIdentification.BinaryAddress.carryMapline 9 - theorem
OAI.WLIdentification.BinaryAddress.carryMap_relline 18 - theorem
OAI.WLIdentification.BinaryAddress.carryMap_soundline 39 - theorem
OAI.WLIdentification.BinaryAddress.carryMap_completeline 45 - def
OAI.WLIdentification.BinaryAddress.cycleMapline 58Source documentation
An additional all-ones case supplies the cyclic seam for positions only.
def cycleMap (d : ℕ) : Option (Fin d) → ProductMap d | none => ProductMap.singleton (fun _ => true) (fun _ => false) | some h => carryMap h
Mentions: OAI.WLIdentification.ProductMap, OAI.WLIdentification.ProductMap.singleton, OAI.WLIdentification.BinaryAddress.carryMap
- theorem
OAI.WLIdentification.BinaryAddress.cycleMap_soundline 62 - theorem
OAI.WLIdentification.BinaryAddress.cycleMap_completeline 72 - def
OAI.WLIdentification.BinaryAddress.rotationline 79 - theorem
OAI.WLIdentification.BinaryAddress.rotation_advanceline 82 - theorem
OAI.WLIdentification.BinaryAddress.value_lt_iffline 97Source documentation
The largest differing bit determines strict numeric order.
theorem value_lt_iff {d : ℕ} (x y : Bits d) : value x < value y ↔ ∃ h : Fin d, x h = false ∧ y h = true ∧ ∀ i, h < i → x i = y i := by …Mentions: OAI.WLIdentification.BinaryAddress.Bits, OAI.WLIdentification.BinaryAddress.value
- def
OAI.WLIdentification.BinaryAddress.aboveMapline 142Source documentation
A threshold request fixes its high prefix and first strictly-larger bit.
def aboveMap {d : ℕ} (x : Bits d) (h : Fin d) : ProductMap d where …Mentions: OAI.WLIdentification.BinaryAddress.Bits, OAI.WLIdentification.ProductMap
- theorem
OAI.WLIdentification.BinaryAddress.aboveMap_relline 148 - abbrev
OAI.WLIdentification.BinaryAddress.ThresholdCaseline 164 - def
OAI.WLIdentification.BinaryAddress.thresholdMapline 166 - theorem
OAI.WLIdentification.BinaryAddress.threshold_soundline 170 - theorem
OAI.WLIdentification.BinaryAddress.threshold_completeline 181 - theorem
OAI.WLIdentification.ProductCircuit.edge_relline 194 - theorem
OAI.WLIdentification.ProductCircuit.seed_relline 199