-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
163 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
def hello := "world" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
|
||
/-- has a doc -/ | ||
def a : Nat := 1 | ||
|
||
def c : Nat := 1 | ||
def bloop : Nat := 1 | ||
|
||
theorem sada : Int := 123 | ||
|
||
|
||
structure blah where | ||
(a b : Nat) | ||
|
||
/-- magic number-/ | ||
def hasdoc : Int := 123 | ||
|
||
|
||
|
||
class blasdf where | ||
(a b : Nat) | ||
|
||
|
||
def floo : blasdf := ⟨1, 2⟩ | ||
|
||
|
||
|
||
theorem bloop1 : 3 ≠ 9 := by decide | ||
|
||
|
||
|
||
def defToLemma : 1 = 1 := rfl | ||
|
||
set_option pp.all true | ||
#print bloop1 | ||
-- #eval Leaff.printHashes ``bloop1 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{"version": 7, | ||
"packagesDir": ".lake/packages", | ||
"packages": [], | ||
"name": "test", | ||
"lakeDir": ".lake"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import Lake | ||
open Lake DSL | ||
|
||
package «test» where | ||
-- add package configuration options here | ||
|
||
lean_lib «Test» where | ||
globs := #[.submodules `Test] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
leanprover/lean4:v4.5.0-rc1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/.lake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
def hello := "world" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
def a : Nat := 1 | ||
|
||
def b : Nat := 1 | ||
|
||
-- value changed | ||
def c : Nat := 2 | ||
|
||
def sada : Int := 123 | ||
|
||
|
||
class blah where | ||
(a b : Nat) | ||
|
||
/-- not so magic number-/ | ||
def hasdoc : Int := 123 | ||
|
||
|
||
class blasdf where | ||
(a b : Nat) | ||
|
||
instance floo : blasdf := ⟨1, 2⟩ | ||
|
||
theorem bloop2 : 3 ≠ 9 := by decide | ||
|
||
theorem defToLemma : 1 = 1 := rfl | ||
|
||
-- #eval Leaff.printHashes ``bloop2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import Leaff.HashSet | ||
|
||
open Lean | ||
#eval (mkHashSet.insertMany [3,4,5,6,7,8,9,0,1,4,6,213,2432,435,435,234,12,2]).numBuckets | ||
#eval (mkHashSet.insertMany [3,21343245,213131,4,5,6,7,8,9,0,1,4,6,213,2432,435,435,234,12,2]).numBuckets | ||
#eval (mkHashSet.insertMany [1]).numBuckets | ||
#eval (mkHashSet.insertMany [3,4,5,6,7,8,9,0,1,4,6,213,2432,435,435,234,12,2,12312,12321] |>.sdiff (mkHashSet.insertMany [1,2,3])).toList | ||
#eval (mkHashSet.insertMany [3,4] |>.sdiff (mkHashSet.insertMany [1,2,3])).toList |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{"version": 7, | ||
"packagesDir": ".lake/packages", | ||
"packages": [], | ||
"name": "test2", | ||
"lakeDir": ".lake"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import Lake | ||
open Lake DSL | ||
|
||
package «test» where | ||
-- add package configuration options here | ||
|
||
lean_lib «Test» where | ||
globs := #[.submodules `Test] | ||
-- add library configuration options here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
leanprover/lean4:v4.5.0-rc1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import Leaff.Diff | ||
import Lean | ||
|
||
open Lean | ||
|
||
def sp : SearchPath := | ||
["."/".lake" /"build"/"lib","."/".lake" /"packages"/"std"/"build"/"lib","/home/alexanderbest/.elan/toolchains/leanprover--lean4---v4.4.0-rc1/lib/lean"] | ||
|
||
#eval summarizeDiffImports #[`Std.Classes.RatCast] #[`Std.Data.Rat] sp sp | ||
-- #eval summarizeDiffImports #[`Mathlib] #[`Mathlib] sp₁ sp₂ | ||
|
||
#eval summarizeDiffImports #[`test.TestA] #[`test.TestB] sp sp |