From 23e49eb519a45496a9740aeb311bf633a459a61e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20B=C3=B6ving?= Date: Fri, 16 Feb 2024 23:26:26 +0100 Subject: [PATCH] perf: add prelude to all Lean modules --- src/Lean/Attributes.lean | 1 + src/Lean/AuxRecursor.lean | 1 + src/Lean/Class.lean | 1 + src/Lean/Compiler.lean | 1 + src/Lean/Compiler/AtMostOnce.lean | 1 + src/Lean/Compiler/BorrowedAnnotation.lean | 1 + src/Lean/Compiler/CSimpAttr.lean | 1 + src/Lean/Compiler/ClosedTermCache.lean | 1 + src/Lean/Compiler/ConstFolding.lean | 1 + src/Lean/Compiler/ExportAttr.lean | 1 + src/Lean/Compiler/ExternAttr.lean | 2 ++ src/Lean/Compiler/FFI.lean | 3 +++ src/Lean/Compiler/IR.lean | 1 + src/Lean/Compiler/IR/Basic.lean | 1 + src/Lean/Compiler/IR/Borrow.lean | 1 + src/Lean/Compiler/IR/Boxing.lean | 1 + src/Lean/Compiler/IR/Checker.lean | 1 + src/Lean/Compiler/IR/CompilerM.lean | 1 + src/Lean/Compiler/IR/CtorLayout.lean | 1 + src/Lean/Compiler/IR/ElimDeadBranches.lean | 1 + src/Lean/Compiler/IR/ElimDeadVars.lean | 1 + src/Lean/Compiler/IR/EmitC.lean | 1 + src/Lean/Compiler/IR/EmitLLVM.lean | 2 +- src/Lean/Compiler/IR/EmitUtil.lean | 1 + src/Lean/Compiler/IR/ExpandResetReuse.lean | 1 + src/Lean/Compiler/IR/Format.lean | 1 + src/Lean/Compiler/IR/FreeVars.lean | 1 + src/Lean/Compiler/IR/LLVMBindings.lean | 2 ++ src/Lean/Compiler/IR/LiveVars.lean | 1 + src/Lean/Compiler/IR/NormIds.lean | 1 + src/Lean/Compiler/IR/PushProj.lean | 1 + src/Lean/Compiler/IR/RC.lean | 1 + src/Lean/Compiler/IR/ResetReuse.lean | 1 + src/Lean/Compiler/IR/SimpCase.lean | 1 + src/Lean/Compiler/IR/Sorry.lean | 1 + src/Lean/Compiler/IR/UnboxResult.lean | 1 + src/Lean/Compiler/ImplementedByAttr.lean | 1 + src/Lean/Compiler/InitAttr.lean | 1 + src/Lean/Compiler/InlineAttrs.lean | 1 + src/Lean/Compiler/LCNF.lean | 1 + src/Lean/Compiler/LCNF/AlphaEqv.lean | 1 + src/Lean/Compiler/LCNF/AuxDeclCache.lean | 1 + src/Lean/Compiler/LCNF/BaseTypes.lean | 1 + src/Lean/Compiler/LCNF/Basic.lean | 2 ++ src/Lean/Compiler/LCNF/Bind.lean | 1 + src/Lean/Compiler/LCNF/CSE.lean | 1 + src/Lean/Compiler/LCNF/Check.lean | 1 + src/Lean/Compiler/LCNF/Closure.lean | 1 + src/Lean/Compiler/LCNF/CompatibleTypes.lean | 1 + src/Lean/Compiler/LCNF/CompilerM.lean | 1 + src/Lean/Compiler/LCNF/ConfigOptions.lean | 1 + src/Lean/Compiler/LCNF/DeclHash.lean | 1 + src/Lean/Compiler/LCNF/DependsOn.lean | 1 + src/Lean/Compiler/LCNF/ElimDead.lean | 1 + src/Lean/Compiler/LCNF/ElimDeadBranches.lean | 1 + src/Lean/Compiler/LCNF/FVarUtil.lean | 1 + src/Lean/Compiler/LCNF/FixedParams.lean | 1 + src/Lean/Compiler/LCNF/FloatLetIn.lean | 1 + src/Lean/Compiler/LCNF/ForEachExpr.lean | 1 + src/Lean/Compiler/LCNF/InferType.lean | 1 + src/Lean/Compiler/LCNF/Internalize.lean | 1 + src/Lean/Compiler/LCNF/JoinPoints.lean | 1 + src/Lean/Compiler/LCNF/LCtx.lean | 1 + src/Lean/Compiler/LCNF/LambdaLifting.lean | 1 + src/Lean/Compiler/LCNF/Level.lean | 1 + src/Lean/Compiler/LCNF/Main.lean | 1 + src/Lean/Compiler/LCNF/MonadScope.lean | 1 + src/Lean/Compiler/LCNF/MonoTypes.lean | 1 + src/Lean/Compiler/LCNF/OtherDecl.lean | 1 + src/Lean/Compiler/LCNF/PassManager.lean | 1 + src/Lean/Compiler/LCNF/Passes.lean | 1 + src/Lean/Compiler/LCNF/PhaseExt.lean | 1 + src/Lean/Compiler/LCNF/PrettyPrinter.lean | 1 + src/Lean/Compiler/LCNF/Probing.lean | 1 + src/Lean/Compiler/LCNF/PullFunDecls.lean | 1 + src/Lean/Compiler/LCNF/PullLetDecls.lean | 1 + src/Lean/Compiler/LCNF/ReduceArity.lean | 1 + src/Lean/Compiler/LCNF/ReduceJpArity.lean | 1 + src/Lean/Compiler/LCNF/Renaming.lean | 1 + src/Lean/Compiler/LCNF/ScopeM.lean | 1 + src/Lean/Compiler/LCNF/Simp.lean | 1 + src/Lean/Compiler/LCNF/Simp/Basic.lean | 1 + src/Lean/Compiler/LCNF/Simp/Config.lean | 2 ++ src/Lean/Compiler/LCNF/Simp/ConstantFold.lean | 2 ++ src/Lean/Compiler/LCNF/Simp/DefaultAlt.lean | 1 + src/Lean/Compiler/LCNF/Simp/DiscrM.lean | 1 + src/Lean/Compiler/LCNF/Simp/FunDeclInfo.lean | 1 + src/Lean/Compiler/LCNF/Simp/InlineCandidate.lean | 1 + src/Lean/Compiler/LCNF/Simp/InlineProj.lean | 1 + src/Lean/Compiler/LCNF/Simp/JpCases.lean | 1 + src/Lean/Compiler/LCNF/Simp/Main.lean | 1 + src/Lean/Compiler/LCNF/Simp/SimpM.lean | 1 + src/Lean/Compiler/LCNF/Simp/SimpValue.lean | 1 + src/Lean/Compiler/LCNF/Simp/Used.lean | 1 + src/Lean/Compiler/LCNF/SpecInfo.lean | 1 + src/Lean/Compiler/LCNF/Specialize.lean | 1 + src/Lean/Compiler/LCNF/Testing.lean | 1 + src/Lean/Compiler/LCNF/ToDecl.lean | 1 + src/Lean/Compiler/LCNF/ToExpr.lean | 1 + src/Lean/Compiler/LCNF/ToLCNF.lean | 1 + src/Lean/Compiler/LCNF/ToMono.lean | 1 + src/Lean/Compiler/LCNF/Types.lean | 1 + src/Lean/Compiler/LCNF/Util.lean | 2 ++ src/Lean/Compiler/Main.lean | 1 + src/Lean/Compiler/NameMangling.lean | 1 + src/Lean/Compiler/NeverExtractAttr.lean | 1 + src/Lean/Compiler/NoncomputableAttr.lean | 1 + src/Lean/Compiler/Old.lean | 1 + src/Lean/Compiler/Options.lean | 1 + src/Lean/Compiler/Specialize.lean | 1 + src/Lean/CoreM.lean | 1 + src/Lean/Data.lean | 1 + src/Lean/Data/Array.lean | 4 ++-- src/Lean/Data/AssocList.lean | 3 +++ src/Lean/Data/Format.lean | 1 + src/Lean/Data/FuzzyMatching.lean | 3 +++ src/Lean/Data/HashMap.lean | 2 ++ src/Lean/Data/HashSet.lean | 3 +++ src/Lean/Data/Json.lean | 1 + src/Lean/Data/Json/Basic.lean | 6 +++++- src/Lean/Data/Json/Elab.lean | 1 + src/Lean/Data/Json/FromToJson.lean | 1 + src/Lean/Data/Json/Parser.lean | 2 ++ src/Lean/Data/Json/Printer.lean | 1 + src/Lean/Data/Json/Stream.lean | 1 + src/Lean/Data/JsonRpc.lean | 2 +- src/Lean/Data/KVMap.lean | 4 +++- src/Lean/Data/LBool.lean | 2 ++ src/Lean/Data/LOption.lean | 2 ++ src/Lean/Data/Lsp.lean | 1 + src/Lean/Data/Lsp/Basic.lean | 1 + src/Lean/Data/Lsp/Capabilities.lean | 1 + src/Lean/Data/Lsp/Client.lean | 2 +- src/Lean/Data/Lsp/CodeActions.lean | 1 + src/Lean/Data/Lsp/Communication.lean | 1 + src/Lean/Data/Lsp/Diagnostics.lean | 1 + src/Lean/Data/Lsp/Extra.lean | 1 + src/Lean/Data/Lsp/InitShutdown.lean | 1 + src/Lean/Data/Lsp/Internal.lean | 2 +- src/Lean/Data/Lsp/Ipc.lean | 1 + src/Lean/Data/Lsp/LanguageFeatures.lean | 1 + src/Lean/Data/Lsp/TextSync.lean | 1 + src/Lean/Data/Lsp/Utf16.lean | 1 + src/Lean/Data/Lsp/Workspace.lean | 1 + src/Lean/Data/Name.lean | 2 ++ src/Lean/Data/NameMap.lean | 1 + src/Lean/Data/NameTrie.lean | 1 + src/Lean/Data/OpenDecl.lean | 3 ++- src/Lean/Data/Options.lean | 1 + src/Lean/Data/Parsec.lean | 3 +++ src/Lean/Data/PersistentArray.lean | 4 ++++ src/Lean/Data/PersistentHashMap.lean | 3 +++ src/Lean/Data/PersistentHashSet.lean | 1 + src/Lean/Data/Position.lean | 1 + src/Lean/Data/PrefixTree.lean | 1 + src/Lean/Data/RBMap.lean | 2 ++ src/Lean/Data/RBTree.lean | 1 + src/Lean/Data/Rat.lean | 5 +++++ src/Lean/Data/SMap.lean | 1 + src/Lean/Data/SSet.lean | 1 + src/Lean/Data/Trie.lean | 1 + src/Lean/Data/Xml.lean | 1 + src/Lean/Data/Xml/Basic.lean | 2 +- src/Lean/Data/Xml/Parser.lean | 3 +-- src/Lean/Declaration.lean | 1 + src/Lean/DeclarationRange.lean | 1 + src/Lean/DocString.lean | 1 + src/Lean/Elab.lean | 1 + src/Lean/Elab/App.lean | 1 + src/Lean/Elab/Arg.lean | 1 + src/Lean/Elab/Attributes.lean | 1 + src/Lean/Elab/AutoBound.lean | 1 + src/Lean/Elab/AuxDef.lean | 1 + src/Lean/Elab/BinderPredicates.lean | 2 ++ src/Lean/Elab/Binders.lean | 1 + src/Lean/Elab/BindersUtil.lean | 1 + src/Lean/Elab/BuiltinCommand.lean | 1 + src/Lean/Elab/BuiltinNotation.lean | 1 + src/Lean/Elab/BuiltinTerm.lean | 1 + src/Lean/Elab/Calc.lean | 1 + src/Lean/Elab/Command.lean | 1 + src/Lean/Elab/ComputedFields.lean | 1 + src/Lean/Elab/Config.lean | 1 + src/Lean/Elab/DeclModifiers.lean | 1 + src/Lean/Elab/DeclUtil.lean | 1 + src/Lean/Elab/Declaration.lean | 1 + src/Lean/Elab/DeclarationRange.lean | 1 + src/Lean/Elab/DefView.lean | 1 + src/Lean/Elab/Deriving.lean | 1 + src/Lean/Elab/Deriving/BEq.lean | 1 + src/Lean/Elab/Deriving/Basic.lean | 1 + src/Lean/Elab/Deriving/DecEq.lean | 1 + src/Lean/Elab/Deriving/FromToJson.lean | 1 + src/Lean/Elab/Deriving/Hashable.lean | 1 + src/Lean/Elab/Deriving/Inhabited.lean | 1 + src/Lean/Elab/Deriving/Nonempty.lean | 1 + src/Lean/Elab/Deriving/Ord.lean | 1 + src/Lean/Elab/Deriving/Repr.lean | 1 + src/Lean/Elab/Deriving/SizeOf.lean | 1 + src/Lean/Elab/Deriving/TypeName.lean | 1 + src/Lean/Elab/Deriving/Util.lean | 1 + src/Lean/Elab/Do.lean | 1 + src/Lean/Elab/ElabRules.lean | 1 + src/Lean/Elab/Eval.lean | 1 + src/Lean/Elab/Exception.lean | 1 + src/Lean/Elab/Extra.lean | 1 + src/Lean/Elab/Frontend.lean | 1 + src/Lean/Elab/GenInjective.lean | 1 + src/Lean/Elab/Import.lean | 1 + src/Lean/Elab/Inductive.lean | 1 + src/Lean/Elab/InfoTree.lean | 1 + src/Lean/Elab/InfoTree/Main.lean | 1 + src/Lean/Elab/InfoTree/Types.lean | 1 + src/Lean/Elab/InheritDoc.lean | 1 + src/Lean/Elab/LetRec.lean | 1 + src/Lean/Elab/Level.lean | 1 + src/Lean/Elab/Macro.lean | 1 + src/Lean/Elab/MacroArgUtil.lean | 1 + src/Lean/Elab/MacroRules.lean | 1 + src/Lean/Elab/Match.lean | 1 + src/Lean/Elab/MatchAltView.lean | 1 + src/Lean/Elab/Mixfix.lean | 1 + src/Lean/Elab/MutualDef.lean | 1 + src/Lean/Elab/Notation.lean | 1 + src/Lean/Elab/Open.lean | 1 + src/Lean/Elab/ParseImportsFast.lean | 1 + src/Lean/Elab/PatternVar.lean | 1 + src/Lean/Elab/PreDefinition.lean | 1 + src/Lean/Elab/PreDefinition/Basic.lean | 1 + src/Lean/Elab/PreDefinition/Eqns.lean | 1 + src/Lean/Elab/PreDefinition/Main.lean | 1 + src/Lean/Elab/PreDefinition/MkInhabitant.lean | 1 + src/Lean/Elab/PreDefinition/Structural.lean | 1 + src/Lean/Elab/PreDefinition/Structural/BRecOn.lean | 1 + src/Lean/Elab/PreDefinition/Structural/Basic.lean | 1 + src/Lean/Elab/PreDefinition/Structural/Eqns.lean | 1 + src/Lean/Elab/PreDefinition/Structural/FindRecArg.lean | 1 + src/Lean/Elab/PreDefinition/Structural/IndPred.lean | 1 + src/Lean/Elab/PreDefinition/Structural/Main.lean | 1 + src/Lean/Elab/PreDefinition/Structural/Preprocess.lean | 1 + .../Elab/PreDefinition/Structural/SmartUnfolding.lean | 1 + src/Lean/Elab/PreDefinition/WF.lean | 1 + src/Lean/Elab/PreDefinition/WF/Eqns.lean | 1 + src/Lean/Elab/PreDefinition/WF/Fix.lean | 1 + src/Lean/Elab/PreDefinition/WF/GuessLex.lean | 2 +- src/Lean/Elab/PreDefinition/WF/Ite.lean | 1 + src/Lean/Elab/PreDefinition/WF/Main.lean | 1 + src/Lean/Elab/PreDefinition/WF/PackDomain.lean | 1 + src/Lean/Elab/PreDefinition/WF/PackMutual.lean | 1 + src/Lean/Elab/PreDefinition/WF/Preprocess.lean | 1 + src/Lean/Elab/PreDefinition/WF/Rel.lean | 1 + src/Lean/Elab/PreDefinition/WF/TerminationHint.lean | 1 + src/Lean/Elab/Print.lean | 1 + src/Lean/Elab/Quotation.lean | 1 + src/Lean/Elab/Quotation/Precheck.lean | 2 +- src/Lean/Elab/Quotation/Util.lean | 1 + src/Lean/Elab/RecAppSyntax.lean | 1 + src/Lean/Elab/SetOption.lean | 1 + src/Lean/Elab/StructInst.lean | 1 + src/Lean/Elab/Structure.lean | 1 + src/Lean/Elab/Syntax.lean | 1 + src/Lean/Elab/SyntheticMVars.lean | 1 + src/Lean/Elab/Tactic.lean | 1 + src/Lean/Elab/Tactic/Basic.lean | 1 + src/Lean/Elab/Tactic/BuiltinTactic.lean | 1 + src/Lean/Elab/Tactic/Cache.lean | 1 + src/Lean/Elab/Tactic/Calc.lean | 1 + src/Lean/Elab/Tactic/Change.lean | 1 + src/Lean/Elab/Tactic/Config.lean | 1 + src/Lean/Elab/Tactic/Congr.lean | 1 + src/Lean/Elab/Tactic/Conv.lean | 1 + src/Lean/Elab/Tactic/Conv/Basic.lean | 1 + src/Lean/Elab/Tactic/Conv/Change.lean | 1 + src/Lean/Elab/Tactic/Conv/Congr.lean | 1 + src/Lean/Elab/Tactic/Conv/Delta.lean | 1 + src/Lean/Elab/Tactic/Conv/Pattern.lean | 1 + src/Lean/Elab/Tactic/Conv/Rewrite.lean | 1 + src/Lean/Elab/Tactic/Conv/Simp.lean | 1 + src/Lean/Elab/Tactic/Conv/Unfold.lean | 1 + src/Lean/Elab/Tactic/Delta.lean | 1 + src/Lean/Elab/Tactic/ElabTerm.lean | 1 + src/Lean/Elab/Tactic/Ext.lean | 2 ++ src/Lean/Elab/Tactic/FalseOrByContra.lean | 1 + src/Lean/Elab/Tactic/Generalize.lean | 1 + src/Lean/Elab/Tactic/Guard.lean | 2 ++ src/Lean/Elab/Tactic/Induction.lean | 1 + src/Lean/Elab/Tactic/Injection.lean | 1 + src/Lean/Elab/Tactic/Location.lean | 1 + src/Lean/Elab/Tactic/Match.lean | 1 + src/Lean/Elab/Tactic/Meta.lean | 1 + src/Lean/Elab/Tactic/RCases.lean | 1 + src/Lean/Elab/Tactic/Repeat.lean | 1 + src/Lean/Elab/Tactic/Rewrite.lean | 1 + src/Lean/Elab/Tactic/Simp.lean | 1 + src/Lean/Elab/Tactic/Simproc.lean | 2 ++ src/Lean/Elab/Tactic/Split.lean | 1 + src/Lean/Elab/Tactic/Unfold.lean | 1 + src/Lean/Elab/Term.lean | 1 + src/Lean/Elab/Util.lean | 1 + src/Lean/Environment.lean | 4 ++++ src/Lean/Eval.lean | 1 + src/Lean/Exception.lean | 1 + src/Lean/Expr.lean | 2 ++ src/Lean/HeadIndex.lean | 1 + src/Lean/Hygiene.lean | 1 + src/Lean/ImportingFlag.lean | 2 ++ src/Lean/InternalExceptionId.lean | 2 ++ src/Lean/KeyedDeclsAttribute.lean | 1 + src/Lean/LazyInitExtension.lean | 1 + src/Lean/Level.lean | 2 ++ src/Lean/Linter.lean | 1 + src/Lean/Linter/Basic.lean | 1 + src/Lean/Linter/Builtin.lean | 1 + src/Lean/Linter/Deprecated.lean | 1 + src/Lean/Linter/MissingDocs.lean | 1 + src/Lean/Linter/UnusedVariables.lean | 1 + src/Lean/Linter/Util.lean | 1 + src/Lean/LoadDynlib.lean | 3 ++- src/Lean/LocalContext.lean | 2 ++ src/Lean/Log.lean | 1 + src/Lean/Message.lean | 1 + src/Lean/Meta.lean | 1 + src/Lean/Meta/ACLt.lean | 1 + src/Lean/Meta/AbstractMVars.lean | 1 + src/Lean/Meta/AbstractNestedProofs.lean | 1 + src/Lean/Meta/AppBuilder.lean | 1 + src/Lean/Meta/Basic.lean | 1 + src/Lean/Meta/Check.lean | 1 + src/Lean/Meta/Closure.lean | 1 + src/Lean/Meta/Coe.lean | 1 + src/Lean/Meta/CoeAttr.lean | 1 + src/Lean/Meta/CollectFVars.lean | 1 + src/Lean/Meta/CollectMVars.lean | 1 + src/Lean/Meta/CongrTheorems.lean | 1 + src/Lean/Meta/Constructions.lean | 1 + src/Lean/Meta/DecLevel.lean | 1 + src/Lean/Meta/DiscrTree.lean | 1 + src/Lean/Meta/DiscrTreeTypes.lean | 1 + src/Lean/Meta/Eqns.lean | 1 + src/Lean/Meta/Eval.lean | 1 + src/Lean/Meta/ExprDefEq.lean | 1 + src/Lean/Meta/ExprLens.lean | 1 + src/Lean/Meta/ExprTraverse.lean | 1 + src/Lean/Meta/ForEachExpr.lean | 1 + src/Lean/Meta/FunInfo.lean | 1 + src/Lean/Meta/GeneralizeTelescope.lean | 1 + src/Lean/Meta/GeneralizeVars.lean | 1 + src/Lean/Meta/GetUnfoldableConst.lean | 1 + src/Lean/Meta/GlobalInstances.lean | 1 + src/Lean/Meta/IndPredBelow.lean | 2 +- src/Lean/Meta/Inductive.lean | 1 + src/Lean/Meta/InferType.lean | 1 + src/Lean/Meta/Injective.lean | 1 + src/Lean/Meta/Instances.lean | 1 + src/Lean/Meta/KAbstract.lean | 1 + src/Lean/Meta/KExprMap.lean | 1 + src/Lean/Meta/LevelDefEq.lean | 1 + src/Lean/Meta/Match.lean | 1 + src/Lean/Meta/Match/Basic.lean | 1 + src/Lean/Meta/Match/CaseArraySizes.lean | 1 + src/Lean/Meta/Match/CaseValues.lean | 1 + src/Lean/Meta/Match/MVarRenaming.lean | 1 + src/Lean/Meta/Match/Match.lean | 1 + src/Lean/Meta/Match/MatchEqs.lean | 1 + src/Lean/Meta/Match/MatchEqsExt.lean | 1 + src/Lean/Meta/Match/MatchPatternAttr.lean | 1 + src/Lean/Meta/Match/MatcherInfo.lean | 1 + src/Lean/Meta/Match/Value.lean | 1 + src/Lean/Meta/MatchUtil.lean | 1 + src/Lean/Meta/Offset.lean | 1 + src/Lean/Meta/PPGoal.lean | 1 + src/Lean/Meta/RecursorInfo.lean | 1 + src/Lean/Meta/Reduce.lean | 1 + src/Lean/Meta/ReduceEval.lean | 1 + src/Lean/Meta/SizeOf.lean | 2 ++ src/Lean/Meta/Structure.lean | 1 + src/Lean/Meta/SynthInstance.lean | 2 ++ src/Lean/Meta/Tactic.lean | 1 + src/Lean/Meta/Tactic/AC.lean | 1 + src/Lean/Meta/Tactic/AC/Main.lean | 2 ++ src/Lean/Meta/Tactic/Acyclic.lean | 1 + src/Lean/Meta/Tactic/Apply.lean | 1 + src/Lean/Meta/Tactic/Assert.lean | 2 ++ src/Lean/Meta/Tactic/Assumption.lean | 1 + src/Lean/Meta/Tactic/AuxLemma.lean | 1 + src/Lean/Meta/Tactic/Cases.lean | 1 + src/Lean/Meta/Tactic/Cleanup.lean | 1 + src/Lean/Meta/Tactic/Clear.lean | 1 + src/Lean/Meta/Tactic/Congr.lean | 1 + src/Lean/Meta/Tactic/Constructor.lean | 1 + src/Lean/Meta/Tactic/Contradiction.lean | 1 + src/Lean/Meta/Tactic/Delta.lean | 1 + src/Lean/Meta/Tactic/ElimInfo.lean | 1 + src/Lean/Meta/Tactic/FVarSubst.lean | 1 + src/Lean/Meta/Tactic/Generalize.lean | 1 + src/Lean/Meta/Tactic/Induction.lean | 1 + src/Lean/Meta/Tactic/Injection.lean | 1 + src/Lean/Meta/Tactic/Intro.lean | 1 + src/Lean/Meta/Tactic/LinearArith.lean | 1 + src/Lean/Meta/Tactic/LinearArith/Basic.lean | 1 + src/Lean/Meta/Tactic/LinearArith/Main.lean | 1 + src/Lean/Meta/Tactic/LinearArith/Nat.lean | 1 + src/Lean/Meta/Tactic/LinearArith/Nat/Basic.lean | 1 + src/Lean/Meta/Tactic/LinearArith/Nat/Simp.lean | 1 + src/Lean/Meta/Tactic/LinearArith/Nat/Solver.lean | 1 + src/Lean/Meta/Tactic/LinearArith/Simp.lean | 1 + src/Lean/Meta/Tactic/LinearArith/Solver.lean | 3 +++ src/Lean/Meta/Tactic/Refl.lean | 1 + src/Lean/Meta/Tactic/Rename.lean | 1 + src/Lean/Meta/Tactic/Repeat.lean | 1 + src/Lean/Meta/Tactic/Replace.lean | 1 + src/Lean/Meta/Tactic/Revert.lean | 1 + src/Lean/Meta/Tactic/Rewrite.lean | 1 + src/Lean/Meta/Tactic/Simp.lean | 1 + src/Lean/Meta/Tactic/Simp/BuiltinSimprocs.lean | 1 + src/Lean/Meta/Tactic/Simp/BuiltinSimprocs/Core.lean | 2 ++ src/Lean/Meta/Tactic/Simp/BuiltinSimprocs/Fin.lean | 1 + src/Lean/Meta/Tactic/Simp/BuiltinSimprocs/Int.lean | 1 + src/Lean/Meta/Tactic/Simp/BuiltinSimprocs/Nat.lean | 2 ++ src/Lean/Meta/Tactic/Simp/BuiltinSimprocs/UInt.lean | 1 + src/Lean/Meta/Tactic/Simp/BuiltinSimprocs/Util.lean | 1 + src/Lean/Meta/Tactic/Simp/Main.lean | 1 + src/Lean/Meta/Tactic/Simp/RegisterCommand.lean | 1 + src/Lean/Meta/Tactic/Simp/Rewrite.lean | 1 + src/Lean/Meta/Tactic/Simp/SimpAll.lean | 1 + src/Lean/Meta/Tactic/Simp/SimpCongrTheorems.lean | 1 + src/Lean/Meta/Tactic/Simp/SimpTheorems.lean | 1 + src/Lean/Meta/Tactic/Simp/Simproc.lean | 1 + src/Lean/Meta/Tactic/Simp/Types.lean | 1 + src/Lean/Meta/Tactic/Split.lean | 1 + src/Lean/Meta/Tactic/SplitIf.lean | 1 + src/Lean/Meta/Tactic/Subst.lean | 1 + src/Lean/Meta/Tactic/TryThis.lean | 1 + src/Lean/Meta/Tactic/Unfold.lean | 1 + src/Lean/Meta/Tactic/UnifyEq.lean | 1 + src/Lean/Meta/Tactic/Util.lean | 1 + src/Lean/Meta/Transform.lean | 1 + src/Lean/Meta/TransparencyMode.lean | 2 ++ src/Lean/Meta/UnificationHint.lean | 1 + src/Lean/Meta/WHNF.lean | 1 + src/Lean/MetavarContext.lean | 1 + src/Lean/Modifiers.lean | 1 + src/Lean/MonadEnv.lean | 1 + src/Lean/Parser.lean | 1 + src/Lean/Parser/Attr.lean | 1 + src/Lean/Parser/Basic.lean | 1 + src/Lean/Parser/Command.lean | 1 + src/Lean/Parser/Do.lean | 1 + src/Lean/Parser/Extension.lean | 1 + src/Lean/Parser/Extra.lean | 1 + src/Lean/Parser/Level.lean | 1 + src/Lean/Parser/Module.lean | 1 + src/Lean/Parser/StrInterpolation.lean | 1 + src/Lean/Parser/Syntax.lean | 1 + src/Lean/Parser/Tactic.lean | 1 + src/Lean/Parser/Term.lean | 1 + src/Lean/Parser/Types.lean | 1 + src/Lean/ParserCompiler.lean | 1 + src/Lean/ParserCompiler/Attribute.lean | 2 +- src/Lean/PrettyPrinter.lean | 1 + src/Lean/PrettyPrinter/Basic.lean | 1 + src/Lean/PrettyPrinter/Delaborator.lean | 1 + src/Lean/PrettyPrinter/Delaborator/Basic.lean | 1 + src/Lean/PrettyPrinter/Delaborator/Builtins.lean | 1 + src/Lean/PrettyPrinter/Delaborator/Options.lean | 1 + src/Lean/PrettyPrinter/Delaborator/SubExpr.lean | 1 + src/Lean/PrettyPrinter/Delaborator/TopDownAnalyze.lean | 1 + src/Lean/PrettyPrinter/Formatter.lean | 1 + src/Lean/PrettyPrinter/Parenthesizer.lean | 1 + src/Lean/ProjFns.lean | 1 + src/Lean/ReducibilityAttrs.lean | 1 + src/Lean/Replay.lean | 1 + src/Lean/ResolveName.lean | 1 + src/Lean/Runtime.lean | 2 ++ src/Lean/ScopedEnvExtension.lean | 1 + src/Lean/Server.lean | 1 + src/Lean/Server/AsyncList.lean | 1 + src/Lean/Server/CodeActions.lean | 2 +- src/Lean/Server/Completion.lean | 1 + src/Lean/Server/FileSource.lean | 1 + src/Lean/Server/FileWorker.lean | 2 ++ src/Lean/Server/FileWorker/RequestHandling.lean | 1 + src/Lean/Server/FileWorker/SetupFile.lean | 1 + src/Lean/Server/FileWorker/Utils.lean | 1 + src/Lean/Server/FileWorker/WidgetRequests.lean | 1 + src/Lean/Server/GoTo.lean | 1 + src/Lean/Server/ImportCompletion.lean | 1 + src/Lean/Server/InfoUtils.lean | 1 + src/Lean/Server/References.lean | 1 + src/Lean/Server/Requests.lean | 1 + src/Lean/Server/Rpc.lean | 1 + src/Lean/Server/Rpc/Basic.lean | 2 ++ src/Lean/Server/Rpc/Deriving.lean | 2 +- src/Lean/Server/Rpc/RequestHandling.lean | 1 + src/Lean/Server/Snapshots.lean | 1 + src/Lean/Server/Utils.lean | 2 ++ src/Lean/Server/Watchdog.lean | 1 + src/Lean/Structure.lean | 1 + src/Lean/SubExpr.lean | 1 + src/Lean/Syntax.lean | 3 +++ src/Lean/ToExpr.lean | 1 + src/Lean/Util.lean | 1 + src/Lean/Util/CollectFVars.lean | 1 + src/Lean/Util/CollectLevelParams.lean | 1 + src/Lean/Util/CollectMVars.lean | 1 + src/Lean/Util/FileSetupInfo.lean | 1 + src/Lean/Util/FindExpr.lean | 1 + src/Lean/Util/FindLevelMVar.lean | 1 + src/Lean/Util/FindMVar.lean | 1 + src/Lean/Util/FoldConsts.lean | 1 + src/Lean/Util/ForEachExpr.lean | 1 + src/Lean/Util/ForEachExprWhere.lean | 1 + src/Lean/Util/HasConstCache.lean | 1 + src/Lean/Util/InstantiateLevelParams.lean | 2 +- src/Lean/Util/LakePath.lean | 2 ++ src/Lean/Util/LeanOptions.lean | 1 + src/Lean/Util/MonadBacktrack.lean | 2 ++ src/Lean/Util/MonadCache.lean | 2 ++ src/Lean/Util/OccursCheck.lean | 1 + src/Lean/Util/PPExt.lean | 1 + src/Lean/Util/Path.lean | 4 +++- src/Lean/Util/Paths.lean | 1 + src/Lean/Util/Profile.lean | 2 ++ src/Lean/Util/PtrSet.lean | 2 ++ src/Lean/Util/RecDepth.lean | 1 + src/Lean/Util/Recognizers.lean | 1 + src/Lean/Util/ReplaceExpr.lean | 1 + src/Lean/Util/ReplaceLevel.lean | 1 + src/Lean/Util/SCC.lean | 2 ++ src/Lean/Util/ShareCommon.lean | 2 ++ src/Lean/Util/Sorry.lean | 1 + src/Lean/Util/TestExtern.lean | 1 + src/Lean/Util/Trace.lean | 1 + src/Lean/Widget.lean | 1 + src/Lean/Widget/Basic.lean | 1 + src/Lean/Widget/Diff.lean | 1 + src/Lean/Widget/InteractiveCode.lean | 1 + src/Lean/Widget/InteractiveDiagnostic.lean | 1 + src/Lean/Widget/InteractiveGoal.lean | 1 + src/Lean/Widget/TaggedText.lean | 1 + src/Lean/Widget/Types.lean | 1 + src/Lean/Widget/UserWidget.lean | 1 + tests/lean/1021.lean.expected.out | 8 ++++---- 543 files changed, 622 insertions(+), 25 deletions(-) diff --git a/src/Lean/Attributes.lean b/src/Lean/Attributes.lean index fbf20ad545..85a7cc5d12 100644 --- a/src/Lean/Attributes.lean +++ b/src/Lean/Attributes.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.CoreM import Lean.MonadEnv diff --git a/src/Lean/AuxRecursor.lean b/src/Lean/AuxRecursor.lean index 8e7dbd4ff1..300a72f62a 100644 --- a/src/Lean/AuxRecursor.lean +++ b/src/Lean/AuxRecursor.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Environment namespace Lean diff --git a/src/Lean/Class.lean b/src/Lean/Class.lean index 3d02fefc24..f26c478fbd 100644 --- a/src/Lean/Class.lean +++ b/src/Lean/Class.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Attributes namespace Lean diff --git a/src/Lean/Compiler.lean b/src/Lean/Compiler.lean index 55b38b3efd..e80bc9e7c5 100644 --- a/src/Lean/Compiler.lean +++ b/src/Lean/Compiler.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.InlineAttrs import Lean.Compiler.Specialize import Lean.Compiler.ConstFolding diff --git a/src/Lean/Compiler/AtMostOnce.lean b/src/Lean/Compiler/AtMostOnce.lean index 10457749f7..0822d79f04 100644 --- a/src/Lean/Compiler/AtMostOnce.lean +++ b/src/Lean/Compiler/AtMostOnce.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Environment namespace Lean.Compiler diff --git a/src/Lean/Compiler/BorrowedAnnotation.lean b/src/Lean/Compiler/BorrowedAnnotation.lean index 4800e18125..3fc71e4bea 100644 --- a/src/Lean/Compiler/BorrowedAnnotation.lean +++ b/src/Lean/Compiler/BorrowedAnnotation.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Expr namespace Lean diff --git a/src/Lean/Compiler/CSimpAttr.lean b/src/Lean/Compiler/CSimpAttr.lean index 1f15f55129..1fad0e367b 100644 --- a/src/Lean/Compiler/CSimpAttr.lean +++ b/src/Lean/Compiler/CSimpAttr.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.ScopedEnvExtension import Lean.Util.Recognizers import Lean.Util.ReplaceExpr diff --git a/src/Lean/Compiler/ClosedTermCache.lean b/src/Lean/Compiler/ClosedTermCache.lean index 69f5b9b302..3456bf46d1 100644 --- a/src/Lean/Compiler/ClosedTermCache.lean +++ b/src/Lean/Compiler/ClosedTermCache.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Environment namespace Lean diff --git a/src/Lean/Compiler/ConstFolding.lean b/src/Lean/Compiler/ConstFolding.lean index a044cdab6d..34b7e6cf6d 100644 --- a/src/Lean/Compiler/ConstFolding.lean +++ b/src/Lean/Compiler/ConstFolding.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Expr /-! Constant folding for primitives that have special runtime support. -/ diff --git a/src/Lean/Compiler/ExportAttr.lean b/src/Lean/Compiler/ExportAttr.lean index aa14b0b487..2fafe73c2e 100644 --- a/src/Lean/Compiler/ExportAttr.lean +++ b/src/Lean/Compiler/ExportAttr.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Attributes namespace Lean diff --git a/src/Lean/Compiler/ExternAttr.lean b/src/Lean/Compiler/ExternAttr.lean index cc563ba458..9ce1addc61 100644 --- a/src/Lean/Compiler/ExternAttr.lean +++ b/src/Lean/Compiler/ExternAttr.lean @@ -3,6 +3,8 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude +import Init.Data.List.BasicAux import Lean.Expr import Lean.Environment import Lean.Attributes diff --git a/src/Lean/Compiler/FFI.lean b/src/Lean/Compiler/FFI.lean index f0480df81f..4c63777cec 100644 --- a/src/Lean/Compiler/FFI.lean +++ b/src/Lean/Compiler/FFI.lean @@ -3,6 +3,9 @@ Copyright (c) 2021 Sebastian Ullrich. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Ullrich -/ +prelude +import Init.Data.Array.Basic +import Init.System.FilePath open System diff --git a/src/Lean/Compiler/IR.lean b/src/Lean/Compiler/IR.lean index 9fa9939315..0f8dd3005e 100644 --- a/src/Lean/Compiler/IR.lean +++ b/src/Lean/Compiler/IR.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.IR.Basic import Lean.Compiler.IR.Format import Lean.Compiler.IR.CompilerM diff --git a/src/Lean/Compiler/IR/Basic.lean b/src/Lean/Compiler/IR/Basic.lean index a9a84268ad..706908fa92 100644 --- a/src/Lean/Compiler/IR/Basic.lean +++ b/src/Lean/Compiler/IR/Basic.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Data.KVMap import Lean.Data.Name import Lean.Data.Format diff --git a/src/Lean/Compiler/IR/Borrow.lean b/src/Lean/Compiler/IR/Borrow.lean index d5500fc3bd..e7def8dd01 100644 --- a/src/Lean/Compiler/IR/Borrow.lean +++ b/src/Lean/Compiler/IR/Borrow.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.ExportAttr import Lean.Compiler.IR.CompilerM import Lean.Compiler.IR.NormIds diff --git a/src/Lean/Compiler/IR/Boxing.lean b/src/Lean/Compiler/IR/Boxing.lean index 75dc80277c..7deaf97cdf 100644 --- a/src/Lean/Compiler/IR/Boxing.lean +++ b/src/Lean/Compiler/IR/Boxing.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Runtime import Lean.Compiler.ClosedTermCache import Lean.Compiler.ExternAttr diff --git a/src/Lean/Compiler/IR/Checker.lean b/src/Lean/Compiler/IR/Checker.lean index 36b3c7254a..c4e7257e16 100644 --- a/src/Lean/Compiler/IR/Checker.lean +++ b/src/Lean/Compiler/IR/Checker.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.IR.CompilerM import Lean.Compiler.IR.Format diff --git a/src/Lean/Compiler/IR/CompilerM.lean b/src/Lean/Compiler/IR/CompilerM.lean index b104dbec08..af2b328716 100644 --- a/src/Lean/Compiler/IR/CompilerM.lean +++ b/src/Lean/Compiler/IR/CompilerM.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Environment import Lean.Compiler.IR.Basic import Lean.Compiler.IR.Format diff --git a/src/Lean/Compiler/IR/CtorLayout.lean b/src/Lean/Compiler/IR/CtorLayout.lean index 94c9d2ed6e..0b94b8516a 100644 --- a/src/Lean/Compiler/IR/CtorLayout.lean +++ b/src/Lean/Compiler/IR/CtorLayout.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Environment import Lean.Compiler.IR.Format diff --git a/src/Lean/Compiler/IR/ElimDeadBranches.lean b/src/Lean/Compiler/IR/ElimDeadBranches.lean index 60f08ce731..22000f74e3 100644 --- a/src/Lean/Compiler/IR/ElimDeadBranches.lean +++ b/src/Lean/Compiler/IR/ElimDeadBranches.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.IR.Format import Lean.Compiler.IR.Basic import Lean.Compiler.IR.CompilerM diff --git a/src/Lean/Compiler/IR/ElimDeadVars.lean b/src/Lean/Compiler/IR/ElimDeadVars.lean index fe4b421fbe..da02b23dd8 100644 --- a/src/Lean/Compiler/IR/ElimDeadVars.lean +++ b/src/Lean/Compiler/IR/ElimDeadVars.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.IR.Basic import Lean.Compiler.IR.FreeVars diff --git a/src/Lean/Compiler/IR/EmitC.lean b/src/Lean/Compiler/IR/EmitC.lean index 2e2dc1f69a..3aa0a1ade2 100644 --- a/src/Lean/Compiler/IR/EmitC.lean +++ b/src/Lean/Compiler/IR/EmitC.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Runtime import Lean.Compiler.NameMangling import Lean.Compiler.ExportAttr diff --git a/src/Lean/Compiler/IR/EmitLLVM.lean b/src/Lean/Compiler/IR/EmitLLVM.lean index 515b6fe3fa..bdf6f5abb1 100644 --- a/src/Lean/Compiler/IR/EmitLLVM.lean +++ b/src/Lean/Compiler/IR/EmitLLVM.lean @@ -3,7 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Siddharth Bhat -/ - +prelude import Lean.Data.HashMap import Lean.Runtime import Lean.Compiler.NameMangling diff --git a/src/Lean/Compiler/IR/EmitUtil.lean b/src/Lean/Compiler/IR/EmitUtil.lean index e5d0b1087c..d3863827b8 100644 --- a/src/Lean/Compiler/IR/EmitUtil.lean +++ b/src/Lean/Compiler/IR/EmitUtil.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.InitAttr import Lean.Compiler.IR.CompilerM diff --git a/src/Lean/Compiler/IR/ExpandResetReuse.lean b/src/Lean/Compiler/IR/ExpandResetReuse.lean index 7352601f6e..f247b3edcc 100644 --- a/src/Lean/Compiler/IR/ExpandResetReuse.lean +++ b/src/Lean/Compiler/IR/ExpandResetReuse.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.IR.CompilerM import Lean.Compiler.IR.NormIds import Lean.Compiler.IR.FreeVars diff --git a/src/Lean/Compiler/IR/Format.lean b/src/Lean/Compiler/IR/Format.lean index 39f9798081..80a44c145f 100644 --- a/src/Lean/Compiler/IR/Format.lean +++ b/src/Lean/Compiler/IR/Format.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.IR.Basic namespace Lean diff --git a/src/Lean/Compiler/IR/FreeVars.lean b/src/Lean/Compiler/IR/FreeVars.lean index 1d14df4b17..c969f68481 100644 --- a/src/Lean/Compiler/IR/FreeVars.lean +++ b/src/Lean/Compiler/IR/FreeVars.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.IR.Basic namespace Lean.IR diff --git a/src/Lean/Compiler/IR/LLVMBindings.lean b/src/Lean/Compiler/IR/LLVMBindings.lean index d80c3e9922..b58aa02818 100644 --- a/src/Lean/Compiler/IR/LLVMBindings.lean +++ b/src/Lean/Compiler/IR/LLVMBindings.lean @@ -3,6 +3,8 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Siddharth Bhat -/ +prelude +import Init.System.IO namespace LLVM /-! diff --git a/src/Lean/Compiler/IR/LiveVars.lean b/src/Lean/Compiler/IR/LiveVars.lean index e4c707943b..fbb6cfc80d 100644 --- a/src/Lean/Compiler/IR/LiveVars.lean +++ b/src/Lean/Compiler/IR/LiveVars.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.IR.Basic import Lean.Compiler.IR.FreeVars diff --git a/src/Lean/Compiler/IR/NormIds.lean b/src/Lean/Compiler/IR/NormIds.lean index 624e34982b..32997d302b 100644 --- a/src/Lean/Compiler/IR/NormIds.lean +++ b/src/Lean/Compiler/IR/NormIds.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.IR.Basic namespace Lean.IR.UniqueIds diff --git a/src/Lean/Compiler/IR/PushProj.lean b/src/Lean/Compiler/IR/PushProj.lean index 63f73393f0..04d7f02671 100644 --- a/src/Lean/Compiler/IR/PushProj.lean +++ b/src/Lean/Compiler/IR/PushProj.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.IR.Basic import Lean.Compiler.IR.FreeVars import Lean.Compiler.IR.NormIds diff --git a/src/Lean/Compiler/IR/RC.lean b/src/Lean/Compiler/IR/RC.lean index 557a72de79..32e223c2a2 100644 --- a/src/Lean/Compiler/IR/RC.lean +++ b/src/Lean/Compiler/IR/RC.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Runtime import Lean.Compiler.IR.CompilerM import Lean.Compiler.IR.LiveVars diff --git a/src/Lean/Compiler/IR/ResetReuse.lean b/src/Lean/Compiler/IR/ResetReuse.lean index a358f3afcc..3f85e2ad15 100644 --- a/src/Lean/Compiler/IR/ResetReuse.lean +++ b/src/Lean/Compiler/IR/ResetReuse.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.IR.Basic import Lean.Compiler.IR.LiveVars import Lean.Compiler.IR.Format diff --git a/src/Lean/Compiler/IR/SimpCase.lean b/src/Lean/Compiler/IR/SimpCase.lean index 17b13f41ce..c293de19db 100644 --- a/src/Lean/Compiler/IR/SimpCase.lean +++ b/src/Lean/Compiler/IR/SimpCase.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.IR.Basic import Lean.Compiler.IR.Format diff --git a/src/Lean/Compiler/IR/Sorry.lean b/src/Lean/Compiler/IR/Sorry.lean index 8417dc145b..87ad1214bc 100644 --- a/src/Lean/Compiler/IR/Sorry.lean +++ b/src/Lean/Compiler/IR/Sorry.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.IR.CompilerM namespace Lean.IR diff --git a/src/Lean/Compiler/IR/UnboxResult.lean b/src/Lean/Compiler/IR/UnboxResult.lean index e6c87338d0..366eab229f 100644 --- a/src/Lean/Compiler/IR/UnboxResult.lean +++ b/src/Lean/Compiler/IR/UnboxResult.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Data.Format import Lean.Compiler.IR.Basic diff --git a/src/Lean/Compiler/ImplementedByAttr.lean b/src/Lean/Compiler/ImplementedByAttr.lean index f9179ee525..70f00fc251 100644 --- a/src/Lean/Compiler/ImplementedByAttr.lean +++ b/src/Lean/Compiler/ImplementedByAttr.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Attributes import Lean.Declaration import Lean.MonadEnv diff --git a/src/Lean/Compiler/InitAttr.lean b/src/Lean/Compiler/InitAttr.lean index 7d08fb6a01..4e9dc2455e 100644 --- a/src/Lean/Compiler/InitAttr.lean +++ b/src/Lean/Compiler/InitAttr.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Elab.InfoTree.Main namespace Lean diff --git a/src/Lean/Compiler/InlineAttrs.lean b/src/Lean/Compiler/InlineAttrs.lean index 79a84bf694..64bfa03fe6 100644 --- a/src/Lean/Compiler/InlineAttrs.lean +++ b/src/Lean/Compiler/InlineAttrs.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Attributes diff --git a/src/Lean/Compiler/LCNF.lean b/src/Lean/Compiler/LCNF.lean index b3341af389..7ff6b1d3f0 100644 --- a/src/Lean/Compiler/LCNF.lean +++ b/src/Lean/Compiler/LCNF.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.LCNF.AlphaEqv import Lean.Compiler.LCNF.Basic import Lean.Compiler.LCNF.Bind diff --git a/src/Lean/Compiler/LCNF/AlphaEqv.lean b/src/Lean/Compiler/LCNF/AlphaEqv.lean index deb476b3d2..73e2d67150 100644 --- a/src/Lean/Compiler/LCNF/AlphaEqv.lean +++ b/src/Lean/Compiler/LCNF/AlphaEqv.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.LCNF.Basic namespace Lean.Compiler.LCNF diff --git a/src/Lean/Compiler/LCNF/AuxDeclCache.lean b/src/Lean/Compiler/LCNF/AuxDeclCache.lean index 8060bff956..c45e3b8bad 100644 --- a/src/Lean/Compiler/LCNF/AuxDeclCache.lean +++ b/src/Lean/Compiler/LCNF/AuxDeclCache.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.LCNF.CompilerM import Lean.Compiler.LCNF.DeclHash import Lean.Compiler.LCNF.Internalize diff --git a/src/Lean/Compiler/LCNF/BaseTypes.lean b/src/Lean/Compiler/LCNF/BaseTypes.lean index 662b98853d..afe90bf39c 100644 --- a/src/Lean/Compiler/LCNF/BaseTypes.lean +++ b/src/Lean/Compiler/LCNF/BaseTypes.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.LCNF.CompilerM import Lean.Compiler.LCNF.Types diff --git a/src/Lean/Compiler/LCNF/Basic.lean b/src/Lean/Compiler/LCNF/Basic.lean index a0c6a21224..1b56c163ba 100644 --- a/src/Lean/Compiler/LCNF/Basic.lean +++ b/src/Lean/Compiler/LCNF/Basic.lean @@ -3,6 +3,8 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude +import Init.Data.List.BasicAux import Lean.Expr import Lean.Meta.Instances import Lean.Compiler.InlineAttrs diff --git a/src/Lean/Compiler/LCNF/Bind.lean b/src/Lean/Compiler/LCNF/Bind.lean index c4a9d425ed..8ff6a6174e 100644 --- a/src/Lean/Compiler/LCNF/Bind.lean +++ b/src/Lean/Compiler/LCNF/Bind.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.LCNF.InferType namespace Lean.Compiler.LCNF diff --git a/src/Lean/Compiler/LCNF/CSE.lean b/src/Lean/Compiler/LCNF/CSE.lean index 25c7d97a6e..4d6868424f 100644 --- a/src/Lean/Compiler/LCNF/CSE.lean +++ b/src/Lean/Compiler/LCNF/CSE.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.LCNF.CompilerM import Lean.Compiler.LCNF.ToExpr import Lean.Compiler.LCNF.PassManager diff --git a/src/Lean/Compiler/LCNF/Check.lean b/src/Lean/Compiler/LCNF/Check.lean index 677748dcdd..a1b75c1f98 100644 --- a/src/Lean/Compiler/LCNF/Check.lean +++ b/src/Lean/Compiler/LCNF/Check.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.LCNF.InferType import Lean.Compiler.LCNF.PrettyPrinter import Lean.Compiler.LCNF.CompatibleTypes diff --git a/src/Lean/Compiler/LCNF/Closure.lean b/src/Lean/Compiler/LCNF/Closure.lean index 450e4ef182..9e544bd7ed 100644 --- a/src/Lean/Compiler/LCNF/Closure.lean +++ b/src/Lean/Compiler/LCNF/Closure.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Util.ForEachExprWhere import Lean.Compiler.LCNF.CompilerM diff --git a/src/Lean/Compiler/LCNF/CompatibleTypes.lean b/src/Lean/Compiler/LCNF/CompatibleTypes.lean index 5ec1bb005d..824652b59f 100644 --- a/src/Lean/Compiler/LCNF/CompatibleTypes.lean +++ b/src/Lean/Compiler/LCNF/CompatibleTypes.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.LCNF.InferType namespace Lean.Compiler.LCNF diff --git a/src/Lean/Compiler/LCNF/CompilerM.lean b/src/Lean/Compiler/LCNF/CompilerM.lean index 5e261a4c7f..a67fe9017c 100644 --- a/src/Lean/Compiler/LCNF/CompilerM.lean +++ b/src/Lean/Compiler/LCNF/CompilerM.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.CoreM import Lean.Compiler.LCNF.Basic import Lean.Compiler.LCNF.LCtx diff --git a/src/Lean/Compiler/LCNF/ConfigOptions.lean b/src/Lean/Compiler/LCNF/ConfigOptions.lean index c478c03e78..5222917064 100644 --- a/src/Lean/Compiler/LCNF/ConfigOptions.lean +++ b/src/Lean/Compiler/LCNF/ConfigOptions.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Data.Options namespace Lean.Compiler.LCNF diff --git a/src/Lean/Compiler/LCNF/DeclHash.lean b/src/Lean/Compiler/LCNF/DeclHash.lean index b6e0f20d5f..8b96efac81 100644 --- a/src/Lean/Compiler/LCNF/DeclHash.lean +++ b/src/Lean/Compiler/LCNF/DeclHash.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.LCNF.Basic namespace Lean.Compiler.LCNF diff --git a/src/Lean/Compiler/LCNF/DependsOn.lean b/src/Lean/Compiler/LCNF/DependsOn.lean index 8eb7fb6989..95d0836ec4 100644 --- a/src/Lean/Compiler/LCNF/DependsOn.lean +++ b/src/Lean/Compiler/LCNF/DependsOn.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.LCNF.Basic namespace Lean.Compiler.LCNF diff --git a/src/Lean/Compiler/LCNF/ElimDead.lean b/src/Lean/Compiler/LCNF/ElimDead.lean index 28bdae95bf..90d8549a09 100644 --- a/src/Lean/Compiler/LCNF/ElimDead.lean +++ b/src/Lean/Compiler/LCNF/ElimDead.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.LCNF.CompilerM namespace Lean.Compiler.LCNF diff --git a/src/Lean/Compiler/LCNF/ElimDeadBranches.lean b/src/Lean/Compiler/LCNF/ElimDeadBranches.lean index fc15d59352..323ac0e528 100644 --- a/src/Lean/Compiler/LCNF/ElimDeadBranches.lean +++ b/src/Lean/Compiler/LCNF/ElimDeadBranches.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Henrik Böving. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Henrik Böving -/ +prelude import Lean.Compiler.LCNF.CompilerM import Lean.Compiler.LCNF.PassManager import Lean.Compiler.LCNF.PhaseExt diff --git a/src/Lean/Compiler/LCNF/FVarUtil.lean b/src/Lean/Compiler/LCNF/FVarUtil.lean index 0f9f170794..a2e955ab8d 100644 --- a/src/Lean/Compiler/LCNF/FVarUtil.lean +++ b/src/Lean/Compiler/LCNF/FVarUtil.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Henrik Böving. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Henrik Böving -/ +prelude import Lean.Expr import Lean.Compiler.LCNF.Basic import Lean.Compiler.LCNF.CompilerM diff --git a/src/Lean/Compiler/LCNF/FixedParams.lean b/src/Lean/Compiler/LCNF/FixedParams.lean index 34ab6677b6..4e532e5b4f 100644 --- a/src/Lean/Compiler/LCNF/FixedParams.lean +++ b/src/Lean/Compiler/LCNF/FixedParams.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.LCNF.Basic import Lean.Compiler.LCNF.Types diff --git a/src/Lean/Compiler/LCNF/FloatLetIn.lean b/src/Lean/Compiler/LCNF/FloatLetIn.lean index 174a9d4776..b231081e67 100644 --- a/src/Lean/Compiler/LCNF/FloatLetIn.lean +++ b/src/Lean/Compiler/LCNF/FloatLetIn.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Henrik Böving. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Henrik Böving -/ +prelude import Lean.Compiler.LCNF.CompilerM import Lean.Compiler.LCNF.FVarUtil import Lean.Compiler.LCNF.PassManager diff --git a/src/Lean/Compiler/LCNF/ForEachExpr.lean b/src/Lean/Compiler/LCNF/ForEachExpr.lean index 79da9c1247..f40542565c 100644 --- a/src/Lean/Compiler/LCNF/ForEachExpr.lean +++ b/src/Lean/Compiler/LCNF/ForEachExpr.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Util.ForEachExpr import Lean.Compiler.LCNF.Basic diff --git a/src/Lean/Compiler/LCNF/InferType.lean b/src/Lean/Compiler/LCNF/InferType.lean index bbdf72ce12..cc27804400 100644 --- a/src/Lean/Compiler/LCNF/InferType.lean +++ b/src/Lean/Compiler/LCNF/InferType.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.LCNF.CompilerM import Lean.Compiler.LCNF.Types import Lean.Compiler.LCNF.PhaseExt diff --git a/src/Lean/Compiler/LCNF/Internalize.lean b/src/Lean/Compiler/LCNF/Internalize.lean index 6c41cadcb4..79e616898e 100644 --- a/src/Lean/Compiler/LCNF/Internalize.lean +++ b/src/Lean/Compiler/LCNF/Internalize.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.LCNF.Types import Lean.Compiler.LCNF.Bind import Lean.Compiler.LCNF.CompilerM diff --git a/src/Lean/Compiler/LCNF/JoinPoints.lean b/src/Lean/Compiler/LCNF/JoinPoints.lean index 09dfdf2341..3695a6d1f1 100644 --- a/src/Lean/Compiler/LCNF/JoinPoints.lean +++ b/src/Lean/Compiler/LCNF/JoinPoints.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Henrik Böving. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Henrik Böving -/ +prelude import Lean.Compiler.LCNF.CompilerM import Lean.Compiler.LCNF.PassManager import Lean.Compiler.LCNF.PullFunDecls diff --git a/src/Lean/Compiler/LCNF/LCtx.lean b/src/Lean/Compiler/LCNF/LCtx.lean index ba50bf037d..ed8b7037f6 100644 --- a/src/Lean/Compiler/LCNF/LCtx.lean +++ b/src/Lean/Compiler/LCNF/LCtx.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.LocalContext import Lean.Compiler.LCNF.Basic diff --git a/src/Lean/Compiler/LCNF/LambdaLifting.lean b/src/Lean/Compiler/LCNF/LambdaLifting.lean index f75dbd8807..98e267c730 100644 --- a/src/Lean/Compiler/LCNF/LambdaLifting.lean +++ b/src/Lean/Compiler/LCNF/LambdaLifting.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Instances import Lean.Compiler.InlineAttrs import Lean.Compiler.LCNF.Closure diff --git a/src/Lean/Compiler/LCNF/Level.lean b/src/Lean/Compiler/LCNF/Level.lean index 4275ce9af0..07c0ed26e7 100644 --- a/src/Lean/Compiler/LCNF/Level.lean +++ b/src/Lean/Compiler/LCNF/Level.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Util.CollectLevelParams import Lean.Compiler.LCNF.Basic diff --git a/src/Lean/Compiler/LCNF/Main.lean b/src/Lean/Compiler/LCNF/Main.lean index ed7578898d..5222988ade 100644 --- a/src/Lean/Compiler/LCNF/Main.lean +++ b/src/Lean/Compiler/LCNF/Main.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.Options import Lean.Compiler.LCNF.PassManager import Lean.Compiler.LCNF.Passes diff --git a/src/Lean/Compiler/LCNF/MonadScope.lean b/src/Lean/Compiler/LCNF/MonadScope.lean index b157cdeb9f..752db34daf 100644 --- a/src/Lean/Compiler/LCNF/MonadScope.lean +++ b/src/Lean/Compiler/LCNF/MonadScope.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.LCNF.Basic namespace Lean.Compiler.LCNF diff --git a/src/Lean/Compiler/LCNF/MonoTypes.lean b/src/Lean/Compiler/LCNF/MonoTypes.lean index 0d90433ac4..4f609b3f9b 100644 --- a/src/Lean/Compiler/LCNF/MonoTypes.lean +++ b/src/Lean/Compiler/LCNF/MonoTypes.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.InferType import Lean.Compiler.LCNF.Util import Lean.Compiler.LCNF.BaseTypes diff --git a/src/Lean/Compiler/LCNF/OtherDecl.lean b/src/Lean/Compiler/LCNF/OtherDecl.lean index 560ed28834..f7db48914a 100644 --- a/src/Lean/Compiler/LCNF/OtherDecl.lean +++ b/src/Lean/Compiler/LCNF/OtherDecl.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.LCNF.BaseTypes import Lean.Compiler.LCNF.MonoTypes diff --git a/src/Lean/Compiler/LCNF/PassManager.lean b/src/Lean/Compiler/LCNF/PassManager.lean index 66d1d596f4..86829c2ce0 100644 --- a/src/Lean/Compiler/LCNF/PassManager.lean +++ b/src/Lean/Compiler/LCNF/PassManager.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Henrik Böving. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Henrik Böving -/ +prelude import Lean.Attributes import Lean.Environment import Lean.Meta.Basic diff --git a/src/Lean/Compiler/LCNF/Passes.lean b/src/Lean/Compiler/LCNF/Passes.lean index b4742a6856..1356a0a4b4 100644 --- a/src/Lean/Compiler/LCNF/Passes.lean +++ b/src/Lean/Compiler/LCNF/Passes.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Henrik Böving. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Henrik Böving -/ +prelude import Lean.Compiler.LCNF.PassManager import Lean.Compiler.LCNF.PullLetDecls import Lean.Compiler.LCNF.CSE diff --git a/src/Lean/Compiler/LCNF/PhaseExt.lean b/src/Lean/Compiler/LCNF/PhaseExt.lean index 6b532c8036..2ea9e32b77 100644 --- a/src/Lean/Compiler/LCNF/PhaseExt.lean +++ b/src/Lean/Compiler/LCNF/PhaseExt.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.LCNF.PassManager namespace Lean.Compiler.LCNF diff --git a/src/Lean/Compiler/LCNF/PrettyPrinter.lean b/src/Lean/Compiler/LCNF/PrettyPrinter.lean index 38688001a6..1944853e77 100644 --- a/src/Lean/Compiler/LCNF/PrettyPrinter.lean +++ b/src/Lean/Compiler/LCNF/PrettyPrinter.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.PrettyPrinter import Lean.Compiler.LCNF.CompilerM import Lean.Compiler.LCNF.Internalize diff --git a/src/Lean/Compiler/LCNF/Probing.lean b/src/Lean/Compiler/LCNF/Probing.lean index 8817b5ba44..ad62e695a8 100644 --- a/src/Lean/Compiler/LCNF/Probing.lean +++ b/src/Lean/Compiler/LCNF/Probing.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Henrik Böving. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Henrik Böving -/ +prelude import Lean.Compiler.LCNF.CompilerM import Lean.Compiler.LCNF.PassManager import Lean.Compiler.LCNF.PhaseExt diff --git a/src/Lean/Compiler/LCNF/PullFunDecls.lean b/src/Lean/Compiler/LCNF/PullFunDecls.lean index 3a0be7b8c8..e1162ac6fe 100644 --- a/src/Lean/Compiler/LCNF/PullFunDecls.lean +++ b/src/Lean/Compiler/LCNF/PullFunDecls.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.LCNF.CompilerM import Lean.Compiler.LCNF.DependsOn import Lean.Compiler.LCNF.PassManager diff --git a/src/Lean/Compiler/LCNF/PullLetDecls.lean b/src/Lean/Compiler/LCNF/PullLetDecls.lean index b80174336c..31496f2ae2 100644 --- a/src/Lean/Compiler/LCNF/PullLetDecls.lean +++ b/src/Lean/Compiler/LCNF/PullLetDecls.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.LCNF.CompilerM import Lean.Compiler.LCNF.DependsOn import Lean.Compiler.LCNF.Types diff --git a/src/Lean/Compiler/LCNF/ReduceArity.lean b/src/Lean/Compiler/LCNF/ReduceArity.lean index 4518494b96..f3cf5741bf 100644 --- a/src/Lean/Compiler/LCNF/ReduceArity.lean +++ b/src/Lean/Compiler/LCNF/ReduceArity.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.LCNF.CompilerM import Lean.Compiler.LCNF.PhaseExt import Lean.Compiler.LCNF.InferType diff --git a/src/Lean/Compiler/LCNF/ReduceJpArity.lean b/src/Lean/Compiler/LCNF/ReduceJpArity.lean index 5687267b66..64029163d3 100644 --- a/src/Lean/Compiler/LCNF/ReduceJpArity.lean +++ b/src/Lean/Compiler/LCNF/ReduceJpArity.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.LCNF.CompilerM import Lean.Compiler.LCNF.InferType import Lean.Compiler.LCNF.PassManager diff --git a/src/Lean/Compiler/LCNF/Renaming.lean b/src/Lean/Compiler/LCNF/Renaming.lean index a72181413d..0c3dbc817e 100644 --- a/src/Lean/Compiler/LCNF/Renaming.lean +++ b/src/Lean/Compiler/LCNF/Renaming.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.LCNF.CompilerM namespace Lean.Compiler.LCNF diff --git a/src/Lean/Compiler/LCNF/ScopeM.lean b/src/Lean/Compiler/LCNF/ScopeM.lean index 893af43acd..030122010c 100644 --- a/src/Lean/Compiler/LCNF/ScopeM.lean +++ b/src/Lean/Compiler/LCNF/ScopeM.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Henrik Böving. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Henrik Böving -/ +prelude import Lean.Compiler.LCNF.CompilerM namespace Lean.Compiler.LCNF diff --git a/src/Lean/Compiler/LCNF/Simp.lean b/src/Lean/Compiler/LCNF/Simp.lean index 9679e29548..c9468667ba 100644 --- a/src/Lean/Compiler/LCNF/Simp.lean +++ b/src/Lean/Compiler/LCNF/Simp.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.LCNF.ReduceJpArity import Lean.Compiler.LCNF.Renaming import Lean.Compiler.LCNF.Simp.Basic diff --git a/src/Lean/Compiler/LCNF/Simp/Basic.lean b/src/Lean/Compiler/LCNF/Simp/Basic.lean index d3a6b11f6d..7562f99281 100644 --- a/src/Lean/Compiler/LCNF/Simp/Basic.lean +++ b/src/Lean/Compiler/LCNF/Simp/Basic.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Instances import Lean.Compiler.InlineAttrs import Lean.Compiler.Specialize diff --git a/src/Lean/Compiler/LCNF/Simp/Config.lean b/src/Lean/Compiler/LCNF/Simp/Config.lean index d68c894e1d..833078286f 100644 --- a/src/Lean/Compiler/LCNF/Simp/Config.lean +++ b/src/Lean/Compiler/LCNF/Simp/Config.lean @@ -3,6 +3,8 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude +import Init.Core namespace Lean.Compiler.LCNF namespace Simp diff --git a/src/Lean/Compiler/LCNF/Simp/ConstantFold.lean b/src/Lean/Compiler/LCNF/Simp/ConstantFold.lean index 86d0978813..b950aec8ba 100644 --- a/src/Lean/Compiler/LCNF/Simp/ConstantFold.lean +++ b/src/Lean/Compiler/LCNF/Simp/ConstantFold.lean @@ -3,6 +3,8 @@ Copyright (c) 2022 Henrik Böving. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Henrik Böving -/ +prelude +import Init.Data.UInt.Log2 import Lean.Compiler.LCNF.CompilerM import Lean.Compiler.LCNF.InferType import Lean.Compiler.LCNF.PassManager diff --git a/src/Lean/Compiler/LCNF/Simp/DefaultAlt.lean b/src/Lean/Compiler/LCNF/Simp/DefaultAlt.lean index c279d8cc6d..8b2a6587dd 100644 --- a/src/Lean/Compiler/LCNF/Simp/DefaultAlt.lean +++ b/src/Lean/Compiler/LCNF/Simp/DefaultAlt.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.LCNF.Simp.SimpM namespace Lean.Compiler.LCNF diff --git a/src/Lean/Compiler/LCNF/Simp/DiscrM.lean b/src/Lean/Compiler/LCNF/Simp/DiscrM.lean index 81389b7684..d6cb3f222b 100644 --- a/src/Lean/Compiler/LCNF/Simp/DiscrM.lean +++ b/src/Lean/Compiler/LCNF/Simp/DiscrM.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.LCNF.CompilerM import Lean.Compiler.LCNF.Types import Lean.Compiler.LCNF.InferType diff --git a/src/Lean/Compiler/LCNF/Simp/FunDeclInfo.lean b/src/Lean/Compiler/LCNF/Simp/FunDeclInfo.lean index e572e46b30..68bb61f665 100644 --- a/src/Lean/Compiler/LCNF/Simp/FunDeclInfo.lean +++ b/src/Lean/Compiler/LCNF/Simp/FunDeclInfo.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.LCNF.Simp.Basic namespace Lean.Compiler.LCNF diff --git a/src/Lean/Compiler/LCNF/Simp/InlineCandidate.lean b/src/Lean/Compiler/LCNF/Simp/InlineCandidate.lean index d0c3fa33cf..55a95ffcba 100644 --- a/src/Lean/Compiler/LCNF/Simp/InlineCandidate.lean +++ b/src/Lean/Compiler/LCNF/Simp/InlineCandidate.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.LCNF.Simp.SimpM namespace Lean.Compiler.LCNF diff --git a/src/Lean/Compiler/LCNF/Simp/InlineProj.lean b/src/Lean/Compiler/LCNF/Simp/InlineProj.lean index a771cf7fb5..59851362bc 100644 --- a/src/Lean/Compiler/LCNF/Simp/InlineProj.lean +++ b/src/Lean/Compiler/LCNF/Simp/InlineProj.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.LCNF.Simp.SimpM namespace Lean.Compiler.LCNF diff --git a/src/Lean/Compiler/LCNF/Simp/JpCases.lean b/src/Lean/Compiler/LCNF/Simp/JpCases.lean index 962fb2fc36..5986ba8c37 100644 --- a/src/Lean/Compiler/LCNF/Simp/JpCases.lean +++ b/src/Lean/Compiler/LCNF/Simp/JpCases.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.LCNF.DependsOn import Lean.Compiler.LCNF.InferType import Lean.Compiler.LCNF.Internalize diff --git a/src/Lean/Compiler/LCNF/Simp/Main.lean b/src/Lean/Compiler/LCNF/Simp/Main.lean index 50e43769ae..e95159c424 100644 --- a/src/Lean/Compiler/LCNF/Simp/Main.lean +++ b/src/Lean/Compiler/LCNF/Simp/Main.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.ImplementedByAttr import Lean.Compiler.LCNF.ElimDead import Lean.Compiler.LCNF.AlphaEqv diff --git a/src/Lean/Compiler/LCNF/Simp/SimpM.lean b/src/Lean/Compiler/LCNF/Simp/SimpM.lean index 4deab43c23..6b374e2083 100644 --- a/src/Lean/Compiler/LCNF/Simp/SimpM.lean +++ b/src/Lean/Compiler/LCNF/Simp/SimpM.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.ImplementedByAttr import Lean.Compiler.LCNF.Renaming import Lean.Compiler.LCNF.ElimDead diff --git a/src/Lean/Compiler/LCNF/Simp/SimpValue.lean b/src/Lean/Compiler/LCNF/Simp/SimpValue.lean index 478546a4b3..def573ec04 100644 --- a/src/Lean/Compiler/LCNF/Simp/SimpValue.lean +++ b/src/Lean/Compiler/LCNF/Simp/SimpValue.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.LCNF.Simp.SimpM namespace Lean.Compiler.LCNF diff --git a/src/Lean/Compiler/LCNF/Simp/Used.lean b/src/Lean/Compiler/LCNF/Simp/Used.lean index 31d017fd46..be0c0a7f89 100644 --- a/src/Lean/Compiler/LCNF/Simp/Used.lean +++ b/src/Lean/Compiler/LCNF/Simp/Used.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.LCNF.Simp.SimpM namespace Lean.Compiler.LCNF diff --git a/src/Lean/Compiler/LCNF/SpecInfo.lean b/src/Lean/Compiler/LCNF/SpecInfo.lean index fa6d6e4b03..530ef482d5 100644 --- a/src/Lean/Compiler/LCNF/SpecInfo.lean +++ b/src/Lean/Compiler/LCNF/SpecInfo.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.Specialize import Lean.Compiler.LCNF.FixedParams import Lean.Compiler.LCNF.InferType diff --git a/src/Lean/Compiler/LCNF/Specialize.lean b/src/Lean/Compiler/LCNF/Specialize.lean index c5208b3090..0d6fe385b1 100644 --- a/src/Lean/Compiler/LCNF/Specialize.lean +++ b/src/Lean/Compiler/LCNF/Specialize.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.Specialize import Lean.Compiler.LCNF.Simp import Lean.Compiler.LCNF.SpecInfo diff --git a/src/Lean/Compiler/LCNF/Testing.lean b/src/Lean/Compiler/LCNF/Testing.lean index c866486ee6..929a67c5d4 100644 --- a/src/Lean/Compiler/LCNF/Testing.lean +++ b/src/Lean/Compiler/LCNF/Testing.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Henrik Böving. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Henrik Böving -/ +prelude import Lean.Compiler.LCNF.PassManager import Lean.Compiler.LCNF.PrettyPrinter diff --git a/src/Lean/Compiler/LCNF/ToDecl.lean b/src/Lean/Compiler/LCNF/ToDecl.lean index 0bc2e4a3f5..a8369e8e6f 100644 --- a/src/Lean/Compiler/LCNF/ToDecl.lean +++ b/src/Lean/Compiler/LCNF/ToDecl.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Transform import Lean.Meta.Match.MatcherInfo import Lean.Compiler.ImplementedByAttr diff --git a/src/Lean/Compiler/LCNF/ToExpr.lean b/src/Lean/Compiler/LCNF/ToExpr.lean index 9abc4fb15d..91a11e1041 100644 --- a/src/Lean/Compiler/LCNF/ToExpr.lean +++ b/src/Lean/Compiler/LCNF/ToExpr.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.LCNF.Basic namespace Lean.Compiler.LCNF diff --git a/src/Lean/Compiler/LCNF/ToLCNF.lean b/src/Lean/Compiler/LCNF/ToLCNF.lean index 57229d12ba..219bddec5b 100644 --- a/src/Lean/Compiler/LCNF/ToLCNF.lean +++ b/src/Lean/Compiler/LCNF/ToLCNF.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.ProjFns import Lean.Compiler.BorrowedAnnotation import Lean.Compiler.LCNF.Types diff --git a/src/Lean/Compiler/LCNF/ToMono.lean b/src/Lean/Compiler/LCNF/ToMono.lean index 963aedde5c..1282c35f64 100644 --- a/src/Lean/Compiler/LCNF/ToMono.lean +++ b/src/Lean/Compiler/LCNF/ToMono.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.LCNF.MonoTypes import Lean.Compiler.LCNF.InferType diff --git a/src/Lean/Compiler/LCNF/Types.lean b/src/Lean/Compiler/LCNF/Types.lean index 47e4a9f9de..8a8d2278e7 100644 --- a/src/Lean/Compiler/LCNF/Types.lean +++ b/src/Lean/Compiler/LCNF/Types.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.InferType namespace Lean.Compiler diff --git a/src/Lean/Compiler/LCNF/Util.lean b/src/Lean/Compiler/LCNF/Util.lean index a1c7f82c00..da14ee5d5e 100644 --- a/src/Lean/Compiler/LCNF/Util.lean +++ b/src/Lean/Compiler/LCNF/Util.lean @@ -3,6 +3,8 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude +import Init.Data.FloatArray.Basic import Lean.CoreM import Lean.MonadEnv import Lean.Util.Recognizers diff --git a/src/Lean/Compiler/Main.lean b/src/Lean/Compiler/Main.lean index f022ac9af4..837320a8db 100644 --- a/src/Lean/Compiler/Main.lean +++ b/src/Lean/Compiler/Main.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.LCNF namespace Lean.Compiler diff --git a/src/Lean/Compiler/NameMangling.lean b/src/Lean/Compiler/NameMangling.lean index 80adbb3991..4f799e57a2 100644 --- a/src/Lean/Compiler/NameMangling.lean +++ b/src/Lean/Compiler/NameMangling.lean @@ -3,6 +3,7 @@ Copyright (c) 2018 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura -/ +prelude import Lean.Data.Name namespace String diff --git a/src/Lean/Compiler/NeverExtractAttr.lean b/src/Lean/Compiler/NeverExtractAttr.lean index 7868c72a4c..6b7194c7c8 100644 --- a/src/Lean/Compiler/NeverExtractAttr.lean +++ b/src/Lean/Compiler/NeverExtractAttr.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Environment import Lean.Attributes diff --git a/src/Lean/Compiler/NoncomputableAttr.lean b/src/Lean/Compiler/NoncomputableAttr.lean index ad03125f4d..a572182a4b 100644 --- a/src/Lean/Compiler/NoncomputableAttr.lean +++ b/src/Lean/Compiler/NoncomputableAttr.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Environment namespace Lean diff --git a/src/Lean/Compiler/Old.lean b/src/Lean/Compiler/Old.lean index 628131977e..2ae6cc23b3 100644 --- a/src/Lean/Compiler/Old.lean +++ b/src/Lean/Compiler/Old.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Environment namespace Lean diff --git a/src/Lean/Compiler/Options.lean b/src/Lean/Compiler/Options.lean index 5ec2f8a0e2..f586b53826 100644 --- a/src/Lean/Compiler/Options.lean +++ b/src/Lean/Compiler/Options.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Util.Trace import Lean.Data.Options diff --git a/src/Lean/Compiler/Specialize.lean b/src/Lean/Compiler/Specialize.lean index b27a8c040e..dc17f83b19 100644 --- a/src/Lean/Compiler/Specialize.lean +++ b/src/Lean/Compiler/Specialize.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Basic import Lean.Attributes diff --git a/src/Lean/CoreM.lean b/src/Lean/CoreM.lean index ac5a813437..29d0df0ec7 100644 --- a/src/Lean/CoreM.lean +++ b/src/Lean/CoreM.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Util.RecDepth import Lean.Util.Trace import Lean.Log diff --git a/src/Lean/Data.lean b/src/Lean/Data.lean index 7ff9a08ee5..e1af358c3f 100644 --- a/src/Lean/Data.lean +++ b/src/Lean/Data.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Sebastian Ullrich. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Ullrich -/ +prelude import Lean.Data.AssocList import Lean.Data.Format import Lean.Data.HashMap diff --git a/src/Lean/Data/Array.lean b/src/Lean/Data/Array.lean index 6af40d7e8a..7c89fab45e 100644 --- a/src/Lean/Data/Array.lean +++ b/src/Lean/Data/Array.lean @@ -3,8 +3,8 @@ Copyright (c) 2023 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Joachim Breitner -/ - -import Init.Data.Array +prelude +import Init.Data.Range namespace Array diff --git a/src/Lean/Data/AssocList.lean b/src/Lean/Data/AssocList.lean index 15f0a14c6f..751c755373 100644 --- a/src/Lean/Data/AssocList.lean +++ b/src/Lean/Data/AssocList.lean @@ -3,6 +3,9 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura -/ +prelude +import Init.Control.Id +import Init.Data.List.Basic universe u v w w' namespace Lean diff --git a/src/Lean/Data/Format.lean b/src/Lean/Data/Format.lean index ebc31b72e1..3b9e1dddb7 100644 --- a/src/Lean/Data/Format.lean +++ b/src/Lean/Data/Format.lean @@ -3,6 +3,7 @@ Copyright (c) 2018 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura -/ +prelude import Lean.Data.Options universe u v diff --git a/src/Lean/Data/FuzzyMatching.lean b/src/Lean/Data/FuzzyMatching.lean index 2bc6f96dcf..1ee2cd7ea9 100644 --- a/src/Lean/Data/FuzzyMatching.lean +++ b/src/Lean/Data/FuzzyMatching.lean @@ -8,6 +8,9 @@ used in LLVM with some modifications. The LLVM algorithm itself is based on VS code's client side filtering algorithm. For the LLVM implementation see https://clang.llvm.org/extra//doxygen/FuzzyMatch_8cpp_source.html -/ +prelude +import Init.Data.Range +import Init.Data.OfScientific namespace Lean namespace FuzzyMatching diff --git a/src/Lean/Data/HashMap.lean b/src/Lean/Data/HashMap.lean index 4ff2087f5c..7e7dc52344 100644 --- a/src/Lean/Data/HashMap.lean +++ b/src/Lean/Data/HashMap.lean @@ -3,6 +3,8 @@ Copyright (c) 2018 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura -/ +prelude +import Init.Data.Nat.Power2 import Lean.Data.AssocList namespace Lean diff --git a/src/Lean/Data/HashSet.lean b/src/Lean/Data/HashSet.lean index c528dddbe0..5bf16b14f7 100644 --- a/src/Lean/Data/HashSet.lean +++ b/src/Lean/Data/HashSet.lean @@ -3,6 +3,9 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura -/ +prelude +import Init.Data.Nat.Power2 +import Init.Data.List.Control namespace Lean universe u v w diff --git a/src/Lean/Data/Json.lean b/src/Lean/Data/Json.lean index 953013a023..68e5015078 100644 --- a/src/Lean/Data/Json.lean +++ b/src/Lean/Data/Json.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Gabriel Ebner, Marc Huisinga -/ +prelude import Lean.Data.Json.Stream import Lean.Data.Json.Printer import Lean.Data.Json.Parser diff --git a/src/Lean/Data/Json/Basic.lean b/src/Lean/Data/Json/Basic.lean index fc2f7949df..e4bf4a2be7 100644 --- a/src/Lean/Data/Json/Basic.lean +++ b/src/Lean/Data/Json/Basic.lean @@ -4,7 +4,11 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Gabriel Ebner, Marc Huisinga -/ -import Lean.Data.RBTree +prelude +import Init.Data.List.Control +import Init.Data.Range +import Init.Data.OfScientific +import Lean.Data.RBMap namespace Lean -- mantissa * 10^-exponent diff --git a/src/Lean/Data/Json/Elab.lean b/src/Lean/Data/Json/Elab.lean index 87df1f9e79..957c4c7522 100644 --- a/src/Lean/Data/Json/Elab.lean +++ b/src/Lean/Data/Json/Elab.lean @@ -3,6 +3,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: E.W.Ayers, Wojciech Nawrocki -/ +prelude import Lean.Data.Json.FromToJson import Lean.Syntax diff --git a/src/Lean/Data/Json/FromToJson.lean b/src/Lean/Data/Json/FromToJson.lean index 6b47212aef..1cfbe06ffa 100644 --- a/src/Lean/Data/Json/FromToJson.lean +++ b/src/Lean/Data/Json/FromToJson.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Gabriel Ebner, Marc Huisinga -/ +prelude import Lean.Data.Json.Basic import Lean.Data.Json.Printer diff --git a/src/Lean/Data/Json/Parser.lean b/src/Lean/Data/Json/Parser.lean index aa4bbc1269..05ee8519f2 100644 --- a/src/Lean/Data/Json/Parser.lean +++ b/src/Lean/Data/Json/Parser.lean @@ -4,8 +4,10 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Gabriel Ebner, Marc Huisinga -/ +prelude import Lean.Data.Json.Basic import Lean.Data.Parsec +import Lean.Data.RBMap namespace Lean.Json.Parser diff --git a/src/Lean/Data/Json/Printer.lean b/src/Lean/Data/Json/Printer.lean index 8bc9ab0837..dbbda2d1f2 100644 --- a/src/Lean/Data/Json/Printer.lean +++ b/src/Lean/Data/Json/Printer.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Gabriel Ebner. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Gabriel Ebner, Marc Huisinga, Wojciech Nawrocki -/ +prelude import Lean.Data.Format import Lean.Data.Json.Basic diff --git a/src/Lean/Data/Json/Stream.lean b/src/Lean/Data/Json/Stream.lean index e5edb71383..080d4274fa 100644 --- a/src/Lean/Data/Json/Stream.lean +++ b/src/Lean/Data/Json/Stream.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Marc Huisinga -/ +prelude import Init.System.IO import Lean.Data.Json.Parser import Lean.Data.Json.Printer diff --git a/src/Lean/Data/JsonRpc.lean b/src/Lean/Data/JsonRpc.lean index d0bba7fee3..832b1374f7 100644 --- a/src/Lean/Data/JsonRpc.lean +++ b/src/Lean/Data/JsonRpc.lean @@ -4,7 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Marc Huisinga, Wojciech Nawrocki -/ -import Init.Control +prelude import Init.System.IO import Lean.Data.RBTree import Lean.Data.Json diff --git a/src/Lean/Data/KVMap.lean b/src/Lean/Data/KVMap.lean index d9107b1958..63d534acd9 100644 --- a/src/Lean/Data/KVMap.lean +++ b/src/Lean/Data/KVMap.lean @@ -3,7 +3,9 @@ Copyright (c) 2018 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ -import Lean.Data.Name +prelude +import Init.Data.List.Control +import Init.Data.Format.Syntax namespace Lean diff --git a/src/Lean/Data/LBool.lean b/src/Lean/Data/LBool.lean index 978a0606f8..aceb1d574f 100644 --- a/src/Lean/Data/LBool.lean +++ b/src/Lean/Data/LBool.lean @@ -3,6 +3,8 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude +import Init.Data.ToString.Basic namespace Lean diff --git a/src/Lean/Data/LOption.lean b/src/Lean/Data/LOption.lean index 9534ae184f..17bf5cd7a9 100644 --- a/src/Lean/Data/LOption.lean +++ b/src/Lean/Data/LOption.lean @@ -3,6 +3,8 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude +import Init.Data.ToString.Basic universe u namespace Lean diff --git a/src/Lean/Data/Lsp.lean b/src/Lean/Data/Lsp.lean index a7d643b3cf..441d4e82fc 100644 --- a/src/Lean/Data/Lsp.lean +++ b/src/Lean/Data/Lsp.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Marc Huisinga, Wojciech Nawrocki -/ +prelude import Lean.Data.Lsp.Basic import Lean.Data.Lsp.Capabilities import Lean.Data.Lsp.Client diff --git a/src/Lean/Data/Lsp/Basic.lean b/src/Lean/Data/Lsp/Basic.lean index 5cef48565a..354152db9c 100644 --- a/src/Lean/Data/Lsp/Basic.lean +++ b/src/Lean/Data/Lsp/Basic.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Marc Huisinga, Wojciech Nawrocki -/ +prelude import Lean.Data.Json import Lean.Data.JsonRpc diff --git a/src/Lean/Data/Lsp/Capabilities.lean b/src/Lean/Data/Lsp/Capabilities.lean index 02e5e94f6e..d4eb3c4409 100644 --- a/src/Lean/Data/Lsp/Capabilities.lean +++ b/src/Lean/Data/Lsp/Capabilities.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Marc Huisinga, Wojciech Nawrocki -/ +prelude import Lean.Data.JsonRpc import Lean.Data.Lsp.TextSync import Lean.Data.Lsp.LanguageFeatures diff --git a/src/Lean/Data/Lsp/Client.lean b/src/Lean/Data/Lsp/Client.lean index 4ac80a6e0e..4b4255c1b0 100644 --- a/src/Lean/Data/Lsp/Client.lean +++ b/src/Lean/Data/Lsp/Client.lean @@ -4,7 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Joscha Mennicken -/ - +prelude import Lean.Data.Lsp.Basic import Lean.Data.Json diff --git a/src/Lean/Data/Lsp/CodeActions.lean b/src/Lean/Data/Lsp/CodeActions.lean index 6b4c97e685..bc075ba47d 100644 --- a/src/Lean/Data/Lsp/CodeActions.lean +++ b/src/Lean/Data/Lsp/CodeActions.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: E.W.Ayers -/ +prelude import Lean.Data.Json import Lean.Data.Lsp.Basic import Lean.Data.Lsp.Diagnostics diff --git a/src/Lean/Data/Lsp/Communication.lean b/src/Lean/Data/Lsp/Communication.lean index 1b599e19a7..638bbd96a1 100644 --- a/src/Lean/Data/Lsp/Communication.lean +++ b/src/Lean/Data/Lsp/Communication.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Marc Huisinga, Wojciech Nawrocki -/ +prelude import Init.System.IO import Lean.Data.JsonRpc diff --git a/src/Lean/Data/Lsp/Diagnostics.lean b/src/Lean/Data/Lsp/Diagnostics.lean index 43bcca9fb3..203ca7ecce 100644 --- a/src/Lean/Data/Lsp/Diagnostics.lean +++ b/src/Lean/Data/Lsp/Diagnostics.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Marc Huisinga, Wojciech Nawrocki -/ +prelude import Lean.Data.Json import Lean.Data.Lsp.Basic import Lean.Data.Lsp.Utf16 diff --git a/src/Lean/Data/Lsp/Extra.lean b/src/Lean/Data/Lsp/Extra.lean index 8fb8f0d874..87f281a127 100644 --- a/src/Lean/Data/Lsp/Extra.lean +++ b/src/Lean/Data/Lsp/Extra.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Marc Huisinga, Wojciech Nawrocki -/ +prelude import Lean.Data.Lsp.Basic import Lean.Data.Lsp.TextSync import Lean.Server.Rpc.Basic diff --git a/src/Lean/Data/Lsp/InitShutdown.lean b/src/Lean/Data/Lsp/InitShutdown.lean index ad1eea912c..f4ee3c9ca6 100644 --- a/src/Lean/Data/Lsp/InitShutdown.lean +++ b/src/Lean/Data/Lsp/InitShutdown.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Marc Huisinga, Wojciech Nawrocki -/ +prelude import Lean.Data.Lsp.Capabilities import Lean.Data.Lsp.Workspace import Lean.Data.Json diff --git a/src/Lean/Data/Lsp/Internal.lean b/src/Lean/Data/Lsp/Internal.lean index 0112a6ead0..5452034f71 100644 --- a/src/Lean/Data/Lsp/Internal.lean +++ b/src/Lean/Data/Lsp/Internal.lean @@ -4,7 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Joscha Mennicken -/ - +prelude import Lean.Expr import Lean.Data.Lsp.Basic diff --git a/src/Lean/Data/Lsp/Ipc.lean b/src/Lean/Data/Lsp/Ipc.lean index c6580ede71..729387535b 100644 --- a/src/Lean/Data/Lsp/Ipc.lean +++ b/src/Lean/Data/Lsp/Ipc.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Marc Huisinga, Wojciech Nawrocki -/ +prelude import Init.System.IO import Lean.Data.Json import Lean.Data.Lsp.Communication diff --git a/src/Lean/Data/Lsp/LanguageFeatures.lean b/src/Lean/Data/Lsp/LanguageFeatures.lean index cf66da7d52..ab1c6602ec 100644 --- a/src/Lean/Data/Lsp/LanguageFeatures.lean +++ b/src/Lean/Data/Lsp/LanguageFeatures.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Wojciech Nawrocki -/ +prelude import Lean.Data.Json import Lean.Data.Lsp.Basic diff --git a/src/Lean/Data/Lsp/TextSync.lean b/src/Lean/Data/Lsp/TextSync.lean index 96b796d8b7..27ab784799 100644 --- a/src/Lean/Data/Lsp/TextSync.lean +++ b/src/Lean/Data/Lsp/TextSync.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Marc Huisinga, Wojciech Nawrocki -/ +prelude import Lean.Data.Json import Lean.Data.Lsp.Basic diff --git a/src/Lean/Data/Lsp/Utf16.lean b/src/Lean/Data/Lsp/Utf16.lean index 49a4c87323..460aca489c 100644 --- a/src/Lean/Data/Lsp/Utf16.lean +++ b/src/Lean/Data/Lsp/Utf16.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Marc Huisinga, Wojciech Nawrocki -/ +prelude import Init.Data.String import Init.Data.Array import Lean.Data.Lsp.Basic diff --git a/src/Lean/Data/Lsp/Workspace.lean b/src/Lean/Data/Lsp/Workspace.lean index 3ec4f3f1ed..1a1484cc44 100644 --- a/src/Lean/Data/Lsp/Workspace.lean +++ b/src/Lean/Data/Lsp/Workspace.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Wojciech Nawrocki -/ +prelude import Lean.Data.Lsp.Basic import Lean.Data.Json diff --git a/src/Lean/Data/Name.lean b/src/Lean/Data/Name.lean index f31da9b767..f095a22d71 100644 --- a/src/Lean/Data/Name.lean +++ b/src/Lean/Data/Name.lean @@ -3,6 +3,8 @@ Copyright (c) 2018 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura -/ +prelude +import Init.Data.Ord namespace Lean instance : Coe String Name := ⟨Name.mkSimple⟩ diff --git a/src/Lean/Data/NameMap.lean b/src/Lean/Data/NameMap.lean index 4fb27f5ed1..84cc3a6828 100644 --- a/src/Lean/Data/NameMap.lean +++ b/src/Lean/Data/NameMap.lean @@ -3,6 +3,7 @@ Copyright (c) 2018 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura -/ +prelude import Lean.Data.HashSet import Lean.Data.RBMap import Lean.Data.RBTree diff --git a/src/Lean/Data/NameTrie.lean b/src/Lean/Data/NameTrie.lean index 7bc88ca02b..9098b191f3 100644 --- a/src/Lean/Data/NameTrie.lean +++ b/src/Lean/Data/NameTrie.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Data.PrefixTree namespace Lean diff --git a/src/Lean/Data/OpenDecl.lean b/src/Lean/Data/OpenDecl.lean index f6c0d0b262..ea197aafdf 100644 --- a/src/Lean/Data/OpenDecl.lean +++ b/src/Lean/Data/OpenDecl.lean @@ -3,7 +3,8 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ -import Lean.Data.Name +prelude +import Init.Meta namespace Lean diff --git a/src/Lean/Data/Options.lean b/src/Lean/Data/Options.lean index 0b6525a24a..e8d7dd2278 100644 --- a/src/Lean/Data/Options.lean +++ b/src/Lean/Data/Options.lean @@ -3,6 +3,7 @@ Copyright (c) 2018 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Ullrich and Leonardo de Moura -/ +prelude import Lean.ImportingFlag import Lean.Data.KVMap import Lean.Data.NameMap diff --git a/src/Lean/Data/Parsec.lean b/src/Lean/Data/Parsec.lean index 29eaaaa4c7..3442edb8fc 100644 --- a/src/Lean/Data/Parsec.lean +++ b/src/Lean/Data/Parsec.lean @@ -3,6 +3,9 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Dany Fabian -/ +prelude +import Init.NotationExtra +import Init.Data.ToString.Basic namespace Lean diff --git a/src/Lean/Data/PersistentArray.lean b/src/Lean/Data/PersistentArray.lean index 995a80e9a9..41811a4932 100644 --- a/src/Lean/Data/PersistentArray.lean +++ b/src/Lean/Data/PersistentArray.lean @@ -3,6 +3,10 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude +import Init.Data.Array.Basic +import Init.NotationExtra + universe u v w namespace Lean diff --git a/src/Lean/Data/PersistentHashMap.lean b/src/Lean/Data/PersistentHashMap.lean index 0701b41686..1ad9845299 100644 --- a/src/Lean/Data/PersistentHashMap.lean +++ b/src/Lean/Data/PersistentHashMap.lean @@ -3,6 +3,9 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude +import Init.Data.Array.BasicAux + namespace Lean universe u v w w' diff --git a/src/Lean/Data/PersistentHashSet.lean b/src/Lean/Data/PersistentHashSet.lean index 0cbcfacb07..63deda7b2b 100644 --- a/src/Lean/Data/PersistentHashSet.lean +++ b/src/Lean/Data/PersistentHashSet.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura -/ +prelude import Lean.Data.PersistentHashMap namespace Lean diff --git a/src/Lean/Data/Position.lean b/src/Lean/Data/Position.lean index 73780c72c8..9836f3cbf5 100644 --- a/src/Lean/Data/Position.lean +++ b/src/Lean/Data/Position.lean @@ -3,6 +3,7 @@ Copyright (c) 2018 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich -/ +prelude import Lean.Data.Format import Lean.ToExpr diff --git a/src/Lean/Data/PrefixTree.lean b/src/Lean/Data/PrefixTree.lean index a5088b8c6f..33396e47bf 100644 --- a/src/Lean/Data/PrefixTree.lean +++ b/src/Lean/Data/PrefixTree.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Data.RBMap namespace Lean diff --git a/src/Lean/Data/RBMap.lean b/src/Lean/Data/RBMap.lean index 3051c17349..378b614722 100644 --- a/src/Lean/Data/RBMap.lean +++ b/src/Lean/Data/RBMap.lean @@ -3,6 +3,8 @@ Copyright (c) 2017 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude +import Init.Data.Ord namespace Lean universe u v w w' diff --git a/src/Lean/Data/RBTree.lean b/src/Lean/Data/RBTree.lean index 3bcd15f477..a2fde26f33 100644 --- a/src/Lean/Data/RBTree.lean +++ b/src/Lean/Data/RBTree.lean @@ -3,6 +3,7 @@ Copyright (c) 2017 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Data.RBMap namespace Lean universe u v w diff --git a/src/Lean/Data/Rat.lean b/src/Lean/Data/Rat.lean index 5f22887f92..6b3eef9503 100644 --- a/src/Lean/Data/Rat.lean +++ b/src/Lean/Data/Rat.lean @@ -3,6 +3,11 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude +import Init.NotationExtra +import Init.Data.ToString.Basic +import Init.Data.Int.DivMod +import Init.Data.Nat.Gcd namespace Lean /-! diff --git a/src/Lean/Data/SMap.lean b/src/Lean/Data/SMap.lean index d8b34a56f1..f7fa7fffca 100644 --- a/src/Lean/Data/SMap.lean +++ b/src/Lean/Data/SMap.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Data.HashMap import Lean.Data.PersistentHashMap universe u v w w' diff --git a/src/Lean/Data/SSet.lean b/src/Lean/Data/SSet.lean index 578340f864..9a12c550a6 100644 --- a/src/Lean/Data/SSet.lean +++ b/src/Lean/Data/SSet.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Data.SMap namespace Lean diff --git a/src/Lean/Data/Trie.lean b/src/Lean/Data/Trie.lean index 0756c3269d..f44d583830 100644 --- a/src/Lean/Data/Trie.lean +++ b/src/Lean/Data/Trie.lean @@ -5,6 +5,7 @@ Author: Sebastian Ullrich, Leonardo de Moura, Joachim Breitner A string trie data structure, used for tokenizing the Lean language -/ +prelude import Lean.Data.Format namespace Lean diff --git a/src/Lean/Data/Xml.lean b/src/Lean/Data/Xml.lean index 8c6ad55a2f..c91eb088f8 100644 --- a/src/Lean/Data/Xml.lean +++ b/src/Lean/Data/Xml.lean @@ -1,2 +1,3 @@ +prelude import Lean.Data.Xml.Basic import Lean.Data.Xml.Parser diff --git a/src/Lean/Data/Xml/Basic.lean b/src/Lean/Data/Xml/Basic.lean index 191251d4ca..a3bc48fad6 100644 --- a/src/Lean/Data/Xml/Basic.lean +++ b/src/Lean/Data/Xml/Basic.lean @@ -4,7 +4,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Dany Fabian -/ - +prelude import Lean.Data.RBMap namespace Lean namespace Xml diff --git a/src/Lean/Data/Xml/Parser.lean b/src/Lean/Data/Xml/Parser.lean index 7b8d5b0a8f..5590764b20 100644 --- a/src/Lean/Data/Xml/Parser.lean +++ b/src/Lean/Data/Xml/Parser.lean @@ -3,10 +3,9 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Dany Fabian -/ - +prelude import Lean.Data.Parsec import Lean.Data.Xml.Basic -open IO open System open Lean diff --git a/src/Lean/Declaration.lean b/src/Lean/Declaration.lean index ad70c0f441..6bfca6ab00 100644 --- a/src/Lean/Declaration.lean +++ b/src/Lean/Declaration.lean @@ -3,6 +3,7 @@ Copyright (c) 2018 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Expr namespace Lean diff --git a/src/Lean/DeclarationRange.lean b/src/Lean/DeclarationRange.lean index 7e0c2a099a..ebd2e3f7db 100644 --- a/src/Lean/DeclarationRange.lean +++ b/src/Lean/DeclarationRange.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.MonadEnv import Lean.AuxRecursor import Lean.ToExpr diff --git a/src/Lean/DocString.lean b/src/Lean/DocString.lean index 5bc5c76f0c..d555f921b1 100644 --- a/src/Lean/DocString.lean +++ b/src/Lean/DocString.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.DeclarationRange import Lean.MonadEnv diff --git a/src/Lean/Elab.lean b/src/Lean/Elab.lean index 63542fa2c0..eeca035b8f 100644 --- a/src/Lean/Elab.lean +++ b/src/Lean/Elab.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Elab.Import import Lean.Elab.Exception import Lean.Elab.Config diff --git a/src/Lean/Elab/App.lean b/src/Lean/Elab/App.lean index aa0e473205..154fbdef55 100644 --- a/src/Lean/Elab/App.lean +++ b/src/Lean/Elab/App.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Util.FindMVar import Lean.Parser.Term import Lean.Meta.KAbstract diff --git a/src/Lean/Elab/Arg.lean b/src/Lean/Elab/Arg.lean index a0ebb526c5..81fd73ec9d 100644 --- a/src/Lean/Elab/Arg.lean +++ b/src/Lean/Elab/Arg.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Elab.Term namespace Lean.Elab.Term diff --git a/src/Lean/Elab/Attributes.lean b/src/Lean/Elab/Attributes.lean index 4bb6f0247f..50af639240 100644 --- a/src/Lean/Elab/Attributes.lean +++ b/src/Lean/Elab/Attributes.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich -/ +prelude import Lean.Elab.Util namespace Lean.Elab diff --git a/src/Lean/Elab/AutoBound.lean b/src/Lean/Elab/AutoBound.lean index 0aa66e3a5f..41d4e51625 100644 --- a/src/Lean/Elab/AutoBound.lean +++ b/src/Lean/Elab/AutoBound.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Data.Options /-! # Basic support for auto bound implicit local names -/ diff --git a/src/Lean/Elab/AuxDef.lean b/src/Lean/Elab/AuxDef.lean index bb8984e523..3dd1270096 100644 --- a/src/Lean/Elab/AuxDef.lean +++ b/src/Lean/Elab/AuxDef.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Gabriel Ebner -/ +prelude import Lean.Elab.Command namespace Lean.Elab.Command diff --git a/src/Lean/Elab/BinderPredicates.lean b/src/Lean/Elab/BinderPredicates.lean index 9a50ce1608..6781e610e8 100644 --- a/src/Lean/Elab/BinderPredicates.lean +++ b/src/Lean/Elab/BinderPredicates.lean @@ -3,6 +3,8 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Gabriel Ebner -/ +prelude +import Init.BinderPredicates import Lean.Parser.Syntax import Lean.Elab.MacroArgUtil import Lean.Linter.MissingDocs diff --git a/src/Lean/Elab/Binders.lean b/src/Lean/Elab/Binders.lean index 8895d18c87..ae6974b838 100644 --- a/src/Lean/Elab/Binders.lean +++ b/src/Lean/Elab/Binders.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Elab.Quotation.Precheck import Lean.Elab.Term import Lean.Elab.BindersUtil diff --git a/src/Lean/Elab/BindersUtil.lean b/src/Lean/Elab/BindersUtil.lean index dbf97fe1db..1fabc4e143 100644 --- a/src/Lean/Elab/BindersUtil.lean +++ b/src/Lean/Elab/BindersUtil.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Parser.Term namespace Lean.Elab.Term diff --git a/src/Lean/Elab/BuiltinCommand.lean b/src/Lean/Elab/BuiltinCommand.lean index ab5213a54d..4c052b138d 100644 --- a/src/Lean/Elab/BuiltinCommand.lean +++ b/src/Lean/Elab/BuiltinCommand.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Util.CollectLevelParams import Lean.Meta.Reduce import Lean.Elab.DeclarationRange diff --git a/src/Lean/Elab/BuiltinNotation.lean b/src/Lean/Elab/BuiltinNotation.lean index b94046e20b..6edf9ad042 100644 --- a/src/Lean/Elab/BuiltinNotation.lean +++ b/src/Lean/Elab/BuiltinNotation.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Gabriel Ebner -/ +prelude import Lean.Compiler.BorrowedAnnotation import Lean.Meta.KAbstract import Lean.Meta.Closure diff --git a/src/Lean/Elab/BuiltinTerm.lean b/src/Lean/Elab/BuiltinTerm.lean index 31516619b0..64913174fd 100644 --- a/src/Lean/Elab/BuiltinTerm.lean +++ b/src/Lean/Elab/BuiltinTerm.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Elab.Open import Lean.Elab.SetOption import Lean.Elab.Eval diff --git a/src/Lean/Elab/Calc.lean b/src/Lean/Elab/Calc.lean index 0a33a18cb8..11d6319c10 100644 --- a/src/Lean/Elab/Calc.lean +++ b/src/Lean/Elab/Calc.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Elab.App namespace Lean.Elab.Term diff --git a/src/Lean/Elab/Command.lean b/src/Lean/Elab/Command.lean index dd72d37f8d..96b13e772d 100644 --- a/src/Lean/Elab/Command.lean +++ b/src/Lean/Elab/Command.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Gabriel Ebner -/ +prelude import Lean.Elab.Binders import Lean.Elab.SyntheticMVars import Lean.Elab.SetOption diff --git a/src/Lean/Elab/ComputedFields.lean b/src/Lean/Elab/ComputedFields.lean index 2019d83ee1..7f9c30b2d0 100644 --- a/src/Lean/Elab/ComputedFields.lean +++ b/src/Lean/Elab/ComputedFields.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Gabriel Ebner -/ +prelude import Lean.Meta.Constructions import Lean.Compiler.ImplementedByAttr import Lean.Elab.PreDefinition.WF.Eqns diff --git a/src/Lean/Elab/Config.lean b/src/Lean/Elab/Config.lean index f7ad2d85ca..ad643f215f 100644 --- a/src/Lean/Elab/Config.lean +++ b/src/Lean/Elab/Config.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Basic namespace Lean.Elab.Term diff --git a/src/Lean/Elab/DeclModifiers.lean b/src/Lean/Elab/DeclModifiers.lean index 2a76ef5424..31fc18ebf8 100644 --- a/src/Lean/Elab/DeclModifiers.lean +++ b/src/Lean/Elab/DeclModifiers.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich -/ +prelude import Lean.Structure import Lean.Elab.Attributes diff --git a/src/Lean/Elab/DeclUtil.lean b/src/Lean/Elab/DeclUtil.lean index 0347b80b28..9b5025ad41 100644 --- a/src/Lean/Elab/DeclUtil.lean +++ b/src/Lean/Elab/DeclUtil.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich -/ +prelude import Lean.Meta.Basic import Lean.Meta.Check diff --git a/src/Lean/Elab/Declaration.lean b/src/Lean/Elab/Declaration.lean index 2a6d6ff6f9..931c4674bb 100644 --- a/src/Lean/Elab/Declaration.lean +++ b/src/Lean/Elab/Declaration.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich -/ +prelude import Lean.Util.CollectLevelParams import Lean.Elab.DeclUtil import Lean.Elab.DefView diff --git a/src/Lean/Elab/DeclarationRange.lean b/src/Lean/Elab/DeclarationRange.lean index 792879cc55..6d6b39e5ee 100644 --- a/src/Lean/Elab/DeclarationRange.lean +++ b/src/Lean/Elab/DeclarationRange.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Log import Lean.Parser.Command import Lean.DeclarationRange diff --git a/src/Lean/Elab/DefView.lean b/src/Lean/Elab/DefView.lean index 4d40561c95..246b9987f7 100644 --- a/src/Lean/Elab/DefView.lean +++ b/src/Lean/Elab/DefView.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich -/ +prelude import Lean.Meta.ForEachExpr import Lean.Elab.Command import Lean.Elab.DeclUtil diff --git a/src/Lean/Elab/Deriving.lean b/src/Lean/Elab/Deriving.lean index 026fd7b145..d6b9aef028 100644 --- a/src/Lean/Elab/Deriving.lean +++ b/src/Lean/Elab/Deriving.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Elab.Deriving.Basic import Lean.Elab.Deriving.Util import Lean.Elab.Deriving.Inhabited diff --git a/src/Lean/Elab/Deriving/BEq.lean b/src/Lean/Elab/Deriving/BEq.lean index ab9aca093b..c3c8c0b9f4 100644 --- a/src/Lean/Elab/Deriving/BEq.lean +++ b/src/Lean/Elab/Deriving/BEq.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Transform import Lean.Elab.Deriving.Basic import Lean.Elab.Deriving.Util diff --git a/src/Lean/Elab/Deriving/Basic.lean b/src/Lean/Elab/Deriving/Basic.lean index 6fd387d5df..b8d093309a 100644 --- a/src/Lean/Elab/Deriving/Basic.lean +++ b/src/Lean/Elab/Deriving/Basic.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Wojciech Nawrocki -/ +prelude import Lean.Elab.Command namespace Lean.Elab diff --git a/src/Lean/Elab/Deriving/DecEq.lean b/src/Lean/Elab/Deriving/DecEq.lean index d2ab52bce9..5d9075471c 100644 --- a/src/Lean/Elab/Deriving/DecEq.lean +++ b/src/Lean/Elab/Deriving/DecEq.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Transform import Lean.Meta.Inductive import Lean.Elab.Deriving.Basic diff --git a/src/Lean/Elab/Deriving/FromToJson.lean b/src/Lean/Elab/Deriving/FromToJson.lean index c91dd4e234..2f8f2ce5f8 100644 --- a/src/Lean/Elab/Deriving/FromToJson.lean +++ b/src/Lean/Elab/Deriving/FromToJson.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Sebastian Ullrich. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Ullrich, Dany Fabian -/ +prelude import Lean.Meta.Transform import Lean.Elab.Deriving.Basic import Lean.Elab.Deriving.Util diff --git a/src/Lean/Elab/Deriving/Hashable.lean b/src/Lean/Elab/Deriving/Hashable.lean index e6b4612178..be7c5ee1d8 100644 --- a/src/Lean/Elab/Deriving/Hashable.lean +++ b/src/Lean/Elab/Deriving/Hashable.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Dany Fabian -/ +prelude import Lean.Meta.Inductive import Lean.Elab.Deriving.Basic import Lean.Elab.Deriving.Util diff --git a/src/Lean/Elab/Deriving/Inhabited.lean b/src/Lean/Elab/Deriving/Inhabited.lean index 90a5956a5d..61b786e174 100644 --- a/src/Lean/Elab/Deriving/Inhabited.lean +++ b/src/Lean/Elab/Deriving/Inhabited.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Util.ForEachExprWhere import Lean.Elab.Deriving.Basic diff --git a/src/Lean/Elab/Deriving/Nonempty.lean b/src/Lean/Elab/Deriving/Nonempty.lean index 735193b7ae..d371733656 100644 --- a/src/Lean/Elab/Deriving/Nonempty.lean +++ b/src/Lean/Elab/Deriving/Nonempty.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Gabriel Ebner -/ +prelude import Lean.Elab.Deriving.Basic namespace Lean.Elab diff --git a/src/Lean/Elab/Deriving/Ord.lean b/src/Lean/Elab/Deriving/Ord.lean index 5b239e9ad3..47a4bcfc1e 100644 --- a/src/Lean/Elab/Deriving/Ord.lean +++ b/src/Lean/Elab/Deriving/Ord.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Dany Fabian -/ +prelude import Lean.Meta.Transform import Lean.Elab.Deriving.Basic import Lean.Elab.Deriving.Util diff --git a/src/Lean/Elab/Deriving/Repr.lean b/src/Lean/Elab/Deriving/Repr.lean index 871e6be3f1..425d8772ef 100644 --- a/src/Lean/Elab/Deriving/Repr.lean +++ b/src/Lean/Elab/Deriving/Repr.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Transform import Lean.Meta.Inductive import Lean.Elab.Deriving.Basic diff --git a/src/Lean/Elab/Deriving/SizeOf.lean b/src/Lean/Elab/Deriving/SizeOf.lean index e082f8869b..8c5057ed40 100644 --- a/src/Lean/Elab/Deriving/SizeOf.lean +++ b/src/Lean/Elab/Deriving/SizeOf.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.SizeOf import Lean.Elab.Deriving.Basic diff --git a/src/Lean/Elab/Deriving/TypeName.lean b/src/Lean/Elab/Deriving/TypeName.lean index 2253090f6f..671ddad102 100644 --- a/src/Lean/Elab/Deriving/TypeName.lean +++ b/src/Lean/Elab/Deriving/TypeName.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Gabriel Ebner -/ +prelude import Lean.Elab.Deriving.Basic namespace Lean.Elab diff --git a/src/Lean/Elab/Deriving/Util.lean b/src/Lean/Elab/Deriving/Util.lean index 009dd21404..03f7eecae2 100644 --- a/src/Lean/Elab/Deriving/Util.lean +++ b/src/Lean/Elab/Deriving/Util.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Parser.Term import Lean.Elab.Term diff --git a/src/Lean/Elab/Do.lean b/src/Lean/Elab/Do.lean index a81dd14afb..333b548653 100644 --- a/src/Lean/Elab/Do.lean +++ b/src/Lean/Elab/Do.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Elab.Term import Lean.Elab.BindersUtil import Lean.Elab.PatternVar diff --git a/src/Lean/Elab/ElabRules.lean b/src/Lean/Elab/ElabRules.lean index 135393ef67..d10066ce02 100644 --- a/src/Lean/Elab/ElabRules.lean +++ b/src/Lean/Elab/ElabRules.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Elab.MacroArgUtil import Lean.Elab.AuxDef diff --git a/src/Lean/Elab/Eval.lean b/src/Lean/Elab/Eval.lean index 6876cf88c2..747acfe519 100644 --- a/src/Lean/Elab/Eval.lean +++ b/src/Lean/Elab/Eval.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Sebastian Ullrich. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Ullrich -/ +prelude import Lean.Meta.Eval import Lean.Elab.SyntheticMVars diff --git a/src/Lean/Elab/Exception.lean b/src/Lean/Elab/Exception.lean index 39f49037cc..518915864e 100644 --- a/src/Lean/Elab/Exception.lean +++ b/src/Lean/Elab/Exception.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.InternalExceptionId import Lean.Meta.Basic diff --git a/src/Lean/Elab/Extra.lean b/src/Lean/Elab/Extra.lean index d102a21772..73450fbc83 100644 --- a/src/Lean/Elab/Extra.lean +++ b/src/Lean/Elab/Extra.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Kyle Miller, Sebastian Ullrich -/ +prelude import Lean.Elab.App import Lean.Elab.BuiltinNotation diff --git a/src/Lean/Elab/Frontend.lean b/src/Lean/Elab/Frontend.lean index 79bd136585..27283c89a9 100644 --- a/src/Lean/Elab/Frontend.lean +++ b/src/Lean/Elab/Frontend.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich -/ +prelude import Lean.Elab.Import import Lean.Elab.Command import Lean.Util.Profile diff --git a/src/Lean/Elab/GenInjective.lean b/src/Lean/Elab/GenInjective.lean index becc897bb6..5df6250eb7 100644 --- a/src/Lean/Elab/GenInjective.lean +++ b/src/Lean/Elab/GenInjective.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Elab.Command import Lean.Meta.Injective diff --git a/src/Lean/Elab/Import.lean b/src/Lean/Elab/Import.lean index 3f031cd5b1..88a013c490 100644 --- a/src/Lean/Elab/Import.lean +++ b/src/Lean/Elab/Import.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich -/ +prelude import Lean.Parser.Module import Lean.Data.Json diff --git a/src/Lean/Elab/Inductive.lean b/src/Lean/Elab/Inductive.lean index d377da2c3b..a78e39c54a 100644 --- a/src/Lean/Elab/Inductive.lean +++ b/src/Lean/Elab/Inductive.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Util.ForEachExprWhere import Lean.Util.ReplaceLevel import Lean.Util.ReplaceExpr diff --git a/src/Lean/Elab/InfoTree.lean b/src/Lean/Elab/InfoTree.lean index 2a976e5de4..a639d37d27 100644 --- a/src/Lean/Elab/InfoTree.lean +++ b/src/Lean/Elab/InfoTree.lean @@ -4,5 +4,6 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Wojciech Nawrocki, Leonardo de Moura, Sebastian Ullrich -/ +prelude import Lean.Elab.InfoTree.Types import Lean.Elab.InfoTree.Main diff --git a/src/Lean/Elab/InfoTree/Main.lean b/src/Lean/Elab/InfoTree/Main.lean index b861ed6df7..ee05df3399 100644 --- a/src/Lean/Elab/InfoTree/Main.lean +++ b/src/Lean/Elab/InfoTree/Main.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Wojciech Nawrocki, Leonardo de Moura, Sebastian Ullrich -/ +prelude import Lean.Meta.PPGoal namespace Lean.Elab.CommandContextInfo diff --git a/src/Lean/Elab/InfoTree/Types.lean b/src/Lean/Elab/InfoTree/Types.lean index f7eca68b2f..f2b95a2223 100644 --- a/src/Lean/Elab/InfoTree/Types.lean +++ b/src/Lean/Elab/InfoTree/Types.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Wojciech Nawrocki, Leonardo de Moura, Sebastian Ullrich -/ +prelude import Lean.Data.Position import Lean.Data.OpenDecl import Lean.MetavarContext diff --git a/src/Lean/Elab/InheritDoc.lean b/src/Lean/Elab/InheritDoc.lean index b629a9e124..8b0c1cd100 100644 --- a/src/Lean/Elab/InheritDoc.lean +++ b/src/Lean/Elab/InheritDoc.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ +prelude import Lean.Elab.InfoTree.Main import Lean.DocString diff --git a/src/Lean/Elab/LetRec.lean b/src/Lean/Elab/LetRec.lean index f0ba18806c..d41c946ec4 100644 --- a/src/Lean/Elab/LetRec.lean +++ b/src/Lean/Elab/LetRec.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Elab.Attributes import Lean.Elab.Binders import Lean.Elab.DeclModifiers diff --git a/src/Lean/Elab/Level.lean b/src/Lean/Elab/Level.lean index 610d44a141..9734cac1ee 100644 --- a/src/Lean/Elab/Level.lean +++ b/src/Lean/Elab/Level.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Log import Lean.Parser.Level import Lean.Elab.Exception diff --git a/src/Lean/Elab/Macro.lean b/src/Lean/Elab/Macro.lean index 93059a6c35..a814ce01c1 100644 --- a/src/Lean/Elab/Macro.lean +++ b/src/Lean/Elab/Macro.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Elab.MacroArgUtil namespace Lean.Elab.Command diff --git a/src/Lean/Elab/MacroArgUtil.lean b/src/Lean/Elab/MacroArgUtil.lean index de59e5dedf..6e4f342bc5 100644 --- a/src/Lean/Elab/MacroArgUtil.lean +++ b/src/Lean/Elab/MacroArgUtil.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Elab.Syntax namespace Lean.Elab.Command diff --git a/src/Lean/Elab/MacroRules.lean b/src/Lean/Elab/MacroRules.lean index 8384c81fc0..01a1aaba3b 100644 --- a/src/Lean/Elab/MacroRules.lean +++ b/src/Lean/Elab/MacroRules.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Elab.Syntax import Lean.Elab.AuxDef diff --git a/src/Lean/Elab/Match.lean b/src/Lean/Elab/Match.lean index 016d5f8d5d..0d82df4dbd 100644 --- a/src/Lean/Elab/Match.lean +++ b/src/Lean/Elab/Match.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Mario Carneiro -/ +prelude import Lean.Util.ForEachExprWhere import Lean.Meta.Match.Match import Lean.Meta.GeneralizeVars diff --git a/src/Lean/Elab/MatchAltView.lean b/src/Lean/Elab/MatchAltView.lean index 30ae0b6766..3427d43901 100644 --- a/src/Lean/Elab/MatchAltView.lean +++ b/src/Lean/Elab/MatchAltView.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Elab.Term namespace Lean.Elab.Term diff --git a/src/Lean/Elab/Mixfix.lean b/src/Lean/Elab/Mixfix.lean index c50100acaa..4f64dafc25 100644 --- a/src/Lean/Elab/Mixfix.lean +++ b/src/Lean/Elab/Mixfix.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Elab.Attributes namespace Lean.Elab.Command diff --git a/src/Lean/Elab/MutualDef.lean b/src/Lean/Elab/MutualDef.lean index e14c4eb993..ede838c3f8 100644 --- a/src/Lean/Elab/MutualDef.lean +++ b/src/Lean/Elab/MutualDef.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Parser.Term import Lean.Meta.Closure import Lean.Meta.Check diff --git a/src/Lean/Elab/Notation.lean b/src/Lean/Elab/Notation.lean index 4771a3e138..6e7d10230a 100644 --- a/src/Lean/Elab/Notation.lean +++ b/src/Lean/Elab/Notation.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Elab.Syntax import Lean.Elab.AuxDef import Lean.Elab.BuiltinNotation diff --git a/src/Lean/Elab/Open.lean b/src/Lean/Elab/Open.lean index 51e76eca96..2dc2813db3 100644 --- a/src/Lean/Elab/Open.lean +++ b/src/Lean/Elab/Open.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Log import Lean.Elab.Util diff --git a/src/Lean/Elab/ParseImportsFast.lean b/src/Lean/Elab/ParseImportsFast.lean index bcb5d83427..aafa94ef64 100644 --- a/src/Lean/Elab/ParseImportsFast.lean +++ b/src/Lean/Elab/ParseImportsFast.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Parser.Module namespace Lean diff --git a/src/Lean/Elab/PatternVar.lean b/src/Lean/Elab/PatternVar.lean index 800ae7c79c..7b1d78b790 100644 --- a/src/Lean/Elab/PatternVar.lean +++ b/src/Lean/Elab/PatternVar.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Match.MatchPatternAttr import Lean.Elab.Arg import Lean.Elab.MatchAltView diff --git a/src/Lean/Elab/PreDefinition.lean b/src/Lean/Elab/PreDefinition.lean index 04b0997e86..dbac034e80 100644 --- a/src/Lean/Elab/PreDefinition.lean +++ b/src/Lean/Elab/PreDefinition.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Elab.PreDefinition.Basic import Lean.Elab.PreDefinition.Structural import Lean.Elab.PreDefinition.Main diff --git a/src/Lean/Elab/PreDefinition/Basic.lean b/src/Lean/Elab/PreDefinition/Basic.lean index 5fde43704a..7e86071fa2 100644 --- a/src/Lean/Elab/PreDefinition/Basic.lean +++ b/src/Lean/Elab/PreDefinition/Basic.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Compiler.NoncomputableAttr import Lean.Util.CollectLevelParams import Lean.Meta.AbstractNestedProofs diff --git a/src/Lean/Elab/PreDefinition/Eqns.lean b/src/Lean/Elab/PreDefinition/Eqns.lean index 8623515038..8398ac93e1 100644 --- a/src/Lean/Elab/PreDefinition/Eqns.lean +++ b/src/Lean/Elab/PreDefinition/Eqns.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Eqns import Lean.Util.CollectFVars import Lean.Util.ForEachExprWhere diff --git a/src/Lean/Elab/PreDefinition/Main.lean b/src/Lean/Elab/PreDefinition/Main.lean index 3d0bb8f6c9..c72586a357 100644 --- a/src/Lean/Elab/PreDefinition/Main.lean +++ b/src/Lean/Elab/PreDefinition/Main.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Util.SCC import Lean.Elab.PreDefinition.Basic import Lean.Elab.PreDefinition.Structural diff --git a/src/Lean/Elab/PreDefinition/MkInhabitant.lean b/src/Lean/Elab/PreDefinition/MkInhabitant.lean index 1ed531927f..ec50b443d8 100644 --- a/src/Lean/Elab/PreDefinition/MkInhabitant.lean +++ b/src/Lean/Elab/PreDefinition/MkInhabitant.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.AppBuilder namespace Lean.Elab open Meta diff --git a/src/Lean/Elab/PreDefinition/Structural.lean b/src/Lean/Elab/PreDefinition/Structural.lean index 5dde930eaf..a0b63b1cf6 100644 --- a/src/Lean/Elab/PreDefinition/Structural.lean +++ b/src/Lean/Elab/PreDefinition/Structural.lean @@ -3,4 +3,5 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Elab.PreDefinition.Structural.Main diff --git a/src/Lean/Elab/PreDefinition/Structural/BRecOn.lean b/src/Lean/Elab/PreDefinition/Structural/BRecOn.lean index ff6cd8b4bc..6146af3670 100644 --- a/src/Lean/Elab/PreDefinition/Structural/BRecOn.lean +++ b/src/Lean/Elab/PreDefinition/Structural/BRecOn.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Util.HasConstCache import Lean.Meta.Match.Match import Lean.Elab.RecAppSyntax diff --git a/src/Lean/Elab/PreDefinition/Structural/Basic.lean b/src/Lean/Elab/PreDefinition/Structural/Basic.lean index 4c99253e0b..29343059ae 100644 --- a/src/Lean/Elab/PreDefinition/Structural/Basic.lean +++ b/src/Lean/Elab/PreDefinition/Structural/Basic.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Basic import Lean.Meta.ForEachExpr diff --git a/src/Lean/Elab/PreDefinition/Structural/Eqns.lean b/src/Lean/Elab/PreDefinition/Structural/Eqns.lean index 566217d5d7..c63f1ebfff 100644 --- a/src/Lean/Elab/PreDefinition/Structural/Eqns.lean +++ b/src/Lean/Elab/PreDefinition/Structural/Eqns.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Eqns import Lean.Meta.Tactic.Split import Lean.Meta.Tactic.Simp.Main diff --git a/src/Lean/Elab/PreDefinition/Structural/FindRecArg.lean b/src/Lean/Elab/PreDefinition/Structural/FindRecArg.lean index b6d4033412..932e11f44e 100644 --- a/src/Lean/Elab/PreDefinition/Structural/FindRecArg.lean +++ b/src/Lean/Elab/PreDefinition/Structural/FindRecArg.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Elab.PreDefinition.Structural.Basic namespace Lean.Elab.Structural diff --git a/src/Lean/Elab/PreDefinition/Structural/IndPred.lean b/src/Lean/Elab/PreDefinition/Structural/IndPred.lean index b865b4614d..f45514245f 100644 --- a/src/Lean/Elab/PreDefinition/Structural/IndPred.lean +++ b/src/Lean/Elab/PreDefinition/Structural/IndPred.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Dany Fabian -/ +prelude import Lean.Meta.IndPredBelow import Lean.Elab.PreDefinition.Basic import Lean.Elab.PreDefinition.Structural.Basic diff --git a/src/Lean/Elab/PreDefinition/Structural/Main.lean b/src/Lean/Elab/PreDefinition/Structural/Main.lean index 8e52168be2..ab7e3af5a7 100644 --- a/src/Lean/Elab/PreDefinition/Structural/Main.lean +++ b/src/Lean/Elab/PreDefinition/Structural/Main.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Elab.PreDefinition.Structural.Basic import Lean.Elab.PreDefinition.Structural.FindRecArg import Lean.Elab.PreDefinition.Structural.Preprocess diff --git a/src/Lean/Elab/PreDefinition/Structural/Preprocess.lean b/src/Lean/Elab/PreDefinition/Structural/Preprocess.lean index 24c6f17a1d..c0ca92efcc 100644 --- a/src/Lean/Elab/PreDefinition/Structural/Preprocess.lean +++ b/src/Lean/Elab/PreDefinition/Structural/Preprocess.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Transform import Lean.Elab.RecAppSyntax diff --git a/src/Lean/Elab/PreDefinition/Structural/SmartUnfolding.lean b/src/Lean/Elab/PreDefinition/Structural/SmartUnfolding.lean index 9ee8bbec75..05269edb42 100644 --- a/src/Lean/Elab/PreDefinition/Structural/SmartUnfolding.lean +++ b/src/Lean/Elab/PreDefinition/Structural/SmartUnfolding.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Elab.PreDefinition.Basic import Lean.Elab.PreDefinition.Structural.Basic diff --git a/src/Lean/Elab/PreDefinition/WF.lean b/src/Lean/Elab/PreDefinition/WF.lean index 5e4a5b9818..f072e161a8 100644 --- a/src/Lean/Elab/PreDefinition/WF.lean +++ b/src/Lean/Elab/PreDefinition/WF.lean @@ -3,4 +3,5 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Elab.PreDefinition.WF.Main diff --git a/src/Lean/Elab/PreDefinition/WF/Eqns.lean b/src/Lean/Elab/PreDefinition/WF/Eqns.lean index cfecc76543..e0c71d28fa 100644 --- a/src/Lean/Elab/PreDefinition/WF/Eqns.lean +++ b/src/Lean/Elab/PreDefinition/WF/Eqns.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Tactic.Rewrite import Lean.Meta.Tactic.Split import Lean.Elab.PreDefinition.Basic diff --git a/src/Lean/Elab/PreDefinition/WF/Fix.lean b/src/Lean/Elab/PreDefinition/WF/Fix.lean index 658b731260..5f1e9b632c 100644 --- a/src/Lean/Elab/PreDefinition/WF/Fix.lean +++ b/src/Lean/Elab/PreDefinition/WF/Fix.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Util.HasConstCache import Lean.Meta.Match.Match import Lean.Meta.Tactic.Simp.Main diff --git a/src/Lean/Elab/PreDefinition/WF/GuessLex.lean b/src/Lean/Elab/PreDefinition/WF/GuessLex.lean index f4d7b50a4b..e06f0ab626 100644 --- a/src/Lean/Elab/PreDefinition/WF/GuessLex.lean +++ b/src/Lean/Elab/PreDefinition/WF/GuessLex.lean @@ -3,7 +3,7 @@ Copyright (c) 2023 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Joachim Breitner -/ - +prelude import Lean.Util.HasConstCache import Lean.Meta.Match.Match import Lean.Meta.Tactic.Cleanup diff --git a/src/Lean/Elab/PreDefinition/WF/Ite.lean b/src/Lean/Elab/PreDefinition/WF/Ite.lean index c628ee583b..4634b16f13 100644 --- a/src/Lean/Elab/PreDefinition/WF/Ite.lean +++ b/src/Lean/Elab/PreDefinition/WF/Ite.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Transform namespace Lean.Meta diff --git a/src/Lean/Elab/PreDefinition/WF/Main.lean b/src/Lean/Elab/PreDefinition/WF/Main.lean index 24433802ec..eccce4360c 100644 --- a/src/Lean/Elab/PreDefinition/WF/Main.lean +++ b/src/Lean/Elab/PreDefinition/WF/Main.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Elab.PreDefinition.Basic import Lean.Elab.PreDefinition.WF.TerminationHint import Lean.Elab.PreDefinition.WF.PackDomain diff --git a/src/Lean/Elab/PreDefinition/WF/PackDomain.lean b/src/Lean/Elab/PreDefinition/WF/PackDomain.lean index fdd83d35b6..d450e6c9ce 100644 --- a/src/Lean/Elab/PreDefinition/WF/PackDomain.lean +++ b/src/Lean/Elab/PreDefinition/WF/PackDomain.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Tactic.Cases import Lean.Elab.PreDefinition.Basic diff --git a/src/Lean/Elab/PreDefinition/WF/PackMutual.lean b/src/Lean/Elab/PreDefinition/WF/PackMutual.lean index 0167f93581..1f34fe3883 100644 --- a/src/Lean/Elab/PreDefinition/WF/PackMutual.lean +++ b/src/Lean/Elab/PreDefinition/WF/PackMutual.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Tactic.Cases import Lean.Elab.PreDefinition.Basic import Lean.Elab.PreDefinition.WF.PackDomain diff --git a/src/Lean/Elab/PreDefinition/WF/Preprocess.lean b/src/Lean/Elab/PreDefinition/WF/Preprocess.lean index 54242a884b..ad856ae132 100644 --- a/src/Lean/Elab/PreDefinition/WF/Preprocess.lean +++ b/src/Lean/Elab/PreDefinition/WF/Preprocess.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Transform import Lean.Elab.RecAppSyntax diff --git a/src/Lean/Elab/PreDefinition/WF/Rel.lean b/src/Lean/Elab/PreDefinition/WF/Rel.lean index 9680b2c397..37bd29d768 100644 --- a/src/Lean/Elab/PreDefinition/WF/Rel.lean +++ b/src/Lean/Elab/PreDefinition/WF/Rel.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Tactic.Apply import Lean.Meta.Tactic.Cases import Lean.Meta.Tactic.Rename diff --git a/src/Lean/Elab/PreDefinition/WF/TerminationHint.lean b/src/Lean/Elab/PreDefinition/WF/TerminationHint.lean index 23c068735d..22d34c6687 100644 --- a/src/Lean/Elab/PreDefinition/WF/TerminationHint.lean +++ b/src/Lean/Elab/PreDefinition/WF/TerminationHint.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Joachim Breitner -/ +prelude import Lean.Parser.Term set_option autoImplicit false diff --git a/src/Lean/Elab/Print.lean b/src/Lean/Elab/Print.lean index 4d8c930102..e96e50bffa 100644 --- a/src/Lean/Elab/Print.lean +++ b/src/Lean/Elab/Print.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Util.FoldConsts import Lean.Elab.Command diff --git a/src/Lean/Elab/Quotation.lean b/src/Lean/Elab/Quotation.lean index 5b278dc4fd..a0c83ff00e 100644 --- a/src/Lean/Elab/Quotation.lean +++ b/src/Lean/Elab/Quotation.lean @@ -5,6 +5,7 @@ Authors: Sebastian Ullrich Elaboration of syntax quotations as terms and patterns (in `match_syntax`). See also `./Hygiene.lean` for the basic hygiene workings and data types. -/ +prelude import Lean.Syntax import Lean.ResolveName import Lean.Elab.Term diff --git a/src/Lean/Elab/Quotation/Precheck.lean b/src/Lean/Elab/Quotation/Precheck.lean index 540c9b6d78..05dc94f734 100644 --- a/src/Lean/Elab/Quotation/Precheck.lean +++ b/src/Lean/Elab/Quotation/Precheck.lean @@ -3,7 +3,7 @@ Copyright (c) 2021 Sebastian Ullrich. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Ullrich -/ - +prelude import Lean.KeyedDeclsAttribute import Lean.Parser.Command -- for `precheckedQuot` import Lean.Elab.Term diff --git a/src/Lean/Elab/Quotation/Util.lean b/src/Lean/Elab/Quotation/Util.lean index 436955003b..e8cf275f3d 100644 --- a/src/Lean/Elab/Quotation/Util.lean +++ b/src/Lean/Elab/Quotation/Util.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Sebastian Ullrich. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Ullrich -/ +prelude import Lean.Elab.Term namespace Lean.Elab.Term.Quotation diff --git a/src/Lean/Elab/RecAppSyntax.lean b/src/Lean/Elab/RecAppSyntax.lean index 1a2ad6dda7..3b75f11504 100644 --- a/src/Lean/Elab/RecAppSyntax.lean +++ b/src/Lean/Elab/RecAppSyntax.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Expr namespace Lean diff --git a/src/Lean/Elab/SetOption.lean b/src/Lean/Elab/SetOption.lean index 29b70ffc67..e4f954ce3d 100644 --- a/src/Lean/Elab/SetOption.lean +++ b/src/Lean/Elab/SetOption.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Log import Lean.Elab.InfoTree namespace Lean.Elab diff --git a/src/Lean/Elab/StructInst.lean b/src/Lean/Elab/StructInst.lean index a7e9b7f981..b551d5cce4 100644 --- a/src/Lean/Elab/StructInst.lean +++ b/src/Lean/Elab/StructInst.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Util.FindExpr import Lean.Parser.Term import Lean.Meta.Structure diff --git a/src/Lean/Elab/Structure.lean b/src/Lean/Elab/Structure.lean index a46742b8fa..137178c4c1 100644 --- a/src/Lean/Elab/Structure.lean +++ b/src/Lean/Elab/Structure.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Class import Lean.Parser.Command import Lean.Meta.Closure diff --git a/src/Lean/Elab/Syntax.lean b/src/Lean/Elab/Syntax.lean index 7bba83d403..e9c7b8316e 100644 --- a/src/Lean/Elab/Syntax.lean +++ b/src/Lean/Elab/Syntax.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Elab.Command import Lean.Parser.Syntax import Lean.Elab.Util diff --git a/src/Lean/Elab/SyntheticMVars.lean b/src/Lean/Elab/SyntheticMVars.lean index ac8be48a84..a39d027661 100644 --- a/src/Lean/Elab/SyntheticMVars.lean +++ b/src/Lean/Elab/SyntheticMVars.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich -/ +prelude import Lean.Meta.Tactic.Util import Lean.Util.ForEachExpr import Lean.Util.OccursCheck diff --git a/src/Lean/Elab/Tactic.lean b/src/Lean/Elab/Tactic.lean index 6341fc0cf5..704e693ec0 100644 --- a/src/Lean/Elab/Tactic.lean +++ b/src/Lean/Elab/Tactic.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich -/ +prelude import Lean.Elab.Term import Lean.Elab.Tactic.Basic import Lean.Elab.Tactic.ElabTerm diff --git a/src/Lean/Elab/Tactic/Basic.lean b/src/Lean/Elab/Tactic/Basic.lean index 835c47a72e..3b36205240 100644 --- a/src/Lean/Elab/Tactic/Basic.lean +++ b/src/Lean/Elab/Tactic/Basic.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich -/ +prelude import Lean.Elab.Term namespace Lean.Elab diff --git a/src/Lean/Elab/Tactic/BuiltinTactic.lean b/src/Lean/Elab/Tactic/BuiltinTactic.lean index ca538e5a01..bd71bbd749 100644 --- a/src/Lean/Elab/Tactic/BuiltinTactic.lean +++ b/src/Lean/Elab/Tactic/BuiltinTactic.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Tactic.Apply import Lean.Meta.Tactic.Assumption import Lean.Meta.Tactic.Contradiction diff --git a/src/Lean/Elab/Tactic/Cache.lean b/src/Lean/Elab/Tactic/Cache.lean index dea4b86fb8..6655d8fa50 100644 --- a/src/Lean/Elab/Tactic/Cache.lean +++ b/src/Lean/Elab/Tactic/Cache.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Elab.Tactic.Basic namespace Lean.Elab.Tactic diff --git a/src/Lean/Elab/Tactic/Calc.lean b/src/Lean/Elab/Tactic/Calc.lean index a62cb28c3f..af14fb79d5 100644 --- a/src/Lean/Elab/Tactic/Calc.lean +++ b/src/Lean/Elab/Tactic/Calc.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Elab.Calc import Lean.Elab.Tactic.ElabTerm diff --git a/src/Lean/Elab/Tactic/Change.lean b/src/Lean/Elab/Tactic/Change.lean index 91465d01c3..88676a7079 100644 --- a/src/Lean/Elab/Tactic/Change.lean +++ b/src/Lean/Elab/Tactic/Change.lean @@ -3,6 +3,7 @@ Copyright (c) 2023 Kyle Miller. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kyle Miller -/ +prelude import Lean.Meta.Tactic.Replace import Lean.Elab.Tactic.Location diff --git a/src/Lean/Elab/Tactic/Config.lean b/src/Lean/Elab/Tactic/Config.lean index 9f8fa220a1..bcfcca1fcc 100644 --- a/src/Lean/Elab/Tactic/Config.lean +++ b/src/Lean/Elab/Tactic/Config.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Eval import Lean.Elab.Tactic.Basic import Lean.Elab.SyntheticMVars diff --git a/src/Lean/Elab/Tactic/Congr.lean b/src/Lean/Elab/Tactic/Congr.lean index 4d45e7977a..bbfab37d53 100644 --- a/src/Lean/Elab/Tactic/Congr.lean +++ b/src/Lean/Elab/Tactic/Congr.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Tactic.Congr import Lean.Elab.Tactic.Basic diff --git a/src/Lean/Elab/Tactic/Conv.lean b/src/Lean/Elab/Tactic/Conv.lean index e877fc29d2..4065765fc6 100644 --- a/src/Lean/Elab/Tactic/Conv.lean +++ b/src/Lean/Elab/Tactic/Conv.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Elab.Tactic.Conv.Basic import Lean.Elab.Tactic.Conv.Congr import Lean.Elab.Tactic.Conv.Rewrite diff --git a/src/Lean/Elab/Tactic/Conv/Basic.lean b/src/Lean/Elab/Tactic/Conv/Basic.lean index bc4bb3ce76..abf49010a4 100644 --- a/src/Lean/Elab/Tactic/Conv/Basic.lean +++ b/src/Lean/Elab/Tactic/Conv/Basic.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Reduce import Lean.Meta.Tactic.Apply import Lean.Meta.Tactic.Replace diff --git a/src/Lean/Elab/Tactic/Conv/Change.lean b/src/Lean/Elab/Tactic/Conv/Change.lean index 385cbf0c63..9385d9e9cd 100644 --- a/src/Lean/Elab/Tactic/Conv/Change.lean +++ b/src/Lean/Elab/Tactic/Conv/Change.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Elab.Tactic.ElabTerm import Lean.Elab.Tactic.Conv.Basic diff --git a/src/Lean/Elab/Tactic/Conv/Congr.lean b/src/Lean/Elab/Tactic/Conv/Congr.lean index 64c77e310b..9060bd91d6 100644 --- a/src/Lean/Elab/Tactic/Conv/Congr.lean +++ b/src/Lean/Elab/Tactic/Conv/Congr.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Tactic.Simp.Main import Lean.Meta.Tactic.Congr import Lean.Elab.Tactic.Conv.Basic diff --git a/src/Lean/Elab/Tactic/Conv/Delta.lean b/src/Lean/Elab/Tactic/Conv/Delta.lean index 55b0a5e9d7..f14c6e945c 100644 --- a/src/Lean/Elab/Tactic/Conv/Delta.lean +++ b/src/Lean/Elab/Tactic/Conv/Delta.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Elab.Tactic.Delta import Lean.Elab.Tactic.Conv.Basic diff --git a/src/Lean/Elab/Tactic/Conv/Pattern.lean b/src/Lean/Elab/Tactic/Conv/Pattern.lean index c2b3698eb2..12baa7ed2b 100644 --- a/src/Lean/Elab/Tactic/Conv/Pattern.lean +++ b/src/Lean/Elab/Tactic/Conv/Pattern.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Elab.Tactic.Simp import Lean.Elab.Tactic.Conv.Basic import Lean.HeadIndex diff --git a/src/Lean/Elab/Tactic/Conv/Rewrite.lean b/src/Lean/Elab/Tactic/Conv/Rewrite.lean index a6d3ed840b..0223a28992 100644 --- a/src/Lean/Elab/Tactic/Conv/Rewrite.lean +++ b/src/Lean/Elab/Tactic/Conv/Rewrite.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Tactic.Rewrite import Lean.Elab.Tactic.Rewrite import Lean.Elab.Tactic.Conv.Basic diff --git a/src/Lean/Elab/Tactic/Conv/Simp.lean b/src/Lean/Elab/Tactic/Conv/Simp.lean index a54d5b7c5c..17c7f0648b 100644 --- a/src/Lean/Elab/Tactic/Conv/Simp.lean +++ b/src/Lean/Elab/Tactic/Conv/Simp.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Moritz Doll -/ +prelude import Lean.Elab.Tactic.Simp import Lean.Elab.Tactic.Split import Lean.Elab.Tactic.Conv.Basic diff --git a/src/Lean/Elab/Tactic/Conv/Unfold.lean b/src/Lean/Elab/Tactic/Conv/Unfold.lean index 9c12e9991d..96d26e8d9e 100644 --- a/src/Lean/Elab/Tactic/Conv/Unfold.lean +++ b/src/Lean/Elab/Tactic/Conv/Unfold.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Elab.Tactic.Unfold import Lean.Elab.Tactic.Conv.Simp diff --git a/src/Lean/Elab/Tactic/Delta.lean b/src/Lean/Elab/Tactic/Delta.lean index 7171b785a4..854ee9d195 100644 --- a/src/Lean/Elab/Tactic/Delta.lean +++ b/src/Lean/Elab/Tactic/Delta.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Tactic.Delta import Lean.Elab.Tactic.Basic import Lean.Elab.Tactic.Location diff --git a/src/Lean/Elab/Tactic/ElabTerm.lean b/src/Lean/Elab/Tactic/ElabTerm.lean index 3ce0864fbb..300ea7a530 100644 --- a/src/Lean/Elab/Tactic/ElabTerm.lean +++ b/src/Lean/Elab/Tactic/ElabTerm.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Tactic.Constructor import Lean.Meta.Tactic.Assert import Lean.Meta.Tactic.Clear diff --git a/src/Lean/Elab/Tactic/Ext.lean b/src/Lean/Elab/Tactic/Ext.lean index 5958286dba..1aefa29a69 100644 --- a/src/Lean/Elab/Tactic/Ext.lean +++ b/src/Lean/Elab/Tactic/Ext.lean @@ -3,6 +3,8 @@ Copyright (c) 2021 Gabriel Ebner. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Gabriel Ebner, Mario Carneiro -/ +prelude +import Init.Ext import Lean.Elab.Tactic.RCases import Lean.Elab.Tactic.Repeat import Lean.Elab.Tactic.BuiltinTactic diff --git a/src/Lean/Elab/Tactic/FalseOrByContra.lean b/src/Lean/Elab/Tactic/FalseOrByContra.lean index f7b7ca0194..7a2601c96d 100644 --- a/src/Lean/Elab/Tactic/FalseOrByContra.lean +++ b/src/Lean/Elab/Tactic/FalseOrByContra.lean @@ -3,6 +3,7 @@ Copyright (c) 2023 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ +prelude import Lean.Elab.Tactic.Basic import Lean.Meta.Tactic.Apply import Lean.Meta.Tactic.Intro diff --git a/src/Lean/Elab/Tactic/Generalize.lean b/src/Lean/Elab/Tactic/Generalize.lean index bfbeb1548e..3860107a68 100644 --- a/src/Lean/Elab/Tactic/Generalize.lean +++ b/src/Lean/Elab/Tactic/Generalize.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich -/ +prelude import Lean.Meta.Tactic.Generalize import Lean.Meta.Check import Lean.Meta.Tactic.Intro diff --git a/src/Lean/Elab/Tactic/Guard.lean b/src/Lean/Elab/Tactic/Guard.lean index 60e7822bba..53443b3402 100644 --- a/src/Lean/Elab/Tactic/Guard.lean +++ b/src/Lean/Elab/Tactic/Guard.lean @@ -3,6 +3,8 @@ Copyright (c) 2021 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro, Leonardo de Moura -/ +prelude +import Init.Guard import Lean.Elab.Command import Lean.Elab.Tactic.Conv.Basic import Lean.Meta.Basic diff --git a/src/Lean/Elab/Tactic/Induction.lean b/src/Lean/Elab/Tactic/Induction.lean index ddc461f13a..10a63a5f90 100644 --- a/src/Lean/Elab/Tactic/Induction.lean +++ b/src/Lean/Elab/Tactic/Induction.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich -/ +prelude import Lean.Util.CollectFVars import Lean.AuxRecursor import Lean.Parser.Term diff --git a/src/Lean/Elab/Tactic/Injection.lean b/src/Lean/Elab/Tactic/Injection.lean index 7f6fe14757..36ca4555fd 100644 --- a/src/Lean/Elab/Tactic/Injection.lean +++ b/src/Lean/Elab/Tactic/Injection.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Tactic.Injection import Lean.Meta.Tactic.Assumption import Lean.Elab.Tactic.ElabTerm diff --git a/src/Lean/Elab/Tactic/Location.lean b/src/Lean/Elab/Tactic/Location.lean index ffb15c5e01..9e4da6dd61 100644 --- a/src/Lean/Elab/Tactic/Location.lean +++ b/src/Lean/Elab/Tactic/Location.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Elab.Tactic.Basic import Lean.Elab.Tactic.ElabTerm diff --git a/src/Lean/Elab/Tactic/Match.lean b/src/Lean/Elab/Tactic/Match.lean index a2eb3c86f7..f95a6fe467 100644 --- a/src/Lean/Elab/Tactic/Match.lean +++ b/src/Lean/Elab/Tactic/Match.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Parser.Term import Lean.Elab.Match import Lean.Elab.Tactic.Basic diff --git a/src/Lean/Elab/Tactic/Meta.lean b/src/Lean/Elab/Tactic/Meta.lean index 30d3fefc2d..bb7e5a8cf5 100644 --- a/src/Lean/Elab/Tactic/Meta.lean +++ b/src/Lean/Elab/Tactic/Meta.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Elab.SyntheticMVars import Lean.Elab.Tactic.Basic diff --git a/src/Lean/Elab/Tactic/RCases.lean b/src/Lean/Elab/Tactic/RCases.lean index af3506fbdf..84ac7b7985 100644 --- a/src/Lean/Elab/Tactic/RCases.lean +++ b/src/Lean/Elab/Tactic/RCases.lean @@ -3,6 +3,7 @@ Copyright (c) 2017 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro, Jacob von Raumer -/ +prelude import Lean.Elab.Tactic.Induction namespace Lean.Elab.Tactic.RCases diff --git a/src/Lean/Elab/Tactic/Repeat.lean b/src/Lean/Elab/Tactic/Repeat.lean index b703105620..06f6a71e3e 100644 --- a/src/Lean/Elab/Tactic/Repeat.lean +++ b/src/Lean/Elab/Tactic/Repeat.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro, Scott Morrison -/ +prelude import Lean.Meta.Tactic.Repeat import Lean.Elab.Tactic.Basic diff --git a/src/Lean/Elab/Tactic/Rewrite.lean b/src/Lean/Elab/Tactic/Rewrite.lean index 0a0f1f5819..0e2397b7fe 100644 --- a/src/Lean/Elab/Tactic/Rewrite.lean +++ b/src/Lean/Elab/Tactic/Rewrite.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Tactic.Rewrite import Lean.Meta.Tactic.Replace import Lean.Elab.Tactic.Location diff --git a/src/Lean/Elab/Tactic/Simp.lean b/src/Lean/Elab/Tactic/Simp.lean index 27328ef946..a0141099e6 100644 --- a/src/Lean/Elab/Tactic/Simp.lean +++ b/src/Lean/Elab/Tactic/Simp.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Tactic.Simp import Lean.Meta.Tactic.Replace import Lean.Elab.BuiltinNotation diff --git a/src/Lean/Elab/Tactic/Simproc.lean b/src/Lean/Elab/Tactic/Simproc.lean index 0d6bef5840..791403e8ab 100644 --- a/src/Lean/Elab/Tactic/Simproc.lean +++ b/src/Lean/Elab/Tactic/Simproc.lean @@ -3,6 +3,8 @@ Copyright (c) 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude +import Init.Simproc import Lean.Meta.Tactic.Simp.Simproc import Lean.Elab.Binders import Lean.Elab.SyntheticMVars diff --git a/src/Lean/Elab/Tactic/Split.lean b/src/Lean/Elab/Tactic/Split.lean index b44eff6fd0..e01aa81bbc 100644 --- a/src/Lean/Elab/Tactic/Split.lean +++ b/src/Lean/Elab/Tactic/Split.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Tactic.Split import Lean.Elab.Tactic.Basic import Lean.Elab.Tactic.Location diff --git a/src/Lean/Elab/Tactic/Unfold.lean b/src/Lean/Elab/Tactic/Unfold.lean index fc0936d154..d0c3284e33 100644 --- a/src/Lean/Elab/Tactic/Unfold.lean +++ b/src/Lean/Elab/Tactic/Unfold.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Tactic.Unfold import Lean.Elab.Tactic.Basic import Lean.Elab.Tactic.Location diff --git a/src/Lean/Elab/Term.lean b/src/Lean/Elab/Term.lean index 1de38397f0..3fe086dd9c 100644 --- a/src/Lean/Elab/Term.lean +++ b/src/Lean/Elab/Term.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich -/ +prelude import Lean.Meta.AppBuilder import Lean.Meta.CollectMVars import Lean.Meta.Coe diff --git a/src/Lean/Elab/Util.lean b/src/Lean/Elab/Util.lean index dbcb40f017..0dd5cfb673 100644 --- a/src/Lean/Elab/Util.lean +++ b/src/Lean/Elab/Util.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Parser.Command import Lean.KeyedDeclsAttribute import Lean.Elab.Exception diff --git a/src/Lean/Environment.lean b/src/Lean/Environment.lean index 3330125a18..604c0ab305 100644 --- a/src/Lean/Environment.lean +++ b/src/Lean/Environment.lean @@ -3,6 +3,10 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude +import Init.Control.StateRef +import Init.Data.Array.BinSearch +import Init.Data.Stream import Lean.Data.HashMap import Lean.ImportingFlag import Lean.Data.SMap diff --git a/src/Lean/Eval.lean b/src/Lean/Eval.lean index 84db675133..26795484d6 100644 --- a/src/Lean/Eval.lean +++ b/src/Lean/Eval.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich -/ +prelude import Lean.Environment namespace Lean diff --git a/src/Lean/Exception.lean b/src/Lean/Exception.lean index 2c02b43624..ce88a6cbd1 100644 --- a/src/Lean/Exception.lean +++ b/src/Lean/Exception.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Message import Lean.InternalExceptionId import Lean.Data.Options diff --git a/src/Lean/Expr.lean b/src/Lean/Expr.lean index 7bd9f5b22c..70f568c1d5 100644 --- a/src/Lean/Expr.lean +++ b/src/Lean/Expr.lean @@ -3,6 +3,8 @@ Copyright (c) 2018 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude +import Init.Data.Hashable import Lean.Data.KVMap import Lean.Level diff --git a/src/Lean/HeadIndex.lean b/src/Lean/HeadIndex.lean index 55b43b1b9c..24ea6874d5 100644 --- a/src/Lean/HeadIndex.lean +++ b/src/Lean/HeadIndex.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura -/ +prelude import Lean.Expr namespace Lean diff --git a/src/Lean/Hygiene.lean b/src/Lean/Hygiene.lean index b47e4eaa0f..242b425155 100644 --- a/src/Lean/Hygiene.lean +++ b/src/Lean/Hygiene.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Ullrich -/ +prelude import Lean.Data.Name import Lean.Data.Options import Lean.Data.Format diff --git a/src/Lean/ImportingFlag.lean b/src/Lean/ImportingFlag.lean index 16370c0f94..b8a685fa81 100644 --- a/src/Lean/ImportingFlag.lean +++ b/src/Lean/ImportingFlag.lean @@ -3,6 +3,8 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude +import Init.System.IO namespace Lean private builtin_initialize importingRef : IO.Ref Bool ← IO.mkRef false diff --git a/src/Lean/InternalExceptionId.lean b/src/Lean/InternalExceptionId.lean index 0b72bad7ed..e3c9a370ee 100644 --- a/src/Lean/InternalExceptionId.lean +++ b/src/Lean/InternalExceptionId.lean @@ -3,6 +3,8 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude +import Init.System.IO namespace Lean /-- Internal exception identifier -/ diff --git a/src/Lean/KeyedDeclsAttribute.lean b/src/Lean/KeyedDeclsAttribute.lean index 0e62849edb..bcc608cd31 100644 --- a/src/Lean/KeyedDeclsAttribute.lean +++ b/src/Lean/KeyedDeclsAttribute.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich -/ +prelude import Lean.Compiler.InitAttr import Lean.ScopedEnvExtension import Lean.Compiler.IR.CompilerM diff --git a/src/Lean/LazyInitExtension.lean b/src/Lean/LazyInitExtension.lean index 981151ec51..f50b7453cc 100644 --- a/src/Lean/LazyInitExtension.lean +++ b/src/Lean/LazyInitExtension.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.MonadEnv namespace Lean diff --git a/src/Lean/Level.lean b/src/Lean/Level.lean index 94c6238b88..ea9941e449 100644 --- a/src/Lean/Level.lean +++ b/src/Lean/Level.lean @@ -3,6 +3,8 @@ Copyright (c) 2018 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude +import Init.Data.Array.QSort import Lean.Data.HashMap import Lean.Data.HashSet import Lean.Data.PersistentHashMap diff --git a/src/Lean/Linter.lean b/src/Lean/Linter.lean index 7939686c32..c0fb0aa314 100644 --- a/src/Lean/Linter.lean +++ b/src/Lean/Linter.lean @@ -1,3 +1,4 @@ +prelude import Lean.Linter.Util import Lean.Linter.Builtin import Lean.Linter.Deprecated diff --git a/src/Lean/Linter/Basic.lean b/src/Lean/Linter/Basic.lean index 8e532008d8..471e5297dc 100644 --- a/src/Lean/Linter/Basic.lean +++ b/src/Lean/Linter/Basic.lean @@ -1,3 +1,4 @@ +prelude import Lean.Data.Options namespace Lean.Linter diff --git a/src/Lean/Linter/Builtin.lean b/src/Lean/Linter/Builtin.lean index 2548e9b23a..0c1fd9cca0 100644 --- a/src/Lean/Linter/Builtin.lean +++ b/src/Lean/Linter/Builtin.lean @@ -1,3 +1,4 @@ +prelude import Lean.Linter.Util import Lean.Elab.Command diff --git a/src/Lean/Linter/Deprecated.lean b/src/Lean/Linter/Deprecated.lean index b154439b76..8b5463945c 100644 --- a/src/Lean/Linter/Deprecated.lean +++ b/src/Lean/Linter/Deprecated.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Linter.Basic import Lean.Attributes import Lean.Elab.InfoTree.Main diff --git a/src/Lean/Linter/MissingDocs.lean b/src/Lean/Linter/MissingDocs.lean index a06ee655f6..868cf55ee3 100644 --- a/src/Lean/Linter/MissingDocs.lean +++ b/src/Lean/Linter/MissingDocs.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ +prelude import Lean.Meta.Tactic.Simp.RegisterCommand import Lean.Elab.Command import Lean.Elab.SetOption diff --git a/src/Lean/Linter/UnusedVariables.lean b/src/Lean/Linter/UnusedVariables.lean index 63fd8803bd..a0518a7e6c 100644 --- a/src/Lean/Linter/UnusedVariables.lean +++ b/src/Lean/Linter/UnusedVariables.lean @@ -1,3 +1,4 @@ +prelude import Lean.Elab.Command import Lean.Util.ForEachExpr import Lean.Linter.Util diff --git a/src/Lean/Linter/Util.lean b/src/Lean/Linter/Util.lean index 62e487bbd4..c64410d1cb 100644 --- a/src/Lean/Linter/Util.lean +++ b/src/Lean/Linter/Util.lean @@ -1,3 +1,4 @@ +prelude import Lean.Data.Options import Lean.Server.InfoUtils import Lean.Linter.Basic diff --git a/src/Lean/LoadDynlib.lean b/src/Lean/LoadDynlib.lean index f076d7c596..24b54bf957 100644 --- a/src/Lean/LoadDynlib.lean +++ b/src/Lean/LoadDynlib.lean @@ -3,7 +3,8 @@ Copyright (c) 2021 Mac Malone. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mac Malone -/ - +prelude +import Init.System.IO namespace Lean /-- diff --git a/src/Lean/LocalContext.lean b/src/Lean/LocalContext.lean index ddf0ea9a4a..10dd1d3d6f 100644 --- a/src/Lean/LocalContext.lean +++ b/src/Lean/LocalContext.lean @@ -3,6 +3,8 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude +import Init.Data.Nat.Control import Lean.Data.PersistentArray import Lean.Expr import Lean.Hygiene diff --git a/src/Lean/Log.lean b/src/Lean/Log.lean index 3076f8489a..6485e15a1f 100644 --- a/src/Lean/Log.lean +++ b/src/Lean/Log.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Util.Sorry import Lean.Message diff --git a/src/Lean/Message.lean b/src/Lean/Message.lean index 8357305f52..d51a1d9c5d 100644 --- a/src/Lean/Message.lean +++ b/src/Lean/Message.lean @@ -5,6 +5,7 @@ Author: Sebastian Ullrich, Leonardo de Moura Message type used by the Lean frontend -/ +prelude import Lean.Data.Position import Lean.Data.OpenDecl import Lean.MetavarContext diff --git a/src/Lean/Meta.lean b/src/Lean/Meta.lean index 4aefcdb19a..92c2a56150 100644 --- a/src/Lean/Meta.lean +++ b/src/Lean/Meta.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Basic import Lean.Meta.LevelDefEq import Lean.Meta.WHNF diff --git a/src/Lean/Meta/ACLt.lean b/src/Lean/Meta/ACLt.lean index 609cd6b39a..a2d89375fb 100644 --- a/src/Lean/Meta/ACLt.lean +++ b/src/Lean/Meta/ACLt.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Basic import Lean.Meta.FunInfo import Lean.Meta.DiscrTree diff --git a/src/Lean/Meta/AbstractMVars.lean b/src/Lean/Meta/AbstractMVars.lean index d5d7597c1f..5f2f680f29 100644 --- a/src/Lean/Meta/AbstractMVars.lean +++ b/src/Lean/Meta/AbstractMVars.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Basic namespace Lean.Meta diff --git a/src/Lean/Meta/AbstractNestedProofs.lean b/src/Lean/Meta/AbstractNestedProofs.lean index 3779a2679c..0aaf8d50d2 100644 --- a/src/Lean/Meta/AbstractNestedProofs.lean +++ b/src/Lean/Meta/AbstractNestedProofs.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Closure namespace Lean.Meta diff --git a/src/Lean/Meta/AppBuilder.lean b/src/Lean/Meta/AppBuilder.lean index 68ee8e20a4..bcccb54951 100644 --- a/src/Lean/Meta/AppBuilder.lean +++ b/src/Lean/Meta/AppBuilder.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Structure import Lean.Util.Recognizers import Lean.Meta.SynthInstance diff --git a/src/Lean/Meta/Basic.lean b/src/Lean/Meta/Basic.lean index 48abfe834e..c5948d9956 100644 --- a/src/Lean/Meta/Basic.lean +++ b/src/Lean/Meta/Basic.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Data.LOption import Lean.Environment import Lean.Class diff --git a/src/Lean/Meta/Check.lean b/src/Lean/Meta/Check.lean index 925a3de957..87d0e87ef0 100644 --- a/src/Lean/Meta/Check.lean +++ b/src/Lean/Meta/Check.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.InferType /-! diff --git a/src/Lean/Meta/Closure.lean b/src/Lean/Meta/Closure.lean index 6729197b2f..f50c360030 100644 --- a/src/Lean/Meta/Closure.lean +++ b/src/Lean/Meta/Closure.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.MetavarContext import Lean.Environment import Lean.Util.FoldConsts diff --git a/src/Lean/Meta/Coe.lean b/src/Lean/Meta/Coe.lean index b06fed2185..001e2e150d 100644 --- a/src/Lean/Meta/Coe.lean +++ b/src/Lean/Meta/Coe.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.WHNF import Lean.Meta.Transform import Lean.Meta.SynthInstance diff --git a/src/Lean/Meta/CoeAttr.lean b/src/Lean/Meta/CoeAttr.lean index 5a2449505b..0509cd2b22 100644 --- a/src/Lean/Meta/CoeAttr.lean +++ b/src/Lean/Meta/CoeAttr.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Gabriel Ebner. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Gabriel Ebner, Mario Carneiro, Leonardo de Moura -/ +prelude import Lean.Attributes import Lean.ScopedEnvExtension import Lean.Meta.FunInfo diff --git a/src/Lean/Meta/CollectFVars.lean b/src/Lean/Meta/CollectFVars.lean index f787070eea..61fee76a6e 100644 --- a/src/Lean/Meta/CollectFVars.lean +++ b/src/Lean/Meta/CollectFVars.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich -/ +prelude import Lean.Util.CollectFVars import Lean.Meta.Basic diff --git a/src/Lean/Meta/CollectMVars.lean b/src/Lean/Meta/CollectMVars.lean index bcde280f49..0bb58aa8e6 100644 --- a/src/Lean/Meta/CollectMVars.lean +++ b/src/Lean/Meta/CollectMVars.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Util.CollectMVars import Lean.Meta.Basic diff --git a/src/Lean/Meta/CongrTheorems.lean b/src/Lean/Meta/CongrTheorems.lean index 1e63a91af1..498e2f9bf9 100644 --- a/src/Lean/Meta/CongrTheorems.lean +++ b/src/Lean/Meta/CongrTheorems.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.AppBuilder import Lean.Class diff --git a/src/Lean/Meta/Constructions.lean b/src/Lean/Meta/Constructions.lean index a3dc55cc46..4eabaf4885 100644 --- a/src/Lean/Meta/Constructions.lean +++ b/src/Lean/Meta/Constructions.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.AuxRecursor import Lean.Meta.AppBuilder diff --git a/src/Lean/Meta/DecLevel.lean b/src/Lean/Meta/DecLevel.lean index 3cc5fe3c91..35c92b5324 100644 --- a/src/Lean/Meta/DecLevel.lean +++ b/src/Lean/Meta/DecLevel.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Basic import Lean.Meta.InferType diff --git a/src/Lean/Meta/DiscrTree.lean b/src/Lean/Meta/DiscrTree.lean index 0e390142e0..9b569b7f0c 100644 --- a/src/Lean/Meta/DiscrTree.lean +++ b/src/Lean/Meta/DiscrTree.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Jannis Limperg, Scott Morrison -/ +prelude import Lean.Meta.WHNF import Lean.Meta.Transform import Lean.Meta.DiscrTreeTypes diff --git a/src/Lean/Meta/DiscrTreeTypes.lean b/src/Lean/Meta/DiscrTreeTypes.lean index 89c8fc82c0..d0e96aa625 100644 --- a/src/Lean/Meta/DiscrTreeTypes.lean +++ b/src/Lean/Meta/DiscrTreeTypes.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Expr import Lean.ToExpr diff --git a/src/Lean/Meta/Eqns.lean b/src/Lean/Meta/Eqns.lean index 1f24631df8..343a779c28 100644 --- a/src/Lean/Meta/Eqns.lean +++ b/src/Lean/Meta/Eqns.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Basic import Lean.Meta.AppBuilder diff --git a/src/Lean/Meta/Eval.lean b/src/Lean/Meta/Eval.lean index 5145a67df9..d4aa167213 100644 --- a/src/Lean/Meta/Eval.lean +++ b/src/Lean/Meta/Eval.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Sebastian Ullrich. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Ullrich, Leonardo de Moura -/ +prelude import Lean.Meta.Check namespace Lean.Meta diff --git a/src/Lean/Meta/ExprDefEq.lean b/src/Lean/Meta/ExprDefEq.lean index 086fa1fc6c..be730e9cbb 100644 --- a/src/Lean/Meta/ExprDefEq.lean +++ b/src/Lean/Meta/ExprDefEq.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Offset import Lean.Meta.UnificationHint import Lean.Util.OccursCheck diff --git a/src/Lean/Meta/ExprLens.lean b/src/Lean/Meta/ExprLens.lean index a794eaafde..9caa59e099 100644 --- a/src/Lean/Meta/ExprLens.lean +++ b/src/Lean/Meta/ExprLens.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 E.W.Ayers. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: E.W.Ayers -/ +prelude import Lean.Meta.Basic import Lean.SubExpr diff --git a/src/Lean/Meta/ExprTraverse.lean b/src/Lean/Meta/ExprTraverse.lean index 12aa047833..5ee365fc3c 100644 --- a/src/Lean/Meta/ExprTraverse.lean +++ b/src/Lean/Meta/ExprTraverse.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 E.W.Ayers. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: E.W.Ayers -/ +prelude import Lean.Meta.Basic import Lean.SubExpr diff --git a/src/Lean/Meta/ForEachExpr.lean b/src/Lean/Meta/ForEachExpr.lean index b0c729ce81..cc73c7810b 100644 --- a/src/Lean/Meta/ForEachExpr.lean +++ b/src/Lean/Meta/ForEachExpr.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Expr import Lean.Util.MonadCache import Lean.Meta.Basic diff --git a/src/Lean/Meta/FunInfo.lean b/src/Lean/Meta/FunInfo.lean index 9194fa7bd5..34d6e318aa 100644 --- a/src/Lean/Meta/FunInfo.lean +++ b/src/Lean/Meta/FunInfo.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Basic import Lean.Meta.InferType diff --git a/src/Lean/Meta/GeneralizeTelescope.lean b/src/Lean/Meta/GeneralizeTelescope.lean index d6a77e87ed..7fadafbd9e 100644 --- a/src/Lean/Meta/GeneralizeTelescope.lean +++ b/src/Lean/Meta/GeneralizeTelescope.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.KAbstract import Lean.Meta.Check diff --git a/src/Lean/Meta/GeneralizeVars.lean b/src/Lean/Meta/GeneralizeVars.lean index 127903bd0f..ff8701251c 100644 --- a/src/Lean/Meta/GeneralizeVars.lean +++ b/src/Lean/Meta/GeneralizeVars.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Basic import Lean.Util.CollectFVars diff --git a/src/Lean/Meta/GetUnfoldableConst.lean b/src/Lean/Meta/GetUnfoldableConst.lean index 77c7bee075..bb71077af4 100644 --- a/src/Lean/Meta/GetUnfoldableConst.lean +++ b/src/Lean/Meta/GetUnfoldableConst.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.GlobalInstances namespace Lean.Meta diff --git a/src/Lean/Meta/GlobalInstances.lean b/src/Lean/Meta/GlobalInstances.lean index db9b7e5c3e..1cb5401f00 100644 --- a/src/Lean/Meta/GlobalInstances.lean +++ b/src/Lean/Meta/GlobalInstances.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Basic import Lean.ScopedEnvExtension diff --git a/src/Lean/Meta/IndPredBelow.lean b/src/Lean/Meta/IndPredBelow.lean index ea6acdec42..83af0c774a 100644 --- a/src/Lean/Meta/IndPredBelow.lean +++ b/src/Lean/Meta/IndPredBelow.lean @@ -3,7 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Dany Fabian -/ - +prelude import Lean.Meta.Constructions import Lean.Meta.Match.Match diff --git a/src/Lean/Meta/Inductive.lean b/src/Lean/Meta/Inductive.lean index 25ba641af1..98f06a779e 100644 --- a/src/Lean/Meta/Inductive.lean +++ b/src/Lean/Meta/Inductive.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Basic /-! # Helper methods for inductive datatypes -/ diff --git a/src/Lean/Meta/InferType.lean b/src/Lean/Meta/InferType.lean index fa2a437199..163755dc0d 100644 --- a/src/Lean/Meta/InferType.lean +++ b/src/Lean/Meta/InferType.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Data.LBool import Lean.Meta.Basic diff --git a/src/Lean/Meta/Injective.lean b/src/Lean/Meta/Injective.lean index d4d5cef408..a1a3ea6a6a 100644 --- a/src/Lean/Meta/Injective.lean +++ b/src/Lean/Meta/Injective.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Transform import Lean.Meta.Tactic.Injection import Lean.Meta.Tactic.Apply diff --git a/src/Lean/Meta/Instances.lean b/src/Lean/Meta/Instances.lean index 953e5e1c59..98697e050b 100644 --- a/src/Lean/Meta/Instances.lean +++ b/src/Lean/Meta/Instances.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.ScopedEnvExtension import Lean.Meta.GlobalInstances import Lean.Meta.DiscrTree diff --git a/src/Lean/Meta/KAbstract.lean b/src/Lean/Meta/KAbstract.lean index 8196f47c14..eedd285e15 100644 --- a/src/Lean/Meta/KAbstract.lean +++ b/src/Lean/Meta/KAbstract.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura -/ +prelude import Lean.HeadIndex import Lean.Meta.Basic diff --git a/src/Lean/Meta/KExprMap.lean b/src/Lean/Meta/KExprMap.lean index 55c61e9133..2472df8f3b 100644 --- a/src/Lean/Meta/KExprMap.lean +++ b/src/Lean/Meta/KExprMap.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura -/ +prelude import Lean.HeadIndex import Lean.Meta.Basic diff --git a/src/Lean/Meta/LevelDefEq.lean b/src/Lean/Meta/LevelDefEq.lean index d8bdfef123..82607a327b 100644 --- a/src/Lean/Meta/LevelDefEq.lean +++ b/src/Lean/Meta/LevelDefEq.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Util.CollectMVars import Lean.Meta.Basic import Lean.Meta.InferType diff --git a/src/Lean/Meta/Match.lean b/src/Lean/Meta/Match.lean index 676da5b6b7..15514eb876 100644 --- a/src/Lean/Meta/Match.lean +++ b/src/Lean/Meta/Match.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Match.MatchPatternAttr import Lean.Meta.Match.Match import Lean.Meta.Match.CaseValues diff --git a/src/Lean/Meta/Match/Basic.lean b/src/Lean/Meta/Match/Basic.lean index c674067bab..82679f2719 100644 --- a/src/Lean/Meta/Match/Basic.lean +++ b/src/Lean/Meta/Match/Basic.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Check import Lean.Meta.CollectFVars import Lean.Meta.Match.MatcherInfo diff --git a/src/Lean/Meta/Match/CaseArraySizes.lean b/src/Lean/Meta/Match/CaseArraySizes.lean index 3d9832d7f4..d3a78ed21e 100644 --- a/src/Lean/Meta/Match/CaseArraySizes.lean +++ b/src/Lean/Meta/Match/CaseArraySizes.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Tactic.Assert import Lean.Meta.Match.CaseValues diff --git a/src/Lean/Meta/Match/CaseValues.lean b/src/Lean/Meta/Match/CaseValues.lean index aac439af6c..93726bd213 100644 --- a/src/Lean/Meta/Match/CaseValues.lean +++ b/src/Lean/Meta/Match/CaseValues.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Tactic.Subst import Lean.Meta.Tactic.Clear import Lean.Meta.Match.Value diff --git a/src/Lean/Meta/Match/MVarRenaming.lean b/src/Lean/Meta/Match/MVarRenaming.lean index 366ad65e34..f177c8dc87 100644 --- a/src/Lean/Meta/Match/MVarRenaming.lean +++ b/src/Lean/Meta/Match/MVarRenaming.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Util.ReplaceExpr namespace Lean.Meta diff --git a/src/Lean/Meta/Match/Match.lean b/src/Lean/Meta/Match/Match.lean index 3834316cf6..e3cdc9259c 100644 --- a/src/Lean/Meta/Match/Match.lean +++ b/src/Lean/Meta/Match/Match.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Check import Lean.Meta.Closure import Lean.Meta.Tactic.Cases diff --git a/src/Lean/Meta/Match/MatchEqs.lean b/src/Lean/Meta/Match/MatchEqs.lean index f9212a366f..75f1093a0e 100644 --- a/src/Lean/Meta/Match/MatchEqs.lean +++ b/src/Lean/Meta/Match/MatchEqs.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Match.Match import Lean.Meta.Match.MatchEqsExt import Lean.Meta.Tactic.Apply diff --git a/src/Lean/Meta/Match/MatchEqsExt.lean b/src/Lean/Meta/Match/MatchEqsExt.lean index 68be6001ed..6cc2058300 100644 --- a/src/Lean/Meta/Match/MatchEqsExt.lean +++ b/src/Lean/Meta/Match/MatchEqsExt.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Basic namespace Lean.Meta.Match diff --git a/src/Lean/Meta/Match/MatchPatternAttr.lean b/src/Lean/Meta/Match/MatchPatternAttr.lean index fb6044fb41..f731e0ab3a 100644 --- a/src/Lean/Meta/Match/MatchPatternAttr.lean +++ b/src/Lean/Meta/Match/MatchPatternAttr.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Attributes namespace Lean diff --git a/src/Lean/Meta/Match/MatcherInfo.lean b/src/Lean/Meta/Match/MatcherInfo.lean index 994b7ae572..d30a6b6d48 100644 --- a/src/Lean/Meta/Match/MatcherInfo.lean +++ b/src/Lean/Meta/Match/MatcherInfo.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Basic namespace Lean.Meta diff --git a/src/Lean/Meta/Match/Value.lean b/src/Lean/Meta/Match/Value.lean index ba6e35927b..1b9f6215d2 100644 --- a/src/Lean/Meta/Match/Value.lean +++ b/src/Lean/Meta/Match/Value.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Expr namespace Lean.Meta diff --git a/src/Lean/Meta/MatchUtil.lean b/src/Lean/Meta/MatchUtil.lean index a4e8b5ffa0..2cef9fb77a 100644 --- a/src/Lean/Meta/MatchUtil.lean +++ b/src/Lean/Meta/MatchUtil.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Util.Recognizers import Lean.Meta.Basic diff --git a/src/Lean/Meta/Offset.lean b/src/Lean/Meta/Offset.lean index 3d87c7f971..ba46b435b2 100644 --- a/src/Lean/Meta/Offset.lean +++ b/src/Lean/Meta/Offset.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Data.LBool import Lean.Meta.InferType import Lean.Meta.AppBuilder diff --git a/src/Lean/Meta/PPGoal.lean b/src/Lean/Meta/PPGoal.lean index 23ac5268bb..1ca8d65789 100644 --- a/src/Lean/Meta/PPGoal.lean +++ b/src/Lean/Meta/PPGoal.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura -/ +prelude import Lean.Meta.InferType namespace Lean.Meta diff --git a/src/Lean/Meta/RecursorInfo.lean b/src/Lean/Meta/RecursorInfo.lean index 824d069673..342f93e4ac 100644 --- a/src/Lean/Meta/RecursorInfo.lean +++ b/src/Lean/Meta/RecursorInfo.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.AuxRecursor import Lean.Util.FindExpr import Lean.Meta.Basic diff --git a/src/Lean/Meta/Reduce.lean b/src/Lean/Meta/Reduce.lean index 27765dc655..3fb4d31e83 100644 --- a/src/Lean/Meta/Reduce.lean +++ b/src/Lean/Meta/Reduce.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Basic import Lean.Meta.FunInfo import Lean.Util.MonadCache diff --git a/src/Lean/Meta/ReduceEval.lean b/src/Lean/Meta/ReduceEval.lean index e6db75a10b..e25069ca81 100644 --- a/src/Lean/Meta/ReduceEval.lean +++ b/src/Lean/Meta/ReduceEval.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Sebastian Ullrich. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Ullrich -/ +prelude import Lean.Meta.Offset /-! Evaluation by reduction -/ diff --git a/src/Lean/Meta/SizeOf.lean b/src/Lean/Meta/SizeOf.lean index be337143d0..fa38b984cc 100644 --- a/src/Lean/Meta/SizeOf.lean +++ b/src/Lean/Meta/SizeOf.lean @@ -3,6 +3,8 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude +import Init.Data.List.BasicAux import Lean.Meta.AppBuilder import Lean.Meta.Instances diff --git a/src/Lean/Meta/Structure.lean b/src/Lean/Meta/Structure.lean index f7f46a4622..63f5b494a9 100644 --- a/src/Lean/Meta/Structure.lean +++ b/src/Lean/Meta/Structure.lean @@ -5,6 +5,7 @@ Authors: Leonardo de Moura Additional helper methods that require `MetaM` infrastructure. -/ +prelude import Lean.Structure import Lean.Meta.AppBuilder diff --git a/src/Lean/Meta/SynthInstance.lean b/src/Lean/Meta/SynthInstance.lean index a43a168c01..6233a8eb75 100644 --- a/src/Lean/Meta/SynthInstance.lean +++ b/src/Lean/Meta/SynthInstance.lean @@ -5,6 +5,8 @@ Authors: Daniel Selsam, Leonardo de Moura Type class instance synthesizer using tabled resolution. -/ +prelude +import Init.Data.Array.InsertionSort import Lean.Meta.Basic import Lean.Meta.Instances import Lean.Meta.AbstractMVars diff --git a/src/Lean/Meta/Tactic.lean b/src/Lean/Meta/Tactic.lean index d4ef86fd02..9bbfee705c 100644 --- a/src/Lean/Meta/Tactic.lean +++ b/src/Lean/Meta/Tactic.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Tactic.Intro import Lean.Meta.Tactic.Assumption import Lean.Meta.Tactic.Contradiction diff --git a/src/Lean/Meta/Tactic/AC.lean b/src/Lean/Meta/Tactic/AC.lean index bd8aede0ec..15469048c2 100644 --- a/src/Lean/Meta/Tactic/AC.lean +++ b/src/Lean/Meta/Tactic/AC.lean @@ -3,4 +3,5 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Dany Fabian -/ +prelude import Lean.Meta.Tactic.AC.Main diff --git a/src/Lean/Meta/Tactic/AC/Main.lean b/src/Lean/Meta/Tactic/AC/Main.lean index e3abecc49f..cec11750ec 100644 --- a/src/Lean/Meta/Tactic/AC/Main.lean +++ b/src/Lean/Meta/Tactic/AC/Main.lean @@ -3,6 +3,8 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Dany Fabian -/ +prelude +import Init.Data.AC import Lean.Meta.AppBuilder import Lean.Meta.Tactic.Refl import Lean.Meta.Tactic.Simp.Main diff --git a/src/Lean/Meta/Tactic/Acyclic.lean b/src/Lean/Meta/Tactic/Acyclic.lean index 7c7d9a39c0..104f0064ed 100644 --- a/src/Lean/Meta/Tactic/Acyclic.lean +++ b/src/Lean/Meta/Tactic/Acyclic.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.MatchUtil import Lean.Meta.Tactic.Simp.Main diff --git a/src/Lean/Meta/Tactic/Apply.lean b/src/Lean/Meta/Tactic/Apply.lean index c8c5532199..252b262557 100644 --- a/src/Lean/Meta/Tactic/Apply.lean +++ b/src/Lean/Meta/Tactic/Apply.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Siddhartha Gadgil -/ +prelude import Lean.Util.FindMVar import Lean.Meta.SynthInstance import Lean.Meta.CollectMVars diff --git a/src/Lean/Meta/Tactic/Assert.lean b/src/Lean/Meta/Tactic/Assert.lean index 6d565fe008..627adf5d6c 100644 --- a/src/Lean/Meta/Tactic/Assert.lean +++ b/src/Lean/Meta/Tactic/Assert.lean @@ -3,6 +3,8 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude +import Init.Data.List.BasicAux import Lean.Meta.Tactic.FVarSubst import Lean.Meta.Tactic.Intro import Lean.Meta.Tactic.Revert diff --git a/src/Lean/Meta/Tactic/Assumption.lean b/src/Lean/Meta/Tactic/Assumption.lean index 83f275a300..629ff573cc 100644 --- a/src/Lean/Meta/Tactic/Assumption.lean +++ b/src/Lean/Meta/Tactic/Assumption.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Tactic.Util namespace Lean.Meta diff --git a/src/Lean/Meta/Tactic/AuxLemma.lean b/src/Lean/Meta/Tactic/AuxLemma.lean index d95ac684de..eeb21b8c0d 100644 --- a/src/Lean/Meta/Tactic/AuxLemma.lean +++ b/src/Lean/Meta/Tactic/AuxLemma.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Basic namespace Lean.Meta diff --git a/src/Lean/Meta/Tactic/Cases.lean b/src/Lean/Meta/Tactic/Cases.lean index 3fd14009f4..e25f39aae8 100644 --- a/src/Lean/Meta/Tactic/Cases.lean +++ b/src/Lean/Meta/Tactic/Cases.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.AppBuilder import Lean.Meta.Tactic.Induction import Lean.Meta.Tactic.Injection diff --git a/src/Lean/Meta/Tactic/Cleanup.lean b/src/Lean/Meta/Tactic/Cleanup.lean index 91692c0ad6..3cb5bfb0e2 100644 --- a/src/Lean/Meta/Tactic/Cleanup.lean +++ b/src/Lean/Meta/Tactic/Cleanup.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.CollectFVars import Lean.Meta.Tactic.Clear diff --git a/src/Lean/Meta/Tactic/Clear.lean b/src/Lean/Meta/Tactic/Clear.lean index c996fe8839..5a20061201 100644 --- a/src/Lean/Meta/Tactic/Clear.lean +++ b/src/Lean/Meta/Tactic/Clear.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Tactic.Util namespace Lean.Meta diff --git a/src/Lean/Meta/Tactic/Congr.lean b/src/Lean/Meta/Tactic/Congr.lean index 90cfb6affe..518ffe646c 100644 --- a/src/Lean/Meta/Tactic/Congr.lean +++ b/src/Lean/Meta/Tactic/Congr.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.CongrTheorems import Lean.Meta.Tactic.Assert import Lean.Meta.Tactic.Apply diff --git a/src/Lean/Meta/Tactic/Constructor.lean b/src/Lean/Meta/Tactic/Constructor.lean index ff6ed55692..004c54277b 100644 --- a/src/Lean/Meta/Tactic/Constructor.lean +++ b/src/Lean/Meta/Tactic/Constructor.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Check import Lean.Meta.Tactic.Util import Lean.Meta.Tactic.Apply diff --git a/src/Lean/Meta/Tactic/Contradiction.lean b/src/Lean/Meta/Tactic/Contradiction.lean index 607f1e9d95..a296d92fb8 100644 --- a/src/Lean/Meta/Tactic/Contradiction.lean +++ b/src/Lean/Meta/Tactic/Contradiction.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.MatchUtil import Lean.Meta.Tactic.Assumption import Lean.Meta.Tactic.Cases diff --git a/src/Lean/Meta/Tactic/Delta.lean b/src/Lean/Meta/Tactic/Delta.lean index 925997ce41..321f5b1c83 100644 --- a/src/Lean/Meta/Tactic/Delta.lean +++ b/src/Lean/Meta/Tactic/Delta.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Transform import Lean.Meta.Tactic.Replace diff --git a/src/Lean/Meta/Tactic/ElimInfo.lean b/src/Lean/Meta/Tactic/ElimInfo.lean index 19153fc3be..9343a7ace2 100644 --- a/src/Lean/Meta/Tactic/ElimInfo.lean +++ b/src/Lean/Meta/Tactic/ElimInfo.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Basic import Lean.Meta.Check import Lean.ScopedEnvExtension diff --git a/src/Lean/Meta/Tactic/FVarSubst.lean b/src/Lean/Meta/Tactic/FVarSubst.lean index 3cbd2e4d98..281ed4f2e7 100644 --- a/src/Lean/Meta/Tactic/FVarSubst.lean +++ b/src/Lean/Meta/Tactic/FVarSubst.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Mario Carneiro -/ +prelude import Lean.Data.AssocList import Lean.Expr import Lean.LocalContext diff --git a/src/Lean/Meta/Tactic/Generalize.lean b/src/Lean/Meta/Tactic/Generalize.lean index ff3993ba39..d2a9a0df1f 100644 --- a/src/Lean/Meta/Tactic/Generalize.lean +++ b/src/Lean/Meta/Tactic/Generalize.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.KAbstract import Lean.Meta.Tactic.Util import Lean.Meta.Tactic.Intro diff --git a/src/Lean/Meta/Tactic/Induction.lean b/src/Lean/Meta/Tactic/Induction.lean index d8bb03cf24..5ae4a2c8e0 100644 --- a/src/Lean/Meta/Tactic/Induction.lean +++ b/src/Lean/Meta/Tactic/Induction.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.RecursorInfo import Lean.Meta.SynthInstance import Lean.Meta.Tactic.Util diff --git a/src/Lean/Meta/Tactic/Injection.lean b/src/Lean/Meta/Tactic/Injection.lean index 584df558a3..9729140e04 100644 --- a/src/Lean/Meta/Tactic/Injection.lean +++ b/src/Lean/Meta/Tactic/Injection.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.AppBuilder import Lean.Meta.MatchUtil import Lean.Meta.Tactic.Clear diff --git a/src/Lean/Meta/Tactic/Intro.lean b/src/Lean/Meta/Tactic/Intro.lean index 64e3312e99..6744d8780b 100644 --- a/src/Lean/Meta/Tactic/Intro.lean +++ b/src/Lean/Meta/Tactic/Intro.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Tactic.Util namespace Lean.Meta diff --git a/src/Lean/Meta/Tactic/LinearArith.lean b/src/Lean/Meta/Tactic/LinearArith.lean index cadcc6067f..bec9a08d2b 100644 --- a/src/Lean/Meta/Tactic/LinearArith.lean +++ b/src/Lean/Meta/Tactic/LinearArith.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Sebastian Ullrich. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Ullrich -/ +prelude import Lean.Meta.Tactic.LinearArith.Solver import Lean.Meta.Tactic.LinearArith.Nat import Lean.Meta.Tactic.LinearArith.Main diff --git a/src/Lean/Meta/Tactic/LinearArith/Basic.lean b/src/Lean/Meta/Tactic/LinearArith/Basic.lean index 4e35c0449c..0811a0a71a 100644 --- a/src/Lean/Meta/Tactic/LinearArith/Basic.lean +++ b/src/Lean/Meta/Tactic/LinearArith/Basic.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Expr namespace Lean.Meta.Linear diff --git a/src/Lean/Meta/Tactic/LinearArith/Main.lean b/src/Lean/Meta/Tactic/LinearArith/Main.lean index 7145f38cc3..a3bdd8e9b7 100644 --- a/src/Lean/Meta/Tactic/LinearArith/Main.lean +++ b/src/Lean/Meta/Tactic/LinearArith/Main.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Tactic.LinearArith.Nat namespace Lean.Meta.Linear diff --git a/src/Lean/Meta/Tactic/LinearArith/Nat.lean b/src/Lean/Meta/Tactic/LinearArith/Nat.lean index a31bdc1732..d36c509d7e 100644 --- a/src/Lean/Meta/Tactic/LinearArith/Nat.lean +++ b/src/Lean/Meta/Tactic/LinearArith/Nat.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Tactic.LinearArith.Nat.Basic import Lean.Meta.Tactic.LinearArith.Nat.Simp import Lean.Meta.Tactic.LinearArith.Nat.Solver diff --git a/src/Lean/Meta/Tactic/LinearArith/Nat/Basic.lean b/src/Lean/Meta/Tactic/LinearArith/Nat/Basic.lean index 250e3aa771..3be8fd9ece 100644 --- a/src/Lean/Meta/Tactic/LinearArith/Nat/Basic.lean +++ b/src/Lean/Meta/Tactic/LinearArith/Nat/Basic.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Check import Lean.Meta.Offset import Lean.Meta.KExprMap diff --git a/src/Lean/Meta/Tactic/LinearArith/Nat/Simp.lean b/src/Lean/Meta/Tactic/LinearArith/Nat/Simp.lean index 75bd1b4a8a..576dcccba2 100644 --- a/src/Lean/Meta/Tactic/LinearArith/Nat/Simp.lean +++ b/src/Lean/Meta/Tactic/LinearArith/Nat/Simp.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Tactic.LinearArith.Nat.Basic namespace Lean.Meta.Linear.Nat diff --git a/src/Lean/Meta/Tactic/LinearArith/Nat/Solver.lean b/src/Lean/Meta/Tactic/LinearArith/Nat/Solver.lean index 59fc01fdaf..49c58eecf6 100644 --- a/src/Lean/Meta/Tactic/LinearArith/Nat/Solver.lean +++ b/src/Lean/Meta/Tactic/LinearArith/Nat/Solver.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Tactic.LinearArith.Solver import Lean.Meta.Tactic.LinearArith.Nat.Basic diff --git a/src/Lean/Meta/Tactic/LinearArith/Simp.lean b/src/Lean/Meta/Tactic/LinearArith/Simp.lean index 81f3f96e75..2dd5d20d21 100644 --- a/src/Lean/Meta/Tactic/LinearArith/Simp.lean +++ b/src/Lean/Meta/Tactic/LinearArith/Simp.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Tactic.LinearArith.Basic import Lean.Meta.Tactic.LinearArith.Nat.Simp diff --git a/src/Lean/Meta/Tactic/LinearArith/Solver.lean b/src/Lean/Meta/Tactic/LinearArith/Solver.lean index adcf75f109..ec779978d6 100644 --- a/src/Lean/Meta/Tactic/LinearArith/Solver.lean +++ b/src/Lean/Meta/Tactic/LinearArith/Solver.lean @@ -3,6 +3,9 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude +import Init.Data.Ord +import Init.Data.Array.DecidableEq import Lean.Data.Rat namespace Lean.Meta.Linear diff --git a/src/Lean/Meta/Tactic/Refl.lean b/src/Lean/Meta/Tactic/Refl.lean index f40d595d4d..13c61a1881 100644 --- a/src/Lean/Meta/Tactic/Refl.lean +++ b/src/Lean/Meta/Tactic/Refl.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Reduce import Lean.Meta.Tactic.Util import Lean.Meta.Tactic.Apply diff --git a/src/Lean/Meta/Tactic/Rename.lean b/src/Lean/Meta/Tactic/Rename.lean index ce92193ab3..706c3ab7ca 100644 --- a/src/Lean/Meta/Tactic/Rename.lean +++ b/src/Lean/Meta/Tactic/Rename.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Tactic.Util namespace Lean.Meta diff --git a/src/Lean/Meta/Tactic/Repeat.lean b/src/Lean/Meta/Tactic/Repeat.lean index 86d0490955..ac56f054d6 100644 --- a/src/Lean/Meta/Tactic/Repeat.lean +++ b/src/Lean/Meta/Tactic/Repeat.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro, Scott Morrison -/ +prelude import Lean.Meta.Basic namespace Lean.Meta diff --git a/src/Lean/Meta/Tactic/Replace.lean b/src/Lean/Meta/Tactic/Replace.lean index 99df6e5df5..aea7bb8ef2 100644 --- a/src/Lean/Meta/Tactic/Replace.lean +++ b/src/Lean/Meta/Tactic/Replace.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Util.ForEachExpr import Lean.Elab.InfoTree.Main import Lean.Meta.AppBuilder diff --git a/src/Lean/Meta/Tactic/Revert.lean b/src/Lean/Meta/Tactic/Revert.lean index c38195b682..e0b9cfec99 100644 --- a/src/Lean/Meta/Tactic/Revert.lean +++ b/src/Lean/Meta/Tactic/Revert.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Tactic.Clear namespace Lean.Meta diff --git a/src/Lean/Meta/Tactic/Rewrite.lean b/src/Lean/Meta/Tactic/Rewrite.lean index 6072f38fa3..118c636d87 100644 --- a/src/Lean/Meta/Tactic/Rewrite.lean +++ b/src/Lean/Meta/Tactic/Rewrite.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.AppBuilder import Lean.Meta.MatchUtil import Lean.Meta.KAbstract diff --git a/src/Lean/Meta/Tactic/Simp.lean b/src/Lean/Meta/Tactic/Simp.lean index 9b40225b31..3afb43498f 100644 --- a/src/Lean/Meta/Tactic/Simp.lean +++ b/src/Lean/Meta/Tactic/Simp.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Tactic.Simp.SimpTheorems import Lean.Meta.Tactic.Simp.SimpCongrTheorems import Lean.Meta.Tactic.Simp.Types diff --git a/src/Lean/Meta/Tactic/Simp/BuiltinSimprocs.lean b/src/Lean/Meta/Tactic/Simp/BuiltinSimprocs.lean index cccd0fc86d..624019b736 100644 --- a/src/Lean/Meta/Tactic/Simp/BuiltinSimprocs.lean +++ b/src/Lean/Meta/Tactic/Simp/BuiltinSimprocs.lean @@ -3,6 +3,7 @@ Copyright (c) 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Tactic.Simp.BuiltinSimprocs.Core import Lean.Meta.Tactic.Simp.BuiltinSimprocs.Nat import Lean.Meta.Tactic.Simp.BuiltinSimprocs.Fin diff --git a/src/Lean/Meta/Tactic/Simp/BuiltinSimprocs/Core.lean b/src/Lean/Meta/Tactic/Simp/BuiltinSimprocs/Core.lean index bbf5c03333..948e3241ff 100644 --- a/src/Lean/Meta/Tactic/Simp/BuiltinSimprocs/Core.lean +++ b/src/Lean/Meta/Tactic/Simp/BuiltinSimprocs/Core.lean @@ -3,6 +3,8 @@ Copyright (c) 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude +import Init.Simproc import Lean.Meta.Tactic.Simp.Simproc open Lean Meta Simp diff --git a/src/Lean/Meta/Tactic/Simp/BuiltinSimprocs/Fin.lean b/src/Lean/Meta/Tactic/Simp/BuiltinSimprocs/Fin.lean index 55adb90719..9165bc5b35 100644 --- a/src/Lean/Meta/Tactic/Simp/BuiltinSimprocs/Fin.lean +++ b/src/Lean/Meta/Tactic/Simp/BuiltinSimprocs/Fin.lean @@ -3,6 +3,7 @@ Copyright (c) 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.ToExpr import Lean.Meta.Tactic.Simp.BuiltinSimprocs.Nat diff --git a/src/Lean/Meta/Tactic/Simp/BuiltinSimprocs/Int.lean b/src/Lean/Meta/Tactic/Simp/BuiltinSimprocs/Int.lean index 58d5f1a0f5..5064bd8307 100644 --- a/src/Lean/Meta/Tactic/Simp/BuiltinSimprocs/Int.lean +++ b/src/Lean/Meta/Tactic/Simp/BuiltinSimprocs/Int.lean @@ -3,6 +3,7 @@ Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.ToExpr import Lean.Meta.Tactic.Simp.BuiltinSimprocs.Nat diff --git a/src/Lean/Meta/Tactic/Simp/BuiltinSimprocs/Nat.lean b/src/Lean/Meta/Tactic/Simp/BuiltinSimprocs/Nat.lean index deb7100c33..357f745a46 100644 --- a/src/Lean/Meta/Tactic/Simp/BuiltinSimprocs/Nat.lean +++ b/src/Lean/Meta/Tactic/Simp/BuiltinSimprocs/Nat.lean @@ -3,6 +3,8 @@ Copyright (c) 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude +import Init.Simproc import Lean.Meta.Offset import Lean.Meta.Tactic.Simp.Simproc import Lean.Meta.Tactic.Simp.BuiltinSimprocs.Util diff --git a/src/Lean/Meta/Tactic/Simp/BuiltinSimprocs/UInt.lean b/src/Lean/Meta/Tactic/Simp/BuiltinSimprocs/UInt.lean index 8fb077a04a..d230504144 100644 --- a/src/Lean/Meta/Tactic/Simp/BuiltinSimprocs/UInt.lean +++ b/src/Lean/Meta/Tactic/Simp/BuiltinSimprocs/UInt.lean @@ -3,6 +3,7 @@ Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Tactic.Simp.BuiltinSimprocs.Nat open Lean Meta Simp diff --git a/src/Lean/Meta/Tactic/Simp/BuiltinSimprocs/Util.lean b/src/Lean/Meta/Tactic/Simp/BuiltinSimprocs/Util.lean index 2d4a6184a9..72d9ade973 100644 --- a/src/Lean/Meta/Tactic/Simp/BuiltinSimprocs/Util.lean +++ b/src/Lean/Meta/Tactic/Simp/BuiltinSimprocs/Util.lean @@ -3,6 +3,7 @@ Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Tactic.Simp.Simproc namespace Lean.Meta.Simp diff --git a/src/Lean/Meta/Tactic/Simp/Main.lean b/src/Lean/Meta/Tactic/Simp/Main.lean index c8846c8f9b..45a66b8c5c 100644 --- a/src/Lean/Meta/Tactic/Simp/Main.lean +++ b/src/Lean/Meta/Tactic/Simp/Main.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Transform import Lean.Meta.Tactic.Replace import Lean.Meta.Tactic.UnifyEq diff --git a/src/Lean/Meta/Tactic/Simp/RegisterCommand.lean b/src/Lean/Meta/Tactic/Simp/RegisterCommand.lean index 65497836de..7f8829a8da 100644 --- a/src/Lean/Meta/Tactic/Simp/RegisterCommand.lean +++ b/src/Lean/Meta/Tactic/Simp/RegisterCommand.lean @@ -3,6 +3,7 @@ Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Tactic.Simp.SimpTheorems import Lean.Meta.Tactic.Simp.Simproc diff --git a/src/Lean/Meta/Tactic/Simp/Rewrite.lean b/src/Lean/Meta/Tactic/Simp/Rewrite.lean index 3d60d435b8..39197f24fc 100644 --- a/src/Lean/Meta/Tactic/Simp/Rewrite.lean +++ b/src/Lean/Meta/Tactic/Simp/Rewrite.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.ACLt import Lean.Meta.Match.MatchEqsExt import Lean.Meta.AppBuilder diff --git a/src/Lean/Meta/Tactic/Simp/SimpAll.lean b/src/Lean/Meta/Tactic/Simp/SimpAll.lean index a5ba1fc44f..fa363c2534 100644 --- a/src/Lean/Meta/Tactic/Simp/SimpAll.lean +++ b/src/Lean/Meta/Tactic/Simp/SimpAll.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Tactic.Clear import Lean.Meta.Tactic.Util import Lean.Meta.Tactic.Simp.Main diff --git a/src/Lean/Meta/Tactic/Simp/SimpCongrTheorems.lean b/src/Lean/Meta/Tactic/Simp/SimpCongrTheorems.lean index c934ec7459..6b8189bcc4 100644 --- a/src/Lean/Meta/Tactic/Simp/SimpCongrTheorems.lean +++ b/src/Lean/Meta/Tactic/Simp/SimpCongrTheorems.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.ScopedEnvExtension import Lean.Util.Recognizers import Lean.Util.CollectMVars diff --git a/src/Lean/Meta/Tactic/Simp/SimpTheorems.lean b/src/Lean/Meta/Tactic/Simp/SimpTheorems.lean index 21ee949545..63e66ae031 100644 --- a/src/Lean/Meta/Tactic/Simp/SimpTheorems.lean +++ b/src/Lean/Meta/Tactic/Simp/SimpTheorems.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.ScopedEnvExtension import Lean.Util.Recognizers import Lean.Meta.DiscrTree diff --git a/src/Lean/Meta/Tactic/Simp/Simproc.lean b/src/Lean/Meta/Tactic/Simp/Simproc.lean index 221da5f603..5afc964ffe 100644 --- a/src/Lean/Meta/Tactic/Simp/Simproc.lean +++ b/src/Lean/Meta/Tactic/Simp/Simproc.lean @@ -3,6 +3,7 @@ Copyright (c) 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.ScopedEnvExtension import Lean.Compiler.InitAttr import Lean.Meta.DiscrTree diff --git a/src/Lean/Meta/Tactic/Simp/Types.lean b/src/Lean/Meta/Tactic/Simp/Types.lean index 28867c59d8..d52286b00b 100644 --- a/src/Lean/Meta/Tactic/Simp/Types.lean +++ b/src/Lean/Meta/Tactic/Simp/Types.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.AppBuilder import Lean.Meta.CongrTheorems import Lean.Meta.Tactic.Replace diff --git a/src/Lean/Meta/Tactic/Split.lean b/src/Lean/Meta/Tactic/Split.lean index ec4b67be42..18f65c2297 100644 --- a/src/Lean/Meta/Tactic/Split.lean +++ b/src/Lean/Meta/Tactic/Split.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Tactic.Simp.Main import Lean.Meta.Tactic.SplitIf import Lean.Meta.Tactic.Apply diff --git a/src/Lean/Meta/Tactic/SplitIf.lean b/src/Lean/Meta/Tactic/SplitIf.lean index eb5443be5d..2dab6a5455 100644 --- a/src/Lean/Meta/Tactic/SplitIf.lean +++ b/src/Lean/Meta/Tactic/SplitIf.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.LazyInitExtension import Lean.Meta.Tactic.Cases import Lean.Meta.Tactic.Simp.Main diff --git a/src/Lean/Meta/Tactic/Subst.lean b/src/Lean/Meta/Tactic/Subst.lean index 5b672f1cdb..8b3f484b34 100644 --- a/src/Lean/Meta/Tactic/Subst.lean +++ b/src/Lean/Meta/Tactic/Subst.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.AppBuilder import Lean.Meta.MatchUtil import Lean.Meta.Tactic.Util diff --git a/src/Lean/Meta/Tactic/TryThis.lean b/src/Lean/Meta/Tactic/TryThis.lean index f7d3142c4a..8be997216d 100644 --- a/src/Lean/Meta/Tactic/TryThis.lean +++ b/src/Lean/Meta/Tactic/TryThis.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Gabriel Ebner. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Gabriel Ebner, Mario Carneiro, Thomas Murrills -/ +prelude import Lean.Server.CodeActions import Lean.Widget.UserWidget import Lean.Data.Json.Elab diff --git a/src/Lean/Meta/Tactic/Unfold.lean b/src/Lean/Meta/Tactic/Unfold.lean index 8d9b79c08f..773df7f2ba 100644 --- a/src/Lean/Meta/Tactic/Unfold.lean +++ b/src/Lean/Meta/Tactic/Unfold.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Eqns import Lean.Meta.Tactic.Delta import Lean.Meta.Tactic.Simp.Main diff --git a/src/Lean/Meta/Tactic/UnifyEq.lean b/src/Lean/Meta/Tactic/UnifyEq.lean index edf83975e0..2c15d08ebb 100644 --- a/src/Lean/Meta/Tactic/UnifyEq.lean +++ b/src/Lean/Meta/Tactic/UnifyEq.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Tactic.Injection namespace Lean.Meta diff --git a/src/Lean/Meta/Tactic/Util.lean b/src/Lean/Meta/Tactic/Util.lean index e6fb759249..4d5870db27 100644 --- a/src/Lean/Meta/Tactic/Util.lean +++ b/src/Lean/Meta/Tactic/Util.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Util.ForEachExprWhere import Lean.Meta.Basic import Lean.Meta.AppBuilder diff --git a/src/Lean/Meta/Transform.lean b/src/Lean/Meta/Transform.lean index 4db24ed58c..ecc660a332 100644 --- a/src/Lean/Meta/Transform.lean +++ b/src/Lean/Meta/Transform.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Meta.Basic namespace Lean diff --git a/src/Lean/Meta/TransparencyMode.lean b/src/Lean/Meta/TransparencyMode.lean index 9c947ebb69..cc0c7174ba 100644 --- a/src/Lean/Meta/TransparencyMode.lean +++ b/src/Lean/Meta/TransparencyMode.lean @@ -3,6 +3,8 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude +import Init.Data.UInt.Basic namespace Lean.Meta namespace TransparencyMode diff --git a/src/Lean/Meta/UnificationHint.lean b/src/Lean/Meta/UnificationHint.lean index d08e1e9535..743d5f4ffb 100644 --- a/src/Lean/Meta/UnificationHint.lean +++ b/src/Lean/Meta/UnificationHint.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.ScopedEnvExtension import Lean.Util.Recognizers import Lean.Meta.DiscrTree diff --git a/src/Lean/Meta/WHNF.lean b/src/Lean/Meta/WHNF.lean index 0df12e501f..a08eb7c0a4 100644 --- a/src/Lean/Meta/WHNF.lean +++ b/src/Lean/Meta/WHNF.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Structure import Lean.Util.Recognizers import Lean.Meta.GetUnfoldableConst diff --git a/src/Lean/MetavarContext.lean b/src/Lean/MetavarContext.lean index 1cfabb4cb5..98e84d86c8 100644 --- a/src/Lean/MetavarContext.lean +++ b/src/Lean/MetavarContext.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Util.MonadCache import Lean.LocalContext diff --git a/src/Lean/Modifiers.lean b/src/Lean/Modifiers.lean index 741c69af09..66674b4c61 100644 --- a/src/Lean/Modifiers.lean +++ b/src/Lean/Modifiers.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Environment namespace Lean diff --git a/src/Lean/MonadEnv.lean b/src/Lean/MonadEnv.lean index 6e3b4011e6..87925d7303 100644 --- a/src/Lean/MonadEnv.lean +++ b/src/Lean/MonadEnv.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Environment import Lean.Exception import Lean.Declaration diff --git a/src/Lean/Parser.lean b/src/Lean/Parser.lean index 7745db80ed..fe2e6cfb07 100644 --- a/src/Lean/Parser.lean +++ b/src/Lean/Parser.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich -/ +prelude import Lean.Parser.Basic import Lean.Parser.Level import Lean.Parser.Term diff --git a/src/Lean/Parser/Attr.lean b/src/Lean/Parser/Attr.lean index 457416842b..1c19f4c85b 100644 --- a/src/Lean/Parser/Attr.lean +++ b/src/Lean/Parser/Attr.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Parser.Basic import Lean.Parser.Extra diff --git a/src/Lean/Parser/Basic.lean b/src/Lean/Parser/Basic.lean index a767cce458..3cd2da1706 100644 --- a/src/Lean/Parser/Basic.lean +++ b/src/Lean/Parser/Basic.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich -/ +prelude import Lean.Parser.Types /-! diff --git a/src/Lean/Parser/Command.lean b/src/Lean/Parser/Command.lean index 28f6bea11b..40f246f96f 100644 --- a/src/Lean/Parser/Command.lean +++ b/src/Lean/Parser/Command.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich -/ +prelude import Lean.Parser.Term import Lean.Parser.Do diff --git a/src/Lean/Parser/Do.lean b/src/Lean/Parser/Do.lean index 26a7e67639..6680273c4c 100644 --- a/src/Lean/Parser/Do.lean +++ b/src/Lean/Parser/Do.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Parser.Term namespace Lean diff --git a/src/Lean/Parser/Extension.lean b/src/Lean/Parser/Extension.lean index 70fecd0ee6..c0994b3162 100644 --- a/src/Lean/Parser/Extension.lean +++ b/src/Lean/Parser/Extension.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich -/ +prelude import Lean.Parser.Basic import Lean.Compiler.InitAttr import Lean.ScopedEnvExtension diff --git a/src/Lean/Parser/Extra.lean b/src/Lean/Parser/Extra.lean index abeb359c36..50885d3768 100644 --- a/src/Lean/Parser/Extra.lean +++ b/src/Lean/Parser/Extra.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich -/ +prelude import Lean.Parser.Extension -- necessary for auto-generation import Lean.PrettyPrinter.Parenthesizer diff --git a/src/Lean/Parser/Level.lean b/src/Lean/Parser/Level.lean index 3f05122c46..a6540a0173 100644 --- a/src/Lean/Parser/Level.lean +++ b/src/Lean/Parser/Level.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich -/ +prelude import Lean.Parser.Extra namespace Lean diff --git a/src/Lean/Parser/Module.lean b/src/Lean/Parser/Module.lean index 40f43ef5dc..b2f9491b45 100644 --- a/src/Lean/Parser/Module.lean +++ b/src/Lean/Parser/Module.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich -/ +prelude import Lean.Message import Lean.Parser.Command diff --git a/src/Lean/Parser/StrInterpolation.lean b/src/Lean/Parser/StrInterpolation.lean index dc9ff6d92d..1aeecf7ab1 100644 --- a/src/Lean/Parser/StrInterpolation.lean +++ b/src/Lean/Parser/StrInterpolation.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Parser.Basic namespace Lean.Parser diff --git a/src/Lean/Parser/Syntax.lean b/src/Lean/Parser/Syntax.lean index a9670366cb..22fa7e4691 100644 --- a/src/Lean/Parser/Syntax.lean +++ b/src/Lean/Parser/Syntax.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich -/ +prelude import Lean.Parser.Command namespace Lean diff --git a/src/Lean/Parser/Tactic.lean b/src/Lean/Parser/Tactic.lean index 6f1939eebd..3bcf5cd147 100644 --- a/src/Lean/Parser/Tactic.lean +++ b/src/Lean/Parser/Tactic.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich -/ +prelude import Lean.Parser.Term namespace Lean diff --git a/src/Lean/Parser/Term.lean b/src/Lean/Parser/Term.lean index 16701816b4..ba66b5669a 100644 --- a/src/Lean/Parser/Term.lean +++ b/src/Lean/Parser/Term.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich, Mario Carneiro -/ +prelude import Lean.Parser.Attr import Lean.Parser.Level diff --git a/src/Lean/Parser/Types.lean b/src/Lean/Parser/Types.lean index d2663a016a..635f85ff97 100644 --- a/src/Lean/Parser/Types.lean +++ b/src/Lean/Parser/Types.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich -/ +prelude import Lean.Data.Trie import Lean.Syntax import Lean.Message diff --git a/src/Lean/ParserCompiler.lean b/src/Lean/ParserCompiler.lean index 492bd24bc4..8fdc41f6e2 100644 --- a/src/Lean/ParserCompiler.lean +++ b/src/Lean/ParserCompiler.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Sebastian Ullrich. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Ullrich -/ +prelude import Lean.Meta.ReduceEval import Lean.KeyedDeclsAttribute import Lean.ParserCompiler.Attribute diff --git a/src/Lean/ParserCompiler/Attribute.lean b/src/Lean/ParserCompiler/Attribute.lean index 13fdf32dc9..3ebd7eba6e 100644 --- a/src/Lean/ParserCompiler/Attribute.lean +++ b/src/Lean/ParserCompiler/Attribute.lean @@ -3,7 +3,7 @@ Copyright (c) 2020 Sebastian Ullrich. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich -/ - +prelude import Lean.Attributes import Lean.Compiler.InitAttr import Lean.ToExpr diff --git a/src/Lean/PrettyPrinter.lean b/src/Lean/PrettyPrinter.lean index c4dcd89e36..0c1e4cb2a5 100644 --- a/src/Lean/PrettyPrinter.lean +++ b/src/Lean/PrettyPrinter.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Sebastian Ullrich. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Ullrich -/ +prelude import Lean.PrettyPrinter.Delaborator import Lean.PrettyPrinter.Parenthesizer import Lean.PrettyPrinter.Formatter diff --git a/src/Lean/PrettyPrinter/Basic.lean b/src/Lean/PrettyPrinter/Basic.lean index 2179877c82..c72cc4ee9c 100644 --- a/src/Lean/PrettyPrinter/Basic.lean +++ b/src/Lean/PrettyPrinter/Basic.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Sebastian Ullrich. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Ullrich -/ +prelude import Lean.KeyedDeclsAttribute namespace Lean diff --git a/src/Lean/PrettyPrinter/Delaborator.lean b/src/Lean/PrettyPrinter/Delaborator.lean index d4fa0a3e51..c0b10de2bb 100644 --- a/src/Lean/PrettyPrinter/Delaborator.lean +++ b/src/Lean/PrettyPrinter/Delaborator.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Sebastian Ullrich. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Ullrich -/ +prelude import Lean.PrettyPrinter.Delaborator.Options import Lean.PrettyPrinter.Delaborator.SubExpr import Lean.PrettyPrinter.Delaborator.TopDownAnalyze diff --git a/src/Lean/PrettyPrinter/Delaborator/Basic.lean b/src/Lean/PrettyPrinter/Delaborator/Basic.lean index ebb963901a..3e1138d77a 100644 --- a/src/Lean/PrettyPrinter/Delaborator/Basic.lean +++ b/src/Lean/PrettyPrinter/Delaborator/Basic.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Ullrich -/ +prelude import Lean.Elab.Term import Lean.PrettyPrinter.Delaborator.Options import Lean.PrettyPrinter.Delaborator.SubExpr diff --git a/src/Lean/PrettyPrinter/Delaborator/Builtins.lean b/src/Lean/PrettyPrinter/Delaborator/Builtins.lean index 305bad4e8c..fd7a865c1c 100644 --- a/src/Lean/PrettyPrinter/Delaborator/Builtins.lean +++ b/src/Lean/PrettyPrinter/Delaborator/Builtins.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Sebastian Ullrich. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Ullrich, Leonardo de Moura, Gabriel Ebner, Mario Carneiro -/ +prelude import Lean.Parser import Lean.PrettyPrinter.Delaborator.Basic import Lean.PrettyPrinter.Delaborator.SubExpr diff --git a/src/Lean/PrettyPrinter/Delaborator/Options.lean b/src/Lean/PrettyPrinter/Delaborator/Options.lean index ffd0f0a8a3..22d7ae52ea 100644 --- a/src/Lean/PrettyPrinter/Delaborator/Options.lean +++ b/src/Lean/PrettyPrinter/Delaborator/Options.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Ullrich -/ +prelude import Lean.Data.Options namespace Lean diff --git a/src/Lean/PrettyPrinter/Delaborator/SubExpr.lean b/src/Lean/PrettyPrinter/Delaborator/SubExpr.lean index 3a044c6df0..5092a9e4a1 100644 --- a/src/Lean/PrettyPrinter/Delaborator/SubExpr.lean +++ b/src/Lean/PrettyPrinter/Delaborator/SubExpr.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Ullrich, Daniel Selsam, Wojciech Nawrocki -/ +prelude import Lean.Meta.Basic import Lean.SubExpr import Lean.Data.RBMap diff --git a/src/Lean/PrettyPrinter/Delaborator/TopDownAnalyze.lean b/src/Lean/PrettyPrinter/Delaborator/TopDownAnalyze.lean index c62292de3a..65abfb7d1d 100644 --- a/src/Lean/PrettyPrinter/Delaborator/TopDownAnalyze.lean +++ b/src/Lean/PrettyPrinter/Delaborator/TopDownAnalyze.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Daniel Selsam -/ +prelude import Lean.Data.RBMap import Lean.Meta.SynthInstance import Lean.Util.FindMVar diff --git a/src/Lean/PrettyPrinter/Formatter.lean b/src/Lean/PrettyPrinter/Formatter.lean index da8effa217..cc490a2f55 100644 --- a/src/Lean/PrettyPrinter/Formatter.lean +++ b/src/Lean/PrettyPrinter/Formatter.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Sebastian Ullrich. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Ullrich -/ +prelude import Lean.CoreM import Lean.Parser.Extension import Lean.Parser.StrInterpolation diff --git a/src/Lean/PrettyPrinter/Parenthesizer.lean b/src/Lean/PrettyPrinter/Parenthesizer.lean index 6c94c63885..6ea0658a39 100644 --- a/src/Lean/PrettyPrinter/Parenthesizer.lean +++ b/src/Lean/PrettyPrinter/Parenthesizer.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Sebastian Ullrich. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Ullrich -/ +prelude import Lean.Parser.Extension import Lean.Parser.StrInterpolation import Lean.ParserCompiler.Attribute diff --git a/src/Lean/ProjFns.lean b/src/Lean/ProjFns.lean index e48f028e0c..8a43c073b3 100644 --- a/src/Lean/ProjFns.lean +++ b/src/Lean/ProjFns.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Environment namespace Lean diff --git a/src/Lean/ReducibilityAttrs.lean b/src/Lean/ReducibilityAttrs.lean index 9d3e66ec61..a058740bd9 100644 --- a/src/Lean/ReducibilityAttrs.lean +++ b/src/Lean/ReducibilityAttrs.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Attributes namespace Lean diff --git a/src/Lean/Replay.lean b/src/Lean/Replay.lean index d4922b834b..d44392191e 100644 --- a/src/Lean/Replay.lean +++ b/src/Lean/Replay.lean @@ -3,6 +3,7 @@ Copyright (c) 2023 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ +prelude import Lean.CoreM import Lean.Util.FoldConsts diff --git a/src/Lean/ResolveName.lean b/src/Lean/ResolveName.lean index b5ae3360ab..93ab97b630 100644 --- a/src/Lean/ResolveName.lean +++ b/src/Lean/ResolveName.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich -/ +prelude import Lean.Data.OpenDecl import Lean.Hygiene import Lean.Modifiers diff --git a/src/Lean/Runtime.lean b/src/Lean/Runtime.lean index b570f0bf52..4cac6f1379 100644 --- a/src/Lean/Runtime.lean +++ b/src/Lean/Runtime.lean @@ -3,6 +3,8 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude +import Init.Prelude namespace Lean diff --git a/src/Lean/ScopedEnvExtension.lean b/src/Lean/ScopedEnvExtension.lean index e74fecfc1e..917e77d497 100644 --- a/src/Lean/ScopedEnvExtension.lean +++ b/src/Lean/ScopedEnvExtension.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Environment import Lean.Data.NameTrie import Lean.Attributes diff --git a/src/Lean/Server.lean b/src/Lean/Server.lean index d6f27596cd..fcb2cc0010 100644 --- a/src/Lean/Server.lean +++ b/src/Lean/Server.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Marc Huisinga, Wojciech Nawrocki -/ +prelude import Lean.Server.Watchdog import Lean.Server.FileWorker import Lean.Server.Rpc diff --git a/src/Lean/Server/AsyncList.lean b/src/Lean/Server/AsyncList.lean index dc4abbc688..426aaa91e0 100644 --- a/src/Lean/Server/AsyncList.lean +++ b/src/Lean/Server/AsyncList.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Wojciech Nawrocki -/ +prelude import Init.System.IO namespace IO diff --git a/src/Lean/Server/CodeActions.lean b/src/Lean/Server/CodeActions.lean index c9deafbeda..c5838f85af 100644 --- a/src/Lean/Server/CodeActions.lean +++ b/src/Lean/Server/CodeActions.lean @@ -4,7 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: E.W.Ayers -/ - +prelude import Lean.Server.FileWorker.RequestHandling import Lean.Server.InfoUtils diff --git a/src/Lean/Server/Completion.lean b/src/Lean/Server/Completion.lean index 15fe2aed0c..94a3ad2cb8 100644 --- a/src/Lean/Server/Completion.lean +++ b/src/Lean/Server/Completion.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Environment import Lean.Parser.Term import Lean.Data.FuzzyMatching diff --git a/src/Lean/Server/FileSource.lean b/src/Lean/Server/FileSource.lean index d0024073e9..39e87c6cf1 100644 --- a/src/Lean/Server/FileSource.lean +++ b/src/Lean/Server/FileSource.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Marc Huisinga -/ +prelude import Lean.Data.Lsp namespace Lean.Lsp diff --git a/src/Lean/Server/FileWorker.lean b/src/Lean/Server/FileWorker.lean index 9d7802f011..206c512c55 100644 --- a/src/Lean/Server/FileWorker.lean +++ b/src/Lean/Server/FileWorker.lean @@ -4,7 +4,9 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Marc Huisinga, Wojciech Nawrocki -/ +prelude import Init.System.IO + import Lean.Data.RBMap import Lean.Environment diff --git a/src/Lean/Server/FileWorker/RequestHandling.lean b/src/Lean/Server/FileWorker/RequestHandling.lean index ad74b293ff..8689c0b7f4 100644 --- a/src/Lean/Server/FileWorker/RequestHandling.lean +++ b/src/Lean/Server/FileWorker/RequestHandling.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Wojciech Nawrocki, Marc Huisinga -/ +prelude import Lean.DeclarationRange import Lean.Data.Json diff --git a/src/Lean/Server/FileWorker/SetupFile.lean b/src/Lean/Server/FileWorker/SetupFile.lean index 3ecb20bcaf..a602487a19 100644 --- a/src/Lean/Server/FileWorker/SetupFile.lean +++ b/src/Lean/Server/FileWorker/SetupFile.lean @@ -3,6 +3,7 @@ Copyright (c) 2023 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Ullrich, Marc Huisinga -/ +prelude import Init.System.IO import Lean.Server.Utils import Lean.Util.FileSetupInfo diff --git a/src/Lean/Server/FileWorker/Utils.lean b/src/Lean/Server/FileWorker/Utils.lean index 1014579b2e..e24d55f2db 100644 --- a/src/Lean/Server/FileWorker/Utils.lean +++ b/src/Lean/Server/FileWorker/Utils.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Wojciech Nawrocki, Marc Huisinga -/ +prelude import Lean.Server.Utils import Lean.Server.Snapshots import Lean.Server.AsyncList diff --git a/src/Lean/Server/FileWorker/WidgetRequests.lean b/src/Lean/Server/FileWorker/WidgetRequests.lean index 1719985962..78841e8c86 100644 --- a/src/Lean/Server/FileWorker/WidgetRequests.lean +++ b/src/Lean/Server/FileWorker/WidgetRequests.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Wojciech Nawrocki -/ +prelude import Lean.Widget.Basic import Lean.Widget.InteractiveCode import Lean.Widget.InteractiveGoal diff --git a/src/Lean/Server/GoTo.lean b/src/Lean/Server/GoTo.lean index 1c31eb024b..e4cba0b241 100644 --- a/src/Lean/Server/GoTo.lean +++ b/src/Lean/Server/GoTo.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Ullrich, Lars König, Wojciech Nawrocki -/ +prelude import Lean.Data.Json.FromToJson import Lean.Util.Path import Lean.Server.Utils diff --git a/src/Lean/Server/ImportCompletion.lean b/src/Lean/Server/ImportCompletion.lean index 0d2723ece4..08dfcb36d4 100644 --- a/src/Lean/Server/ImportCompletion.lean +++ b/src/Lean/Server/ImportCompletion.lean @@ -3,6 +3,7 @@ Copyright (c) 2023 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Marc Huisinga -/ +prelude import Lean.Data.Name import Lean.Data.NameTrie import Lean.Data.Lsp.Utf16 diff --git a/src/Lean/Server/InfoUtils.lean b/src/Lean/Server/InfoUtils.lean index 086bb984ef..ec1e29c934 100644 --- a/src/Lean/Server/InfoUtils.lean +++ b/src/Lean/Server/InfoUtils.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Wojciech Nawrocki -/ +prelude import Lean.PrettyPrinter namespace Lean.Elab diff --git a/src/Lean/Server/References.lean b/src/Lean/Server/References.lean index dbf487a321..872e01b05a 100644 --- a/src/Lean/Server/References.lean +++ b/src/Lean/Server/References.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Joscha Mennicken -/ +prelude import Lean.Data.Lsp.Internal import Lean.Server.Utils diff --git a/src/Lean/Server/Requests.lean b/src/Lean/Server/Requests.lean index 901fdfb9f2..8eec72fbd9 100644 --- a/src/Lean/Server/Requests.lean +++ b/src/Lean/Server/Requests.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Wojciech Nawrocki, Marc Huisinga -/ +prelude import Lean.DeclarationRange import Lean.Data.Json diff --git a/src/Lean/Server/Rpc.lean b/src/Lean/Server/Rpc.lean index d4d6c0ab0c..1cad524cb4 100644 --- a/src/Lean/Server/Rpc.lean +++ b/src/Lean/Server/Rpc.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Wojciech Nawrocki -/ +prelude import Lean.Server.Rpc.Basic import Lean.Server.Rpc.Deriving import Lean.Server.Rpc.RequestHandling diff --git a/src/Lean/Server/Rpc/Basic.lean b/src/Lean/Server/Rpc/Basic.lean index 1edf67a4a2..db00aa7a94 100644 --- a/src/Lean/Server/Rpc/Basic.lean +++ b/src/Lean/Server/Rpc/Basic.lean @@ -4,6 +4,8 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Wojciech Nawrocki -/ +prelude +import Init.Dynamic import Lean.Data.Json /-! Allows LSP clients to make Remote Procedure Calls to the server. diff --git a/src/Lean/Server/Rpc/Deriving.lean b/src/Lean/Server/Rpc/Deriving.lean index 326d8548eb..bbcc241669 100644 --- a/src/Lean/Server/Rpc/Deriving.lean +++ b/src/Lean/Server/Rpc/Deriving.lean @@ -4,10 +4,10 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Wojciech Nawrocki -/ +prelude import Lean.Elab.Command import Lean.Elab.Term import Lean.Elab.Deriving.Basic -import Lean.Elab.Deriving.Util import Lean.Server.Rpc.Basic diff --git a/src/Lean/Server/Rpc/RequestHandling.lean b/src/Lean/Server/Rpc/RequestHandling.lean index 44d67cba55..b4905d359e 100644 --- a/src/Lean/Server/Rpc/RequestHandling.lean +++ b/src/Lean/Server/Rpc/RequestHandling.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Wojciech Nawrocki -/ +prelude import Lean.Data.Lsp.Extra import Lean.Server.Requests diff --git a/src/Lean/Server/Snapshots.lean b/src/Lean/Server/Snapshots.lean index f49e5db564..dd89fe7d45 100644 --- a/src/Lean/Server/Snapshots.lean +++ b/src/Lean/Server/Snapshots.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Wojciech Nawrocki -/ +prelude import Init.System.IO import Lean.Elab.Import diff --git a/src/Lean/Server/Utils.lean b/src/Lean/Server/Utils.lean index 744e48b5ba..2870d404d4 100644 --- a/src/Lean/Server/Utils.lean +++ b/src/Lean/Server/Utils.lean @@ -4,6 +4,8 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Wojciech Nawrocki, Marc Huisinga -/ +prelude +import Init.System.Uri import Lean.Data.Lsp.Communication import Lean.Data.Lsp.Diagnostics import Lean.Data.Lsp.Extra diff --git a/src/Lean/Server/Watchdog.lean b/src/Lean/Server/Watchdog.lean index 7a496fb735..261e82be7f 100644 --- a/src/Lean/Server/Watchdog.lean +++ b/src/Lean/Server/Watchdog.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Marc Huisinga, Wojciech Nawrocki -/ +prelude import Init.System.IO import Init.Data.ByteArray import Lean.Data.RBMap diff --git a/src/Lean/Structure.lean b/src/Lean/Structure.lean index 19b5493dbe..2d20b3280b 100644 --- a/src/Lean/Structure.lean +++ b/src/Lean/Structure.lean @@ -5,6 +5,7 @@ Authors: Leonardo de Moura Helper functions for retrieving structure information. -/ +prelude import Lean.Environment import Lean.ProjFns diff --git a/src/Lean/SubExpr.lean b/src/Lean/SubExpr.lean index aca1dd77ec..d9cb079df5 100644 --- a/src/Lean/SubExpr.lean +++ b/src/Lean/SubExpr.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Ullrich, Daniel Selsam, Wojciech Nawrocki, E.W.Ayers -/ +prelude import Lean.Meta.Basic import Lean.Data.Json import Lean.Data.RBMap diff --git a/src/Lean/Syntax.lean b/src/Lean/Syntax.lean index a0ef020fac..1497da9485 100644 --- a/src/Lean/Syntax.lean +++ b/src/Lean/Syntax.lean @@ -3,6 +3,9 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Sebastian Ullrich, Leonardo de Moura -/ +prelude +import Init.Data.Range +import Init.Data.Hashable import Lean.Data.Name import Lean.Data.Format diff --git a/src/Lean/ToExpr.lean b/src/Lean/ToExpr.lean index f72aec1115..5bad40dd2b 100644 --- a/src/Lean/ToExpr.lean +++ b/src/Lean/ToExpr.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Expr universe u diff --git a/src/Lean/Util.lean b/src/Lean/Util.lean index 3a93462cc1..817d432579 100644 --- a/src/Lean/Util.lean +++ b/src/Lean/Util.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Util.CollectFVars import Lean.Util.CollectLevelParams import Lean.Util.CollectMVars diff --git a/src/Lean/Util/CollectFVars.lean b/src/Lean/Util/CollectFVars.lean index e064953948..8fbdf169ff 100644 --- a/src/Lean/Util/CollectFVars.lean +++ b/src/Lean/Util/CollectFVars.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Expr import Lean.LocalContext diff --git a/src/Lean/Util/CollectLevelParams.lean b/src/Lean/Util/CollectLevelParams.lean index 54db73fb4c..898e476ac1 100644 --- a/src/Lean/Util/CollectLevelParams.lean +++ b/src/Lean/Util/CollectLevelParams.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Expr namespace Lean diff --git a/src/Lean/Util/CollectMVars.lean b/src/Lean/Util/CollectMVars.lean index fd71d68baf..2365be1dea 100644 --- a/src/Lean/Util/CollectMVars.lean +++ b/src/Lean/Util/CollectMVars.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Expr namespace Lean diff --git a/src/Lean/Util/FileSetupInfo.lean b/src/Lean/Util/FileSetupInfo.lean index 0560f80a6c..a5701c6f30 100644 --- a/src/Lean/Util/FileSetupInfo.lean +++ b/src/Lean/Util/FileSetupInfo.lean @@ -3,6 +3,7 @@ Copyright (c) 2023 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Marc Huisinga -/ +prelude import Lean.Util.LeanOptions /-- diff --git a/src/Lean/Util/FindExpr.lean b/src/Lean/Util/FindExpr.lean index 56217625b8..a93765a3cb 100644 --- a/src/Lean/Util/FindExpr.lean +++ b/src/Lean/Util/FindExpr.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Expr import Lean.Util.PtrSet diff --git a/src/Lean/Util/FindLevelMVar.lean b/src/Lean/Util/FindLevelMVar.lean index f6ce8d0404..be156308e2 100644 --- a/src/Lean/Util/FindLevelMVar.lean +++ b/src/Lean/Util/FindLevelMVar.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Daniel Selsam -/ +prelude import Lean.Expr namespace Lean diff --git a/src/Lean/Util/FindMVar.lean b/src/Lean/Util/FindMVar.lean index eb49dc376f..dd6e48f343 100644 --- a/src/Lean/Util/FindMVar.lean +++ b/src/Lean/Util/FindMVar.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Expr namespace Lean diff --git a/src/Lean/Util/FoldConsts.lean b/src/Lean/Util/FoldConsts.lean index add6575363..e01c0d9a8b 100644 --- a/src/Lean/Util/FoldConsts.lean +++ b/src/Lean/Util/FoldConsts.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Expr import Lean.Environment diff --git a/src/Lean/Util/ForEachExpr.lean b/src/Lean/Util/ForEachExpr.lean index fec18fcf44..c5c80df345 100644 --- a/src/Lean/Util/ForEachExpr.lean +++ b/src/Lean/Util/ForEachExpr.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Expr import Lean.Util.MonadCache diff --git a/src/Lean/Util/ForEachExprWhere.lean b/src/Lean/Util/ForEachExprWhere.lean index 18a9e33d09..202bbfb016 100644 --- a/src/Lean/Util/ForEachExprWhere.lean +++ b/src/Lean/Util/ForEachExprWhere.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Expr import Lean.Util.MonadCache diff --git a/src/Lean/Util/HasConstCache.lean b/src/Lean/Util/HasConstCache.lean index 744079153b..371026016b 100644 --- a/src/Lean/Util/HasConstCache.lean +++ b/src/Lean/Util/HasConstCache.lean @@ -3,6 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Expr namespace Lean diff --git a/src/Lean/Util/InstantiateLevelParams.lean b/src/Lean/Util/InstantiateLevelParams.lean index 17b775321d..1655286579 100644 --- a/src/Lean/Util/InstantiateLevelParams.lean +++ b/src/Lean/Util/InstantiateLevelParams.lean @@ -3,7 +3,7 @@ Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ - +prelude import Lean.Util.ReplaceExpr namespace Lean.Expr diff --git a/src/Lean/Util/LakePath.lean b/src/Lean/Util/LakePath.lean index 2b313cd748..322d4216f6 100644 --- a/src/Lean/Util/LakePath.lean +++ b/src/Lean/Util/LakePath.lean @@ -4,6 +4,8 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Ullrich -/ +prelude +import Init.System.IO def Lean.determineLakePath : IO System.FilePath := do if let some lakePath ← IO.getEnv "LAKE" then diff --git a/src/Lean/Util/LeanOptions.lean b/src/Lean/Util/LeanOptions.lean index f52d48814f..9fe332f7dd 100644 --- a/src/Lean/Util/LeanOptions.lean +++ b/src/Lean/Util/LeanOptions.lean @@ -3,6 +3,7 @@ Copyright (c) 2023 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Marc Huisinga -/ +prelude import Lean.Util.Paths namespace Lean diff --git a/src/Lean/Util/MonadBacktrack.lean b/src/Lean/Util/MonadBacktrack.lean index e9b1262e0d..3ed4e27e5a 100644 --- a/src/Lean/Util/MonadBacktrack.lean +++ b/src/Lean/Util/MonadBacktrack.lean @@ -3,6 +3,8 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude +import Init.Control.Except namespace Lean diff --git a/src/Lean/Util/MonadCache.lean b/src/Lean/Util/MonadCache.lean index b11bb11a31..9e5b41d583 100644 --- a/src/Lean/Util/MonadCache.lean +++ b/src/Lean/Util/MonadCache.lean @@ -3,6 +3,8 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude +import Init.Control.StateRef import Lean.Data.HashMap namespace Lean diff --git a/src/Lean/Util/OccursCheck.lean b/src/Lean/Util/OccursCheck.lean index 90f982d043..1f811090b4 100644 --- a/src/Lean/Util/OccursCheck.lean +++ b/src/Lean/Util/OccursCheck.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.MetavarContext namespace Lean diff --git a/src/Lean/Util/PPExt.lean b/src/Lean/Util/PPExt.lean index e1db2eb736..f9adda1509 100644 --- a/src/Lean/Util/PPExt.lean +++ b/src/Lean/Util/PPExt.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura -/ +prelude import Lean.Environment import Lean.MetavarContext import Lean.Data.OpenDecl diff --git a/src/Lean/Util/Path.lean b/src/Lean/Util/Path.lean index bc33ae9498..0063f24680 100644 --- a/src/Lean/Util/Path.lean +++ b/src/Lean/Util/Path.lean @@ -8,7 +8,9 @@ paths containing package roots: an import `A.B.C` resolves to `path/A/B/C.olean` for the first entry `path` in `LEAN_PATH` with a directory `A/`. `import A` resolves to `path/A.olean`. -/ -import Lean.Data.Name +prelude +import Init.System.IO +import Init.Data.List.Control namespace Lean open System diff --git a/src/Lean/Util/Paths.lean b/src/Lean/Util/Paths.lean index f6e898223a..70420a10b6 100644 --- a/src/Lean/Util/Paths.lean +++ b/src/Lean/Util/Paths.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Ullrich -/ +prelude import Lean.Data.Json import Lean.Util.Path diff --git a/src/Lean/Util/Profile.lean b/src/Lean/Util/Profile.lean index d247970b1f..7164a08af3 100644 --- a/src/Lean/Util/Profile.lean +++ b/src/Lean/Util/Profile.lean @@ -3,6 +3,8 @@ Copyright (c) 2019 Sebastian Ullrich. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Sebastian Ullrich -/ +prelude +import Init.Data.OfScientific import Lean.Data.Options namespace Lean diff --git a/src/Lean/Util/PtrSet.lean b/src/Lean/Util/PtrSet.lean index 38bc51ea7d..05b33c0d36 100644 --- a/src/Lean/Util/PtrSet.lean +++ b/src/Lean/Util/PtrSet.lean @@ -3,6 +3,8 @@ Copyright (c) 2023 Leonardo de Moura. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude +import Init.Data.Hashable import Lean.Data.HashSet namespace Lean diff --git a/src/Lean/Util/RecDepth.lean b/src/Lean/Util/RecDepth.lean index c74972e99b..1d6e61855b 100644 --- a/src/Lean/Util/RecDepth.lean +++ b/src/Lean/Util/RecDepth.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Data.Options namespace Lean diff --git a/src/Lean/Util/Recognizers.lean b/src/Lean/Util/Recognizers.lean index 438c675512..420d2d7c2e 100644 --- a/src/Lean/Util/Recognizers.lean +++ b/src/Lean/Util/Recognizers.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Environment namespace Lean diff --git a/src/Lean/Util/ReplaceExpr.lean b/src/Lean/Util/ReplaceExpr.lean index 5d39d08c4e..d0ff29b0fc 100644 --- a/src/Lean/Util/ReplaceExpr.lean +++ b/src/Lean/Util/ReplaceExpr.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Gabriel Ebner, Sebastian Ullrich -/ +prelude import Lean.Expr namespace Lean diff --git a/src/Lean/Util/ReplaceLevel.lean b/src/Lean/Util/ReplaceLevel.lean index df3c57b35a..11d5881abc 100644 --- a/src/Lean/Util/ReplaceLevel.lean +++ b/src/Lean/Util/ReplaceLevel.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Expr namespace Lean diff --git a/src/Lean/Util/SCC.lean b/src/Lean/Util/SCC.lean index 63d89ca771..2a42d74c49 100644 --- a/src/Lean/Util/SCC.lean +++ b/src/Lean/Util/SCC.lean @@ -3,6 +3,8 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude +import Init.Data.List.Control import Lean.Data.HashMap namespace Lean.SCC /-! diff --git a/src/Lean/Util/ShareCommon.lean b/src/Lean/Util/ShareCommon.lean index 5cd559a9de..5948ea3da9 100644 --- a/src/Lean/Util/ShareCommon.lean +++ b/src/Lean/Util/ShareCommon.lean @@ -3,6 +3,8 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude +import Init.ShareCommon import Lean.Data.HashSet import Lean.Data.HashMap import Lean.Data.PersistentHashMap diff --git a/src/Lean/Util/Sorry.lean b/src/Lean/Util/Sorry.lean index 9d6f73065e..3341b13421 100644 --- a/src/Lean/Util/Sorry.lean +++ b/src/Lean/Util/Sorry.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +prelude import Lean.Util.FindExpr import Lean.Declaration diff --git a/src/Lean/Util/TestExtern.lean b/src/Lean/Util/TestExtern.lean index 56437c3636..4668c85a49 100644 --- a/src/Lean/Util/TestExtern.lean +++ b/src/Lean/Util/TestExtern.lean @@ -1,3 +1,4 @@ +prelude import Lean.Elab.SyntheticMVars import Lean.Elab.Command import Lean.Meta.Tactic.Unfold diff --git a/src/Lean/Util/Trace.lean b/src/Lean/Util/Trace.lean index c7e478bd76..4d74afbc48 100644 --- a/src/Lean/Util/Trace.lean +++ b/src/Lean/Util/Trace.lean @@ -3,6 +3,7 @@ Copyright (c) 2018 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Ullrich, Leonardo de Moura -/ +prelude import Lean.Exception /-! diff --git a/src/Lean/Widget.lean b/src/Lean/Widget.lean index 9a51cfa25b..5d3f7e3703 100644 --- a/src/Lean/Widget.lean +++ b/src/Lean/Widget.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Wojciech Nawrocki -/ +prelude import Lean.Widget.InteractiveCode import Lean.Widget.InteractiveDiagnostic import Lean.Widget.InteractiveGoal diff --git a/src/Lean/Widget/Basic.lean b/src/Lean/Widget/Basic.lean index ed0a5827c3..d836816242 100644 --- a/src/Lean/Widget/Basic.lean +++ b/src/Lean/Widget/Basic.lean @@ -1,3 +1,4 @@ +prelude import Lean.Elab.InfoTree import Lean.Message import Lean.Server.Rpc.Basic diff --git a/src/Lean/Widget/Diff.lean b/src/Lean/Widget/Diff.lean index 55c6823660..86979931aa 100644 --- a/src/Lean/Widget/Diff.lean +++ b/src/Lean/Widget/Diff.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: E.W.Ayers -/ +prelude import Lean.Meta.PPGoal import Lean.Widget.InteractiveCode import Lean.Widget.InteractiveGoal diff --git a/src/Lean/Widget/InteractiveCode.lean b/src/Lean/Widget/InteractiveCode.lean index 393f1cbcb4..74faf15817 100644 --- a/src/Lean/Widget/InteractiveCode.lean +++ b/src/Lean/Widget/InteractiveCode.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Wojciech Nawrocki -/ +prelude import Lean.PrettyPrinter import Lean.Server.Rpc.Basic import Lean.Server.InfoUtils diff --git a/src/Lean/Widget/InteractiveDiagnostic.lean b/src/Lean/Widget/InteractiveDiagnostic.lean index 2bec236603..487428e33e 100644 --- a/src/Lean/Widget/InteractiveDiagnostic.lean +++ b/src/Lean/Widget/InteractiveDiagnostic.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Wojciech Nawrocki -/ +prelude import Lean.Linter.UnusedVariables import Lean.Server.Utils import Lean.Widget.InteractiveGoal diff --git a/src/Lean/Widget/InteractiveGoal.lean b/src/Lean/Widget/InteractiveGoal.lean index 8192f86c80..72c335d59d 100644 --- a/src/Lean/Widget/InteractiveGoal.lean +++ b/src/Lean/Widget/InteractiveGoal.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Wojciech Nawrocki -/ +prelude import Lean.Meta.PPGoal import Lean.Widget.InteractiveCode import Lean.Data.Lsp.Extra diff --git a/src/Lean/Widget/TaggedText.lean b/src/Lean/Widget/TaggedText.lean index 62708e82cc..c8c063a2bf 100644 --- a/src/Lean/Widget/TaggedText.lean +++ b/src/Lean/Widget/TaggedText.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Wojciech Nawrocki -/ +prelude import Lean.Data.Json.FromToJson import Lean.Server.Rpc.Basic diff --git a/src/Lean/Widget/Types.lean b/src/Lean/Widget/Types.lean index c86199110f..1c78dfd763 100644 --- a/src/Lean/Widget/Types.lean +++ b/src/Lean/Widget/Types.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Wojciech Nawrocki -/ +prelude import Lean.Server.Rpc.Basic namespace Lean.Widget diff --git a/src/Lean/Widget/UserWidget.lean b/src/Lean/Widget/UserWidget.lean index 27b752d6db..c45ae4619b 100644 --- a/src/Lean/Widget/UserWidget.lean +++ b/src/Lean/Widget/UserWidget.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: E.W.Ayers, Wojciech Nawrocki -/ +prelude import Lean.Elab.Eval import Lean.Server.Rpc.RequestHandling diff --git a/tests/lean/1021.lean.expected.out b/tests/lean/1021.lean.expected.out index a673eb54c4..d5026a3c44 100644 --- a/tests/lean/1021.lean.expected.out +++ b/tests/lean/1021.lean.expected.out @@ -1,8 +1,8 @@ -some { range := { pos := { line := 193, column := 42 }, +some { range := { pos := { line := 194, column := 42 }, charUtf16 := 42, - endPos := { line := 199, column := 31 }, + endPos := { line := 200, column := 31 }, endCharUtf16 := 31 }, - selectionRange := { pos := { line := 193, column := 46 }, + selectionRange := { pos := { line := 194, column := 46 }, charUtf16 := 46, - endPos := { line := 193, column := 58 }, + endPos := { line := 194, column := 58 }, endCharUtf16 := 58 } }