Use `Bookshelf` instead of `Common`.

finite-set-exercises
Joshua Potter 2023-04-20 13:19:56 -06:00
parent ec8465b7df
commit acb301a569
38 changed files with 46 additions and 46 deletions

View File

@ -1 +0,0 @@
import Common.List.Basic

View File

@ -1,5 +0,0 @@
import Common.Real.Basic
import Common.Real.Function
import Common.Real.Geometry
import Common.Real.Sequence
import Common.Real.Set

View File

@ -1 +0,0 @@
import Common.Real.Function.Step

View File

@ -1,2 +0,0 @@
import Common.Real.Geometry.Basic
import Common.Real.Geometry.Rectangle

View File

@ -1,2 +0,0 @@
import Common.Real.Sequence.Arithmetic
import Common.Real.Sequence.Geometric

View File

@ -1,3 +0,0 @@
import Common.Real.Set.Basic
import Common.Real.Set.Interval
import Common.Real.Set.Partition

View File

@ -1,7 +1,8 @@
{"version": 4, {"version": 4,
"packagesDir": "lake-packages", "packagesDir": "lake-packages",
"packages": "packages":
[{"git": [{"path": {"name": "Bookshelf", "dir": "./../shared"}},
{"git":
{"url": "https://github.com/leanprover-community/mathlib4.git", {"url": "https://github.com/leanprover-community/mathlib4.git",
"subDir?": null, "subDir?": null,
"rev": "0107c50abf149a48b5b9ad08a0b2a2093bcb567a", "rev": "0107c50abf149a48b5b9ad08a0b2a2093bcb567a",
@ -24,5 +25,4 @@
"subDir?": null, "subDir?": null,
"rev": "5507f9d8409f93b984ce04eccf4914d534e6fca2", "rev": "5507f9d8409f93b984ce04eccf4914d534e6fca2",
"name": "std", "name": "std",
"inputRev?": "main"}}, "inputRev?": "main"}}]}
{"path": {"name": "Common", "dir": "./../common"}}]}

View File

@ -3,7 +3,7 @@ open Lake DSL
package «first-course-abstract-algebra» package «first-course-abstract-algebra»
require Common from "../common" require Bookshelf from "../shared"
require mathlib from git require mathlib from git
"https://github.com/leanprover-community/mathlib4.git" @ "https://github.com/leanprover-community/mathlib4.git" @
"0107c50abf149a48b5b9ad08a0b2a2093bcb567a" "0107c50abf149a48b5b9ad08a0b2a2093bcb567a"

View File

@ -4,15 +4,15 @@ Chapter 0
Useful Facts About Sets Useful Facts About Sets
-/ -/
import Common.Tuple import Bookshelf.Tuple
/-- /--
The following describes a so-called "generic" tuple. Like in `Common.Tuple`, an The following describes a so-called "generic" tuple. Like in `Bookshelf.Tuple`,
`n`-tuple is defined recursively like so: an `n`-tuple is defined recursively like so:
`⟨x₁, ..., xₙ⟩ = ⟨⟨x₁, ..., xₙ₋₁⟩, xₙ⟩` `⟨x₁, ..., xₙ⟩ = ⟨⟨x₁, ..., xₙ₋₁⟩, xₙ⟩`
Unlike `Common.Tuple`, a "generic" tuple bends the syntax above further. For Unlike `Bookshelf.Tuple`, a "generic" tuple bends the syntax above further. For
example, both tuples above are equivalent to: example, both tuples above are equivalent to:
`⟨⟨x₁, ..., xₘ⟩, xₘ₊₁, ..., xₙ⟩` `⟨⟨x₁, ..., xₘ⟩, xₘ₊₁, ..., xₙ⟩`
@ -20,7 +20,7 @@ example, both tuples above are equivalent to:
for some `1 ≤ m ≤ n`. This distinction is purely syntactic, but necessary to for some `1 ≤ m ≤ n`. This distinction is purely syntactic, but necessary to
prove certain theorems found in [1] (e.g. `lemma_0a`). prove certain theorems found in [1] (e.g. `lemma_0a`).
In general, prefer `Common.Tuple`. In general, prefer `Bookshelf.Tuple`.
-/ -/
inductive XTuple : (α : Type u) → (size : Nat × Nat) → Type u where inductive XTuple : (α : Type u) → (size : Nat × Nat) → Type u where
| nil : XTuple α (0, 0) | nil : XTuple α (0, 0)

View File

@ -1,7 +1,8 @@
{"version": 4, {"version": 4,
"packagesDir": "lake-packages", "packagesDir": "lake-packages",
"packages": "packages":
[{"git": [{"path": {"name": "Bookshelf", "dir": "./../shared"}},
{"git":
{"url": "https://github.com/leanprover-community/mathlib4.git", {"url": "https://github.com/leanprover-community/mathlib4.git",
"subDir?": null, "subDir?": null,
"rev": "0107c50abf149a48b5b9ad08a0b2a2093bcb567a", "rev": "0107c50abf149a48b5b9ad08a0b2a2093bcb567a",
@ -24,5 +25,4 @@
"subDir?": null, "subDir?": null,
"rev": "5507f9d8409f93b984ce04eccf4914d534e6fca2", "rev": "5507f9d8409f93b984ce04eccf4914d534e6fca2",
"name": "std", "name": "std",
"inputRev?": "main"}}, "inputRev?": "main"}}]}
{"path": {"name": "Common", "dir": "./../common"}}]}

View File

@ -3,7 +3,7 @@ open Lake DSL
package «mathematical-introduction-logic» package «mathematical-introduction-logic»
require Common from "../common" require Bookshelf from "../shared"
@[default_target] @[default_target]
lean_lib «enderton» lean_lib «enderton»

View File

@ -3,8 +3,8 @@ Chapter 1.6
The concept of area as a set function The concept of area as a set function
-/ -/
import Common.Real.Function.Step import Bookshelf.Real.Function.Step
import Common.Real.Geometry.Rectangle import Bookshelf.Real.Geometry.Rectangle
namespace Real namespace Real

View File

@ -3,7 +3,7 @@ Chapter I 3
A Set of Axioms for the Real-Number System A Set of Axioms for the Real-Number System
-/ -/
import Common.Real.Set import Bookshelf.Real.Set
#check Archimedean #check Archimedean
#check Real.exists_isLUB #check Real.exists_isLUB

View File

@ -1,7 +1,8 @@
{"version": 4, {"version": 4,
"packagesDir": "lake-packages", "packagesDir": "lake-packages",
"packages": "packages":
[{"git": [{"path": {"name": "Bookshelf", "dir": "./../shared"}},
{"git":
{"url": "https://github.com/leanprover-community/mathlib4.git", {"url": "https://github.com/leanprover-community/mathlib4.git",
"subDir?": null, "subDir?": null,
"rev": "0107c50abf149a48b5b9ad08a0b2a2093bcb567a", "rev": "0107c50abf149a48b5b9ad08a0b2a2093bcb567a",
@ -24,5 +25,4 @@
"subDir?": null, "subDir?": null,
"rev": "5507f9d8409f93b984ce04eccf4914d534e6fca2", "rev": "5507f9d8409f93b984ce04eccf4914d534e6fca2",
"name": "std", "name": "std",
"inputRev?": "main"}}, "inputRev?": "main"}}]}
{"path": {"name": "Common", "dir": "./../common"}}]}

View File

@ -3,7 +3,7 @@ open Lake DSL
package «one-variable-calculus» package «one-variable-calculus»
require Common from "../common" require Bookshelf from "../shared"
require mathlib from git require mathlib from git
"https://github.com/leanprover-community/mathlib4.git" @ "https://github.com/leanprover-community/mathlib4.git" @
"0107c50abf149a48b5b9ad08a0b2a2093bcb567a" "0107c50abf149a48b5b9ad08a0b2a2093bcb567a"

View File

@ -0,0 +1 @@
import Bookshelf.List.Basic

View File

@ -0,0 +1,5 @@
import Bookshelf.Real.Basic
import Bookshelf.Real.Function
import Bookshelf.Real.Geometry
import Bookshelf.Real.Sequence
import Bookshelf.Real.Set

View File

@ -0,0 +1 @@
import Bookshelf.Real.Function.Step

View File

@ -1,8 +1,8 @@
import Mathlib.Data.Fin.Basic import Mathlib.Data.Fin.Basic
import Mathlib.Tactic.NormNum import Mathlib.Tactic.NormNum
import Common.Real.Basic import Bookshelf.Real.Basic
import Common.Real.Set.Partition import Bookshelf.Real.Set.Partition
namespace Real.Function namespace Real.Function

View File

@ -0,0 +1,2 @@
import Bookshelf.Real.Geometry.Basic
import Bookshelf.Real.Geometry.Rectangle

View File

@ -1,6 +1,6 @@
import Mathlib.Data.Real.Sqrt import Mathlib.Data.Real.Sqrt
import Common.Real.Basic import Bookshelf.Real.Basic
namespace Real namespace Real

View File

@ -1,4 +1,4 @@
import Common.Real.Geometry.Basic import Bookshelf.Real.Geometry.Basic
namespace Real namespace Real

View File

@ -0,0 +1,2 @@
import Bookshelf.Real.Sequence.Arithmetic
import Bookshelf.Real.Sequence.Geometric

View File

@ -0,0 +1,3 @@
import Bookshelf.Real.Set.Basic
import Bookshelf.Real.Set.Interval
import Bookshelf.Real.Set.Partition

View File

@ -1,5 +1,5 @@
import Common.List.Basic import Bookshelf.List.Basic
import Common.Real.Set.Interval import Bookshelf.Real.Set.Interval
namespace Real namespace Real

View File

@ -1,11 +1,11 @@
import Lake import Lake
open Lake DSL open Lake DSL
package «Common» package «Bookshelf»
require mathlib from git require mathlib from git
"https://github.com/leanprover-community/mathlib4.git" @ "https://github.com/leanprover-community/mathlib4.git" @
"0107c50abf149a48b5b9ad08a0b2a2093bcb567a" "0107c50abf149a48b5b9ad08a0b2a2093bcb567a"
@[default_target] @[default_target]
lean_lib «Common» lean_lib «Bookshelf»