bump mathlib

pull/43/head
Jon Eugster 2 years ago
parent f0171797f3
commit ad50fb986d

@ -72,7 +72,7 @@ def compileProof (inputCtx : Parser.InputContext) (snap : Snapshot) (hasWidgets
let (tacticStx, cmdParserState, msgLog, endOfWhitespace) :=
MyModule.parseTactic inputCtx pmctx snap.mpState snap.msgLog couldBeEndSnap
let cmdPos := tacticStx.getPos?.getD 0
if Parser.isEOI tacticStx then
if Parser.isTerminalCommand tacticStx then
let endSnap : Snapshot := {
beginPos := cmdPos
stx := tacticStx

@ -1 +1 @@
{"version": 4, "packagesDir": "./lake-packages", "packages": []}
{"version": 4, "packagesDir": "lake-packages", "packages": []}

@ -1 +1 @@
leanprover/lean4:nightly-2023-01-16
leanprover/lean4:nightly-2023-01-29

@ -36,6 +36,8 @@ lemma sum_const_add (n : ) : (∑ i in Fin n, 0) = 0 := by
Mit `simp?` anstatt `simp` kannst du zudem schauen, welche Lemmas von `simp` benutzt wurde.
"
open BigOperators
Statement
"Zeige dass $\\sum_{i = 0} ^ {n-1} (0 + 0) = 0$."
(n : ) : (∑ i : Fin n, (0 + 0)) = 0 := by

@ -25,6 +25,8 @@ vom Typ `Fin n`, das heisst, man muss diesen eigentlich immer mit `(i : )`
als natürliche Zahl verwenden.
"
open BigOperators
Statement
"Zeige dass $\\sum_{i=0}^{n-1} (i + 1) = n + \\sum_{i=0}^{n-1} i$."
(n : ) : ∑ i : Fin n, ((i : ) + 1) = n + (∑ i : Fin n, (i : )) := by

@ -29,6 +29,8 @@ Für den Induktionsschritt braucht man fast immer zwei technische Lemmas:
-- Note: I don't want to deal with Nat-division, so I stated it as `2 * ... = ...` instead.
open BigOperators
Statement
"Zeige $\\sum_{i = 0}^n i = \\frac{n \\cdot (n + 1)}{2}$."
(n : ) : 2 * (∑ i : Fin (n + 1), ↑i) = n * (n + 1) := by

@ -15,6 +15,8 @@ Introduction
Hier nochmals eine Übung zur Induktion.
"
open BigOperators
Statement
"Zeige folgende Gleichung zur Summe aller ungeraden Zahlen:

@ -16,6 +16,7 @@ TODO: Induktion (& induktion vs rcases)
"
open BigOperators
example (x : ) (n : ) : 1 + n * x ≤ (x + 1) ^ n := by
induction' n with n hn
@ -33,10 +34,11 @@ example (n : ) : (∑ i : Fin (n + 1), ↑(2 * i - 1)) = n ^ 2 := by
Statement
"Zeige $\\sum_{i = 0}^n i = \\frac{n ⬝ (n + 1)}{2}$."
(n : ) : (∑ i : Fin (n + 1), ↑i) = n * (n + 1) / 2 := by
apply hh1
induction' n with n hn
simp
sorry
-- apply hh1
-- induction' n with n hn
-- simp
-- sorry
-- rw [Fin.sum_univ_castSucc]
-- simp [nat_succ]
-- rw [mul_add, hn]

@ -14,6 +14,7 @@ Introduction
"
"
open BigOperators
Statement
"Zeige $\\sum_{i = 0}^n i^3 = (\\sum_{i = 0}^n i^3)^2$."

@ -1,34 +1,10 @@
{"version": 4,
"packagesDir": "./lake-packages",
"packagesDir": "lake-packages",
"packages":
[{"git":
{"url": "https://github.com/xubaiw/CMark.lean",
"subDir?": null,
"rev": "2cc7cdeef67184f84db6731450e4c2b258c28fe8",
"name": "CMark",
"inputRev?": "main"}},
{"git":
{"url": "https://github.com/leanprover/lake",
"subDir?": null,
"rev": "d0b530530f14dde97a547b03abf87eee06360d60",
"name": "lake",
"inputRev?": "master"}},
{"git":
{"url": "https://github.com/leanprover/doc-gen4",
"subDir?": null,
"rev": "09dbebed9ca85368152bb5146ef6f1271b1be425",
"name": "doc-gen4",
"inputRev?": "main"}},
{"git":
{"url": "https://github.com/mhuisi/lean4-cli",
"subDir?": null,
"rev": "5a858c32963b6b19be0d477a30a1f4b6c120be7e",
"name": "Cli",
"inputRev?": "nightly"}},
{"git":
{"url": "https://github.com/leanprover-community/mathlib4.git",
"subDir?": null,
"rev": "98bc5f26ea463d9583f601c84518c95643c0ea14",
"rev": "774069a73cae9148d941b09c267b465d3f7d7737",
"name": "mathlib",
"inputRev?": "master"}},
{"git":
@ -40,31 +16,13 @@
{"git":
{"url": "https://github.com/JLimperg/aesop",
"subDir?": null,
"rev": "645e92db52499582bb31984396a5e41772241012",
"rev": "ccff5d4ae7411c5fe741f3139950e8bddf353dea",
"name": "aesop",
"inputRev?": "master"}},
{"git":
{"url": "https://github.com/hargonix/LeanInk",
"subDir?": null,
"rev": "2447df5cc6e48eb965c3c3fba87e46d353b5e9f1",
"name": "leanInk",
"inputRev?": "doc-gen"}},
{"path": {"name": "GameServer", "dir": "./../leanserver"}},
{"git":
{"url": "https://github.com/xubaiw/Unicode.lean",
"subDir?": null,
"rev": "6dd6ae3a3839c8350a91876b090eda85cf538d1d",
"name": "Unicode",
"inputRev?": "main"}},
{"git":
{"url": "https://github.com/leanprover/std4",
"subDir?": null,
"rev": "04b3c9831e0c141713a70e68af7e40973ec9a1ff",
"rev": "cda27d551340756d5ed6f9b83716a9db799c5537",
"name": "std",
"inputRev?": "main"}},
{"git":
{"url": "/home/jeugster/Documents/Lean/duper",
"subDir?": null,
"rev": "d0fb397d96483c90969c725ad5ea307cc02bdf7d",
"name": "duper",
"inputRev?": "main"}}]}

@ -6,12 +6,6 @@ require GameServer from ".."/"leanserver"
require mathlib from git
"https://github.com/leanprover-community/mathlib4.git"@"master"
require duper from git
"/home/jeugster/Documents/Lean/duper"@"main"
--set_option tactic.hygienic false
--set_option autoImplicit false
package TestGame
@[default_target]

@ -1 +1 @@
leanprover/lean4:nightly-2023-01-16
leanprover/lean4:nightly-2023-01-29

Loading…
Cancel
Save