feat: System.Platform.numBits inequalities (#6247)
This PR adds the theorems `numBits_pos`, `le_numBits`, `numBits_le` , which make proving inequalities about `System.Platform.numBits` easier.
This commit is contained in:
parent
6d495586a1
commit
827062f807
1 changed files with 9 additions and 0 deletions
|
|
@ -23,5 +23,14 @@ def isEmscripten : Bool := getIsEmscripten ()
|
|||
/-- The LLVM target triple of the current platform. Empty if missing at Lean compile time. -/
|
||||
def target : String := getTarget ()
|
||||
|
||||
theorem numBits_pos : 0 < numBits := by
|
||||
cases numBits_eq <;> next h => simp [h]
|
||||
|
||||
theorem le_numBits : 32 ≤ numBits := by
|
||||
cases numBits_eq <;> next h => simp [h]
|
||||
|
||||
theorem numBits_le : numBits ≤ 64 := by
|
||||
cases numBits_eq <;> next h => simp [h]
|
||||
|
||||
end Platform
|
||||
end System
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue