-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: compatibility with lakefile.toml in subprojects
- Loading branch information
1 parent
ee669c2
commit c4622e3
Showing
8 changed files
with
69 additions
and
10 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
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,30 @@ | ||
-- This module serves as the root of the `Demo` library. | ||
-- Import modules here that should be built as part of the library. | ||
import «Demo».Basic | ||
|
||
import SubVerso.Examples | ||
|
||
open SubVerso.Examples | ||
|
||
%example version | ||
#eval Lean.versionString | ||
%end | ||
|
||
%example xdef | ||
def f (x : Nat) := %ex{add}{33 + %ex{X}{x}} | ||
%end | ||
|
||
%example proof | ||
theorem test (n : Nat) : n * 1 = n := by | ||
induction n with | ||
| zero => rfl | ||
| succ n ih => | ||
rw [← ih] | ||
simp | ||
%end | ||
|
||
%example proofWithInstance | ||
-- Test that proof states containing daggered names can round-trip | ||
def test2 [ToString α] (x : α) : Decidable (toString x = "") := by | ||
constructor; sorry | ||
%end |
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,4 @@ | ||
import «Demo» | ||
|
||
def main : IO Unit := | ||
IO.println s!"Hello, {hello}!" |
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,13 @@ | ||
name = "demo" | ||
defaultTargets = ["demo"] | ||
|
||
[[require]] | ||
name = "subverso" | ||
git = ".." | ||
|
||
[[lean_lib]] | ||
name = "Demo" | ||
|
||
[[lean_exe]] | ||
name = "demo" | ||
root = "Main" |
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.8.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