Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(lean): minimize imports in Base/Arith #328

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions backends/lean/Base/Arith/Base.lean
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Lean
import Mathlib.Tactic.Linarith -- Introduces a lot of useful lemmas
import Mathlib.Algebra.Order.Ring.Int
import Mathlib.Data.Nat.Cast.Order.Ring

namespace Arith

Expand Down
1 change: 0 additions & 1 deletion backends/lean/Base/Arith/Init.lean
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Base.Extensions
import Aesop
open Lean

/-!
Expand Down
9 changes: 2 additions & 7 deletions backends/lean/Base/Arith/Int.lean
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
/- This file contains tactics to solve arithmetic goals -/

import Lean
import Lean.Meta.Tactic.Simp
import Init.Data.List.Basic
import Mathlib.Tactic.Ring.RingNF
import Base.Utils
import Base.Arith.Base
import Base.Arith.Init
import Base.Saturate
import Base.Saturate.Tactic
import Mathlib.Util.CountHeartbeats

namespace Arith

Expand Down
1 change: 1 addition & 0 deletions backends/lean/Base/Arith/ScalarNF.lean
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Base.Arith.Scalar
import Mathlib.Tactic.Ring.RingNF

namespace Arith

Expand Down
1 change: 1 addition & 0 deletions backends/lean/Base/Diverge/Base.lean
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Lean
import Lean.Meta.Tactic.Simp
import Mathlib.Tactic.Zify
import Init.Data.List.Basic
import Base.Primitives.Base
import Base.Arith.Base
Expand Down
6 changes: 1 addition & 5 deletions backends/lean/Base/Extensions.lean
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import Lean
import Base.Utils
import Base.Primitives.Base

import Lean.Meta.DiscrTree
import Lean.Meta.Tactic.Simp
import Lean.Elab.Tactic.Rewrites

/-! Various state extensions used in the library -/
namespace Extensions
Expand Down
Loading