Scott Morrison
ac73c8d342
feat: Lean.Linter.logLintIf ( #2852 )
...
A utility function moving from Mathlib.
2023-11-09 23:00:34 +11:00
Scott Morrison
007b1b5979
feat: extend API of KVMap ( #2851 )
2023-11-09 22:59:56 +11:00
Sebastian Ullrich
b278172b7c
chore: add import Lean benchmark
2023-11-07 18:46:28 +01:00
Leonardo de Moura
d9eddc9652
feat: ensure nested proofs having been abstracted in equation and unfold auxiliary theorems
2023-11-07 06:23:45 -08:00
Leonardo de Moura
2099190ad4
chore: do not abstract nested proofs in a proof
2023-11-07 06:23:45 -08:00
Eric Wieser
72f7144403
doc: mention the proof-binding syntax in match
...
This comes up over and over again in the zulip; let's document it!
2023-11-06 11:28:03 -08:00
Joachim Breitner
995725b256
test: C trigraph
...
add a test file that checks that C trigraphs in string literals are not
miscompiled.
2023-11-06 16:31:05 +01:00
Joachim Breitner
b1f2fcf758
fix: Escape ? in C literal strings to avoid trigraphs
...
This fixes #3829
2023-11-06 16:25:00 +01:00
Scott Morrison
37c154b6de
chore: use flow control rather than exit codes in CI scripts ( #2828 )
2023-11-06 06:08:12 +00:00
Scott Morrison
f201f63e49
chore: fix identification of most recent nightly tag ( #2827 )
2023-11-06 03:53:06 +00:00
Scott Morrison
691113ca7c
chore: add Mathlib CI comments using the mathlib bot ( #2824 )
2023-11-06 00:25:41 +00:00
Joachim Breitner
ea20911a85
feat: Better error location in structural recursion ( #2819 )
...
previously, only the WellFounded code was making use of the error
location in the RecApp-metadata. We can do the same for structural
recursion. This way,
```
def f (n : Nat) : Nat :=
match n with
| 0 => 0
| n + 1 => f (n + 1)
```
will show the error with squiggly lines under `f (n + 1)`, and not at
`def f`.
2023-11-05 22:24:17 +01:00
Sebastian Ullrich
b0d1c3b99c
perf: avoid quadratic number of info tree nodes in DecEq deriving handler
2023-11-04 13:59:23 -07:00
Scott Morrison
8cf9d13ca4
chore: still fixing CI ( #2817 )
2023-11-04 06:32:05 +00:00
Leonardo de Moura
47c09ac36c
chore: the previous commit exposed an issue with simp
...
`simp` was previously swallowing runtime exceptions and masking an
issue with this example.
`runT` is defined by well-founded recursion, but reducing the ground
term `runT x` takes a long time when `decide := true`.
Remark PR #2722 changes the `decide` default value to `false`.
When `decide := true`, we should probably have better diagnostics /
error messages for this kind of situation.
2023-11-03 05:56:59 -07:00
Leonardo de Moura
4afcdeb771
fix: fixes #2775
...
fixes #2744
2023-11-03 05:56:59 -07:00
Scott Morrison
e217ad3929
chore: more adjustments to new CI scripts ( #2811 )
2023-11-03 02:34:23 +00:00
Henrik Böving
1d061da98f
fix: --no-build lake test for new naming scheme
2023-11-02 23:21:47 +01:00
Henrik Böving
59d3b3d85a
chore: update stage0
2023-11-02 23:21:47 +01:00
Henrik Böving
433c094e95
feat: LLVM bc separation for CMake
2023-11-02 23:21:47 +01:00
Siddharth Bhat
5980e665a8
test: add test of LLVM integration into lake
2023-11-02 23:21:47 +01:00
Siddharth Bhat
3b175fdb0e
feat: lake LLVM backend support
...
Co-authored-by: Henrik Böving <hargonix@gmail.com>
Co-authored-by: Mac Malone <tydeu@hatpress.net>
2023-11-02 23:21:47 +01:00
Siddharth Bhat
145a4952e5
feat: add internal flag lean_has_llvm_backend
2023-11-02 23:21:47 +01:00
Siddharth Bhat
f165414e13
fix: use -O3 for LLVM tests in common.sh
...
This is the same flag that the C test uses. Previously this was hidden
in the Lean compiler itself but now that the optimization pass is phased
out of the compiler we need to put it here.
Co-authored-by: Henrik Böving <hargonix@gmail.com>
2023-11-02 23:21:47 +01:00
Henrik Böving
1b3799ecde
fix: set LEANC_CC to the CMake CC by default
...
In LLVM builds the Cmake CC is necessarily clang -> leanc will be able
to act on LLVM bitcode files if configured this way.
Co-authored-by: Siddharth <siddu.druid@gmail.com>
2023-11-02 23:21:47 +01:00
Siddharth Bhat
3369356788
fix: remove target triple parameter from FFI that no longer exists in the Lean API
2023-11-02 23:21:47 +01:00
Siddharth Bhat
b8d81e1081
fix: option parsing for bitcode, needs to be -b
2023-11-02 23:21:47 +01:00
Siddharth Bhat
0b37bad2cb
feat: split bitcode optimization and object file building to be outside lean
2023-11-02 23:21:47 +01:00
Mario Carneiro
82196efe94
feat: hovers on open and export decls
2023-11-02 17:01:51 +01:00
Scott Morrison
4934f5c56d
chore: force push to nightly branch when making nightly-YYYY-MM-DD tags ( #2808 )
2023-11-02 12:05:15 +00:00
Scott Morrison
e360544001
chore: don't run irrelevant CI steps ( #2807 )
2023-11-02 11:45:19 +00:00
Joachim Breitner
03b681c056
doc: Add docstrings to dbg_trace and assert! in do blocks ( #2787 )
...
they had doc strings in their term forms, but the doElem variant did
not, as noted [on zulip](https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/Infoview.20hangs.20after.20using.20.60IO.2Eprintln.60.20in.20.60Delab.60/near/399317734 )
2023-11-02 11:10:42 +01:00
Scott Morrison
1bc07a4e06
chore: fix to Mathlib combined CI ( #2806 )
2023-11-02 09:54:08 +00:00
Scott Morrison
1e915b1248
chore: fix to Mathlib combined CI ( #2804 )
2023-11-02 06:21:19 +00:00
Scott Morrison
da32b5f837
feat: use nightly-testing-YYYY-MM-DD branches on Mathlib for testing PRs, and be more conservative about launching Mathlib CI ( #2798 )
2023-11-02 12:07:06 +11:00
Mauricio Collares
cfe5a5f188
chore: change simp default to decide := false ( #2722 )
2023-11-02 10:06:38 +11:00
TAKANO Mitsuhiro
29b09b0900
chore: CI: use setup-emsdk@v12 ( #2796 )
...
Fix for below warning in GitHub Actions.
```
Web Assembly
The following actions uses node12 which is deprecated and will be forced to run on node16: mymindstorm/setup-emsdk@v11. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
```
2023-11-01 18:53:08 +01:00
Scott Morrison
9d2ea99753
chore: fix duplication in release notes ( #2794 )
2023-11-01 00:52:49 +00:00
tydeu
72fdddfed3
test: adjustment for lake update behavior change
2023-10-31 13:25:26 -04:00
tydeu
793329fd56
fix: lake: consistent order for manifest packages
2023-10-31 13:25:26 -04:00
Scott Morrison
55bd2eb2e1
feat: reorder Lake help
2023-10-31 13:24:44 -04:00
Scott Morrison
c359d03b60
chore: begin development cycle for v4.4.0 ( #2792 )
2023-10-31 08:57:26 +00:00
Scott Morrison
49bdeb3c46
doc: complete release notes for v4.3.0-rc1 ( #2791 )
2023-10-31 02:50:06 +00:00
Leonardo de Moura
db281f60fe
fix: fixes #2178 ( #2784 )
2023-10-30 15:06:56 +11:00
Scott Morrison
7286dfa38a
feat: withAssignableSyntheticOpaque in assumption ( #2596 )
...
* feat: withAssignableSyntheticOpaque in assumption
* add test
2023-10-30 04:00:52 +00:00
thorimur
50f2154cbb
fix: make rw [foo] look in the local context for foo before it looks in the environment ( #2738 )
2023-10-30 14:08:02 +11:00
Parth Shastri
642bc5d8f3
fix: replace DecidableEq with BEq/LawfulBEq in List mem theorems ( #2041 )
2023-10-30 14:03:16 +11:00
Joachim Breitner
f74ae5f9c0
feat: Array.mem: Avoid DecidableEq, set up decreasing_trivial ( #2774 )
...
The notation `a ∈ as` for Arrays was previously only defined with
`DecidableEq` on the elements, for (apparently) no good reason. This
drops this requirements (by using `a ∈ as.data`), and simplifies a bunch
of proofs by simply lifting the corresponding proof from lists.
Also, `sizeOf_lt_of_mem` was defined, but not set up to be picked up by
`decreasing_trivial` in the same way that the corresponding List lemma
was set up, so this adds the tactic setup.
The definition for `a ∈ as` is intentionally not defeq to `a ∈ as.data`
so that the termination tactics for Arrays don’t spuriously apply when
recursing through lists.
2023-10-30 13:47:30 +11:00
Eric Rodriguez
df6626f06b
doc: fix a link in development documentation #2780
2023-10-30 10:58:25 +11:00
Kyle Miller
5fc079d9ce
fix: dsimp missing consumeMData when closing goals by rfl ( #2776 )
...
Fixes #2514
2023-10-30 09:32:32 +11:00