diff --git a/stage0/src/Init.lean b/stage0/src/Init.lean index fb942e2302..cf76308fb6 100644 --- a/stage0/src/Init.lean +++ b/stage0/src/Init.lean @@ -16,3 +16,4 @@ import Init.Util import Init.Fix import Init.Meta import Init.Tactics +import Init.NotationExtra diff --git a/stage0/src/Init/NotationExtra.lean b/stage0/src/Init/NotationExtra.lean new file mode 100644 index 0000000000..db24b1a5b7 --- /dev/null +++ b/stage0/src/Init/NotationExtra.lean @@ -0,0 +1,67 @@ +/- +Copyright (c) 2020 Microsoft Corporation. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Leonardo de Moura + +Extra notation that depends on Init/Meta +-/ +prelude +import Init.Meta + +namespace Lean +-- Auxiliary parsers and functions for declaring notation with binders + +syntax binderIdent := ident <|> "_" +syntax unbracktedExplicitBinders := binderIdent+ (" : " term)? +syntax bracketedExplicitBinders := "(" binderIdent+ " : " term ")" +syntax explicitBinders := bracketedExplicitBinders+ <|> unbracktedExplicitBinders + +def expandExplicitBindersAux (combinator : Syntax) (idents : Array Syntax) (type? : Option Syntax) (body : Syntax) : MacroM Syntax := + let rec loop (i : Nat) (acc : Syntax) := do + match i with + | 0 => pure acc + | i+1 => + let ident := idents[i][0] + let acc ← match ident.isIdent, type? with + | true, none => `($combinator fun $ident => $acc) + | true, some type => `($combinator fun $ident:ident : $type => $acc) + | false, none => `($combinator fun _ => $acc) + | false, some type => `($combinator fun _ : $type => $acc) + loop i (acc.copyInfo (← getRef)) + loop idents.size body + +def expandBrackedBindersAux (combinator : Syntax) (binders : Array Syntax) (body : Syntax) : MacroM Syntax := + let rec loop (i : Nat) (acc : Syntax) := do + match i with + | 0 => pure acc + | i+1 => + let idents := binders[i][1].getArgs + let type := binders[i][3] + loop i (← expandExplicitBindersAux combinator idents (some type) acc) + loop binders.size body + +def expandExplicitBinders (combinatorDeclName : Name) (explicitBinders : Syntax) (body : Syntax) : MacroM Syntax := do + let combinator := mkIdentFrom (← getRef) combinatorDeclName + let explicitBinders := explicitBinders[0] + if explicitBinders.getKind == `Lean.unbracktedExplicitBinders then + let idents := explicitBinders[0].getArgs + let type? := if explicitBinders[1].isNone then none else some explicitBinders[1][1] + expandExplicitBindersAux combinator idents type? body + else if explicitBinders.getArgs.all (·.getKind == `Lean.bracketedExplicitBinders) then + expandBrackedBindersAux combinator explicitBinders.getArgs body + else + Macro.throwError "unexpected explicit binder" + +def expandBrackedBinders (combinatorDeclName : Name) (bracketedExplicitBinders : Syntax) (body : Syntax) : MacroM Syntax := do + let combinator := mkIdentFrom (← getRef) combinatorDeclName + expandBrackedBindersAux combinator #[bracketedExplicitBinders] body + +end Lean + +open Lean + +macro "∃" xs:explicitBinders ", " b:term : term => expandExplicitBinders `Exists xs b +macro "Σ" xs:explicitBinders ", " b:term : term => expandExplicitBinders `Sigma xs b +macro "Σ'" xs:explicitBinders ", " b:term : term => expandExplicitBinders `PSigma xs b +macro:25 xs:bracketedExplicitBinders "×" b:term : term => expandBrackedBinders `Sigma xs b +macro:25 xs:bracketedExplicitBinders "×'" b:term : term => expandBrackedBinders `PSigma xs b diff --git a/stage0/src/Lean/Elab/Level.lean b/stage0/src/Lean/Elab/Level.lean index e5e399ecb4..1527e06d18 100644 --- a/stage0/src/Lean/Elab/Level.lean +++ b/stage0/src/Lean/Elab/Level.lean @@ -47,14 +47,14 @@ partial def elabLevel (stx : Syntax) : LevelElabM Level := withRef stx do let mut lvl ← elabLevel args.back for arg in args[:args.size-1] do let arg ← elabLevel arg - lvl := mkLevelMax lvl arg + lvl := mkLevelMax' lvl arg return lvl else if kind == `Lean.Parser.Level.imax then let args := stx.getArg 1 $.getArgs let mut lvl ← elabLevel args.back for arg in args[:args.size-1] do let arg ← elabLevel arg - lvl := mkLevelIMax lvl arg + lvl := mkLevelIMax' lvl arg return lvl else if kind == `Lean.Parser.Level.hole then mkFreshLevelMVar diff --git a/stage0/src/Lean/Level.lean b/stage0/src/Lean/Level.lean index 777174ef6c..11fe615c52 100644 --- a/stage0/src/Lean/Level.lean +++ b/stage0/src/Lean/Level.lean @@ -415,6 +415,36 @@ protected def format (l : Level) : Format := instance : ToFormat Level := ⟨Level.format⟩ instance : ToString Level := ⟨Format.pretty ∘ Level.format⟩ +end Level + +/- Similar to `mkLevelMax`, but applies cheap simplifications -/ +def mkLevelMax' (u v : Level) : Level := + let subsumes (u v : Level) : Bool := + match u with + | Level.max u₁ u₂ _ => v == u₁ || v == u₂ + | _ => false + if u.isExplicit && v.isExplicit then + if u.getOffset ≥ v.getOffset then u else v + else if u == v then u + else if u.isZero then v + else if v.isZero then u + else if subsumes u v then u + else if subsumes v u then v + else if u.getLevelOffset == v.getLevelOffset then + if u.getOffset ≥ v.getOffset then u else v + else + mkLevelMax u v + +/- Similar to `mkLevelIMax`, but applies cheap simplifications -/ +def mkLevelIMax' (u v : Level) : Level := + if v.isNeverZero then mkLevelMax' u v + else if v.isZero then v + else if u.isZero then v + else if u == v then u + else mkLevelIMax u v + +namespace Level + /- The update functions here are defined using C code. They will try to avoid allocating new values using pointer equality. The hypotheses `(h : e.is... = true)` are used to ensure Lean will not crash @@ -435,7 +465,7 @@ match lvl with @[extern "lean_level_update_max"] def updateMax (lvl : Level) (newLhs : Level) (newRhs : Level) (h : lvl.isMax = true) : Level := - mkLevelMax newLhs newRhs + mkLevelMax' newLhs newRhs @[inline] def updateMax! (lvl : Level) (newLhs : Level) (newRhs : Level) : Level := match lvl with @@ -444,7 +474,7 @@ def updateMax (lvl : Level) (newLhs : Level) (newRhs : Level) (h : lvl.isMax = t @[extern "lean_level_update_imax"] def updateIMax (lvl : Level) (newLhs : Level) (newRhs : Level) (h : lvl.isIMax = true) : Level := - mkLevelIMax newLhs newRhs + mkLevelIMax' newLhs newRhs @[inline] def updateIMax! (lvl : Level) (newLhs : Level) (newRhs : Level) : Level := match lvl with @@ -454,7 +484,7 @@ def updateIMax (lvl : Level) (newLhs : Level) (newRhs : Level) (h : lvl.isIMax = def mkNaryMax : List Level → Level | [] => levelZero | [u] => u - | u::us => mkLevelMax u (mkNaryMax us) + | u::us => mkLevelMax' u (mkNaryMax us) /- Level to Format -/ diff --git a/stage0/src/Lean/Meta/InferType.lean b/stage0/src/Lean/Meta/InferType.lean index 2e0632a459..e2239016d8 100644 --- a/stage0/src/Lean/Meta/InferType.lean +++ b/stage0/src/Lean/Meta/InferType.lean @@ -86,7 +86,7 @@ private def inferForallType (e : Expr) : MetaM Expr := let lvl ← xs.foldrM (init := lvl) fun x lvl => do let xType ← inferType x let xTypeLvl ← getLevel xType - pure $ mkLevelIMax xTypeLvl lvl + pure $ mkLevelIMax' xTypeLvl lvl pure $ mkSort lvl.normalize /- Infer type of lambda and let expressions -/ diff --git a/stage0/src/Lean/Meta/LevelDefEq.lean b/stage0/src/Lean/Meta/LevelDefEq.lean index 672ceeb416..3e03e5ca10 100644 --- a/stage0/src/Lean/Meta/LevelDefEq.lean +++ b/stage0/src/Lean/Meta/LevelDefEq.lean @@ -30,7 +30,7 @@ private partial def decAux? : Level → MetaM (Option Level) | some u => do match (← decAux? v) with | none => pure none - | some v => pure $ mkLevelMax u v + | some v => pure $ mkLevelMax' u v match u with | Level.max u v _ => process u v /- Remark: If `decAux? v` returns `some ...`, then `imax u v` is equivalent to `max u v`. -/ @@ -76,8 +76,8 @@ private def strictOccursMax (lvl : Level) : Level → Bool /-- `mkMaxArgsDiff mvarId (max u_1 ... (mvar mvarId) ... u_n) v` => `max v u_1 ... u_n` -/ private def mkMaxArgsDiff (mvarId : MVarId) : Level → Level → Level | Level.max u v _, acc => mkMaxArgsDiff mvarId v $ mkMaxArgsDiff mvarId u acc - | l@(Level.mvar id _), acc => if id != mvarId then mkLevelMax acc l else acc - | l, acc => mkLevelMax acc l + | l@(Level.mvar id _), acc => if id != mvarId then mkLevelMax' acc l else acc + | l, acc => mkLevelMax' acc l /-- Solve `?m =?= max ?m v` by creating a fresh metavariable `?n` @@ -107,6 +107,7 @@ private partial def solve (u v : Level) : MetaM LBool := do Bool.toLBool <$> (isLevelDefEqAux levelZero v₁ <&&> isLevelDefEqAux levelZero v₂) | Level.zero _, Level.imax _ v₂ _ => Bool.toLBool <$> isLevelDefEqAux levelZero v₂ + | Level.zero _, Level.succ .. => pure LBool.false | Level.succ u _, v => match (← Meta.decLevel? v) with | some v => Bool.toLBool <$> isLevelDefEqAux u v diff --git a/stage0/src/Lean/Util/ReplaceLevel.lean b/stage0/src/Lean/Util/ReplaceLevel.lean index 19db350c61..95987e4051 100644 --- a/stage0/src/Lean/Util/ReplaceLevel.lean +++ b/stage0/src/Lean/Util/ReplaceLevel.lean @@ -12,8 +12,8 @@ partial def replace (f? : Level → Option Level) (u : Level) : Level := match f? u with | some v => v | none => match u with - | max v₁ v₂ _ => mkLevelMax (replace f? v₁) (replace f? v₂) - | imax v₁ v₂ _ => mkLevelIMax (replace f? v₁) (replace f? v₂) + | max v₁ v₂ _ => mkLevelMax' (replace f? v₁) (replace f? v₂) + | imax v₁ v₂ _ => mkLevelIMax' (replace f? v₁) (replace f? v₂) | succ v _ => mkLevelSucc (replace f? v) | _ => u diff --git a/stage0/stdlib/CMakeLists.txt b/stage0/stdlib/CMakeLists.txt index 7ef5ce69eb..e0019da4e5 100644 --- a/stage0/stdlib/CMakeLists.txt +++ b/stage0/stdlib/CMakeLists.txt @@ -1 +1 @@ -add_library (stage0 OBJECT ./Init.c ./Init/Classical.c ./Init/Coe.c ./Init/Control.c ./Init/Control/Basic.c ./Init/Control/EState.c ./Init/Control/Except.c ./Init/Control/Id.c ./Init/Control/Option.c ./Init/Control/Reader.c ./Init/Control/State.c ./Init/Control/StateRef.c ./Init/Core.c ./Init/Data.c ./Init/Data/Array.c ./Init/Data/Array/Basic.c ./Init/Data/Array/BinSearch.c ./Init/Data/Array/Macros.c ./Init/Data/Array/QSort.c ./Init/Data/Array/Subarray.c ./Init/Data/Basic.c ./Init/Data/ByteArray.c ./Init/Data/ByteArray/Basic.c ./Init/Data/Char.c ./Init/Data/Char/Basic.c ./Init/Data/Fin.c ./Init/Data/Fin/Basic.c ./Init/Data/Float.c ./Init/Data/FloatArray.c ./Init/Data/FloatArray/Basic.c ./Init/Data/Hashable.c ./Init/Data/Int.c ./Init/Data/Int/Basic.c ./Init/Data/List.c ./Init/Data/List/Basic.c ./Init/Data/List/BasicAux.c ./Init/Data/List/Control.c ./Init/Data/Nat.c ./Init/Data/Nat/Basic.c ./Init/Data/Nat/Bitwise.c ./Init/Data/Nat/Control.c ./Init/Data/Nat/Div.c ./Init/Data/Option.c ./Init/Data/Option/Basic.c ./Init/Data/Option/BasicAux.c ./Init/Data/Option/Instances.c ./Init/Data/Random.c ./Init/Data/Range.c ./Init/Data/Repr.c ./Init/Data/String.c ./Init/Data/String/Basic.c ./Init/Data/String/Extra.c ./Init/Data/ToString.c ./Init/Data/ToString/Basic.c ./Init/Data/ToString/Macro.c ./Init/Data/UInt.c ./Init/Fix.c ./Init/Meta.c ./Init/Notation.c ./Init/Prelude.c ./Init/SizeOf.c ./Init/System.c ./Init/System/FilePath.c ./Init/System/IO.c ./Init/System/IOError.c ./Init/System/Platform.c ./Init/System/ST.c ./Init/Tactics.c ./Init/Util.c ./Init/WF.c ./Lean.c ./Lean/Attributes.c ./Lean/AuxRecursor.c ./Lean/Class.c ./Lean/Compiler.c ./Lean/Compiler/BorrowedAnnotation.c ./Lean/Compiler/ClosedTermCache.c ./Lean/Compiler/ConstFolding.c ./Lean/Compiler/ExportAttr.c ./Lean/Compiler/ExternAttr.c ./Lean/Compiler/IR.c ./Lean/Compiler/IR/Basic.c ./Lean/Compiler/IR/Borrow.c ./Lean/Compiler/IR/Boxing.c ./Lean/Compiler/IR/Checker.c ./Lean/Compiler/IR/CompilerM.c ./Lean/Compiler/IR/CtorLayout.c ./Lean/Compiler/IR/ElimDeadBranches.c ./Lean/Compiler/IR/ElimDeadVars.c ./Lean/Compiler/IR/EmitC.c ./Lean/Compiler/IR/EmitUtil.c ./Lean/Compiler/IR/ExpandResetReuse.c ./Lean/Compiler/IR/Format.c ./Lean/Compiler/IR/FreeVars.c ./Lean/Compiler/IR/LiveVars.c ./Lean/Compiler/IR/NormIds.c ./Lean/Compiler/IR/PushProj.c ./Lean/Compiler/IR/RC.c ./Lean/Compiler/IR/ResetReuse.c ./Lean/Compiler/IR/SimpCase.c ./Lean/Compiler/IR/UnboxResult.c ./Lean/Compiler/ImplementedByAttr.c ./Lean/Compiler/InitAttr.c ./Lean/Compiler/InlineAttrs.c ./Lean/Compiler/NameMangling.c ./Lean/Compiler/NeverExtractAttr.c ./Lean/Compiler/Specialize.c ./Lean/Compiler/Util.c ./Lean/CoreM.c ./Lean/Data/Format.c ./Lean/Data/FormatMacro.c ./Lean/Data/Json.c ./Lean/Data/Json/Basic.c ./Lean/Data/Json/FromToJson.c ./Lean/Data/Json/Parser.c ./Lean/Data/Json/Printer.c ./Lean/Data/Json/Stream.c ./Lean/Data/JsonRpc.c ./Lean/Data/KVMap.c ./Lean/Data/LBool.c ./Lean/Data/LOption.c ./Lean/Data/Lsp.c ./Lean/Data/Lsp/Basic.c ./Lean/Data/Lsp/Capabilities.c ./Lean/Data/Lsp/Communication.c ./Lean/Data/Lsp/Diagnostics.c ./Lean/Data/Lsp/Hover.c ./Lean/Data/Lsp/InitShutdown.c ./Lean/Data/Lsp/TextSync.c ./Lean/Data/Lsp/Utf16.c ./Lean/Data/Lsp/Workspace.c ./Lean/Data/Name.c ./Lean/Data/Occurrences.c ./Lean/Data/OpenDecl.c ./Lean/Data/Options.c ./Lean/Data/Position.c ./Lean/Data/SMap.c ./Lean/Data/Trie.c ./Lean/Declaration.c ./Lean/Delaborator.c ./Lean/Elab.c ./Lean/Elab/App.c ./Lean/Elab/Attributes.c ./Lean/Elab/Binders.c ./Lean/Elab/BuiltinNotation.c ./Lean/Elab/CollectFVars.c ./Lean/Elab/Command.c ./Lean/Elab/DeclModifiers.c ./Lean/Elab/DeclUtil.c ./Lean/Elab/Declaration.c ./Lean/Elab/DefView.c ./Lean/Elab/Do.c ./Lean/Elab/Exception.c ./Lean/Elab/Frontend.c ./Lean/Elab/Import.c ./Lean/Elab/Inductive.c ./Lean/Elab/LetRec.c ./Lean/Elab/Level.c ./Lean/Elab/Log.c ./Lean/Elab/Match.c ./Lean/Elab/MutualDef.c ./Lean/Elab/PreDefinition.c ./Lean/Elab/PreDefinition/Basic.c ./Lean/Elab/PreDefinition/Main.c ./Lean/Elab/PreDefinition/MkInhabitant.c ./Lean/Elab/PreDefinition/Structural.c ./Lean/Elab/PreDefinition/WF.c ./Lean/Elab/Print.c ./Lean/Elab/Quotation.c ./Lean/Elab/StructInst.c ./Lean/Elab/Structure.c ./Lean/Elab/Syntax.c ./Lean/Elab/SyntheticMVars.c ./Lean/Elab/Tactic.c ./Lean/Elab/Tactic/Basic.c ./Lean/Elab/Tactic/Binders.c ./Lean/Elab/Tactic/ElabTerm.c ./Lean/Elab/Tactic/Generalize.c ./Lean/Elab/Tactic/Induction.c ./Lean/Elab/Tactic/Injection.c ./Lean/Elab/Tactic/Location.c ./Lean/Elab/Tactic/Match.c ./Lean/Elab/Tactic/Rewrite.c ./Lean/Elab/Term.c ./Lean/Elab/Util.c ./Lean/Environment.c ./Lean/Eval.c ./Lean/Exception.c ./Lean/Expr.c ./Lean/HeadIndex.c ./Lean/Hygiene.c ./Lean/InternalExceptionId.c ./Lean/KeyedDeclsAttribute.c ./Lean/Level.c ./Lean/LocalContext.c ./Lean/Message.c ./Lean/Meta.c ./Lean/Meta/AbstractMVars.c ./Lean/Meta/AbstractNestedProofs.c ./Lean/Meta/AppBuilder.c ./Lean/Meta/Basic.c ./Lean/Meta/Check.c ./Lean/Meta/Closure.c ./Lean/Meta/CollectMVars.c ./Lean/Meta/DiscrTree.c ./Lean/Meta/DiscrTreeTypes.c ./Lean/Meta/ExprDefEq.c ./Lean/Meta/ForEachExpr.c ./Lean/Meta/FunInfo.c ./Lean/Meta/GeneralizeTelescope.c ./Lean/Meta/InferType.c ./Lean/Meta/Instances.c ./Lean/Meta/KAbstract.c ./Lean/Meta/LevelDefEq.c ./Lean/Meta/Match.c ./Lean/Meta/Match/CaseArraySizes.c ./Lean/Meta/Match/CaseValues.c ./Lean/Meta/Match/MVarRenaming.c ./Lean/Meta/Match/Match.c ./Lean/Meta/Match/MatchPatternAttr.c ./Lean/Meta/MatchUtil.c ./Lean/Meta/Offset.c ./Lean/Meta/RecursorInfo.c ./Lean/Meta/Reduce.c ./Lean/Meta/ReduceEval.c ./Lean/Meta/SynthInstance.c ./Lean/Meta/Tactic.c ./Lean/Meta/Tactic/Apply.c ./Lean/Meta/Tactic/Assert.c ./Lean/Meta/Tactic/Assumption.c ./Lean/Meta/Tactic/Cases.c ./Lean/Meta/Tactic/Clear.c ./Lean/Meta/Tactic/ElimInfo.c ./Lean/Meta/Tactic/FVarSubst.c ./Lean/Meta/Tactic/Generalize.c ./Lean/Meta/Tactic/Induction.c ./Lean/Meta/Tactic/Injection.c ./Lean/Meta/Tactic/Intro.c ./Lean/Meta/Tactic/Replace.c ./Lean/Meta/Tactic/Revert.c ./Lean/Meta/Tactic/Rewrite.c ./Lean/Meta/Tactic/Subst.c ./Lean/Meta/Tactic/Util.c ./Lean/Meta/TransparencyMode.c ./Lean/Meta/WHNF.c ./Lean/MetavarContext.c ./Lean/Modifiers.c ./Lean/MonadEnv.c ./Lean/Parser.c ./Lean/Parser/Basic.c ./Lean/Parser/Command.c ./Lean/Parser/Do.c ./Lean/Parser/Extension.c ./Lean/Parser/Extra.c ./Lean/Parser/Level.c ./Lean/Parser/Module.c ./Lean/Parser/StrInterpolation.c ./Lean/Parser/Syntax.c ./Lean/Parser/Tactic.c ./Lean/Parser/Term.c ./Lean/Parser/Transform.c ./Lean/ParserCompiler.c ./Lean/ParserCompiler/Attribute.c ./Lean/PrettyPrinter.c ./Lean/PrettyPrinter/Basic.c ./Lean/PrettyPrinter/Formatter.c ./Lean/PrettyPrinter/Parenthesizer.c ./Lean/ProjFns.c ./Lean/ReducibilityAttrs.c ./Lean/ResolveName.c ./Lean/Runtime.c ./Lean/Server.c ./Lean/Server/ServerBin.c ./Lean/Server/Snapshots.c ./Lean/Structure.c ./Lean/Syntax.c ./Lean/ToExpr.c ./Lean/Util.c ./Lean/Util/CollectFVars.c ./Lean/Util/CollectLevelParams.c ./Lean/Util/CollectMVars.c ./Lean/Util/Constructions.c ./Lean/Util/FindExpr.c ./Lean/Util/FindMVar.c ./Lean/Util/FoldConsts.c ./Lean/Util/ForEachExpr.c ./Lean/Util/MonadCache.c ./Lean/Util/PPExt.c ./Lean/Util/PPGoal.c ./Lean/Util/Path.c ./Lean/Util/Profile.c ./Lean/Util/RecDepth.c ./Lean/Util/Recognizers.c ./Lean/Util/ReplaceExpr.c ./Lean/Util/ReplaceLevel.c ./Lean/Util/SCC.c ./Lean/Util/Sorry.c ./Lean/Util/Trace.c ./Std.c ./Std/Data.c ./Std/Data/AssocList.c ./Std/Data/BinomialHeap.c ./Std/Data/DList.c ./Std/Data/HashMap.c ./Std/Data/HashSet.c ./Std/Data/PersistentArray.c ./Std/Data/PersistentHashMap.c ./Std/Data/PersistentHashSet.c ./Std/Data/Queue.c ./Std/Data/RBMap.c ./Std/Data/RBTree.c ./Std/Data/Stack.c ./Std/ShareCommon.c ) +add_library (stage0 OBJECT ./Init.c ./Init/Classical.c ./Init/Coe.c ./Init/Control.c ./Init/Control/Basic.c ./Init/Control/EState.c ./Init/Control/Except.c ./Init/Control/Id.c ./Init/Control/Option.c ./Init/Control/Reader.c ./Init/Control/State.c ./Init/Control/StateRef.c ./Init/Core.c ./Init/Data.c ./Init/Data/Array.c ./Init/Data/Array/Basic.c ./Init/Data/Array/BinSearch.c ./Init/Data/Array/Macros.c ./Init/Data/Array/QSort.c ./Init/Data/Array/Subarray.c ./Init/Data/Basic.c ./Init/Data/ByteArray.c ./Init/Data/ByteArray/Basic.c ./Init/Data/Char.c ./Init/Data/Char/Basic.c ./Init/Data/Fin.c ./Init/Data/Fin/Basic.c ./Init/Data/Float.c ./Init/Data/FloatArray.c ./Init/Data/FloatArray/Basic.c ./Init/Data/Hashable.c ./Init/Data/Int.c ./Init/Data/Int/Basic.c ./Init/Data/List.c ./Init/Data/List/Basic.c ./Init/Data/List/BasicAux.c ./Init/Data/List/Control.c ./Init/Data/Nat.c ./Init/Data/Nat/Basic.c ./Init/Data/Nat/Bitwise.c ./Init/Data/Nat/Control.c ./Init/Data/Nat/Div.c ./Init/Data/Option.c ./Init/Data/Option/Basic.c ./Init/Data/Option/BasicAux.c ./Init/Data/Option/Instances.c ./Init/Data/Random.c ./Init/Data/Range.c ./Init/Data/Repr.c ./Init/Data/String.c ./Init/Data/String/Basic.c ./Init/Data/String/Extra.c ./Init/Data/ToString.c ./Init/Data/ToString/Basic.c ./Init/Data/ToString/Macro.c ./Init/Data/UInt.c ./Init/Fix.c ./Init/Meta.c ./Init/Notation.c ./Init/NotationExtra.c ./Init/Prelude.c ./Init/SizeOf.c ./Init/System.c ./Init/System/FilePath.c ./Init/System/IO.c ./Init/System/IOError.c ./Init/System/Platform.c ./Init/System/ST.c ./Init/Tactics.c ./Init/Util.c ./Init/WF.c ./Lean.c ./Lean/Attributes.c ./Lean/AuxRecursor.c ./Lean/Class.c ./Lean/Compiler.c ./Lean/Compiler/BorrowedAnnotation.c ./Lean/Compiler/ClosedTermCache.c ./Lean/Compiler/ConstFolding.c ./Lean/Compiler/ExportAttr.c ./Lean/Compiler/ExternAttr.c ./Lean/Compiler/IR.c ./Lean/Compiler/IR/Basic.c ./Lean/Compiler/IR/Borrow.c ./Lean/Compiler/IR/Boxing.c ./Lean/Compiler/IR/Checker.c ./Lean/Compiler/IR/CompilerM.c ./Lean/Compiler/IR/CtorLayout.c ./Lean/Compiler/IR/ElimDeadBranches.c ./Lean/Compiler/IR/ElimDeadVars.c ./Lean/Compiler/IR/EmitC.c ./Lean/Compiler/IR/EmitUtil.c ./Lean/Compiler/IR/ExpandResetReuse.c ./Lean/Compiler/IR/Format.c ./Lean/Compiler/IR/FreeVars.c ./Lean/Compiler/IR/LiveVars.c ./Lean/Compiler/IR/NormIds.c ./Lean/Compiler/IR/PushProj.c ./Lean/Compiler/IR/RC.c ./Lean/Compiler/IR/ResetReuse.c ./Lean/Compiler/IR/SimpCase.c ./Lean/Compiler/IR/UnboxResult.c ./Lean/Compiler/ImplementedByAttr.c ./Lean/Compiler/InitAttr.c ./Lean/Compiler/InlineAttrs.c ./Lean/Compiler/NameMangling.c ./Lean/Compiler/NeverExtractAttr.c ./Lean/Compiler/Specialize.c ./Lean/Compiler/Util.c ./Lean/CoreM.c ./Lean/Data/Format.c ./Lean/Data/FormatMacro.c ./Lean/Data/Json.c ./Lean/Data/Json/Basic.c ./Lean/Data/Json/FromToJson.c ./Lean/Data/Json/Parser.c ./Lean/Data/Json/Printer.c ./Lean/Data/Json/Stream.c ./Lean/Data/JsonRpc.c ./Lean/Data/KVMap.c ./Lean/Data/LBool.c ./Lean/Data/LOption.c ./Lean/Data/Lsp.c ./Lean/Data/Lsp/Basic.c ./Lean/Data/Lsp/Capabilities.c ./Lean/Data/Lsp/Communication.c ./Lean/Data/Lsp/Diagnostics.c ./Lean/Data/Lsp/Hover.c ./Lean/Data/Lsp/InitShutdown.c ./Lean/Data/Lsp/TextSync.c ./Lean/Data/Lsp/Utf16.c ./Lean/Data/Lsp/Workspace.c ./Lean/Data/Name.c ./Lean/Data/Occurrences.c ./Lean/Data/OpenDecl.c ./Lean/Data/Options.c ./Lean/Data/Position.c ./Lean/Data/SMap.c ./Lean/Data/Trie.c ./Lean/Declaration.c ./Lean/Delaborator.c ./Lean/Elab.c ./Lean/Elab/App.c ./Lean/Elab/Attributes.c ./Lean/Elab/Binders.c ./Lean/Elab/BuiltinNotation.c ./Lean/Elab/CollectFVars.c ./Lean/Elab/Command.c ./Lean/Elab/DeclModifiers.c ./Lean/Elab/DeclUtil.c ./Lean/Elab/Declaration.c ./Lean/Elab/DefView.c ./Lean/Elab/Do.c ./Lean/Elab/Exception.c ./Lean/Elab/Frontend.c ./Lean/Elab/Import.c ./Lean/Elab/Inductive.c ./Lean/Elab/LetRec.c ./Lean/Elab/Level.c ./Lean/Elab/Log.c ./Lean/Elab/Match.c ./Lean/Elab/MutualDef.c ./Lean/Elab/PreDefinition.c ./Lean/Elab/PreDefinition/Basic.c ./Lean/Elab/PreDefinition/Main.c ./Lean/Elab/PreDefinition/MkInhabitant.c ./Lean/Elab/PreDefinition/Structural.c ./Lean/Elab/PreDefinition/WF.c ./Lean/Elab/Print.c ./Lean/Elab/Quotation.c ./Lean/Elab/StructInst.c ./Lean/Elab/Structure.c ./Lean/Elab/Syntax.c ./Lean/Elab/SyntheticMVars.c ./Lean/Elab/Tactic.c ./Lean/Elab/Tactic/Basic.c ./Lean/Elab/Tactic/Binders.c ./Lean/Elab/Tactic/ElabTerm.c ./Lean/Elab/Tactic/Generalize.c ./Lean/Elab/Tactic/Induction.c ./Lean/Elab/Tactic/Injection.c ./Lean/Elab/Tactic/Location.c ./Lean/Elab/Tactic/Match.c ./Lean/Elab/Tactic/Rewrite.c ./Lean/Elab/Term.c ./Lean/Elab/Util.c ./Lean/Environment.c ./Lean/Eval.c ./Lean/Exception.c ./Lean/Expr.c ./Lean/HeadIndex.c ./Lean/Hygiene.c ./Lean/InternalExceptionId.c ./Lean/KeyedDeclsAttribute.c ./Lean/Level.c ./Lean/LocalContext.c ./Lean/Message.c ./Lean/Meta.c ./Lean/Meta/AbstractMVars.c ./Lean/Meta/AbstractNestedProofs.c ./Lean/Meta/AppBuilder.c ./Lean/Meta/Basic.c ./Lean/Meta/Check.c ./Lean/Meta/Closure.c ./Lean/Meta/CollectMVars.c ./Lean/Meta/DiscrTree.c ./Lean/Meta/DiscrTreeTypes.c ./Lean/Meta/ExprDefEq.c ./Lean/Meta/ForEachExpr.c ./Lean/Meta/FunInfo.c ./Lean/Meta/GeneralizeTelescope.c ./Lean/Meta/InferType.c ./Lean/Meta/Instances.c ./Lean/Meta/KAbstract.c ./Lean/Meta/LevelDefEq.c ./Lean/Meta/Match.c ./Lean/Meta/Match/CaseArraySizes.c ./Lean/Meta/Match/CaseValues.c ./Lean/Meta/Match/MVarRenaming.c ./Lean/Meta/Match/Match.c ./Lean/Meta/Match/MatchPatternAttr.c ./Lean/Meta/MatchUtil.c ./Lean/Meta/Offset.c ./Lean/Meta/RecursorInfo.c ./Lean/Meta/Reduce.c ./Lean/Meta/ReduceEval.c ./Lean/Meta/SynthInstance.c ./Lean/Meta/Tactic.c ./Lean/Meta/Tactic/Apply.c ./Lean/Meta/Tactic/Assert.c ./Lean/Meta/Tactic/Assumption.c ./Lean/Meta/Tactic/Cases.c ./Lean/Meta/Tactic/Clear.c ./Lean/Meta/Tactic/ElimInfo.c ./Lean/Meta/Tactic/FVarSubst.c ./Lean/Meta/Tactic/Generalize.c ./Lean/Meta/Tactic/Induction.c ./Lean/Meta/Tactic/Injection.c ./Lean/Meta/Tactic/Intro.c ./Lean/Meta/Tactic/Replace.c ./Lean/Meta/Tactic/Revert.c ./Lean/Meta/Tactic/Rewrite.c ./Lean/Meta/Tactic/Subst.c ./Lean/Meta/Tactic/Util.c ./Lean/Meta/TransparencyMode.c ./Lean/Meta/WHNF.c ./Lean/MetavarContext.c ./Lean/Modifiers.c ./Lean/MonadEnv.c ./Lean/Parser.c ./Lean/Parser/Basic.c ./Lean/Parser/Command.c ./Lean/Parser/Do.c ./Lean/Parser/Extension.c ./Lean/Parser/Extra.c ./Lean/Parser/Level.c ./Lean/Parser/Module.c ./Lean/Parser/StrInterpolation.c ./Lean/Parser/Syntax.c ./Lean/Parser/Tactic.c ./Lean/Parser/Term.c ./Lean/Parser/Transform.c ./Lean/ParserCompiler.c ./Lean/ParserCompiler/Attribute.c ./Lean/PrettyPrinter.c ./Lean/PrettyPrinter/Basic.c ./Lean/PrettyPrinter/Formatter.c ./Lean/PrettyPrinter/Parenthesizer.c ./Lean/ProjFns.c ./Lean/ReducibilityAttrs.c ./Lean/ResolveName.c ./Lean/Runtime.c ./Lean/Server.c ./Lean/Server/ServerBin.c ./Lean/Server/Snapshots.c ./Lean/Structure.c ./Lean/Syntax.c ./Lean/ToExpr.c ./Lean/Util.c ./Lean/Util/CollectFVars.c ./Lean/Util/CollectLevelParams.c ./Lean/Util/CollectMVars.c ./Lean/Util/Constructions.c ./Lean/Util/FindExpr.c ./Lean/Util/FindMVar.c ./Lean/Util/FoldConsts.c ./Lean/Util/ForEachExpr.c ./Lean/Util/MonadCache.c ./Lean/Util/PPExt.c ./Lean/Util/PPGoal.c ./Lean/Util/Path.c ./Lean/Util/Profile.c ./Lean/Util/RecDepth.c ./Lean/Util/Recognizers.c ./Lean/Util/ReplaceExpr.c ./Lean/Util/ReplaceLevel.c ./Lean/Util/SCC.c ./Lean/Util/Sorry.c ./Lean/Util/Trace.c ./Std.c ./Std/Data.c ./Std/Data/AssocList.c ./Std/Data/BinomialHeap.c ./Std/Data/DList.c ./Std/Data/HashMap.c ./Std/Data/HashSet.c ./Std/Data/PersistentArray.c ./Std/Data/PersistentHashMap.c ./Std/Data/PersistentHashSet.c ./Std/Data/Queue.c ./Std/Data/RBMap.c ./Std/Data/RBTree.c ./Std/Data/Stack.c ./Std/ShareCommon.c ) diff --git a/stage0/stdlib/Init.c b/stage0/stdlib/Init.c index 1ef24a9cba..3c6212462b 100644 --- a/stage0/stdlib/Init.c +++ b/stage0/stdlib/Init.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Init -// Imports: Init.Prelude Init.Notation Init.Core Init.Control Init.Data.Basic Init.WF Init.Data Init.System Init.Util Init.Fix Init.Meta Init.Tactics +// Imports: Init.Prelude Init.Notation Init.Core Init.Control Init.Data.Basic Init.WF Init.Data Init.System Init.Util Init.Fix Init.Meta Init.Tactics Init.NotationExtra #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -25,6 +25,7 @@ lean_object* initialize_Init_Util(lean_object*); lean_object* initialize_Init_Fix(lean_object*); lean_object* initialize_Init_Meta(lean_object*); lean_object* initialize_Init_Tactics(lean_object*); +lean_object* initialize_Init_NotationExtra(lean_object*); static bool _G_initialized = false; lean_object* initialize_Init(lean_object* w) { lean_object * res; @@ -66,6 +67,9 @@ lean_dec_ref(res); res = initialize_Init_Tactics(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Init_NotationExtra(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Init/NotationExtra.c b/stage0/stdlib/Init/NotationExtra.c new file mode 100644 index 0000000000..4b8587c204 --- /dev/null +++ b/stage0/stdlib/Init/NotationExtra.c @@ -0,0 +1,2375 @@ +// Lean compiler output +// Module: Init.NotationExtra +// Imports: Init.Meta +#include +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wunused-parameter" +#pragma clang diagnostic ignored "-Wunused-label" +#elif defined(__GNUC__) && !defined(__CLANG__) +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-label" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif +#ifdef __cplusplus +extern "C" { +#endif +lean_object* l_myMacro____x40_Init_NotationExtra___hyg_901____closed__1; +lean_object* l___kind_term____x40_Init_NotationExtra___hyg_1345____closed__4; +size_t l_USize_add(size_t, size_t); +lean_object* l_Lean_expandExplicitBindersAux_loop___closed__5; +lean_object* l___kind_term____x40_Init_NotationExtra___hyg_1107____closed__4; +lean_object* l___kind_term____x40_Init_NotationExtra___hyg_1345____closed__2; +lean_object* l_Lean_unbracktedExplicitBinders; +lean_object* l_Lean_explicitBinders___closed__4; +lean_object* l___kind_term____x40_Init_NotationExtra___hyg_859____closed__10; +lean_object* lean_name_mk_string(lean_object*, lean_object*); +lean_object* l_Lean_expandExplicitBinders___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_USize_decEq(size_t, size_t); +lean_object* lean_array_uget(lean_object*, size_t); +lean_object* l_Lean_explicitBinders___closed__3; +lean_object* l_Lean_unbracktedExplicitBinders___closed__5; +lean_object* l_Lean_expandExplicitBinders___closed__1; +lean_object* l_Lean_expandExplicitBindersAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_expandBrackedBindersAux_loop_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_myMacro____x40_Init_NotationExtra___hyg_901____boxed(lean_object*, lean_object*, lean_object*); +extern lean_object* l___kind_term____x40_Init_Notation___hyg_3____closed__13; +extern lean_object* l_Array_empty___closed__1; +lean_object* l_Lean_expandExplicitBindersAux_loop___closed__12; +lean_object* l_Lean_explicitBinders___closed__2; +lean_object* l_Lean_expandExplicitBindersAux_loop_match__1(lean_object*); +extern lean_object* l_myMacro____x40_Init_Notation___hyg_5787____closed__11; +lean_object* l_Lean_bracketedExplicitBinders___closed__7; +lean_object* l_Lean_unbracktedExplicitBinders___closed__4; +uint8_t lean_name_eq(lean_object*, lean_object*); +lean_object* l_Lean_binderIdent___closed__3; +lean_object* l_Lean_binderIdent___closed__5; +lean_object* l_Lean_mkIdentFrom(lean_object*, lean_object*); +lean_object* l___kind_term____x40_Init_NotationExtra___hyg_1107____closed__2; +extern lean_object* l_myMacro____x40_Init_Notation___hyg_6031____closed__4; +lean_object* l___kind_term____x40_Init_NotationExtra___hyg_859____closed__5; +lean_object* lean_array_push(lean_object*, lean_object*); +lean_object* lean_array_get_size(lean_object*); +lean_object* l___kind_term____x40_Init_NotationExtra___hyg_1345____closed__5; +lean_object* l_Lean_expandExplicitBindersAux_loop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_bracketedExplicitBinders___closed__3; +lean_object* l_Lean_explicitBinders___closed__1; +lean_object* l_Lean_expandExplicitBindersAux_loop_match__1___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_expandExplicitBindersAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_bracketedExplicitBinders___closed__5; +lean_object* l___kind_term____x40_Init_NotationExtra___hyg_1107____closed__3; +lean_object* l___kind_term____x40_Init_NotationExtra___hyg_1345____closed__3; +lean_object* l_Lean_expandExplicitBindersAux_loop___closed__13; +lean_object* l_Lean_expandExplicitBindersAux_loop___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_expandExplicitBindersAux_loop___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___kind_term____x40_Init_NotationExtra___hyg_859____closed__2; +lean_object* l_Lean_expandBrackedBindersAux_loop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_expandBrackedBindersAux_loop___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_expandBrackedBindersAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_expandExplicitBindersAux_loop___closed__10; +extern lean_object* l___kind_term____x40_Init_Notation___hyg_6293____closed__7; +lean_object* l_Lean_binderIdent; +lean_object* l_Lean_expandBrackedBinders(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +extern lean_object* l_Lean_Name_appendIndexAfter___closed__1; +lean_object* lean_nat_sub(lean_object*, lean_object*); +lean_object* l___kind_term____x40_Init_NotationExtra___hyg_1231____closed__5; +lean_object* l___kind_term____x40_Init_NotationExtra___hyg_1231____closed__1; +lean_object* l_Lean_Syntax_copyInfo(lean_object*, lean_object*); +lean_object* l_Lean_bracketedExplicitBinders___closed__6; +lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_explicitBinders___closed__5; +lean_object* l_Array_anyMUnsafe_any___at_Lean_expandExplicitBinders___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_expandExplicitBindersAux_loop___closed__7; +lean_object* l___kind_term____x40_Init_NotationExtra___hyg_983____closed__7; +lean_object* l_Lean_expandExplicitBinders(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_myMacro____x40_Init_Notation___hyg_6360____closed__17; +extern lean_object* l___private_Init_Util_0__mkPanicMessage___closed__2; +lean_object* l_myMacro____x40_Init_NotationExtra___hyg_1269____boxed(lean_object*, lean_object*, lean_object*); +extern lean_object* l_myMacro____x40_Init_Notation___hyg_6360____closed__15; +lean_object* l_Lean_expandBrackedBindersAux_loop_match__1___rarg(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Init_Prelude___instance__72___closed__1; +lean_object* l_Lean_bracketedExplicitBinders; +lean_object* l_Lean_unbracktedExplicitBinders___closed__6; +lean_object* l_Lean_bracketedExplicitBinders___closed__2; +lean_object* l_myMacro____x40_Init_NotationExtra___hyg_1025____boxed(lean_object*, lean_object*, lean_object*); +extern lean_object* l_myMacro____x40_Init_Notation___hyg_38____closed__8; +lean_object* l___kind_term____x40_Init_NotationExtra___hyg_983____closed__4; +lean_object* l_Lean_expandExplicitBindersAux_loop___closed__11; +lean_object* l_myMacro____x40_Init_NotationExtra___hyg_1025____closed__2; +lean_object* l___kind_term____x40_Init_NotationExtra___hyg_1231____closed__6; +uint8_t l_Array_anyMUnsafe_any___at_Lean_expandExplicitBinders___spec__1(lean_object*, lean_object*, size_t, size_t); +lean_object* l___kind_term____x40_Init_NotationExtra___hyg_859____closed__6; +lean_object* l___kind_term____x40_Init_NotationExtra___hyg_983____closed__1; +lean_object* l___kind_term____x40_Init_NotationExtra___hyg_1231____closed__3; +extern lean_object* l_myMacro____x40_Init_Notation___hyg_6360____closed__13; +size_t lean_usize_of_nat(lean_object*); +lean_object* l___kind_term____x40_Init_NotationExtra___hyg_1107____closed__5; +extern lean_object* l_myMacro____x40_Init_Notation___hyg_38____closed__6; +lean_object* l_Lean_bracketedExplicitBinders___closed__1; +lean_object* l___kind_term____x40_Init_NotationExtra___hyg_859____closed__8; +lean_object* l_Lean_bracketedExplicitBinders___closed__8; +extern lean_object* l_Lean_nullKind___closed__2; +lean_object* l_Lean_bracketedExplicitBinders___closed__9; +lean_object* l_myMacro____x40_Init_NotationExtra___hyg_1025____closed__1; +lean_object* l_Lean_bracketedExplicitBinders___closed__4; +lean_object* l_Lean_expandExplicitBindersAux_loop_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_expandBrackedBindersAux_loop_match__1(lean_object*); +lean_object* l___kind_term____x40_Init_NotationExtra___hyg_1107____closed__7; +lean_object* l___kind_term____x40_Init_NotationExtra___hyg_983____closed__3; +lean_object* l_Lean_Macro_throwError___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_expandExplicitBindersAux_loop_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_expandExplicitBindersAux_loop___closed__6; +lean_object* l___kind_term____x40_Init_NotationExtra___hyg_983____closed__6; +uint8_t lean_nat_dec_le(lean_object*, lean_object*); +lean_object* l___kind_term____x40_Init_NotationExtra___hyg_859_; +lean_object* l___kind_term____x40_Init_NotationExtra___hyg_1345_; +lean_object* l___kind_term____x40_Init_NotationExtra___hyg_1231_; +lean_object* l___kind_term____x40_Init_NotationExtra___hyg_1107_; +lean_object* l___kind_term____x40_Init_NotationExtra___hyg_983_; +lean_object* l___kind_term____x40_Init_NotationExtra___hyg_1231____closed__4; +lean_object* l_Lean_Syntax_getArgs(lean_object*); +lean_object* l_Lean_Syntax_getKind(lean_object*); +extern lean_object* l_myMacro____x40_Init_Notation___hyg_38____closed__2; +lean_object* l___kind_term____x40_Init_NotationExtra___hyg_983____closed__5; +lean_object* l_Lean_unbracktedExplicitBinders___closed__7; +extern lean_object* l_Lean_Name_hasMacroScopes___closed__1; +lean_object* l_myMacro____x40_Init_NotationExtra___hyg_1383_(lean_object*, lean_object*, lean_object*); +lean_object* l_myMacro____x40_Init_NotationExtra___hyg_901_(lean_object*, lean_object*, lean_object*); +lean_object* l_myMacro____x40_Init_NotationExtra___hyg_1025_(lean_object*, lean_object*, lean_object*); +lean_object* l_myMacro____x40_Init_NotationExtra___hyg_1149_(lean_object*, lean_object*, lean_object*); +lean_object* l_myMacro____x40_Init_NotationExtra___hyg_1269_(lean_object*, lean_object*, lean_object*); +lean_object* l___kind_term____x40_Init_NotationExtra___hyg_859____closed__3; +lean_object* l_Lean_expandExplicitBindersAux_loop_match__2(lean_object*); +uint8_t l_Lean_Syntax_isNone(lean_object*); +lean_object* lean_name_mk_numeral(lean_object*, lean_object*); +lean_object* l___kind_term____x40_Init_NotationExtra___hyg_859____closed__7; +lean_object* l_Lean_expandBrackedBindersAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___kind_term____x40_Init_NotationExtra___hyg_1231____closed__2; +lean_object* l_Lean_expandBrackedBinders___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_binderIdent___closed__4; +extern lean_object* l___kind_term____x40_Init_Notation___hyg_3____closed__7; +lean_object* l_Lean_expandExplicitBindersAux_loop_match__2___rarg___boxed(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Init_Prelude___instance__73; +uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); +extern lean_object* l_myMacro____x40_Init_Notation___hyg_5787____closed__8; +lean_object* l_Lean_expandExplicitBindersAux_loop___closed__1; +extern lean_object* l___kind_term____x40_Init_Notation___hyg_6910____closed__7; +lean_object* l_Lean_expandExplicitBindersAux_loop___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_mkHole___closed__2; +lean_object* l___kind_term____x40_Init_NotationExtra___hyg_1107____closed__1; +extern lean_object* l_myMacro____x40_Init_Notation___hyg_6153____closed__6; +extern lean_object* l_myMacro____x40_Init_Notation___hyg_5787____closed__9; +lean_object* l_Lean_expandExplicitBindersAux_loop___closed__9; +extern lean_object* l___kind_term____x40_Init_Notation___hyg_6293____closed__9; +lean_object* l_Lean_expandExplicitBindersAux_loop___closed__8; +lean_object* l_Lean_binderIdent___closed__2; +lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); +lean_object* l_Lean_binderIdent___closed__1; +extern lean_object* l___kind_term____x40_Init_Notation___hyg_6293____closed__4; +extern lean_object* l_Lean_mkOptionalNode___closed__2; +lean_object* l_Lean_expandExplicitBindersAux_loop___closed__2; +lean_object* l___kind_term____x40_Init_NotationExtra___hyg_1107____closed__6; +lean_object* l___kind_term____x40_Init_NotationExtra___hyg_983____closed__2; +lean_object* l_Lean_unbracktedExplicitBinders___closed__1; +lean_object* l___kind_term____x40_Init_NotationExtra___hyg_859____closed__4; +lean_object* l_Lean_expandExplicitBindersAux_loop___closed__4; +lean_object* l___kind_term____x40_Init_NotationExtra___hyg_859____closed__1; +lean_object* l_Lean_unbracktedExplicitBinders___closed__3; +lean_object* l_myMacro____x40_Init_NotationExtra___hyg_1149____closed__2; +lean_object* l_myMacro____x40_Init_NotationExtra___hyg_1149____boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_myMacro____x40_Init_NotationExtra___hyg_901____closed__2; +lean_object* l___kind_term____x40_Init_NotationExtra___hyg_1345____closed__6; +lean_object* l_Lean_unbracktedExplicitBinders___closed__2; +lean_object* l___kind_term____x40_Init_NotationExtra___hyg_1345____closed__1; +lean_object* l_myMacro____x40_Init_NotationExtra___hyg_1383____boxed(lean_object*, lean_object*, lean_object*); +extern lean_object* l_myMacro____x40_Init_Notation___hyg_6360____closed__11; +lean_object* l_Lean_expandExplicitBindersAux_loop___closed__3; +lean_object* l___kind_term____x40_Init_NotationExtra___hyg_859____closed__9; +uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +lean_object* l_myMacro____x40_Init_NotationExtra___hyg_1149____closed__1; +uint8_t l_Lean_Syntax_isIdent(lean_object*); +lean_object* l_Lean_explicitBinders; +static lean_object* _init_l_Lean_binderIdent___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("binderIdent"); +return x_1; +} +} +static lean_object* _init_l_Lean_binderIdent___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_myMacro____x40_Init_Notation___hyg_38____closed__2; +x_2 = l_Lean_binderIdent___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_binderIdent___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Name_appendIndexAfter___closed__1; +x_2 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_binderIdent___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_myMacro____x40_Init_Notation___hyg_6153____closed__6; +x_2 = l___kind_term____x40_Init_Notation___hyg_6293____closed__4; +x_3 = l_Lean_binderIdent___closed__3; +x_4 = lean_alloc_ctor(2, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_binderIdent___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_binderIdent___closed__1; +x_2 = l_Lean_binderIdent___closed__2; +x_3 = l_Lean_binderIdent___closed__4; +x_4 = lean_alloc_ctor(9, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_binderIdent() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_binderIdent___closed__5; +return x_1; +} +} +static lean_object* _init_l_Lean_unbracktedExplicitBinders___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("unbracktedExplicitBinders"); +return x_1; +} +} +static lean_object* _init_l_Lean_unbracktedExplicitBinders___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_myMacro____x40_Init_Notation___hyg_38____closed__2; +x_2 = l_Lean_unbracktedExplicitBinders___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_unbracktedExplicitBinders___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_myMacro____x40_Init_Notation___hyg_5787____closed__8; +x_2 = l_Lean_binderIdent; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_unbracktedExplicitBinders___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l___kind_term____x40_Init_Notation___hyg_3____closed__13; +x_2 = l___kind_term____x40_Init_Notation___hyg_6293____closed__7; +x_3 = l___kind_term____x40_Init_Notation___hyg_6293____closed__9; +x_4 = lean_alloc_ctor(2, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_unbracktedExplicitBinders___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_myMacro____x40_Init_Notation___hyg_6031____closed__4; +x_2 = l_Lean_unbracktedExplicitBinders___closed__4; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_unbracktedExplicitBinders___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l___kind_term____x40_Init_Notation___hyg_3____closed__13; +x_2 = l_Lean_unbracktedExplicitBinders___closed__3; +x_3 = l_Lean_unbracktedExplicitBinders___closed__5; +x_4 = lean_alloc_ctor(2, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_unbracktedExplicitBinders___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_unbracktedExplicitBinders___closed__1; +x_2 = l_Lean_unbracktedExplicitBinders___closed__2; +x_3 = l_Lean_unbracktedExplicitBinders___closed__6; +x_4 = lean_alloc_ctor(9, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_unbracktedExplicitBinders() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_unbracktedExplicitBinders___closed__7; +return x_1; +} +} +static lean_object* _init_l_Lean_bracketedExplicitBinders___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("bracketedExplicitBinders"); +return x_1; +} +} +static lean_object* _init_l_Lean_bracketedExplicitBinders___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_myMacro____x40_Init_Notation___hyg_38____closed__2; +x_2 = l_Lean_bracketedExplicitBinders___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_bracketedExplicitBinders___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_myMacro____x40_Init_Notation___hyg_5787____closed__9; +x_2 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_bracketedExplicitBinders___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l___kind_term____x40_Init_Notation___hyg_3____closed__13; +x_2 = l_Lean_bracketedExplicitBinders___closed__3; +x_3 = l_Lean_unbracktedExplicitBinders___closed__3; +x_4 = lean_alloc_ctor(2, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_bracketedExplicitBinders___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l___kind_term____x40_Init_Notation___hyg_3____closed__13; +x_2 = l_Lean_bracketedExplicitBinders___closed__4; +x_3 = l___kind_term____x40_Init_Notation___hyg_6293____closed__7; +x_4 = lean_alloc_ctor(2, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_bracketedExplicitBinders___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l___kind_term____x40_Init_Notation___hyg_3____closed__13; +x_2 = l_Lean_bracketedExplicitBinders___closed__5; +x_3 = l___kind_term____x40_Init_Notation___hyg_6293____closed__9; +x_4 = lean_alloc_ctor(2, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_bracketedExplicitBinders___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_myMacro____x40_Init_Notation___hyg_5787____closed__11; +x_2 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_bracketedExplicitBinders___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l___kind_term____x40_Init_Notation___hyg_3____closed__13; +x_2 = l_Lean_bracketedExplicitBinders___closed__6; +x_3 = l_Lean_bracketedExplicitBinders___closed__7; +x_4 = lean_alloc_ctor(2, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_bracketedExplicitBinders___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_bracketedExplicitBinders___closed__1; +x_2 = l_Lean_bracketedExplicitBinders___closed__2; +x_3 = l_Lean_bracketedExplicitBinders___closed__8; +x_4 = lean_alloc_ctor(9, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_bracketedExplicitBinders() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_bracketedExplicitBinders___closed__9; +return x_1; +} +} +static lean_object* _init_l_Lean_explicitBinders___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("explicitBinders"); +return x_1; +} +} +static lean_object* _init_l_Lean_explicitBinders___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_myMacro____x40_Init_Notation___hyg_38____closed__2; +x_2 = l_Lean_explicitBinders___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_explicitBinders___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_myMacro____x40_Init_Notation___hyg_5787____closed__8; +x_2 = l_Lean_bracketedExplicitBinders; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_explicitBinders___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_myMacro____x40_Init_Notation___hyg_6153____closed__6; +x_2 = l_Lean_explicitBinders___closed__3; +x_3 = l_Lean_unbracktedExplicitBinders; +x_4 = lean_alloc_ctor(2, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_explicitBinders___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_explicitBinders___closed__1; +x_2 = l_Lean_explicitBinders___closed__2; +x_3 = l_Lean_explicitBinders___closed__4; +x_4 = lean_alloc_ctor(9, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_explicitBinders() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_explicitBinders___closed__5; +return x_1; +} +} +lean_object* l_Lean_expandExplicitBindersAux_loop_match__1___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +if (x_1 == 0) +{ +lean_dec(x_4); +lean_dec(x_3); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_7; lean_object* x_8; +lean_dec(x_6); +x_7 = lean_box(0); +x_8 = lean_apply_1(x_5, x_7); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; +lean_dec(x_5); +x_9 = lean_ctor_get(x_2, 0); +lean_inc(x_9); +lean_dec(x_2); +x_10 = lean_apply_1(x_6, x_9); +return x_10; +} +} +else +{ +lean_dec(x_6); +lean_dec(x_5); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_11; lean_object* x_12; +lean_dec(x_4); +x_11 = lean_box(0); +x_12 = lean_apply_1(x_3, x_11); +return x_12; +} +else +{ +lean_object* x_13; lean_object* x_14; +lean_dec(x_3); +x_13 = lean_ctor_get(x_2, 0); +lean_inc(x_13); +lean_dec(x_2); +x_14 = lean_apply_1(x_4, x_13); +return x_14; +} +} +} +} +lean_object* l_Lean_expandExplicitBindersAux_loop_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_expandExplicitBindersAux_loop_match__1___rarg___boxed), 6, 0); +return x_2; +} +} +lean_object* l_Lean_expandExplicitBindersAux_loop_match__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_1); +lean_dec(x_1); +x_8 = l_Lean_expandExplicitBindersAux_loop_match__1___rarg(x_7, x_2, x_3, x_4, x_5, x_6); +return x_8; +} +} +lean_object* l_Lean_expandExplicitBindersAux_loop_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_unsigned_to_nat(0u); +x_5 = lean_nat_dec_eq(x_1, x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_2); +x_6 = lean_unsigned_to_nat(1u); +x_7 = lean_nat_sub(x_1, x_6); +x_8 = lean_apply_1(x_3, x_7); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; +lean_dec(x_3); +x_9 = lean_box(0); +x_10 = lean_apply_1(x_2, x_9); +return x_10; +} +} +} +lean_object* l_Lean_expandExplicitBindersAux_loop_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_expandExplicitBindersAux_loop_match__2___rarg___boxed), 3, 0); +return x_2; +} +} +lean_object* l_Lean_expandExplicitBindersAux_loop_match__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_expandExplicitBindersAux_loop_match__2___rarg(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Lean_expandExplicitBindersAux_loop___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_8 = lean_ctor_get(x_6, 5); +x_9 = l_Lean_Syntax_copyInfo(x_5, x_8); +x_10 = l_Lean_expandExplicitBindersAux_loop(x_1, x_2, x_3, x_4, x_9, x_6, x_7); +return x_10; +} +} +static lean_object* _init_l_Lean_expandExplicitBindersAux_loop___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Init_Prelude___instance__72___closed__1; +x_2 = l_Lean_Name_appendIndexAfter___closed__1; +x_3 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_expandExplicitBindersAux_loop___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_empty___closed__1; +x_2 = l_Lean_expandExplicitBindersAux_loop___closed__1; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_expandExplicitBindersAux_loop___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_mkHole___closed__2; +x_2 = l_Lean_expandExplicitBindersAux_loop___closed__2; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_expandExplicitBindersAux_loop___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_empty___closed__1; +x_2 = l_Lean_expandExplicitBindersAux_loop___closed__3; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_expandExplicitBindersAux_loop___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_nullKind___closed__2; +x_2 = l_Lean_expandExplicitBindersAux_loop___closed__4; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_expandExplicitBindersAux_loop___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_empty___closed__1; +x_2 = l_Lean_expandExplicitBindersAux_loop___closed__5; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_expandExplicitBindersAux_loop___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_expandExplicitBindersAux_loop___closed__6; +x_2 = l_myMacro____x40_Init_Notation___hyg_6360____closed__17; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_expandExplicitBindersAux_loop___closed__8() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("simpleBinder"); +return x_1; +} +} +static lean_object* _init_l_Lean_expandExplicitBindersAux_loop___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_myMacro____x40_Init_Notation___hyg_38____closed__6; +x_2 = l_Lean_expandExplicitBindersAux_loop___closed__8; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_expandExplicitBindersAux_loop___closed__10() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("typeSpec"); +return x_1; +} +} +static lean_object* _init_l_Lean_expandExplicitBindersAux_loop___closed__11() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_myMacro____x40_Init_Notation___hyg_38____closed__6; +x_2 = l_Lean_expandExplicitBindersAux_loop___closed__10; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_expandExplicitBindersAux_loop___closed__12() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Init_Prelude___instance__72___closed__1; +x_2 = l___private_Init_Util_0__mkPanicMessage___closed__2; +x_3 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_expandExplicitBindersAux_loop___closed__13() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_empty___closed__1; +x_2 = l_Lean_expandExplicitBindersAux_loop___closed__12; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +lean_object* l_Lean_expandExplicitBindersAux_loop(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; uint8_t x_9; +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_nat_dec_eq(x_4, x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_sub(x_4, x_10); +x_12 = l_Lean_Init_Prelude___instance__73; +x_13 = lean_array_get(x_12, x_2, x_11); +x_14 = l_Lean_Syntax_getArg(x_13, x_8); +lean_dec(x_13); +x_15 = l_Lean_Syntax_isIdent(x_14); +if (x_15 == 0) +{ +lean_dec(x_14); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_16 = l_Array_empty___closed__1; +lean_inc(x_1); +x_17 = lean_array_push(x_16, x_1); +x_18 = l_Lean_expandExplicitBindersAux_loop___closed__7; +x_19 = lean_array_push(x_18, x_5); +x_20 = l_myMacro____x40_Init_Notation___hyg_6360____closed__15; +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_19); +x_22 = l_myMacro____x40_Init_Notation___hyg_6360____closed__13; +x_23 = lean_array_push(x_22, x_21); +x_24 = l_myMacro____x40_Init_Notation___hyg_6360____closed__11; +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_23); +x_26 = lean_array_push(x_16, x_25); +x_27 = l_Lean_nullKind___closed__2; +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_26); +x_29 = lean_array_push(x_17, x_28); +x_30 = l_myMacro____x40_Init_Notation___hyg_38____closed__8; +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_29); +x_32 = l_Lean_expandExplicitBindersAux_loop___lambda__1(x_1, x_2, x_3, x_11, x_31, x_6, x_7); +lean_dec(x_11); +return x_32; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_33 = lean_ctor_get(x_3, 0); +lean_inc(x_33); +x_34 = l_Array_empty___closed__1; +lean_inc(x_1); +x_35 = lean_array_push(x_34, x_1); +x_36 = l_Lean_expandExplicitBindersAux_loop___closed__13; +x_37 = lean_array_push(x_36, x_33); +x_38 = l_Lean_expandExplicitBindersAux_loop___closed__11; +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_37); +x_40 = lean_array_push(x_34, x_39); +x_41 = l_Lean_nullKind___closed__2; +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_40); +x_43 = l_Lean_expandExplicitBindersAux_loop___closed__6; +x_44 = lean_array_push(x_43, x_42); +x_45 = l_Lean_expandExplicitBindersAux_loop___closed__9; +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_44); +x_47 = lean_array_push(x_34, x_46); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_41); +lean_ctor_set(x_48, 1, x_47); +x_49 = lean_array_push(x_34, x_48); +x_50 = l_myMacro____x40_Init_Notation___hyg_6360____closed__17; +x_51 = lean_array_push(x_49, x_50); +x_52 = lean_array_push(x_51, x_5); +x_53 = l_myMacro____x40_Init_Notation___hyg_6360____closed__15; +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_52); +x_55 = l_myMacro____x40_Init_Notation___hyg_6360____closed__13; +x_56 = lean_array_push(x_55, x_54); +x_57 = l_myMacro____x40_Init_Notation___hyg_6360____closed__11; +x_58 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set(x_58, 1, x_56); +x_59 = lean_array_push(x_34, x_58); +x_60 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_60, 0, x_41); +lean_ctor_set(x_60, 1, x_59); +x_61 = lean_array_push(x_35, x_60); +x_62 = l_myMacro____x40_Init_Notation___hyg_38____closed__8; +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_61); +x_64 = l_Lean_expandExplicitBindersAux_loop___lambda__1(x_1, x_2, x_3, x_11, x_63, x_6, x_7); +lean_dec(x_11); +return x_64; +} +} +else +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_65 = l_Array_empty___closed__1; +lean_inc(x_1); +x_66 = lean_array_push(x_65, x_1); +x_67 = lean_array_push(x_65, x_14); +x_68 = l_Lean_nullKind___closed__2; +x_69 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_69, 0, x_68); +lean_ctor_set(x_69, 1, x_67); +x_70 = lean_array_push(x_65, x_69); +x_71 = l_myMacro____x40_Init_Notation___hyg_6360____closed__17; +x_72 = lean_array_push(x_70, x_71); +x_73 = lean_array_push(x_72, x_5); +x_74 = l_myMacro____x40_Init_Notation___hyg_6360____closed__15; +x_75 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_75, 1, x_73); +x_76 = l_myMacro____x40_Init_Notation___hyg_6360____closed__13; +x_77 = lean_array_push(x_76, x_75); +x_78 = l_myMacro____x40_Init_Notation___hyg_6360____closed__11; +x_79 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_79, 0, x_78); +lean_ctor_set(x_79, 1, x_77); +x_80 = lean_array_push(x_65, x_79); +x_81 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_81, 0, x_68); +lean_ctor_set(x_81, 1, x_80); +x_82 = lean_array_push(x_66, x_81); +x_83 = l_myMacro____x40_Init_Notation___hyg_38____closed__8; +x_84 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_84, 0, x_83); +lean_ctor_set(x_84, 1, x_82); +x_85 = l_Lean_expandExplicitBindersAux_loop___lambda__1(x_1, x_2, x_3, x_11, x_84, x_6, x_7); +lean_dec(x_11); +return x_85; +} +else +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; +x_86 = lean_ctor_get(x_3, 0); +lean_inc(x_86); +x_87 = l_Array_empty___closed__1; +lean_inc(x_1); +x_88 = lean_array_push(x_87, x_1); +x_89 = lean_array_push(x_87, x_14); +x_90 = l_Lean_nullKind___closed__2; +x_91 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_91, 0, x_90); +lean_ctor_set(x_91, 1, x_89); +x_92 = lean_array_push(x_87, x_91); +x_93 = l_Lean_expandExplicitBindersAux_loop___closed__13; +x_94 = lean_array_push(x_93, x_86); +x_95 = l_Lean_expandExplicitBindersAux_loop___closed__11; +x_96 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_96, 0, x_95); +lean_ctor_set(x_96, 1, x_94); +x_97 = lean_array_push(x_87, x_96); +x_98 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_98, 0, x_90); +lean_ctor_set(x_98, 1, x_97); +x_99 = lean_array_push(x_92, x_98); +x_100 = l_Lean_expandExplicitBindersAux_loop___closed__9; +x_101 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_101, 1, x_99); +x_102 = lean_array_push(x_87, x_101); +x_103 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_103, 0, x_90); +lean_ctor_set(x_103, 1, x_102); +x_104 = lean_array_push(x_87, x_103); +x_105 = l_myMacro____x40_Init_Notation___hyg_6360____closed__17; +x_106 = lean_array_push(x_104, x_105); +x_107 = lean_array_push(x_106, x_5); +x_108 = l_myMacro____x40_Init_Notation___hyg_6360____closed__15; +x_109 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 1, x_107); +x_110 = l_myMacro____x40_Init_Notation___hyg_6360____closed__13; +x_111 = lean_array_push(x_110, x_109); +x_112 = l_myMacro____x40_Init_Notation___hyg_6360____closed__11; +x_113 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_113, 0, x_112); +lean_ctor_set(x_113, 1, x_111); +x_114 = lean_array_push(x_87, x_113); +x_115 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_115, 0, x_90); +lean_ctor_set(x_115, 1, x_114); +x_116 = lean_array_push(x_88, x_115); +x_117 = l_myMacro____x40_Init_Notation___hyg_38____closed__8; +x_118 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_118, 0, x_117); +lean_ctor_set(x_118, 1, x_116); +x_119 = l_Lean_expandExplicitBindersAux_loop___lambda__1(x_1, x_2, x_3, x_11, x_118, x_6, x_7); +lean_dec(x_11); +return x_119; +} +} +} +else +{ +lean_object* x_120; +lean_dec(x_3); +lean_dec(x_1); +x_120 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_120, 0, x_5); +lean_ctor_set(x_120, 1, x_7); +return x_120; +} +} +} +lean_object* l_Lean_expandExplicitBindersAux_loop___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_expandExplicitBindersAux_loop___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +return x_8; +} +} +lean_object* l_Lean_expandExplicitBindersAux_loop___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_expandExplicitBindersAux_loop(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +return x_8; +} +} +lean_object* l_Lean_expandExplicitBindersAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; +x_7 = lean_array_get_size(x_2); +x_8 = l_Lean_expandExplicitBindersAux_loop(x_1, x_2, x_3, x_7, x_4, x_5, x_6); +lean_dec(x_7); +return x_8; +} +} +lean_object* l_Lean_expandExplicitBindersAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_expandExplicitBindersAux(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_2); +return x_7; +} +} +lean_object* l_Lean_expandBrackedBindersAux_loop_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_unsigned_to_nat(0u); +x_5 = lean_nat_dec_eq(x_1, x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_2); +x_6 = lean_unsigned_to_nat(1u); +x_7 = lean_nat_sub(x_1, x_6); +x_8 = lean_apply_1(x_3, x_7); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; +lean_dec(x_3); +x_9 = lean_box(0); +x_10 = lean_apply_1(x_2, x_9); +return x_10; +} +} +} +lean_object* l_Lean_expandBrackedBindersAux_loop_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_expandBrackedBindersAux_loop_match__1___rarg___boxed), 3, 0); +return x_2; +} +} +lean_object* l_Lean_expandBrackedBindersAux_loop_match__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_expandBrackedBindersAux_loop_match__1___rarg(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Lean_expandBrackedBindersAux_loop(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_unsigned_to_nat(0u); +x_8 = lean_nat_dec_eq(x_3, x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_9 = lean_unsigned_to_nat(1u); +x_10 = lean_nat_sub(x_3, x_9); +lean_dec(x_3); +x_11 = l_Lean_Init_Prelude___instance__73; +x_12 = lean_array_get(x_11, x_2, x_10); +x_13 = l_Lean_Syntax_getArg(x_12, x_9); +x_14 = l_Lean_Syntax_getArgs(x_13); +lean_dec(x_13); +x_15 = lean_unsigned_to_nat(3u); +x_16 = l_Lean_Syntax_getArg(x_12, x_15); +lean_dec(x_12); +x_17 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_17, 0, x_16); +lean_inc(x_1); +x_18 = l_Lean_expandExplicitBindersAux(x_1, x_14, x_17, x_4, x_5, x_6); +lean_dec(x_14); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +x_3 = x_10; +x_4 = x_19; +x_6 = x_20; +goto _start; +} +else +{ +lean_object* x_22; +lean_dec(x_3); +lean_dec(x_1); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_4); +lean_ctor_set(x_22, 1, x_6); +return x_22; +} +} +} +lean_object* l_Lean_expandBrackedBindersAux_loop___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_expandBrackedBindersAux_loop(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_2); +return x_7; +} +} +lean_object* l_Lean_expandBrackedBindersAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; +x_6 = lean_array_get_size(x_2); +x_7 = l_Lean_expandBrackedBindersAux_loop(x_1, x_2, x_6, x_3, x_4, x_5); +return x_7; +} +} +lean_object* l_Lean_expandBrackedBindersAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Lean_expandBrackedBindersAux(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_2); +return x_6; +} +} +uint8_t l_Array_anyMUnsafe_any___at_Lean_expandExplicitBinders___spec__1(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) { +_start: +{ +uint8_t x_5; +x_5 = x_3 == x_4; +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_6 = lean_array_uget(x_2, x_3); +x_7 = l_Lean_Syntax_getKind(x_6); +x_8 = l_Lean_bracketedExplicitBinders___closed__1; +lean_inc(x_1); +x_9 = lean_name_mk_string(x_1, x_8); +x_10 = lean_name_eq(x_7, x_9); +lean_dec(x_9); +lean_dec(x_7); +if (x_10 == 0) +{ +uint8_t x_11; +lean_dec(x_1); +x_11 = 1; +return x_11; +} +else +{ +size_t x_12; size_t x_13; +x_12 = 1; +x_13 = x_3 + x_12; +x_3 = x_13; +goto _start; +} +} +else +{ +uint8_t x_15; +lean_dec(x_1); +x_15 = 0; +return x_15; +} +} +} +static lean_object* _init_l_Lean_expandExplicitBinders___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("unexpected explicit binder"); +return x_1; +} +} +lean_object* l_Lean_expandExplicitBinders(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_6 = lean_ctor_get(x_4, 5); +x_7 = l_Lean_mkIdentFrom(x_6, x_1); +x_8 = lean_unsigned_to_nat(0u); +x_9 = l_Lean_Syntax_getArg(x_2, x_8); +lean_inc(x_9); +x_10 = l_Lean_Syntax_getKind(x_9); +x_11 = l_Lean_unbracktedExplicitBinders___closed__2; +x_12 = lean_name_eq(x_10, x_11); +lean_dec(x_10); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_13 = l_Lean_Syntax_getArgs(x_9); +lean_dec(x_9); +x_14 = lean_array_get_size(x_13); +x_15 = lean_nat_dec_lt(x_8, x_14); +if (x_15 == 0) +{ +lean_object* x_16; +lean_dec(x_14); +x_16 = l_Lean_expandBrackedBindersAux(x_7, x_13, x_3, x_4, x_5); +lean_dec(x_13); +return x_16; +} +else +{ +uint8_t x_17; +x_17 = lean_nat_dec_le(x_14, x_14); +if (x_17 == 0) +{ +lean_object* x_18; +lean_dec(x_14); +x_18 = l_Lean_expandBrackedBindersAux(x_7, x_13, x_3, x_4, x_5); +lean_dec(x_13); +return x_18; +} +else +{ +size_t x_19; size_t x_20; lean_object* x_21; uint8_t x_22; +x_19 = 0; +x_20 = lean_usize_of_nat(x_14); +lean_dec(x_14); +x_21 = l_myMacro____x40_Init_Notation___hyg_38____closed__2; +x_22 = l_Array_anyMUnsafe_any___at_Lean_expandExplicitBinders___spec__1(x_21, x_13, x_19, x_20); +if (x_22 == 0) +{ +lean_object* x_23; +x_23 = l_Lean_expandBrackedBindersAux(x_7, x_13, x_3, x_4, x_5); +lean_dec(x_13); +return x_23; +} +else +{ +lean_object* x_24; lean_object* x_25; +lean_dec(x_13); +lean_dec(x_7); +lean_dec(x_3); +x_24 = l_Lean_expandExplicitBinders___closed__1; +x_25 = l_Lean_Macro_throwError___rarg(x_24, x_4, x_5); +return x_25; +} +} +} +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; +x_26 = l_Lean_Syntax_getArg(x_9, x_8); +x_27 = l_Lean_Syntax_getArgs(x_26); +lean_dec(x_26); +x_28 = lean_unsigned_to_nat(1u); +x_29 = l_Lean_Syntax_getArg(x_9, x_28); +lean_dec(x_9); +x_30 = l_Lean_Syntax_isNone(x_29); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = l_Lean_Syntax_getArg(x_29, x_28); +lean_dec(x_29); +x_32 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_32, 0, x_31); +x_33 = l_Lean_expandExplicitBindersAux(x_7, x_27, x_32, x_3, x_4, x_5); +lean_dec(x_27); +return x_33; +} +else +{ +lean_object* x_34; lean_object* x_35; +lean_dec(x_29); +x_34 = lean_box(0); +x_35 = l_Lean_expandExplicitBindersAux(x_7, x_27, x_34, x_3, x_4, x_5); +lean_dec(x_27); +return x_35; +} +} +} +} +lean_object* l_Array_anyMUnsafe_any___at_Lean_expandExplicitBinders___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +size_t x_5; size_t x_6; uint8_t x_7; lean_object* x_8; +x_5 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_6 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_7 = l_Array_anyMUnsafe_any___at_Lean_expandExplicitBinders___spec__1(x_1, x_2, x_5, x_6); +lean_dec(x_2); +x_8 = lean_box(x_7); +return x_8; +} +} +lean_object* l_Lean_expandExplicitBinders___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Lean_expandExplicitBinders(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_2); +return x_6; +} +} +lean_object* l_Lean_expandBrackedBinders(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_6 = lean_ctor_get(x_4, 5); +x_7 = l_Lean_mkIdentFrom(x_6, x_1); +x_8 = l_Lean_mkOptionalNode___closed__2; +x_9 = lean_array_push(x_8, x_2); +x_10 = l_Lean_expandBrackedBindersAux(x_7, x_9, x_3, x_4, x_5); +lean_dec(x_9); +return x_10; +} +} +lean_object* l_Lean_expandBrackedBinders___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Lean_expandBrackedBinders(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +return x_6; +} +} +static lean_object* _init_l___kind_term____x40_Init_NotationExtra___hyg_859____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("NotationExtra"); +return x_1; +} +} +static lean_object* _init_l___kind_term____x40_Init_NotationExtra___hyg_859____closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___kind_term____x40_Init_Notation___hyg_3____closed__7; +x_2 = l___kind_term____x40_Init_NotationExtra___hyg_859____closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___kind_term____x40_Init_NotationExtra___hyg_859____closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___kind_term____x40_Init_NotationExtra___hyg_859____closed__2; +x_2 = l_Lean_Name_hasMacroScopes___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___kind_term____x40_Init_NotationExtra___hyg_859____closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___kind_term____x40_Init_NotationExtra___hyg_859____closed__3; +x_2 = lean_unsigned_to_nat(859u); +x_3 = lean_name_mk_numeral(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___kind_term____x40_Init_NotationExtra___hyg_859____closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("∃"); +return x_1; +} +} +static lean_object* _init_l___kind_term____x40_Init_NotationExtra___hyg_859____closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___kind_term____x40_Init_NotationExtra___hyg_859____closed__5; +x_2 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l___kind_term____x40_Init_NotationExtra___hyg_859____closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l___kind_term____x40_Init_Notation___hyg_3____closed__13; +x_2 = l___kind_term____x40_Init_NotationExtra___hyg_859____closed__6; +x_3 = l_Lean_explicitBinders; +x_4 = lean_alloc_ctor(2, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l___kind_term____x40_Init_NotationExtra___hyg_859____closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l___kind_term____x40_Init_Notation___hyg_3____closed__13; +x_2 = l___kind_term____x40_Init_NotationExtra___hyg_859____closed__7; +x_3 = l___kind_term____x40_Init_Notation___hyg_6910____closed__7; +x_4 = lean_alloc_ctor(2, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l___kind_term____x40_Init_NotationExtra___hyg_859____closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l___kind_term____x40_Init_Notation___hyg_3____closed__13; +x_2 = l___kind_term____x40_Init_NotationExtra___hyg_859____closed__8; +x_3 = l___kind_term____x40_Init_Notation___hyg_6293____closed__9; +x_4 = lean_alloc_ctor(2, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l___kind_term____x40_Init_NotationExtra___hyg_859____closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l___kind_term____x40_Init_NotationExtra___hyg_859____closed__4; +x_2 = lean_unsigned_to_nat(1023u); +x_3 = l___kind_term____x40_Init_NotationExtra___hyg_859____closed__9; +x_4 = lean_alloc_ctor(3, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l___kind_term____x40_Init_NotationExtra___hyg_859_() { +_start: +{ +lean_object* x_1; +x_1 = l___kind_term____x40_Init_NotationExtra___hyg_859____closed__10; +return x_1; +} +} +static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_901____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Exists"); +return x_1; +} +} +static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_901____closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_myMacro____x40_Init_NotationExtra___hyg_901____closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* l_myMacro____x40_Init_NotationExtra___hyg_901_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = l___kind_term____x40_Init_NotationExtra___hyg_859____closed__4; +lean_inc(x_1); +x_5 = l_Lean_Syntax_isOfKind(x_1, x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_1); +x_6 = lean_box(1); +x_7 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_3); +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_8 = l_Lean_Syntax_getArgs(x_1); +x_9 = lean_array_get_size(x_8); +lean_dec(x_8); +x_10 = lean_unsigned_to_nat(4u); +x_11 = lean_nat_dec_eq(x_9, x_10); +lean_dec(x_9); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +lean_dec(x_1); +x_12 = lean_box(1); +x_13 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_3); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_14 = lean_unsigned_to_nat(1u); +x_15 = l_Lean_Syntax_getArg(x_1, x_14); +x_16 = lean_unsigned_to_nat(3u); +x_17 = l_Lean_Syntax_getArg(x_1, x_16); +lean_dec(x_1); +x_18 = l_myMacro____x40_Init_NotationExtra___hyg_901____closed__2; +x_19 = l_Lean_expandExplicitBinders(x_18, x_15, x_17, x_2, x_3); +lean_dec(x_15); +return x_19; +} +} +} +} +lean_object* l_myMacro____x40_Init_NotationExtra___hyg_901____boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_myMacro____x40_Init_NotationExtra___hyg_901_(x_1, x_2, x_3); +lean_dec(x_2); +return x_4; +} +} +static lean_object* _init_l___kind_term____x40_Init_NotationExtra___hyg_983____closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___kind_term____x40_Init_NotationExtra___hyg_859____closed__3; +x_2 = lean_unsigned_to_nat(983u); +x_3 = lean_name_mk_numeral(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___kind_term____x40_Init_NotationExtra___hyg_983____closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Σ"); +return x_1; +} +} +static lean_object* _init_l___kind_term____x40_Init_NotationExtra___hyg_983____closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___kind_term____x40_Init_NotationExtra___hyg_983____closed__2; +x_2 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l___kind_term____x40_Init_NotationExtra___hyg_983____closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l___kind_term____x40_Init_Notation___hyg_3____closed__13; +x_2 = l___kind_term____x40_Init_NotationExtra___hyg_983____closed__3; +x_3 = l_Lean_explicitBinders; +x_4 = lean_alloc_ctor(2, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l___kind_term____x40_Init_NotationExtra___hyg_983____closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l___kind_term____x40_Init_Notation___hyg_3____closed__13; +x_2 = l___kind_term____x40_Init_NotationExtra___hyg_983____closed__4; +x_3 = l___kind_term____x40_Init_Notation___hyg_6910____closed__7; +x_4 = lean_alloc_ctor(2, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l___kind_term____x40_Init_NotationExtra___hyg_983____closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l___kind_term____x40_Init_Notation___hyg_3____closed__13; +x_2 = l___kind_term____x40_Init_NotationExtra___hyg_983____closed__5; +x_3 = l___kind_term____x40_Init_Notation___hyg_6293____closed__9; +x_4 = lean_alloc_ctor(2, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l___kind_term____x40_Init_NotationExtra___hyg_983____closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l___kind_term____x40_Init_NotationExtra___hyg_983____closed__1; +x_2 = lean_unsigned_to_nat(1023u); +x_3 = l___kind_term____x40_Init_NotationExtra___hyg_983____closed__6; +x_4 = lean_alloc_ctor(3, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l___kind_term____x40_Init_NotationExtra___hyg_983_() { +_start: +{ +lean_object* x_1; +x_1 = l___kind_term____x40_Init_NotationExtra___hyg_983____closed__7; +return x_1; +} +} +static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_1025____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Sigma"); +return x_1; +} +} +static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_1025____closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_myMacro____x40_Init_NotationExtra___hyg_1025____closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* l_myMacro____x40_Init_NotationExtra___hyg_1025_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = l___kind_term____x40_Init_NotationExtra___hyg_983____closed__1; +lean_inc(x_1); +x_5 = l_Lean_Syntax_isOfKind(x_1, x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_1); +x_6 = lean_box(1); +x_7 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_3); +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_8 = l_Lean_Syntax_getArgs(x_1); +x_9 = lean_array_get_size(x_8); +lean_dec(x_8); +x_10 = lean_unsigned_to_nat(4u); +x_11 = lean_nat_dec_eq(x_9, x_10); +lean_dec(x_9); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +lean_dec(x_1); +x_12 = lean_box(1); +x_13 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_3); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_14 = lean_unsigned_to_nat(1u); +x_15 = l_Lean_Syntax_getArg(x_1, x_14); +x_16 = lean_unsigned_to_nat(3u); +x_17 = l_Lean_Syntax_getArg(x_1, x_16); +lean_dec(x_1); +x_18 = l_myMacro____x40_Init_NotationExtra___hyg_1025____closed__2; +x_19 = l_Lean_expandExplicitBinders(x_18, x_15, x_17, x_2, x_3); +lean_dec(x_15); +return x_19; +} +} +} +} +lean_object* l_myMacro____x40_Init_NotationExtra___hyg_1025____boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_myMacro____x40_Init_NotationExtra___hyg_1025_(x_1, x_2, x_3); +lean_dec(x_2); +return x_4; +} +} +static lean_object* _init_l___kind_term____x40_Init_NotationExtra___hyg_1107____closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___kind_term____x40_Init_NotationExtra___hyg_859____closed__3; +x_2 = lean_unsigned_to_nat(1107u); +x_3 = lean_name_mk_numeral(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___kind_term____x40_Init_NotationExtra___hyg_1107____closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Σ'"); +return x_1; +} +} +static lean_object* _init_l___kind_term____x40_Init_NotationExtra___hyg_1107____closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___kind_term____x40_Init_NotationExtra___hyg_1107____closed__2; +x_2 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l___kind_term____x40_Init_NotationExtra___hyg_1107____closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l___kind_term____x40_Init_Notation___hyg_3____closed__13; +x_2 = l___kind_term____x40_Init_NotationExtra___hyg_1107____closed__3; +x_3 = l_Lean_explicitBinders; +x_4 = lean_alloc_ctor(2, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l___kind_term____x40_Init_NotationExtra___hyg_1107____closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l___kind_term____x40_Init_Notation___hyg_3____closed__13; +x_2 = l___kind_term____x40_Init_NotationExtra___hyg_1107____closed__4; +x_3 = l___kind_term____x40_Init_Notation___hyg_6910____closed__7; +x_4 = lean_alloc_ctor(2, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l___kind_term____x40_Init_NotationExtra___hyg_1107____closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l___kind_term____x40_Init_Notation___hyg_3____closed__13; +x_2 = l___kind_term____x40_Init_NotationExtra___hyg_1107____closed__5; +x_3 = l___kind_term____x40_Init_Notation___hyg_6293____closed__9; +x_4 = lean_alloc_ctor(2, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l___kind_term____x40_Init_NotationExtra___hyg_1107____closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l___kind_term____x40_Init_NotationExtra___hyg_1107____closed__1; +x_2 = lean_unsigned_to_nat(1023u); +x_3 = l___kind_term____x40_Init_NotationExtra___hyg_1107____closed__6; +x_4 = lean_alloc_ctor(3, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l___kind_term____x40_Init_NotationExtra___hyg_1107_() { +_start: +{ +lean_object* x_1; +x_1 = l___kind_term____x40_Init_NotationExtra___hyg_1107____closed__7; +return x_1; +} +} +static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_1149____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("PSigma"); +return x_1; +} +} +static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_1149____closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_myMacro____x40_Init_NotationExtra___hyg_1149____closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* l_myMacro____x40_Init_NotationExtra___hyg_1149_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = l___kind_term____x40_Init_NotationExtra___hyg_1107____closed__1; +lean_inc(x_1); +x_5 = l_Lean_Syntax_isOfKind(x_1, x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_1); +x_6 = lean_box(1); +x_7 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_3); +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_8 = l_Lean_Syntax_getArgs(x_1); +x_9 = lean_array_get_size(x_8); +lean_dec(x_8); +x_10 = lean_unsigned_to_nat(4u); +x_11 = lean_nat_dec_eq(x_9, x_10); +lean_dec(x_9); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +lean_dec(x_1); +x_12 = lean_box(1); +x_13 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_3); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_14 = lean_unsigned_to_nat(1u); +x_15 = l_Lean_Syntax_getArg(x_1, x_14); +x_16 = lean_unsigned_to_nat(3u); +x_17 = l_Lean_Syntax_getArg(x_1, x_16); +lean_dec(x_1); +x_18 = l_myMacro____x40_Init_NotationExtra___hyg_1149____closed__2; +x_19 = l_Lean_expandExplicitBinders(x_18, x_15, x_17, x_2, x_3); +lean_dec(x_15); +return x_19; +} +} +} +} +lean_object* l_myMacro____x40_Init_NotationExtra___hyg_1149____boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_myMacro____x40_Init_NotationExtra___hyg_1149_(x_1, x_2, x_3); +lean_dec(x_2); +return x_4; +} +} +static lean_object* _init_l___kind_term____x40_Init_NotationExtra___hyg_1231____closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___kind_term____x40_Init_NotationExtra___hyg_859____closed__3; +x_2 = lean_unsigned_to_nat(1231u); +x_3 = lean_name_mk_numeral(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___kind_term____x40_Init_NotationExtra___hyg_1231____closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("×"); +return x_1; +} +} +static lean_object* _init_l___kind_term____x40_Init_NotationExtra___hyg_1231____closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___kind_term____x40_Init_NotationExtra___hyg_1231____closed__2; +x_2 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l___kind_term____x40_Init_NotationExtra___hyg_1231____closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l___kind_term____x40_Init_Notation___hyg_3____closed__13; +x_2 = l_Lean_bracketedExplicitBinders; +x_3 = l___kind_term____x40_Init_NotationExtra___hyg_1231____closed__3; +x_4 = lean_alloc_ctor(2, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l___kind_term____x40_Init_NotationExtra___hyg_1231____closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l___kind_term____x40_Init_Notation___hyg_3____closed__13; +x_2 = l___kind_term____x40_Init_NotationExtra___hyg_1231____closed__4; +x_3 = l___kind_term____x40_Init_Notation___hyg_6293____closed__9; +x_4 = lean_alloc_ctor(2, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l___kind_term____x40_Init_NotationExtra___hyg_1231____closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l___kind_term____x40_Init_NotationExtra___hyg_1231____closed__1; +x_2 = lean_unsigned_to_nat(25u); +x_3 = l___kind_term____x40_Init_NotationExtra___hyg_1231____closed__5; +x_4 = lean_alloc_ctor(3, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l___kind_term____x40_Init_NotationExtra___hyg_1231_() { +_start: +{ +lean_object* x_1; +x_1 = l___kind_term____x40_Init_NotationExtra___hyg_1231____closed__6; +return x_1; +} +} +lean_object* l_myMacro____x40_Init_NotationExtra___hyg_1269_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = l___kind_term____x40_Init_NotationExtra___hyg_1231____closed__1; +lean_inc(x_1); +x_5 = l_Lean_Syntax_isOfKind(x_1, x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_1); +x_6 = lean_box(1); +x_7 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_3); +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_8 = l_Lean_Syntax_getArgs(x_1); +x_9 = lean_array_get_size(x_8); +lean_dec(x_8); +x_10 = lean_unsigned_to_nat(3u); +x_11 = lean_nat_dec_eq(x_9, x_10); +lean_dec(x_9); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +lean_dec(x_1); +x_12 = lean_box(1); +x_13 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_3); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_14 = lean_unsigned_to_nat(0u); +x_15 = l_Lean_Syntax_getArg(x_1, x_14); +x_16 = lean_unsigned_to_nat(2u); +x_17 = l_Lean_Syntax_getArg(x_1, x_16); +lean_dec(x_1); +x_18 = l_myMacro____x40_Init_NotationExtra___hyg_1025____closed__2; +x_19 = l_Lean_expandBrackedBinders(x_18, x_15, x_17, x_2, x_3); +return x_19; +} +} +} +} +lean_object* l_myMacro____x40_Init_NotationExtra___hyg_1269____boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_myMacro____x40_Init_NotationExtra___hyg_1269_(x_1, x_2, x_3); +lean_dec(x_2); +return x_4; +} +} +static lean_object* _init_l___kind_term____x40_Init_NotationExtra___hyg_1345____closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___kind_term____x40_Init_NotationExtra___hyg_859____closed__3; +x_2 = lean_unsigned_to_nat(1345u); +x_3 = lean_name_mk_numeral(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___kind_term____x40_Init_NotationExtra___hyg_1345____closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("×'"); +return x_1; +} +} +static lean_object* _init_l___kind_term____x40_Init_NotationExtra___hyg_1345____closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___kind_term____x40_Init_NotationExtra___hyg_1345____closed__2; +x_2 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l___kind_term____x40_Init_NotationExtra___hyg_1345____closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l___kind_term____x40_Init_Notation___hyg_3____closed__13; +x_2 = l_Lean_bracketedExplicitBinders; +x_3 = l___kind_term____x40_Init_NotationExtra___hyg_1345____closed__3; +x_4 = lean_alloc_ctor(2, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l___kind_term____x40_Init_NotationExtra___hyg_1345____closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l___kind_term____x40_Init_Notation___hyg_3____closed__13; +x_2 = l___kind_term____x40_Init_NotationExtra___hyg_1345____closed__4; +x_3 = l___kind_term____x40_Init_Notation___hyg_6293____closed__9; +x_4 = lean_alloc_ctor(2, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l___kind_term____x40_Init_NotationExtra___hyg_1345____closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l___kind_term____x40_Init_NotationExtra___hyg_1345____closed__1; +x_2 = lean_unsigned_to_nat(25u); +x_3 = l___kind_term____x40_Init_NotationExtra___hyg_1345____closed__5; +x_4 = lean_alloc_ctor(3, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l___kind_term____x40_Init_NotationExtra___hyg_1345_() { +_start: +{ +lean_object* x_1; +x_1 = l___kind_term____x40_Init_NotationExtra___hyg_1345____closed__6; +return x_1; +} +} +lean_object* l_myMacro____x40_Init_NotationExtra___hyg_1383_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = l___kind_term____x40_Init_NotationExtra___hyg_1345____closed__1; +lean_inc(x_1); +x_5 = l_Lean_Syntax_isOfKind(x_1, x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_1); +x_6 = lean_box(1); +x_7 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_3); +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_8 = l_Lean_Syntax_getArgs(x_1); +x_9 = lean_array_get_size(x_8); +lean_dec(x_8); +x_10 = lean_unsigned_to_nat(3u); +x_11 = lean_nat_dec_eq(x_9, x_10); +lean_dec(x_9); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +lean_dec(x_1); +x_12 = lean_box(1); +x_13 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_3); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_14 = lean_unsigned_to_nat(0u); +x_15 = l_Lean_Syntax_getArg(x_1, x_14); +x_16 = lean_unsigned_to_nat(2u); +x_17 = l_Lean_Syntax_getArg(x_1, x_16); +lean_dec(x_1); +x_18 = l_myMacro____x40_Init_NotationExtra___hyg_1149____closed__2; +x_19 = l_Lean_expandBrackedBinders(x_18, x_15, x_17, x_2, x_3); +return x_19; +} +} +} +} +lean_object* l_myMacro____x40_Init_NotationExtra___hyg_1383____boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_myMacro____x40_Init_NotationExtra___hyg_1383_(x_1, x_2, x_3); +lean_dec(x_2); +return x_4; +} +} +lean_object* initialize_Init_Meta(lean_object*); +static bool _G_initialized = false; +lean_object* initialize_Init_NotationExtra(lean_object* w) { +lean_object * res; +if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_initialized = true; +res = initialize_Init_Meta(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_binderIdent___closed__1 = _init_l_Lean_binderIdent___closed__1(); +lean_mark_persistent(l_Lean_binderIdent___closed__1); +l_Lean_binderIdent___closed__2 = _init_l_Lean_binderIdent___closed__2(); +lean_mark_persistent(l_Lean_binderIdent___closed__2); +l_Lean_binderIdent___closed__3 = _init_l_Lean_binderIdent___closed__3(); +lean_mark_persistent(l_Lean_binderIdent___closed__3); +l_Lean_binderIdent___closed__4 = _init_l_Lean_binderIdent___closed__4(); +lean_mark_persistent(l_Lean_binderIdent___closed__4); +l_Lean_binderIdent___closed__5 = _init_l_Lean_binderIdent___closed__5(); +lean_mark_persistent(l_Lean_binderIdent___closed__5); +l_Lean_binderIdent = _init_l_Lean_binderIdent(); +lean_mark_persistent(l_Lean_binderIdent); +l_Lean_unbracktedExplicitBinders___closed__1 = _init_l_Lean_unbracktedExplicitBinders___closed__1(); +lean_mark_persistent(l_Lean_unbracktedExplicitBinders___closed__1); +l_Lean_unbracktedExplicitBinders___closed__2 = _init_l_Lean_unbracktedExplicitBinders___closed__2(); +lean_mark_persistent(l_Lean_unbracktedExplicitBinders___closed__2); +l_Lean_unbracktedExplicitBinders___closed__3 = _init_l_Lean_unbracktedExplicitBinders___closed__3(); +lean_mark_persistent(l_Lean_unbracktedExplicitBinders___closed__3); +l_Lean_unbracktedExplicitBinders___closed__4 = _init_l_Lean_unbracktedExplicitBinders___closed__4(); +lean_mark_persistent(l_Lean_unbracktedExplicitBinders___closed__4); +l_Lean_unbracktedExplicitBinders___closed__5 = _init_l_Lean_unbracktedExplicitBinders___closed__5(); +lean_mark_persistent(l_Lean_unbracktedExplicitBinders___closed__5); +l_Lean_unbracktedExplicitBinders___closed__6 = _init_l_Lean_unbracktedExplicitBinders___closed__6(); +lean_mark_persistent(l_Lean_unbracktedExplicitBinders___closed__6); +l_Lean_unbracktedExplicitBinders___closed__7 = _init_l_Lean_unbracktedExplicitBinders___closed__7(); +lean_mark_persistent(l_Lean_unbracktedExplicitBinders___closed__7); +l_Lean_unbracktedExplicitBinders = _init_l_Lean_unbracktedExplicitBinders(); +lean_mark_persistent(l_Lean_unbracktedExplicitBinders); +l_Lean_bracketedExplicitBinders___closed__1 = _init_l_Lean_bracketedExplicitBinders___closed__1(); +lean_mark_persistent(l_Lean_bracketedExplicitBinders___closed__1); +l_Lean_bracketedExplicitBinders___closed__2 = _init_l_Lean_bracketedExplicitBinders___closed__2(); +lean_mark_persistent(l_Lean_bracketedExplicitBinders___closed__2); +l_Lean_bracketedExplicitBinders___closed__3 = _init_l_Lean_bracketedExplicitBinders___closed__3(); +lean_mark_persistent(l_Lean_bracketedExplicitBinders___closed__3); +l_Lean_bracketedExplicitBinders___closed__4 = _init_l_Lean_bracketedExplicitBinders___closed__4(); +lean_mark_persistent(l_Lean_bracketedExplicitBinders___closed__4); +l_Lean_bracketedExplicitBinders___closed__5 = _init_l_Lean_bracketedExplicitBinders___closed__5(); +lean_mark_persistent(l_Lean_bracketedExplicitBinders___closed__5); +l_Lean_bracketedExplicitBinders___closed__6 = _init_l_Lean_bracketedExplicitBinders___closed__6(); +lean_mark_persistent(l_Lean_bracketedExplicitBinders___closed__6); +l_Lean_bracketedExplicitBinders___closed__7 = _init_l_Lean_bracketedExplicitBinders___closed__7(); +lean_mark_persistent(l_Lean_bracketedExplicitBinders___closed__7); +l_Lean_bracketedExplicitBinders___closed__8 = _init_l_Lean_bracketedExplicitBinders___closed__8(); +lean_mark_persistent(l_Lean_bracketedExplicitBinders___closed__8); +l_Lean_bracketedExplicitBinders___closed__9 = _init_l_Lean_bracketedExplicitBinders___closed__9(); +lean_mark_persistent(l_Lean_bracketedExplicitBinders___closed__9); +l_Lean_bracketedExplicitBinders = _init_l_Lean_bracketedExplicitBinders(); +lean_mark_persistent(l_Lean_bracketedExplicitBinders); +l_Lean_explicitBinders___closed__1 = _init_l_Lean_explicitBinders___closed__1(); +lean_mark_persistent(l_Lean_explicitBinders___closed__1); +l_Lean_explicitBinders___closed__2 = _init_l_Lean_explicitBinders___closed__2(); +lean_mark_persistent(l_Lean_explicitBinders___closed__2); +l_Lean_explicitBinders___closed__3 = _init_l_Lean_explicitBinders___closed__3(); +lean_mark_persistent(l_Lean_explicitBinders___closed__3); +l_Lean_explicitBinders___closed__4 = _init_l_Lean_explicitBinders___closed__4(); +lean_mark_persistent(l_Lean_explicitBinders___closed__4); +l_Lean_explicitBinders___closed__5 = _init_l_Lean_explicitBinders___closed__5(); +lean_mark_persistent(l_Lean_explicitBinders___closed__5); +l_Lean_explicitBinders = _init_l_Lean_explicitBinders(); +lean_mark_persistent(l_Lean_explicitBinders); +l_Lean_expandExplicitBindersAux_loop___closed__1 = _init_l_Lean_expandExplicitBindersAux_loop___closed__1(); +lean_mark_persistent(l_Lean_expandExplicitBindersAux_loop___closed__1); +l_Lean_expandExplicitBindersAux_loop___closed__2 = _init_l_Lean_expandExplicitBindersAux_loop___closed__2(); +lean_mark_persistent(l_Lean_expandExplicitBindersAux_loop___closed__2); +l_Lean_expandExplicitBindersAux_loop___closed__3 = _init_l_Lean_expandExplicitBindersAux_loop___closed__3(); +lean_mark_persistent(l_Lean_expandExplicitBindersAux_loop___closed__3); +l_Lean_expandExplicitBindersAux_loop___closed__4 = _init_l_Lean_expandExplicitBindersAux_loop___closed__4(); +lean_mark_persistent(l_Lean_expandExplicitBindersAux_loop___closed__4); +l_Lean_expandExplicitBindersAux_loop___closed__5 = _init_l_Lean_expandExplicitBindersAux_loop___closed__5(); +lean_mark_persistent(l_Lean_expandExplicitBindersAux_loop___closed__5); +l_Lean_expandExplicitBindersAux_loop___closed__6 = _init_l_Lean_expandExplicitBindersAux_loop___closed__6(); +lean_mark_persistent(l_Lean_expandExplicitBindersAux_loop___closed__6); +l_Lean_expandExplicitBindersAux_loop___closed__7 = _init_l_Lean_expandExplicitBindersAux_loop___closed__7(); +lean_mark_persistent(l_Lean_expandExplicitBindersAux_loop___closed__7); +l_Lean_expandExplicitBindersAux_loop___closed__8 = _init_l_Lean_expandExplicitBindersAux_loop___closed__8(); +lean_mark_persistent(l_Lean_expandExplicitBindersAux_loop___closed__8); +l_Lean_expandExplicitBindersAux_loop___closed__9 = _init_l_Lean_expandExplicitBindersAux_loop___closed__9(); +lean_mark_persistent(l_Lean_expandExplicitBindersAux_loop___closed__9); +l_Lean_expandExplicitBindersAux_loop___closed__10 = _init_l_Lean_expandExplicitBindersAux_loop___closed__10(); +lean_mark_persistent(l_Lean_expandExplicitBindersAux_loop___closed__10); +l_Lean_expandExplicitBindersAux_loop___closed__11 = _init_l_Lean_expandExplicitBindersAux_loop___closed__11(); +lean_mark_persistent(l_Lean_expandExplicitBindersAux_loop___closed__11); +l_Lean_expandExplicitBindersAux_loop___closed__12 = _init_l_Lean_expandExplicitBindersAux_loop___closed__12(); +lean_mark_persistent(l_Lean_expandExplicitBindersAux_loop___closed__12); +l_Lean_expandExplicitBindersAux_loop___closed__13 = _init_l_Lean_expandExplicitBindersAux_loop___closed__13(); +lean_mark_persistent(l_Lean_expandExplicitBindersAux_loop___closed__13); +l_Lean_expandExplicitBinders___closed__1 = _init_l_Lean_expandExplicitBinders___closed__1(); +lean_mark_persistent(l_Lean_expandExplicitBinders___closed__1); +l___kind_term____x40_Init_NotationExtra___hyg_859____closed__1 = _init_l___kind_term____x40_Init_NotationExtra___hyg_859____closed__1(); +lean_mark_persistent(l___kind_term____x40_Init_NotationExtra___hyg_859____closed__1); +l___kind_term____x40_Init_NotationExtra___hyg_859____closed__2 = _init_l___kind_term____x40_Init_NotationExtra___hyg_859____closed__2(); +lean_mark_persistent(l___kind_term____x40_Init_NotationExtra___hyg_859____closed__2); +l___kind_term____x40_Init_NotationExtra___hyg_859____closed__3 = _init_l___kind_term____x40_Init_NotationExtra___hyg_859____closed__3(); +lean_mark_persistent(l___kind_term____x40_Init_NotationExtra___hyg_859____closed__3); +l___kind_term____x40_Init_NotationExtra___hyg_859____closed__4 = _init_l___kind_term____x40_Init_NotationExtra___hyg_859____closed__4(); +lean_mark_persistent(l___kind_term____x40_Init_NotationExtra___hyg_859____closed__4); +l___kind_term____x40_Init_NotationExtra___hyg_859____closed__5 = _init_l___kind_term____x40_Init_NotationExtra___hyg_859____closed__5(); +lean_mark_persistent(l___kind_term____x40_Init_NotationExtra___hyg_859____closed__5); +l___kind_term____x40_Init_NotationExtra___hyg_859____closed__6 = _init_l___kind_term____x40_Init_NotationExtra___hyg_859____closed__6(); +lean_mark_persistent(l___kind_term____x40_Init_NotationExtra___hyg_859____closed__6); +l___kind_term____x40_Init_NotationExtra___hyg_859____closed__7 = _init_l___kind_term____x40_Init_NotationExtra___hyg_859____closed__7(); +lean_mark_persistent(l___kind_term____x40_Init_NotationExtra___hyg_859____closed__7); +l___kind_term____x40_Init_NotationExtra___hyg_859____closed__8 = _init_l___kind_term____x40_Init_NotationExtra___hyg_859____closed__8(); +lean_mark_persistent(l___kind_term____x40_Init_NotationExtra___hyg_859____closed__8); +l___kind_term____x40_Init_NotationExtra___hyg_859____closed__9 = _init_l___kind_term____x40_Init_NotationExtra___hyg_859____closed__9(); +lean_mark_persistent(l___kind_term____x40_Init_NotationExtra___hyg_859____closed__9); +l___kind_term____x40_Init_NotationExtra___hyg_859____closed__10 = _init_l___kind_term____x40_Init_NotationExtra___hyg_859____closed__10(); +lean_mark_persistent(l___kind_term____x40_Init_NotationExtra___hyg_859____closed__10); +l___kind_term____x40_Init_NotationExtra___hyg_859_ = _init_l___kind_term____x40_Init_NotationExtra___hyg_859_(); +lean_mark_persistent(l___kind_term____x40_Init_NotationExtra___hyg_859_); +l_myMacro____x40_Init_NotationExtra___hyg_901____closed__1 = _init_l_myMacro____x40_Init_NotationExtra___hyg_901____closed__1(); +lean_mark_persistent(l_myMacro____x40_Init_NotationExtra___hyg_901____closed__1); +l_myMacro____x40_Init_NotationExtra___hyg_901____closed__2 = _init_l_myMacro____x40_Init_NotationExtra___hyg_901____closed__2(); +lean_mark_persistent(l_myMacro____x40_Init_NotationExtra___hyg_901____closed__2); +l___kind_term____x40_Init_NotationExtra___hyg_983____closed__1 = _init_l___kind_term____x40_Init_NotationExtra___hyg_983____closed__1(); +lean_mark_persistent(l___kind_term____x40_Init_NotationExtra___hyg_983____closed__1); +l___kind_term____x40_Init_NotationExtra___hyg_983____closed__2 = _init_l___kind_term____x40_Init_NotationExtra___hyg_983____closed__2(); +lean_mark_persistent(l___kind_term____x40_Init_NotationExtra___hyg_983____closed__2); +l___kind_term____x40_Init_NotationExtra___hyg_983____closed__3 = _init_l___kind_term____x40_Init_NotationExtra___hyg_983____closed__3(); +lean_mark_persistent(l___kind_term____x40_Init_NotationExtra___hyg_983____closed__3); +l___kind_term____x40_Init_NotationExtra___hyg_983____closed__4 = _init_l___kind_term____x40_Init_NotationExtra___hyg_983____closed__4(); +lean_mark_persistent(l___kind_term____x40_Init_NotationExtra___hyg_983____closed__4); +l___kind_term____x40_Init_NotationExtra___hyg_983____closed__5 = _init_l___kind_term____x40_Init_NotationExtra___hyg_983____closed__5(); +lean_mark_persistent(l___kind_term____x40_Init_NotationExtra___hyg_983____closed__5); +l___kind_term____x40_Init_NotationExtra___hyg_983____closed__6 = _init_l___kind_term____x40_Init_NotationExtra___hyg_983____closed__6(); +lean_mark_persistent(l___kind_term____x40_Init_NotationExtra___hyg_983____closed__6); +l___kind_term____x40_Init_NotationExtra___hyg_983____closed__7 = _init_l___kind_term____x40_Init_NotationExtra___hyg_983____closed__7(); +lean_mark_persistent(l___kind_term____x40_Init_NotationExtra___hyg_983____closed__7); +l___kind_term____x40_Init_NotationExtra___hyg_983_ = _init_l___kind_term____x40_Init_NotationExtra___hyg_983_(); +lean_mark_persistent(l___kind_term____x40_Init_NotationExtra___hyg_983_); +l_myMacro____x40_Init_NotationExtra___hyg_1025____closed__1 = _init_l_myMacro____x40_Init_NotationExtra___hyg_1025____closed__1(); +lean_mark_persistent(l_myMacro____x40_Init_NotationExtra___hyg_1025____closed__1); +l_myMacro____x40_Init_NotationExtra___hyg_1025____closed__2 = _init_l_myMacro____x40_Init_NotationExtra___hyg_1025____closed__2(); +lean_mark_persistent(l_myMacro____x40_Init_NotationExtra___hyg_1025____closed__2); +l___kind_term____x40_Init_NotationExtra___hyg_1107____closed__1 = _init_l___kind_term____x40_Init_NotationExtra___hyg_1107____closed__1(); +lean_mark_persistent(l___kind_term____x40_Init_NotationExtra___hyg_1107____closed__1); +l___kind_term____x40_Init_NotationExtra___hyg_1107____closed__2 = _init_l___kind_term____x40_Init_NotationExtra___hyg_1107____closed__2(); +lean_mark_persistent(l___kind_term____x40_Init_NotationExtra___hyg_1107____closed__2); +l___kind_term____x40_Init_NotationExtra___hyg_1107____closed__3 = _init_l___kind_term____x40_Init_NotationExtra___hyg_1107____closed__3(); +lean_mark_persistent(l___kind_term____x40_Init_NotationExtra___hyg_1107____closed__3); +l___kind_term____x40_Init_NotationExtra___hyg_1107____closed__4 = _init_l___kind_term____x40_Init_NotationExtra___hyg_1107____closed__4(); +lean_mark_persistent(l___kind_term____x40_Init_NotationExtra___hyg_1107____closed__4); +l___kind_term____x40_Init_NotationExtra___hyg_1107____closed__5 = _init_l___kind_term____x40_Init_NotationExtra___hyg_1107____closed__5(); +lean_mark_persistent(l___kind_term____x40_Init_NotationExtra___hyg_1107____closed__5); +l___kind_term____x40_Init_NotationExtra___hyg_1107____closed__6 = _init_l___kind_term____x40_Init_NotationExtra___hyg_1107____closed__6(); +lean_mark_persistent(l___kind_term____x40_Init_NotationExtra___hyg_1107____closed__6); +l___kind_term____x40_Init_NotationExtra___hyg_1107____closed__7 = _init_l___kind_term____x40_Init_NotationExtra___hyg_1107____closed__7(); +lean_mark_persistent(l___kind_term____x40_Init_NotationExtra___hyg_1107____closed__7); +l___kind_term____x40_Init_NotationExtra___hyg_1107_ = _init_l___kind_term____x40_Init_NotationExtra___hyg_1107_(); +lean_mark_persistent(l___kind_term____x40_Init_NotationExtra___hyg_1107_); +l_myMacro____x40_Init_NotationExtra___hyg_1149____closed__1 = _init_l_myMacro____x40_Init_NotationExtra___hyg_1149____closed__1(); +lean_mark_persistent(l_myMacro____x40_Init_NotationExtra___hyg_1149____closed__1); +l_myMacro____x40_Init_NotationExtra___hyg_1149____closed__2 = _init_l_myMacro____x40_Init_NotationExtra___hyg_1149____closed__2(); +lean_mark_persistent(l_myMacro____x40_Init_NotationExtra___hyg_1149____closed__2); +l___kind_term____x40_Init_NotationExtra___hyg_1231____closed__1 = _init_l___kind_term____x40_Init_NotationExtra___hyg_1231____closed__1(); +lean_mark_persistent(l___kind_term____x40_Init_NotationExtra___hyg_1231____closed__1); +l___kind_term____x40_Init_NotationExtra___hyg_1231____closed__2 = _init_l___kind_term____x40_Init_NotationExtra___hyg_1231____closed__2(); +lean_mark_persistent(l___kind_term____x40_Init_NotationExtra___hyg_1231____closed__2); +l___kind_term____x40_Init_NotationExtra___hyg_1231____closed__3 = _init_l___kind_term____x40_Init_NotationExtra___hyg_1231____closed__3(); +lean_mark_persistent(l___kind_term____x40_Init_NotationExtra___hyg_1231____closed__3); +l___kind_term____x40_Init_NotationExtra___hyg_1231____closed__4 = _init_l___kind_term____x40_Init_NotationExtra___hyg_1231____closed__4(); +lean_mark_persistent(l___kind_term____x40_Init_NotationExtra___hyg_1231____closed__4); +l___kind_term____x40_Init_NotationExtra___hyg_1231____closed__5 = _init_l___kind_term____x40_Init_NotationExtra___hyg_1231____closed__5(); +lean_mark_persistent(l___kind_term____x40_Init_NotationExtra___hyg_1231____closed__5); +l___kind_term____x40_Init_NotationExtra___hyg_1231____closed__6 = _init_l___kind_term____x40_Init_NotationExtra___hyg_1231____closed__6(); +lean_mark_persistent(l___kind_term____x40_Init_NotationExtra___hyg_1231____closed__6); +l___kind_term____x40_Init_NotationExtra___hyg_1231_ = _init_l___kind_term____x40_Init_NotationExtra___hyg_1231_(); +lean_mark_persistent(l___kind_term____x40_Init_NotationExtra___hyg_1231_); +l___kind_term____x40_Init_NotationExtra___hyg_1345____closed__1 = _init_l___kind_term____x40_Init_NotationExtra___hyg_1345____closed__1(); +lean_mark_persistent(l___kind_term____x40_Init_NotationExtra___hyg_1345____closed__1); +l___kind_term____x40_Init_NotationExtra___hyg_1345____closed__2 = _init_l___kind_term____x40_Init_NotationExtra___hyg_1345____closed__2(); +lean_mark_persistent(l___kind_term____x40_Init_NotationExtra___hyg_1345____closed__2); +l___kind_term____x40_Init_NotationExtra___hyg_1345____closed__3 = _init_l___kind_term____x40_Init_NotationExtra___hyg_1345____closed__3(); +lean_mark_persistent(l___kind_term____x40_Init_NotationExtra___hyg_1345____closed__3); +l___kind_term____x40_Init_NotationExtra___hyg_1345____closed__4 = _init_l___kind_term____x40_Init_NotationExtra___hyg_1345____closed__4(); +lean_mark_persistent(l___kind_term____x40_Init_NotationExtra___hyg_1345____closed__4); +l___kind_term____x40_Init_NotationExtra___hyg_1345____closed__5 = _init_l___kind_term____x40_Init_NotationExtra___hyg_1345____closed__5(); +lean_mark_persistent(l___kind_term____x40_Init_NotationExtra___hyg_1345____closed__5); +l___kind_term____x40_Init_NotationExtra___hyg_1345____closed__6 = _init_l___kind_term____x40_Init_NotationExtra___hyg_1345____closed__6(); +lean_mark_persistent(l___kind_term____x40_Init_NotationExtra___hyg_1345____closed__6); +l___kind_term____x40_Init_NotationExtra___hyg_1345_ = _init_l___kind_term____x40_Init_NotationExtra___hyg_1345_(); +lean_mark_persistent(l___kind_term____x40_Init_NotationExtra___hyg_1345_); +return lean_io_result_mk_ok(lean_box(0)); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Lean/Data/FormatMacro.c b/stage0/stdlib/Lean/Data/FormatMacro.c index 911887a4c3..344473746c 100644 --- a/stage0/stdlib/Lean/Data/FormatMacro.c +++ b/stage0/stdlib/Lean/Data/FormatMacro.c @@ -29,13 +29,13 @@ extern lean_object* l___kind_term____x40_Init_Notation___hyg_3____closed__13; extern lean_object* l_myMacro____x40_Init_Notation___hyg_5787____closed__12; extern lean_object* l_Array_empty___closed__1; extern lean_object* l_myMacro____x40_Init_Notation___hyg_38____closed__3; -extern lean_object* l_myMacro____x40_Init_Tactics___hyg_508____closed__4; lean_object* l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__6; lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); extern lean_object* l___kind_term____x40_Init_Notation___hyg_3____closed__1; lean_object* l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; lean_object* lean_string_utf8_byte_size(lean_object*); +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__13; lean_object* l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean___kind_term____x40_Lean_Data_FormatMacro___hyg_3____closed__7; extern lean_object* l___kind_term____x40_Init_Data_ToString_Macro___hyg_2____closed__11; @@ -48,7 +48,6 @@ lean_object* l_Lean___kind_term____x40_Lean_Data_FormatMacro___hyg_3____closed__ lean_object* l_Lean___kind_term____x40_Lean_Data_FormatMacro___hyg_3____closed__5; extern lean_object* l_Lean_Init_Prelude___instance__72___closed__1; extern lean_object* l_myMacro____x40_Init_Notation___hyg_38____closed__5; -lean_object* l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__10; lean_object* l_Lean___kind_term____x40_Lean_Data_FormatMacro___hyg_3____closed__6; lean_object* l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__7; lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); @@ -352,37 +351,27 @@ return x_1; static lean_object* _init_l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_empty___closed__1; -x_2 = l_myMacro____x40_Init_Tactics___hyg_508____closed__4; -x_3 = lean_array_push(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__4() { -_start: -{ lean_object* x_1; x_1 = lean_mk_string("Format"); return x_1; } } -static lean_object* _init_l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__5() { +static lean_object* _init_l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__4; +x_1 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__6() { +static lean_object* _init_l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__4; +x_1 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__5; +x_3 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__4; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -390,12 +379,22 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__7() { +static lean_object* _init_l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__4; +x_2 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_myMacro____x40_Init_Notation___hyg_38____closed__2; +x_2 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -404,9 +403,11 @@ static lean_object* _init_l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_myMacro____x40_Init_Notation___hyg_38____closed__2; -x_2 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__4; -x_3 = lean_name_mk_string(x_1, x_2); +x_1 = lean_box(0); +x_2 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__7; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); return x_3; } } @@ -416,18 +417,6 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__8; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; -} -} -static lean_object* _init_l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__10() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__9; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); @@ -500,17 +489,17 @@ lean_inc(x_23); lean_dec(x_2); x_24 = l_Array_empty___closed__1; x_25 = lean_array_push(x_24, x_21); -x_26 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__7; +x_26 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__6; x_27 = l_Lean_addMacroScope(x_23, x_26, x_22); x_28 = l_Lean_Init_Prelude___instance__72___closed__1; -x_29 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__6; -x_30 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__10; +x_29 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__5; +x_30 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__9; x_31 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_31, 0, x_28); lean_ctor_set(x_31, 1, x_29); lean_ctor_set(x_31, 2, x_27); lean_ctor_set(x_31, 3, x_30); -x_32 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_32 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_33 = lean_array_push(x_32, x_31); x_34 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_43____closed__4; x_35 = lean_alloc_ctor(1, 2, 0); @@ -551,17 +540,17 @@ lean_inc(x_50); lean_dec(x_2); x_51 = l_Array_empty___closed__1; x_52 = lean_array_push(x_51, x_47); -x_53 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__7; +x_53 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__6; x_54 = l_Lean_addMacroScope(x_50, x_53, x_49); x_55 = l_Lean_Init_Prelude___instance__72___closed__1; -x_56 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__6; -x_57 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__10; +x_56 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__5; +x_57 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__9; x_58 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_58, 0, x_55); lean_ctor_set(x_58, 1, x_56); lean_ctor_set(x_58, 2, x_54); lean_ctor_set(x_58, 3, x_57); -x_59 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_59 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_60 = lean_array_push(x_59, x_58); x_61 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_43____closed__4; x_62 = lean_alloc_ctor(1, 2, 0); @@ -693,8 +682,6 @@ l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__8 = _init_l_Lean lean_mark_persistent(l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__8); l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__9 = _init_l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__9(); lean_mark_persistent(l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__9); -l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__10 = _init_l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__10(); -lean_mark_persistent(l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__10); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Delaborator.c b/stage0/stdlib/Lean/Delaborator.c index 5535ef8919..88b0c88954 100644 --- a/stage0/stdlib/Lean/Delaborator.c +++ b/stage0/stdlib/Lean/Delaborator.c @@ -196,6 +196,7 @@ extern lean_object* l_myMacro____x40_Init_Core___hyg_720____closed__4; extern lean_object* l_Array_empty___closed__1; lean_object* l_Lean_Delaborator_delabLit_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Delaborator_delabTuple(lean_object*); +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__12; lean_object* lean_environment_find(lean_object*, lean_object*); lean_object* l_Lean_getPPNotation___closed__1; lean_object* l_Array_mapMUnsafe_map___at_Lean_Delaborator_getParamKinds___spec__1(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -241,7 +242,6 @@ lean_object* l_Lean_Delaborator_withMDataExpr_match__1(lean_object*); lean_object* l___regBuiltin_Lean_Delaborator_delabGE(lean_object*); lean_object* l_Lean_Delaborator_delabConsList___closed__1; extern lean_object* l_Lean_Expr_ctorName___closed__2; -extern lean_object* l_myMacro____x40_Init_Tactics___hyg_508____closed__4; lean_object* l_Lean_Delaborator_mkDelabAttribute___closed__10; lean_object* l_Lean_Delaborator_Lean_Delaborator___instance__3; lean_object* l_Lean_Delaborator_delabMod___lambda__1___closed__1; @@ -313,7 +313,6 @@ lean_object* l_Lean_Delaborator_liftMetaM___rarg(lean_object*, lean_object*, lea lean_object* l_Lean_Level_getOffsetAux(lean_object*, lean_object*); lean_object* l_Lean_Delaborator_Lean_Delaborator___instance__3___closed__1; lean_object* l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_995____spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; lean_object* l_Lean_Delaborator_delabListToArray___lambda__1___closed__1; lean_object* l_Lean_Delaborator_delabAnd___lambda__1___closed__1; lean_object* l_Lean_Level_quote_match__1(lean_object*); @@ -380,6 +379,7 @@ extern lean_object* l_myMacro____x40_Init_Notation___hyg_5372____closed__4; extern lean_object* l_myMacro____x40_Init_Notation___hyg_706____closed__4; lean_object* l_Lean_Delaborator_delabTuple(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Delaborator_orElse___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__13; extern lean_object* l___kind_term____x40_Init_Notation___hyg_6910____closed__1; lean_object* l___regBuiltin_Lean_Delaborator_delabBind(lean_object*); lean_object* l_Lean_Delaborator_delabMap___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -702,7 +702,6 @@ lean_object* l_Lean_Delaborator_delabHEq___lambda__1___closed__4; extern lean_object* l___kind_term____x40_Init_Notation___hyg_3177____closed__1; lean_object* l_Lean_Delaborator_hasIdent_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Delaborator_delabOrM___closed__2; -lean_object* l_Lean_Delaborator_delabLetE___closed__3; lean_object* l_Lean_Delaborator_delabIff___lambda__1___closed__2; lean_object* l_Lean_Syntax_mkStrLit(lean_object*, lean_object*); lean_object* l_Lean_Delaborator_withBindingBody___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -734,6 +733,7 @@ uint8_t l_Lean_getPPPrivateNames(lean_object*); size_t lean_usize_modn(size_t, lean_object*); lean_object* l_Lean_Delaborator_delabProjectionApp___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Delaborator_Lean_Delaborator___instance__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__11; extern lean_object* l_Lean_mkSimpleThunk___closed__1; lean_object* l_Lean_Delaborator_delabLam___lambda__3___closed__4; lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -774,7 +774,6 @@ lean_object* l_Lean_Delaborator_getParamKinds_match__1(lean_object*); lean_object* l_Lean_Delaborator_delabAnd(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Delaborator_delabBNe___closed__1; extern lean_object* l___kind_term____x40_Init_Control_Basic___hyg_754____closed__1; -lean_object* l_Lean_Delaborator_delabProd___lambda__1___closed__2; lean_object* l_Lean_Delaborator_delabOrM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Delaborator_delabGE___lambda__1___closed__1; extern lean_object* l_myMacro____x40_Init_Notation___hyg_6360____closed__13; @@ -1109,6 +1108,7 @@ lean_object* l_Lean_Delaborator_delabInfixOp(lean_object*, lean_object*, lean_ob lean_object* l_Lean_Delaborator_delabMul___closed__1; extern lean_object* l_Lean_mkOptionalNode___closed__1; extern lean_object* l_Array_Init_Data_Array_Basic___instance__3___rarg___closed__1; +extern lean_object* l___kind_term____x40_Init_NotationExtra___hyg_1231____closed__2; extern lean_object* l___kind_term____x40_Init_Notation___hyg_4833____closed__1; extern lean_object* l_Lean_Meta_evalNat___closed__1; lean_object* l_Lean_getPPNotation___closed__2; @@ -1161,7 +1161,6 @@ lean_object* l_Lean_Delaborator_delabMData_match__2(lean_object*); lean_object* l_Lean_Delaborator_delabSort___closed__4; lean_object* l_Lean_Delaborator_delabProjectionApp_match__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Delaborator_delabAndM___closed__1; -lean_object* l_Lean_Delaborator_delabLetE___closed__4; lean_object* l___regBuiltin_Lean_Delaborator_delabBVar___closed__1; lean_object* l_Lean_Delaborator_delabModN(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_Delaborator_0__Lean_Delaborator_delabPatterns___spec__4(lean_object*); @@ -1191,6 +1190,7 @@ extern lean_object* l_myMacro____x40_Init_Notation___hyg_2054____closed__1; lean_object* l_Lean_Delaborator_getParamKinds___closed__1; lean_object* l_Array_mapMUnsafe_map___at_Lean_Delaborator_delabConst___spec__1(size_t, size_t, lean_object*); extern lean_object* l_Lean_KeyedDeclsAttribute_Lean_KeyedDeclsAttribute___instance__3___closed__1; +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__2; lean_object* l___regBuiltin_Lean_Delaborator_delabMapRev(lean_object*); lean_object* l___regBuiltin_Lean_Delaborator_delabNil___closed__1; lean_object* l_Lean_Delaborator_delabCons___lambda__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1311,7 +1311,6 @@ lean_object* l_Lean_Delaborator_delabNil___lambda__1___boxed(lean_object*, lean_ lean_object* l_Lean_Level_quote(lean_object*); lean_object* l_Lean_Level_quote___closed__4; lean_object* l_Lean_Delaborator_delabConst_match__1___rarg(lean_object*, lean_object*, lean_object*); -extern lean_object* l_myMacro____x40_Init_Tactics___hyg_508____closed__6; extern lean_object* l_myMacro____x40_Init_Notation___hyg_4032____closed__1; lean_object* l_Lean_Delaborator_delabConst___closed__3; lean_object* l___regBuiltin_Lean_Delaborator_delabForall(lean_object*); @@ -1779,7 +1778,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Level_elabLevel___closed__6; -x_2 = l_myMacro____x40_Init_Tactics___hyg_508____closed__6; +x_2 = l_Lean_expandExplicitBindersAux_loop___closed__2; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -22029,7 +22028,7 @@ _start: lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; x_10 = l_Array_empty___closed__1; x_11 = lean_array_push(x_10, x_3); -x_12 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_12 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_13 = lean_array_push(x_12, x_1); x_14 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_43____closed__4; x_15 = lean_alloc_ctor(1, 2, 0); @@ -22401,7 +22400,7 @@ lean_ctor_set(x_72, 0, x_71); lean_ctor_set(x_72, 1, x_70); x_73 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_331____closed__4; x_74 = lean_array_push(x_73, x_72); -x_75 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_75 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_76 = lean_array_push(x_75, x_14); x_77 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_77, 0, x_71); @@ -22431,7 +22430,7 @@ x_84 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_1); lean_dec(x_1); x_85 = l_Array_empty___closed__1; x_86 = lean_array_push(x_85, x_84); -x_87 = l_myMacro____x40_Init_Tactics___hyg_508____closed__4; +x_87 = l_Lean_expandExplicitBindersAux_loop___closed__12; x_88 = lean_array_push(x_86, x_87); x_89 = l_Lean_nullKind___closed__2; x_90 = lean_alloc_ctor(1, 2, 0); @@ -22792,7 +22791,7 @@ lean_ctor_set(x_173, 0, x_172); lean_ctor_set(x_173, 1, x_171); x_174 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_331____closed__4; x_175 = lean_array_push(x_174, x_173); -x_176 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_176 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_177 = lean_array_push(x_176, x_14); x_178 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_178, 0, x_172); @@ -22822,7 +22821,7 @@ x_185 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_1); lean_dec(x_1); x_186 = l_Array_empty___closed__1; x_187 = lean_array_push(x_186, x_185); -x_188 = l_myMacro____x40_Init_Tactics___hyg_508____closed__4; +x_188 = l_Lean_expandExplicitBindersAux_loop___closed__12; x_189 = lean_array_push(x_187, x_188); x_190 = l_Lean_nullKind___closed__2; x_191 = lean_alloc_ctor(1, 2, 0); @@ -23356,7 +23355,7 @@ lean_ctor_set(x_48, 0, x_47); lean_ctor_set(x_48, 1, x_46); x_49 = l_myMacro____x40_Init_Notation___hyg_6360____closed__9; x_50 = lean_array_push(x_49, x_48); -x_51 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_51 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_52 = lean_array_push(x_51, x_15); x_53 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_53, 0, x_47); @@ -23488,7 +23487,7 @@ lean_ctor_set(x_70, 0, x_69); lean_ctor_set(x_70, 1, x_68); x_71 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_331____closed__4; x_72 = lean_array_push(x_71, x_70); -x_73 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_73 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_74 = lean_array_push(x_73, x_15); x_75 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_75, 0, x_69); @@ -23529,7 +23528,7 @@ lean_dec(x_3); x_88 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_1); x_89 = l_Array_empty___closed__1; x_90 = lean_array_push(x_89, x_88); -x_91 = l_myMacro____x40_Init_Tactics___hyg_508____closed__4; +x_91 = l_Lean_expandExplicitBindersAux_loop___closed__12; x_92 = lean_array_push(x_90, x_91); x_93 = l_Lean_nullKind___closed__2; x_94 = lean_alloc_ctor(1, 2, 0); @@ -23697,7 +23696,7 @@ lean_ctor_set(x_154, 0, x_153); lean_ctor_set(x_154, 1, x_152); x_155 = l_myMacro____x40_Init_Notation___hyg_6360____closed__9; x_156 = lean_array_push(x_155, x_154); -x_157 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_157 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_158 = lean_array_push(x_157, x_121); x_159 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_159, 0, x_153); @@ -23829,7 +23828,7 @@ lean_ctor_set(x_177, 0, x_176); lean_ctor_set(x_177, 1, x_175); x_178 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_331____closed__4; x_179 = lean_array_push(x_178, x_177); -x_180 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_180 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_181 = lean_array_push(x_180, x_121); x_182 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_182, 0, x_176); @@ -23869,7 +23868,7 @@ lean_dec(x_3); x_195 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_1); x_196 = l_Array_empty___closed__1; x_197 = lean_array_push(x_196, x_195); -x_198 = l_myMacro____x40_Init_Tactics___hyg_508____closed__4; +x_198 = l_Lean_expandExplicitBindersAux_loop___closed__12; x_199 = lean_array_push(x_197, x_198); x_200 = l_Lean_nullKind___closed__2; x_201 = lean_alloc_ctor(1, 2, 0); @@ -24179,24 +24178,6 @@ x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); return x_6; } } -static lean_object* _init_l_Lean_Delaborator_delabLetE___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("typeSpec"); -return x_1; -} -} -static lean_object* _init_l_Lean_Delaborator_delabLetE___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_myMacro____x40_Init_Notation___hyg_38____closed__6; -x_2 = l_Lean_Delaborator_delabLetE___closed__3; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} lean_object* l_Lean_Delaborator_delabLetE(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { @@ -24276,9 +24257,9 @@ x_31 = l_Array_empty___closed__1; x_32 = lean_array_push(x_31, x_30); x_33 = l_myMacro____x40_Init_Notation___hyg_6360____closed__18; x_34 = lean_array_push(x_32, x_33); -x_35 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_35 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_36 = lean_array_push(x_35, x_20); -x_37 = l_Lean_Delaborator_delabLetE___closed__4; +x_37 = l_Lean_expandExplicitBindersAux_loop___closed__11; x_38 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_38, 0, x_37); lean_ctor_set(x_38, 1, x_36); @@ -24325,9 +24306,9 @@ x_61 = l_Array_empty___closed__1; x_62 = lean_array_push(x_61, x_60); x_63 = l_myMacro____x40_Init_Notation___hyg_6360____closed__18; x_64 = lean_array_push(x_62, x_63); -x_65 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_65 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_66 = lean_array_push(x_65, x_20); -x_67 = l_Lean_Delaborator_delabLetE___closed__4; +x_67 = l_Lean_expandExplicitBindersAux_loop___closed__11; x_68 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_68, 0, x_67); lean_ctor_set(x_68, 1, x_66); @@ -26327,7 +26308,7 @@ x_81 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_331____closed__5; x_82 = lean_array_push(x_81, x_80); x_83 = l_myMacro____x40_Init_Notation___hyg_6360____closed__18; x_84 = lean_array_push(x_82, x_83); -x_85 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_85 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_86 = lean_array_push(x_85, x_77); x_87 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_87, 0, x_79); @@ -26360,7 +26341,7 @@ x_98 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_331____closed__5; x_99 = lean_array_push(x_98, x_97); x_100 = l_myMacro____x40_Init_Notation___hyg_6360____closed__18; x_101 = lean_array_push(x_99, x_100); -x_102 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_102 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_103 = lean_array_push(x_102, x_93); x_104 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_104, 0, x_96); @@ -27901,17 +27882,9 @@ return x_12; static lean_object* _init_l_Lean_Delaborator_delabProd___lambda__1___closed__1() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("×"); -return x_1; -} -} -static lean_object* _init_l_Lean_Delaborator_delabProd___lambda__1___closed__2() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Init_Prelude___instance__72___closed__1; -x_2 = l_Lean_Delaborator_delabProd___lambda__1___closed__1; +x_2 = l___kind_term____x40_Init_NotationExtra___hyg_1231____closed__2; x_3 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -27924,7 +27897,7 @@ _start: lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; x_10 = l_Array_empty___closed__1; x_11 = lean_array_push(x_10, x_2); -x_12 = l_Lean_Delaborator_delabProd___lambda__1___closed__2; +x_12 = l_Lean_Delaborator_delabProd___lambda__1___closed__1; x_13 = lean_array_push(x_11, x_12); x_14 = lean_array_push(x_13, x_3); x_15 = l___kind_term____x40_Init_Notation___hyg_171____closed__1; @@ -33660,10 +33633,6 @@ l_Lean_Delaborator_delabLetE___closed__1 = _init_l_Lean_Delaborator_delabLetE___ lean_mark_persistent(l_Lean_Delaborator_delabLetE___closed__1); l_Lean_Delaborator_delabLetE___closed__2 = _init_l_Lean_Delaborator_delabLetE___closed__2(); lean_mark_persistent(l_Lean_Delaborator_delabLetE___closed__2); -l_Lean_Delaborator_delabLetE___closed__3 = _init_l_Lean_Delaborator_delabLetE___closed__3(); -lean_mark_persistent(l_Lean_Delaborator_delabLetE___closed__3); -l_Lean_Delaborator_delabLetE___closed__4 = _init_l_Lean_Delaborator_delabLetE___closed__4(); -lean_mark_persistent(l_Lean_Delaborator_delabLetE___closed__4); l___regBuiltin_Lean_Delaborator_delabLetE___closed__1 = _init_l___regBuiltin_Lean_Delaborator_delabLetE___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Delaborator_delabLetE___closed__1); res = l___regBuiltin_Lean_Delaborator_delabLetE(lean_io_mk_world()); @@ -33785,8 +33754,6 @@ l_Lean_Delaborator_delabInfixOp___closed__1 = _init_l_Lean_Delaborator_delabInfi lean_mark_persistent(l_Lean_Delaborator_delabInfixOp___closed__1); l_Lean_Delaborator_delabProd___lambda__1___closed__1 = _init_l_Lean_Delaborator_delabProd___lambda__1___closed__1(); lean_mark_persistent(l_Lean_Delaborator_delabProd___lambda__1___closed__1); -l_Lean_Delaborator_delabProd___lambda__1___closed__2 = _init_l_Lean_Delaborator_delabProd___lambda__1___closed__2(); -lean_mark_persistent(l_Lean_Delaborator_delabProd___lambda__1___closed__2); l_Lean_Delaborator_delabProd___closed__1 = _init_l_Lean_Delaborator_delabProd___closed__1(); lean_mark_persistent(l_Lean_Delaborator_delabProd___closed__1); l___regBuiltin_Lean_Delaborator_delabProd___closed__1 = _init_l___regBuiltin_Lean_Delaborator_delabProd___closed__1(); diff --git a/stage0/stdlib/Lean/Elab/Binders.c b/stage0/stdlib/Lean/Elab/Binders.c index 232cb96b4f..f7fdbb2f4c 100644 --- a/stage0/stdlib/Lean/Elab/Binders.c +++ b/stage0/stdlib/Lean/Elab/Binders.c @@ -30,7 +30,6 @@ lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandMatchAltsInto extern lean_object* l_Lean_Syntax_strLitToAtom___closed__3; lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_331____closed__16; -lean_object* l_Lean_Elab_Term_elabLetDeclCore___closed__12; lean_object* l_Lean_Elab_Term_elabLetDeclAux___lambda__1___closed__3; lean_object* l_Lean_Elab_Term_elabDepArrow___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -118,7 +117,6 @@ lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0_ lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandMatchAltsIntoMatchAux_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_getMatchAltNumPatterns___boxed(lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_995____spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; lean_object* l_Lean_Elab_Term_elabLetDeclCore_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Elab_Term_elabLetDeclAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Init_Control_Reader___instance__2___closed__2; @@ -138,6 +136,7 @@ lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_processPostponed(uint lean_object* l_Lean_Meta_instantiateMVarsImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandMatchAltsIntoMatchTactic(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandFunBinders_loop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__13; lean_object* l_Lean_Meta_setPostponed___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_getResetPostponed___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_propagateExpectedType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -166,7 +165,6 @@ lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_getBinderIds(lean_o lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_propagateExpectedType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__5; lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_propagateExpectedType_match__2___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___closed__3; lean_object* l_Lean_Elab_Term_elabTermEnsuringType(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__29; @@ -204,7 +202,6 @@ lean_object* l_Lean_Elab_Term_elabLetDeclAux___lambda__2(lean_object*, lean_obje lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_496____closed__1; lean_object* l_Lean_Elab_Term_elabForall___closed__1; -lean_object* l_Lean_Elab_Term_elabLetDeclCore___closed__11; lean_object* l_Lean_Elab_Term_elabForall___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabLetDeclAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkLetIdDeclView___boxed(lean_object*); @@ -273,6 +270,7 @@ lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews___l lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__19; lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_quoteAutoTactic___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_38____closed__8; +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__11; lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder_match__1(lean_object*); lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_isEmpty___rarg(lean_object*); @@ -404,7 +402,6 @@ lean_object* lean_name_mk_numeral(lean_object*, lean_object*); extern lean_object* l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_496____closed__16; lean_object* l_Lean_setEnv___at_Lean_Elab_Term_declareTacticSyntax___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withoutPostponingUniverseConstraintsImp___at_Lean_Elab_Term_elabBinders___spec__2___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___closed__4; lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_331____closed__25; lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -430,6 +427,7 @@ extern lean_object* l_Lean_mkHole___closed__2; lean_object* l_Lean_Elab_Term_elabBinders___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkLetIdDeclView(lean_object*); extern lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__10; +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__9; lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___boxed__const__1; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_getBinderIds___spec__1___closed__3; lean_object* l_Lean_Elab_Term_elabLetDeclCore___closed__9; @@ -437,6 +435,7 @@ lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall__ lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__17; lean_object* l_Lean_Elab_Term_elabLetDeclAux___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_setEnv___at_Lean_Elab_Term_declareTacticSyntax___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__8; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__6; lean_object* l_Lean_compileDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -3862,24 +3861,6 @@ goto _start; static lean_object* _init_l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___closed__1() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("simpleBinder"); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_myMacro____x40_Init_Notation___hyg_38____closed__6; -x_2 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___closed__3() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_myMacro____x40_Init_Notation___hyg_38____closed__6; x_2 = l_Array_anyMUnsafe_any___at___private_Lean_Elab_Term_0__Lean_Elab_Term_isLambdaWithImplicit___spec__1___closed__1; @@ -3887,7 +3868,7 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___closed__4() { +static lean_object* _init_l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -3914,7 +3895,7 @@ if (lean_obj_tag(x_1) == 1) lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; x_9 = lean_ctor_get(x_1, 0); x_10 = lean_ctor_get(x_1, 1); -x_11 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___closed__2; +x_11 = l_Lean_expandExplicitBindersAux_loop___closed__9; x_12 = lean_name_eq(x_9, x_11); if (x_12 == 0) { @@ -3924,12 +3905,12 @@ x_14 = lean_name_eq(x_9, x_13); if (x_14 == 0) { lean_object* x_15; uint8_t x_16; -x_15 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___closed__3; +x_15 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___closed__1; x_16 = lean_name_eq(x_9, x_15); if (x_16 == 0) { lean_object* x_17; uint8_t x_18; -x_17 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___closed__4; +x_17 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___closed__2; x_18 = lean_name_eq(x_9, x_17); if (x_18 == 0) { @@ -6425,7 +6406,7 @@ lean_ctor_set(x_36, 0, x_35); lean_ctor_set(x_36, 1, x_34); x_37 = l_myMacro____x40_Init_Notation___hyg_6360____closed__9; x_38 = lean_array_push(x_37, x_36); -x_39 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_39 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_40 = lean_array_push(x_39, x_18); x_41 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_41, 0, x_35); @@ -6481,7 +6462,7 @@ lean_ctor_set(x_69, 0, x_68); lean_ctor_set(x_69, 1, x_67); x_70 = l_myMacro____x40_Init_Notation___hyg_6360____closed__9; x_71 = lean_array_push(x_70, x_69); -x_72 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_72 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_73 = lean_array_push(x_72, x_18); x_74 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_74, 0, x_68); @@ -7175,7 +7156,7 @@ if (x_49 == 0) { lean_object* x_50; uint8_t x_51; lean_dec(x_4); -x_50 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___closed__1; +x_50 = l_Lean_expandExplicitBindersAux_loop___closed__8; x_51 = lean_string_dec_eq(x_17, x_50); if (x_51 == 0) { @@ -7391,7 +7372,7 @@ if (x_100 == 0) { lean_object* x_101; uint8_t x_102; lean_dec(x_4); -x_101 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___closed__1; +x_101 = l_Lean_expandExplicitBindersAux_loop___closed__8; x_102 = lean_string_dec_eq(x_17, x_101); if (x_102 == 0) { @@ -7658,7 +7639,7 @@ if (x_160 == 0) { lean_object* x_161; uint8_t x_162; lean_dec(x_4); -x_161 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___closed__1; +x_161 = l_Lean_expandExplicitBindersAux_loop___closed__8; x_162 = lean_string_dec_eq(x_17, x_161); if (x_162 == 0) { @@ -7959,7 +7940,7 @@ if (x_226 == 0) { lean_object* x_227; uint8_t x_228; lean_dec(x_4); -x_227 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___closed__1; +x_227 = l_Lean_expandExplicitBindersAux_loop___closed__8; x_228 = lean_string_dec_eq(x_17, x_227); if (x_228 == 0) { @@ -8294,7 +8275,7 @@ if (x_298 == 0) { lean_object* x_299; uint8_t x_300; lean_dec(x_4); -x_299 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___closed__1; +x_299 = l_Lean_expandExplicitBindersAux_loop___closed__8; x_300 = lean_string_dec_eq(x_17, x_299); if (x_300 == 0) { @@ -8661,7 +8642,7 @@ if (x_376 == 0) { lean_object* x_377; uint8_t x_378; lean_dec(x_4); -x_377 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___closed__1; +x_377 = l_Lean_expandExplicitBindersAux_loop___closed__8; x_378 = lean_string_dec_eq(x_340, x_377); if (x_378 == 0) { @@ -10919,7 +10900,7 @@ x_809 = lean_string_dec_eq(x_200, x_808); if (x_809 == 0) { lean_object* x_810; uint8_t x_811; -x_810 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___closed__1; +x_810 = l_Lean_expandExplicitBindersAux_loop___closed__8; x_811 = lean_string_dec_eq(x_200, x_810); if (x_811 == 0) { @@ -20605,34 +20586,16 @@ static lean_object* _init_l_Lean_Elab_Term_elabLetDeclCore___closed__5() { _start: { lean_object* x_1; -x_1 = lean_mk_string("typeSpec"); +x_1 = lean_mk_string("Lean.Elab.Term.elabLetDeclCore"); return x_1; } } static lean_object* _init_l_Lean_Elab_Term_elabLetDeclCore___closed__6() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_myMacro____x40_Init_Notation___hyg_38____closed__6; -x_2 = l_Lean_Elab_Term_elabLetDeclCore___closed__5; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Term_elabLetDeclCore___closed__7() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("Lean.Elab.Term.elabLetDeclCore"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Term_elabLetDeclCore___closed__8() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Elab_Term_quoteAutoTactic___closed__1; -x_2 = l_Lean_Elab_Term_elabLetDeclCore___closed__7; +x_2 = l_Lean_Elab_Term_elabLetDeclCore___closed__5; x_3 = lean_unsigned_to_nat(513u); x_4 = lean_unsigned_to_nat(24u); x_5 = l_Lean_Syntax_strLitToAtom___closed__3; @@ -20640,7 +20603,7 @@ x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); return x_6; } } -static lean_object* _init_l_Lean_Elab_Term_elabLetDeclCore___closed__9() { +static lean_object* _init_l_Lean_Elab_Term_elabLetDeclCore___closed__7() { _start: { lean_object* x_1; @@ -20648,6 +20611,24 @@ x_1 = lean_mk_string("let!"); return x_1; } } +static lean_object* _init_l_Lean_Elab_Term_elabLetDeclCore___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_myMacro____x40_Init_Notation___hyg_38____closed__6; +x_2 = l_Lean_Elab_Term_elabLetDeclCore___closed__7; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Term_elabLetDeclCore___closed__9() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("let*"); +return x_1; +} +} static lean_object* _init_l_Lean_Elab_Term_elabLetDeclCore___closed__10() { _start: { @@ -20658,24 +20639,6 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_elabLetDeclCore___closed__11() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("let*"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Term_elabLetDeclCore___closed__12() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_myMacro____x40_Init_Notation___hyg_38____closed__6; -x_2 = l_Lean_Elab_Term_elabLetDeclCore___closed__11; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} lean_object* l_Lean_Elab_Term_elabLetDeclCore(lean_object* x_1, lean_object* x_2, uint8_t x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { @@ -20856,9 +20819,9 @@ lean_inc(x_104); x_106 = lean_array_push(x_105, x_104); x_107 = l_myMacro____x40_Init_Notation___hyg_6360____closed__18; x_108 = lean_array_push(x_106, x_107); -x_109 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_109 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_110 = lean_array_push(x_109, x_90); -x_111 = l_Lean_Elab_Term_elabLetDeclCore___closed__6; +x_111 = l_Lean_expandExplicitBindersAux_loop___closed__11; x_112 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_112, 0, x_111); lean_ctor_set(x_112, 1, x_110); @@ -20942,7 +20905,7 @@ if (x_159 == 0) lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; uint8_t x_166; lean_object* x_167; x_160 = lean_ctor_get(x_5, 6); x_161 = l_Lean_Init_Prelude___instance__73; -x_162 = l_Lean_Elab_Term_elabLetDeclCore___closed__8; +x_162 = l_Lean_Elab_Term_elabLetDeclCore___closed__6; x_163 = lean_panic_fn(x_161, x_162); lean_inc(x_163); x_164 = lean_alloc_ctor(0, 2, 0); @@ -20979,7 +20942,7 @@ lean_inc(x_169); lean_inc(x_168); lean_dec(x_5); x_178 = l_Lean_Init_Prelude___instance__73; -x_179 = l_Lean_Elab_Term_elabLetDeclCore___closed__8; +x_179 = l_Lean_Elab_Term_elabLetDeclCore___closed__6; x_180 = lean_panic_fn(x_178, x_179); lean_inc(x_180); x_181 = lean_alloc_ctor(0, 2, 0); @@ -21012,7 +20975,7 @@ if (x_186 == 0) { lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; uint8_t x_192; lean_object* x_193; x_187 = lean_ctor_get(x_5, 6); -x_188 = l_Lean_Elab_Term_elabLetDeclCore___closed__10; +x_188 = l_Lean_Elab_Term_elabLetDeclCore___closed__8; x_189 = l_Lean_Syntax_setKind(x_158, x_188); lean_inc(x_189); x_190 = lean_alloc_ctor(0, 2, 0); @@ -21048,7 +21011,7 @@ lean_inc(x_196); lean_inc(x_195); lean_inc(x_194); lean_dec(x_5); -x_204 = l_Lean_Elab_Term_elabLetDeclCore___closed__10; +x_204 = l_Lean_Elab_Term_elabLetDeclCore___closed__8; x_205 = l_Lean_Syntax_setKind(x_158, x_204); lean_inc(x_205); x_206 = lean_alloc_ctor(0, 2, 0); @@ -21149,7 +21112,7 @@ if (x_232 == 0) { lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; uint8_t x_238; lean_object* x_239; x_233 = lean_ctor_get(x_5, 6); -x_234 = l_Lean_Elab_Term_elabLetDeclCore___closed__12; +x_234 = l_Lean_Elab_Term_elabLetDeclCore___closed__10; x_235 = l_Lean_Syntax_setKind(x_158, x_234); lean_inc(x_235); x_236 = lean_alloc_ctor(0, 2, 0); @@ -21185,7 +21148,7 @@ lean_inc(x_242); lean_inc(x_241); lean_inc(x_240); lean_dec(x_5); -x_250 = l_Lean_Elab_Term_elabLetDeclCore___closed__12; +x_250 = l_Lean_Elab_Term_elabLetDeclCore___closed__10; x_251 = l_Lean_Syntax_setKind(x_158, x_250); lean_inc(x_251); x_252 = lean_alloc_ctor(0, 2, 0); @@ -21367,7 +21330,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Term_termElabAttribute; -x_3 = l_Lean_Elab_Term_elabLetDeclCore___closed__10; +x_3 = l_Lean_Elab_Term_elabLetDeclCore___closed__8; x_4 = l___regBuiltin_Lean_Elab_Term_elabLetBangDecl___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; @@ -21395,7 +21358,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Term_termElabAttribute; -x_3 = l_Lean_Elab_Term_elabLetDeclCore___closed__12; +x_3 = l_Lean_Elab_Term_elabLetDeclCore___closed__10; x_4 = l___regBuiltin_Lean_Elab_Term_elabLetStarDecl___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; @@ -21517,10 +21480,6 @@ l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___closed__1 = _init_ lean_mark_persistent(l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___closed__1); l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___closed__2 = _init_l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___closed__2(); lean_mark_persistent(l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___closed__2); -l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___closed__3 = _init_l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___closed__3); -l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___closed__4 = _init_l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___closed__4); l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___boxed__const__1 = _init_l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___boxed__const__1(); lean_mark_persistent(l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___boxed__const__1); l___private_Lean_Elab_Binders_0__Lean_Elab_Term_registerFailedToInferBinderTypeInfo___closed__1 = _init_l___private_Lean_Elab_Binders_0__Lean_Elab_Term_registerFailedToInferBinderTypeInfo___closed__1(); @@ -21665,10 +21624,6 @@ l_Lean_Elab_Term_elabLetDeclCore___closed__9 = _init_l_Lean_Elab_Term_elabLetDec lean_mark_persistent(l_Lean_Elab_Term_elabLetDeclCore___closed__9); l_Lean_Elab_Term_elabLetDeclCore___closed__10 = _init_l_Lean_Elab_Term_elabLetDeclCore___closed__10(); lean_mark_persistent(l_Lean_Elab_Term_elabLetDeclCore___closed__10); -l_Lean_Elab_Term_elabLetDeclCore___closed__11 = _init_l_Lean_Elab_Term_elabLetDeclCore___closed__11(); -lean_mark_persistent(l_Lean_Elab_Term_elabLetDeclCore___closed__11); -l_Lean_Elab_Term_elabLetDeclCore___closed__12 = _init_l_Lean_Elab_Term_elabLetDeclCore___closed__12(); -lean_mark_persistent(l_Lean_Elab_Term_elabLetDeclCore___closed__12); l___regBuiltin_Lean_Elab_Term_elabLetDecl___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabLetDecl___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabLetDecl___closed__1); res = l___regBuiltin_Lean_Elab_Term_elabLetDecl(lean_io_mk_world()); diff --git a/stage0/stdlib/Lean/Elab/BuiltinNotation.c b/stage0/stdlib/Lean/Elab/BuiltinNotation.c index 57a77a4c4a..5c7b20cac3 100644 --- a/stage0/stdlib/Lean/Elab/BuiltinNotation.c +++ b/stage0/stdlib/Lean/Elab/BuiltinNotation.c @@ -91,6 +91,7 @@ lean_object* l_Lean_Elab_Term_expandUMinus___closed__3; lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__12; extern lean_object* l_Array_empty___closed__1; lean_object* l_Lean_Elab_Term_expandAssert___closed__12; +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__12; lean_object* l_Lean_Elab_Term_expandAssert_match__1(lean_object*); lean_object* lean_environment_find(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandEmptyC___closed__8; @@ -110,7 +111,6 @@ lean_object* l_Lean_Elab_Term_elabNativeDecide___rarg___closed__1; extern lean_object* l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_496____closed__15; lean_object* l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Meta_Instances_0__Lean_Meta_mkInstanceKey___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabNativeRefl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_myMacro____x40_Init_Tactics___hyg_508____closed__4; lean_object* l_Lean_mkIdentFrom(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__4; lean_object* l_Lean_Elab_Term_expandSubtype(lean_object*, lean_object*, lean_object*); @@ -140,7 +140,6 @@ lean_object* l___regBuiltin_Lean_Elab_Term_expandAssert___closed__3; extern lean_object* l_Array_getEvenElems___rarg___closed__1; lean_object* l_Lean_Elab_Term_mkPairs_loop___closed__2; lean_object* l_Lean_Elab_Term_elabSubst___closed__7; -extern lean_object* l_myMacro____x40_Init_Tactics___hyg_508____closed__7; lean_object* l_Lean_Elab_Term_elabPanic___closed__6; lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__2___rarg(lean_object*); @@ -151,7 +150,6 @@ lean_object* l_Lean_Elab_Term_mkPairs_loop___boxed(lean_object*, lean_object*, l lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__9; lean_object* l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_995____spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkAuxName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; lean_object* l_Lean_Elab_Term_expandAssert___closed__11; lean_object* l_Lean_Elab_Term_expandSubtype___closed__11; lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabClosedTerm___lambda__1___closed__2; @@ -172,6 +170,7 @@ lean_object* l_Lean_Meta_instantiateMVarsImp(lean_object*, lean_object*, lean_ob lean_object* l_Lean_Elab_Term_elabParen___closed__5; lean_object* l_Lean_Elab_Term_expandDbgTrace___closed__2; lean_object* l_Lean_Elab_Term_expandShow___closed__1; +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__13; lean_object* l___regBuiltin_Lean_Elab_Term_expandDollar___closed__1; lean_object* l_Lean_Elab_Term_expandSorry___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__18; @@ -207,7 +206,6 @@ lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_BuiltinNotation_0__ lean_object* l_Lean_Elab_Term_elabPanic___closed__10; lean_object* l_Lean_Elab_Term_expandShow___closed__2; lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_hasCDot_match__1___rarg(lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__6; lean_object* l_Lean_Elab_Term_expandUnreachable___rarg___closed__7; lean_object* l_Lean_Elab_Term_expandAssert_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__24; @@ -288,6 +286,7 @@ lean_object* l_Lean_Elab_Term_elabAnonymousCtor___closed__4; lean_object* l_Lean_Elab_Term_expandPrefixOp(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux_match__2(lean_object*); lean_object* l_Lean_Elab_Term_expandSorry___rarg___closed__5; +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__7; lean_object* l_Lean_Elab_Term_expandEmptyC___closed__6; lean_object* l_Lean_Elab_Term_elabTParserMacro___closed__1; lean_object* l___regBuiltin_Lean_Elab_Term_expandSuffices(lean_object*); @@ -295,6 +294,7 @@ lean_object* l_Lean_Elab_Term_elabNativeRefl___lambda__1___boxed(lean_object*, l lean_object* l___regBuiltin_Lean_Elab_Term_elabDecide(lean_object*); lean_object* l_Lean_Meta_mkExpectedTypeHint___at_Lean_Elab_Term_elabNativeRefl___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabPanic___closed__5; +extern lean_object* l_Lean_Elab_Term_elabLetDeclCore___closed__7; lean_object* l_Lean_Elab_Term_expandShow___closed__5; lean_object* l_Lean_Elab_Term_expandShow___closed__15; lean_object* l_Lean_Elab_Term_elabSubst_match__2(lean_object*); @@ -356,6 +356,7 @@ lean_object* l___regBuiltin_Lean_Elab_Term_expandUMinus(lean_object*); lean_object* l_Lean_Meta_mkArrow___at_Lean_Elab_Term_elabStateRefT___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Literal_type___closed__2; extern lean_object* l_myMacro____x40_Init_Notation___hyg_38____closed__8; +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__11; lean_object* l_Lean_Elab_Term_expandDbgTrace___closed__7; lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_expandDbgTrace___closed__1; @@ -379,7 +380,6 @@ lean_object* l_Lean_Elab_Term_elabDecide___rarg___closed__1; lean_object* l_Lean_Elab_Term_elabPanic___closed__11; lean_object* l_Lean_Expr_toHeadIndex(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabBorrowed(lean_object*); -extern lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__9; extern lean_object* l_Lean_setOptionFromString___closed__5; lean_object* l_Lean_Elab_Term_elabSubst___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_6360____closed__13; @@ -459,7 +459,6 @@ lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserM lean_object* l_Lean_Elab_Term_expandSorry___boxed(lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Syntax_getSepArgs___spec__1(lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Elab_getRefPos___at_Lean_Elab_Term_elabPanic___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Elab_Term_elabLetDeclCore___closed__6; uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Lean_mkApp(lean_object*, lean_object*); uint8_t l_Lean_Expr_hasMVar(lean_object*); @@ -502,7 +501,6 @@ lean_object* l_Lean_Elab_Term_expandShow___closed__8; lean_object* l_Lean_Syntax_getPos(lean_object*); lean_object* l_Lean_Elab_Term_expandSorry___rarg___closed__8; lean_object* l_Lean_Elab_Term_elabNativeDecide___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Elab_Term_elabLetDeclCore___closed__10; lean_object* l_Lean_Elab_Term_expandShow___closed__9; lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__17; lean_object* l_Lean_Meta_kabstract_visit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -559,7 +557,6 @@ lean_object* l_Lean_Meta_inferType___rarg___lambda__1(lean_object*, lean_object* lean_object* l_Lean_Elab_Term_expandSorry___rarg___closed__2; lean_object* l_Lean_Elab_Term_elabNativeDecide___boxed(lean_object*); lean_object* l_Lean_Elab_Term_elabSubst___closed__2; -extern lean_object* l_Lean_Elab_Term_elabLetDeclCore___closed__9; lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__8; lean_object* l_Lean_Elab_Term_elabPanic___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_reduceNative_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -586,6 +583,7 @@ extern lean_object* l_Lean_Init_Meta___instance__4___closed__2; lean_object* l_Lean_Elab_Term_expandAssert___closed__3; lean_object* l___regBuiltin_Lean_Elab_Term_expandUnreachable(lean_object*); lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__4; +extern lean_object* l_Lean_Elab_Term_elabLetDeclCore___closed__8; lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabCDot___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandAssert___closed__15; lean_object* l_Lean_Elab_Term_elabSubst___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -600,6 +598,7 @@ lean_object* l_Lean_Elab_Term_elabSubst___closed__8; lean_object* l_Lean_Meta_inferType___at_Lean_Elab_Term_elabSubst___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__13; lean_object* l_Lean_Elab_Term_elabAnonymousCtor___closed__7; +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__4; lean_object* l_Lean_Meta_mkArrow___at_Lean_Elab_Term_elabStateRefT___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandAssert___closed__9; lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__23; @@ -673,6 +672,7 @@ lean_object* l_Lean_Elab_Term_expandAssert___closed__2; lean_object* l_Lean_Elab_Term_elabSubst___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandCDot_x3f(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabCDot_match__1___rarg(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__3; lean_object* l___regBuiltin_Lean_Elab_Term_expandUnreachable___closed__1; lean_object* l_Lean_markBorrowed(lean_object*); lean_object* l_Lean_Syntax_mkLit(lean_object*, lean_object*, lean_object*); @@ -945,8 +945,8 @@ static lean_object* _init_l_Lean_Elab_Term_expandSubtype___closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; -x_2 = l_myMacro____x40_Init_Tactics___hyg_508____closed__7; +x_1 = l_Lean_expandExplicitBindersAux_loop___closed__13; +x_2 = l_Lean_expandExplicitBindersAux_loop___closed__3; x_3 = lean_array_push(x_1, x_2); return x_3; } @@ -1160,7 +1160,7 @@ lean_dec(x_23); x_76 = lean_unsigned_to_nat(0u); x_77 = l_Lean_Syntax_getArg(x_17, x_76); lean_dec(x_17); -x_78 = l_Lean_Elab_Term_elabLetDeclCore___closed__6; +x_78 = l_Lean_expandExplicitBindersAux_loop___closed__11; lean_inc(x_77); x_79 = l_Lean_Syntax_isOfKind(x_77, x_78); if (x_79 == 0) @@ -1223,7 +1223,7 @@ lean_ctor_set(x_97, 3, x_96); x_98 = l_Array_empty___closed__1; x_99 = lean_array_push(x_98, x_97); x_100 = lean_array_push(x_98, x_15); -x_101 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_101 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_102 = lean_array_push(x_101, x_87); x_103 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_43____closed__4; x_104 = lean_alloc_ctor(1, 2, 0); @@ -2259,7 +2259,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Init_Prelude___instance__72___closed__1; -x_2 = l_Lean_Elab_Term_elabLetDeclCore___closed__9; +x_2 = l_Lean_Elab_Term_elabLetDeclCore___closed__7; x_3 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -2359,9 +2359,9 @@ lean_inc(x_55); x_57 = lean_array_push(x_56, x_55); x_58 = l_myMacro____x40_Init_Notation___hyg_6360____closed__18; x_59 = lean_array_push(x_57, x_58); -x_60 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_60 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_61 = lean_array_push(x_60, x_15); -x_62 = l_Lean_Elab_Term_elabLetDeclCore___closed__6; +x_62 = l_Lean_expandExplicitBindersAux_loop___closed__11; x_63 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_63, 0, x_62); lean_ctor_set(x_63, 1, x_61); @@ -2388,7 +2388,7 @@ x_77 = lean_array_push(x_76, x_75); x_78 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_496____closed__18; x_79 = lean_array_push(x_77, x_78); x_80 = lean_array_push(x_79, x_55); -x_81 = l_Lean_Elab_Term_elabLetDeclCore___closed__10; +x_81 = l_Lean_Elab_Term_elabLetDeclCore___closed__8; x_82 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_82, 0, x_81); lean_ctor_set(x_82, 1, x_80); @@ -2698,9 +2698,9 @@ x_308 = l_Array_empty___closed__1; x_309 = lean_array_push(x_308, x_307); x_310 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_letBindRhss___closed__13; x_311 = lean_array_push(x_309, x_310); -x_312 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_312 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_313 = lean_array_push(x_312, x_192); -x_314 = l_Lean_Elab_Term_elabLetDeclCore___closed__6; +x_314 = l_Lean_expandExplicitBindersAux_loop___closed__11; x_315 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_315, 0, x_314); lean_ctor_set(x_315, 1, x_313); @@ -2726,7 +2726,7 @@ x_328 = lean_array_push(x_327, x_326); x_329 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_496____closed__18; x_330 = lean_array_push(x_328, x_329); x_331 = lean_array_push(x_330, x_305); -x_332 = l_Lean_Elab_Term_elabLetDeclCore___closed__10; +x_332 = l_Lean_Elab_Term_elabLetDeclCore___closed__8; x_333 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_333, 0, x_332); lean_ctor_set(x_333, 1, x_331); @@ -2831,9 +2831,9 @@ x_219 = l_Array_empty___closed__1; x_220 = lean_array_push(x_219, x_218); x_221 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_letBindRhss___closed__13; x_222 = lean_array_push(x_220, x_221); -x_223 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_223 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_224 = lean_array_push(x_223, x_192); -x_225 = l_Lean_Elab_Term_elabLetDeclCore___closed__6; +x_225 = l_Lean_expandExplicitBindersAux_loop___closed__11; x_226 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_226, 0, x_225); lean_ctor_set(x_226, 1, x_224); @@ -2859,7 +2859,7 @@ x_239 = lean_array_push(x_238, x_237); x_240 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_496____closed__18; x_241 = lean_array_push(x_239, x_240); x_242 = lean_array_push(x_241, x_216); -x_243 = l_Lean_Elab_Term_elabLetDeclCore___closed__10; +x_243 = l_Lean_Elab_Term_elabLetDeclCore___closed__8; x_244 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_244, 0, x_243); lean_ctor_set(x_244, 1, x_242); @@ -3125,9 +3125,9 @@ x_155 = l_Array_empty___closed__1; x_156 = lean_array_push(x_155, x_36); x_157 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_letBindRhss___closed__13; x_158 = lean_array_push(x_156, x_157); -x_159 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_159 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_160 = lean_array_push(x_159, x_37); -x_161 = l_Lean_Elab_Term_elabLetDeclCore___closed__6; +x_161 = l_Lean_expandExplicitBindersAux_loop___closed__11; x_162 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_162, 0, x_161); lean_ctor_set(x_162, 1, x_160); @@ -3153,7 +3153,7 @@ x_175 = lean_array_push(x_174, x_173); x_176 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_496____closed__18; x_177 = lean_array_push(x_175, x_176); x_178 = lean_array_push(x_177, x_154); -x_179 = l_Lean_Elab_Term_elabLetDeclCore___closed__10; +x_179 = l_Lean_Elab_Term_elabLetDeclCore___closed__8; x_180 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_180, 0, x_179); lean_ctor_set(x_180, 1, x_178); @@ -3260,9 +3260,9 @@ x_62 = l_Array_empty___closed__1; x_63 = lean_array_push(x_62, x_36); x_64 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_letBindRhss___closed__13; x_65 = lean_array_push(x_63, x_64); -x_66 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_66 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_67 = lean_array_push(x_66, x_37); -x_68 = l_Lean_Elab_Term_elabLetDeclCore___closed__6; +x_68 = l_Lean_expandExplicitBindersAux_loop___closed__11; x_69 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_69, 0, x_68); lean_ctor_set(x_69, 1, x_67); @@ -3288,7 +3288,7 @@ x_82 = lean_array_push(x_81, x_80); x_83 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_496____closed__18; x_84 = lean_array_push(x_82, x_83); x_85 = lean_array_push(x_84, x_61); -x_86 = l_Lean_Elab_Term_elabLetDeclCore___closed__10; +x_86 = l_Lean_Elab_Term_elabLetDeclCore___closed__8; x_87 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_87, 0, x_86); lean_ctor_set(x_87, 1, x_85); @@ -3401,7 +3401,7 @@ x_113 = l_Lean_Syntax_getArg(x_11, x_112); lean_dec(x_11); x_114 = l_Array_empty___closed__1; x_115 = lean_array_push(x_114, x_36); -x_116 = l_myMacro____x40_Init_Tactics___hyg_508____closed__4; +x_116 = l_Lean_expandExplicitBindersAux_loop___closed__12; x_117 = lean_array_push(x_115, x_116); x_118 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_118, 0, x_25); @@ -3933,7 +3933,7 @@ x_107 = l_Lean_Syntax_getArg(x_11, x_106); lean_dec(x_11); x_108 = l_Array_empty___closed__1; x_109 = lean_array_push(x_108, x_36); -x_110 = l_myMacro____x40_Init_Tactics___hyg_508____closed__4; +x_110 = l_Lean_expandExplicitBindersAux_loop___closed__12; x_111 = lean_array_push(x_109, x_110); x_112 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_112, 0, x_25); @@ -4074,7 +4074,7 @@ x_65 = l_Lean_Syntax_getArg(x_11, x_64); lean_dec(x_11); x_66 = l_Array_empty___closed__1; x_67 = lean_array_push(x_66, x_36); -x_68 = l_myMacro____x40_Init_Tactics___hyg_508____closed__4; +x_68 = l_Lean_expandExplicitBindersAux_loop___closed__12; x_69 = lean_array_push(x_67, x_68); x_70 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_70, 0, x_25); @@ -9300,7 +9300,7 @@ x_42 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_42, 0, x_41); lean_ctor_set(x_42, 1, x_40); x_43 = lean_array_push(x_19, x_42); -x_44 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__9; +x_44 = l_Lean_expandExplicitBindersAux_loop___closed__7; x_45 = lean_array_push(x_44, x_7); x_46 = l_myMacro____x40_Init_Notation___hyg_6360____closed__15; x_47 = lean_alloc_ctor(1, 2, 0); @@ -9367,7 +9367,7 @@ x_81 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_81, 0, x_80); lean_ctor_set(x_81, 1, x_79); x_82 = lean_array_push(x_65, x_81); -x_83 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__9; +x_83 = l_Lean_expandExplicitBindersAux_loop___closed__7; x_84 = lean_array_push(x_83, x_7); x_85 = l_myMacro____x40_Init_Notation___hyg_6360____closed__15; x_86 = lean_alloc_ctor(1, 2, 0); @@ -9559,7 +9559,7 @@ lean_ctor_set(x_17, 0, x_7); lean_ctor_set(x_17, 1, x_15); lean_ctor_set(x_17, 2, x_14); lean_ctor_set(x_17, 3, x_16); -x_18 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__6; +x_18 = l_Lean_expandExplicitBindersAux_loop___closed__4; x_19 = lean_array_push(x_18, x_17); x_20 = l_Lean_nullKind___closed__2; x_21 = lean_alloc_ctor(1, 2, 0); diff --git a/stage0/stdlib/Lean/Elab/Declaration.c b/stage0/stdlib/Lean/Elab/Declaration.c index 5fe4f7847c..01ec9891f9 100644 --- a/stage0/stdlib/Lean/Elab/Declaration.c +++ b/stage0/stdlib/Lean/Elab/Declaration.c @@ -95,7 +95,6 @@ lean_object* l_List_map___at_Lean_resolveGlobalConst___spec__2(lean_object*); lean_object* l_Lean_Elab_Term_applyAttributesAt(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Command_mkDefViewOfConstant___closed__6; lean_object* l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_995____spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; lean_object* l_Lean_Elab_Command_expandMutualElement_match__1(lean_object*); lean_object* l_Lean_Elab_Command_expandInitCmd___closed__33; lean_object* l_Lean_Elab_Command_getLevelNames___rarg(lean_object*, lean_object*); @@ -113,6 +112,7 @@ lean_object* l___regBuiltin_Lean_Elab_Command_elabDeclaration___closed__1; extern lean_object* l_Lean_Elab_Command_expandInCmd___closed__7; lean_object* l_Lean_Meta_instantiateMVarsImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_addNamespace___closed__1; +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__13; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_elabMutualInductive___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); extern lean_object* l_Lean_throwUnknownConstant___rarg___closed__2; @@ -196,6 +196,7 @@ extern lean_object* l_myMacro____x40_Init_Notation___hyg_38____closed__8; lean_object* l_Lean_Elab_Command_expandInitCmd___closed__21; lean_object* l_Lean_Elab_Command_expandMutualElement___closed__1; lean_object* l_Lean_Elab_Command_expandMutualPreamble___closed__1; +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__11; lean_object* l_Lean_Elab_Command_expandMutualPreamble___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabMutual___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandInitCmd___closed__38; @@ -259,7 +260,6 @@ lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_elabMutualIn lean_object* l_Lean_Elab_Command_expandMutualElement_match__3(lean_object*); lean_object* l_Lean_Elab_Command_expandInitCmd___closed__17; lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__8; -extern lean_object* l_Lean_Elab_Term_elabLetDeclCore___closed__6; uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_getCurrMacroScope(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView_match__3(lean_object*); @@ -7190,9 +7190,9 @@ x_42 = l_myMacro____x40_Init_Notation___hyg_38____closed__8; x_43 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_43, 0, x_42); lean_ctor_set(x_43, 1, x_41); -x_44 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_44 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_45 = lean_array_push(x_44, x_43); -x_46 = l_Lean_Elab_Term_elabLetDeclCore___closed__6; +x_46 = l_Lean_expandExplicitBindersAux_loop___closed__11; x_47 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_47, 0, x_46); lean_ctor_set(x_47, 1, x_45); @@ -7391,9 +7391,9 @@ x_164 = l_myMacro____x40_Init_Notation___hyg_38____closed__8; x_165 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_165, 0, x_164); lean_ctor_set(x_165, 1, x_163); -x_166 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_166 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_167 = lean_array_push(x_166, x_165); -x_168 = l_Lean_Elab_Term_elabLetDeclCore___closed__6; +x_168 = l_Lean_expandExplicitBindersAux_loop___closed__11; x_169 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_169, 0, x_168); lean_ctor_set(x_169, 1, x_167); diff --git a/stage0/stdlib/Lean/Elab/DefView.c b/stage0/stdlib/Lean/Elab/DefView.c index 4a2572c9ce..bdc81b35d6 100644 --- a/stage0/stdlib/Lean/Elab/DefView.c +++ b/stage0/stdlib/Lean/Elab/DefView.c @@ -15,10 +15,10 @@ extern "C" { #endif lean_object* l_Lean_throwError___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_expandOptDeclSig(lean_object*); +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__5; lean_object* l_Lean_Elab_Command_mkDefView___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); lean_object* l_Lean_Elab_DefKind_isExample_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__7; uint8_t l_Lean_Elab_DefKind_isDefOrAbbrevOrOpaque(uint8_t); lean_object* l_Lean_Elab_Command_mkDefViewOfConstant_match__2(lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); @@ -886,7 +886,7 @@ lean_ctor_set(x_25, 2, x_21); lean_ctor_set(x_25, 3, x_24); x_26 = l_Array_empty___closed__1; x_27 = lean_array_push(x_26, x_25); -x_28 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__7; +x_28 = l_Lean_expandExplicitBindersAux_loop___closed__5; x_29 = lean_array_push(x_27, x_28); x_30 = l_myMacro____x40_Init_Notation___hyg_38____closed__8; x_31 = lean_alloc_ctor(1, 2, 0); diff --git a/stage0/stdlib/Lean/Elab/Do.c b/stage0/stdlib/Lean/Elab/Do.c index f30ca943e3..7c40dfa19c 100644 --- a/stage0/stdlib/Lean/Elab/Do.c +++ b/stage0/stdlib/Lean/Elab/Do.c @@ -44,6 +44,7 @@ extern lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__21; lean_object* l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult_match__1(lean_object*); lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___closed__9; lean_object* l___regBuiltin_Lean_Elab_Term_expandTermUnless___closed__1; +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__5; lean_object* l_Lean_Expr_mvarId_x21(lean_object*); uint8_t l_Lean_Elab_Term_Do_hasExitPointPred_loop___at_Lean_Elab_Term_Do_hasBreakContinue___spec__1(lean_object*); lean_object* l_Lean_Elab_Term_Do_hasExitPointPred_loop___lambda__1(lean_object*, lean_object*); @@ -52,7 +53,6 @@ lean_object* l_Lean_Elab_Term_Do_hasBreakContinueReturn_match__1___rarg(lean_obj extern lean_object* l_Lean_Syntax_strLitToAtom___closed__3; lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_331____closed__16; -extern lean_object* l_Lean_Elab_Term_elabLetDeclCore___closed__12; lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doLetArrowToCode___closed__1; lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__4___closed__5; lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -69,7 +69,6 @@ lean_object* l_Lean_Elab_Term_Do_ToTerm_seqToTermCore___closed__13; lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_Do_mkMatch___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_CodeBlocl_toMessageData(lean_object*); -extern lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__7; lean_object* l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_getLetIdDeclVar(lean_object*); @@ -236,7 +235,6 @@ lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__2; uint8_t l_Lean_Elab_Term_Do_ToTerm_Lean_Elab_Do___instance__3; lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_Do_ToCodeBlock_mkForInBody___spec__1(lean_object*); lean_object* l_Lean_MessageData_ofList(lean_object*); -extern lean_object* l_myMacro____x40_Init_Tactics___hyg_508____closed__7; lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__10; lean_object* l_Lean_Elab_Term_Do_ToTerm_toTerm___closed__1; lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__2___rarg(lean_object*); @@ -250,7 +248,6 @@ lean_object* l_Lean_Elab_Term_Do_convertTerminalActionIntoJmp_loop(lean_object*, lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__2___closed__6; extern lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_addAssignmentInfo___rarg___closed__3; lean_object* l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__5___closed__2; -extern lean_object* l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_mkMatch___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__1___closed__6; lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_varsToMessageData___boxed(lean_object*); @@ -289,6 +286,7 @@ lean_object* l_Lean_Elab_Term_Do_eraseVars(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_ToTerm_continueToTermCore_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__6___boxed(lean_object**); lean_object* l_Lean_Elab_Term_expandTermReturn___boxed(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__13; lean_object* l_Lean_Elab_Term_Do_mkFreshJP___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_expandLiftMethod(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__3___closed__3; @@ -343,7 +341,6 @@ lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCo lean_object* l_Lean_Elab_Term_Do_ToTerm_breakToTermCore___closed__9; lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doUnlessToCode(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_fold___at_Lean_registerTagAttribute___spec__1(lean_object*, lean_object*); -extern lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__6; lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__1(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___at_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___spec__3(lean_object*); lean_object* l_List_map___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_varsToMessageData___spec__1(lean_object*); @@ -472,7 +469,6 @@ lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__9; lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_Do_ToTerm_mkJoinPointCore___spec__1___closed__2; uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_Term_Do_extendUpdatedVarsAux_update___spec__4(lean_object*, lean_object*, size_t, size_t); lean_object* l_Lean_Elab_Term_Do_homogenize(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Elab_Term_elabLetDeclCore___closed__11; lean_object* l_Lean_Elab_Term_Do_ToTerm_returnToTermCore___closed__25; uint8_t l_Lean_Elab_Term_Do_hasExitPoint(lean_object*); lean_object* l_Lean_Elab_Term_Do_ToTerm_continueToTerm(lean_object*, lean_object*, lean_object*, lean_object*); @@ -496,6 +492,7 @@ lean_object* l_Lean_Elab_Term_Do_pullExitPointsAux_match__1___rarg(lean_object*, lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doReassignArrowToCode___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_expandFunBinders_loop___closed__7; lean_object* l_Lean_Syntax_setKind(lean_object*, lean_object*); +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__7; lean_object* l_Std_RBNode_appendTrees___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__1; lean_object* l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__3___closed__7; @@ -629,6 +626,7 @@ lean_object* l_Lean_Elab_Term_Do_ToTerm_actionTerminalToTermCore___closed__7; lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doMatchToCode___boxed__const__1; lean_object* l_Lean_Elab_Term_Do_ToTerm_mkNestedKind___closed__1; lean_object* l_Lean_Elab_Term_Do_ToTerm_reassignToTermCore___closed__1; +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__11; lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_checkLetArrowRHS(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_getLetEqnsDeclVar___boxed(lean_object*); lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -668,7 +666,6 @@ lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doLetArrowToCode_match__1(lean_obje lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_mkUnless(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_Do_ToTerm_toTerm___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__9; lean_object* l_Lean_Elab_Term_Do_ToTerm_mkIte(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_getLetPatDeclVars_match__1(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_expandTermUnless(lean_object*); @@ -837,7 +834,6 @@ lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_mkMatch___spec__2( lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doLetArrowToCode___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_ToTerm_mkUVarTuple(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkMonadAlias___closed__2; -extern lean_object* l_Lean_Elab_Term_elabLetDeclCore___closed__6; extern lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_839____closed__1; lean_object* l_Lean_Elab_Term_Do_hasBreakContinueReturn_match__1(lean_object*); lean_object* l_Lean_Elab_Term_Do_ToTerm_reassignToTermCore___closed__8; @@ -929,6 +925,7 @@ lean_object* l_Lean_Elab_Term_Do_mkFreshJP___lambda__1___boxed(lean_object*, lea lean_object* l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__3___closed__2; lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__5; lean_object* l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult_match__1___rarg(uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_Term_elabLetDeclCore___closed__10; lean_object* l_Lean_Elab_Term_Do_mkMatch(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_mkFreshJP___lambda__1___closed__1; @@ -1038,6 +1035,7 @@ extern lean_object* l_Init_System_ST___instance__1___closed__1; lean_object* l_Lean_throwError___at_Lean_Elab_Term_Do_mkJmp___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_5787____closed__9; lean_object* l_Lean_indentD(lean_object*); +extern lean_object* l_Lean_Elab_Term_elabLetDeclCore___closed__9; lean_object* l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__5___closed__4; lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__1; lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__1___closed__1; @@ -1077,6 +1075,7 @@ lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doReturnToCode___lambda__1___boxed( lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_getDoSeqElems___closed__4; lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_mkPure___rarg___closed__4; +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__2; lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_checkReassignable___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_ToTerm_actionTerminalToTermCore___closed__10; lean_object* l_Lean_Expr_getAppFn(lean_object*); @@ -1090,6 +1089,7 @@ lean_object* l_Lean_Elab_Term_Do_ToTerm_reassignToTermCore(lean_object*, lean_ob lean_object* l_Lean_Elab_Term_Do_hasExitPointPred_loop_match__1(lean_object*); lean_object* l_Lean_Elab_Term_expandTermUnless(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_getDoLetArrowVars___closed__1; +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__4; lean_object* l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__38; lean_object* l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__21; lean_object* l_Lean_Elab_Term_Do_ToTerm_breakToTermCore___closed__2; @@ -1148,7 +1148,6 @@ lean_object* l_Lean_Elab_Term_Do_getDoReassignVars___closed__1; lean_object* l_Lean_Elab_Term_Do_ToTerm_returnToTermCore___closed__6; lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_mkIdBindFor___closed__3; lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode_match__1(lean_object*); -extern lean_object* l_myMacro____x40_Init_Tactics___hyg_508____closed__6; extern lean_object* l_Lean_Meta_caseValueAux___lambda__3___closed__6; lean_object* l_Lean_Elab_Term_Do_mkFreshJP_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_Term_Do_mkReassignCore___spec__1(lean_object*, lean_object*, size_t, size_t); @@ -1189,6 +1188,7 @@ lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__7; lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkMonadAlias___closed__5; lean_object* l_Lean_Elab_Term_Do_ToTerm_reassignToTermCore___closed__6; lean_object* l_Lean_Elab_Term_Do_ToTerm_continueToTermCore___closed__16; +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__3; lean_object* l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop_match__1(lean_object*); lean_object* l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__1___closed__3; extern lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__19; @@ -23616,7 +23616,7 @@ lean_ctor_set(x_161, 0, x_150); lean_ctor_set(x_161, 1, x_159); lean_ctor_set(x_161, 2, x_158); lean_ctor_set(x_161, 3, x_160); -x_162 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_162 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_163 = lean_array_push(x_162, x_161); x_164 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_43____closed__4; x_165 = lean_alloc_ctor(1, 2, 0); @@ -23627,7 +23627,7 @@ x_167 = l_Lean_nullKind___closed__2; x_168 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_168, 0, x_167); lean_ctor_set(x_168, 1, x_166); -x_169 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__6; +x_169 = l_Lean_expandExplicitBindersAux_loop___closed__4; x_170 = lean_array_push(x_169, x_168); x_171 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_171, 0, x_167); @@ -23753,7 +23753,7 @@ lean_ctor_set(x_237, 0, x_226); lean_ctor_set(x_237, 1, x_235); lean_ctor_set(x_237, 2, x_234); lean_ctor_set(x_237, 3, x_236); -x_238 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_238 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_239 = lean_array_push(x_238, x_237); x_240 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_43____closed__4; x_241 = lean_alloc_ctor(1, 2, 0); @@ -23764,7 +23764,7 @@ x_243 = l_Lean_nullKind___closed__2; x_244 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_244, 0, x_243); lean_ctor_set(x_244, 1, x_242); -x_245 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__6; +x_245 = l_Lean_expandExplicitBindersAux_loop___closed__4; x_246 = lean_array_push(x_245, x_244); x_247 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_247, 0, x_243); @@ -23895,7 +23895,7 @@ lean_ctor_set(x_314, 0, x_303); lean_ctor_set(x_314, 1, x_312); lean_ctor_set(x_314, 2, x_311); lean_ctor_set(x_314, 3, x_313); -x_315 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_315 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_316 = lean_array_push(x_315, x_314); x_317 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_43____closed__4; x_318 = lean_alloc_ctor(1, 2, 0); @@ -23906,7 +23906,7 @@ x_320 = l_Lean_nullKind___closed__2; x_321 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_321, 0, x_320); lean_ctor_set(x_321, 1, x_319); -x_322 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__6; +x_322 = l_Lean_expandExplicitBindersAux_loop___closed__4; x_323 = lean_array_push(x_322, x_321); x_324 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_324, 0, x_320); @@ -24074,7 +24074,7 @@ lean_ctor_set(x_412, 0, x_401); lean_ctor_set(x_412, 1, x_410); lean_ctor_set(x_412, 2, x_409); lean_ctor_set(x_412, 3, x_411); -x_413 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_413 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_414 = lean_array_push(x_413, x_412); x_415 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_43____closed__4; x_416 = lean_alloc_ctor(1, 2, 0); @@ -24085,7 +24085,7 @@ x_418 = l_Lean_nullKind___closed__2; x_419 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_419, 0, x_418); lean_ctor_set(x_419, 1, x_417); -x_420 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__6; +x_420 = l_Lean_expandExplicitBindersAux_loop___closed__4; x_421 = lean_array_push(x_420, x_419); x_422 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_422, 0, x_418); @@ -25249,7 +25249,7 @@ lean_ctor_set(x_1017, 0, x_1006); lean_ctor_set(x_1017, 1, x_1015); lean_ctor_set(x_1017, 2, x_1014); lean_ctor_set(x_1017, 3, x_1016); -x_1018 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_1018 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_1019 = lean_array_push(x_1018, x_1017); x_1020 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_43____closed__4; x_1021 = lean_alloc_ctor(1, 2, 0); @@ -25260,7 +25260,7 @@ x_1023 = l_Lean_nullKind___closed__2; x_1024 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1024, 0, x_1023); lean_ctor_set(x_1024, 1, x_1022); -x_1025 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__6; +x_1025 = l_Lean_expandExplicitBindersAux_loop___closed__4; x_1026 = lean_array_push(x_1025, x_1024); x_1027 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1027, 0, x_1023); @@ -25401,7 +25401,7 @@ lean_ctor_set(x_1095, 0, x_1084); lean_ctor_set(x_1095, 1, x_1093); lean_ctor_set(x_1095, 2, x_1092); lean_ctor_set(x_1095, 3, x_1094); -x_1096 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_1096 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_1097 = lean_array_push(x_1096, x_1095); x_1098 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_43____closed__4; x_1099 = lean_alloc_ctor(1, 2, 0); @@ -25412,7 +25412,7 @@ x_1101 = l_Lean_nullKind___closed__2; x_1102 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1102, 0, x_1101); lean_ctor_set(x_1102, 1, x_1100); -x_1103 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__6; +x_1103 = l_Lean_expandExplicitBindersAux_loop___closed__4; x_1104 = lean_array_push(x_1103, x_1102); x_1105 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1105, 0, x_1101); @@ -26219,7 +26219,7 @@ lean_ctor_set(x_18, 3, x_17); x_19 = l_Array_empty___closed__1; x_20 = lean_array_push(x_19, x_18); x_21 = lean_array_push(x_19, x_1); -x_22 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__9; +x_22 = l_Lean_expandExplicitBindersAux_loop___closed__7; x_23 = lean_array_push(x_22, x_2); x_24 = l_myMacro____x40_Init_Notation___hyg_6360____closed__15; x_25 = lean_alloc_ctor(1, 2, 0); @@ -26581,7 +26581,7 @@ x_52 = l_Array_empty___closed__1; x_53 = lean_array_push(x_52, x_51); x_54 = lean_array_push(x_52, x_45); x_55 = lean_array_push(x_52, x_37); -x_56 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_56 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_57 = lean_array_push(x_56, x_39); x_58 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_43____closed__4; x_59 = lean_alloc_ctor(1, 2, 0); @@ -26814,7 +26814,7 @@ x_152 = l_Array_empty___closed__1; x_153 = lean_array_push(x_152, x_151); x_154 = lean_array_push(x_152, x_145); x_155 = lean_array_push(x_152, x_137); -x_156 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_156 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_157 = lean_array_push(x_156, x_139); x_158 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_43____closed__4; x_159 = lean_alloc_ctor(1, 2, 0); @@ -27560,7 +27560,7 @@ lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean x_17 = lean_ctor_get(x_14, 0); lean_inc(x_17); lean_dec(x_14); -x_18 = l_myMacro____x40_Init_Tactics___hyg_508____closed__7; +x_18 = l_Lean_expandExplicitBindersAux_loop___closed__3; x_19 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_Do_ToTerm_mkJoinPointCore___spec__1___lambda__1(x_1, x_17, x_18, x_5, x_6, x_7); x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); @@ -27613,7 +27613,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Init_Prelude___instance__72___closed__1; -x_2 = l_Lean_Elab_Term_elabLetDeclCore___closed__11; +x_2 = l_Lean_Elab_Term_elabLetDeclCore___closed__9; x_3 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -27680,7 +27680,7 @@ lean_inc(x_22); lean_dec(x_5); x_23 = l_Array_empty___closed__1; x_24 = lean_array_push(x_23, x_22); -x_25 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__7; +x_25 = l_Lean_expandExplicitBindersAux_loop___closed__5; x_26 = lean_array_push(x_24, x_25); x_27 = l_myMacro____x40_Init_Notation___hyg_38____closed__8; x_28 = lean_alloc_ctor(1, 2, 0); @@ -27695,9 +27695,9 @@ x_33 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_33, 0, x_32); lean_ctor_set(x_33, 1, x_31); x_34 = lean_array_push(x_30, x_33); -x_35 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_35 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_36 = lean_array_push(x_35, x_28); -x_37 = l_Lean_Elab_Term_elabLetDeclCore___closed__6; +x_37 = l_Lean_expandExplicitBindersAux_loop___closed__11; x_38 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_38, 0, x_37); lean_ctor_set(x_38, 1, x_36); @@ -27723,7 +27723,7 @@ x_51 = lean_array_push(x_50, x_49); x_52 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_496____closed__18; x_53 = lean_array_push(x_51, x_52); x_54 = lean_array_push(x_53, x_4); -x_55 = l_Lean_Elab_Term_elabLetDeclCore___closed__12; +x_55 = l_Lean_Elab_Term_elabLetDeclCore___closed__10; x_56 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_56, 0, x_55); lean_ctor_set(x_56, 1, x_54); @@ -27743,7 +27743,7 @@ lean_inc(x_59); lean_dec(x_5); x_60 = l_Array_empty___closed__1; x_61 = lean_array_push(x_60, x_59); -x_62 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__7; +x_62 = l_Lean_expandExplicitBindersAux_loop___closed__5; x_63 = lean_array_push(x_61, x_62); x_64 = l_myMacro____x40_Init_Notation___hyg_38____closed__8; x_65 = lean_alloc_ctor(1, 2, 0); @@ -27758,9 +27758,9 @@ x_70 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_70, 0, x_69); lean_ctor_set(x_70, 1, x_68); x_71 = lean_array_push(x_67, x_70); -x_72 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_72 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_73 = lean_array_push(x_72, x_65); -x_74 = l_Lean_Elab_Term_elabLetDeclCore___closed__6; +x_74 = l_Lean_expandExplicitBindersAux_loop___closed__11; x_75 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_75, 0, x_74); lean_ctor_set(x_75, 1, x_73); @@ -27786,7 +27786,7 @@ x_88 = lean_array_push(x_87, x_86); x_89 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_496____closed__18; x_90 = lean_array_push(x_88, x_89); x_91 = lean_array_push(x_90, x_4); -x_92 = l_Lean_Elab_Term_elabLetDeclCore___closed__12; +x_92 = l_Lean_Elab_Term_elabLetDeclCore___closed__10; x_93 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_93, 0, x_92); lean_ctor_set(x_93, 1, x_91); @@ -27867,7 +27867,7 @@ lean_inc(x_110); lean_dec(x_5); x_111 = l_Array_empty___closed__1; x_112 = lean_array_push(x_111, x_110); -x_113 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__7; +x_113 = l_Lean_expandExplicitBindersAux_loop___closed__5; x_114 = lean_array_push(x_112, x_113); x_115 = l_myMacro____x40_Init_Notation___hyg_38____closed__8; x_116 = lean_alloc_ctor(1, 2, 0); @@ -27882,9 +27882,9 @@ x_121 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_121, 0, x_120); lean_ctor_set(x_121, 1, x_119); x_122 = lean_array_push(x_118, x_121); -x_123 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_123 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_124 = lean_array_push(x_123, x_116); -x_125 = l_Lean_Elab_Term_elabLetDeclCore___closed__6; +x_125 = l_Lean_expandExplicitBindersAux_loop___closed__11; x_126 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_126, 0, x_125); lean_ctor_set(x_126, 1, x_124); @@ -27910,7 +27910,7 @@ x_139 = lean_array_push(x_138, x_137); x_140 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_496____closed__18; x_141 = lean_array_push(x_139, x_140); x_142 = lean_array_push(x_141, x_4); -x_143 = l_Lean_Elab_Term_elabLetDeclCore___closed__12; +x_143 = l_Lean_Elab_Term_elabLetDeclCore___closed__10; x_144 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_144, 0, x_143); lean_ctor_set(x_144, 1, x_142); @@ -36271,7 +36271,7 @@ x_85 = l_Lean_Elab_Term_expandFunBinders_loop___closed__13; x_86 = lean_array_push(x_84, x_85); x_87 = l_Lean_mkHole___closed__1; x_88 = lean_name_mk_string(x_3, x_87); -x_89 = l_myMacro____x40_Init_Tactics___hyg_508____closed__6; +x_89 = l_Lean_expandExplicitBindersAux_loop___closed__2; x_90 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_90, 0, x_88); lean_ctor_set(x_90, 1, x_89); @@ -39922,7 +39922,7 @@ lean_ctor_set(x_269, 0, x_268); lean_ctor_set(x_269, 1, x_267); x_270 = lean_array_push(x_228, x_269); x_271 = lean_array_push(x_228, x_13); -x_272 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__6; +x_272 = l_Lean_expandExplicitBindersAux_loop___closed__4; lean_inc(x_32); x_273 = lean_array_push(x_272, x_32); x_274 = lean_alloc_ctor(1, 2, 0); diff --git a/stage0/stdlib/Lean/Elab/Level.c b/stage0/stdlib/Lean/Elab/Level.c index ce5af5bfb1..47fa44b33e 100644 --- a/stage0/stdlib/Lean/Elab/Level.c +++ b/stage0/stdlib/Lean/Elab/Level.c @@ -44,16 +44,16 @@ lean_object* l_ReaderT_bind___at_Lean_Elab_Level_Lean_Elab_Level___instance__1__ lean_object* l_Lean_Elab_throwIllFormedSyntax___at_Lean_Elab_Level_elabLevel___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Level_Lean_Elab_Level___instance__1___closed__3; lean_object* l_Lean_Elab_Level_elabLevel___closed__6; -lean_object* l_Lean_mkLevelIMax(lean_object*, lean_object*); lean_object* l_Subarray_forInUnsafe_loop___at_Lean_Elab_Level_elabLevel___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Subarray_forInUnsafe_loop___at_Lean_Elab_Level_elabLevel___spec__4(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_numLitKind; lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_Elab_Level_mkFreshLevelMVar(lean_object*, lean_object*); extern lean_object* l_Lean_Level_LevelToFormat_Result_format___closed__2; +lean_object* l_Lean_mkLevelMax_x27(lean_object*, lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); -lean_object* l_Lean_mkLevelMax(lean_object*, lean_object*); lean_object* l_Lean_Elab_Level_Lean_Elab_Level___instance__3___closed__4; +lean_object* l_Lean_mkLevelIMax_x27(lean_object*, lean_object*); lean_object* l_Lean_Elab_Level_elabLevel___closed__12; lean_object* l_Lean_Elab_Level_elabLevel_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Level_elabLevel_match__1(lean_object*); @@ -728,7 +728,7 @@ lean_inc(x_12); x_13 = lean_ctor_get(x_11, 1); lean_inc(x_13); lean_dec(x_11); -x_14 = l_Lean_mkLevelIMax(x_4, x_12); +x_14 = l_Lean_mkLevelIMax_x27(x_4, x_12); x_15 = 1; x_16 = x_3 + x_15; x_3 = x_16; @@ -792,7 +792,7 @@ lean_inc(x_12); x_13 = lean_ctor_get(x_11, 1); lean_inc(x_13); lean_dec(x_11); -x_14 = l_Lean_mkLevelMax(x_4, x_12); +x_14 = l_Lean_mkLevelMax_x27(x_4, x_12); x_15 = 1; x_16 = x_3 + x_15; x_3 = x_16; diff --git a/stage0/stdlib/Lean/Elab/Match.c b/stage0/stdlib/Lean/Elab/Match.c index 4f23697911..111074c27a 100644 --- a/stage0/stdlib/Lean/Elab/Match.c +++ b/stage0/stdlib/Lean/Elab/Match.c @@ -207,7 +207,6 @@ lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_waitExpectedType_matc lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_processVar___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__4___closed__2; lean_object* l_Lean_MessageData_ofList(lean_object*); -extern lean_object* l_myMacro____x40_Init_Tactics___hyg_508____closed__7; lean_object* l_Lean_Elab_Term_ToDepElimPattern_main___closed__1; lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__2___rarg(lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___closed__3; @@ -221,7 +220,6 @@ lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___closed lean_object* l_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_995____spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkAuxName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; lean_object* l_Lean_addTrace___at_Lean_Elab_Term_elabMatchAltView___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabMatch_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabMatch_match__2___rarg(lean_object*, lean_object*, lean_object*); @@ -243,6 +241,7 @@ lean_object* l_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___lambda lean_object* l_List_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__4___closed__1; lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_throwCtorExpected___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_throwInvalidPattern___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__13; lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_isAuxDiscrName___closed__2; lean_object* l_List_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_finalizePatternDecls___spec__2___closed__3; @@ -475,6 +474,7 @@ lean_object* l_Lean_Elab_Term_elabMatch_match__26(lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_nameToPattern___closed__19; lean_object* l_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_tryPostponeIfDiscrTypeIsMVar___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__11; lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_withDepElimPatterns___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorAppAux_match__2(lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux_match__1___rarg(lean_object*, lean_object*); @@ -615,7 +615,6 @@ lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Ela lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandNonAtomicDiscrs_x3f_loop___lambda__1___boxed(lean_object**); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkEq___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_loop___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Elab_Term_elabLetDeclCore___closed__6; extern lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_839____closed__1; lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_expandMacrosInPatterns___spec__1(size_t, size_t, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); @@ -885,6 +884,7 @@ lean_object* l_Lean_Elab_Term_Lean_Elab_Match___instance__1(lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_processVar___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___closed__1; lean_object* l_Lean_Meta_Match_Pattern_toExpr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__3; lean_object* l_Lean_Elab_Term_elabMatch_match__23___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_mkLit(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_expandFunBinders_loop___closed__1; @@ -1040,9 +1040,9 @@ x_18 = l_Array_empty___closed__1; x_19 = lean_array_push(x_18, x_3); x_20 = l_myMacro____x40_Init_Notation___hyg_6360____closed__18; x_21 = lean_array_push(x_19, x_20); -x_22 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_22 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_23 = lean_array_push(x_22, x_4); -x_24 = l_Lean_Elab_Term_elabLetDeclCore___closed__6; +x_24 = l_Lean_expandExplicitBindersAux_loop___closed__11; x_25 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_25, 0, x_24); lean_ctor_set(x_25, 1, x_23); @@ -6156,7 +6156,7 @@ static lean_object* _init_l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectP _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_myMacro____x40_Init_Tactics___hyg_508____closed__7; +x_1 = l_Lean_expandExplicitBindersAux_loop___closed__3; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; @@ -8970,7 +8970,7 @@ x_49 = lean_array_push(x_47, x_33); x_50 = l_Lean_Syntax_mkStrLit(x_31, x_43); lean_dec(x_31); x_51 = lean_array_push(x_49, x_50); -x_52 = l_myMacro____x40_Init_Tactics___hyg_508____closed__7; +x_52 = l_Lean_expandExplicitBindersAux_loop___closed__3; x_53 = lean_array_push(x_51, x_52); x_54 = l_Lean_nullKind___closed__2; x_55 = lean_alloc_ctor(1, 2, 0); @@ -9008,7 +9008,7 @@ x_69 = lean_array_push(x_67, x_33); x_70 = l_Lean_Syntax_mkStrLit(x_31, x_63); lean_dec(x_31); x_71 = lean_array_push(x_69, x_70); -x_72 = l_myMacro____x40_Init_Tactics___hyg_508____closed__7; +x_72 = l_Lean_expandExplicitBindersAux_loop___closed__3; x_73 = lean_array_push(x_71, x_72); x_74 = l_Lean_nullKind___closed__2; x_75 = lean_alloc_ctor(1, 2, 0); @@ -9068,7 +9068,7 @@ x_100 = l_Nat_repr(x_81); x_101 = l_Lean_numLitKind; x_102 = l_Lean_Syntax_mkLit(x_101, x_100, x_93); x_103 = lean_array_push(x_99, x_102); -x_104 = l_myMacro____x40_Init_Tactics___hyg_508____closed__7; +x_104 = l_Lean_expandExplicitBindersAux_loop___closed__3; x_105 = lean_array_push(x_103, x_104); x_106 = l_Lean_nullKind___closed__2; x_107 = lean_alloc_ctor(1, 2, 0); @@ -9107,7 +9107,7 @@ x_122 = l_Nat_repr(x_81); x_123 = l_Lean_numLitKind; x_124 = l_Lean_Syntax_mkLit(x_123, x_122, x_115); x_125 = lean_array_push(x_121, x_124); -x_126 = l_myMacro____x40_Init_Tactics___hyg_508____closed__7; +x_126 = l_Lean_expandExplicitBindersAux_loop___closed__3; x_127 = lean_array_push(x_125, x_126); x_128 = l_Lean_nullKind___closed__2; x_129 = lean_alloc_ctor(1, 2, 0); @@ -29284,7 +29284,7 @@ else lean_object* x_106; lean_object* x_107; uint8_t x_108; x_106 = l_Lean_Syntax_getArg(x_98, x_80); lean_dec(x_98); -x_107 = l_Lean_Elab_Term_elabLetDeclCore___closed__6; +x_107 = l_Lean_expandExplicitBindersAux_loop___closed__11; lean_inc(x_106); x_108 = l_Lean_Syntax_isOfKind(x_106, x_107); if (x_108 == 0) diff --git a/stage0/stdlib/Lean/Elab/Quotation.c b/stage0/stdlib/Lean/Elab/Quotation.c index d60150ee34..eb8e4a5793 100644 --- a/stage0/stdlib/Lean/Elab/Quotation.c +++ b/stage0/stdlib/Lean/Elab/Quotation.c @@ -107,7 +107,6 @@ lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compile extern lean_object* l_myMacro____x40_Init_Notation___hyg_4868____closed__9; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__19; lean_object* l_List_range(lean_object*); -extern lean_object* l_myMacro____x40_Init_Tactics___hyg_508____closed__7; lean_object* l_List_zipWith___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_string_utf8_extract(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_letBindRhss_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -223,6 +222,7 @@ lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSy lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_Lean_Elab_Term___instance__7___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__21; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch_match__3___rarg(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__7; lean_object* l_Lean_Elab_Term_Quotation_match__syntax_expand_match__1(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabTacticQuotSeq___closed__1; lean_object* l_Lean_Elab_Term_Quotation_isAntiquotSplicePat___boxed(lean_object*); @@ -292,7 +292,6 @@ lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Quotation_0__Lean_E lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_elimAntiquotChoices_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___elambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__1___closed__5; -extern lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__9; extern lean_object* l_myMacro____x40_Init_Notation___hyg_6360____closed__13; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_letBindRhss(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__1___closed__1; @@ -508,6 +507,7 @@ lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compile lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__43; lean_object* l_Lean_Elab_Term_Quotation_unescapeAntiquot(lean_object*); lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*); +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__3; lean_object* l_Lean_Elab_Term_Quotation_HeadInfo_generalizes___boxed(lean_object*, lean_object*); uint8_t lean_string_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Syntax_mkLit(lean_object*, lean_object*, lean_object*); @@ -6200,7 +6200,7 @@ lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_explode _start: { lean_object* x_4; lean_object* x_5; -x_4 = l_myMacro____x40_Init_Tactics___hyg_508____closed__7; +x_4 = l_Lean_expandExplicitBindersAux_loop___closed__3; x_5 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_5, 0, x_4); lean_ctor_set(x_5, 1, x_3); @@ -10518,7 +10518,7 @@ x_71 = lean_array_push(x_69, x_70); x_72 = lean_array_push(x_71, x_70); x_73 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_331____closed__16; x_74 = lean_array_push(x_72, x_73); -x_75 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__9; +x_75 = l_Lean_expandExplicitBindersAux_loop___closed__7; x_76 = lean_array_push(x_75, x_18); x_77 = l_myMacro____x40_Init_Notation___hyg_6360____closed__15; x_78 = lean_alloc_ctor(1, 2, 0); @@ -10572,7 +10572,7 @@ x_102 = lean_array_push(x_100, x_101); x_103 = lean_array_push(x_102, x_101); x_104 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_331____closed__16; x_105 = lean_array_push(x_103, x_104); -x_106 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__9; +x_106 = l_Lean_expandExplicitBindersAux_loop___closed__7; x_107 = lean_array_push(x_106, x_18); x_108 = l_myMacro____x40_Init_Notation___hyg_6360____closed__15; x_109 = lean_alloc_ctor(1, 2, 0); @@ -10740,7 +10740,7 @@ x_165 = lean_array_push(x_163, x_164); x_166 = lean_array_push(x_165, x_164); x_167 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_331____closed__16; x_168 = lean_array_push(x_166, x_167); -x_169 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__9; +x_169 = l_Lean_expandExplicitBindersAux_loop___closed__7; x_170 = lean_array_push(x_169, x_18); x_171 = l_myMacro____x40_Init_Notation___hyg_6360____closed__15; x_172 = lean_alloc_ctor(1, 2, 0); @@ -11609,7 +11609,7 @@ x_500 = lean_array_push(x_498, x_499); x_501 = lean_array_push(x_500, x_499); x_502 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_331____closed__16; x_503 = lean_array_push(x_501, x_502); -x_504 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__9; +x_504 = l_Lean_expandExplicitBindersAux_loop___closed__7; x_505 = lean_array_push(x_504, x_441); x_506 = l_myMacro____x40_Init_Notation___hyg_6360____closed__15; x_507 = lean_alloc_ctor(1, 2, 0); @@ -12106,7 +12106,7 @@ x_681 = lean_array_push(x_679, x_680); x_682 = lean_array_push(x_681, x_680); x_683 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_331____closed__16; x_684 = lean_array_push(x_682, x_683); -x_685 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__9; +x_685 = l_Lean_expandExplicitBindersAux_loop___closed__7; x_686 = lean_array_push(x_685, x_620); x_687 = l_myMacro____x40_Init_Notation___hyg_6360____closed__15; x_688 = lean_alloc_ctor(1, 2, 0); diff --git a/stage0/stdlib/Lean/Elab/StructInst.c b/stage0/stdlib/Lean/Elab/StructInst.c index fff4732367..e10cd00003 100644 --- a/stage0/stdlib/Lean/Elab/StructInst.c +++ b/stage0/stdlib/Lean/Elab/StructInst.c @@ -170,7 +170,6 @@ lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_StructInst_0__Le extern lean_object* l_Lean_Expr_getAppArgs___closed__1; lean_object* l_Lean_Elab_Term_StructInst_formatField(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux_match__1(lean_object*); -extern lean_object* l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; lean_object* l_Std_AssocList_contains___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__4___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_synthesizeAppInstMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -203,6 +202,7 @@ lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isMod lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__5; lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_propagate(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Field_toSyntax___closed__1; +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__13; lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__4; lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux_match__3(lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); @@ -777,7 +777,7 @@ x_9 = l_Lean_mkOptionalNode___closed__1; x_10 = l_Lean_Syntax_setArg(x_1, x_4, x_9); x_11 = l_Array_empty___closed__1; x_12 = lean_array_push(x_11, x_10); -x_13 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_13 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_14 = lean_array_push(x_13, x_8); x_15 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_43____closed__4; x_16 = lean_alloc_ctor(1, 2, 0); diff --git a/stage0/stdlib/Lean/Elab/Structure.c b/stage0/stdlib/Lean/Elab/Structure.c index a6cc5f3d56..002717afac 100644 --- a/stage0/stdlib/Lean/Elab/Structure.c +++ b/stage0/stdlib/Lean/Elab/Structure.c @@ -521,6 +521,7 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateResultin lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateResultingUniverse___closed__2; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__8___closed__4; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamFVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__2; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4___closed__1; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn(lean_object*); @@ -562,7 +563,6 @@ lean_object* l_Lean_Elab_Command_checkValidInductiveModifier(lean_object*, lean_ lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_myMacro____x40_Init_Tactics___hyg_508____closed__6; lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_elabForall___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUniversesFromFields(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_findFieldInfo_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -16904,7 +16904,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Level_elabLevel___closed__6; -x_2 = l_myMacro____x40_Init_Tactics___hyg_508____closed__6; +x_2 = l_Lean_expandExplicitBindersAux_loop___closed__2; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); diff --git a/stage0/stdlib/Lean/Elab/Syntax.c b/stage0/stdlib/Lean/Elab/Syntax.c index bbff6f6216..d38750ddc8 100644 --- a/stage0/stdlib/Lean/Elab/Syntax.c +++ b/stage0/stdlib/Lean/Elab/Syntax.c @@ -142,6 +142,7 @@ lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__20; lean_object* l_Lean_Elab_Command_expandMacroArgIntoPattern(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_withExpectedType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__12; extern lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabTacticQuot___closed__1; lean_object* lean_environment_find(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMixfix___closed__24; @@ -163,7 +164,6 @@ uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandElab___closed__35; lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__7; lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__22; -extern lean_object* l_myMacro____x40_Init_Tactics___hyg_508____closed__4; lean_object* l_Lean_Elab_Command_expandElab___closed__4; lean_object* l___private_Init_Meta_0__Array_filterSepElemsMAux___at_Lean_Elab_Command_elabNoKindMacroRulesAux___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkIdentFrom(lean_object*, lean_object*); @@ -182,7 +182,6 @@ lean_object* l_Lean_Elab_Command_withExpectedType___closed__3; lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabMacroRulesAux___spec__3(lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofList(lean_object*); -extern lean_object* l_myMacro____x40_Init_Tactics___hyg_508____closed__7; lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__10; lean_object* l___regBuiltin_Lean_Elab_Command_elabElab(lean_object*); lean_object* l_List_map___at_Lean_resolveGlobalConst___spec__2(lean_object*); @@ -190,7 +189,6 @@ lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0_ lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__33; lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__3; lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__9; -extern lean_object* l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; lean_object* l_Lean_Elab_Term_toParserDescrAux_match__2(lean_object*); lean_object* l_Lean_Elab_Term_toParserDescrAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__7; @@ -223,6 +221,7 @@ lean_object* l_Lean_Elab_Command_expandElab___closed__17; lean_object* l_Lean_throwError___at_Lean_Elab_Term_checkLeftRec___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__3; lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__54; +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__13; lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__6; lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__42; lean_object* l_Lean_Elab_Command_expandMixfix___closed__13; @@ -456,6 +455,7 @@ extern lean_object* l_myMacro____x40_Init_Notation___hyg_38____closed__8; lean_object* l_Nat_pred(lean_object*); lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__12; lean_object* l_Lean_Elab_Command_expandElab___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__11; lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__34; lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__5; @@ -515,7 +515,6 @@ lean_object* l_Lean_Elab_Command_expandElab___closed__1; extern lean_object* l_Lean_nullKind___closed__2; lean_object* l_Lean_Elab_Command_expandMixfix(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_Lean_Meta_Basic___instance__10___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__8; lean_object* l_Lean_Elab_Command_expandElab___closed__41; lean_object* l_Lean_Elab_Term_checkLeftRec___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_6360____closed__7; @@ -569,6 +568,7 @@ extern lean_object* l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__9; lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__13; lean_object* l_Lean_Elab_Command_expandElab___closed__16; lean_object* l_Lean_Elab_Command_elabNoKindMacroRulesAux___closed__3; +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__6; lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_checkLeftRec___spec__1(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabDeclareSyntaxCat___closed__3; lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_isAtomLikeSyntax___boxed(lean_object*); @@ -581,7 +581,6 @@ extern lean_object* l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__1 lean_object* l_Lean_Elab_Command_expandMixfix___closed__17; uint8_t l_Lean_Parser_isParserCategory(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_expandMacro___spec__2(size_t, size_t, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Elab_Term_elabLetDeclCore___closed__6; extern lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_839____closed__1; uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_toParserDescrAux_match__3(lean_object*); @@ -821,6 +820,7 @@ lean_object* l___regBuiltin_Lean_Elab_Command_elabSyntax___closed__1; lean_object* l_Lean_Elab_Command_expandElab___closed__29; lean_object* l_Lean_Elab_Command_elabSyntax___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabEnd___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__3; lean_object* l_Lean_Elab_Command_elabElab___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_string_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Syntax_mkLit(lean_object*, lean_object*, lean_object*); @@ -8291,9 +8291,9 @@ lean_ctor_set(x_57, 0, x_21); lean_ctor_set(x_57, 1, x_55); lean_ctor_set(x_57, 2, x_54); lean_ctor_set(x_57, 3, x_56); -x_58 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_58 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_59 = lean_array_push(x_58, x_57); -x_60 = l_Lean_Elab_Term_elabLetDeclCore___closed__6; +x_60 = l_Lean_expandExplicitBindersAux_loop___closed__11; x_61 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_61, 0, x_60); lean_ctor_set(x_61, 1, x_59); @@ -10268,9 +10268,9 @@ lean_ctor_set(x_80, 0, x_45); lean_ctor_set(x_80, 1, x_78); lean_ctor_set(x_80, 2, x_77); lean_ctor_set(x_80, 3, x_79); -x_81 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_81 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_82 = lean_array_push(x_81, x_80); -x_83 = l_Lean_Elab_Term_elabLetDeclCore___closed__6; +x_83 = l_Lean_expandExplicitBindersAux_loop___closed__11; x_84 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_84, 0, x_83); lean_ctor_set(x_84, 1, x_82); @@ -10406,9 +10406,9 @@ lean_ctor_set(x_165, 0, x_130); lean_ctor_set(x_165, 1, x_163); lean_ctor_set(x_165, 2, x_162); lean_ctor_set(x_165, 3, x_164); -x_166 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_166 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_167 = lean_array_push(x_166, x_165); -x_168 = l_Lean_Elab_Term_elabLetDeclCore___closed__6; +x_168 = l_Lean_expandExplicitBindersAux_loop___closed__11; x_169 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_169, 0, x_168); lean_ctor_set(x_169, 1, x_167); @@ -10950,9 +10950,9 @@ lean_ctor_set(x_37, 0, x_34); lean_ctor_set(x_37, 1, x_35); lean_ctor_set(x_37, 2, x_33); lean_ctor_set(x_37, 3, x_36); -x_38 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_38 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_39 = lean_array_push(x_38, x_37); -x_40 = l_Lean_Elab_Term_elabLetDeclCore___closed__6; +x_40 = l_Lean_expandExplicitBindersAux_loop___closed__11; x_41 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_41, 0, x_40); lean_ctor_set(x_41, 1, x_39); @@ -11773,7 +11773,7 @@ static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__18() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__8; +x_1 = l_Lean_expandExplicitBindersAux_loop___closed__6; x_2 = l_myMacro____x40_Init_Notation___hyg_6360____closed__17; x_3 = lean_array_push(x_1, x_2); return x_3; @@ -12061,9 +12061,9 @@ lean_ctor_set(x_65, 0, x_19); lean_ctor_set(x_65, 1, x_63); lean_ctor_set(x_65, 2, x_62); lean_ctor_set(x_65, 3, x_64); -x_66 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_66 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_67 = lean_array_push(x_66, x_65); -x_68 = l_Lean_Elab_Term_elabLetDeclCore___closed__6; +x_68 = l_Lean_expandExplicitBindersAux_loop___closed__11; x_69 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_69, 0, x_68); lean_ctor_set(x_69, 1, x_67); @@ -12273,9 +12273,9 @@ lean_ctor_set(x_188, 0, x_142); lean_ctor_set(x_188, 1, x_186); lean_ctor_set(x_188, 2, x_185); lean_ctor_set(x_188, 3, x_187); -x_189 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_189 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_190 = lean_array_push(x_189, x_188); -x_191 = l_Lean_Elab_Term_elabLetDeclCore___closed__6; +x_191 = l_Lean_expandExplicitBindersAux_loop___closed__11; x_192 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_192, 0, x_191); lean_ctor_set(x_192, 1, x_190); @@ -14213,7 +14213,7 @@ x_353 = l_Lean_Syntax_getArg(x_1, x_348); x_354 = lean_unsigned_to_nat(4u); x_355 = l_Lean_Syntax_getArg(x_1, x_354); lean_dec(x_1); -x_356 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_356 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_357 = lean_array_push(x_356, x_352); x_358 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_358, 0, x_342); @@ -14382,7 +14382,7 @@ lean_inc(x_54); x_55 = lean_ctor_get(x_2, 1); lean_inc(x_55); lean_dec(x_2); -x_56 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_56 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_57 = lean_array_push(x_56, x_50); x_58 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_58, 0, x_40); @@ -14560,7 +14560,7 @@ lean_inc(x_121); x_122 = lean_ctor_get(x_2, 1); lean_inc(x_122); lean_dec(x_2); -x_123 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_123 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_124 = lean_array_push(x_123, x_117); x_125 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_125, 0, x_107); @@ -14761,7 +14761,7 @@ lean_inc(x_199); x_200 = lean_ctor_get(x_2, 1); lean_inc(x_200); lean_dec(x_2); -x_201 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_201 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_202 = lean_array_push(x_201, x_189); x_203 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_203, 0, x_179); @@ -14960,7 +14960,7 @@ lean_inc(x_277); x_278 = lean_ctor_get(x_2, 1); lean_inc(x_278); lean_dec(x_2); -x_279 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_279 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_280 = lean_array_push(x_279, x_273); x_281 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_281, 0, x_263); @@ -15942,7 +15942,7 @@ x_56 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_56, 0, x_51); lean_ctor_set(x_56, 1, x_55); x_57 = lean_array_push(x_54, x_56); -x_58 = l_myMacro____x40_Init_Tactics___hyg_508____closed__4; +x_58 = l_Lean_expandExplicitBindersAux_loop___closed__12; x_59 = lean_array_push(x_57, x_58); x_60 = lean_array_push(x_59, x_23); x_61 = l___regBuiltin_Lean_Elab_Command_elabSyntax___closed__1; @@ -16004,7 +16004,7 @@ lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean x_93 = lean_ctor_get(x_3, 0); lean_inc(x_93); lean_dec(x_3); -x_94 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_94 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_95 = lean_array_push(x_94, x_93); x_96 = l_Lean_Elab_Command_expandMixfix___closed__8; x_97 = lean_alloc_ctor(1, 2, 0); @@ -16038,7 +16038,7 @@ x_115 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_115, 0, x_100); lean_ctor_set(x_115, 1, x_114); x_116 = lean_array_push(x_113, x_115); -x_117 = l_myMacro____x40_Init_Tactics___hyg_508____closed__4; +x_117 = l_Lean_expandExplicitBindersAux_loop___closed__12; x_118 = lean_array_push(x_116, x_117); x_119 = lean_array_push(x_118, x_23); x_120 = l___regBuiltin_Lean_Elab_Command_elabSyntax___closed__1; @@ -16142,7 +16142,7 @@ x_176 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_176, 0, x_171); lean_ctor_set(x_176, 1, x_175); x_177 = lean_array_push(x_174, x_176); -x_178 = l_myMacro____x40_Init_Tactics___hyg_508____closed__4; +x_178 = l_Lean_expandExplicitBindersAux_loop___closed__12; x_179 = lean_array_push(x_177, x_178); x_180 = lean_array_push(x_179, x_23); x_181 = l___regBuiltin_Lean_Elab_Command_elabSyntax___closed__1; @@ -16206,7 +16206,7 @@ lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; x_214 = lean_ctor_get(x_3, 0); lean_inc(x_214); lean_dec(x_3); -x_215 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_215 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_216 = lean_array_push(x_215, x_214); x_217 = l_Lean_Elab_Command_expandMixfix___closed__8; x_218 = lean_alloc_ctor(1, 2, 0); @@ -16240,7 +16240,7 @@ x_236 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_236, 0, x_221); lean_ctor_set(x_236, 1, x_235); x_237 = lean_array_push(x_234, x_236); -x_238 = l_myMacro____x40_Init_Tactics___hyg_508____closed__4; +x_238 = l_Lean_expandExplicitBindersAux_loop___closed__12; x_239 = lean_array_push(x_237, x_238); x_240 = lean_array_push(x_239, x_23); x_241 = l___regBuiltin_Lean_Elab_Command_elabSyntax___closed__1; @@ -17545,7 +17545,7 @@ x_81 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_81, 0, x_59); lean_ctor_set(x_81, 1, x_80); x_82 = lean_array_push(x_79, x_81); -x_83 = l_myMacro____x40_Init_Tactics___hyg_508____closed__4; +x_83 = l_Lean_expandExplicitBindersAux_loop___closed__12; x_84 = lean_array_push(x_82, x_83); x_85 = lean_array_push(x_84, x_17); x_86 = l___regBuiltin_Lean_Elab_Command_elabSyntax___closed__1; @@ -17642,7 +17642,7 @@ x_144 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_144, 0, x_122); lean_ctor_set(x_144, 1, x_143); x_145 = lean_array_push(x_142, x_144); -x_146 = l_myMacro____x40_Init_Tactics___hyg_508____closed__4; +x_146 = l_Lean_expandExplicitBindersAux_loop___closed__12; x_147 = lean_array_push(x_145, x_146); x_148 = lean_array_push(x_147, x_17); x_149 = l___regBuiltin_Lean_Elab_Command_elabSyntax___closed__1; @@ -17756,7 +17756,7 @@ x_213 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_213, 0, x_191); lean_ctor_set(x_213, 1, x_212); x_214 = lean_array_push(x_211, x_213); -x_215 = l_myMacro____x40_Init_Tactics___hyg_508____closed__4; +x_215 = l_Lean_expandExplicitBindersAux_loop___closed__12; x_216 = lean_array_push(x_214, x_215); x_217 = lean_array_push(x_216, x_17); x_218 = l___regBuiltin_Lean_Elab_Command_elabSyntax___closed__1; @@ -17855,7 +17855,7 @@ x_277 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_277, 0, x_255); lean_ctor_set(x_277, 1, x_276); x_278 = lean_array_push(x_275, x_277); -x_279 = l_myMacro____x40_Init_Tactics___hyg_508____closed__4; +x_279 = l_Lean_expandExplicitBindersAux_loop___closed__12; x_280 = lean_array_push(x_278, x_279); x_281 = lean_array_push(x_280, x_17); x_282 = l___regBuiltin_Lean_Elab_Command_elabSyntax___closed__1; @@ -19178,7 +19178,7 @@ x_97 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_97, 0, x_76); lean_ctor_set(x_97, 1, x_96); x_98 = lean_array_push(x_95, x_97); -x_99 = l_myMacro____x40_Init_Tactics___hyg_508____closed__4; +x_99 = l_Lean_expandExplicitBindersAux_loop___closed__12; x_100 = lean_array_push(x_98, x_99); x_101 = lean_array_push(x_100, x_17); x_102 = l___regBuiltin_Lean_Elab_Command_elabSyntax___closed__1; @@ -19261,9 +19261,9 @@ lean_ctor_set(x_147, 0, x_85); lean_ctor_set(x_147, 1, x_145); lean_ctor_set(x_147, 2, x_144); lean_ctor_set(x_147, 3, x_146); -x_148 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_148 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_149 = lean_array_push(x_148, x_147); -x_150 = l_Lean_Elab_Term_elabLetDeclCore___closed__6; +x_150 = l_Lean_expandExplicitBindersAux_loop___closed__11; x_151 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_151, 0, x_150); lean_ctor_set(x_151, 1, x_149); @@ -19430,7 +19430,7 @@ x_248 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_248, 0, x_227); lean_ctor_set(x_248, 1, x_247); x_249 = lean_array_push(x_246, x_248); -x_250 = l_myMacro____x40_Init_Tactics___hyg_508____closed__4; +x_250 = l_Lean_expandExplicitBindersAux_loop___closed__12; x_251 = lean_array_push(x_249, x_250); x_252 = lean_array_push(x_251, x_17); x_253 = l___regBuiltin_Lean_Elab_Command_elabSyntax___closed__1; @@ -19514,9 +19514,9 @@ lean_ctor_set(x_299, 0, x_236); lean_ctor_set(x_299, 1, x_297); lean_ctor_set(x_299, 2, x_296); lean_ctor_set(x_299, 3, x_298); -x_300 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_300 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_301 = lean_array_push(x_300, x_299); -x_302 = l_Lean_Elab_Term_elabLetDeclCore___closed__6; +x_302 = l_Lean_expandExplicitBindersAux_loop___closed__11; x_303 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_303, 0, x_302); lean_ctor_set(x_303, 1, x_301); @@ -19683,7 +19683,7 @@ x_400 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_400, 0, x_379); lean_ctor_set(x_400, 1, x_399); x_401 = lean_array_push(x_398, x_400); -x_402 = l_myMacro____x40_Init_Tactics___hyg_508____closed__4; +x_402 = l_Lean_expandExplicitBindersAux_loop___closed__12; x_403 = lean_array_push(x_401, x_402); x_404 = lean_array_push(x_403, x_17); x_405 = l___regBuiltin_Lean_Elab_Command_elabSyntax___closed__1; @@ -19767,9 +19767,9 @@ lean_ctor_set(x_451, 0, x_388); lean_ctor_set(x_451, 1, x_449); lean_ctor_set(x_451, 2, x_448); lean_ctor_set(x_451, 3, x_450); -x_452 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_452 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_453 = lean_array_push(x_452, x_451); -x_454 = l_Lean_Elab_Term_elabLetDeclCore___closed__6; +x_454 = l_Lean_expandExplicitBindersAux_loop___closed__11; x_455 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_455, 0, x_454); lean_ctor_set(x_455, 1, x_453); @@ -19795,7 +19795,7 @@ lean_ctor_set(x_465, 2, x_463); lean_ctor_set(x_465, 3, x_410); lean_inc(x_465); x_466 = lean_array_push(x_377, x_465); -x_467 = l_myMacro____x40_Init_Tactics___hyg_508____closed__7; +x_467 = l_Lean_expandExplicitBindersAux_loop___closed__3; x_468 = lean_array_push(x_466, x_467); x_469 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_469, 0, x_379); @@ -19967,7 +19967,7 @@ x_564 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_564, 0, x_543); lean_ctor_set(x_564, 1, x_563); x_565 = lean_array_push(x_562, x_564); -x_566 = l_myMacro____x40_Init_Tactics___hyg_508____closed__4; +x_566 = l_Lean_expandExplicitBindersAux_loop___closed__12; x_567 = lean_array_push(x_565, x_566); x_568 = lean_array_push(x_567, x_17); x_569 = l___regBuiltin_Lean_Elab_Command_elabSyntax___closed__1; @@ -20051,9 +20051,9 @@ lean_ctor_set(x_615, 0, x_552); lean_ctor_set(x_615, 1, x_613); lean_ctor_set(x_615, 2, x_612); lean_ctor_set(x_615, 3, x_614); -x_616 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_616 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_617 = lean_array_push(x_616, x_615); -x_618 = l_Lean_Elab_Term_elabLetDeclCore___closed__6; +x_618 = l_Lean_expandExplicitBindersAux_loop___closed__11; x_619 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_619, 0, x_618); lean_ctor_set(x_619, 1, x_617); @@ -20324,7 +20324,7 @@ x_762 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_762, 0, x_741); lean_ctor_set(x_762, 1, x_761); x_763 = lean_array_push(x_760, x_762); -x_764 = l_myMacro____x40_Init_Tactics___hyg_508____closed__4; +x_764 = l_Lean_expandExplicitBindersAux_loop___closed__12; x_765 = lean_array_push(x_763, x_764); x_766 = lean_array_push(x_765, x_17); x_767 = l___regBuiltin_Lean_Elab_Command_elabSyntax___closed__1; @@ -20407,9 +20407,9 @@ lean_ctor_set(x_812, 0, x_750); lean_ctor_set(x_812, 1, x_810); lean_ctor_set(x_812, 2, x_809); lean_ctor_set(x_812, 3, x_811); -x_813 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_813 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_814 = lean_array_push(x_813, x_812); -x_815 = l_Lean_Elab_Term_elabLetDeclCore___closed__6; +x_815 = l_Lean_expandExplicitBindersAux_loop___closed__11; x_816 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_816, 0, x_815); lean_ctor_set(x_816, 1, x_814); @@ -20578,7 +20578,7 @@ x_914 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_914, 0, x_893); lean_ctor_set(x_914, 1, x_913); x_915 = lean_array_push(x_912, x_914); -x_916 = l_myMacro____x40_Init_Tactics___hyg_508____closed__4; +x_916 = l_Lean_expandExplicitBindersAux_loop___closed__12; x_917 = lean_array_push(x_915, x_916); x_918 = lean_array_push(x_917, x_17); x_919 = l___regBuiltin_Lean_Elab_Command_elabSyntax___closed__1; @@ -20662,9 +20662,9 @@ lean_ctor_set(x_965, 0, x_902); lean_ctor_set(x_965, 1, x_963); lean_ctor_set(x_965, 2, x_962); lean_ctor_set(x_965, 3, x_964); -x_966 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_966 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_967 = lean_array_push(x_966, x_965); -x_968 = l_Lean_Elab_Term_elabLetDeclCore___closed__6; +x_968 = l_Lean_expandExplicitBindersAux_loop___closed__11; x_969 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_969, 0, x_968); lean_ctor_set(x_969, 1, x_967); @@ -20833,7 +20833,7 @@ x_1067 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1067, 0, x_1046); lean_ctor_set(x_1067, 1, x_1066); x_1068 = lean_array_push(x_1065, x_1067); -x_1069 = l_myMacro____x40_Init_Tactics___hyg_508____closed__4; +x_1069 = l_Lean_expandExplicitBindersAux_loop___closed__12; x_1070 = lean_array_push(x_1068, x_1069); x_1071 = lean_array_push(x_1070, x_17); x_1072 = l___regBuiltin_Lean_Elab_Command_elabSyntax___closed__1; @@ -20917,9 +20917,9 @@ lean_ctor_set(x_1118, 0, x_1055); lean_ctor_set(x_1118, 1, x_1116); lean_ctor_set(x_1118, 2, x_1115); lean_ctor_set(x_1118, 3, x_1117); -x_1119 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_1119 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_1120 = lean_array_push(x_1119, x_1118); -x_1121 = l_Lean_Elab_Term_elabLetDeclCore___closed__6; +x_1121 = l_Lean_expandExplicitBindersAux_loop___closed__11; x_1122 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1122, 0, x_1121); lean_ctor_set(x_1122, 1, x_1120); @@ -20945,7 +20945,7 @@ lean_ctor_set(x_1132, 2, x_1130); lean_ctor_set(x_1132, 3, x_1077); lean_inc(x_1132); x_1133 = lean_array_push(x_1044, x_1132); -x_1134 = l_myMacro____x40_Init_Tactics___hyg_508____closed__7; +x_1134 = l_Lean_expandExplicitBindersAux_loop___closed__3; x_1135 = lean_array_push(x_1133, x_1134); x_1136 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1136, 0, x_1046); @@ -21118,7 +21118,7 @@ x_1232 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1232, 0, x_1211); lean_ctor_set(x_1232, 1, x_1231); x_1233 = lean_array_push(x_1230, x_1232); -x_1234 = l_myMacro____x40_Init_Tactics___hyg_508____closed__4; +x_1234 = l_Lean_expandExplicitBindersAux_loop___closed__12; x_1235 = lean_array_push(x_1233, x_1234); x_1236 = lean_array_push(x_1235, x_17); x_1237 = l___regBuiltin_Lean_Elab_Command_elabSyntax___closed__1; @@ -21202,9 +21202,9 @@ lean_ctor_set(x_1283, 0, x_1220); lean_ctor_set(x_1283, 1, x_1281); lean_ctor_set(x_1283, 2, x_1280); lean_ctor_set(x_1283, 3, x_1282); -x_1284 = l_Lean_myMacro____x40_Lean_Data_FormatMacro___hyg_44____closed__3; +x_1284 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_1285 = lean_array_push(x_1284, x_1283); -x_1286 = l_Lean_Elab_Term_elabLetDeclCore___closed__6; +x_1286 = l_Lean_expandExplicitBindersAux_loop___closed__11; x_1287 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1287, 0, x_1286); lean_ctor_set(x_1287, 1, x_1285); diff --git a/stage0/stdlib/Lean/Elab/Tactic/Basic.c b/stage0/stdlib/Lean/Elab/Tactic/Basic.c index 12b6808b4f..2c1e17eb63 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Basic.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Basic.c @@ -140,7 +140,6 @@ lean_object* l_Lean_Elab_Tactic_tryCatch(lean_object*); lean_object* l_Lean_Elab_Tactic_setGoals___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_evalTacticUsing_loop_match__2(lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_expandTacticMacroFns_loop___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_myMacro____x40_Init_Tactics___hyg_508____closed__7; lean_object* l_Lean_Elab_Tactic_liftMetaMAtMain_match__1___rarg(lean_object*, lean_object*); uint8_t l_Lean_Name_isPrefixOf(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_getGoals___boxed(lean_object*); @@ -616,6 +615,7 @@ lean_object* l_Lean_Meta_assignExprMVar___at_Lean_Elab_Tactic_closeUsingOrAdmit_ lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed___closed__2; lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_forEachVar___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_forEachVar___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__3; lean_object* l_Lean_Elab_Tactic_evalIntros___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l_List_forIn_loop___at_Lean_Elab_Tactic_tagUntaggedGoals___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -10895,7 +10895,7 @@ lean_ctor_set(x_118, 1, x_117); x_119 = lean_array_push(x_96, x_118); x_120 = l_myMacro____x40_Init_Notation___hyg_6360____closed__17; x_121 = lean_array_push(x_119, x_120); -x_122 = l_myMacro____x40_Init_Tactics___hyg_508____closed__7; +x_122 = l_Lean_expandExplicitBindersAux_loop___closed__3; x_123 = lean_array_push(x_121, x_122); x_124 = l_Lean_Elab_Tactic_evalIntro___closed__6; x_125 = lean_alloc_ctor(1, 2, 0); diff --git a/stage0/stdlib/Lean/Elab/Tactic/Binders.c b/stage0/stdlib/Lean/Elab/Tactic/Binders.c index 63d8e527db..5102983671 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Binders.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Binders.c @@ -37,7 +37,6 @@ lean_object* l___regBuiltin_Lean_Elab_Tactic_expandSufficesTactic___closed__1; extern lean_object* l_myMacro____x40_Init_Tactics___hyg_31____closed__1; lean_object* l___regBuiltin_Lean_Elab_Tactic_expandHaveTactic(lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); -extern lean_object* l_myMacro____x40_Init_Tactics___hyg_508____closed__7; lean_object* l___regBuiltin_Lean_Elab_Tactic_expandLetBangTactic___closed__2; lean_object* l_Lean_Elab_Tactic_expandShowTactic___closed__6; lean_object* l___regBuiltin_Lean_Elab_Tactic_expandLetTactic(lean_object*); @@ -51,6 +50,7 @@ lean_object* l___private_Lean_Elab_Tactic_Binders_0__Lean_Elab_Tactic_liftTermBi extern lean_object* l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_496____closed__1; lean_object* l_Lean_Elab_Tactic_expandLetRecTactic(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_expandLetTactic___closed__1; +extern lean_object* l_Lean_Elab_Term_elabLetDeclCore___closed__7; extern lean_object* l_myMacro____x40_Init_Notation___hyg_6360____closed__18; lean_object* l_Lean_Elab_Tactic_expandShowTactic___closed__7; extern lean_object* l_Lean_Init_Prelude___instance__72___closed__1; @@ -82,7 +82,6 @@ lean_object* l___private_Lean_Elab_Tactic_Binders_0__Lean_Elab_Tactic_liftTermBi lean_object* l_Lean_Syntax_getKind(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_expandShowTactic___closed__2; lean_object* l___private_Lean_Elab_Tactic_Binders_0__Lean_Elab_Tactic_liftTermBinderSyntax___closed__2; -extern lean_object* l_Lean_Elab_Term_elabLetDeclCore___closed__9; lean_object* l___regBuiltin_Lean_Elab_Tactic_expandShowTactic(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_expandLetRecTactic___closed__1; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); @@ -97,6 +96,7 @@ lean_object* l___private_Lean_Elab_Tactic_Binders_0__Lean_Elab_Tactic_liftTermBi lean_object* l_Lean_Elab_Tactic_expandShowTactic___closed__2; lean_object* l_Lean_Elab_Tactic_expandShowTactic___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_expandShowTactic___closed__1; +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__3; uint8_t lean_string_dec_eq(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Binders_0__Lean_Elab_Tactic_liftTermBinderSyntax_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: @@ -194,7 +194,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Elab_Tactic_Binders_0__Lean_Elab_Tactic_liftTermBinderSyntax___closed__2; -x_2 = l_myMacro____x40_Init_Tactics___hyg_508____closed__7; +x_2 = l_Lean_expandExplicitBindersAux_loop___closed__3; x_3 = lean_array_push(x_1, x_2); return x_3; } @@ -460,7 +460,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_myMacro____x40_Init_Tactics___hyg_31____closed__2; -x_2 = l_Lean_Elab_Term_elabLetDeclCore___closed__9; +x_2 = l_Lean_Elab_Term_elabLetDeclCore___closed__7; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } diff --git a/stage0/stdlib/Lean/Level.c b/stage0/stdlib/Lean/Level.c index 9540cb7329..dd32f4cb94 100644 --- a/stage0/stdlib/Lean/Level.c +++ b/stage0/stdlib/Lean/Level.c @@ -134,6 +134,7 @@ lean_object* l_Lean_Level_LevelToFormat_Result_format___closed__2; uint64_t l_Lean_Level_mkData(size_t, lean_object*, uint8_t, uint8_t); lean_object* l_Lean_Level_getLevelOffset_match__1(lean_object*); lean_object* lean_level_update_max(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkLevelMax_x27(lean_object*, lean_object*); lean_object* l_Lean_Level_normalize___closed__1; lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); uint32_t l_UInt64_toUInt32(uint64_t); @@ -144,6 +145,7 @@ lean_object* l_Lean_Level_ofNat_match__1___rarg___boxed(lean_object*, lean_objec lean_object* l___private_Lean_Level_0__Lean_Level_LevelToFormat_formatLst___at_Lean_Level_LevelToFormat_Result_format___spec__2(lean_object*); lean_object* l_Lean_Level_occurs_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Level_depth___boxed(lean_object*); +lean_object* l_Lean_mkLevelIMax_x27(lean_object*, lean_object*); lean_object* l_Lean_Level_toNat(lean_object*); lean_object* l_Lean_Level_LevelToFormat_Result_max(lean_object*, lean_object*); lean_object* l_Lean_Level_normLtAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -243,6 +245,7 @@ lean_object* l_Lean_Level_dec_match__1___rarg(lean_object*, lean_object*, lean_o lean_object* l_Lean_Level_updateSucc_x21___closed__2; lean_object* l_Lean_Level_normLtAux_match__1(lean_object*); lean_object* l_Lean_Level_LevelToFormat_Result_succ(lean_object*); +lean_object* l_Lean_mkLevelMax_x27_match__1___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Format_paren___closed__4; lean_object* l___private_Lean_Level_0__Lean_Level_LevelToFormat_formatLst_match__1(lean_object*); uint8_t l_Lean_Level_isMVar(lean_object*); @@ -278,6 +281,7 @@ lean_object* l_Lean_Level_hashEx___boxed(lean_object*); lean_object* l_Lean_Level_hasMVar___boxed(lean_object*); lean_object* l_Lean_Level_ofNat(lean_object*); uint8_t l_Lean_Level_isMaxIMax(lean_object*); +lean_object* l_Lean_mkLevelMax_x27_match__1(lean_object*); extern lean_object* l_Lean_Format_paren___closed__3; lean_object* l_Lean_Level_hash___boxed(lean_object*); lean_object* l_Lean_Level_instantiateParams(lean_object*, lean_object*); @@ -5809,6 +5813,291 @@ x_1 = l_Lean_Level_Lean_Level___instance__7___closed__1; return x_1; } } +lean_object* l_Lean_mkLevelMax_x27_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 2) +{ +lean_object* x_4; lean_object* x_5; uint64_t x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +x_6 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +lean_dec(x_1); +x_7 = lean_box_uint64(x_6); +x_8 = lean_apply_3(x_2, x_4, x_5, x_7); +return x_8; +} +else +{ +lean_object* x_9; +lean_dec(x_2); +x_9 = lean_apply_1(x_3, x_1); +return x_9; +} +} +} +lean_object* l_Lean_mkLevelMax_x27_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_mkLevelMax_x27_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_mkLevelMax_x27(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_13; lean_object* x_21; uint8_t x_32; +x_32 = l_Lean_Level_isExplicit(x_1); +if (x_32 == 0) +{ +lean_object* x_33; +x_33 = lean_box(0); +x_21 = x_33; +goto block_31; +} +else +{ +uint8_t x_34; +x_34 = l_Lean_Level_isExplicit(x_2); +if (x_34 == 0) +{ +lean_object* x_35; +x_35 = lean_box(0); +x_21 = x_35; +goto block_31; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_36 = lean_unsigned_to_nat(0u); +x_37 = l_Lean_Level_getOffsetAux(x_2, x_36); +x_38 = l_Lean_Level_getOffsetAux(x_1, x_36); +x_39 = lean_nat_dec_le(x_37, x_38); +lean_dec(x_38); +lean_dec(x_37); +if (x_39 == 0) +{ +lean_dec(x_1); +return x_2; +} +else +{ +lean_dec(x_2); +return x_1; +} +} +} +block_12: +{ +lean_object* x_4; lean_object* x_5; uint8_t x_6; +lean_dec(x_3); +x_4 = l_Lean_Level_getLevelOffset(x_1); +x_5 = l_Lean_Level_getLevelOffset(x_2); +x_6 = lean_level_eq(x_4, x_5); +lean_dec(x_5); +lean_dec(x_4); +if (x_6 == 0) +{ +lean_object* x_7; +x_7 = l_Lean_mkLevelMax(x_1, x_2); +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_8 = lean_unsigned_to_nat(0u); +x_9 = l_Lean_Level_getOffsetAux(x_2, x_8); +x_10 = l_Lean_Level_getOffsetAux(x_1, x_8); +x_11 = lean_nat_dec_le(x_9, x_10); +lean_dec(x_10); +lean_dec(x_9); +if (x_11 == 0) +{ +lean_dec(x_1); +return x_2; +} +else +{ +lean_dec(x_2); +return x_1; +} +} +} +block_20: +{ +lean_dec(x_13); +if (lean_obj_tag(x_2) == 2) +{ +lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_14 = lean_ctor_get(x_2, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_2, 1); +lean_inc(x_15); +x_16 = lean_level_eq(x_1, x_14); +lean_dec(x_14); +if (x_16 == 0) +{ +uint8_t x_17; +x_17 = lean_level_eq(x_1, x_15); +lean_dec(x_15); +if (x_17 == 0) +{ +lean_object* x_18; +x_18 = lean_box(0); +x_3 = x_18; +goto block_12; +} +else +{ +lean_dec(x_1); +return x_2; +} +} +else +{ +lean_dec(x_15); +lean_dec(x_1); +return x_2; +} +} +else +{ +lean_object* x_19; +x_19 = lean_box(0); +x_3 = x_19; +goto block_12; +} +} +block_31: +{ +uint8_t x_22; +lean_dec(x_21); +x_22 = lean_level_eq(x_1, x_2); +if (x_22 == 0) +{ +uint8_t x_23; +x_23 = l_Lean_Level_isZero(x_1); +if (x_23 == 0) +{ +uint8_t x_24; +x_24 = l_Lean_Level_isZero(x_2); +if (x_24 == 0) +{ +if (lean_obj_tag(x_1) == 2) +{ +lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_25 = lean_ctor_get(x_1, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_1, 1); +lean_inc(x_26); +x_27 = lean_level_eq(x_2, x_25); +lean_dec(x_25); +if (x_27 == 0) +{ +uint8_t x_28; +x_28 = lean_level_eq(x_2, x_26); +lean_dec(x_26); +if (x_28 == 0) +{ +lean_object* x_29; +x_29 = lean_box(0); +x_13 = x_29; +goto block_20; +} +else +{ +lean_dec(x_2); +return x_1; +} +} +else +{ +lean_dec(x_26); +lean_dec(x_2); +return x_1; +} +} +else +{ +lean_object* x_30; +x_30 = lean_box(0); +x_13 = x_30; +goto block_20; +} +} +else +{ +lean_dec(x_2); +return x_1; +} +} +else +{ +lean_dec(x_1); +return x_2; +} +} +else +{ +lean_dec(x_2); +return x_1; +} +} +} +} +lean_object* l_Lean_mkLevelIMax_x27(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; +x_3 = l_Lean_Level_isNeverZero(x_2); +if (x_3 == 0) +{ +uint8_t x_4; +x_4 = l_Lean_Level_isZero(x_2); +if (x_4 == 0) +{ +uint8_t x_5; +x_5 = l_Lean_Level_isZero(x_1); +if (x_5 == 0) +{ +uint8_t x_6; +x_6 = lean_level_eq(x_1, x_2); +if (x_6 == 0) +{ +lean_object* x_7; +x_7 = l_Lean_mkLevelIMax(x_1, x_2); +return x_7; +} +else +{ +lean_dec(x_2); +return x_1; +} +} +else +{ +lean_dec(x_1); +return x_2; +} +} +else +{ +lean_dec(x_1); +return x_2; +} +} +else +{ +lean_object* x_8; +x_8 = l_Lean_mkLevelMax_x27(x_1, x_2); +return x_8; +} +} +} lean_object* l_Lean_Level_updateSucc___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -5871,7 +6160,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Level_mkData___closed__2; x_2 = l_Lean_Level_updateSucc_x21___closed__1; -x_3 = lean_unsigned_to_nat(434u); +x_3 = lean_unsigned_to_nat(464u); x_4 = lean_unsigned_to_nat(18u); x_5 = l_Lean_Level_updateSucc_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -5981,7 +6270,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Level_mkData___closed__2; x_2 = l_Lean_Level_updateMax_x21___closed__1; -x_3 = lean_unsigned_to_nat(443u); +x_3 = lean_unsigned_to_nat(473u); x_4 = lean_unsigned_to_nat(21u); x_5 = l_Lean_Level_updateMax_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -6095,7 +6384,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Level_mkData___closed__2; x_2 = l_Lean_Level_updateIMax_x21___closed__1; -x_3 = lean_unsigned_to_nat(452u); +x_3 = lean_unsigned_to_nat(482u); x_4 = lean_unsigned_to_nat(22u); x_5 = l_Lean_Level_updateIMax_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -6223,7 +6512,7 @@ x_5 = lean_ctor_get(x_1, 0); lean_inc(x_5); lean_dec(x_1); x_6 = l_Lean_Level_mkNaryMax(x_3); -x_7 = l_Lean_mkLevelMax(x_5, x_6); +x_7 = l_Lean_mkLevelMax_x27(x_5, x_6); return x_7; } } diff --git a/stage0/stdlib/Lean/Message.c b/stage0/stdlib/Lean/Message.c index 4f0f37ed24..5595e8ac72 100644 --- a/stage0/stdlib/Lean/Message.c +++ b/stage0/stdlib/Lean/Message.c @@ -86,7 +86,6 @@ extern lean_object* l_Std_PersistentArray_empty___closed__1; extern lean_object* l_Lean_Lean_Data_Format___instance__6___rarg___closed__1; lean_object* l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__5; lean_object* l_Lean_MessageData_nil; -extern lean_object* l_myMacro____x40_Init_Tactics___hyg_508____closed__4; lean_object* l_Lean___kind_term____x40_Lean_Message___hyg_1842____closed__9; lean_object* l_Lean_Lean_Message___instance__22(lean_object*); lean_object* l_Lean_MessageData_Lean_Message___instance__4(lean_object*); @@ -118,6 +117,7 @@ lean_object* l_Lean_MessageData_Lean_Message___instance__6(lean_object*); lean_object* l_Lean___kind_term____x40_Lean_Message___hyg_1842____closed__4; lean_object* l_Lean_addMessageContextFull___rarg___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMessageContextFull___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__13; lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Lean_KernelException_toMessageData___closed__22; extern lean_object* l___private_Init_Util_0__mkPanicMessage___closed__3; @@ -357,7 +357,6 @@ lean_object* l_Lean_addMessageContextFull___rarg___lambda__1(lean_object*, lean_ uint8_t l_Std_PersistentArray_anyMAux___at_Lean_MessageLog_hasErrors___spec__2(lean_object*); lean_object* l_Lean_MessageData_Lean_Message___instance__9(lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_MessageData_formatAux___spec__2(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); -lean_object* l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__10; lean_object* l___private_Lean_Message_0__Lean_KernelException_mkCtx(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lean_Message___instance__25___rarg(lean_object*, lean_object*); lean_object* l_Lean_MessageData_joinSep_match__1(lean_object*); @@ -7712,37 +7711,27 @@ return x_1; static lean_object* _init_l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__3() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_empty___closed__1; -x_2 = l_myMacro____x40_Init_Tactics___hyg_508____closed__4; -x_3 = lean_array_push(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__4() { -_start: -{ lean_object* x_1; x_1 = lean_mk_string("MessageData"); return x_1; } } -static lean_object* _init_l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__5() { +static lean_object* _init_l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__4; +x_1 = l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__3; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__6() { +static lean_object* _init_l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__4; +x_1 = l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__3; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__5; +x_3 = l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__4; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -7750,12 +7739,22 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__7() { +static lean_object* _init_l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__4; +x_2 = l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_myMacro____x40_Init_Notation___hyg_38____closed__2; +x_2 = l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__3; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -7764,9 +7763,11 @@ static lean_object* _init_l_Lean_myMacro____x40_Lean_Message___hyg_1881____close _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_myMacro____x40_Init_Notation___hyg_38____closed__2; -x_2 = l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__4; -x_3 = lean_name_mk_string(x_1, x_2); +x_1 = lean_box(0); +x_2 = l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__7; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); return x_3; } } @@ -7776,18 +7777,6 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__8; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; -} -} -static lean_object* _init_l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__10() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__9; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); @@ -7860,17 +7849,17 @@ lean_inc(x_23); lean_dec(x_2); x_24 = l_Array_empty___closed__1; x_25 = lean_array_push(x_24, x_21); -x_26 = l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__7; +x_26 = l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__6; x_27 = l_Lean_addMacroScope(x_23, x_26, x_22); x_28 = l_Lean_Init_Prelude___instance__72___closed__1; -x_29 = l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__6; -x_30 = l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__10; +x_29 = l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__5; +x_30 = l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__9; x_31 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_31, 0, x_28); lean_ctor_set(x_31, 1, x_29); lean_ctor_set(x_31, 2, x_27); lean_ctor_set(x_31, 3, x_30); -x_32 = l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__3; +x_32 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_33 = lean_array_push(x_32, x_31); x_34 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_43____closed__4; x_35 = lean_alloc_ctor(1, 2, 0); @@ -7911,17 +7900,17 @@ lean_inc(x_50); lean_dec(x_2); x_51 = l_Array_empty___closed__1; x_52 = lean_array_push(x_51, x_47); -x_53 = l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__7; +x_53 = l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__6; x_54 = l_Lean_addMacroScope(x_50, x_53, x_49); x_55 = l_Lean_Init_Prelude___instance__72___closed__1; -x_56 = l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__6; -x_57 = l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__10; +x_56 = l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__5; +x_57 = l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__9; x_58 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_58, 0, x_55); lean_ctor_set(x_58, 1, x_56); lean_ctor_set(x_58, 2, x_54); lean_ctor_set(x_58, 3, x_57); -x_59 = l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__3; +x_59 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_60 = lean_array_push(x_59, x_58); x_61 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_43____closed__4; x_62 = lean_alloc_ctor(1, 2, 0); @@ -8274,8 +8263,6 @@ l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__8 = _init_l_Lean_myMacr lean_mark_persistent(l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__8); l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__9 = _init_l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__9(); lean_mark_persistent(l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__9); -l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__10 = _init_l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__10(); -lean_mark_persistent(l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__10); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Meta/InferType.c b/stage0/stdlib/Lean/Meta/InferType.c index 15c084c980..763322a547 100644 --- a/stage0/stdlib/Lean/Meta/InferType.c +++ b/stage0/stdlib/Lean/Meta/InferType.c @@ -91,7 +91,6 @@ lean_object* l___private_Lean_Meta_InferType_0__Lean_Meta_isAlwaysZero_match__1( lean_object* l___private_Lean_Meta_InferType_0__Lean_Meta_inferMVarType_match__1(lean_object*); lean_object* l___private_Lean_Meta_InferType_0__Lean_Meta_isArrowProp_match__1(lean_object*); lean_object* l_Std_PersistentHashMap_findAux___at___private_Lean_Meta_InferType_0__Lean_Meta_checkInferTypeCache___spec__2(lean_object*, size_t, lean_object*); -lean_object* l_Lean_mkLevelIMax(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_InferType_0__Lean_Meta_inferAppType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l_Lean_mkProj(lean_object*, lean_object*, lean_object*); @@ -115,6 +114,7 @@ lean_object* l_Std_PersistentHashMap_insertAtCollisionNodeAux___at___private_Lea lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_whnf___at___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux_process___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_InferType_0__Lean_Meta_isTypeImp(lean_object*); +lean_object* l_Lean_mkLevelIMax_x27(lean_object*, lean_object*); lean_object* lean_instantiate_type_lparams(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_InferType_0__Lean_Meta_isArrowType_match__1(lean_object*); lean_object* l_Lean_Meta_isProofQuick_match__1(lean_object*); @@ -2924,7 +2924,7 @@ lean_inc(x_18); x_19 = lean_ctor_get(x_17, 1); lean_inc(x_19); lean_dec(x_17); -x_20 = l_Lean_mkLevelIMax(x_18, x_4); +x_20 = l_Lean_mkLevelIMax_x27(x_18, x_4); x_2 = x_12; x_4 = x_20; x_9 = x_19; diff --git a/stage0/stdlib/Lean/Meta/LevelDefEq.c b/stage0/stdlib/Lean/Meta/LevelDefEq.c index 1fdca5a66f..994ac313cc 100644 --- a/stage0/stdlib/Lean/Meta/LevelDefEq.c +++ b/stage0/stdlib/Lean/Meta/LevelDefEq.c @@ -145,7 +145,7 @@ lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_solve(lean_object*, l extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_869____closed__1; lean_object* l_Lean_Meta_withoutPostponingUniverseConstraintsImp___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_solveSelfMax(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_mkLevelMax(lean_object*, lean_object*); +lean_object* l_Lean_mkLevelMax_x27(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_decAux_x3f_match__4(lean_object*); lean_object* l_Lean_Meta_isLevelDefEqAux_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_mkMaxArgsDiff___boxed(lean_object*, lean_object*, lean_object*); @@ -295,7 +295,7 @@ lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_processPostponedStep_ lean_object* l_Std_PersistentArray_forInAux___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_processPostponedStep___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_level_eq(lean_object*, lean_object*); lean_object* l_Lean_Meta_isLevelDefEq___rarg___closed__1; -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_LevelDefEq___hyg_2188_(lean_object*); +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_LevelDefEq___hyg_2209_(lean_object*); extern lean_object* l_Lean_Meta_Lean_Meta_Basic___instance__10; lean_object* l_Lean_Meta_isExprDefEqGuarded___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isLevelDefEqAux_match__1(lean_object*); @@ -309,7 +309,7 @@ lean_object* l_ReaderT_bind___at_Lean_Meta_Lean_Meta_Basic___instance__8___spec_ lean_object* l_Lean_Meta_isLevelDefEq___rarg___closed__2; lean_object* l_Lean_Meta_isDefEqGuarded___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_MetavarContext_MkBinding_mkBinding___closed__1; -lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_solve_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_solve_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_decLevel_x3f(lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_postponedToMessageData___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); @@ -875,7 +875,7 @@ if (x_32 == 0) { lean_object* x_33; lean_object* x_34; x_33 = lean_ctor_get(x_23, 0); -x_34 = l_Lean_mkLevelMax(x_21, x_33); +x_34 = l_Lean_mkLevelMax_x27(x_21, x_33); lean_ctor_set(x_23, 0, x_34); return x_22; } @@ -885,7 +885,7 @@ lean_object* x_35; lean_object* x_36; lean_object* x_37; x_35 = lean_ctor_get(x_23, 0); lean_inc(x_35); lean_dec(x_23); -x_36 = l_Lean_mkLevelMax(x_21, x_35); +x_36 = l_Lean_mkLevelMax_x27(x_21, x_35); x_37 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_37, 0, x_36); lean_ctor_set(x_22, 0, x_37); @@ -907,7 +907,7 @@ if (lean_is_exclusive(x_23)) { lean_dec_ref(x_23); x_40 = lean_box(0); } -x_41 = l_Lean_mkLevelMax(x_21, x_39); +x_41 = l_Lean_mkLevelMax_x27(x_21, x_39); if (lean_is_scalar(x_40)) { x_42 = lean_alloc_ctor(1, 1, 0); } else { @@ -1067,7 +1067,7 @@ if (x_74 == 0) { lean_object* x_75; lean_object* x_76; x_75 = lean_ctor_get(x_65, 0); -x_76 = l_Lean_mkLevelMax(x_63, x_75); +x_76 = l_Lean_mkLevelMax_x27(x_63, x_75); lean_ctor_set(x_65, 0, x_76); return x_64; } @@ -1077,7 +1077,7 @@ lean_object* x_77; lean_object* x_78; lean_object* x_79; x_77 = lean_ctor_get(x_65, 0); lean_inc(x_77); lean_dec(x_65); -x_78 = l_Lean_mkLevelMax(x_63, x_77); +x_78 = l_Lean_mkLevelMax_x27(x_63, x_77); x_79 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_79, 0, x_78); lean_ctor_set(x_64, 0, x_79); @@ -1099,7 +1099,7 @@ if (lean_is_exclusive(x_65)) { lean_dec_ref(x_65); x_82 = lean_box(0); } -x_83 = l_Lean_mkLevelMax(x_63, x_81); +x_83 = l_Lean_mkLevelMax_x27(x_63, x_81); if (lean_is_scalar(x_82)) { x_84 = lean_alloc_ctor(1, 1, 0); } else { @@ -2104,7 +2104,7 @@ lean_dec(x_8); if (x_9 == 0) { lean_object* x_10; -x_10 = l_Lean_mkLevelMax(x_3, x_2); +x_10 = l_Lean_mkLevelMax_x27(x_3, x_2); return x_10; } else @@ -2116,7 +2116,7 @@ return x_3; default: { lean_object* x_11; -x_11 = l_Lean_mkLevelMax(x_3, x_2); +x_11 = l_Lean_mkLevelMax_x27(x_3, x_2); return x_11; } } @@ -2289,38 +2289,38 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_s return x_2; } } -lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_solve_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_solve_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { switch (lean_obj_tag(x_1)) { case 0: { -lean_dec(x_6); +lean_dec(x_7); lean_dec(x_3); switch (lean_obj_tag(x_2)) { -case 2: +case 1: { -uint64_t x_8; lean_object* x_9; lean_object* x_10; uint64_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -lean_dec(x_7); +uint64_t x_9; lean_object* x_10; uint64_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_dec(x_8); lean_dec(x_5); -x_8 = lean_ctor_get_uint64(x_1, 0); +lean_dec(x_4); +x_9 = lean_ctor_get_uint64(x_1, 0); lean_dec(x_1); -x_9 = lean_ctor_get(x_2, 0); -lean_inc(x_9); -x_10 = lean_ctor_get(x_2, 1); +x_10 = lean_ctor_get(x_2, 0); lean_inc(x_10); -x_11 = lean_ctor_get_uint64(x_2, sizeof(void*)*2); +x_11 = lean_ctor_get_uint64(x_2, sizeof(void*)*1); lean_dec(x_2); -x_12 = lean_box_uint64(x_8); +x_12 = lean_box_uint64(x_9); x_13 = lean_box_uint64(x_11); -x_14 = lean_apply_4(x_4, x_12, x_9, x_10, x_13); +x_14 = lean_apply_3(x_6, x_12, x_10, x_13); return x_14; } -case 3: +case 2: { uint64_t x_15; lean_object* x_16; lean_object* x_17; uint64_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -lean_dec(x_7); -lean_dec(x_4); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); x_15 = lean_ctor_get_uint64(x_1, 0); lean_dec(x_1); x_16 = lean_ctor_get(x_2, 0); @@ -2331,58 +2331,81 @@ x_18 = lean_ctor_get_uint64(x_2, sizeof(void*)*2); lean_dec(x_2); x_19 = lean_box_uint64(x_15); x_20 = lean_box_uint64(x_18); -x_21 = lean_apply_4(x_5, x_19, x_16, x_17, x_20); +x_21 = lean_apply_4(x_4, x_19, x_16, x_17, x_20); return x_21; } +case 3: +{ +uint64_t x_22; lean_object* x_23; lean_object* x_24; uint64_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_4); +x_22 = lean_ctor_get_uint64(x_1, 0); +lean_dec(x_1); +x_23 = lean_ctor_get(x_2, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_2, 1); +lean_inc(x_24); +x_25 = lean_ctor_get_uint64(x_2, sizeof(void*)*2); +lean_dec(x_2); +x_26 = lean_box_uint64(x_22); +x_27 = lean_box_uint64(x_25); +x_28 = lean_apply_4(x_5, x_26, x_23, x_24, x_27); +return x_28; +} default: { -lean_object* x_22; +lean_object* x_29; +lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_22 = lean_apply_2(x_7, x_1, x_2); -return x_22; +x_29 = lean_apply_2(x_8, x_1, x_2); +return x_29; } } } case 1: { -lean_object* x_23; uint64_t x_24; lean_object* x_25; lean_object* x_26; -lean_dec(x_7); +lean_object* x_30; uint64_t x_31; lean_object* x_32; lean_object* x_33; +lean_dec(x_8); +lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_23 = lean_ctor_get(x_1, 0); -lean_inc(x_23); -x_24 = lean_ctor_get_uint64(x_1, sizeof(void*)*1); +x_30 = lean_ctor_get(x_1, 0); +lean_inc(x_30); +x_31 = lean_ctor_get_uint64(x_1, sizeof(void*)*1); lean_dec(x_1); -x_25 = lean_box_uint64(x_24); -x_26 = lean_apply_3(x_6, x_23, x_25, x_2); -return x_26; +x_32 = lean_box_uint64(x_31); +x_33 = lean_apply_3(x_7, x_30, x_32, x_2); +return x_33; } case 5: { -lean_object* x_27; uint64_t x_28; lean_object* x_29; lean_object* x_30; +lean_object* x_34; uint64_t x_35; lean_object* x_36; lean_object* x_37; +lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_27 = lean_ctor_get(x_1, 0); -lean_inc(x_27); -x_28 = lean_ctor_get_uint64(x_1, sizeof(void*)*1); +x_34 = lean_ctor_get(x_1, 0); +lean_inc(x_34); +x_35 = lean_ctor_get_uint64(x_1, sizeof(void*)*1); lean_dec(x_1); -x_29 = lean_box_uint64(x_28); -x_30 = lean_apply_3(x_3, x_27, x_29, x_2); -return x_30; +x_36 = lean_box_uint64(x_35); +x_37 = lean_apply_3(x_3, x_34, x_36, x_2); +return x_37; } default: { -lean_object* x_31; +lean_object* x_38; +lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_31 = lean_apply_2(x_7, x_1, x_2); -return x_31; +x_38 = lean_apply_2(x_8, x_1, x_2); +return x_38; } } } @@ -2391,7 +2414,7 @@ lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_solve_match__2(lean_o _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_solve_match__2___rarg), 7, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_solve_match__2___rarg), 8, 0); return x_2; } } @@ -2450,604 +2473,615 @@ case 0: { lean_dec(x_1); switch (lean_obj_tag(x_2)) { +case 1: +{ +uint8_t x_8; lean_object* x_9; lean_object* x_10; +lean_dec(x_2); +x_8 = 0; +x_9 = lean_box(x_8); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_7); +return x_10; +} case 2: { -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_8 = lean_ctor_get(x_2, 0); -lean_inc(x_8); -x_9 = lean_ctor_get(x_2, 1); -lean_inc(x_9); -lean_dec(x_2); -x_10 = l_Lean_levelZero; -x_11 = l_Lean_Meta_isLevelDefEqAux(x_10, x_8, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_11) == 0) -{ -lean_object* x_12; uint8_t x_13; -x_12 = lean_ctor_get(x_11, 0); +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = lean_ctor_get(x_2, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_2, 1); lean_inc(x_12); -x_13 = lean_unbox(x_12); -if (x_13 == 0) +lean_dec(x_2); +x_13 = l_Lean_levelZero; +x_14 = l_Lean_Meta_isLevelDefEqAux(x_13, x_11, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_14) == 0) { -uint8_t x_14; -lean_dec(x_9); -x_14 = !lean_is_exclusive(x_11); -if (x_14 == 0) +lean_object* x_15; uint8_t x_16; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_unbox(x_15); +if (x_16 == 0) { -lean_object* x_15; uint8_t x_16; uint8_t x_17; lean_object* x_18; -x_15 = lean_ctor_get(x_11, 0); +uint8_t x_17; +lean_dec(x_12); +x_17 = !lean_is_exclusive(x_14); +if (x_17 == 0) +{ +lean_object* x_18; uint8_t x_19; uint8_t x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_14, 0); +lean_dec(x_18); +x_19 = lean_unbox(x_15); lean_dec(x_15); -x_16 = lean_unbox(x_12); -lean_dec(x_12); -x_17 = l_Bool_toLBool(x_16); -x_18 = lean_box(x_17); -lean_ctor_set(x_11, 0, x_18); -return x_11; +x_20 = l_Bool_toLBool(x_19); +x_21 = lean_box(x_20); +lean_ctor_set(x_14, 0, x_21); +return x_14; } else { -lean_object* x_19; uint8_t x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; -x_19 = lean_ctor_get(x_11, 1); -lean_inc(x_19); -lean_dec(x_11); -x_20 = lean_unbox(x_12); -lean_dec(x_12); -x_21 = l_Bool_toLBool(x_20); -x_22 = lean_box(x_21); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_19); -return x_23; +lean_object* x_22; uint8_t x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; +x_22 = lean_ctor_get(x_14, 1); +lean_inc(x_22); +lean_dec(x_14); +x_23 = lean_unbox(x_15); +lean_dec(x_15); +x_24 = l_Bool_toLBool(x_23); +x_25 = lean_box(x_24); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_22); +return x_26; } } else { -lean_object* x_24; lean_object* x_25; -lean_dec(x_12); -x_24 = lean_ctor_get(x_11, 1); -lean_inc(x_24); -lean_dec(x_11); -x_25 = l_Lean_Meta_isLevelDefEqAux(x_10, x_9, x_3, x_4, x_5, x_6, x_24); -if (lean_obj_tag(x_25) == 0) +lean_object* x_27; lean_object* x_28; +lean_dec(x_15); +x_27 = lean_ctor_get(x_14, 1); +lean_inc(x_27); +lean_dec(x_14); +x_28 = l_Lean_Meta_isLevelDefEqAux(x_13, x_12, x_3, x_4, x_5, x_6, x_27); +if (lean_obj_tag(x_28) == 0) { -uint8_t x_26; -x_26 = !lean_is_exclusive(x_25); -if (x_26 == 0) +uint8_t x_29; +x_29 = !lean_is_exclusive(x_28); +if (x_29 == 0) { -lean_object* x_27; uint8_t x_28; uint8_t x_29; lean_object* x_30; -x_27 = lean_ctor_get(x_25, 0); -x_28 = lean_unbox(x_27); -lean_dec(x_27); -x_29 = l_Bool_toLBool(x_28); -x_30 = lean_box(x_29); -lean_ctor_set(x_25, 0, x_30); -return x_25; +lean_object* x_30; uint8_t x_31; uint8_t x_32; lean_object* x_33; +x_30 = lean_ctor_get(x_28, 0); +x_31 = lean_unbox(x_30); +lean_dec(x_30); +x_32 = l_Bool_toLBool(x_31); +x_33 = lean_box(x_32); +lean_ctor_set(x_28, 0, x_33); +return x_28; } else { -lean_object* x_31; lean_object* x_32; uint8_t x_33; uint8_t x_34; lean_object* x_35; lean_object* x_36; -x_31 = lean_ctor_get(x_25, 0); -x_32 = lean_ctor_get(x_25, 1); -lean_inc(x_32); -lean_inc(x_31); -lean_dec(x_25); -x_33 = lean_unbox(x_31); -lean_dec(x_31); -x_34 = l_Bool_toLBool(x_33); -x_35 = lean_box(x_34); -x_36 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_32); -return x_36; +lean_object* x_34; lean_object* x_35; uint8_t x_36; uint8_t x_37; lean_object* x_38; lean_object* x_39; +x_34 = lean_ctor_get(x_28, 0); +x_35 = lean_ctor_get(x_28, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_28); +x_36 = lean_unbox(x_34); +lean_dec(x_34); +x_37 = l_Bool_toLBool(x_36); +x_38 = lean_box(x_37); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_35); +return x_39; } } else { -uint8_t x_37; -x_37 = !lean_is_exclusive(x_25); -if (x_37 == 0) +uint8_t x_40; +x_40 = !lean_is_exclusive(x_28); +if (x_40 == 0) { -return x_25; +return x_28; } else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_25, 0); -x_39 = lean_ctor_get(x_25, 1); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_25); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -return x_40; -} -} -} -} -else -{ -uint8_t x_41; -lean_dec(x_9); -x_41 = !lean_is_exclusive(x_11); -if (x_41 == 0) -{ -return x_11; -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_11, 0); -x_43 = lean_ctor_get(x_11, 1); -lean_inc(x_43); +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_28, 0); +x_42 = lean_ctor_get(x_28, 1); lean_inc(x_42); -lean_dec(x_11); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -return x_44; +lean_inc(x_41); +lean_dec(x_28); +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +return x_43; +} +} +} +} +else +{ +uint8_t x_44; +lean_dec(x_12); +x_44 = !lean_is_exclusive(x_14); +if (x_44 == 0) +{ +return x_14; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_14, 0); +x_46 = lean_ctor_get(x_14, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_14); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; } } } case 3: { -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_2, 1); -lean_inc(x_45); +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_2, 1); +lean_inc(x_48); lean_dec(x_2); -x_46 = l_Lean_levelZero; -x_47 = l_Lean_Meta_isLevelDefEqAux(x_46, x_45, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_47) == 0) +x_49 = l_Lean_levelZero; +x_50 = l_Lean_Meta_isLevelDefEqAux(x_49, x_48, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_50) == 0) { -uint8_t x_48; -x_48 = !lean_is_exclusive(x_47); -if (x_48 == 0) +uint8_t x_51; +x_51 = !lean_is_exclusive(x_50); +if (x_51 == 0) { -lean_object* x_49; uint8_t x_50; uint8_t x_51; lean_object* x_52; -x_49 = lean_ctor_get(x_47, 0); -x_50 = lean_unbox(x_49); -lean_dec(x_49); -x_51 = l_Bool_toLBool(x_50); -x_52 = lean_box(x_51); -lean_ctor_set(x_47, 0, x_52); -return x_47; +lean_object* x_52; uint8_t x_53; uint8_t x_54; lean_object* x_55; +x_52 = lean_ctor_get(x_50, 0); +x_53 = lean_unbox(x_52); +lean_dec(x_52); +x_54 = l_Bool_toLBool(x_53); +x_55 = lean_box(x_54); +lean_ctor_set(x_50, 0, x_55); +return x_50; } else { -lean_object* x_53; lean_object* x_54; uint8_t x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; -x_53 = lean_ctor_get(x_47, 0); -x_54 = lean_ctor_get(x_47, 1); -lean_inc(x_54); -lean_inc(x_53); -lean_dec(x_47); -x_55 = lean_unbox(x_53); -lean_dec(x_53); -x_56 = l_Bool_toLBool(x_55); -x_57 = lean_box(x_56); -x_58 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_58, 0, x_57); -lean_ctor_set(x_58, 1, x_54); -return x_58; +lean_object* x_56; lean_object* x_57; uint8_t x_58; uint8_t x_59; lean_object* x_60; lean_object* x_61; +x_56 = lean_ctor_get(x_50, 0); +x_57 = lean_ctor_get(x_50, 1); +lean_inc(x_57); +lean_inc(x_56); +lean_dec(x_50); +x_58 = lean_unbox(x_56); +lean_dec(x_56); +x_59 = l_Bool_toLBool(x_58); +x_60 = lean_box(x_59); +x_61 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_57); +return x_61; } } else { -uint8_t x_59; -x_59 = !lean_is_exclusive(x_47); -if (x_59 == 0) +uint8_t x_62; +x_62 = !lean_is_exclusive(x_50); +if (x_62 == 0) { -return x_47; +return x_50; } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_47, 0); -x_61 = lean_ctor_get(x_47, 1); -lean_inc(x_61); -lean_inc(x_60); -lean_dec(x_47); -x_62 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_62, 0, x_60); -lean_ctor_set(x_62, 1, x_61); -return x_62; +lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_50, 0); +x_64 = lean_ctor_get(x_50, 1); +lean_inc(x_64); +lean_inc(x_63); +lean_dec(x_50); +x_65 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_65, 0, x_63); +lean_ctor_set(x_65, 1, x_64); +return x_65; } } } default: { -uint8_t x_63; lean_object* x_64; lean_object* x_65; +uint8_t x_66; lean_object* x_67; lean_object* x_68; lean_dec(x_2); -x_63 = 2; -x_64 = lean_box(x_63); -x_65 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_65, 0, x_64); -lean_ctor_set(x_65, 1, x_7); -return x_65; +x_66 = 2; +x_67 = lean_box(x_66); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_7); +return x_68; } } } case 1: { -lean_object* x_66; lean_object* x_67; -x_66 = lean_ctor_get(x_1, 0); -lean_inc(x_66); +lean_object* x_69; lean_object* x_70; +x_69 = lean_ctor_get(x_1, 0); +lean_inc(x_69); lean_dec(x_1); -x_67 = l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_decLevelImp(x_2, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_67) == 0) +x_70 = l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_decLevelImp(x_2, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_70) == 0) { -lean_object* x_68; -x_68 = lean_ctor_get(x_67, 0); -lean_inc(x_68); -if (lean_obj_tag(x_68) == 0) +lean_object* x_71; +x_71 = lean_ctor_get(x_70, 0); +lean_inc(x_71); +if (lean_obj_tag(x_71) == 0) { -uint8_t x_69; -lean_dec(x_66); -x_69 = !lean_is_exclusive(x_67); -if (x_69 == 0) +uint8_t x_72; +lean_dec(x_69); +x_72 = !lean_is_exclusive(x_70); +if (x_72 == 0) { -lean_object* x_70; uint8_t x_71; lean_object* x_72; -x_70 = lean_ctor_get(x_67, 0); -lean_dec(x_70); -x_71 = 2; -x_72 = lean_box(x_71); -lean_ctor_set(x_67, 0, x_72); -return x_67; -} -else -{ -lean_object* x_73; uint8_t x_74; lean_object* x_75; lean_object* x_76; -x_73 = lean_ctor_get(x_67, 1); -lean_inc(x_73); -lean_dec(x_67); +lean_object* x_73; uint8_t x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_70, 0); +lean_dec(x_73); x_74 = 2; x_75 = lean_box(x_74); -x_76 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_76, 0, x_75); -lean_ctor_set(x_76, 1, x_73); -return x_76; -} +lean_ctor_set(x_70, 0, x_75); +return x_70; } else { -lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_77 = lean_ctor_get(x_67, 1); -lean_inc(x_77); -lean_dec(x_67); -x_78 = lean_ctor_get(x_68, 0); -lean_inc(x_78); -lean_dec(x_68); -x_79 = l_Lean_Meta_isLevelDefEqAux(x_66, x_78, x_3, x_4, x_5, x_6, x_77); -if (lean_obj_tag(x_79) == 0) -{ -uint8_t x_80; -x_80 = !lean_is_exclusive(x_79); -if (x_80 == 0) -{ -lean_object* x_81; uint8_t x_82; uint8_t x_83; lean_object* x_84; -x_81 = lean_ctor_get(x_79, 0); -x_82 = lean_unbox(x_81); -lean_dec(x_81); -x_83 = l_Bool_toLBool(x_82); -x_84 = lean_box(x_83); -lean_ctor_set(x_79, 0, x_84); +lean_object* x_76; uint8_t x_77; lean_object* x_78; lean_object* x_79; +x_76 = lean_ctor_get(x_70, 1); +lean_inc(x_76); +lean_dec(x_70); +x_77 = 2; +x_78 = lean_box(x_77); +x_79 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_79, 0, x_78); +lean_ctor_set(x_79, 1, x_76); return x_79; } +} else { -lean_object* x_85; lean_object* x_86; uint8_t x_87; uint8_t x_88; lean_object* x_89; lean_object* x_90; -x_85 = lean_ctor_get(x_79, 0); -x_86 = lean_ctor_get(x_79, 1); -lean_inc(x_86); -lean_inc(x_85); -lean_dec(x_79); -x_87 = lean_unbox(x_85); -lean_dec(x_85); -x_88 = l_Bool_toLBool(x_87); -x_89 = lean_box(x_88); -x_90 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_90, 0, x_89); -lean_ctor_set(x_90, 1, x_86); -return x_90; +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_ctor_get(x_70, 1); +lean_inc(x_80); +lean_dec(x_70); +x_81 = lean_ctor_get(x_71, 0); +lean_inc(x_81); +lean_dec(x_71); +x_82 = l_Lean_Meta_isLevelDefEqAux(x_69, x_81, x_3, x_4, x_5, x_6, x_80); +if (lean_obj_tag(x_82) == 0) +{ +uint8_t x_83; +x_83 = !lean_is_exclusive(x_82); +if (x_83 == 0) +{ +lean_object* x_84; uint8_t x_85; uint8_t x_86; lean_object* x_87; +x_84 = lean_ctor_get(x_82, 0); +x_85 = lean_unbox(x_84); +lean_dec(x_84); +x_86 = l_Bool_toLBool(x_85); +x_87 = lean_box(x_86); +lean_ctor_set(x_82, 0, x_87); +return x_82; +} +else +{ +lean_object* x_88; lean_object* x_89; uint8_t x_90; uint8_t x_91; lean_object* x_92; lean_object* x_93; +x_88 = lean_ctor_get(x_82, 0); +x_89 = lean_ctor_get(x_82, 1); +lean_inc(x_89); +lean_inc(x_88); +lean_dec(x_82); +x_90 = lean_unbox(x_88); +lean_dec(x_88); +x_91 = l_Bool_toLBool(x_90); +x_92 = lean_box(x_91); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_92); +lean_ctor_set(x_93, 1, x_89); +return x_93; } } else { -uint8_t x_91; -x_91 = !lean_is_exclusive(x_79); -if (x_91 == 0) +uint8_t x_94; +x_94 = !lean_is_exclusive(x_82); +if (x_94 == 0) { -return x_79; +return x_82; } else { -lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_92 = lean_ctor_get(x_79, 0); -x_93 = lean_ctor_get(x_79, 1); -lean_inc(x_93); -lean_inc(x_92); -lean_dec(x_79); -x_94 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_94, 0, x_92); -lean_ctor_set(x_94, 1, x_93); -return x_94; -} -} -} -} -else -{ -uint8_t x_95; -lean_dec(x_66); -x_95 = !lean_is_exclusive(x_67); -if (x_95 == 0) -{ -return x_67; -} -else -{ -lean_object* x_96; lean_object* x_97; lean_object* x_98; -x_96 = lean_ctor_get(x_67, 0); -x_97 = lean_ctor_get(x_67, 1); -lean_inc(x_97); +lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_95 = lean_ctor_get(x_82, 0); +x_96 = lean_ctor_get(x_82, 1); lean_inc(x_96); -lean_dec(x_67); -x_98 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_98, 0, x_96); -lean_ctor_set(x_98, 1, x_97); -return x_98; +lean_inc(x_95); +lean_dec(x_82); +x_97 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_97, 0, x_95); +lean_ctor_set(x_97, 1, x_96); +return x_97; +} +} +} +} +else +{ +uint8_t x_98; +lean_dec(x_69); +x_98 = !lean_is_exclusive(x_70); +if (x_98 == 0) +{ +return x_70; +} +else +{ +lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_99 = lean_ctor_get(x_70, 0); +x_100 = lean_ctor_get(x_70, 1); +lean_inc(x_100); +lean_inc(x_99); +lean_dec(x_70); +x_101 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_101, 0, x_99); +lean_ctor_set(x_101, 1, x_100); +return x_101; } } } case 5: { -lean_object* x_99; lean_object* x_100; -x_99 = lean_ctor_get(x_1, 0); -lean_inc(x_99); -x_100 = l_Lean_Meta_isReadOnlyLevelMVar___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_decAux_x3f___spec__1(x_99, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_100) == 0) +lean_object* x_102; lean_object* x_103; +x_102 = lean_ctor_get(x_1, 0); +lean_inc(x_102); +x_103 = l_Lean_Meta_isReadOnlyLevelMVar___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_decAux_x3f___spec__1(x_102, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_103) == 0) { -lean_object* x_101; uint8_t x_102; -x_101 = lean_ctor_get(x_100, 0); -lean_inc(x_101); -x_102 = lean_unbox(x_101); -lean_dec(x_101); -if (x_102 == 0) +lean_object* x_104; uint8_t x_105; +x_104 = lean_ctor_get(x_103, 0); +lean_inc(x_104); +x_105 = lean_unbox(x_104); +lean_dec(x_104); +if (x_105 == 0) { -uint8_t x_103; -x_103 = !lean_is_exclusive(x_100); -if (x_103 == 0) -{ -lean_object* x_104; lean_object* x_105; uint8_t x_106; -x_104 = lean_ctor_get(x_100, 1); -x_105 = lean_ctor_get(x_100, 0); -lean_dec(x_105); -x_106 = l_Lean_Level_occurs(x_1, x_2); +uint8_t x_106; +x_106 = !lean_is_exclusive(x_103); if (x_106 == 0) { lean_object* x_107; lean_object* x_108; uint8_t x_109; -lean_free_object(x_100); -x_107 = l_Lean_Level_mvarId_x21(x_1); -lean_dec(x_1); -x_108 = l_Lean_Meta_assignLevelMVar___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_decAux_x3f___spec__2(x_107, x_2, x_3, x_4, x_5, x_6, x_104); -x_109 = !lean_is_exclusive(x_108); +x_107 = lean_ctor_get(x_103, 1); +x_108 = lean_ctor_get(x_103, 0); +lean_dec(x_108); +x_109 = l_Lean_Level_occurs(x_1, x_2); if (x_109 == 0) { -lean_object* x_110; uint8_t x_111; lean_object* x_112; -x_110 = lean_ctor_get(x_108, 0); -lean_dec(x_110); -x_111 = 1; -x_112 = lean_box(x_111); -lean_ctor_set(x_108, 0, x_112); -return x_108; -} -else +lean_object* x_110; lean_object* x_111; uint8_t x_112; +lean_free_object(x_103); +x_110 = l_Lean_Level_mvarId_x21(x_1); +lean_dec(x_1); +x_111 = l_Lean_Meta_assignLevelMVar___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_decAux_x3f___spec__2(x_110, x_2, x_3, x_4, x_5, x_6, x_107); +x_112 = !lean_is_exclusive(x_111); +if (x_112 == 0) { -lean_object* x_113; uint8_t x_114; lean_object* x_115; lean_object* x_116; -x_113 = lean_ctor_get(x_108, 1); -lean_inc(x_113); -lean_dec(x_108); +lean_object* x_113; uint8_t x_114; lean_object* x_115; +x_113 = lean_ctor_get(x_111, 0); +lean_dec(x_113); x_114 = 1; x_115 = lean_box(x_114); -x_116 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_116, 0, x_115); -lean_ctor_set(x_116, 1, x_113); -return x_116; -} +lean_ctor_set(x_111, 0, x_115); +return x_111; } else { -uint8_t x_117; -x_117 = l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_strictOccursMax(x_1, x_2); -if (x_117 == 0) -{ -lean_object* x_118; lean_object* x_119; uint8_t x_120; -lean_free_object(x_100); -x_118 = l_Lean_Level_mvarId_x21(x_1); -lean_dec(x_1); -x_119 = l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_solveSelfMax(x_118, x_2, x_3, x_4, x_5, x_6, x_104); -x_120 = !lean_is_exclusive(x_119); -if (x_120 == 0) -{ -lean_object* x_121; uint8_t x_122; lean_object* x_123; -x_121 = lean_ctor_get(x_119, 0); -lean_dec(x_121); -x_122 = 1; -x_123 = lean_box(x_122); -lean_ctor_set(x_119, 0, x_123); +lean_object* x_116; uint8_t x_117; lean_object* x_118; lean_object* x_119; +x_116 = lean_ctor_get(x_111, 1); +lean_inc(x_116); +lean_dec(x_111); +x_117 = 1; +x_118 = lean_box(x_117); +x_119 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_119, 0, x_118); +lean_ctor_set(x_119, 1, x_116); return x_119; } +} else { -lean_object* x_124; uint8_t x_125; lean_object* x_126; lean_object* x_127; -x_124 = lean_ctor_get(x_119, 1); -lean_inc(x_124); -lean_dec(x_119); +uint8_t x_120; +x_120 = l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_strictOccursMax(x_1, x_2); +if (x_120 == 0) +{ +lean_object* x_121; lean_object* x_122; uint8_t x_123; +lean_free_object(x_103); +x_121 = l_Lean_Level_mvarId_x21(x_1); +lean_dec(x_1); +x_122 = l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_solveSelfMax(x_121, x_2, x_3, x_4, x_5, x_6, x_107); +x_123 = !lean_is_exclusive(x_122); +if (x_123 == 0) +{ +lean_object* x_124; uint8_t x_125; lean_object* x_126; +x_124 = lean_ctor_get(x_122, 0); +lean_dec(x_124); x_125 = 1; x_126 = lean_box(x_125); -x_127 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_127, 0, x_126); -lean_ctor_set(x_127, 1, x_124); -return x_127; -} +lean_ctor_set(x_122, 0, x_126); +return x_122; } else { -uint8_t x_128; lean_object* x_129; -lean_dec(x_2); -lean_dec(x_1); -x_128 = 2; +lean_object* x_127; uint8_t x_128; lean_object* x_129; lean_object* x_130; +x_127 = lean_ctor_get(x_122, 1); +lean_inc(x_127); +lean_dec(x_122); +x_128 = 1; x_129 = lean_box(x_128); -lean_ctor_set(x_100, 0, x_129); -return x_100; -} +x_130 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_130, 0, x_129); +lean_ctor_set(x_130, 1, x_127); +return x_130; } } else { -lean_object* x_130; uint8_t x_131; -x_130 = lean_ctor_get(x_100, 1); -lean_inc(x_130); -lean_dec(x_100); -x_131 = l_Lean_Level_occurs(x_1, x_2); -if (x_131 == 0) -{ -lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; uint8_t x_136; lean_object* x_137; lean_object* x_138; -x_132 = l_Lean_Level_mvarId_x21(x_1); -lean_dec(x_1); -x_133 = l_Lean_Meta_assignLevelMVar___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_decAux_x3f___spec__2(x_132, x_2, x_3, x_4, x_5, x_6, x_130); -x_134 = lean_ctor_get(x_133, 1); -lean_inc(x_134); -if (lean_is_exclusive(x_133)) { - lean_ctor_release(x_133, 0); - lean_ctor_release(x_133, 1); - x_135 = x_133; -} else { - lean_dec_ref(x_133); - x_135 = lean_box(0); -} -x_136 = 1; -x_137 = lean_box(x_136); -if (lean_is_scalar(x_135)) { - x_138 = lean_alloc_ctor(0, 2, 0); -} else { - x_138 = x_135; -} -lean_ctor_set(x_138, 0, x_137); -lean_ctor_set(x_138, 1, x_134); -return x_138; -} -else -{ -uint8_t x_139; -x_139 = l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_strictOccursMax(x_1, x_2); -if (x_139 == 0) -{ -lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; uint8_t x_144; lean_object* x_145; lean_object* x_146; -x_140 = l_Lean_Level_mvarId_x21(x_1); -lean_dec(x_1); -x_141 = l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_solveSelfMax(x_140, x_2, x_3, x_4, x_5, x_6, x_130); -x_142 = lean_ctor_get(x_141, 1); -lean_inc(x_142); -if (lean_is_exclusive(x_141)) { - lean_ctor_release(x_141, 0); - lean_ctor_release(x_141, 1); - x_143 = x_141; -} else { - lean_dec_ref(x_141); - x_143 = lean_box(0); -} -x_144 = 1; -x_145 = lean_box(x_144); -if (lean_is_scalar(x_143)) { - x_146 = lean_alloc_ctor(0, 2, 0); -} else { - x_146 = x_143; -} -lean_ctor_set(x_146, 0, x_145); -lean_ctor_set(x_146, 1, x_142); -return x_146; -} -else -{ -uint8_t x_147; lean_object* x_148; lean_object* x_149; +uint8_t x_131; lean_object* x_132; lean_dec(x_2); lean_dec(x_1); -x_147 = 2; +x_131 = 2; +x_132 = lean_box(x_131); +lean_ctor_set(x_103, 0, x_132); +return x_103; +} +} +} +else +{ +lean_object* x_133; uint8_t x_134; +x_133 = lean_ctor_get(x_103, 1); +lean_inc(x_133); +lean_dec(x_103); +x_134 = l_Lean_Level_occurs(x_1, x_2); +if (x_134 == 0) +{ +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; uint8_t x_139; lean_object* x_140; lean_object* x_141; +x_135 = l_Lean_Level_mvarId_x21(x_1); +lean_dec(x_1); +x_136 = l_Lean_Meta_assignLevelMVar___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_decAux_x3f___spec__2(x_135, x_2, x_3, x_4, x_5, x_6, x_133); +x_137 = lean_ctor_get(x_136, 1); +lean_inc(x_137); +if (lean_is_exclusive(x_136)) { + lean_ctor_release(x_136, 0); + lean_ctor_release(x_136, 1); + x_138 = x_136; +} else { + lean_dec_ref(x_136); + x_138 = lean_box(0); +} +x_139 = 1; +x_140 = lean_box(x_139); +if (lean_is_scalar(x_138)) { + x_141 = lean_alloc_ctor(0, 2, 0); +} else { + x_141 = x_138; +} +lean_ctor_set(x_141, 0, x_140); +lean_ctor_set(x_141, 1, x_137); +return x_141; +} +else +{ +uint8_t x_142; +x_142 = l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_strictOccursMax(x_1, x_2); +if (x_142 == 0) +{ +lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; uint8_t x_147; lean_object* x_148; lean_object* x_149; +x_143 = l_Lean_Level_mvarId_x21(x_1); +lean_dec(x_1); +x_144 = l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_solveSelfMax(x_143, x_2, x_3, x_4, x_5, x_6, x_133); +x_145 = lean_ctor_get(x_144, 1); +lean_inc(x_145); +if (lean_is_exclusive(x_144)) { + lean_ctor_release(x_144, 0); + lean_ctor_release(x_144, 1); + x_146 = x_144; +} else { + lean_dec_ref(x_144); + x_146 = lean_box(0); +} +x_147 = 1; x_148 = lean_box(x_147); -x_149 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_146)) { + x_149 = lean_alloc_ctor(0, 2, 0); +} else { + x_149 = x_146; +} lean_ctor_set(x_149, 0, x_148); -lean_ctor_set(x_149, 1, x_130); +lean_ctor_set(x_149, 1, x_145); return x_149; } -} -} -} else { -uint8_t x_150; +uint8_t x_150; lean_object* x_151; lean_object* x_152; lean_dec(x_2); lean_dec(x_1); -x_150 = !lean_is_exclusive(x_100); -if (x_150 == 0) -{ -lean_object* x_151; uint8_t x_152; lean_object* x_153; -x_151 = lean_ctor_get(x_100, 0); -lean_dec(x_151); -x_152 = 2; -x_153 = lean_box(x_152); -lean_ctor_set(x_100, 0, x_153); -return x_100; +x_150 = 2; +x_151 = lean_box(x_150); +x_152 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_152, 0, x_151); +lean_ctor_set(x_152, 1, x_133); +return x_152; +} +} +} } else { -lean_object* x_154; uint8_t x_155; lean_object* x_156; lean_object* x_157; -x_154 = lean_ctor_get(x_100, 1); -lean_inc(x_154); -lean_dec(x_100); +uint8_t x_153; +lean_dec(x_2); +lean_dec(x_1); +x_153 = !lean_is_exclusive(x_103); +if (x_153 == 0) +{ +lean_object* x_154; uint8_t x_155; lean_object* x_156; +x_154 = lean_ctor_get(x_103, 0); +lean_dec(x_154); x_155 = 2; x_156 = lean_box(x_155); -x_157 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_157, 0, x_156); -lean_ctor_set(x_157, 1, x_154); -return x_157; +lean_ctor_set(x_103, 0, x_156); +return x_103; +} +else +{ +lean_object* x_157; uint8_t x_158; lean_object* x_159; lean_object* x_160; +x_157 = lean_ctor_get(x_103, 1); +lean_inc(x_157); +lean_dec(x_103); +x_158 = 2; +x_159 = lean_box(x_158); +x_160 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_160, 0, x_159); +lean_ctor_set(x_160, 1, x_157); +return x_160; } } } else { -uint8_t x_158; +uint8_t x_161; lean_dec(x_2); lean_dec(x_1); -x_158 = !lean_is_exclusive(x_100); -if (x_158 == 0) +x_161 = !lean_is_exclusive(x_103); +if (x_161 == 0) { -return x_100; +return x_103; } else { -lean_object* x_159; lean_object* x_160; lean_object* x_161; -x_159 = lean_ctor_get(x_100, 0); -x_160 = lean_ctor_get(x_100, 1); -lean_inc(x_160); -lean_inc(x_159); -lean_dec(x_100); -x_161 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_161, 0, x_159); -lean_ctor_set(x_161, 1, x_160); -return x_161; +lean_object* x_162; lean_object* x_163; lean_object* x_164; +x_162 = lean_ctor_get(x_103, 0); +x_163 = lean_ctor_get(x_103, 1); +lean_inc(x_163); +lean_inc(x_162); +lean_dec(x_103); +x_164 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_164, 0, x_162); +lean_ctor_set(x_164, 1, x_163); +return x_164; } } } default: { -uint8_t x_162; lean_object* x_163; lean_object* x_164; +uint8_t x_165; lean_object* x_166; lean_object* x_167; lean_dec(x_2); lean_dec(x_1); -x_162 = 2; -x_163 = lean_box(x_162); -x_164 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_164, 0, x_163); -lean_ctor_set(x_164, 1, x_7); -return x_164; +x_165 = 2; +x_166 = lean_box(x_165); +x_167 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_167, 0, x_166); +lean_ctor_set(x_167, 1, x_7); +return x_167; } } } @@ -30015,7 +30049,7 @@ lean_dec(x_2); return x_8; } } -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_LevelDefEq___hyg_2188_(lean_object* x_1) { +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_LevelDefEq___hyg_2209_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -30221,7 +30255,7 @@ l_Lean_Meta_isExprDefEq___rarg___closed__4 = _init_l_Lean_Meta_isExprDefEq___rar lean_mark_persistent(l_Lean_Meta_isExprDefEq___rarg___closed__4); l_Lean_Meta_isDefEqNoConstantApprox___rarg___closed__1 = _init_l_Lean_Meta_isDefEqNoConstantApprox___rarg___closed__1(); lean_mark_persistent(l_Lean_Meta_isDefEqNoConstantApprox___rarg___closed__1); -res = l_Lean_Meta_initFn____x40_Lean_Meta_LevelDefEq___hyg_2188_(lean_io_mk_world()); +res = l_Lean_Meta_initFn____x40_Lean_Meta_LevelDefEq___hyg_2209_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Parser/Term.c b/stage0/stdlib/Lean/Parser/Term.c index 3e0ed93bda..0b2acca1c5 100644 --- a/stage0/stdlib/Lean/Parser/Term.c +++ b/stage0/stdlib/Lean/Parser/Term.c @@ -15,7 +15,6 @@ extern "C" { #endif lean_object* l_Lean_Parser_Term_subst___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_dbgTrace_formatter___closed__7; -lean_object* l_Lean_Parser_Term_simpleBinder___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_panic_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_let_x2a_formatter___closed__1; lean_object* l_Lean_Parser_Term_match___elambda__1___closed__6; @@ -1077,6 +1076,7 @@ lean_object* l_Lean_Parser_Term_letPatDecl___closed__1; lean_object* l___regBuiltin_Lean_Parser_Term_namedPattern_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_ellipsis___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_binderType___elambda__1(lean_object*, lean_object*); +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__10; lean_object* l_Lean_Parser_Term_depArrow___elambda__1___closed__6; lean_object* l___regBuiltin_Lean_Parser_Term_hole_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_suffices___elambda__1___closed__5; @@ -1912,6 +1912,7 @@ lean_object* l_Lean_Parser_Term_sorry_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_matchAlts_formatter___closed__2; lean_object* l_Lean_Parser_Term_nativeDecide___elambda__1___closed__7; lean_object* l_Lean_Parser_Term_explicitUniv___closed__4; +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__11; lean_object* l_Lean_Parser_Term_hole_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_nomatch_formatter___closed__2; lean_object* l_Lean_Parser_Term_optExprPrecedence___closed__3; @@ -1923,7 +1924,6 @@ lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_basicFun___closed__6; lean_object* l_Lean_Parser_Term_fun___closed__4; extern lean_object* l_myMacro____x40_Init_Tactics___hyg_726____closed__1; -lean_object* l_Lean_Parser_Term_typeSpec___elambda__1___closed__5; lean_object* l_Lean_Parser_Term_panic_formatter___closed__4; lean_object* l_Lean_Parser_Term_subtype_formatter___closed__2; lean_object* l_Lean_Parser_Term_suffices___elambda__1___lambda__1(lean_object*, lean_object*, lean_object*); @@ -2714,7 +2714,6 @@ lean_object* l_Lean_Parser_Term_structInstLVal_parenthesizer___closed__2; lean_object* l_Lean_Parser_Term_have___closed__4; lean_object* l_Lean_Parser_Term_byTactic___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_subtype_formatter___closed__4; -lean_object* l_Lean_Parser_Term_typeSpec___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_anonymousCtor___closed__10; lean_object* l_Lean_Parser_Term_fromTerm_formatter___closed__3; lean_object* l_Lean_Parser_Tactic_quot___closed__7; @@ -3096,6 +3095,7 @@ lean_object* l_Lean_Parser_Term_panic___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_have___elambda__1___closed__5; lean_object* l_Lean_Parser_Term_fun_parenthesizer___closed__2; lean_object* l_Lean_Parser_Term_optExprPrecedence_parenthesizer___closed__2; +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__9; lean_object* l_Lean_Parser_Term_structInstField_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_syntheticHole___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_tacticSeq1Indented___closed__5; @@ -3113,7 +3113,6 @@ lean_object* l_Lean_Parser_Term_attrArg___closed__2; lean_object* l_Lean_Parser_Tactic_tacticSeqBracketed___closed__6; lean_object* l_Lean_Parser_Term_app_formatter___closed__7; lean_object* l___regBuiltin_Lean_Parser_Term_uminus_parenthesizer___closed__1; -lean_object* l_Lean_Parser_Term_simpleBinder___elambda__1___closed__7; lean_object* l_Lean_Parser_Term_structInst___closed__16; lean_object* l_Lean_Parser_Term_structInstArrayRef___closed__6; lean_object* l_Lean_Parser_Term_letIdDecl___closed__4; @@ -3164,6 +3163,7 @@ lean_object* l_Lean_Parser_Term_haveDecl___closed__6; lean_object* l_Lean_Parser_Term_ensureTypeOf_parenthesizer___closed__5; lean_object* l___regBuiltinParser_Lean_Parser_Term_stateRefT(lean_object*); lean_object* l___regBuiltin_Lean_Parser_Term_ensureExpectedType_parenthesizer(lean_object*); +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__8; lean_object* l_Lean_Parser_Term_let_x2a___closed__4; lean_object* l_Lean_Parser_Term_matchAlt_formatter___closed__1; lean_object* l_Lean_Parser_checkColGtFn(lean_object*, lean_object*, lean_object*); @@ -15969,47 +15969,29 @@ return x_5; static lean_object* _init_l_Lean_Parser_Term_typeSpec___elambda__1___closed__1() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("typeSpec"); -return x_1; -} -} -static lean_object* _init_l_Lean_Parser_Term_typeSpec___elambda__1___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_myMacro____x40_Init_Notation___hyg_38____closed__6; -x_2 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Parser_Term_typeSpec___elambda__1___closed__3() { -_start: -{ lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__2; +x_1 = l_Lean_expandExplicitBindersAux_loop___closed__11; x_2 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Term_typeSpec___elambda__1___closed__4() { +static lean_object* _init_l_Lean_Parser_Term_typeSpec___elambda__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__1; -x_2 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__3; +x_1 = l_Lean_expandExplicitBindersAux_loop___closed__10; +x_2 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__1; x_3 = 1; x_4 = l_Lean_Parser_mkAntiquot(x_1, x_2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Parser_Term_typeSpec___elambda__1___closed__5() { +static lean_object* _init_l_Lean_Parser_Term_typeSpec___elambda__1___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__2; +x_1 = l_Lean_expandExplicitBindersAux_loop___closed__11; x_2 = l_Lean_Parser_Term_typeAscription___elambda__1___closed__5; x_3 = lean_alloc_closure((void*)(l_Lean_Parser_nodeFn), 4, 2); lean_closure_set(x_3, 0, x_1); @@ -16017,12 +15999,12 @@ lean_closure_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Term_typeSpec___elambda__1___closed__6() { +static lean_object* _init_l_Lean_Parser_Term_typeSpec___elambda__1___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Level_paren___elambda__1___closed__8; -x_2 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__5; +x_2 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__3; x_3 = lean_alloc_closure((void*)(l_Lean_Parser_andthenFn), 4, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); @@ -16033,10 +16015,10 @@ lean_object* l_Lean_Parser_Term_typeSpec___elambda__1(lean_object* x_1, lean_obj _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; lean_object* x_7; -x_3 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__4; +x_3 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__2; x_4 = lean_ctor_get(x_3, 1); lean_inc(x_4); -x_5 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__6; +x_5 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__4; x_6 = 1; x_7 = l_Lean_Parser_orelseFnCore(x_4, x_5, x_6, x_1, x_2); return x_7; @@ -16046,7 +16028,7 @@ static lean_object* _init_l_Lean_Parser_Term_typeSpec___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__2; +x_1 = l_Lean_expandExplicitBindersAux_loop___closed__11; x_2 = l_Lean_Parser_Term_typeAscription___closed__2; x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); return x_3; @@ -16066,7 +16048,7 @@ static lean_object* _init_l_Lean_Parser_Term_typeSpec___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__4; +x_1 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__2; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); x_3 = l_Lean_Parser_Term_typeSpec___closed__2; @@ -16491,8 +16473,8 @@ static lean_object* _init_l_Lean_Parser_Term_typeSpec_formatter___closed__1() { _start: { lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__1; -x_2 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__3; +x_1 = l_Lean_expandExplicitBindersAux_loop___closed__10; +x_2 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__1; x_3 = 1; x_4 = lean_box(x_3); x_5 = lean_alloc_closure((void*)(l_Lean_Parser_mkAntiquot_formatter___boxed), 8, 3); @@ -16506,7 +16488,7 @@ static lean_object* _init_l_Lean_Parser_Term_typeSpec_formatter___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__2; +x_1 = l_Lean_expandExplicitBindersAux_loop___closed__11; x_2 = lean_unsigned_to_nat(1024u); x_3 = l_Lean_Parser_Term_typeAscription_formatter___closed__3; x_4 = lean_alloc_closure((void*)(l_Lean_Parser_leadingNode_formatter___boxed), 8, 3); @@ -16693,7 +16675,7 @@ static lean_object* _init_l_Lean_Parser_Term_typeSpec_parenthesizer___closed__1( _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__3; +x_1 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__1; x_2 = 1; x_3 = lean_box(x_2); x_4 = lean_alloc_closure((void*)(l_Lean_Parser_mkAntiquot_parenthesizer___rarg___boxed), 7, 2); @@ -16706,7 +16688,7 @@ static lean_object* _init_l_Lean_Parser_Term_typeSpec_parenthesizer___closed__2( _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__2; +x_1 = l_Lean_expandExplicitBindersAux_loop___closed__11; x_2 = lean_unsigned_to_nat(1024u); x_3 = l_Lean_Parser_Term_typeAscription_parenthesizer___closed__2; x_4 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_leadingNode_parenthesizer___boxed), 8, 3); @@ -20041,43 +20023,25 @@ return x_5; static lean_object* _init_l_Lean_Parser_Term_simpleBinder___elambda__1___closed__1() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("simpleBinder"); -return x_1; -} -} -static lean_object* _init_l_Lean_Parser_Term_simpleBinder___elambda__1___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_myMacro____x40_Init_Notation___hyg_38____closed__6; -x_2 = l_Lean_Parser_Term_simpleBinder___elambda__1___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Parser_Term_simpleBinder___elambda__1___closed__3() { -_start: -{ lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Term_simpleBinder___elambda__1___closed__2; +x_1 = l_Lean_expandExplicitBindersAux_loop___closed__9; x_2 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Term_simpleBinder___elambda__1___closed__4() { +static lean_object* _init_l_Lean_Parser_Term_simpleBinder___elambda__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Term_simpleBinder___elambda__1___closed__1; -x_2 = l_Lean_Parser_Term_simpleBinder___elambda__1___closed__3; +x_1 = l_Lean_expandExplicitBindersAux_loop___closed__8; +x_2 = l_Lean_Parser_Term_simpleBinder___elambda__1___closed__1; x_3 = 1; x_4 = l_Lean_Parser_mkAntiquot(x_1, x_2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Parser_Term_simpleBinder___elambda__1___closed__5() { +static lean_object* _init_l_Lean_Parser_Term_simpleBinder___elambda__1___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -20089,24 +20053,24 @@ lean_closure_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Term_simpleBinder___elambda__1___closed__6() { +static lean_object* _init_l_Lean_Parser_Term_simpleBinder___elambda__1___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_simpleBinder___elambda__1___closed__2; -x_2 = l_Lean_Parser_Term_simpleBinder___elambda__1___closed__5; +x_1 = l_Lean_expandExplicitBindersAux_loop___closed__9; +x_2 = l_Lean_Parser_Term_simpleBinder___elambda__1___closed__3; x_3 = lean_alloc_closure((void*)(l_Lean_Parser_nodeFn), 4, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Term_simpleBinder___elambda__1___closed__7() { +static lean_object* _init_l_Lean_Parser_Term_simpleBinder___elambda__1___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Level_paren___elambda__1___closed__8; -x_2 = l_Lean_Parser_Term_simpleBinder___elambda__1___closed__6; +x_2 = l_Lean_Parser_Term_simpleBinder___elambda__1___closed__4; x_3 = lean_alloc_closure((void*)(l_Lean_Parser_andthenFn), 4, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); @@ -20117,10 +20081,10 @@ lean_object* l_Lean_Parser_Term_simpleBinder___elambda__1(lean_object* x_1, lean _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; lean_object* x_7; -x_3 = l_Lean_Parser_Term_simpleBinder___elambda__1___closed__4; +x_3 = l_Lean_Parser_Term_simpleBinder___elambda__1___closed__2; x_4 = lean_ctor_get(x_3, 1); lean_inc(x_4); -x_5 = l_Lean_Parser_Term_simpleBinder___elambda__1___closed__7; +x_5 = l_Lean_Parser_Term_simpleBinder___elambda__1___closed__5; x_6 = 1; x_7 = l_Lean_Parser_orelseFnCore(x_4, x_5, x_6, x_1, x_2); return x_7; @@ -20144,7 +20108,7 @@ static lean_object* _init_l_Lean_Parser_Term_simpleBinder___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_simpleBinder___elambda__1___closed__2; +x_1 = l_Lean_expandExplicitBindersAux_loop___closed__9; x_2 = l_Lean_Parser_Term_simpleBinder___closed__1; x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); return x_3; @@ -20164,7 +20128,7 @@ static lean_object* _init_l_Lean_Parser_Term_simpleBinder___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Term_simpleBinder___elambda__1___closed__4; +x_1 = l_Lean_Parser_Term_simpleBinder___elambda__1___closed__2; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); x_3 = l_Lean_Parser_Term_simpleBinder___closed__3; @@ -20538,8 +20502,8 @@ static lean_object* _init_l_Lean_Parser_Term_simpleBinder_formatter___closed__1( _start: { lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Parser_Term_simpleBinder___elambda__1___closed__1; -x_2 = l_Lean_Parser_Term_simpleBinder___elambda__1___closed__3; +x_1 = l_Lean_expandExplicitBindersAux_loop___closed__8; +x_2 = l_Lean_Parser_Term_simpleBinder___elambda__1___closed__1; x_3 = 1; x_4 = lean_box(x_3); x_5 = lean_alloc_closure((void*)(l_Lean_Parser_mkAntiquot_formatter___boxed), 8, 3); @@ -20565,7 +20529,7 @@ static lean_object* _init_l_Lean_Parser_Term_simpleBinder_formatter___closed__3( _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Term_simpleBinder___elambda__1___closed__2; +x_1 = l_Lean_expandExplicitBindersAux_loop___closed__9; x_2 = lean_unsigned_to_nat(1024u); x_3 = l_Lean_Parser_Term_simpleBinder_formatter___closed__2; x_4 = lean_alloc_closure((void*)(l_Lean_Parser_leadingNode_formatter___boxed), 8, 3); @@ -20756,7 +20720,7 @@ static lean_object* _init_l_Lean_Parser_Term_simpleBinder_parenthesizer___closed _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Term_simpleBinder___elambda__1___closed__3; +x_1 = l_Lean_Parser_Term_simpleBinder___elambda__1___closed__1; x_2 = 1; x_3 = lean_box(x_2); x_4 = lean_alloc_closure((void*)(l_Lean_Parser_mkAntiquot_parenthesizer___rarg___boxed), 7, 2); @@ -20781,7 +20745,7 @@ static lean_object* _init_l_Lean_Parser_Term_simpleBinder_parenthesizer___closed _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Term_simpleBinder___elambda__1___closed__2; +x_1 = l_Lean_expandExplicitBindersAux_loop___closed__9; x_2 = lean_unsigned_to_nat(1024u); x_3 = l_Lean_Parser_Term_simpleBinder_parenthesizer___closed__2; x_4 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_leadingNode_parenthesizer___boxed), 8, 3); @@ -26800,7 +26764,7 @@ if (lean_obj_tag(x_14) == 0) { lean_object* x_15; lean_object* x_16; lean_object* x_17; x_15 = l_Lean_Parser_pushNone___elambda__1___rarg(x_13); -x_16 = l_Lean_Parser_Term_simpleBinder___elambda__1___closed__2; +x_16 = l_Lean_expandExplicitBindersAux_loop___closed__9; x_17 = l_Lean_Parser_ParserState_mkNode(x_15, x_16, x_4); return x_17; } @@ -26808,7 +26772,7 @@ else { lean_object* x_18; lean_object* x_19; lean_dec(x_14); -x_18 = l_Lean_Parser_Term_simpleBinder___elambda__1___closed__2; +x_18 = l_Lean_expandExplicitBindersAux_loop___closed__9; x_19 = l_Lean_Parser_ParserState_mkNode(x_13, x_18, x_4); return x_19; } @@ -26827,7 +26791,7 @@ if (lean_obj_tag(x_22) == 0) { lean_object* x_23; lean_object* x_24; lean_object* x_25; x_23 = l_Lean_Parser_pushNone___elambda__1___rarg(x_21); -x_24 = l_Lean_Parser_Term_simpleBinder___elambda__1___closed__2; +x_24 = l_Lean_expandExplicitBindersAux_loop___closed__9; x_25 = l_Lean_Parser_ParserState_mkNode(x_23, x_24, x_4); return x_25; } @@ -26835,7 +26799,7 @@ else { lean_object* x_26; lean_object* x_27; lean_dec(x_22); -x_26 = l_Lean_Parser_Term_simpleBinder___elambda__1___closed__2; +x_26 = l_Lean_expandExplicitBindersAux_loop___closed__9; x_27 = l_Lean_Parser_ParserState_mkNode(x_21, x_26, x_4); return x_27; } @@ -26860,7 +26824,7 @@ static lean_object* _init_l_Lean_Parser_Term_simpleBinderWithoutType___closed__2 _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_simpleBinder___elambda__1___closed__2; +x_1 = l_Lean_expandExplicitBindersAux_loop___closed__9; x_2 = l_Lean_Parser_Term_simpleBinderWithoutType___closed__1; x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); return x_3; @@ -27994,7 +27958,7 @@ lean_object* l_Lean_Parser_Term_simpleBinderWithoutType_formatter(lean_object* x _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_6 = l_Lean_Parser_Term_simpleBinder___elambda__1___closed__2; +x_6 = l_Lean_expandExplicitBindersAux_loop___closed__9; x_7 = l_Lean_Parser_Term_simpleBinderWithoutType_formatter___closed__1; x_8 = l_Lean_PrettyPrinter_Formatter_node_formatter(x_6, x_7, x_1, x_2, x_3, x_4, x_5); return x_8; @@ -28435,7 +28399,7 @@ lean_object* l_Lean_Parser_Term_simpleBinderWithoutType_parenthesizer(lean_objec _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_6 = l_Lean_Parser_Term_simpleBinder___elambda__1___closed__2; +x_6 = l_Lean_expandExplicitBindersAux_loop___closed__9; x_7 = l_Lean_Parser_Term_simpleBinderWithoutType_parenthesizer___closed__1; x_8 = l_Lean_PrettyPrinter_Parenthesizer_node_parenthesizer(x_6, x_7, x_1, x_2, x_3, x_4, x_5); return x_8; @@ -45116,10 +45080,6 @@ l_Lean_Parser_Term_typeSpec___elambda__1___closed__3 = _init_l_Lean_Parser_Term_ lean_mark_persistent(l_Lean_Parser_Term_typeSpec___elambda__1___closed__3); l_Lean_Parser_Term_typeSpec___elambda__1___closed__4 = _init_l_Lean_Parser_Term_typeSpec___elambda__1___closed__4(); lean_mark_persistent(l_Lean_Parser_Term_typeSpec___elambda__1___closed__4); -l_Lean_Parser_Term_typeSpec___elambda__1___closed__5 = _init_l_Lean_Parser_Term_typeSpec___elambda__1___closed__5(); -lean_mark_persistent(l_Lean_Parser_Term_typeSpec___elambda__1___closed__5); -l_Lean_Parser_Term_typeSpec___elambda__1___closed__6 = _init_l_Lean_Parser_Term_typeSpec___elambda__1___closed__6(); -lean_mark_persistent(l_Lean_Parser_Term_typeSpec___elambda__1___closed__6); l_Lean_Parser_Term_typeSpec___closed__1 = _init_l_Lean_Parser_Term_typeSpec___closed__1(); lean_mark_persistent(l_Lean_Parser_Term_typeSpec___closed__1); l_Lean_Parser_Term_typeSpec___closed__2 = _init_l_Lean_Parser_Term_typeSpec___closed__2(); @@ -45722,10 +45682,6 @@ l_Lean_Parser_Term_simpleBinder___elambda__1___closed__4 = _init_l_Lean_Parser_T lean_mark_persistent(l_Lean_Parser_Term_simpleBinder___elambda__1___closed__4); l_Lean_Parser_Term_simpleBinder___elambda__1___closed__5 = _init_l_Lean_Parser_Term_simpleBinder___elambda__1___closed__5(); lean_mark_persistent(l_Lean_Parser_Term_simpleBinder___elambda__1___closed__5); -l_Lean_Parser_Term_simpleBinder___elambda__1___closed__6 = _init_l_Lean_Parser_Term_simpleBinder___elambda__1___closed__6(); -lean_mark_persistent(l_Lean_Parser_Term_simpleBinder___elambda__1___closed__6); -l_Lean_Parser_Term_simpleBinder___elambda__1___closed__7 = _init_l_Lean_Parser_Term_simpleBinder___elambda__1___closed__7(); -lean_mark_persistent(l_Lean_Parser_Term_simpleBinder___elambda__1___closed__7); l_Lean_Parser_Term_simpleBinder___closed__1 = _init_l_Lean_Parser_Term_simpleBinder___closed__1(); lean_mark_persistent(l_Lean_Parser_Term_simpleBinder___closed__1); l_Lean_Parser_Term_simpleBinder___closed__2 = _init_l_Lean_Parser_Term_simpleBinder___closed__2(); diff --git a/stage0/stdlib/Lean/Util/ReplaceLevel.c b/stage0/stdlib/Lean/Util/ReplaceLevel.c index b13c9e9f2c..1bf8bb6171 100644 --- a/stage0/stdlib/Lean/Util/ReplaceLevel.c +++ b/stage0/stdlib/Lean/Util/ReplaceLevel.c @@ -30,11 +30,11 @@ lean_object* l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM_visit___boxed(lean_obje size_t l_Lean_Expr_ReplaceLevelImpl_cacheSize; lean_object* l_Lean_Level_replace_match__2(lean_object*); lean_object* l_List_map___at_Lean_Expr_replaceLevel___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_mkLevelIMax(lean_object*, lean_object*); lean_object* l_List_map___at_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM_visit___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Level_replace_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM_visit_match__1(lean_object*); -lean_object* l_Lean_mkLevelMax(lean_object*, lean_object*); +lean_object* l_Lean_mkLevelMax_x27(lean_object*, lean_object*); +lean_object* l_Lean_mkLevelIMax_x27(lean_object*, lean_object*); lean_object* l_Lean_Expr_ReplaceLevelImpl_replaceUnsafe(lean_object*, lean_object*); lean_object* l_Lean_Expr_ReplaceLevelImpl_initCache___closed__1; lean_object* lean_expr_update_let(lean_object*, lean_object*, lean_object*, lean_object*); @@ -188,7 +188,7 @@ lean_dec(x_2); lean_inc(x_1); x_9 = l_Lean_Level_replace(x_1, x_7); x_10 = l_Lean_Level_replace(x_1, x_8); -x_11 = l_Lean_mkLevelMax(x_9, x_10); +x_11 = l_Lean_mkLevelMax_x27(x_9, x_10); return x_11; } case 3: @@ -202,7 +202,7 @@ lean_dec(x_2); lean_inc(x_1); x_14 = l_Lean_Level_replace(x_1, x_12); x_15 = l_Lean_Level_replace(x_1, x_13); -x_16 = l_Lean_mkLevelIMax(x_14, x_15); +x_16 = l_Lean_mkLevelIMax_x27(x_14, x_15); return x_16; } default: diff --git a/stage0/stdlib/Lean/Util/Trace.c b/stage0/stdlib/Lean/Util/Trace.c index ecb7b0bf46..46b983b3a6 100644 --- a/stage0/stdlib/Lean/Util/Trace.c +++ b/stage0/stdlib/Lean/Util/Trace.c @@ -60,6 +60,7 @@ uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_resetTraceState___rarg___closed__1; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Util_Trace_0__Lean_addNode___spec__1(size_t, size_t, lean_object*); lean_object* l_Lean___kind_term____x40_Lean_Util_Trace___hyg_885____closed__5; +extern lean_object* l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__5; extern lean_object* l_Lean_MessageData_nil; lean_object* l_Std_PersistentArray_getAux___at___private_Lean_Util_Trace_0__Lean_TraceState_toFormat___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_enableTracing___rarg(lean_object*, lean_object*, uint8_t); @@ -71,8 +72,6 @@ lean_object* lean_array_get_size(lean_object*); lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__5; extern lean_object* l_Lean_interpolatedStrKind; lean_object* l_Lean_getTraces(lean_object*); -extern lean_object* l_myMacro____x40_Init_Tactics___hyg_508____closed__7; -extern lean_object* l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__3; lean_object* l_Lean_isTracingEnabledFor___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_printTraces___spec__5___rarg___lambda__1(lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_printTraces___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); @@ -85,6 +84,7 @@ lean_object* l_Lean_traceM___rarg___lambda__1___boxed(lean_object*, lean_object* uint8_t l_USize_decLt(size_t, size_t); lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean___kind_term____x40_Lean_Message___hyg_1842____closed__4; +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__13; lean_object* l_Lean___kind_term____x40_Lean_Util_Trace___hyg_1249____closed__7; lean_object* l_Lean___kind_term____x40_Lean_Util_Trace___hyg_885____closed__3; lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlMAux___at_Lean_withNestedTraces___spec__3___boxed(lean_object*, lean_object*); @@ -128,11 +128,11 @@ lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l_Lean___kind_term____x40_Lean_Util_Trace___hyg_885____closed__2; lean_object* l_Lean_registerTraceClass___closed__2; lean_object* l_Lean_traceCtx___rarg___lambda__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__7; uint8_t l_Lean_MessageData_isNil(lean_object*); lean_object* l_Std_PersistentArray_foldlM___at_Lean_withNestedTraces___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_addNode___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_traceCtx___rarg___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_myMacro____x40_Init_Notation___hyg_6360____closed__17; lean_object* l_Lean_traceM(lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_6360____closed__15; lean_object* l_Array_foldlMUnsafe_fold___at_Lean_printTraces___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); @@ -170,18 +170,15 @@ lean_object* l_Lean___kind_term____x40_Lean_Util_Trace___hyg_1249____closed__5; lean_object* l_Lean_addTrace___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_modifyTraces___rarg___lambda__1(lean_object*, lean_object*); lean_object* l_Lean_MonadTracer_trace___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__9; extern lean_object* l_myMacro____x40_Init_Notation___hyg_6360____closed__13; lean_object* l_Lean_addTrace___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_traceCtx___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___rarg(lean_object*, lean_object*); -extern lean_object* l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__8; lean_object* l_Lean_modifyTraces___rarg(lean_object*, lean_object*); size_t l_USize_land(size_t, size_t); extern lean_object* l_Lean_nullKind___closed__2; -lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__8; lean_object* l_Lean___kind_term____x40_Lean_Util_Trace___hyg_885____closed__11; lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); @@ -197,7 +194,6 @@ lean_object* l_Lean_TraceState_traces___default; extern lean_object* l_myMacro____x40_Init_Data_ToString_Macro___hyg_43____closed__4; lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___rarg___lambda__2___closed__1; lean_object* l_IO_println___at_Lean_printTraces___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__11; lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_1331____closed__3; uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_get_x21___at___private_Lean_Util_Trace_0__Lean_TraceState_toFormat___spec__1(lean_object*, lean_object*); @@ -270,7 +266,6 @@ lean_object* l_Lean_traceCtx___rarg___lambda__3(lean_object*, uint8_t, lean_obje lean_object* l_Lean_checkTraceOption___closed__2; extern lean_object* l_tryFinally___rarg___closed__1; uint8_t l___private_Lean_Util_Trace_0__Lean_checkTraceOptionAux(lean_object*, lean_object*); -lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__10; lean_object* l_Lean_TraceState_Lean_Util_Trace___instance__2___closed__1; lean_object* l___private_Lean_Util_Trace_0__Lean_TraceState_toFormat(lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_6360____closed__11; @@ -2699,9 +2694,11 @@ static lean_object* _init_l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____clo _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_empty___closed__1; -x_2 = l_myMacro____x40_Init_Tactics___hyg_508____closed__7; -x_3 = lean_array_push(x_1, x_2); +x_1 = lean_box(0); +x_2 = l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__7; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); return x_3; } } @@ -2709,53 +2706,9 @@ static lean_object* _init_l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____clo _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_nullKind___closed__2; +x_1 = lean_box(0); x_2 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__6; x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_empty___closed__1; -x_2 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__7; -x_3 = lean_array_push(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__9() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__8; -x_2 = l_myMacro____x40_Init_Notation___hyg_6360____closed__17; -x_3 = lean_array_push(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__10() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__8; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; -} -} -static lean_object* _init_l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__11() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__10; -x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; @@ -2828,16 +2781,16 @@ x_26 = l_Array_empty___closed__1; x_27 = lean_array_push(x_26, x_25); x_28 = lean_array_push(x_26, x_15); x_29 = lean_array_push(x_26, x_17); -x_30 = l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__7; +x_30 = l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__6; x_31 = l_Lean_addMacroScope(x_19, x_30, x_18); -x_32 = l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__6; -x_33 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__11; +x_32 = l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__5; +x_33 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__7; x_34 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_34, 0, x_22); lean_ctor_set(x_34, 1, x_32); lean_ctor_set(x_34, 2, x_31); lean_ctor_set(x_34, 3, x_33); -x_35 = l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__3; +x_35 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_36 = lean_array_push(x_35, x_34); x_37 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_43____closed__4; x_38 = lean_alloc_ctor(1, 2, 0); @@ -2860,7 +2813,7 @@ x_48 = l_myMacro____x40_Init_Notation___hyg_6360____closed__8; x_49 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_49, 0, x_48); lean_ctor_set(x_49, 1, x_47); -x_50 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__9; +x_50 = l_Lean_expandExplicitBindersAux_loop___closed__7; x_51 = lean_array_push(x_50, x_49); x_52 = l_myMacro____x40_Init_Notation___hyg_6360____closed__15; x_53 = lean_alloc_ctor(1, 2, 0); @@ -3108,16 +3061,16 @@ lean_dec(x_15); x_32 = l___private_Init_Meta_0__Lean_quoteName(x_31); x_33 = lean_array_push(x_29, x_32); x_34 = lean_array_push(x_29, x_17); -x_35 = l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__7; +x_35 = l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__6; x_36 = l_Lean_addMacroScope(x_22, x_35, x_21); -x_37 = l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__6; -x_38 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__11; +x_37 = l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__5; +x_38 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__7; x_39 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_39, 0, x_25); lean_ctor_set(x_39, 1, x_37); lean_ctor_set(x_39, 2, x_36); lean_ctor_set(x_39, 3, x_38); -x_40 = l_Lean_myMacro____x40_Lean_Message___hyg_1881____closed__3; +x_40 = l_Lean_expandExplicitBindersAux_loop___closed__13; x_41 = lean_array_push(x_40, x_39); x_42 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_43____closed__4; x_43 = lean_alloc_ctor(1, 2, 0); @@ -3140,7 +3093,7 @@ x_53 = l_myMacro____x40_Init_Notation___hyg_6360____closed__8; x_54 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_54, 0, x_53); lean_ctor_set(x_54, 1, x_52); -x_55 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__9; +x_55 = l_Lean_expandExplicitBindersAux_loop___closed__7; x_56 = lean_array_push(x_55, x_54); x_57 = l_myMacro____x40_Init_Notation___hyg_6360____closed__15; x_58 = lean_alloc_ctor(1, 2, 0); @@ -3196,7 +3149,7 @@ x_84 = l_Lean___kind_term____x40_Lean_Message___hyg_1842____closed__8; x_85 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_85, 0, x_84); lean_ctor_set(x_85, 1, x_83); -x_86 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__9; +x_86 = l_Lean_expandExplicitBindersAux_loop___closed__7; x_87 = lean_array_push(x_86, x_85); x_88 = l_myMacro____x40_Init_Notation___hyg_6360____closed__15; x_89 = lean_alloc_ctor(1, 2, 0); @@ -4059,14 +4012,6 @@ l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__6 = _init_l_Lean_myMa lean_mark_persistent(l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__6); l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__7 = _init_l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__7(); lean_mark_persistent(l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__7); -l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__8 = _init_l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__8(); -lean_mark_persistent(l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__8); -l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__9 = _init_l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__9(); -lean_mark_persistent(l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__9); -l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__10 = _init_l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__10(); -lean_mark_persistent(l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__10); -l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__11 = _init_l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__11(); -lean_mark_persistent(l_Lean_myMacro____x40_Lean_Util_Trace___hyg_953____closed__11); l_Lean___kind_term____x40_Lean_Util_Trace___hyg_1249____closed__1 = _init_l_Lean___kind_term____x40_Lean_Util_Trace___hyg_1249____closed__1(); lean_mark_persistent(l_Lean___kind_term____x40_Lean_Util_Trace___hyg_1249____closed__1); l_Lean___kind_term____x40_Lean_Util_Trace___hyg_1249____closed__2 = _init_l_Lean___kind_term____x40_Lean_Util_Trace___hyg_1249____closed__2();