Skip to content

Commit

Permalink
Lean のバージョン更新
Browse files Browse the repository at this point in the history
  • Loading branch information
Seasawher committed Sep 7, 2024
1 parent 1969768 commit 5cdc785
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 27 deletions.
2 changes: 1 addition & 1 deletion Examples/Command/Declarative/DeclareSyntaxCat.lean
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def Set (α : Type u) := α → Prop
variable {α : Type u}

/-- 項 `x : α` が `X : Set α` に属する -/
def Set.mem (x : α) (X : Set α) : Prop := X x
def Set.mem (X : Set α) (x : α) : Prop := X x

/-- `x ∈ X` と書けるようにする -/
instance : Membership α (Set α) where
Expand Down
2 changes: 1 addition & 1 deletion Examples/Command/Diagnostic/Time.lean
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/- # \#time
`#time` は、コマンドの実行時間を計測するためのコマンドです。ミリ秒単位で結果を出してくれます。
-/
import Mathlib.Util.Time
import Lean
namespace Time --#

-- フィボナッチ数列の遅い実装
Expand Down
2 changes: 1 addition & 1 deletion Examples/Solution/CantorTheorem.lean
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def Set (α : Type) := α → Prop
variable {α : Type}

/-- `a : α` は集合 `s` に属する。数学では普通 `a ∈ s` と書かれる。 -/
def Set.mem (a : α) (s : Set α) : Prop := s a
def Set.mem (s : Set α) (a : α) : Prop := s a

/-- `s a` を `a ∈ s` と書けるようにする。 -/
instance : Membership α (Set α) := ⟨Set.mem⟩
Expand Down
2 changes: 1 addition & 1 deletion Examples/Tactic/AcRfl.lean
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ protected theorem add_assoc (a b c : Color) : a + b + c = a + (b + c) := by
-- Commutative のインスタンスはないことが確認できる
/--
error: failed to synthesize
Std.Commutative fun x x_1 => x + x_1
Std.Commutative fun x1 x2 => x1 + x2
Additional diagnostic information may be available using the `set_option diagnostics true` command.
-/
#guard_msgs in
Expand Down
1 change: 0 additions & 1 deletion Examples/Tactic/Linarith.lean
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
`linarith` は線形算術(linear arithmetic)を行うタクティクです。Fourier-Motzkin elimination を用いて、線形な(不)等式系から矛盾を導こうとします。一般に、ゴールが `False` でないときにはゴールの否定を仮定に加えることで、ゴールを閉じようとします。 -/
import Mathlib.Tactic.Linarith -- `linarith` のために必要
import Mathlib.Util.Time -- `#time` を使うため --#
import Batteries.Data.Rat.Basic -- `ℚ` のために必要

variable (x y z : ℚ)
Expand Down
2 changes: 1 addition & 1 deletion Exercise/CantorTheorem.lean
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def Set (α : Type) := α → Prop
variable {α : Type}

/-- `a : α` は集合 `s` に属する。数学では普通 `a ∈ s` と書かれる。 -/
def Set.mem (a : α) (s : Set α) : Prop := s a
def Set.mem (s : Set α) (a : α) : Prop := s a

/-- `s a` を `a ∈ s` と書けるようにする。 -/
instance : Membership α (Set α) := ⟨Set.mem⟩
Expand Down
40 changes: 20 additions & 20 deletions lake-manifest.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
{"version": "1.1.0",
"packagesDir": ".lake/packages",
"packages":
[{"url": "https://github.com/Seasawher/mk-exercise.git",
[{"url": "https://github.com/leanprover/lean4-cli.git",
"type": "git",
"subDir": null,
"scope": "",
"rev": "8a8526d4747854dcbef1c552b3031d17e5a956c0",
"rev": "2cf1030dc2ae6b3632c84a09350b675ef3e347d0",
"name": "Cli",
"manifestFile": "lake-manifest.json",
"inputRev": "main",
"inherited": true,
"configFile": "lakefile.toml"},
{"url": "https://github.com/Seasawher/mk-exercise.git",
"type": "git",
"subDir": null,
"scope": "",
"rev": "7d99b9c7ce00ad4c59bb06060e1a19b2e1cc7f57",
"name": "«mk-exercise»",
"manifestFile": "lake-manifest.json",
"inputRev": "main",
Expand All @@ -15,7 +25,7 @@
"type": "git",
"subDir": null,
"scope": "",
"rev": "bdfc2e355fbd5003be7094b3c99ff9d833aff7da",
"rev": "b6ca4bba32cdfa94c98bd8598397d9c3888d68c0",
"name": "mdgen",
"manifestFile": "lake-manifest.json",
"inputRev": "main",
Expand All @@ -25,7 +35,7 @@
"type": "git",
"subDir": null,
"scope": "leanprover-community",
"rev": "9c6c2d647e57b2b7a0b42dd8080c698bd33a1b6f",
"rev": "8feac540abb781cb1349688c816dc02fae66b49c",
"name": "batteries",
"manifestFile": "lake-manifest.json",
"inputRev": "main",
Expand All @@ -35,7 +45,7 @@
"type": "git",
"subDir": null,
"scope": "leanprover-community",
"rev": "9d0bdd07bdfe53383567509348b1fe917fc08de4",
"rev": "2c8ae451ce9ffc83554322b14437159c1a9703f9",
"name": "Qq",
"manifestFile": "lake-manifest.json",
"inputRev": "master",
Expand All @@ -45,7 +55,7 @@
"type": "git",
"subDir": null,
"scope": "leanprover-community",
"rev": "deb279eb7be16848d0bc8387f80d6e41bcdbe738",
"rev": "e291aa4de57079b3d2199b9eb7b4b00922b85a7c",
"name": "aesop",
"manifestFile": "lake-manifest.json",
"inputRev": "master",
Expand All @@ -55,27 +65,17 @@
"type": "git",
"subDir": null,
"scope": "leanprover-community",
"rev": "a96aee5245720f588876021b6a0aa73efee49c76",
"rev": "eb08eee94098fe530ccd6d8751a86fe405473d4c",
"name": "proofwidgets",
"manifestFile": "lake-manifest.json",
"inputRev": "v0.0.41",
"inputRev": "v0.0.42",
"inherited": true,
"configFile": "lakefile.lean"},
{"url": "https://github.com/leanprover/lean4-cli",
"type": "git",
"subDir": null,
"scope": "",
"rev": "2cf1030dc2ae6b3632c84a09350b675ef3e347d0",
"name": "Cli",
"manifestFile": "lake-manifest.json",
"inputRev": "main",
"inherited": true,
"configFile": "lakefile.toml"},
{"url": "https://github.com/leanprover-community/import-graph",
"type": "git",
"subDir": null,
"scope": "leanprover-community",
"rev": "1ef0b288623337cb37edd1222b9c26b4b77c6620",
"rev": "fb7841a6f4fb389ec0e47dd4677844d49906af3c",
"name": "importGraph",
"manifestFile": "lake-manifest.json",
"inputRev": "main",
Expand All @@ -85,7 +85,7 @@
"type": "git",
"subDir": null,
"scope": "",
"rev": "0194b29f8e8bda212a44bbd34bf8b8c37a88db25",
"rev": "19b4c40bc454221b94bcaeb093d849639273e6cc",
"name": "mathlib",
"manifestFile": "lake-manifest.json",
"inputRev": "master",
Expand Down
2 changes: 1 addition & 1 deletion lean-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
leanprover/lean4:v4.11.0
leanprover/lean4:v4.12.0-rc1

0 comments on commit 5cdc785

Please sign in to comment.