scaffold: initial crate, module layout and shared contracts
This commit is contained in:
1 parent
8d273dacd0
commit
ecaf1b756c
23 files changed
+519
No files matched your search
@@ -0,0 +1,3 @@
|
||||
module
|
||||
|
||||
public import MarqdoProof.Basic
|
||||
@@ -0,0 +1,3 @@
|
||||
module
|
||||
public import MarqdoProof.ArtTest.Dep
|
||||
public import MarqdoProof.ArtTest.Target
|
||||
@@ -0,0 +1,5 @@
|
||||
module
|
||||
|
||||
public import MarqdoProof.Basic
|
||||
|
||||
public theorem art_dep_sq (x : Int) : x * x ≥ 0 := by nlinarith [sq_nonneg x]
|
||||
@@ -0,0 +1,8 @@
|
||||
module
|
||||
|
||||
public import MarqdoProof.ArtTest.Dep
|
||||
|
||||
public theorem art_target_sum (x y : Int) : x * x + y * y ≥ 0 := by
|
||||
have h1 := art_dep_sq x
|
||||
have h2 := art_dep_sq y
|
||||
omega
|
||||
@@ -0,0 +1,17 @@
|
||||
module
|
||||
|
||||
public import Mathlib.Data.Int.Basic
|
||||
public import Mathlib.Data.Int.Lemmas
|
||||
public import Mathlib.Tactic.Positivity
|
||||
public import Mathlib.Tactic.Ring
|
||||
public import Mathlib.Tactic.NormNum
|
||||
public import Mathlib.Tactic.Linarith
|
||||
|
||||
/-!
|
||||
Fixed base environment for `marqdo-prove`.
|
||||
|
||||
This module is the only trusted math import surface of the backend. It is
|
||||
deliberately small: integer definitions/lemmas plus the fixed tactic set used
|
||||
by the bounded search driver. Nothing in here accepts user text or user
|
||||
tactics; the generator in `src/lean.rs` only emits typed expressions.
|
||||
-/
|
||||
@@ -0,0 +1,3 @@
|
||||
module
|
||||
public import MarqdoProof.DepTest.Dep
|
||||
public import MarqdoProof.DepTest.Use
|
||||
@@ -0,0 +1,5 @@
|
||||
module
|
||||
|
||||
public import MarqdoProof.Basic
|
||||
|
||||
public theorem dep_square (x : Int) : x * x ≥ 0 := by nlinarith [sq_nonneg x]
|
||||
@@ -0,0 +1,5 @@
|
||||
module
|
||||
|
||||
public import MarqdoProof.DepTest.Dep
|
||||
|
||||
public theorem use_square (x : Int) : x * x ≥ 0 := dep_square x
|
||||
@@ -0,0 +1,96 @@
|
||||
{"version": "1.3.0",
|
||||
"packagesDir": ".lake/packages",
|
||||
"packages":
|
||||
[{"url": "https://github.com/leanprover-community/mathlib4",
|
||||
"type": "git",
|
||||
"subDir": null,
|
||||
"scope": "",
|
||||
"rev": "fc4f59e577feb1a4956671bc04ac18aaaf8cd842",
|
||||
"name": "mathlib",
|
||||
"manifestFile": "lake-manifest.json",
|
||||
"inputRev": "fc4f59e577feb1a4956671bc04ac18aaaf8cd842",
|
||||
"inherited": false,
|
||||
"configFile": "lakefile.lean"},
|
||||
{"url": "https://github.com/leanprover-community/plausible",
|
||||
"type": "git",
|
||||
"subDir": null,
|
||||
"scope": "leanprover-community",
|
||||
"rev": "054b228ce0ac61d767c6e71ba73a24728f191b72",
|
||||
"name": "plausible",
|
||||
"manifestFile": "lake-manifest.json",
|
||||
"inputRev": "main",
|
||||
"inherited": true,
|
||||
"configFile": "lakefile.toml"},
|
||||
{"url": "https://github.com/leanprover-community/LeanSearchClient",
|
||||
"type": "git",
|
||||
"subDir": null,
|
||||
"scope": "leanprover-community",
|
||||
"rev": "4fb58e749ef3fc0395fe274f6cab70c2ea85f1c9",
|
||||
"name": "LeanSearchClient",
|
||||
"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": "8370c640afcd1cc3fb1cb9bf1560cc66eafee5e0",
|
||||
"name": "importGraph",
|
||||
"manifestFile": "lake-manifest.json",
|
||||
"inputRev": "main",
|
||||
"inherited": true,
|
||||
"configFile": "lakefile.toml"},
|
||||
{"url": "https://github.com/leanprover-community/ProofWidgets4",
|
||||
"type": "git",
|
||||
"subDir": null,
|
||||
"scope": "leanprover-community",
|
||||
"rev": "2f0f3520daeac2d9310ff25b7a877a0e5cdaa203",
|
||||
"name": "proofwidgets",
|
||||
"manifestFile": "lake-manifest.json",
|
||||
"inputRev": "main",
|
||||
"inherited": true,
|
||||
"configFile": "lakefile.lean"},
|
||||
{"url": "https://github.com/leanprover-community/aesop",
|
||||
"type": "git",
|
||||
"subDir": null,
|
||||
"scope": "leanprover-community",
|
||||
"rev": "66ff77cf0c4c898799e4b94d14db55f7a02d0c5a",
|
||||
"name": "aesop",
|
||||
"manifestFile": "lake-manifest.json",
|
||||
"inputRev": "master",
|
||||
"inherited": true,
|
||||
"configFile": "lakefile.toml"},
|
||||
{"url": "https://github.com/leanprover-community/quote4",
|
||||
"type": "git",
|
||||
"subDir": null,
|
||||
"scope": "leanprover-community",
|
||||
"rev": "ff055a2fcc835935e0ae607339b455a5f5896b4b",
|
||||
"name": "Qq",
|
||||
"manifestFile": "lake-manifest.json",
|
||||
"inputRev": "master",
|
||||
"inherited": true,
|
||||
"configFile": "lakefile.toml"},
|
||||
{"url": "https://github.com/leanprover-community/batteries",
|
||||
"type": "git",
|
||||
"subDir": null,
|
||||
"scope": "leanprover-community",
|
||||
"rev": "b4b25a3886a16daacaf6615c2eea7170a6e8f458",
|
||||
"name": "batteries",
|
||||
"manifestFile": "lake-manifest.json",
|
||||
"inputRev": "main",
|
||||
"inherited": true,
|
||||
"configFile": "lakefile.toml"},
|
||||
{"url": "https://github.com/leanprover/lean4-cli",
|
||||
"type": "git",
|
||||
"subDir": null,
|
||||
"scope": "leanprover",
|
||||
"rev": "50810f72af7618bee62fe9800dc26e806c188703",
|
||||
"name": "Cli",
|
||||
"manifestFile": "lake-manifest.json",
|
||||
"inputRev": "v4.36.0",
|
||||
"inherited": true,
|
||||
"configFile": "lakefile.toml"}],
|
||||
"name": "marqdo_proof",
|
||||
"lakeDir": ".lake",
|
||||
"fixedToolchain": false}
|
||||
@@ -0,0 +1,11 @@
|
||||
name = "marqdo_proof"
|
||||
version = "0.1.0"
|
||||
defaultTargets = ["MarqdoProof"]
|
||||
|
||||
[[require]]
|
||||
name = "mathlib"
|
||||
git = "https://github.com/leanprover-community/mathlib4"
|
||||
rev = "fc4f59e577feb1a4956671bc04ac18aaaf8cd842"
|
||||
|
||||
[[lean_lib]]
|
||||
name = "MarqdoProof"
|
||||
@@ -0,0 +1 @@
|
||||
leanprover/lean4:v4.36.0
|
||||
Reference in new issue
Block a user