lean4-htt/src/Lean
Kim Morrison 3a408e0e54
feat: change Array.get to take a Nat and a proof (#6032)
This PR changes the signature of `Array.get` to take a Nat and a proof,
rather than a `Fin`, for consistency with the rest of the (planned)
Array API. Note that because of bootstrapping issues we can't provide
`get_elem_tactic` as an autoparameter for the proof. As users will
mostly use the `xs[i]` notation provided by `GetElem`, this hopefully
isn't a problem.

We may restore `Fin` based versions, either here or downstream, as
needed, but they won't be the "main" functions.

---------

Co-authored-by: David Thrane Christiansen <david@davidchristiansen.dk>
2024-11-12 03:30:46 +00:00
..
Compiler feat: change Array.get to take a Nat and a proof (#6032) 2024-11-12 03:30:46 +00:00
Data feat: change Array.get to take a Nat and a proof (#6032) 2024-11-12 03:30:46 +00:00
DocString fix: Lake: brittle dependency on env ext name 2024-10-07 13:26:07 +02:00
Elab feat: change Array.get to take a Nat and a proof (#6032) 2024-11-12 03:30:46 +00:00
Language fix: restore synchronous fast-forwarding path in language processor (#5802) 2024-10-22 09:50:30 +00:00
Linter fix: avoid new term info around def bodies (#6031) 2024-11-11 14:54:59 +00:00
Meta feat: change Array.get to take a Nat and a proof (#6032) 2024-11-12 03:30:46 +00:00
Parser feat: decide +revert and improvements to native_decide (#5999) 2024-11-08 18:17:46 +00:00
ParserCompiler
PrettyPrinter fix: avoid delaborating with field notation if object is a metavariable (#6014) 2024-11-08 20:57:37 +00:00
Server fix: avoid max heartbeat error in completion (#5996) 2024-11-08 13:47:10 +00:00
Util feat: change Array.get to take a Nat and a proof (#6032) 2024-11-12 03:30:46 +00:00
Widget chore: rename Array.back to back! (#5897) 2024-10-31 09:18:18 +00:00
AddDecl.lean
Attributes.lean refactor: dead code AttributeExtensionOLeanEntry.decl (#5496) 2024-10-01 13:34:12 +00:00
AuxRecursor.lean refactor: IndGroupInst.brecOn (#4787) 2024-07-19 10:20:50 +00:00
BuiltinDocAttr.lean
Class.lean chore: move MessageData.ofConstName earlier (#5877) 2024-10-29 21:23:51 +00:00
Compiler.lean
CoreM.lean fix: use MessageData.tagged to mark maxHeartbeat exceptions (#5566) 2024-10-09 02:08:50 +00:00
Data.lean chore: move Lean.Data.Parsec to Std.Internal.Parsec (#5115) 2024-08-21 15:26:17 +00:00
Declaration.lean feat: use "eureka!" icon for theorem completions (#5801) 2024-10-22 10:07:37 +00:00
DeclarationRange.lean fix: call hierarchy into (builtin_)initialize (#5560) 2024-10-03 12:03:44 +00:00
DocString.lean
Elab.lean feat: better #eval command (#5627) 2024-10-08 20:51:46 +00:00
Environment.lean feat: change Array.get to take a Nat and a proof (#6032) 2024-11-12 03:30:46 +00:00
Exception.lean chore: move MessageData.ofConstName earlier (#5877) 2024-10-29 21:23:51 +00:00
Expr.lean feat: on "type mismatch" errors, expose differences in functions and pi types (#5922) 2024-11-01 18:42:14 +00:00
HeadIndex.lean
Hygiene.lean
ImportingFlag.lean
InternalExceptionId.lean feat: change Array.get to take a Nat and a proof (#6032) 2024-11-12 03:30:46 +00:00
KeyedDeclsAttribute.lean
LabelAttribute.lean chore: update copyrights (#5449) 2024-09-24 05:27:53 +00:00
Level.lean feat: change Array.get to take a Nat and a proof (#6032) 2024-11-12 03:30:46 +00:00
Linter.lean feat: omit (#5000) 2024-08-21 13:22:34 +00:00
LoadDynlib.lean
LocalContext.lean refactor: more idiomatic syntax for if h: (#5567) 2024-10-01 15:23:54 +00:00
Log.lean
Message.lean feat: change Array.get to take a Nat and a proof (#6032) 2024-11-12 03:30:46 +00:00
Meta.lean
MetavarContext.lean chore: cleanup (#6021) 2024-11-09 23:16:12 +00:00
Modifiers.lean
MonadEnv.lean fix: bring elaborator in line with kernel for primitive projections (#5822) 2024-10-31 03:16:52 +00:00
Parser.lean
ParserCompiler.lean
PrettyPrinter.lean chore: move MessageData.ofConstName earlier (#5877) 2024-10-29 21:23:51 +00:00
ProjFns.lean fix: modify projection instance binder info (#5376) 2024-09-20 06:03:59 +00:00
ReducibilityAttrs.lean
Replay.lean chore: update copyrights (#5449) 2024-09-24 05:27:53 +00:00
ReservedNameAction.lean
ResolveName.lean chore: move MessageData.ofConstName earlier (#5877) 2024-10-29 21:23:51 +00:00
Runtime.lean feat: link LibUV (#4963) 2024-08-12 12:33:24 +00:00
ScopedEnvExtension.lean
Server.lean
Structure.lean feat: change Array.get to take a Nat and a proof (#6032) 2024-11-12 03:30:46 +00:00
SubExpr.lean chore: cleanup imports (#5825) 2024-10-23 23:51:13 +00:00
Syntax.lean chore: rename Array.back to back! (#5897) 2024-10-31 09:18:18 +00:00
ToExpr.lean refactor: redefine unsigned fixed width integers in terms of BitVec (#5323) 2024-10-16 07:28:23 +00:00
Util.lean feat: localize universe metavariable errors at let bindings and fun binders (#5402) 2024-09-24 05:30:42 +00:00
Widget.lean