Skip to content

Commit d3abbc9

Browse files
committed
Merge Vol1 and Vol2 into a single module
1 parent ae06896 commit d3abbc9

File tree

8 files changed

+74
-12
lines changed

8 files changed

+74
-12
lines changed

SoftwareFoundations.lean

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
-- This module serves as the root of the `SoftwareFoundations` library.
2+
-- Import modules here that should be built as part of the library.
3+
4+
-- Vol1
5+
import SoftwareFoundations.Basics
6+
7+
-- Vol2
8+
import SoftwareFoundations.Equiv

SoftwareFoundationsVol1/Basics.lean renamed to SoftwareFoundations/Basics.lean

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
-- Basics: Functional Programming in Coq
2+
--
3+
-- https://softwarefoundations.cis.upenn.edu/lf-current/Basics.html
4+
15
-- # Data and Functions
26

37
-- ## Days of the Week

SoftwareFoundations/Equiv.lean

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
-- # Behavioral Equivalence
2+
3+
-- ## Definitions

SoftwareFoundations/Imp.lean

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
-- Imp: Simple Imperative Programs
2+
--
3+
-- https://softwarefoundations.cis.upenn.edu/lf-current/Imp.html
4+
5+
-- # Arithmetic and Boolean Expressions
6+
7+
-- ## Syntax
8+
-- TODO
9+
10+
-- ## Evaluation
11+
-- TODO
12+
13+
-- ## Optimization
14+
-- TODO
15+
16+
-- # Coq Automation
17+
18+
-- ## Tacticals
19+
-- TODO
20+
21+
-- ## Defining New Tactics
22+
-- TODO
23+
24+
-- ## The `lia` Tactic
25+
-- TODO
26+
27+
-- ## A Few More Handy Tactics
28+
29+
-- # Evaluation as a Relation
30+
-- TODO
31+
32+
-- ## Inference Rule Notation
33+
-- TODO
34+
35+
-- ## Equivalence of the Definitions
36+
-- TODO
37+
38+
-- ## Computational vs. Relational Definitions
39+
-- TODO
40+
41+
-- # Expressions With Variables
42+
43+
-- ## States
44+
-- TODO
45+
46+
-- ## Syntax
47+
inductive AExp : Type
48+
| ANum (n : Nat)
49+
| AId (x : String) -- NEW
50+
| APlus (a1 a2 : AExp)
51+
| AMinus (a1 a2 : AExp)
52+
| AMult (a1 a2 : AExp)
53+
54+
def w : String := "W"
55+
def x : String := "X"
56+
def y : String := "Y"
57+
def z : String := "Z"

SoftwareFoundationsVol1.lean

Lines changed: 0 additions & 3 deletions
This file was deleted.

SoftwareFoundationsVol2.lean

Lines changed: 0 additions & 3 deletions
This file was deleted.

SoftwareFoundationsVol2/Basic.lean

Lines changed: 0 additions & 1 deletion
This file was deleted.

lakefile.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name = "software-foundations-lean"
22
version = "0.1.0"
3-
defaultTargets = ["SoftwareFoundationsVol1", "SoftwareFoundationsVol2"]
3+
defaultTargets = ["SoftwareFoundations"]
44

55
[[lean_lib]]
6-
name = "SoftwareFoundationsVol1"
7-
8-
[[lean_lib]]
9-
name = "SoftwareFoundationsVol2"
6+
name = "SoftwareFoundations"

0 commit comments

Comments
 (0)