Eric Wieser
6f2eb3f6b4
doc: fix typo
2023-11-15 12:19:42 +11:00
Kyle Miller
76a7754d08
fix: have parenthesizer copy source info to parenthesized term
...
This causes the info view to have the entire parenthesized expression be hoverable.
2023-11-14 20:24:30 +01:00
Sebastian Ullrich
77ee031172
fix: re-read HTTP header when skipping notification in Ipc.readResponseAs
2023-11-14 17:34:04 +01:00
Sebastian Ullrich
2f35651308
perf: leak environments not freed before process exit
2023-11-14 17:33:04 +01:00
Sebastian Ullrich
62dc8d7308
feat: Runtime.markMultiThreaded/Persistent
2023-11-14 17:33:04 +01:00
tydeu
dcb92296f6
test: use built lake for examples/reverse-ffi
2023-11-13 20:31:24 -05:00
tydeu
4ec3d78afa
chore: update tests to account for .lake
2023-11-13 20:31:24 -05:00
tydeu
2ff4821026
refactor: .lake directory for Lake outputs
2023-11-13 20:31:24 -05:00
tydeu
ffd79a0824
fix: lake: ensure untar output directory exists
2023-11-13 20:31:24 -05:00
Sebastian Ullrich
8cfcf7ce61
fix: look through binop% variants in elabCDotFunctionAlias?
2023-11-12 16:57:51 +11:00
Sebastian Ullrich
dbe1c7f459
fix: make ^ a right action, add NatPow and HomogeneousPow
2023-11-12 16:57:51 +11:00
Sebastian Ullrich
31f234ba3c
feat: leftact%/rightact% binop variants
2023-11-12 16:57:51 +11:00
Sebastian Ullrich
8b145b05e2
feat: add leftact%/rightact% syntax
2023-11-12 16:57:51 +11:00
Scott Morrison
f3c3a1b62d
feat: find Decidable instances via unification ( #2816 )
...
Because `Decidable` carries data,
when writing `@[simp]` lemmas which include a `Decidable` instance on the LHS,
it is best to use `{_ : Decidable p}` rather than `[Decidable p]`
so that non-canonical instances can be found via unification rather than
typeclass search.
(Previously this behaviour was often being hidden by the default `decide :=
true` in `simp`.)
2023-11-12 00:47:13 +00:00
Joachim Breitner
fd0a209f74
refactor: TerminationHint: Remove duplicted code line ( #2859 )
...
(I sincerely hope that erasing from a map is idempotent :-))
2023-11-10 16:17:27 +00:00
Marcus Rossel
5189578a48
doc: fix typo in Array.Mem docstring ( #2856 )
2023-11-10 11:16:32 +00:00
Leonardo de Moura
d7c05a5ac4
fix: fixes #2042
2023-11-09 04:06:30 -08:00
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
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
b1f2fcf758
fix: Escape ? in C literal strings to avoid trigraphs
...
This fixes #3829
2023-11-06 16:25:00 +01: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
Leonardo de Moura
4afcdeb771
fix: fixes #2775
...
fixes #2744
2023-11-03 05:56:59 -07: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
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
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
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
Mauricio Collares
cfe5a5f188
chore: change simp default to decide := false ( #2722 )
2023-11-02 10:06:38 +11: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
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
Kyle Miller
5fc079d9ce
fix: dsimp missing consumeMData when closing goals by rfl ( #2776 )
...
Fixes #2514
2023-10-30 09:32:32 +11:00
Leonardo de Moura
175a6ab606
refactor: add Init/MetaTypes to workaround bootstrapping issues
...
Motivation: we could not set `simp` configuration options at `WFTactics.lean`
2023-10-29 09:38:23 -07:00
Leonardo de Moura
1abd5cc665
chore: add simp option unfoldPartialApp
...
It is not being used yet, but we need to add it before solving issue #2042 .
Reason: bootstrapping.
2023-10-29 09:12:21 -07:00