Skip to content

Commit

Permalink
feat: lemmas about Std.Range (#6396)
Browse files Browse the repository at this point in the history
This PR adds lemmas reducing for loops over `Std.Range` to for loops
over `List.range'`.

Equivalent theorems previously existed in Batteries, but the underlying
definitions have changed so these are written from scratch.
  • Loading branch information
kim-em authored Dec 16, 2024
1 parent 5c2ef51 commit 791bea0
Show file tree
Hide file tree
Showing 13 changed files with 697 additions and 500 deletions.
2 changes: 1 addition & 1 deletion src/Init/Data/Int/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The integers, with addition, multiplication, and subtraction.
-/
prelude
import Init.Data.Cast
import Init.Data.Nat.Div
import Init.Data.Nat.Div.Basic

set_option linter.missingDocs true -- keep it documented
open Nat
Expand Down
2 changes: 1 addition & 1 deletion src/Init/Data/List/Notation.lean
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import Init.Data.Nat.Div
import Init.Data.Nat.Div.Basic

/-!
# Notation for `List` literals.
Expand Down
2 changes: 1 addition & 1 deletion src/Init/Data/Nat.lean
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Authors: Leonardo de Moura
-/
prelude
import Init.Data.Nat.Basic
import Init.Data.Nat.Div
import Init.Data.Nat.Div.Basic
import Init.Data.Nat.Dvd
import Init.Data.Nat.Gcd
import Init.Data.Nat.MinMax
Expand Down
2 changes: 1 addition & 1 deletion src/Init/Data/Nat/Bitwise/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Authors: Leonardo de Moura
-/
prelude
import Init.Data.Nat.Basic
import Init.Data.Nat.Div
import Init.Data.Nat.Div.Basic
import Init.Coe

namespace Nat
Expand Down
Loading

0 comments on commit 791bea0

Please sign in to comment.