diff --git a/stage0/src/Init/Core.lean b/stage0/src/Init/Core.lean index 5fcae7e601..9c7b2cdcf3 100644 --- a/stage0/src/Init/Core.lean +++ b/stage0/src/Init/Core.lean @@ -110,6 +110,9 @@ infix:50 " ≈ " => HasEquiv.Equiv class EmptyCollection (α : Type u) where emptyCollection : α +notation "{" "}" => EmptyCollection.emptyCollection +notation "∅" => EmptyCollection.emptyCollection + /- Remark: tasks have an efficient implementation in the runtime. -/ structure Task (α : Type u) : Type u where pure :: (get : α) diff --git a/stage0/src/Lean/Elab/Binders.lean b/stage0/src/Lean/Elab/Binders.lean index 9471d20d01..08544376a4 100644 --- a/stage0/src/Lean/Elab/Binders.lean +++ b/stage0/src/Lean/Elab/Binders.lean @@ -607,11 +607,11 @@ def elabLetDeclCore (stx : Syntax) (expectedType? : Option Expr) (useLetExpr : B let type := expandOptType stx optType let val := letDecl[4] let stxNew ← `(let x : $type := $val; match x with | $pat => $body) - let stxNew := match useLetExpr, elabBodyFirst with + let stxNew := match useLetExpr, elabBodyFirst with | true, false => stxNew | true, true => stxNew.setKind `Lean.Parser.Term.«let_delayed» - | false, true => stxNew.setKind `Lean.Parser.Term.«let_fun» - | false, false => unreachable! + | false, false => stxNew.setKind `Lean.Parser.Term.«let_fun» + | false, true => unreachable! withMacroExpansion stx stxNew <| elabTerm stxNew expectedType? else if letDecl.getKind == `Lean.Parser.Term.letEqnsDecl then let letDeclIdNew ← liftMacroM <| expandLetEqnsDecl letDecl diff --git a/stage0/src/Lean/Elab/BuiltinNotation.lean b/stage0/src/Lean/Elab/BuiltinNotation.lean index fb45b69f77..4d1dc9018b 100644 --- a/stage0/src/Lean/Elab/BuiltinNotation.lean +++ b/stage0/src/Lean/Elab/BuiltinNotation.lean @@ -66,9 +66,14 @@ open Meta x?.getD <| mkIdentFrom stx `this match stx with | `(have $[$x :]? $type from $val $[;]? $body) => let x := mkId x; `(let_fun $x : $type := $val; $body) - | `(have $[$x :]? $type := $val $[;]? $body) => let x := mkId x; `(let_fun $x : $type := $val; $body) | `(have $[$x :]? $type by%$b $tac:tacticSeq $[;]? $body) => `(have $[$x :]? $type from by%$b $tac:tacticSeq; $body) - | _ => Macro.throwUnsupported + | _ => + -- TODO: fix `match` syntax, and avoid this workaround + match stx with + | `(have $x:ident : $type:term := $val $[;]? $body) => `(let_fun $x:ident : $type:term := $val; $body) + | `(have $x:ident := $val:term $[;]? $body) => `(let_fun $x:ident := $val:term ; $body) + | `(have $pattern:term := $val:term $[;]? $body) => `(let_fun $pattern:term := $val:term ; $body) + | _ => Macro.throwUnsupported @[builtinMacro Lean.Parser.Term.suffices] def expandSuffices : Macro | `(suffices $[$x :]? $type from $val $[;]? $body) => `(have $[$x :]? $type from $body; $val) diff --git a/stage0/src/Lean/Elab/Exception.lean b/stage0/src/Lean/Elab/Exception.lean index 6ff84fc4da..f1e49c6829 100644 --- a/stage0/src/Lean/Elab/Exception.lean +++ b/stage0/src/Lean/Elab/Exception.lean @@ -12,6 +12,7 @@ builtin_initialize postponeExceptionId : InternalExceptionId ← registerInterna builtin_initialize unsupportedSyntaxExceptionId : InternalExceptionId ← registerInternalExceptionId `unsupportedSyntax builtin_initialize abortCommandExceptionId : InternalExceptionId ← registerInternalExceptionId `abortCommandElab builtin_initialize abortTermExceptionId : InternalExceptionId ← registerInternalExceptionId `abortTermElab +builtin_initialize abortTacticExceptionId : InternalExceptionId ← registerInternalExceptionId `abortTactic builtin_initialize autoBoundImplicitExceptionId : InternalExceptionId ← registerInternalExceptionId `autoBoundImplicit def throwPostpone [MonadExceptOf Exception m] : m α := @@ -46,8 +47,17 @@ def throwAbortCommand {α m} [MonadExcept Exception m] : m α := def throwAbortTerm {α m} [MonadExcept Exception m] : m α := throw <| Exception.internal abortTermExceptionId +-- Throw exception to abort evaluation of the current tactic without producing any error message +def throwAbortTactic {α m} [MonadExcept Exception m] : m α := + throw <| Exception.internal abortTacticExceptionId + +def isAbortTacticException (ex : Exception) : Bool := + match ex with + | Exception.internal id .. => id == abortTacticExceptionId + | _ => false + def isAbortExceptionId (id : InternalExceptionId) : Bool := - id == abortCommandExceptionId || id == abortTermExceptionId + id == abortCommandExceptionId || id == abortTermExceptionId || id == abortTacticExceptionId def mkMessageCore (fileName : String) (fileMap : FileMap) (msgData : MessageData) (severity : MessageSeverity) (pos : String.Pos) : Message := let pos := fileMap.toPosition pos diff --git a/stage0/src/Lean/Elab/SyntheticMVars.lean b/stage0/src/Lean/Elab/SyntheticMVars.lean index 7c07cff814..d52ce05fd9 100644 --- a/stage0/src/Lean/Elab/SyntheticMVars.lean +++ b/stage0/src/Lean/Elab/SyntheticMVars.lean @@ -193,26 +193,14 @@ private def getSomeSynthethicMVarsRef : TermElabM Syntax := do mutual - partial def liftTacticElabM {α} (mvarId : MVarId) (x : TacticM α) : TermElabM α := - withMVarContext mvarId do - let savedSyntheticMVars := (← get).syntheticMVars - modify fun s => { s with syntheticMVars := [] } - try - let a ← x.run' { main := mvarId } { goals := [mvarId] } - synthesizeSyntheticMVars (mayPostpone := false) - pure a - finally - modify fun s => { s with syntheticMVars := savedSyntheticMVars } - partial def runTactic (mvarId : MVarId) (tacticCode : Syntax) : TermElabM Unit := do /- Recall, `tacticCode` is the whole `by ...` expression. -/ let byTk := tacticCode[0] let code := tacticCode[1] modifyThe Meta.State fun s => { s with mctx := s.mctx.instantiateMVarDeclMVars mvarId } - let remainingGoals ← withInfoHole mvarId <| - liftTacticElabM mvarId do - withTacticInfoContext tacticCode (evalTactic code) - getUnsolvedGoals + let remainingGoals ← withInfoHole mvarId <| Tactic.run mvarId do + withTacticInfoContext tacticCode (evalTactic code) + synthesizeSyntheticMVars (mayPostpone := false) unless remainingGoals.isEmpty do reportUnsolvedGoals remainingGoals /-- Try to synthesize the given pending synthetic metavariable. -/ diff --git a/stage0/src/Lean/Elab/Tactic/Basic.lean b/stage0/src/Lean/Elab/Tactic/Basic.lean index a5fa4501af..f4ad78301c 100644 --- a/stage0/src/Lean/Elab/Tactic/Basic.lean +++ b/stage0/src/Lean/Elab/Tactic/Basic.lean @@ -41,6 +41,47 @@ structure SavedState where abbrev TacticM := ReaderT Context $ StateRefT State TermElabM abbrev Tactic := Syntax → TacticM Unit +def getGoals : TacticM (List MVarId) := + return (← get).goals + +def setGoals (mvarIds : List MVarId) : TacticM Unit := + modify fun s => { s with goals := mvarIds } + +def pruneSolvedGoals : TacticM Unit := do + let gs ← getGoals + let gs ← gs.filterM fun g => not <$> isExprMVarAssigned g + setGoals gs + +def getUnsolvedGoals : TacticM (List MVarId) := do + pruneSolvedGoals + getGoals + +@[inline] private def TacticM.runCore (x : TacticM α) (ctx : Context) (s : State) : TermElabM (α × State) := + x ctx |>.run s + +@[inline] private def TacticM.runCore' (x : TacticM α) (ctx : Context) (s : State) : TermElabM α := + Prod.fst <$> x.runCore ctx s + +def run (mvarId : MVarId) (x : TacticM Unit) : TermElabM (List MVarId) := + withMVarContext mvarId do + let savedSyntheticMVars := (← get).syntheticMVars + modify fun s => { s with syntheticMVars := [] } + let aux : TacticM (List MVarId) := + /- Important: the following `try` does not backtrack the state. + This is intentional because we don't want to backtrack the error messages when we catch the "abort internal exception" + We must define `run` here because we define `MonadExcept` instance for `TacticM` -/ + try + x; getUnsolvedGoals + catch ex => + if isAbortTacticException ex then + getUnsolvedGoals + else + throw ex + try + aux.runCore' { main := mvarId } { goals := [mvarId] } + finally + modify fun s => { s with syntheticMVars := savedSyntheticMVars } + protected def saveState : TacticM SavedState := return { term := (← Term.saveState), tactic := (← get) } @@ -48,24 +89,6 @@ def SavedState.restore (b : SavedState) : TacticM Unit := do b.term.restore set b.tactic -instance : MonadBacktrack SavedState TacticM where - saveState := Tactic.saveState - restoreState b := b.restore - -@[inline] protected def tryCatch {α} (x : TacticM α) (h : Exception → TacticM α) : TacticM α := do - let b ← saveState - try x catch ex => b.restore; h ex - -instance : MonadExcept Exception TacticM where - throw := throw - tryCatch := Tactic.tryCatch - -@[inline] protected def orElse {α} (x y : TacticM α) : TacticM α := do - try x catch _ => y - -instance {α} : OrElse (TacticM α) where - orElse := Tactic.orElse - protected def getCurrMacroScope : TacticM MacroScope := do pure (← readThe Term.Context).currMacroScope protected def getMainModule : TacticM Name := do pure (← getEnv).mainModule @@ -74,6 +97,13 @@ unsafe def mkTacticAttribute : IO (KeyedDeclsAttribute Tactic) := @[builtinInit mkTacticAttribute] constant tacticElabAttribute : KeyedDeclsAttribute Tactic +/- +Important: we must define `evalTacticUsing` and `expandTacticMacroFns` before we define +the instance `MonadExcept` for `TacticM` since it backtracks the state including error messages, +and this is bad when rethrowing the exception at the `catch` block in these methods. +We marked these places with a `(*)` in these methods. +-/ + private def evalTacticUsing (s : SavedState) (stx : Syntax) (tactics : List Tactic) : TacticM Unit := do let rec loop : List Tactic → TacticM Unit | [] => throwErrorAt stx "unexpected syntax {indentD stx}" @@ -83,7 +113,7 @@ private def evalTacticUsing (s : SavedState) (stx : Syntax) (tactics : List Tact catch | ex@(Exception.error _ _) => match evalFns with - | [] => throw ex + | [] => throw ex -- (*) | evalFns => s.restore; loop evalFns | ex@(Exception.internal id _) => if id == unsupportedSyntaxExceptionId then @@ -92,9 +122,6 @@ private def evalTacticUsing (s : SavedState) (stx : Syntax) (tactics : List Tact throw ex loop tactics -def getGoals : TacticM (List MVarId) := - return (← get).goals - def mkTacticInfo (mctxBefore : MetavarContext) (goalsBefore : List MVarId) (stx : Syntax) : TacticM Info := return Info.ofTacticInfo { mctxBefore := mctxBefore @@ -120,7 +147,7 @@ mutual let stx' ← adaptMacro m stx evalTactic stx' catch ex => - if ms.isEmpty then throw ex + if ms.isEmpty then throw ex -- (*) loop ms loop macros @@ -138,7 +165,7 @@ mutual stx.getArgs.forM evalTactic else do trace[Elab.step] "{stx}" - let s ← saveState + let s ← Tactic.saveState let table := (tacticElabAttribute.ext.getState (← getEnv)).table let k := stx.getKind match table.find? k with @@ -151,6 +178,24 @@ mutual end +instance : MonadBacktrack SavedState TacticM where + saveState := Tactic.saveState + restoreState b := b.restore + +@[inline] protected def tryCatch {α} (x : TacticM α) (h : Exception → TacticM α) : TacticM α := do + let b ← saveState + try x catch ex => b.restore; h ex + +instance : MonadExcept Exception TacticM where + throw := throw + tryCatch := Tactic.tryCatch + +@[inline] protected def orElse {α} (x y : TacticM α) : TacticM α := do + try x catch _ => y + +instance {α} : OrElse (TacticM α) where + orElse := Tactic.orElse + /- Save the current tactic state for a token `stx`. This method is a no-op if `stx` has no position information. @@ -171,9 +216,6 @@ def adaptExpander (exp : Syntax → TacticM Syntax) : Tactic := fun stx => do let stx' ← exp stx withMacroExpansion stx stx' $ evalTactic stx' -def setGoals (mvarIds : List MVarId) : TacticM Unit := - modify fun s => { s with goals := mvarIds } - def appendGoals (mvarIds : List MVarId) : TacticM Unit := modify fun s => { s with goals := s.goals ++ mvarIds } @@ -184,15 +226,6 @@ def replaceMainGoal (mvarIds : List MVarId) : TacticM Unit := do let (mvarId :: mvarIds') ← getGoals | throwNoGoalsToBeSolved modify fun s => { s with goals := mvarIds ++ mvarIds' } -def pruneSolvedGoals : TacticM Unit := do - let gs ← getGoals - let gs ← gs.filterM fun g => not <$> isExprMVarAssigned g - setGoals gs - -def getUnsolvedGoals : TacticM (List MVarId) := do - pruneSolvedGoals - getGoals - /-- Return the first goal. -/ def getMainGoal : TacticM MVarId := do loop (← getGoals) @@ -601,10 +634,4 @@ where builtin_initialize registerTraceClass `Elab.tactic -@[inline] def TacticM.run (x : TacticM α) (ctx : Context) (s : State) : TermElabM (α × State) := - x ctx |>.run s - -@[inline] def TacticM.run' (x : TacticM α) (ctx : Context) (s : State) : TermElabM α := - Prod.fst <$> x.run ctx s - end Lean.Elab.Tactic diff --git a/stage0/src/Lean/Elab/Tactic/ElabTerm.lean b/stage0/src/Lean/Elab/Tactic/ElabTerm.lean index 7368b0cddc..4739aa2d8c 100644 --- a/stage0/src/Lean/Elab/Tactic/ElabTerm.lean +++ b/stage0/src/Lean/Elab/Tactic/ElabTerm.lean @@ -33,14 +33,21 @@ def elabTermEnsuringType (stx : Syntax) (expectedType? : Option Expr) (mayPostpo return e /- Try to close main goal using `x target`, where `target` is the type of the main goal. -/ -def closeMainGoalUsing (x : Expr → TacticM Expr) : TacticM Unit := +def closeMainGoalUsing (x : Expr → TacticM Expr) (checkUnassigned := true) : TacticM Unit := withMainContext do - closeMainGoal (← x (← getMainTarget)) + closeMainGoal (checkUnassigned := checkUnassigned) (← x (← getMainTarget)) + +private def logUnassignedAndAbort (mvarIds : Array MVarId) : TacticM Unit := do + if (← Term.logUnassignedUsingErrorInfos mvarIds) then + throwAbortTactic @[builtinTactic «exact»] def evalExact : Tactic := fun stx => match stx with - | `(tactic| exact $e) => closeMainGoalUsing (fun type => elabTermEnsuringType e type) - | _ => throwUnsupportedSyntax + | `(tactic| exact $e) => closeMainGoalUsing (checkUnassigned := false) fun type => do + let r ← elabTermEnsuringType e type + logUnassignedAndAbort (← getMVars r) + return r + | _ => throwUnsupportedSyntax def elabTermWithHoles (stx : Syntax) (expectedType? : Option Expr) (tagSuffix : Name) (allowNaturalHoles := false) : TacticM (Expr × List MVarId) := do let val ← elabTermEnsuringType stx expectedType? @@ -53,7 +60,7 @@ def elabTermWithHoles (stx : Syntax) (expectedType? : Option Expr) (tagSuffix : else let naturalMVarIds ← newMVarIds.filterM fun mvarId => return (← getMVarDecl mvarId).kind.isNatural let syntheticMVarIds ← newMVarIds.filterM fun mvarId => return !(← getMVarDecl mvarId).kind.isNatural - discard <| Term.logUnassignedUsingErrorInfos naturalMVarIds + logUnassignedAndAbort naturalMVarIds pure syntheticMVarIds.toList tagUntaggedGoals (← getMainTag) tagSuffix newMVarIds pure (val, newMVarIds) diff --git a/stage0/stdlib/Init/Core.c b/stage0/stdlib/Init/Core.c index f25be292e6..b63d7f7480 100644 --- a/stage0/stdlib/Init/Core.c +++ b/stage0/stdlib/Init/Core.c @@ -36,6 +36,7 @@ lean_object* l_term___x3c_x2d_x3e__; lean_object* l_instDecidableEqProd_match__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Quotient_recOn___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_term___x21_x3d_____closed__6; +lean_object* l_myMacro____x40_Init_Core___hyg_1203____closed__3; lean_object* l_bne___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Quotient_lift___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Squash_mk___rarg___boxed(lean_object*); @@ -50,6 +51,7 @@ lean_object* l_term___x21_x3d_____closed__5; lean_object* l_Quot_indep(lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; lean_object* l_Eq_ndrecOn___rarg(lean_object*); +lean_object* l_term_x7b_x7d___closed__4; lean_object* l_term___x21_x3d_____closed__2; lean_object* l_myMacro____x40_Init_Core___hyg_956____closed__7; lean_object* l_term___u2260_____closed__1; @@ -61,14 +63,17 @@ lean_object* l_instBEqProd(lean_object*, lean_object*); uint8_t l_instDecidableTrue; lean_object* l_myMacro____x40_Init_Core___hyg_956____closed__3; lean_object* l_instDecidableEqQuotient_match__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_term_x7b_x7d___closed__1; lean_object* l_Quotient_recOnSubsingleton___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_instInhabitedForInStep(lean_object*); lean_object* l_instDecidableEqQuotient_match__1___rarg(uint8_t, lean_object*, lean_object*); +lean_object* l_term_x7b_x7d___closed__2; lean_object* l_term___x21_x3d_____closed__1; lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_task_spawn(lean_object*, lean_object*); lean_object* l_instDecidableEqPUnit___boxed(lean_object*, lean_object*); uint8_t l_instDecidableEqPUnit(lean_object*, lean_object*); +lean_object* l_myMacro____x40_Init_Core___hyg_1203____closed__7; lean_object* l_term___u2260_____closed__5; lean_object* l_term___x21_x3d_____closed__3; lean_object* l_term___u2260_____closed__3; @@ -79,6 +84,7 @@ lean_object* l_Task_get___boxed(lean_object*, lean_object*); lean_object* l_Task_map___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Decidable_byCases___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_term___u2248__; +lean_object* l_term_x7b_x7d___closed__8; uint8_t l_toBoolUsing___rarg(uint8_t); lean_object* l_Eq_ndrecOn___rarg___boxed(lean_object*); lean_object* l_Quotient_mk(lean_object*, lean_object*); @@ -90,7 +96,6 @@ lean_object* l_instHasEquiv(lean_object*, lean_object*); lean_object* l_Quotient_lift_u2082___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_term___u2194_____closed__2; lean_object* l_Task_bind___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_myMacro____x40_Init_Core___hyg_1766____closed__1; lean_object* lean_thunk_pure(lean_object*); lean_object* l_term___u2260__; lean_object* l_myMacro____x40_Init_Core___hyg_956____closed__2; @@ -105,12 +110,14 @@ lean_object* l_Quotient_mk___boxed(lean_object*, lean_object*); lean_object* l_myMacro____x40_Init_Core___hyg_956____closed__1; lean_object* l_instDecidableEqQuotient___boxed(lean_object*, lean_object*); lean_object* l_Thunk_bind___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_myMacro____x40_Init_Core___hyg_2016____closed__5; lean_object* l_instDecidableDite___rarg(uint8_t, lean_object*, lean_object*); lean_object* l_term___u2260_____closed__6; lean_object* l_Eq_mpr(lean_object*, lean_object*, lean_object*); lean_object* l_Quot_recOn___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Thunk_get___boxed(lean_object*, lean_object*); lean_object* l_term___u2194_____closed__4; +lean_object* l_myMacro____x40_Init_Core___hyg_1607____closed__3; lean_object* l_Quot_recOnSubsingleton(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_reduceNat(lean_object*); lean_object* l_Squash_lift___rarg(lean_object*, lean_object*); @@ -120,12 +127,14 @@ uint8_t l_instDecidableIte___rarg(uint8_t, uint8_t, uint8_t); lean_object* l_instDecidableEqQuotient_match__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Quot_hrecOn(lean_object*, lean_object*, lean_object*); lean_object* l_myMacro____x40_Init_Core___hyg_956_(lean_object*, lean_object*, lean_object*); +lean_object* l_myMacro____x40_Init_Core___hyg_2016_(lean_object*, lean_object*, lean_object*); lean_object* l_myMacro____x40_Init_Core___hyg_432_(lean_object*, lean_object*, lean_object*); -lean_object* l_myMacro____x40_Init_Core___hyg_1766_(lean_object*, lean_object*, lean_object*); -lean_object* l_myMacro____x40_Init_Core___hyg_1357_(lean_object*, lean_object*, lean_object*); +lean_object* l_myMacro____x40_Init_Core___hyg_1331_(lean_object*, lean_object*, lean_object*); +lean_object* l_myMacro____x40_Init_Core___hyg_1607_(lean_object*, lean_object*, lean_object*); lean_object* l_myMacro____x40_Init_Core___hyg_188_(lean_object*, lean_object*, lean_object*); +lean_object* l_myMacro____x40_Init_Core___hyg_1203_(lean_object*, lean_object*, lean_object*); +lean_object* l_term_x7b_x7d___closed__6; lean_object* l_Task_Priority_dedicated; -lean_object* l_myMacro____x40_Init_Core___hyg_1766____closed__2; lean_object* l_Sum_inhabitedRight___rarg(lean_object*); lean_object* l_Quotient_lift___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Quotient_recOnSubsingleton_u2082___rarg(lean_object*, lean_object*, lean_object*); @@ -133,9 +142,9 @@ lean_object* l_instInhabitedProd(lean_object*, lean_object*); lean_object* l_myMacro____x40_Init_Core___hyg_956____closed__6; lean_object* l_instDecidableEqProd_match__1___rarg(uint8_t, lean_object*, lean_object*); lean_object* l_instInhabitedForInStep___rarg(lean_object*); -lean_object* l_myMacro____x40_Init_Core___hyg_1766____closed__6; -lean_object* l_myMacro____x40_Init_Core___hyg_1766____closed__4; +lean_object* l_term_x7b_x7d; lean_object* l_instInhabitedPNonScalar; +lean_object* l_myMacro____x40_Init_Core___hyg_1203____closed__9; lean_object* l_instDecidableEqQuotient(lean_object*, lean_object*); lean_object* lean_task_map(lean_object*, lean_object*, lean_object*); lean_object* l_instDecidableEqProd_match__2___rarg(lean_object*, lean_object*); @@ -148,51 +157,69 @@ lean_object* l_Quotient_liftOn_u2082___boxed(lean_object*, lean_object*, lean_ob lean_object* l_myMacro____x40_Init_Core___hyg_956____closed__4; lean_object* l_instInhabitedNonScalar; lean_object* l_myMacro____x40_Init_Core___hyg_956____closed__9; +lean_object* l_unexpand____x40_Init_Core___hyg_1187_(lean_object*); lean_object* l_unexpand____x40_Init_Core___hyg_936_(lean_object*, lean_object*); -lean_object* l_unexpand____x40_Init_Core___hyg_1337_(lean_object*, lean_object*); +lean_object* l_unexpand____x40_Init_Core___hyg_1319_(lean_object*); lean_object* l_unexpand____x40_Init_Core___hyg_412_(lean_object*, lean_object*); lean_object* l_unexpand____x40_Init_Core___hyg_168_(lean_object*, lean_object*); -lean_object* l_unexpand____x40_Init_Core___hyg_1746_(lean_object*, lean_object*); +lean_object* l_unexpand____x40_Init_Core___hyg_1996_(lean_object*, lean_object*); +lean_object* l_unexpand____x40_Init_Core___hyg_1587_(lean_object*, lean_object*); +lean_object* l_unexpand____x40_Init_Core___hyg_1319____boxed(lean_object*); lean_object* l_instDecidableIff(lean_object*, lean_object*); uint8_t l_instDecidableIff___rarg(uint8_t, uint8_t); lean_object* l_myMacro____x40_Init_Core___hyg_188____closed__1; lean_object* l_term___x3c_x2d_x3e_____closed__5; +lean_object* l_myMacro____x40_Init_Core___hyg_1203____closed__8; lean_object* l_myMacro____x40_Init_Core___hyg_188____closed__2; +lean_object* l_term_x7b_x7d___closed__3; lean_object* l_term___u2194__; +lean_object* l_myMacro____x40_Init_Core___hyg_1203____closed__2; uint8_t l_strictOr(uint8_t, uint8_t); lean_object* l_term___x21_x3d__; lean_object* l_Eq_mpr___rarg(lean_object*); lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_unexpand____x40_Init_Notation___hyg_2258____spec__1(lean_object*); lean_object* l_term___x3c_x2d_x3e_____closed__4; +lean_object* l_term_u2205; lean_object* l_decidableOfDecidableOfEq(lean_object*, lean_object*); +lean_object* l_unexpand____x40_Init_Core___hyg_1187____boxed(lean_object*); lean_object* l_instDecidableEqProd___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Squash_mk(lean_object*); +lean_object* l_myMacro____x40_Init_Core___hyg_1203____closed__1; lean_object* lean_mk_thunk(lean_object*); +lean_object* l_term_u2205___closed__4; extern lean_object* l_Lean_Parser_Syntax_addPrec___closed__10; lean_object* l_instLTProd(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_term___x3c_x2d_x3e_____closed__7; lean_object* l_Task_Priority_default; lean_object* l_Thunk_mk___boxed(lean_object*, lean_object*); +lean_object* l_term_u2205___closed__1; lean_object* l_instDecidableEqQuotient___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_term___u2248_____closed__4; lean_object* l_Thunk_map___rarg___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_instBEqProd___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_term_x7b_x7d___closed__5; lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_nullKind___closed__2; lean_object* l_Squash_lift(lean_object*, lean_object*, lean_object*); +lean_object* l_term_x7b_x7d___closed__7; +lean_object* l_term_u2205___closed__2; lean_object* l_Thunk_map___rarg(lean_object*, lean_object*); lean_object* l_term___x3c_x2d_x3e_____closed__3; lean_object* l_term___u2194_____closed__5; +lean_object* l_myMacro____x40_Init_Core___hyg_1607____closed__5; lean_object* l_Eq_mp(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isNodeOf(lean_object*, lean_object*, lean_object*); extern lean_object* l_term___x3c_x3d_____closed__5; lean_object* l_toBoolUsing(lean_object*); lean_object* l_Subtype_instDecidableEqSubtype_match__1(lean_object*, lean_object*, lean_object*); -lean_object* l_myMacro____x40_Init_Core___hyg_1357____closed__2; +lean_object* l_unexpand____x40_Init_Core___hyg_1319____rarg(lean_object*); +lean_object* l_term_u2205___closed__3; lean_object* l_Subtype_instInhabitedSubtype___rarg___boxed(lean_object*, lean_object*); lean_object* l_Decidable_byCases_match__1___rarg(uint8_t, lean_object*, lean_object*); lean_object* l_instInhabitedProd___rarg(lean_object*, lean_object*); +lean_object* l_term_u2205___closed__5; uint8_t l_instDecidableFalse; +lean_object* l_unexpand____x40_Init_Core___hyg_1187____rarg(lean_object*); lean_object* l_instDecidableArrow(lean_object*, lean_object*); lean_object* l_myMacro____x40_Init_Core___hyg_188____closed__6; lean_object* l_term___x3c_x2d_x3e_____closed__2; @@ -200,38 +227,41 @@ lean_object* l_prodHasDecidableLt___boxed(lean_object*, lean_object*, lean_objec lean_object* l_Quotient_mk___rarg(lean_object*); lean_object* l_Prod_map___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_task_bind(lean_object*, lean_object*, lean_object*); -lean_object* l_myMacro____x40_Init_Core___hyg_1357____closed__1; lean_object* l_Thunk_bind___rarg(lean_object*, lean_object*); uint8_t l_bne___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_myMacro____x40_Init_Core___hyg_188____closed__4; -lean_object* l_myMacro____x40_Init_Core___hyg_1357____closed__4; lean_object* l_instDecidableEqSum(lean_object*, lean_object*); lean_object* l_Subtype_instInhabitedSubtype(lean_object*, lean_object*); lean_object* l_Quot_recOnSubsingleton___rarg(lean_object*, lean_object*); +lean_object* l_myMacro____x40_Init_Core___hyg_1607____closed__6; lean_object* l_Sum_inhabitedLeft(lean_object*, lean_object*); lean_object* l_Quotient_mk___rarg___boxed(lean_object*); +lean_object* l_myMacro____x40_Init_Core___hyg_1203____closed__4; lean_object* l_Eq_mp___rarg(lean_object*); lean_object* l_instHasEquiv___boxed(lean_object*, lean_object*); lean_object* l_Quotient_liftOn___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_myMacro____x40_Init_Core___hyg_2016____closed__3; lean_object* l_inline___rarg___boxed(lean_object*); lean_object* l_Quotient_recOnSubsingleton(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_instDecidableEqProd(lean_object*, lean_object*); lean_object* l_Quot_liftOn(lean_object*, lean_object*, lean_object*); lean_object* l_term___u2194_____closed__6; lean_object* l_instDecidableDite___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_myMacro____x40_Init_Core___hyg_1607____closed__2; lean_object* l_prodHasDecidableLt___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Quot_rec(lean_object*, lean_object*, lean_object*); lean_object* l_Decidable_byCases_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Subtype_instDecidableEqSubtype_match__1___rarg(lean_object*, lean_object*); lean_object* l_Task_Priority_max; +lean_object* l_myMacro____x40_Init_Core___hyg_1607____closed__1; lean_object* l_instDecidableEqSum_match__1(lean_object*, lean_object*, lean_object*); lean_object* l_Decidable_byCases_match__1(lean_object*, lean_object*); lean_object* l_Lean_reduceNat___boxed(lean_object*); -lean_object* l_myMacro____x40_Init_Core___hyg_1766____closed__3; lean_object* l_Thunk_bind___rarg___lambda__1(lean_object*, lean_object*, lean_object*); -lean_object* l_myMacro____x40_Init_Core___hyg_1766____closed__5; -lean_object* l_myMacro____x40_Init_Core___hyg_1357____closed__3; lean_object* l_Eq_ndrecOn___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_myMacro____x40_Init_Core___hyg_1203____closed__5; +lean_object* l_myMacro____x40_Init_Core___hyg_1607____closed__4; +lean_object* l_myMacro____x40_Init_Core___hyg_2016____closed__2; lean_object* l_Quotient_rec___rarg(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); lean_object* l_term___x3c_x2d_x3e_____closed__1; @@ -244,7 +274,6 @@ lean_object* l_instDecidableEqProd_match__1___rarg___boxed(lean_object*, lean_ob lean_object* l_Quot_indep___rarg(lean_object*, lean_object*); lean_object* l_Eq_mp___rarg___boxed(lean_object*); lean_object* l_term___u2248_____closed__3; -lean_object* l_myMacro____x40_Init_Core___hyg_1357____closed__6; lean_object* l_Decidable_byCases___rarg(uint8_t, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_2278____closed__4; lean_object* l_prodHasDecidableLt(lean_object*, lean_object*, lean_object*, lean_object*); @@ -255,6 +284,7 @@ lean_object* l_term___u2248_____closed__6; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); lean_object* l_Quotient_recOnSubsingleton_u2082(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Decidable_byCases(lean_object*, lean_object*); +lean_object* l_myMacro____x40_Init_Core___hyg_2016____closed__1; lean_object* l_inline___rarg(lean_object*); lean_object* l_instDecidableEqSum_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_myMacro____x40_Init_Core___hyg_956____closed__5; @@ -268,13 +298,16 @@ lean_object* l_Squash_mk___rarg(lean_object*); lean_object* l_instDecidableIte(lean_object*, lean_object*, lean_object*); lean_object* l_Thunk_pure___boxed(lean_object*, lean_object*); lean_object* l_decidableOfDecidableOfIff(lean_object*, lean_object*); +lean_object* l_myMacro____x40_Init_Core___hyg_2016____closed__6; lean_object* l___private_Init_Core_0__extfunApp(lean_object*, lean_object*); lean_object* l_myMacro____x40_Init_Core___hyg_188____closed__5; lean_object* l_Task_spawn___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_term___u2248_____closed__1; +lean_object* l_myMacro____x40_Init_Core___hyg_2016____closed__4; lean_object* lean_thunk_get_own(lean_object*); lean_object* l_Quotient_hrecOn(lean_object*, lean_object*, lean_object*); lean_object* lean_task_pure(lean_object*); +lean_object* l_myMacro____x40_Init_Core___hyg_1203____closed__6; lean_object* l_term___u2248_____closed__5; lean_object* l___private_Init_Core_0__extfunApp___rarg(lean_object*, lean_object*); lean_object* l_Eq_ndrecOn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -282,7 +315,6 @@ lean_object* lean_task_get_own(lean_object*); lean_object* l_instInhabitedPUnit; uint8_t l_decidableOfDecidableOfIff___rarg(uint8_t, lean_object*); lean_object* l_term___u2194_____closed__3; -lean_object* l_myMacro____x40_Init_Core___hyg_1357____closed__5; lean_object* l_Thunk_bind(lean_object*, lean_object*); lean_object* l_instInhabitedTrue; lean_object* l_Quotient_recOn___boxed(lean_object*, lean_object*, lean_object*); @@ -1452,6 +1484,531 @@ return x_38; } } } +static lean_object* _init_l_term_x7b_x7d___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("term{}"); +return x_1; +} +} +static lean_object* _init_l_term_x7b_x7d___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_term_x7b_x7d___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_term_x7b_x7d___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("{"); +return x_1; +} +} +static lean_object* _init_l_term_x7b_x7d___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_term_x7b_x7d___closed__3; +x_2 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_term_x7b_x7d___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("}"); +return x_1; +} +} +static lean_object* _init_l_term_x7b_x7d___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_term_x7b_x7d___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_term_x7b_x7d___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Syntax_addPrec___closed__10; +x_2 = l_term_x7b_x7d___closed__4; +x_3 = l_term_x7b_x7d___closed__6; +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_term_x7b_x7d___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_term_x7b_x7d___closed__2; +x_2 = lean_unsigned_to_nat(1024u); +x_3 = l_term_x7b_x7d___closed__7; +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_term_x7b_x7d() { +_start: +{ +lean_object* x_1; +x_1 = l_term_x7b_x7d___closed__8; +return x_1; +} +} +static lean_object* _init_l_myMacro____x40_Init_Core___hyg_1203____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("EmptyCollection.emptyCollection"); +return x_1; +} +} +static lean_object* _init_l_myMacro____x40_Init_Core___hyg_1203____closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_myMacro____x40_Init_Core___hyg_1203____closed__1; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l_myMacro____x40_Init_Core___hyg_1203____closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_myMacro____x40_Init_Core___hyg_1203____closed__1; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l_myMacro____x40_Init_Core___hyg_1203____closed__2; +x_4 = lean_alloc_ctor(0, 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_myMacro____x40_Init_Core___hyg_1203____closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("EmptyCollection"); +return x_1; +} +} +static lean_object* _init_l_myMacro____x40_Init_Core___hyg_1203____closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_myMacro____x40_Init_Core___hyg_1203____closed__4; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_myMacro____x40_Init_Core___hyg_1203____closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("emptyCollection"); +return x_1; +} +} +static lean_object* _init_l_myMacro____x40_Init_Core___hyg_1203____closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_myMacro____x40_Init_Core___hyg_1203____closed__5; +x_2 = l_myMacro____x40_Init_Core___hyg_1203____closed__6; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_myMacro____x40_Init_Core___hyg_1203____closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_myMacro____x40_Init_Core___hyg_1203____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; +} +} +static lean_object* _init_l_myMacro____x40_Init_Core___hyg_1203____closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_myMacro____x40_Init_Core___hyg_1203____closed__8; +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; +} +} +lean_object* l_myMacro____x40_Init_Core___hyg_1203_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = l_term_x7b_x7d___closed__2; +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_2); +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; uint8_t x_9; +x_8 = l_Lean_MonadRef_mkInfoFromRefPos___at_myMacro____x40_Init_Notation___hyg_113____spec__1(x_2, x_3); +x_9 = !lean_is_exclusive(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; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_10 = lean_ctor_get(x_8, 0); +x_11 = lean_ctor_get(x_2, 2); +lean_inc(x_11); +x_12 = lean_ctor_get(x_2, 1); +lean_inc(x_12); +lean_dec(x_2); +x_13 = l_myMacro____x40_Init_Core___hyg_1203____closed__7; +x_14 = l_Lean_addMacroScope(x_12, x_13, x_11); +x_15 = l_myMacro____x40_Init_Core___hyg_1203____closed__3; +x_16 = l_myMacro____x40_Init_Core___hyg_1203____closed__9; +x_17 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_17, 0, x_10); +lean_ctor_set(x_17, 1, x_15); +lean_ctor_set(x_17, 2, x_14); +lean_ctor_set(x_17, 3, x_16); +lean_ctor_set(x_8, 0, x_17); +return x_8; +} +else +{ +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_18 = lean_ctor_get(x_8, 0); +x_19 = lean_ctor_get(x_8, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_8); +x_20 = lean_ctor_get(x_2, 2); +lean_inc(x_20); +x_21 = lean_ctor_get(x_2, 1); +lean_inc(x_21); +lean_dec(x_2); +x_22 = l_myMacro____x40_Init_Core___hyg_1203____closed__7; +x_23 = l_Lean_addMacroScope(x_21, x_22, x_20); +x_24 = l_myMacro____x40_Init_Core___hyg_1203____closed__3; +x_25 = l_myMacro____x40_Init_Core___hyg_1203____closed__9; +x_26 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_26, 0, x_18); +lean_ctor_set(x_26, 1, x_24); +lean_ctor_set(x_26, 2, x_23); +lean_ctor_set(x_26, 3, x_25); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_19); +return x_27; +} +} +} +} +lean_object* l_unexpand____x40_Init_Core___hyg_1187____rarg(lean_object* x_1) { +_start: +{ +lean_object* x_2; uint8_t x_3; +x_2 = l_Lean_MonadRef_mkInfoFromRefPos___at_unexpand____x40_Init_Notation___hyg_2258____spec__1(x_1); +x_3 = !lean_is_exclusive(x_2); +if (x_3 == 0) +{ +lean_object* 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; lean_object* x_12; lean_object* x_13; +x_4 = lean_ctor_get(x_2, 0); +x_5 = l_term_x7b_x7d___closed__3; +lean_inc(x_4); +x_6 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_6, 0, x_4); +lean_ctor_set(x_6, 1, x_5); +x_7 = l_Array_empty___closed__1; +x_8 = lean_array_push(x_7, x_6); +x_9 = l_term_x7b_x7d___closed__5; +x_10 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_10, 0, x_4); +lean_ctor_set(x_10, 1, x_9); +x_11 = lean_array_push(x_8, x_10); +x_12 = l_term_x7b_x7d___closed__2; +x_13 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_11); +lean_ctor_set(x_2, 0, x_13); +return x_2; +} +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; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_14 = lean_ctor_get(x_2, 0); +x_15 = lean_ctor_get(x_2, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_2); +x_16 = l_term_x7b_x7d___closed__3; +lean_inc(x_14); +x_17 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_17, 0, x_14); +lean_ctor_set(x_17, 1, x_16); +x_18 = l_Array_empty___closed__1; +x_19 = lean_array_push(x_18, x_17); +x_20 = l_term_x7b_x7d___closed__5; +x_21 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_21, 0, x_14); +lean_ctor_set(x_21, 1, x_20); +x_22 = lean_array_push(x_19, x_21); +x_23 = l_term_x7b_x7d___closed__2; +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_22); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_15); +return x_25; +} +} +} +lean_object* l_unexpand____x40_Init_Core___hyg_1187_(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_unexpand____x40_Init_Core___hyg_1187____rarg), 1, 0); +return x_2; +} +} +lean_object* l_unexpand____x40_Init_Core___hyg_1187____boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_unexpand____x40_Init_Core___hyg_1187_(x_1); +lean_dec(x_1); +return x_2; +} +} +static lean_object* _init_l_term_u2205___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("term∅"); +return x_1; +} +} +static lean_object* _init_l_term_u2205___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_term_u2205___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_term_u2205___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("∅"); +return x_1; +} +} +static lean_object* _init_l_term_u2205___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_term_u2205___closed__3; +x_2 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_term_u2205___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_term_u2205___closed__2; +x_2 = lean_unsigned_to_nat(1024u); +x_3 = l_term_u2205___closed__4; +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_term_u2205() { +_start: +{ +lean_object* x_1; +x_1 = l_term_u2205___closed__5; +return x_1; +} +} +lean_object* l_myMacro____x40_Init_Core___hyg_1331_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = l_term_u2205___closed__2; +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_2); +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; uint8_t x_9; +x_8 = l_Lean_MonadRef_mkInfoFromRefPos___at_myMacro____x40_Init_Notation___hyg_113____spec__1(x_2, x_3); +x_9 = !lean_is_exclusive(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; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_10 = lean_ctor_get(x_8, 0); +x_11 = lean_ctor_get(x_2, 2); +lean_inc(x_11); +x_12 = lean_ctor_get(x_2, 1); +lean_inc(x_12); +lean_dec(x_2); +x_13 = l_myMacro____x40_Init_Core___hyg_1203____closed__7; +x_14 = l_Lean_addMacroScope(x_12, x_13, x_11); +x_15 = l_myMacro____x40_Init_Core___hyg_1203____closed__3; +x_16 = l_myMacro____x40_Init_Core___hyg_1203____closed__9; +x_17 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_17, 0, x_10); +lean_ctor_set(x_17, 1, x_15); +lean_ctor_set(x_17, 2, x_14); +lean_ctor_set(x_17, 3, x_16); +lean_ctor_set(x_8, 0, x_17); +return x_8; +} +else +{ +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_18 = lean_ctor_get(x_8, 0); +x_19 = lean_ctor_get(x_8, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_8); +x_20 = lean_ctor_get(x_2, 2); +lean_inc(x_20); +x_21 = lean_ctor_get(x_2, 1); +lean_inc(x_21); +lean_dec(x_2); +x_22 = l_myMacro____x40_Init_Core___hyg_1203____closed__7; +x_23 = l_Lean_addMacroScope(x_21, x_22, x_20); +x_24 = l_myMacro____x40_Init_Core___hyg_1203____closed__3; +x_25 = l_myMacro____x40_Init_Core___hyg_1203____closed__9; +x_26 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_26, 0, x_18); +lean_ctor_set(x_26, 1, x_24); +lean_ctor_set(x_26, 2, x_23); +lean_ctor_set(x_26, 3, x_25); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_19); +return x_27; +} +} +} +} +lean_object* l_unexpand____x40_Init_Core___hyg_1319____rarg(lean_object* x_1) { +_start: +{ +lean_object* x_2; uint8_t x_3; +x_2 = l_Lean_MonadRef_mkInfoFromRefPos___at_unexpand____x40_Init_Notation___hyg_2258____spec__1(x_1); +x_3 = !lean_is_exclusive(x_2); +if (x_3 == 0) +{ +lean_object* 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; +x_4 = lean_ctor_get(x_2, 0); +x_5 = l_term_u2205___closed__3; +x_6 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_6, 0, x_4); +lean_ctor_set(x_6, 1, x_5); +x_7 = l_Array_empty___closed__1; +x_8 = lean_array_push(x_7, x_6); +x_9 = l_term_u2205___closed__2; +x_10 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_8); +lean_ctor_set(x_2, 0, x_10); +return x_2; +} +else +{ +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; +x_11 = lean_ctor_get(x_2, 0); +x_12 = lean_ctor_get(x_2, 1); +lean_inc(x_12); +lean_inc(x_11); +lean_dec(x_2); +x_13 = l_term_u2205___closed__3; +x_14 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_14, 0, x_11); +lean_ctor_set(x_14, 1, x_13); +x_15 = l_Array_empty___closed__1; +x_16 = lean_array_push(x_15, x_14); +x_17 = l_term_u2205___closed__2; +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_16); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_12); +return x_19; +} +} +} +lean_object* l_unexpand____x40_Init_Core___hyg_1319_(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_unexpand____x40_Init_Core___hyg_1319____rarg), 1, 0); +return x_2; +} +} +lean_object* l_unexpand____x40_Init_Core___hyg_1319____boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_unexpand____x40_Init_Core___hyg_1319_(x_1); +lean_dec(x_1); +return x_2; +} +} lean_object* l_Task_pure___boxed(lean_object* x_1, lean_object* x_2) { _start: { @@ -1654,7 +2211,7 @@ x_1 = l_term___x21_x3d_____closed__6; return x_1; } } -static lean_object* _init_l_myMacro____x40_Init_Core___hyg_1357____closed__1() { +static lean_object* _init_l_myMacro____x40_Init_Core___hyg_1607____closed__1() { _start: { lean_object* x_1; @@ -1662,22 +2219,22 @@ x_1 = lean_mk_string("bne"); return x_1; } } -static lean_object* _init_l_myMacro____x40_Init_Core___hyg_1357____closed__2() { +static lean_object* _init_l_myMacro____x40_Init_Core___hyg_1607____closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_myMacro____x40_Init_Core___hyg_1357____closed__1; +x_1 = l_myMacro____x40_Init_Core___hyg_1607____closed__1; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_myMacro____x40_Init_Core___hyg_1357____closed__3() { +static lean_object* _init_l_myMacro____x40_Init_Core___hyg_1607____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_myMacro____x40_Init_Core___hyg_1357____closed__1; +x_1 = l_myMacro____x40_Init_Core___hyg_1607____closed__1; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_myMacro____x40_Init_Core___hyg_1357____closed__2; +x_3 = l_myMacro____x40_Init_Core___hyg_1607____closed__2; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -1685,41 +2242,41 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_myMacro____x40_Init_Core___hyg_1357____closed__4() { +static lean_object* _init_l_myMacro____x40_Init_Core___hyg_1607____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_myMacro____x40_Init_Core___hyg_1357____closed__1; +x_2 = l_myMacro____x40_Init_Core___hyg_1607____closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_myMacro____x40_Init_Core___hyg_1357____closed__5() { +static lean_object* _init_l_myMacro____x40_Init_Core___hyg_1607____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_myMacro____x40_Init_Core___hyg_1357____closed__4; +x_2 = l_myMacro____x40_Init_Core___hyg_1607____closed__4; 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_myMacro____x40_Init_Core___hyg_1357____closed__6() { +static lean_object* _init_l_myMacro____x40_Init_Core___hyg_1607____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_myMacro____x40_Init_Core___hyg_1357____closed__5; +x_2 = l_myMacro____x40_Init_Core___hyg_1607____closed__5; 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; } } -lean_object* l_myMacro____x40_Init_Core___hyg_1357_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_myMacro____x40_Init_Core___hyg_1607_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -1756,10 +2313,10 @@ lean_inc(x_15); x_16 = lean_ctor_get(x_2, 1); lean_inc(x_16); lean_dec(x_2); -x_17 = l_myMacro____x40_Init_Core___hyg_1357____closed__4; +x_17 = l_myMacro____x40_Init_Core___hyg_1607____closed__4; x_18 = l_Lean_addMacroScope(x_16, x_17, x_15); -x_19 = l_myMacro____x40_Init_Core___hyg_1357____closed__3; -x_20 = l_myMacro____x40_Init_Core___hyg_1357____closed__6; +x_19 = l_myMacro____x40_Init_Core___hyg_1607____closed__3; +x_20 = l_myMacro____x40_Init_Core___hyg_1607____closed__6; x_21 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_21, 0, x_14); lean_ctor_set(x_21, 1, x_19); @@ -1794,10 +2351,10 @@ lean_inc(x_33); x_34 = lean_ctor_get(x_2, 1); lean_inc(x_34); lean_dec(x_2); -x_35 = l_myMacro____x40_Init_Core___hyg_1357____closed__4; +x_35 = l_myMacro____x40_Init_Core___hyg_1607____closed__4; x_36 = l_Lean_addMacroScope(x_34, x_35, x_33); -x_37 = l_myMacro____x40_Init_Core___hyg_1357____closed__3; -x_38 = l_myMacro____x40_Init_Core___hyg_1357____closed__6; +x_37 = l_myMacro____x40_Init_Core___hyg_1607____closed__3; +x_38 = l_myMacro____x40_Init_Core___hyg_1607____closed__6; x_39 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_39, 0, x_31); lean_ctor_set(x_39, 1, x_37); @@ -1824,7 +2381,7 @@ return x_49; } } } -lean_object* l_unexpand____x40_Init_Core___hyg_1337_(lean_object* x_1, lean_object* x_2) { +lean_object* l_unexpand____x40_Init_Core___hyg_1587_(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; uint8_t x_4; @@ -2040,7 +2597,7 @@ x_1 = l_term___u2260_____closed__6; return x_1; } } -static lean_object* _init_l_myMacro____x40_Init_Core___hyg_1766____closed__1() { +static lean_object* _init_l_myMacro____x40_Init_Core___hyg_2016____closed__1() { _start: { lean_object* x_1; @@ -2048,22 +2605,22 @@ x_1 = lean_mk_string("Ne"); return x_1; } } -static lean_object* _init_l_myMacro____x40_Init_Core___hyg_1766____closed__2() { +static lean_object* _init_l_myMacro____x40_Init_Core___hyg_2016____closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_myMacro____x40_Init_Core___hyg_1766____closed__1; +x_1 = l_myMacro____x40_Init_Core___hyg_2016____closed__1; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_myMacro____x40_Init_Core___hyg_1766____closed__3() { +static lean_object* _init_l_myMacro____x40_Init_Core___hyg_2016____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_myMacro____x40_Init_Core___hyg_1766____closed__1; +x_1 = l_myMacro____x40_Init_Core___hyg_2016____closed__1; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_myMacro____x40_Init_Core___hyg_1766____closed__2; +x_3 = l_myMacro____x40_Init_Core___hyg_2016____closed__2; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -2071,41 +2628,41 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_myMacro____x40_Init_Core___hyg_1766____closed__4() { +static lean_object* _init_l_myMacro____x40_Init_Core___hyg_2016____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_myMacro____x40_Init_Core___hyg_1766____closed__1; +x_2 = l_myMacro____x40_Init_Core___hyg_2016____closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_myMacro____x40_Init_Core___hyg_1766____closed__5() { +static lean_object* _init_l_myMacro____x40_Init_Core___hyg_2016____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_myMacro____x40_Init_Core___hyg_1766____closed__4; +x_2 = l_myMacro____x40_Init_Core___hyg_2016____closed__4; 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_myMacro____x40_Init_Core___hyg_1766____closed__6() { +static lean_object* _init_l_myMacro____x40_Init_Core___hyg_2016____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_myMacro____x40_Init_Core___hyg_1766____closed__5; +x_2 = l_myMacro____x40_Init_Core___hyg_2016____closed__5; 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; } } -lean_object* l_myMacro____x40_Init_Core___hyg_1766_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_myMacro____x40_Init_Core___hyg_2016_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -2142,10 +2699,10 @@ lean_inc(x_15); x_16 = lean_ctor_get(x_2, 1); lean_inc(x_16); lean_dec(x_2); -x_17 = l_myMacro____x40_Init_Core___hyg_1766____closed__4; +x_17 = l_myMacro____x40_Init_Core___hyg_2016____closed__4; x_18 = l_Lean_addMacroScope(x_16, x_17, x_15); -x_19 = l_myMacro____x40_Init_Core___hyg_1766____closed__3; -x_20 = l_myMacro____x40_Init_Core___hyg_1766____closed__6; +x_19 = l_myMacro____x40_Init_Core___hyg_2016____closed__3; +x_20 = l_myMacro____x40_Init_Core___hyg_2016____closed__6; x_21 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_21, 0, x_14); lean_ctor_set(x_21, 1, x_19); @@ -2180,10 +2737,10 @@ lean_inc(x_33); x_34 = lean_ctor_get(x_2, 1); lean_inc(x_34); lean_dec(x_2); -x_35 = l_myMacro____x40_Init_Core___hyg_1766____closed__4; +x_35 = l_myMacro____x40_Init_Core___hyg_2016____closed__4; x_36 = l_Lean_addMacroScope(x_34, x_35, x_33); -x_37 = l_myMacro____x40_Init_Core___hyg_1766____closed__3; -x_38 = l_myMacro____x40_Init_Core___hyg_1766____closed__6; +x_37 = l_myMacro____x40_Init_Core___hyg_2016____closed__3; +x_38 = l_myMacro____x40_Init_Core___hyg_2016____closed__6; x_39 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_39, 0, x_31); lean_ctor_set(x_39, 1, x_37); @@ -2210,7 +2767,7 @@ return x_49; } } } -lean_object* l_unexpand____x40_Init_Core___hyg_1746_(lean_object* x_1, lean_object* x_2) { +lean_object* l_unexpand____x40_Init_Core___hyg_1996_(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; uint8_t x_4; @@ -3875,6 +4432,54 @@ l_myMacro____x40_Init_Core___hyg_956____closed__8 = _init_l_myMacro____x40_Init_ lean_mark_persistent(l_myMacro____x40_Init_Core___hyg_956____closed__8); l_myMacro____x40_Init_Core___hyg_956____closed__9 = _init_l_myMacro____x40_Init_Core___hyg_956____closed__9(); lean_mark_persistent(l_myMacro____x40_Init_Core___hyg_956____closed__9); +l_term_x7b_x7d___closed__1 = _init_l_term_x7b_x7d___closed__1(); +lean_mark_persistent(l_term_x7b_x7d___closed__1); +l_term_x7b_x7d___closed__2 = _init_l_term_x7b_x7d___closed__2(); +lean_mark_persistent(l_term_x7b_x7d___closed__2); +l_term_x7b_x7d___closed__3 = _init_l_term_x7b_x7d___closed__3(); +lean_mark_persistent(l_term_x7b_x7d___closed__3); +l_term_x7b_x7d___closed__4 = _init_l_term_x7b_x7d___closed__4(); +lean_mark_persistent(l_term_x7b_x7d___closed__4); +l_term_x7b_x7d___closed__5 = _init_l_term_x7b_x7d___closed__5(); +lean_mark_persistent(l_term_x7b_x7d___closed__5); +l_term_x7b_x7d___closed__6 = _init_l_term_x7b_x7d___closed__6(); +lean_mark_persistent(l_term_x7b_x7d___closed__6); +l_term_x7b_x7d___closed__7 = _init_l_term_x7b_x7d___closed__7(); +lean_mark_persistent(l_term_x7b_x7d___closed__7); +l_term_x7b_x7d___closed__8 = _init_l_term_x7b_x7d___closed__8(); +lean_mark_persistent(l_term_x7b_x7d___closed__8); +l_term_x7b_x7d = _init_l_term_x7b_x7d(); +lean_mark_persistent(l_term_x7b_x7d); +l_myMacro____x40_Init_Core___hyg_1203____closed__1 = _init_l_myMacro____x40_Init_Core___hyg_1203____closed__1(); +lean_mark_persistent(l_myMacro____x40_Init_Core___hyg_1203____closed__1); +l_myMacro____x40_Init_Core___hyg_1203____closed__2 = _init_l_myMacro____x40_Init_Core___hyg_1203____closed__2(); +lean_mark_persistent(l_myMacro____x40_Init_Core___hyg_1203____closed__2); +l_myMacro____x40_Init_Core___hyg_1203____closed__3 = _init_l_myMacro____x40_Init_Core___hyg_1203____closed__3(); +lean_mark_persistent(l_myMacro____x40_Init_Core___hyg_1203____closed__3); +l_myMacro____x40_Init_Core___hyg_1203____closed__4 = _init_l_myMacro____x40_Init_Core___hyg_1203____closed__4(); +lean_mark_persistent(l_myMacro____x40_Init_Core___hyg_1203____closed__4); +l_myMacro____x40_Init_Core___hyg_1203____closed__5 = _init_l_myMacro____x40_Init_Core___hyg_1203____closed__5(); +lean_mark_persistent(l_myMacro____x40_Init_Core___hyg_1203____closed__5); +l_myMacro____x40_Init_Core___hyg_1203____closed__6 = _init_l_myMacro____x40_Init_Core___hyg_1203____closed__6(); +lean_mark_persistent(l_myMacro____x40_Init_Core___hyg_1203____closed__6); +l_myMacro____x40_Init_Core___hyg_1203____closed__7 = _init_l_myMacro____x40_Init_Core___hyg_1203____closed__7(); +lean_mark_persistent(l_myMacro____x40_Init_Core___hyg_1203____closed__7); +l_myMacro____x40_Init_Core___hyg_1203____closed__8 = _init_l_myMacro____x40_Init_Core___hyg_1203____closed__8(); +lean_mark_persistent(l_myMacro____x40_Init_Core___hyg_1203____closed__8); +l_myMacro____x40_Init_Core___hyg_1203____closed__9 = _init_l_myMacro____x40_Init_Core___hyg_1203____closed__9(); +lean_mark_persistent(l_myMacro____x40_Init_Core___hyg_1203____closed__9); +l_term_u2205___closed__1 = _init_l_term_u2205___closed__1(); +lean_mark_persistent(l_term_u2205___closed__1); +l_term_u2205___closed__2 = _init_l_term_u2205___closed__2(); +lean_mark_persistent(l_term_u2205___closed__2); +l_term_u2205___closed__3 = _init_l_term_u2205___closed__3(); +lean_mark_persistent(l_term_u2205___closed__3); +l_term_u2205___closed__4 = _init_l_term_u2205___closed__4(); +lean_mark_persistent(l_term_u2205___closed__4); +l_term_u2205___closed__5 = _init_l_term_u2205___closed__5(); +lean_mark_persistent(l_term_u2205___closed__5); +l_term_u2205 = _init_l_term_u2205(); +lean_mark_persistent(l_term_u2205); l_Task_Priority_default = _init_l_Task_Priority_default(); lean_mark_persistent(l_Task_Priority_default); l_Task_Priority_max = _init_l_Task_Priority_max(); @@ -3895,18 +4500,18 @@ l_term___x21_x3d_____closed__6 = _init_l_term___x21_x3d_____closed__6(); lean_mark_persistent(l_term___x21_x3d_____closed__6); l_term___x21_x3d__ = _init_l_term___x21_x3d__(); lean_mark_persistent(l_term___x21_x3d__); -l_myMacro____x40_Init_Core___hyg_1357____closed__1 = _init_l_myMacro____x40_Init_Core___hyg_1357____closed__1(); -lean_mark_persistent(l_myMacro____x40_Init_Core___hyg_1357____closed__1); -l_myMacro____x40_Init_Core___hyg_1357____closed__2 = _init_l_myMacro____x40_Init_Core___hyg_1357____closed__2(); -lean_mark_persistent(l_myMacro____x40_Init_Core___hyg_1357____closed__2); -l_myMacro____x40_Init_Core___hyg_1357____closed__3 = _init_l_myMacro____x40_Init_Core___hyg_1357____closed__3(); -lean_mark_persistent(l_myMacro____x40_Init_Core___hyg_1357____closed__3); -l_myMacro____x40_Init_Core___hyg_1357____closed__4 = _init_l_myMacro____x40_Init_Core___hyg_1357____closed__4(); -lean_mark_persistent(l_myMacro____x40_Init_Core___hyg_1357____closed__4); -l_myMacro____x40_Init_Core___hyg_1357____closed__5 = _init_l_myMacro____x40_Init_Core___hyg_1357____closed__5(); -lean_mark_persistent(l_myMacro____x40_Init_Core___hyg_1357____closed__5); -l_myMacro____x40_Init_Core___hyg_1357____closed__6 = _init_l_myMacro____x40_Init_Core___hyg_1357____closed__6(); -lean_mark_persistent(l_myMacro____x40_Init_Core___hyg_1357____closed__6); +l_myMacro____x40_Init_Core___hyg_1607____closed__1 = _init_l_myMacro____x40_Init_Core___hyg_1607____closed__1(); +lean_mark_persistent(l_myMacro____x40_Init_Core___hyg_1607____closed__1); +l_myMacro____x40_Init_Core___hyg_1607____closed__2 = _init_l_myMacro____x40_Init_Core___hyg_1607____closed__2(); +lean_mark_persistent(l_myMacro____x40_Init_Core___hyg_1607____closed__2); +l_myMacro____x40_Init_Core___hyg_1607____closed__3 = _init_l_myMacro____x40_Init_Core___hyg_1607____closed__3(); +lean_mark_persistent(l_myMacro____x40_Init_Core___hyg_1607____closed__3); +l_myMacro____x40_Init_Core___hyg_1607____closed__4 = _init_l_myMacro____x40_Init_Core___hyg_1607____closed__4(); +lean_mark_persistent(l_myMacro____x40_Init_Core___hyg_1607____closed__4); +l_myMacro____x40_Init_Core___hyg_1607____closed__5 = _init_l_myMacro____x40_Init_Core___hyg_1607____closed__5(); +lean_mark_persistent(l_myMacro____x40_Init_Core___hyg_1607____closed__5); +l_myMacro____x40_Init_Core___hyg_1607____closed__6 = _init_l_myMacro____x40_Init_Core___hyg_1607____closed__6(); +lean_mark_persistent(l_myMacro____x40_Init_Core___hyg_1607____closed__6); l_term___u2260_____closed__1 = _init_l_term___u2260_____closed__1(); lean_mark_persistent(l_term___u2260_____closed__1); l_term___u2260_____closed__2 = _init_l_term___u2260_____closed__2(); @@ -3921,18 +4526,18 @@ l_term___u2260_____closed__6 = _init_l_term___u2260_____closed__6(); lean_mark_persistent(l_term___u2260_____closed__6); l_term___u2260__ = _init_l_term___u2260__(); lean_mark_persistent(l_term___u2260__); -l_myMacro____x40_Init_Core___hyg_1766____closed__1 = _init_l_myMacro____x40_Init_Core___hyg_1766____closed__1(); -lean_mark_persistent(l_myMacro____x40_Init_Core___hyg_1766____closed__1); -l_myMacro____x40_Init_Core___hyg_1766____closed__2 = _init_l_myMacro____x40_Init_Core___hyg_1766____closed__2(); -lean_mark_persistent(l_myMacro____x40_Init_Core___hyg_1766____closed__2); -l_myMacro____x40_Init_Core___hyg_1766____closed__3 = _init_l_myMacro____x40_Init_Core___hyg_1766____closed__3(); -lean_mark_persistent(l_myMacro____x40_Init_Core___hyg_1766____closed__3); -l_myMacro____x40_Init_Core___hyg_1766____closed__4 = _init_l_myMacro____x40_Init_Core___hyg_1766____closed__4(); -lean_mark_persistent(l_myMacro____x40_Init_Core___hyg_1766____closed__4); -l_myMacro____x40_Init_Core___hyg_1766____closed__5 = _init_l_myMacro____x40_Init_Core___hyg_1766____closed__5(); -lean_mark_persistent(l_myMacro____x40_Init_Core___hyg_1766____closed__5); -l_myMacro____x40_Init_Core___hyg_1766____closed__6 = _init_l_myMacro____x40_Init_Core___hyg_1766____closed__6(); -lean_mark_persistent(l_myMacro____x40_Init_Core___hyg_1766____closed__6); +l_myMacro____x40_Init_Core___hyg_2016____closed__1 = _init_l_myMacro____x40_Init_Core___hyg_2016____closed__1(); +lean_mark_persistent(l_myMacro____x40_Init_Core___hyg_2016____closed__1); +l_myMacro____x40_Init_Core___hyg_2016____closed__2 = _init_l_myMacro____x40_Init_Core___hyg_2016____closed__2(); +lean_mark_persistent(l_myMacro____x40_Init_Core___hyg_2016____closed__2); +l_myMacro____x40_Init_Core___hyg_2016____closed__3 = _init_l_myMacro____x40_Init_Core___hyg_2016____closed__3(); +lean_mark_persistent(l_myMacro____x40_Init_Core___hyg_2016____closed__3); +l_myMacro____x40_Init_Core___hyg_2016____closed__4 = _init_l_myMacro____x40_Init_Core___hyg_2016____closed__4(); +lean_mark_persistent(l_myMacro____x40_Init_Core___hyg_2016____closed__4); +l_myMacro____x40_Init_Core___hyg_2016____closed__5 = _init_l_myMacro____x40_Init_Core___hyg_2016____closed__5(); +lean_mark_persistent(l_myMacro____x40_Init_Core___hyg_2016____closed__5); +l_myMacro____x40_Init_Core___hyg_2016____closed__6 = _init_l_myMacro____x40_Init_Core___hyg_2016____closed__6(); +lean_mark_persistent(l_myMacro____x40_Init_Core___hyg_2016____closed__6); l_instDecidableTrue = _init_l_instDecidableTrue(); l_instDecidableFalse = _init_l_instDecidableFalse(); l_instInhabitedProp = _init_l_instInhabitedProp(); diff --git a/stage0/stdlib/Init/Data/Array/Basic.c b/stage0/stdlib/Init/Data/Array/Basic.c index 14c452e581..e05071e413 100644 --- a/stage0/stdlib/Init/Data/Array/Basic.c +++ b/stage0/stdlib/Init/Data/Array/Basic.c @@ -39,7 +39,6 @@ lean_object* l_Array_back_x3f(lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Array_forM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_div(lean_object*, lean_object*); -extern lean_object* l_addParenHeuristic___closed__2; lean_object* l_Array_reverse_rev___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mkArray___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_split___rarg___boxed(lean_object*, lean_object*); @@ -619,6 +618,7 @@ lean_object* l_Array_zipWithAux___at_Array_zip___spec__1(lean_object*, lean_obje lean_object* l_Array_foldlMUnsafe_fold___at_Array_forM___spec__1___rarg(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Array_split___spec__1(lean_object*); lean_object* l_Array_mapIdxM_map___at_Array_mapIdx___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_addParenHeuristic___closed__1; lean_object* l_Array_findSomeM_x3f(lean_object*, lean_object*, lean_object*); lean_object* l_Array_findIdxM_x3f___rarg___closed__1; lean_object* l_Array_isEqvAux_match__1___rarg(uint8_t, lean_object*, lean_object*); @@ -6953,7 +6953,7 @@ static lean_object* _init_l_Array_instReprArray___rarg___closed__1() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_addParenHeuristic___closed__2; +x_1 = l_addParenHeuristic___closed__1; x_2 = lean_string_length(x_1); return x_2; } @@ -6971,7 +6971,7 @@ static lean_object* _init_l_Array_instReprArray___rarg___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_addParenHeuristic___closed__2; +x_1 = l_addParenHeuristic___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; @@ -7699,7 +7699,7 @@ static lean_object* _init_l_term_x23_x5b___x2c_x5d___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_addParenHeuristic___closed__2; +x_1 = l_addParenHeuristic___closed__1; x_2 = lean_alloc_ctor(5, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; diff --git a/stage0/stdlib/Init/Data/Range.c b/stage0/stdlib/Init/Data/Range.c index 53e9f9baf3..a9aff895ff 100644 --- a/stage0/stdlib/Init/Data/Range.c +++ b/stage0/stdlib/Init/Data/Range.c @@ -24,7 +24,6 @@ lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_598____closed__7; lean_object* l_Std_Range_term_x5b_x3a___x3a___x5d___closed__4; lean_object* l_Std_Range_term_x5b_x3a___x5d___closed__11; lean_object* l_Std_Range_term_x5b_x3a___x5d___closed__9; -lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_911____closed__3; lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__16; extern lean_object* l_Array_empty___closed__1; @@ -78,6 +77,7 @@ lean_object* l_Std_Range_forIn_loop___rarg___lambda__1(lean_object*, lean_object lean_object* l_Std_Range_instForMRangeNat___closed__1; lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_598____closed__9; lean_object* l_Std_Range_term_x5b_x3a___x5d___closed__5; +extern lean_object* l_term_x7b_x7d___closed__3; lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__21; lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_598____closed__8; lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__13; @@ -89,6 +89,7 @@ extern lean_object* l_Lean_Parser_Syntax_addPrec___closed__10; lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_911____closed__2; extern lean_object* l_termDepIfThenElse___closed__14; lean_object* l_Std_Range_start___default; +extern lean_object* l_term_x7b_x7d___closed__5; lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_nullKind___closed__2; lean_object* l_Std_Range_term_x5b_x3a___x5d___closed__6; @@ -136,7 +137,6 @@ lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__7; lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_598____closed__5; lean_object* l_Std_Range_term_x5b___x3a___x5d___closed__3; lean_object* l_Std_Range_forIn_loop___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_addParenHeuristic___closed__1; lean_object* l_Std_Range_term_x5b_x3a___x5d___closed__10; lean_object* l_Std_Range_forIn_loop_match__1___rarg(lean_object*, lean_object*, lean_object*); static lean_object* _init_l_Std_Range_start___default() { @@ -1147,14 +1147,6 @@ lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("}"); -return x_1; -} -} lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -1190,7 +1182,7 @@ lean_inc(x_13); x_14 = lean_ctor_get(x_2, 1); lean_inc(x_14); lean_dec(x_2); -x_15 = l_addParenHeuristic___closed__1; +x_15 = l_term_x7b_x7d___closed__3; lean_inc(x_12); x_16 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_16, 0, x_12); @@ -1264,7 +1256,7 @@ x_56 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_56, 0, x_42); lean_ctor_set(x_56, 1, x_55); x_57 = lean_array_push(x_46, x_56); -x_58 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_58 = l_term_x7b_x7d___closed__5; x_59 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_59, 0, x_12); lean_ctor_set(x_59, 1, x_58); @@ -1289,7 +1281,7 @@ lean_inc(x_65); x_66 = lean_ctor_get(x_2, 1); lean_inc(x_66); lean_dec(x_2); -x_67 = l_addParenHeuristic___closed__1; +x_67 = l_term_x7b_x7d___closed__3; lean_inc(x_63); x_68 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_68, 0, x_63); @@ -1363,7 +1355,7 @@ x_108 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_108, 0, x_94); lean_ctor_set(x_108, 1, x_107); x_109 = lean_array_push(x_98, x_108); -x_110 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_110 = l_term_x7b_x7d___closed__5; x_111 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_111, 0, x_63); lean_ctor_set(x_111, 1, x_110); @@ -1516,7 +1508,7 @@ lean_inc(x_15); x_16 = lean_ctor_get(x_2, 1); lean_inc(x_16); lean_dec(x_2); -x_17 = l_addParenHeuristic___closed__1; +x_17 = l_term_x7b_x7d___closed__3; lean_inc(x_14); x_18 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_18, 0, x_14); @@ -1629,7 +1621,7 @@ x_78 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_78, 0, x_43); lean_ctor_set(x_78, 1, x_77); x_79 = lean_array_push(x_68, x_78); -x_80 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_80 = l_term_x7b_x7d___closed__5; x_81 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_81, 0, x_14); lean_ctor_set(x_81, 1, x_80); @@ -1654,7 +1646,7 @@ lean_inc(x_87); x_88 = lean_ctor_get(x_2, 1); lean_inc(x_88); lean_dec(x_2); -x_89 = l_addParenHeuristic___closed__1; +x_89 = l_term_x7b_x7d___closed__3; lean_inc(x_85); x_90 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_90, 0, x_85); @@ -1767,7 +1759,7 @@ x_150 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_150, 0, x_115); lean_ctor_set(x_150, 1, x_149); x_151 = lean_array_push(x_140, x_150); -x_152 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_152 = l_term_x7b_x7d___closed__5; x_153 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_153, 0, x_85); lean_ctor_set(x_153, 1, x_152); @@ -1898,7 +1890,7 @@ lean_inc(x_17); x_18 = lean_ctor_get(x_2, 1); lean_inc(x_18); lean_dec(x_2); -x_19 = l_addParenHeuristic___closed__1; +x_19 = l_term_x7b_x7d___closed__3; lean_inc(x_16); x_20 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_20, 0, x_16); @@ -2042,7 +2034,7 @@ x_96 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_96, 0, x_45); lean_ctor_set(x_96, 1, x_95); x_97 = lean_array_push(x_86, x_96); -x_98 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_98 = l_term_x7b_x7d___closed__5; x_99 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_99, 0, x_16); lean_ctor_set(x_99, 1, x_98); @@ -2067,7 +2059,7 @@ lean_inc(x_105); x_106 = lean_ctor_get(x_2, 1); lean_inc(x_106); lean_dec(x_2); -x_107 = l_addParenHeuristic___closed__1; +x_107 = l_term_x7b_x7d___closed__3; lean_inc(x_103); x_108 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_108, 0, x_103); @@ -2211,7 +2203,7 @@ x_184 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_184, 0, x_133); lean_ctor_set(x_184, 1, x_183); x_185 = lean_array_push(x_174, x_184); -x_186 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_186 = l_term_x7b_x7d___closed__5; x_187 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_187, 0, x_103); lean_ctor_set(x_187, 1, x_186); @@ -2265,7 +2257,7 @@ lean_inc(x_15); x_16 = lean_ctor_get(x_2, 1); lean_inc(x_16); lean_dec(x_2); -x_17 = l_addParenHeuristic___closed__1; +x_17 = l_term_x7b_x7d___closed__3; lean_inc(x_14); x_18 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_18, 0, x_14); @@ -2378,7 +2370,7 @@ x_78 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_78, 0, x_43); lean_ctor_set(x_78, 1, x_77); x_79 = lean_array_push(x_68, x_78); -x_80 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_80 = l_term_x7b_x7d___closed__5; x_81 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_81, 0, x_14); lean_ctor_set(x_81, 1, x_80); @@ -2403,7 +2395,7 @@ lean_inc(x_87); x_88 = lean_ctor_get(x_2, 1); lean_inc(x_88); lean_dec(x_2); -x_89 = l_addParenHeuristic___closed__1; +x_89 = l_term_x7b_x7d___closed__3; lean_inc(x_85); x_90 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_90, 0, x_85); @@ -2516,7 +2508,7 @@ x_150 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_150, 0, x_115); lean_ctor_set(x_150, 1, x_149); x_151 = lean_array_push(x_140, x_150); -x_152 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_152 = l_term_x7b_x7d___closed__5; x_153 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_153, 0, x_85); lean_ctor_set(x_153, 1, x_152); @@ -2658,8 +2650,6 @@ l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__20 = _init_l_Std lean_mark_persistent(l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__20); l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__21 = _init_l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__21(); lean_mark_persistent(l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__21); -l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22 = _init_l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22(); -lean_mark_persistent(l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22); l_Std_Range_myMacro____x40_Init_Data_Range___hyg_598____closed__1 = _init_l_Std_Range_myMacro____x40_Init_Data_Range___hyg_598____closed__1(); lean_mark_persistent(l_Std_Range_myMacro____x40_Init_Data_Range___hyg_598____closed__1); l_Std_Range_myMacro____x40_Init_Data_Range___hyg_598____closed__2 = _init_l_Std_Range_myMacro____x40_Init_Data_Range___hyg_598____closed__2(); diff --git a/stage0/stdlib/Init/Data/ToString/Basic.c b/stage0/stdlib/Init/Data/ToString/Basic.c index 3726de23ca..5195edf4a7 100644 --- a/stage0/stdlib/Init/Data/ToString/Basic.c +++ b/stage0/stdlib/Init/Data/ToString/Basic.c @@ -98,6 +98,7 @@ lean_object* l_List_toStringAux(lean_object*); lean_object* l_instToStringUSize(size_t); lean_object* l_instToStringIterator___boxed(lean_object*); lean_object* l_instToStringSigma(lean_object*, lean_object*); +extern lean_object* l_term_x7b_x7d___closed__3; lean_object* l_String_toInt_x21_match__1(lean_object*); lean_object* l_instToStringSum___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_instToStringSum___rarg___closed__1; @@ -158,7 +159,6 @@ extern lean_object* l_prec_x28___x29___closed__3; lean_object* l_instToStringDecidable_match__1(lean_object*, lean_object*); lean_object* l_OptionT_instAlternativeOptionT___rarg(lean_object*); lean_object* l_instToStringULift___rarg(lean_object*, lean_object*); -lean_object* l_addParenHeuristic___closed__3; lean_object* l_instToStringProd(lean_object*, lean_object*); lean_object* l_String_toNat_x3f(lean_object*); lean_object* l_OptionT_instMonadOptionT___rarg(lean_object*); @@ -927,19 +927,11 @@ static lean_object* _init_l_addParenHeuristic___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string("{"); -return x_1; -} -} -static lean_object* _init_l_addParenHeuristic___closed__2() { -_start: -{ -lean_object* x_1; x_1 = lean_mk_string("#["); return x_1; } } -static lean_object* _init_l_addParenHeuristic___closed__3() { +static lean_object* _init_l_addParenHeuristic___closed__2() { _start: { lean_object* x_1; @@ -961,18 +953,18 @@ x_5 = l_String_isPrefixOf(x_4, x_1); if (x_5 == 0) { lean_object* x_6; uint8_t x_7; -x_6 = l_addParenHeuristic___closed__1; +x_6 = l_term_x7b_x7d___closed__3; x_7 = l_String_isPrefixOf(x_6, x_1); if (x_7 == 0) { lean_object* x_8; uint8_t x_9; -x_8 = l_addParenHeuristic___closed__2; +x_8 = l_addParenHeuristic___closed__1; x_9 = l_String_isPrefixOf(x_8, x_1); if (x_9 == 0) { lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; x_10 = lean_string_utf8_byte_size(x_1); -x_11 = l_addParenHeuristic___closed__3; +x_11 = l_addParenHeuristic___closed__2; x_12 = lean_unsigned_to_nat(0u); x_13 = l_String_anyAux_loop(x_1, x_10, x_11, x_12); lean_dec(x_10); @@ -1783,8 +1775,6 @@ l_addParenHeuristic___closed__1 = _init_l_addParenHeuristic___closed__1(); lean_mark_persistent(l_addParenHeuristic___closed__1); l_addParenHeuristic___closed__2 = _init_l_addParenHeuristic___closed__2(); lean_mark_persistent(l_addParenHeuristic___closed__2); -l_addParenHeuristic___closed__3 = _init_l_addParenHeuristic___closed__3(); -lean_mark_persistent(l_addParenHeuristic___closed__3); l_instToStringOption___rarg___closed__1 = _init_l_instToStringOption___rarg___closed__1(); lean_mark_persistent(l_instToStringOption___rarg___closed__1); l_instToStringSum___rarg___closed__1 = _init_l_instToStringSum___rarg___closed__1(); diff --git a/stage0/stdlib/Init/NotationExtra.c b/stage0/stdlib/Init/NotationExtra.c index 578c933eef..38bd3e44ca 100644 --- a/stage0/stdlib/Init/NotationExtra.c +++ b/stage0/stdlib/Init/NotationExtra.c @@ -76,7 +76,6 @@ extern lean_object* l_Lean_Parser_Tactic_intro___closed__4; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); lean_object* l_term_u03a3___x2c_____closed__5; extern lean_object* l_Lean_identKind___closed__2; -lean_object* l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__3___lambda__2___closed__3; lean_object* l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__4___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_16268____closed__8; lean_object* l_term___xd7____1; @@ -259,6 +258,7 @@ lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__6; lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__1; lean_object* l_Array_forInUnsafe_loop___at___private_Init_NotationExtra_0__Lean_mkHintBody___spec__1___closed__3; lean_object* l_Lean_command__Unif__hint______Where___x7c_x2d_u22a2_____closed__11; +extern lean_object* l_term_x7b_x7d___closed__3; lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__22; lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_unexpand____x40_Init_Notation___hyg_2258____spec__1(lean_object*); lean_object* l_termExists___x2c_____closed__3; @@ -287,6 +287,7 @@ lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_36____closed__4; lean_object* l_term_u03a3___x2c_____closed__3; lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__34; +extern lean_object* l_term_x7b_x7d___closed__5; lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__13; lean_object* l_myMacro____x40_Init_NotationExtra___hyg_7451____boxed(lean_object*, lean_object*, lean_object*); @@ -488,7 +489,6 @@ extern lean_object* l_myMacro____x40_Init_Notation___hyg_15342____closed__11; lean_object* l_Lean_command__Unif__hint______Where___x7c_x2d_u22a2_____closed__4; lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__13; lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Syntax_SepArray_getElems___spec__1(lean_object*, size_t, size_t, lean_object*); -extern lean_object* l_addParenHeuristic___closed__1; lean_object* l_Array_foldrMUnsafe_fold___at_myMacro____x40_Init_NotationExtra___hyg_5248____spec__4(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__8; extern lean_object* l_myMacro____x40_Init_Notation___hyg_16821____closed__2; @@ -7865,14 +7865,6 @@ x_1 = lean_mk_string("implicitBinder"); return x_1; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__3___lambda__2___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("}"); -return x_1; -} -} lean_object* l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__3___lambda__2(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, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { @@ -7925,7 +7917,7 @@ lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean x_28 = lean_ctor_get(x_26, 0); x_29 = l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__3___lambda__2___closed__2; x_30 = lean_name_mk_string(x_7, x_29); -x_31 = l_addParenHeuristic___closed__1; +x_31 = l_term_x7b_x7d___closed__3; lean_inc(x_28); x_32 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_32, 0, x_28); @@ -7943,7 +7935,7 @@ x_38 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_38, 0, x_35); lean_ctor_set(x_38, 1, x_8); x_39 = lean_array_push(x_37, x_38); -x_40 = l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__3___lambda__2___closed__3; +x_40 = l_term_x7b_x7d___closed__5; x_41 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_41, 0, x_28); lean_ctor_set(x_41, 1, x_40); @@ -7983,7 +7975,7 @@ lean_inc(x_56); lean_dec(x_26); x_58 = l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__3___lambda__2___closed__2; x_59 = lean_name_mk_string(x_7, x_58); -x_60 = l_addParenHeuristic___closed__1; +x_60 = l_term_x7b_x7d___closed__3; lean_inc(x_56); x_61 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_61, 0, x_56); @@ -8001,7 +7993,7 @@ x_67 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_67, 0, x_64); lean_ctor_set(x_67, 1, x_8); x_68 = lean_array_push(x_66, x_67); -x_69 = l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__3___lambda__2___closed__3; +x_69 = l_term_x7b_x7d___closed__5; x_70 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_70, 0, x_56); lean_ctor_set(x_70, 1, x_69); @@ -11775,8 +11767,6 @@ l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____sp lean_mark_persistent(l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__3___lambda__2___closed__1); l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__3___lambda__2___closed__2 = _init_l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__3___lambda__2___closed__2(); lean_mark_persistent(l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__3___lambda__2___closed__2); -l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__3___lambda__2___closed__3 = _init_l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__3___lambda__2___closed__3(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__3___lambda__2___closed__3); l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__3___closed__1 = _init_l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__3___closed__1(); lean_mark_persistent(l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__3___closed__1); l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__3___closed__2 = _init_l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__3___closed__2(); diff --git a/stage0/stdlib/Lean/Compiler/IR/EmitC.c b/stage0/stdlib/Lean/Compiler/IR/EmitC.c index 2a3cc5c0ec..7f8be54168 100644 --- a/stage0/stdlib/Lean/Compiler/IR/EmitC.c +++ b/stage0/stdlib/Lean/Compiler/IR/EmitC.c @@ -103,7 +103,6 @@ lean_object* l_Lean_IR_EmitC_emitInc___closed__5; lean_object* l_Lean_IR_EmitC_isTailCall_match__1(lean_object*); lean_object* l_Lean_IR_EmitC_emitSProj___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_EmitC_emitMainFn___lambda__2___closed__20; -extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; lean_object* l_Lean_IR_EmitC_emitBlock_match__1(lean_object*); lean_object* l_Lean_IR_EmitC_isIf_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Nat_forM_loop___at_Lean_IR_EmitC_emitDeclAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -340,6 +339,7 @@ lean_object* l_Lean_IR_EmitC_emitSSet_match__1___rarg(lean_object*, lean_object* lean_object* l_Lean_IR_emitC_match__1(lean_object*); lean_object* l_Lean_IR_EmitC_emitInitFn___boxed(lean_object*, lean_object*); uint32_t l_Nat_digitChar(lean_object*); +extern lean_object* l_term_x7b_x7d___closed__3; lean_object* l_Lean_IR_EmitC_emitDeclAux_match__1___rarg(lean_object*, lean_object*); size_t lean_usize_modn(size_t, lean_object*); lean_object* l_Lean_IR_EmitC_throwInvalidExportName(lean_object*); @@ -383,6 +383,7 @@ lean_object* l_Lean_IR_EmitC_emitFnBody(lean_object*, lean_object*, lean_object* lean_object* l_Lean_IR_EmitC_emitMainFn___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_List_foldr___at_Lean_IR_EmitC_hasMainFn___spec__1(uint8_t, lean_object*); lean_object* l_Lean_IR_ensureHasDefault(lean_object*); +extern lean_object* l_term_x7b_x7d___closed__5; lean_object* l_Nat_forM_loop___at_Lean_IR_EmitC_emitArgs___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_EmitC_emitUProj___closed__1; lean_object* l_Lean_IR_EmitC_emitUnbox___closed__3; @@ -616,7 +617,6 @@ lean_object* l_Lean_IR_EmitC_emitFileHeader___closed__10; lean_object* l_Lean_IR_EmitC_getModName(lean_object*, lean_object*); lean_object* l_Lean_IR_EmitC_emitSSet___closed__2; lean_object* l_Lean_IR_EmitC_emitMainFn___lambda__2___closed__28; -extern lean_object* l_addParenHeuristic___closed__1; lean_object* l_Lean_IR_EmitC_quoteString(lean_object*); lean_object* l_Lean_IR_EmitC_emitMainFn___lambda__2___closed__14; lean_object* l_Lean_IR_EmitC_emitDeclAux___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -3149,7 +3149,7 @@ lean_object* l_Lean_IR_EmitC_emitMainFn___lambda__1(lean_object* x_1, lean_objec _start: { 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; 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; uint8_t x_26; -x_5 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_5 = l_term_x7b_x7d___closed__5; x_6 = lean_string_append(x_4, x_5); x_7 = l___private_Init_Data_Format_Basic_0__Std_Format_pushNewline___closed__1; x_8 = lean_string_append(x_6, x_7); @@ -3332,7 +3332,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_2 = l_term_x7b_x7d___closed__5; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); @@ -4492,7 +4492,7 @@ static lean_object* _init_l_Lean_IR_EmitC_emitFileFooter___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_1 = l_term_x7b_x7d___closed__5; x_2 = l_Lean_IR_EmitC_emitFileHeader___closed__3; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -6997,7 +6997,7 @@ lean_dec(x_39); x_40 = l_Lean_IR_EmitC_emitReset___closed__4; x_41 = lean_string_append(x_38, x_40); x_42 = lean_string_append(x_41, x_14); -x_43 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_43 = l_term_x7b_x7d___closed__5; x_44 = lean_string_append(x_42, x_43); x_45 = lean_string_append(x_44, x_14); x_46 = lean_box(0); @@ -7014,7 +7014,7 @@ lean_dec(x_36); x_48 = l_Lean_IR_EmitC_emitReset___closed__4; x_49 = lean_string_append(x_47, x_48); x_50 = lean_string_append(x_49, x_14); -x_51 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_51 = l_term_x7b_x7d___closed__5; x_52 = lean_string_append(x_50, x_51); x_53 = lean_string_append(x_52, x_14); x_54 = lean_box(0); @@ -7049,7 +7049,7 @@ lean_object* l_Lean_IR_EmitC_emitReuse___lambda__1(lean_object* x_1, lean_object _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_6 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_6 = l_term_x7b_x7d___closed__5; x_7 = lean_string_append(x_5, x_6); x_8 = l___private_Init_Data_Format_Basic_0__Std_Format_pushNewline___closed__1; x_9 = lean_string_append(x_7, x_8); @@ -10624,7 +10624,7 @@ return x_12; else { 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; -x_13 = l_addParenHeuristic___closed__1; +x_13 = l_term_x7b_x7d___closed__3; x_14 = lean_string_append(x_5, x_13); x_15 = l___private_Init_Data_Format_Basic_0__Std_Format_pushNewline___closed__1; x_16 = lean_string_append(x_14, x_15); @@ -10640,7 +10640,7 @@ lean_dec(x_17); x_21 = lean_ctor_get(x_20, 1); lean_inc(x_21); lean_dec(x_20); -x_22 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_22 = l_term_x7b_x7d___closed__5; x_23 = lean_string_append(x_21, x_22); x_24 = lean_string_append(x_23, x_15); x_25 = lean_box(0); @@ -11365,7 +11365,7 @@ lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_ x_9 = lean_ctor_get(x_7, 1); x_10 = lean_ctor_get(x_7, 0); lean_dec(x_10); -x_11 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_11 = l_term_x7b_x7d___closed__5; x_12 = lean_string_append(x_9, x_11); x_13 = l___private_Init_Data_Format_Basic_0__Std_Format_pushNewline___closed__1; x_14 = lean_string_append(x_12, x_13); @@ -11380,7 +11380,7 @@ lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean x_16 = lean_ctor_get(x_7, 1); lean_inc(x_16); lean_dec(x_7); -x_17 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_17 = l_term_x7b_x7d___closed__5; x_18 = lean_string_append(x_16, x_17); x_19 = l___private_Init_Data_Format_Basic_0__Std_Format_pushNewline___closed__1; x_20 = lean_string_append(x_18, x_19); @@ -11444,7 +11444,7 @@ lean_object* l_Lean_IR_EmitC_emitFnBody(lean_object* x_1, lean_object* x_2, lean _start: { lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_4 = l_addParenHeuristic___closed__1; +x_4 = l_term_x7b_x7d___closed__3; x_5 = lean_string_append(x_3, x_4); x_6 = l___private_Init_Data_Format_Basic_0__Std_Format_pushNewline___closed__1; x_7 = lean_string_append(x_5, x_6); @@ -12208,7 +12208,7 @@ lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_dec(x_18); lean_dec(x_17); lean_dec(x_4); -x_21 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_21 = l_term_x7b_x7d___closed__5; x_22 = lean_string_append(x_16, x_21); x_23 = lean_string_append(x_22, x_15); x_24 = lean_box(0); @@ -12226,7 +12226,7 @@ lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_dec(x_18); lean_dec(x_17); lean_dec(x_4); -x_26 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_26 = l_term_x7b_x7d___closed__5; x_27 = lean_string_append(x_16, x_26); x_28 = lean_string_append(x_27, x_15); x_29 = lean_box(0); @@ -12254,7 +12254,7 @@ lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean x_35 = lean_ctor_get(x_33, 1); x_36 = lean_ctor_get(x_33, 0); lean_dec(x_36); -x_37 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_37 = l_term_x7b_x7d___closed__5; x_38 = lean_string_append(x_35, x_37); x_39 = lean_string_append(x_38, x_15); lean_ctor_set(x_33, 1, x_39); @@ -12267,7 +12267,7 @@ lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean x_40 = lean_ctor_get(x_33, 1); lean_inc(x_40); lean_dec(x_33); -x_41 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_41 = l_term_x7b_x7d___closed__5; x_42 = lean_string_append(x_40, x_41); x_43 = lean_string_append(x_42, x_15); x_44 = lean_alloc_ctor(0, 2, 0); @@ -12321,7 +12321,7 @@ lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean lean_dec(x_55); lean_dec(x_54); lean_dec(x_4); -x_58 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_58 = l_term_x7b_x7d___closed__5; x_59 = lean_string_append(x_53, x_58); x_60 = lean_string_append(x_59, x_52); x_61 = lean_box(0); @@ -12340,7 +12340,7 @@ lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean lean_dec(x_55); lean_dec(x_54); lean_dec(x_4); -x_64 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_64 = l_term_x7b_x7d___closed__5; x_65 = lean_string_append(x_53, x_64); x_66 = lean_string_append(x_65, x_52); x_67 = lean_box(0); @@ -12371,7 +12371,7 @@ if (lean_is_exclusive(x_72)) { lean_dec_ref(x_72); x_74 = lean_box(0); } -x_75 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_75 = l_term_x7b_x7d___closed__5; x_76 = lean_string_append(x_73, x_75); x_77 = lean_string_append(x_76, x_52); if (lean_is_scalar(x_74)) { @@ -12761,7 +12761,7 @@ lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean x_16 = lean_ctor_get(x_14, 1); x_17 = lean_ctor_get(x_14, 0); lean_dec(x_17); -x_18 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_18 = l_term_x7b_x7d___closed__5; x_19 = lean_string_append(x_16, x_18); x_20 = lean_string_append(x_19, x_9); x_21 = lean_box(0); @@ -12775,7 +12775,7 @@ lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean x_22 = lean_ctor_get(x_14, 1); lean_inc(x_22); lean_dec(x_14); -x_23 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_23 = l_term_x7b_x7d___closed__5; x_24 = lean_string_append(x_22, x_23); x_25 = lean_string_append(x_24, x_9); x_26 = lean_box(0); @@ -12838,7 +12838,7 @@ if (lean_is_exclusive(x_36)) { lean_dec_ref(x_36); x_38 = lean_box(0); } -x_39 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_39 = l_term_x7b_x7d___closed__5; x_40 = lean_string_append(x_37, x_39); x_41 = lean_string_append(x_40, x_9); x_42 = lean_box(0); diff --git a/stage0/stdlib/Lean/Compiler/IR/Format.c b/stage0/stdlib/Lean/Compiler/IR/Format.c index 4c69ae8e5f..2cfd26c155 100644 --- a/stage0/stdlib/Lean/Compiler/IR/Format.c +++ b/stage0/stdlib/Lean/Compiler/IR/Format.c @@ -50,7 +50,6 @@ lean_object* l_Lean_IR_formatAlt___closed__1; lean_object* l___private_Lean_Compiler_IR_Format_0__Lean_IR_formatIRType___closed__8; lean_object* l___private_Lean_Compiler_IR_Format_0__Lean_IR_formatIRType___closed__17; lean_object* l_Lean_IR_formatFnBodyHead___closed__24; -extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; extern lean_object* l_Std_Format_join___closed__1; lean_object* l___private_Lean_Compiler_IR_Format_0__Lean_IR_formatExpr___closed__22; lean_object* l_Lean_IR_instToStringIRType___closed__1; @@ -131,6 +130,7 @@ lean_object* l___private_Lean_Compiler_IR_Format_0__Lean_IR_formatExpr___closed_ lean_object* l_Lean_IR_instToStringDecl___closed__1; lean_object* l_Lean_IR_formatArray___at___private_Lean_Compiler_IR_Format_0__Lean_IR_formatExpr___spec__1(lean_object*); lean_object* l_Lean_IR_formatFnBody_loop___closed__2; +extern lean_object* l_term_x7b_x7d___closed__3; lean_object* l_Lean_IR_formatArray___at___private_Lean_Compiler_IR_Format_0__Lean_IR_formatExpr___spec__1___boxed(lean_object*); extern lean_object* l_Std_Format_paren___closed__4; lean_object* l_Lean_IR_instToStringIRType; @@ -143,6 +143,7 @@ size_t lean_usize_of_nat(lean_object*); extern lean_object* l_Std_Format_sbracket___closed__3; lean_object* l_Lean_IR_instToFormatParam___closed__1; lean_object* l_Lean_IR_formatFnBodyHead___closed__31; +extern lean_object* l_term_x7b_x7d___closed__5; lean_object* l_Lean_IR_formatFnBody_loop___closed__4; lean_object* lean_ir_decl_to_string(lean_object*); lean_object* l_Lean_IR_formatFnBodyHead___closed__27; @@ -231,7 +232,6 @@ lean_object* l_Lean_IR_formatFnBody_loop___closed__3; lean_object* l_Lean_IR_instToFormatExpr; lean_object* l_Lean_IR_formatFnBody(lean_object*, lean_object*); lean_object* l_Lean_IR_formatFnBodyHead___closed__35; -extern lean_object* l_addParenHeuristic___closed__1; lean_object* l_Lean_IR_formatFnBodyHead___closed__21; lean_object* l___private_Lean_Compiler_IR_Format_0__Lean_IR_formatArg_match__1(lean_object*); lean_object* l_Lean_IR_formatArray___rarg___boxed(lean_object*, lean_object*); @@ -2232,7 +2232,7 @@ static lean_object* _init_l___private_Lean_Compiler_IR_Format_0__Lean_IR_formatI _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_addParenHeuristic___closed__1; +x_1 = l_term_x7b_x7d___closed__3; x_2 = lean_string_length(x_1); return x_2; } @@ -2250,7 +2250,7 @@ static lean_object* _init_l___private_Lean_Compiler_IR_Format_0__Lean_IR_formatI _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_addParenHeuristic___closed__1; +x_1 = l_term_x7b_x7d___closed__3; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; @@ -2260,7 +2260,7 @@ static lean_object* _init_l___private_Lean_Compiler_IR_Format_0__Lean_IR_formatI _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_1 = l_term_x7b_x7d___closed__5; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; diff --git a/stage0/stdlib/Lean/Data/Json/Printer.c b/stage0/stdlib/Lean/Data/Json/Printer.c index a6750da0db..f279d2b3c3 100644 --- a/stage0/stdlib/Lean/Data/Json/Printer.c +++ b/stage0/stdlib/Lean/Data/Json/Printer.c @@ -27,7 +27,6 @@ lean_object* l___private_Lean_Data_Json_Printer_0__Lean_Json_escapeAux___closed_ lean_object* l_Lean_Json_render___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Json_compress___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); -extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; lean_object* l_Lean_JsonNumber_toString(lean_object*); extern lean_object* l_instReprProd___rarg___closed__2; extern lean_object* l_Lean_instInhabitedParserDescr___closed__1; @@ -57,10 +56,12 @@ lean_object* lean_array_to_list(lean_object*, lean_object*); lean_object* l_Lean_Json_renderString___boxed(lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Json_compress___spec__1(size_t, size_t, lean_object*); uint32_t l_Nat_digitChar(lean_object*); +extern lean_object* l_term_x7b_x7d___closed__3; lean_object* l_Std_Format_joinSep___rarg(lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); extern lean_object* l_Lean_nullKind___closed__1; extern lean_object* l_Std_Format_sbracket___closed__3; +extern lean_object* l_term_x7b_x7d___closed__5; lean_object* l_Array_mapMUnsafe_map___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*); extern lean_object* l_Char_quoteCore___closed__3; lean_object* l_Lean_Json_render___closed__5; @@ -89,7 +90,6 @@ lean_object* l_Lean_Json_render___closed__7; lean_object* lean_nat_to_int(lean_object*); lean_object* l_Lean_Json_render_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_string_mk(lean_object*); -extern lean_object* l_addParenHeuristic___closed__1; extern lean_object* l_term_x5b___x5d___closed__3; static lean_object* _init_l___private_Lean_Data_Json_Printer_0__Lean_Json_escapeAux___closed__1() { _start: @@ -486,7 +486,7 @@ static lean_object* _init_l_Lean_Json_render___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_addParenHeuristic___closed__1; +x_1 = l_term_x7b_x7d___closed__3; x_2 = lean_string_length(x_1); return x_2; } @@ -504,7 +504,7 @@ static lean_object* _init_l_Lean_Json_render___closed__7() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_addParenHeuristic___closed__1; +x_1 = l_term_x7b_x7d___closed__3; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; @@ -514,7 +514,7 @@ static lean_object* _init_l_Lean_Json_render___closed__8() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_1 = l_term_x7b_x7d___closed__5; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; @@ -808,10 +808,10 @@ x_25 = lean_box(0); x_26 = l_Std_RBNode_fold___at_Lean_Json_compress___spec__2(x_25, x_24); x_27 = l_myMacro____x40_Init_Notation___hyg_1346____closed__7; x_28 = l_String_intercalate(x_27, x_26); -x_29 = l_addParenHeuristic___closed__1; +x_29 = l_term_x7b_x7d___closed__3; x_30 = lean_string_append(x_29, x_28); lean_dec(x_28); -x_31 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_31 = l_term_x7b_x7d___closed__5; x_32 = lean_string_append(x_30, x_31); return x_32; } diff --git a/stage0/stdlib/Lean/Elab/Binders.c b/stage0/stdlib/Lean/Elab/Binders.c index 6779d737bc..3e2381863e 100644 --- a/stage0/stdlib/Lean/Elab/Binders.c +++ b/stage0/stdlib/Lean/Elab/Binders.c @@ -23677,17 +23677,17 @@ lean_dec(x_3); if (x_2 == 0) { lean_object* x_7; lean_object* x_8; -lean_dec(x_5); +lean_dec(x_6); x_7 = lean_box(0); -x_8 = lean_apply_1(x_6, x_7); +x_8 = lean_apply_1(x_5, x_7); return x_8; } else { lean_object* x_9; lean_object* x_10; -lean_dec(x_6); +lean_dec(x_5); x_9 = lean_box(0); -x_10 = lean_apply_1(x_5, x_9); +x_10 = lean_apply_1(x_6, x_9); return x_10; } } @@ -24109,25 +24109,25 @@ if (x_3 == 0) { if (x_4 == 0) { -lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; -lean_dec(x_174); -x_175 = l_Lean_instInhabitedSyntax; -x_176 = l_Lean_Elab_Term_elabLetDeclCore___closed__2; -x_177 = lean_panic_fn(x_175, x_176); -lean_inc(x_177); +lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; +x_175 = l_Lean_Parser_Term_let__fun___elambda__1___closed__2; +x_176 = l_Lean_Syntax_setKind(x_174, x_175); +lean_inc(x_176); lean_inc(x_1); -x_178 = lean_alloc_closure((void*)(l_Lean_Elab_Term_adaptExpander___lambda__1), 10, 3); -lean_closure_set(x_178, 0, x_1); -lean_closure_set(x_178, 1, x_177); -lean_closure_set(x_178, 2, x_2); -x_179 = l_Lean_Elab_withMacroExpansionInfo___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__2(x_1, x_177, x_178, x_5, x_6, x_7, x_8, x_9, x_10, x_100); -return x_179; +x_177 = lean_alloc_closure((void*)(l_Lean_Elab_Term_adaptExpander___lambda__1), 10, 3); +lean_closure_set(x_177, 0, x_1); +lean_closure_set(x_177, 1, x_176); +lean_closure_set(x_177, 2, x_2); +x_178 = l_Lean_Elab_withMacroExpansionInfo___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__2(x_1, x_176, x_177, x_5, x_6, x_7, x_8, x_9, x_10, x_100); +return x_178; } else { -lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; -x_180 = l_Lean_Parser_Term_let__fun___elambda__1___closed__2; -x_181 = l_Lean_Syntax_setKind(x_174, x_180); +lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; +lean_dec(x_174); +x_179 = l_Lean_instInhabitedSyntax; +x_180 = l_Lean_Elab_Term_elabLetDeclCore___closed__2; +x_181 = lean_panic_fn(x_179, x_180); lean_inc(x_181); lean_inc(x_1); x_182 = lean_alloc_closure((void*)(l_Lean_Elab_Term_adaptExpander___lambda__1), 10, 3); diff --git a/stage0/stdlib/Lean/Elab/BuiltinNotation.c b/stage0/stdlib/Lean/Elab/BuiltinNotation.c index f95da0044c..5edee77748 100644 --- a/stage0/stdlib/Lean/Elab/BuiltinNotation.c +++ b/stage0/stdlib/Lean/Elab/BuiltinNotation.c @@ -79,6 +79,7 @@ extern lean_object* l_Lean_Parser_Term_subst___elambda__1___closed__1; extern lean_object* l_Lean_Parser_Term_unreachable___elambda__1___closed__2; uint8_t l_Lean_Syntax_structEq(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux_match__1(lean_object*); +lean_object* l_Lean_Elab_Term_expandHave___lambda__5___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_elabSorry___closed__10; extern lean_object* l_Lean_Parser_Term_anonymousCtor___elambda__1___closed__2; lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__12; @@ -100,7 +101,7 @@ lean_object* l___regBuiltin_Lean_Elab_Term_elabNoindex(lean_object*); lean_object* l_Lean_Elab_Term_elabSorry___closed__7; extern lean_object* l_myMacro____x40_Init_Notation___hyg_14734____closed__12; lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___lambda__1___closed__2; -lean_object* l_Lean_Elab_Term_expandHave___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_expandHave___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_termS_x21_____closed__3; lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___lambda__1___closed__8; lean_object* l_Lean_mkIdentFrom(lean_object*, lean_object*); @@ -141,6 +142,7 @@ extern lean_object* l_myMacro____x40_Init_Notation___hyg_23663____closed__1; lean_object* lean_string_utf8_byte_size(lean_object*); extern lean_object* l_Lean_Parser_Term_tupleTail___elambda__1___closed__2; extern lean_object* l_Lean_Parser_Term_noindex___elambda__1___closed__2; +lean_object* l_Lean_Elab_Term_expandHave___lambda__6(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_object*); lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getMainModule___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabAnonymousCtor___closed__6; @@ -165,10 +167,12 @@ extern lean_object* l_Array_myMacro____x40_Init_Data_Array_Subarray___hyg_947___ lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__7; lean_object* l_Lean_Meta_DiscrTree_mkNoindexAnnotation(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabNoindex___closed__1; +lean_object* l_Lean_Elab_Term_expandHave___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_liftMacroM___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_myMacro____x40_Init_Notation___hyg_113____spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabPanic___closed__10; -lean_object* l_Lean_Elab_Term_expandHave___lambda__3(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_Parser_Term_letPatDecl___closed__1; +lean_object* l_Lean_Elab_Term_expandHave___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandShow___closed__2; lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__1(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_hasCDot_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -235,7 +239,7 @@ extern lean_object* l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda lean_object* l_Lean_Elab_Term_elabCDotFunctionAlias_x3f_match__2(lean_object*); lean_object* l_Lean_Elab_getRefPosition___at_Lean_Elab_Term_elabPanic___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabAnonymousCtor___closed__4; -lean_object* l_Lean_Elab_Term_expandHave___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*, lean_object*); +lean_object* l_Lean_Elab_Term_expandHave___lambda__1___boxed(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_match__2(lean_object*); lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___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_throwUnsupportedSyntax___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -260,6 +264,7 @@ lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageCo lean_object* l___regBuiltin_Lean_Elab_Term_elabParen___closed__1; lean_object* l_Lean_Elab_Term_elabLeadingParserMacro___closed__1; extern lean_object* l_myMacro____x40_Init_Notation___hyg_15342____closed__14; +lean_object* l_Lean_Elab_Term_expandHave___lambda__6___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*); extern lean_object* l_Lean_Parser_maxPrec; lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabParen___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -273,6 +278,7 @@ lean_object* l_Lean_Elab_Term_elabStateRefT___lambda__2___boxed(lean_object*, le lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_hasCDot___spec__1___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_16821____closed__12; lean_object* l_Lean_Elab_Term_elabAnonymousCtor___closed__9; +extern lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20488____closed__3; lean_object* l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandShow(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabStateRefT___lambda__2___closed__1; @@ -309,7 +315,7 @@ lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserM size_t lean_usize_of_nat(lean_object*); extern lean_object* l_Lean_Syntax_mkAntiquotNode___closed__9; extern lean_object* l_term___x2b_x2b_____closed__2; -lean_object* l_Lean_Elab_Term_expandHave___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* l_Lean_Elab_Term_expandHave___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabSorry___closed__1; lean_object* l_Lean_Elab_Term_elabAnonymousCtor___closed__10; extern lean_object* l_Lean_Parser_Term_cdot___elambda__1___closed__2; @@ -325,6 +331,7 @@ lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserM lean_object* l_Lean_Elab_Term_elabStateRefT___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_expandSuffices___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_nullKind___closed__2; +lean_object* l_Lean_Elab_Term_expandHave___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_List_beq___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabAnonymousCtor_match__2(lean_object*); lean_object* l_Lean_Meta_matchEq_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -396,7 +403,7 @@ lean_object* l_Lean_Elab_Term_expandParen___closed__2; extern lean_object* l_Lean_Parser_Term_panic___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_elabType(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_expandHave___lambda__2___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_expandHave___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_borrowed___elambda__1___closed__2; lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabPanic___closed__2; @@ -517,7 +524,7 @@ lean_object* l___regBuiltin_Lean_Elab_Term_elabBorrowed___closed__1; extern lean_object* l_instReprSigma___rarg___closed__6; lean_object* l_Lean_Meta_kabstract(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_14734____closed__8; -lean_object* l_Lean_Elab_Term_expandHave___lambda__1(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_expandHave___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabStateRefT(lean_object*); lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__4; @@ -527,6 +534,7 @@ lean_object* l_Lean_Elab_Term_elabSubst_match__2___rarg(lean_object*, lean_objec lean_object* l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro___closed__1; lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___lambda__1___closed__12; lean_object* l_Lean_Elab_Term_elabSubst___closed__6; +lean_object* l_Lean_Elab_Term_expandHave___lambda__4___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* l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor___closed__1; extern lean_object* l_Lean_Meta_mkSorry___closed__2; extern lean_object* l_myMacro____x40_Init_Notation___hyg_16821____closed__6; @@ -2472,7 +2480,413 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_expandHave_match__1___rarg), 3 return x_2; } } -lean_object* l_Lean_Elab_Term_expandHave___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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l_Lean_Elab_Term_expandHave___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; uint8_t x_11; +x_8 = lean_unsigned_to_nat(3u); +x_9 = l_Lean_Syntax_getArg(x_1, x_8); +x_10 = l_Lean_MonadRef_mkInfoFromRefPos___at_myMacro____x40_Init_Notation___hyg_113____spec__1(x_6, x_7); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +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; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; 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; +x_12 = lean_ctor_get(x_10, 0); +x_13 = l_Lean_Parser_Term_let__fun___elambda__1___closed__1; +lean_inc(x_2); +x_14 = lean_name_mk_string(x_2, x_13); +lean_inc(x_12); +x_15 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_15, 0, x_12); +lean_ctor_set(x_15, 1, x_13); +x_16 = l_Array_empty___closed__1; +x_17 = lean_array_push(x_16, x_15); +x_18 = l_myMacro____x40_Init_Notation___hyg_16821____closed__3; +lean_inc(x_2); +x_19 = lean_name_mk_string(x_2, x_18); +x_20 = l_Lean_Parser_Term_letPatDecl___closed__1; +x_21 = lean_name_mk_string(x_2, x_20); +x_22 = lean_array_push(x_16, x_3); +x_23 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; +x_24 = lean_array_push(x_22, x_23); +x_25 = lean_array_push(x_24, x_23); +x_26 = l_myMacro____x40_Init_Notation___hyg_16821____closed__11; +lean_inc(x_12); +x_27 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_27, 0, x_12); +lean_ctor_set(x_27, 1, x_26); +x_28 = lean_array_push(x_25, x_27); +x_29 = lean_array_push(x_28, x_4); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_21); +lean_ctor_set(x_30, 1, x_29); +x_31 = lean_array_push(x_16, x_30); +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_19); +lean_ctor_set(x_32, 1, x_31); +x_33 = lean_array_push(x_17, x_32); +x_34 = l_myMacro____x40_Init_Notation___hyg_16821____closed__12; +x_35 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_35, 0, x_12); +lean_ctor_set(x_35, 1, x_34); +x_36 = lean_array_push(x_16, x_35); +x_37 = l_Lean_nullKind___closed__2; +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_36); +x_39 = lean_array_push(x_33, x_38); +x_40 = lean_array_push(x_39, x_9); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_14); +lean_ctor_set(x_41, 1, x_40); +lean_ctor_set(x_10, 0, x_41); +return x_10; +} +else +{ +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; 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; +x_42 = lean_ctor_get(x_10, 0); +x_43 = lean_ctor_get(x_10, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_10); +x_44 = l_Lean_Parser_Term_let__fun___elambda__1___closed__1; +lean_inc(x_2); +x_45 = lean_name_mk_string(x_2, x_44); +lean_inc(x_42); +x_46 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_46, 0, x_42); +lean_ctor_set(x_46, 1, x_44); +x_47 = l_Array_empty___closed__1; +x_48 = lean_array_push(x_47, x_46); +x_49 = l_myMacro____x40_Init_Notation___hyg_16821____closed__3; +lean_inc(x_2); +x_50 = lean_name_mk_string(x_2, x_49); +x_51 = l_Lean_Parser_Term_letPatDecl___closed__1; +x_52 = lean_name_mk_string(x_2, x_51); +x_53 = lean_array_push(x_47, x_3); +x_54 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; +x_55 = lean_array_push(x_53, x_54); +x_56 = lean_array_push(x_55, x_54); +x_57 = l_myMacro____x40_Init_Notation___hyg_16821____closed__11; +lean_inc(x_42); +x_58 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_58, 0, x_42); +lean_ctor_set(x_58, 1, x_57); +x_59 = lean_array_push(x_56, x_58); +x_60 = lean_array_push(x_59, x_4); +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_52); +lean_ctor_set(x_61, 1, x_60); +x_62 = lean_array_push(x_47, x_61); +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_50); +lean_ctor_set(x_63, 1, x_62); +x_64 = lean_array_push(x_48, x_63); +x_65 = l_myMacro____x40_Init_Notation___hyg_16821____closed__12; +x_66 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_66, 0, x_42); +lean_ctor_set(x_66, 1, x_65); +x_67 = lean_array_push(x_47, x_66); +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_64, x_69); +x_71 = lean_array_push(x_70, x_9); +x_72 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_72, 0, x_45); +lean_ctor_set(x_72, 1, x_71); +x_73 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_73, 0, x_72); +lean_ctor_set(x_73, 1, x_43); +return x_73; +} +} +} +lean_object* l_Lean_Elab_Term_expandHave___lambda__2(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; uint8_t x_11; +x_8 = lean_unsigned_to_nat(3u); +x_9 = l_Lean_Syntax_getArg(x_1, x_8); +x_10 = l_Lean_MonadRef_mkInfoFromRefPos___at_myMacro____x40_Init_Notation___hyg_113____spec__1(x_6, x_7); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +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; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; 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; +x_12 = lean_ctor_get(x_10, 0); +x_13 = l_Lean_Parser_Term_let__fun___elambda__1___closed__1; +lean_inc(x_2); +x_14 = lean_name_mk_string(x_2, x_13); +lean_inc(x_12); +x_15 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_15, 0, x_12); +lean_ctor_set(x_15, 1, x_13); +x_16 = l_Array_empty___closed__1; +x_17 = lean_array_push(x_16, x_15); +x_18 = l_myMacro____x40_Init_Notation___hyg_16821____closed__3; +lean_inc(x_2); +x_19 = lean_name_mk_string(x_2, x_18); +x_20 = l_myMacro____x40_Init_Notation___hyg_16821____closed__5; +x_21 = lean_name_mk_string(x_2, x_20); +x_22 = lean_array_push(x_16, x_3); +x_23 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; +x_24 = lean_array_push(x_22, x_23); +x_25 = lean_array_push(x_24, x_23); +x_26 = l_myMacro____x40_Init_Notation___hyg_16821____closed__11; +lean_inc(x_12); +x_27 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_27, 0, x_12); +lean_ctor_set(x_27, 1, x_26); +x_28 = lean_array_push(x_25, x_27); +x_29 = lean_array_push(x_28, x_4); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_21); +lean_ctor_set(x_30, 1, x_29); +x_31 = lean_array_push(x_16, x_30); +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_19); +lean_ctor_set(x_32, 1, x_31); +x_33 = lean_array_push(x_17, x_32); +x_34 = l_myMacro____x40_Init_Notation___hyg_16821____closed__12; +x_35 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_35, 0, x_12); +lean_ctor_set(x_35, 1, x_34); +x_36 = lean_array_push(x_16, x_35); +x_37 = l_Lean_nullKind___closed__2; +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_36); +x_39 = lean_array_push(x_33, x_38); +x_40 = lean_array_push(x_39, x_9); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_14); +lean_ctor_set(x_41, 1, x_40); +lean_ctor_set(x_10, 0, x_41); +return x_10; +} +else +{ +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; 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; +x_42 = lean_ctor_get(x_10, 0); +x_43 = lean_ctor_get(x_10, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_10); +x_44 = l_Lean_Parser_Term_let__fun___elambda__1___closed__1; +lean_inc(x_2); +x_45 = lean_name_mk_string(x_2, x_44); +lean_inc(x_42); +x_46 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_46, 0, x_42); +lean_ctor_set(x_46, 1, x_44); +x_47 = l_Array_empty___closed__1; +x_48 = lean_array_push(x_47, x_46); +x_49 = l_myMacro____x40_Init_Notation___hyg_16821____closed__3; +lean_inc(x_2); +x_50 = lean_name_mk_string(x_2, x_49); +x_51 = l_myMacro____x40_Init_Notation___hyg_16821____closed__5; +x_52 = lean_name_mk_string(x_2, x_51); +x_53 = lean_array_push(x_47, x_3); +x_54 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; +x_55 = lean_array_push(x_53, x_54); +x_56 = lean_array_push(x_55, x_54); +x_57 = l_myMacro____x40_Init_Notation___hyg_16821____closed__11; +lean_inc(x_42); +x_58 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_58, 0, x_42); +lean_ctor_set(x_58, 1, x_57); +x_59 = lean_array_push(x_56, x_58); +x_60 = lean_array_push(x_59, x_4); +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_52); +lean_ctor_set(x_61, 1, x_60); +x_62 = lean_array_push(x_47, x_61); +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_50); +lean_ctor_set(x_63, 1, x_62); +x_64 = lean_array_push(x_48, x_63); +x_65 = l_myMacro____x40_Init_Notation___hyg_16821____closed__12; +x_66 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_66, 0, x_42); +lean_ctor_set(x_66, 1, x_65); +x_67 = lean_array_push(x_47, x_66); +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_64, x_69); +x_71 = lean_array_push(x_70, x_9); +x_72 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_72, 0, x_45); +lean_ctor_set(x_72, 1, x_71); +x_73 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_73, 0, x_72); +lean_ctor_set(x_73, 1, x_43); +return x_73; +} +} +} +lean_object* l_Lean_Elab_Term_expandHave___lambda__3(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: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_9 = lean_unsigned_to_nat(3u); +x_10 = l_Lean_Syntax_getArg(x_1, x_9); +x_11 = l_Lean_MonadRef_mkInfoFromRefPos___at_myMacro____x40_Init_Notation___hyg_113____spec__1(x_7, x_8); +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) +{ +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; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; 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; +x_13 = lean_ctor_get(x_11, 0); +x_14 = l_Lean_Parser_Term_let__fun___elambda__1___closed__1; +lean_inc(x_2); +x_15 = lean_name_mk_string(x_2, x_14); +lean_inc(x_13); +x_16 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_16, 0, x_13); +lean_ctor_set(x_16, 1, x_14); +x_17 = l_Array_empty___closed__1; +x_18 = lean_array_push(x_17, x_16); +x_19 = l_myMacro____x40_Init_Notation___hyg_16821____closed__3; +lean_inc(x_2); +x_20 = lean_name_mk_string(x_2, x_19); +x_21 = l_myMacro____x40_Init_Notation___hyg_16821____closed__5; +lean_inc(x_2); +x_22 = lean_name_mk_string(x_2, x_21); +x_23 = lean_array_push(x_17, x_3); +x_24 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; +x_25 = lean_array_push(x_23, x_24); +x_26 = l_Lean_expandExplicitBindersAux_loop___closed__3; +x_27 = lean_name_mk_string(x_2, x_26); +x_28 = l_myMacro____x40_Init_Notation___hyg_16268____closed__9; +lean_inc(x_13); +x_29 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_29, 0, x_13); +lean_ctor_set(x_29, 1, x_28); +x_30 = lean_array_push(x_17, x_29); +x_31 = lean_array_push(x_30, x_4); +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_27); +lean_ctor_set(x_32, 1, x_31); +x_33 = lean_array_push(x_17, x_32); +x_34 = l_Lean_nullKind___closed__2; +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_33); +x_36 = lean_array_push(x_25, x_35); +x_37 = l_myMacro____x40_Init_Notation___hyg_16821____closed__11; +lean_inc(x_13); +x_38 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_38, 0, x_13); +lean_ctor_set(x_38, 1, x_37); +x_39 = lean_array_push(x_36, x_38); +x_40 = lean_array_push(x_39, x_5); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_22); +lean_ctor_set(x_41, 1, x_40); +x_42 = lean_array_push(x_17, x_41); +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_20); +lean_ctor_set(x_43, 1, x_42); +x_44 = lean_array_push(x_18, x_43); +x_45 = l_myMacro____x40_Init_Notation___hyg_16821____closed__12; +x_46 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_46, 0, x_13); +lean_ctor_set(x_46, 1, x_45); +x_47 = lean_array_push(x_17, x_46); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_34); +lean_ctor_set(x_48, 1, x_47); +x_49 = lean_array_push(x_44, x_48); +x_50 = lean_array_push(x_49, x_10); +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_15); +lean_ctor_set(x_51, 1, x_50); +lean_ctor_set(x_11, 0, x_51); +return x_11; +} +else +{ +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; 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; 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; +x_52 = lean_ctor_get(x_11, 0); +x_53 = lean_ctor_get(x_11, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_11); +x_54 = l_Lean_Parser_Term_let__fun___elambda__1___closed__1; +lean_inc(x_2); +x_55 = lean_name_mk_string(x_2, x_54); +lean_inc(x_52); +x_56 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_56, 0, x_52); +lean_ctor_set(x_56, 1, x_54); +x_57 = l_Array_empty___closed__1; +x_58 = lean_array_push(x_57, x_56); +x_59 = l_myMacro____x40_Init_Notation___hyg_16821____closed__3; +lean_inc(x_2); +x_60 = lean_name_mk_string(x_2, x_59); +x_61 = l_myMacro____x40_Init_Notation___hyg_16821____closed__5; +lean_inc(x_2); +x_62 = lean_name_mk_string(x_2, x_61); +x_63 = lean_array_push(x_57, x_3); +x_64 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; +x_65 = lean_array_push(x_63, x_64); +x_66 = l_Lean_expandExplicitBindersAux_loop___closed__3; +x_67 = lean_name_mk_string(x_2, x_66); +x_68 = l_myMacro____x40_Init_Notation___hyg_16268____closed__9; +lean_inc(x_52); +x_69 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_69, 0, x_52); +lean_ctor_set(x_69, 1, x_68); +x_70 = lean_array_push(x_57, x_69); +x_71 = lean_array_push(x_70, x_4); +x_72 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_72, 0, x_67); +lean_ctor_set(x_72, 1, x_71); +x_73 = lean_array_push(x_57, x_72); +x_74 = l_Lean_nullKind___closed__2; +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 = lean_array_push(x_65, x_75); +x_77 = l_myMacro____x40_Init_Notation___hyg_16821____closed__11; +lean_inc(x_52); +x_78 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_78, 0, x_52); +lean_ctor_set(x_78, 1, x_77); +x_79 = lean_array_push(x_76, x_78); +x_80 = lean_array_push(x_79, x_5); +x_81 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_81, 0, x_62); +lean_ctor_set(x_81, 1, x_80); +x_82 = lean_array_push(x_57, x_81); +x_83 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_83, 0, x_60); +lean_ctor_set(x_83, 1, x_82); +x_84 = lean_array_push(x_58, x_83); +x_85 = l_myMacro____x40_Init_Notation___hyg_16821____closed__12; +x_86 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_86, 0, x_52); +lean_ctor_set(x_86, 1, x_85); +x_87 = lean_array_push(x_57, x_86); +x_88 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_88, 0, x_74); +lean_ctor_set(x_88, 1, x_87); +x_89 = lean_array_push(x_84, x_88); +x_90 = lean_array_push(x_89, x_10); +x_91 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_91, 0, x_55); +lean_ctor_set(x_91, 1, x_90); +x_92 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_92, 0, x_91); +lean_ctor_set(x_92, 1, x_53); +return x_92; +} +} +} +lean_object* l_Lean_Elab_Term_expandHave___lambda__4(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, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { 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; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; @@ -2624,7 +3038,7 @@ return x_65; } } } -lean_object* l_Lean_Elab_Term_expandHave___lambda__2(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, lean_object* x_9) { +lean_object* l_Lean_Elab_Term_expandHave___lambda__5(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, lean_object* x_9) { _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_55; lean_object* x_56; lean_object* x_57; @@ -2737,222 +3151,658 @@ return x_53; } } } -lean_object* l_Lean_Elab_Term_expandHave___lambda__3(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, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Lean_Elab_Term_expandHave___lambda__6(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* 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, lean_object* x_12, lean_object* x_13) { _start: { -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; -x_12 = lean_unsigned_to_nat(1u); -x_13 = l_Lean_Syntax_getArg(x_1, x_12); -x_14 = lean_unsigned_to_nat(2u); +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_14 = lean_unsigned_to_nat(1u); x_15 = l_Lean_Syntax_getArg(x_1, x_14); -x_16 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_21057____closed__3; +x_16 = lean_unsigned_to_nat(2u); +x_17 = l_Lean_Syntax_getArg(x_1, x_16); +x_18 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_21057____closed__3; lean_inc(x_2); -x_17 = lean_name_mk_string(x_2, x_16); -lean_inc(x_15); -x_18 = l_Lean_Syntax_isOfKind(x_15, x_17); -if (x_18 == 0) +x_19 = lean_name_mk_string(x_2, x_18); +lean_inc(x_17); +x_20 = l_Lean_Syntax_isOfKind(x_17, x_19); +if (x_20 == 0) { -lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_19 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20488____closed__2; +lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_21 = l_myMacro____x40_Init_Notation___hyg_23663____closed__1; lean_inc(x_2); -x_20 = lean_name_mk_string(x_2, x_19); -lean_inc(x_15); -x_21 = l_Lean_Syntax_isOfKind(x_15, x_20); -lean_dec(x_20); -if (x_21 == 0) +x_22 = lean_name_mk_string(x_2, x_21); +lean_inc(x_17); +x_23 = l_Lean_Syntax_isOfKind(x_17, x_22); +if (x_23 == 0) { -lean_object* x_22; lean_object* x_23; uint8_t x_24; -x_22 = l_myMacro____x40_Init_Notation___hyg_23663____closed__1; -x_23 = lean_name_mk_string(x_2, x_22); -lean_inc(x_15); -x_24 = l_Lean_Syntax_isOfKind(x_15, x_23); -if (x_24 == 0) +lean_dec(x_22); +lean_dec(x_19); +lean_dec(x_11); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (x_3 == 0) { -lean_object* x_25; lean_object* x_26; -lean_dec(x_23); +lean_object* x_24; lean_object* x_25; lean_dec(x_17); lean_dec(x_15); -lean_dec(x_13); -lean_dec(x_9); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_25 = lean_box(1); -x_26 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, x_11); -return x_26; +lean_dec(x_4); +lean_dec(x_2); +x_24 = lean_box(1); +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_13); +return x_25; } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; -x_27 = lean_unsigned_to_nat(0u); -x_28 = l_Lean_Syntax_getArg(x_15, x_27); -x_29 = l_Lean_Syntax_getArg(x_15, x_12); +lean_object* x_26; uint8_t x_27; +x_26 = l_Lean_nullKind; +lean_inc(x_4); +x_27 = l_Lean_Syntax_isNodeOf(x_4, x_26, x_16); +if (x_27 == 0) +{ +lean_object* x_28; uint8_t x_29; +x_28 = lean_unsigned_to_nat(0u); +x_29 = l_Lean_Syntax_isNodeOf(x_4, x_26, x_28); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; +lean_dec(x_17); lean_dec(x_15); -x_30 = l_Lean_Parser_Tactic_intro___closed__1; -x_31 = lean_name_mk_string(x_3, x_30); -x_32 = l_Lean_Parser_Tactic_case___closed__10; -x_33 = lean_name_mk_string(x_31, x_32); -lean_inc(x_29); -x_34 = l_Lean_Syntax_isOfKind(x_29, x_33); -lean_dec(x_33); -if (x_34 == 0) -{ -lean_object* x_35; lean_object* x_36; -lean_dec(x_29); -lean_dec(x_28); -lean_dec(x_23); -lean_dec(x_17); -lean_dec(x_13); -lean_dec(x_9); -lean_dec(x_6); -lean_dec(x_5); -x_35 = lean_box(1); -x_36 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_11); -return x_36; +lean_dec(x_2); +x_30 = lean_box(1); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_13); +return x_31; } else { -lean_object* x_37; uint8_t x_38; -x_37 = l_Lean_Syntax_getArg(x_4, x_14); -x_38 = l_Lean_Syntax_isNone(x_37); -if (x_38 == 0) +lean_object* x_32; uint8_t x_33; +x_32 = l_Lean_identKind___closed__2; +lean_inc(x_15); +x_33 = l_Lean_Syntax_isOfKind(x_15, x_32); +if (x_33 == 0) { -lean_object* x_39; uint8_t x_40; -x_39 = l_Lean_nullKind; -x_40 = l_Lean_Syntax_isNodeOf(x_37, x_39, x_12); -if (x_40 == 0) +lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_34 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20488____closed__2; +lean_inc(x_2); +x_35 = lean_name_mk_string(x_2, x_34); +lean_inc(x_17); +x_36 = l_Lean_Syntax_isOfKind(x_17, x_35); +lean_dec(x_35); +if (x_36 == 0) { -lean_object* x_41; lean_object* x_42; -lean_dec(x_29); -lean_dec(x_28); -lean_dec(x_23); +lean_object* x_37; lean_object* x_38; lean_dec(x_17); -lean_dec(x_13); -lean_dec(x_9); -lean_dec(x_6); -lean_dec(x_5); -x_41 = lean_box(1); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_11); -return x_42; +lean_dec(x_15); +lean_dec(x_2); +x_37 = lean_box(1); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_13); +return x_38; } else { +lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_39 = l_Lean_Syntax_getArg(x_17, x_14); +lean_dec(x_17); +x_40 = l_Lean_Syntax_getArg(x_5, x_16); +x_41 = l_Lean_Syntax_isNone(x_40); +if (x_41 == 0) +{ +uint8_t x_42; +x_42 = l_Lean_Syntax_isNodeOf(x_40, x_26, x_14); +if (x_42 == 0) +{ lean_object* x_43; lean_object* x_44; -x_43 = lean_box(0); -x_44 = l_Lean_Elab_Term_expandHave___lambda__1(x_4, x_28, x_13, x_29, x_23, x_17, x_5, x_6, x_9, x_43, x_10, x_11); -lean_dec(x_28); +lean_dec(x_39); +lean_dec(x_15); +lean_dec(x_2); +x_43 = lean_box(1); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_13); return x_44; } -} else { lean_object* x_45; lean_object* x_46; -lean_dec(x_37); x_45 = lean_box(0); -x_46 = l_Lean_Elab_Term_expandHave___lambda__1(x_4, x_28, x_13, x_29, x_23, x_17, x_5, x_6, x_9, x_45, x_10, x_11); -lean_dec(x_28); +x_46 = l_Lean_Elab_Term_expandHave___lambda__1(x_5, x_2, x_15, x_39, x_45, x_12, x_13); return x_46; } } +else +{ +lean_object* x_47; lean_object* x_48; +lean_dec(x_40); +x_47 = lean_box(0); +x_48 = l_Lean_Elab_Term_expandHave___lambda__1(x_5, x_2, x_15, x_39, x_47, x_12, x_13); +return x_48; +} } } else { -lean_object* x_47; lean_object* x_48; uint8_t x_49; -lean_dec(x_17); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_47 = l_Lean_Syntax_getArg(x_15, x_12); -lean_dec(x_15); -x_48 = l_Lean_Syntax_getArg(x_4, x_14); -x_49 = l_Lean_Syntax_isNone(x_48); -if (x_49 == 0) -{ -lean_object* x_50; uint8_t x_51; -x_50 = l_Lean_nullKind; -x_51 = l_Lean_Syntax_isNodeOf(x_48, x_50, x_12); +lean_object* x_49; lean_object* x_50; uint8_t x_51; +x_49 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20488____closed__2; +lean_inc(x_2); +x_50 = lean_name_mk_string(x_2, x_49); +lean_inc(x_17); +x_51 = l_Lean_Syntax_isOfKind(x_17, x_50); +lean_dec(x_50); if (x_51 == 0) { lean_object* x_52; lean_object* x_53; -lean_dec(x_47); -lean_dec(x_13); -lean_dec(x_9); +lean_dec(x_17); +lean_dec(x_15); lean_dec(x_2); x_52 = lean_box(1); x_53 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_11); +lean_ctor_set(x_53, 1, x_13); return x_53; } else { -lean_object* x_54; lean_object* x_55; -x_54 = lean_box(0); -x_55 = l_Lean_Elab_Term_expandHave___lambda__2(x_4, x_2, x_13, x_47, x_7, x_9, x_54, x_10, x_11); -return x_55; -} -} -else -{ -lean_object* x_56; lean_object* x_57; -lean_dec(x_48); -x_56 = lean_box(0); -x_57 = l_Lean_Elab_Term_expandHave___lambda__2(x_4, x_2, x_13, x_47, x_7, x_9, x_56, x_10, x_11); -return x_57; -} -} -} -else -{ -lean_object* x_58; lean_object* x_59; uint8_t x_60; +lean_object* x_54; lean_object* x_55; uint8_t x_56; +x_54 = l_Lean_Syntax_getArg(x_17, x_14); lean_dec(x_17); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_58 = l_Lean_Syntax_getArg(x_15, x_12); +x_55 = l_Lean_Syntax_getArg(x_5, x_16); +x_56 = l_Lean_Syntax_isNone(x_55); +if (x_56 == 0) +{ +uint8_t x_57; +x_57 = l_Lean_Syntax_isNodeOf(x_55, x_26, x_14); +if (x_57 == 0) +{ +lean_object* x_58; lean_object* x_59; +lean_dec(x_54); lean_dec(x_15); -x_59 = l_Lean_Syntax_getArg(x_4, x_14); -x_60 = l_Lean_Syntax_isNone(x_59); -if (x_60 == 0) -{ -lean_object* x_61; uint8_t x_62; -x_61 = l_Lean_nullKind; -x_62 = l_Lean_Syntax_isNodeOf(x_59, x_61, x_12); -if (x_62 == 0) -{ -lean_object* x_63; lean_object* x_64; -lean_dec(x_58); -lean_dec(x_13); -lean_dec(x_9); lean_dec(x_2); -x_63 = lean_box(1); -x_64 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_64, 0, x_63); -lean_ctor_set(x_64, 1, x_11); -return x_64; +x_58 = lean_box(1); +x_59 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_13); +return x_59; } else { -lean_object* x_65; lean_object* x_66; -x_65 = lean_box(0); -x_66 = l_Lean_Elab_Term_expandHave___lambda__2(x_4, x_2, x_13, x_58, x_7, x_9, x_65, x_10, x_11); -return x_66; +lean_object* x_60; lean_object* x_61; +x_60 = lean_box(0); +x_61 = l_Lean_Elab_Term_expandHave___lambda__2(x_5, x_2, x_15, x_54, x_60, x_12, x_13); +return x_61; } } else { -lean_object* x_67; lean_object* x_68; -lean_dec(x_59); -x_67 = lean_box(0); -x_68 = l_Lean_Elab_Term_expandHave___lambda__2(x_4, x_2, x_13, x_58, x_7, x_9, x_67, x_10, x_11); -return x_68; +lean_object* x_62; lean_object* x_63; +lean_dec(x_55); +x_62 = lean_box(0); +x_63 = l_Lean_Elab_Term_expandHave___lambda__2(x_5, x_2, x_15, x_54, x_62, x_12, x_13); +return x_63; +} +} +} +} +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; +x_64 = lean_unsigned_to_nat(0u); +x_65 = l_Lean_Syntax_getArg(x_4, x_64); +lean_dec(x_4); +x_66 = l_Lean_identKind___closed__2; +lean_inc(x_65); +x_67 = l_Lean_Syntax_isOfKind(x_65, x_66); +if (x_67 == 0) +{ +lean_object* x_68; lean_object* x_69; +lean_dec(x_65); +lean_dec(x_17); +lean_dec(x_15); +lean_dec(x_2); +x_68 = lean_box(1); +x_69 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_69, 0, x_68); +lean_ctor_set(x_69, 1, x_13); +return x_69; +} +else +{ +lean_object* x_70; lean_object* x_71; uint8_t x_72; +x_70 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20488____closed__2; +lean_inc(x_2); +x_71 = lean_name_mk_string(x_2, x_70); +lean_inc(x_17); +x_72 = l_Lean_Syntax_isOfKind(x_17, x_71); +lean_dec(x_71); +if (x_72 == 0) +{ +lean_object* x_73; lean_object* x_74; +lean_dec(x_65); +lean_dec(x_17); +lean_dec(x_15); +lean_dec(x_2); +x_73 = lean_box(1); +x_74 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_74, 0, x_73); +lean_ctor_set(x_74, 1, x_13); +return x_74; +} +else +{ +lean_object* x_75; lean_object* x_76; uint8_t x_77; +x_75 = l_Lean_Syntax_getArg(x_17, x_14); +lean_dec(x_17); +x_76 = l_Lean_Syntax_getArg(x_5, x_16); +x_77 = l_Lean_Syntax_isNone(x_76); +if (x_77 == 0) +{ +uint8_t x_78; +x_78 = l_Lean_Syntax_isNodeOf(x_76, x_26, x_14); +if (x_78 == 0) +{ +lean_object* x_79; lean_object* x_80; +lean_dec(x_75); +lean_dec(x_65); +lean_dec(x_15); +lean_dec(x_2); +x_79 = lean_box(1); +x_80 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_80, 0, x_79); +lean_ctor_set(x_80, 1, x_13); +return x_80; +} +else +{ +lean_object* x_81; lean_object* x_82; +x_81 = lean_box(0); +x_82 = l_Lean_Elab_Term_expandHave___lambda__3(x_5, x_2, x_65, x_15, x_75, x_81, x_12, x_13); +return x_82; +} +} +else +{ +lean_object* x_83; lean_object* x_84; +lean_dec(x_76); +x_83 = lean_box(0); +x_84 = l_Lean_Elab_Term_expandHave___lambda__3(x_5, x_2, x_65, x_15, x_75, x_83, x_12, x_13); +return x_84; +} +} +} +} +} +} +else +{ +lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; uint8_t x_92; +x_85 = lean_unsigned_to_nat(0u); +x_86 = l_Lean_Syntax_getArg(x_17, x_85); +x_87 = l_Lean_Syntax_getArg(x_17, x_14); +x_88 = l_Lean_Parser_Tactic_intro___closed__1; +x_89 = lean_name_mk_string(x_6, x_88); +x_90 = l_Lean_Parser_Tactic_case___closed__10; +x_91 = lean_name_mk_string(x_89, x_90); +lean_inc(x_87); +x_92 = l_Lean_Syntax_isOfKind(x_87, x_91); +lean_dec(x_91); +if (x_92 == 0) +{ +lean_dec(x_86); +lean_dec(x_22); +lean_dec(x_19); +lean_dec(x_11); +lean_dec(x_8); +lean_dec(x_7); +if (x_3 == 0) +{ +lean_object* x_93; lean_object* x_94; +lean_dec(x_87); +lean_dec(x_17); +lean_dec(x_15); +lean_dec(x_4); +lean_dec(x_2); +x_93 = lean_box(1); +x_94 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_94, 0, x_93); +lean_ctor_set(x_94, 1, x_13); +return x_94; +} +else +{ +lean_object* x_95; uint8_t x_96; +x_95 = l_Lean_nullKind; +lean_inc(x_4); +x_96 = l_Lean_Syntax_isNodeOf(x_4, x_95, x_16); +if (x_96 == 0) +{ +uint8_t x_97; +x_97 = l_Lean_Syntax_isNodeOf(x_4, x_95, x_85); +if (x_97 == 0) +{ +lean_object* x_98; lean_object* x_99; +lean_dec(x_87); +lean_dec(x_17); +lean_dec(x_15); +lean_dec(x_2); +x_98 = lean_box(1); +x_99 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_99, 0, x_98); +lean_ctor_set(x_99, 1, x_13); +return x_99; +} +else +{ +lean_object* x_100; uint8_t x_101; +x_100 = l_Lean_identKind___closed__2; +lean_inc(x_15); +x_101 = l_Lean_Syntax_isOfKind(x_15, x_100); +if (x_101 == 0) +{ +lean_object* x_102; lean_object* x_103; uint8_t x_104; +x_102 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20488____closed__2; +lean_inc(x_2); +x_103 = lean_name_mk_string(x_2, x_102); +x_104 = l_Lean_Syntax_isOfKind(x_17, x_103); +lean_dec(x_103); +if (x_104 == 0) +{ +lean_object* x_105; lean_object* x_106; +lean_dec(x_87); +lean_dec(x_15); +lean_dec(x_2); +x_105 = lean_box(1); +x_106 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_106, 0, x_105); +lean_ctor_set(x_106, 1, x_13); +return x_106; +} +else +{ +lean_object* x_107; uint8_t x_108; +x_107 = l_Lean_Syntax_getArg(x_5, x_16); +x_108 = l_Lean_Syntax_isNone(x_107); +if (x_108 == 0) +{ +uint8_t x_109; +x_109 = l_Lean_Syntax_isNodeOf(x_107, x_95, x_14); +if (x_109 == 0) +{ +lean_object* x_110; lean_object* x_111; +lean_dec(x_87); +lean_dec(x_15); +lean_dec(x_2); +x_110 = lean_box(1); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_13); +return x_111; +} +else +{ +lean_object* x_112; lean_object* x_113; +x_112 = lean_box(0); +x_113 = l_Lean_Elab_Term_expandHave___lambda__1(x_5, x_2, x_15, x_87, x_112, x_12, x_13); +return x_113; +} +} +else +{ +lean_object* x_114; lean_object* x_115; +lean_dec(x_107); +x_114 = lean_box(0); +x_115 = l_Lean_Elab_Term_expandHave___lambda__1(x_5, x_2, x_15, x_87, x_114, x_12, x_13); +return x_115; +} +} +} +else +{ +lean_object* x_116; lean_object* x_117; uint8_t x_118; +x_116 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20488____closed__2; +lean_inc(x_2); +x_117 = lean_name_mk_string(x_2, x_116); +x_118 = l_Lean_Syntax_isOfKind(x_17, x_117); +lean_dec(x_117); +if (x_118 == 0) +{ +lean_object* x_119; lean_object* x_120; +lean_dec(x_87); +lean_dec(x_15); +lean_dec(x_2); +x_119 = lean_box(1); +x_120 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_120, 0, x_119); +lean_ctor_set(x_120, 1, x_13); +return x_120; +} +else +{ +lean_object* x_121; uint8_t x_122; +x_121 = l_Lean_Syntax_getArg(x_5, x_16); +x_122 = l_Lean_Syntax_isNone(x_121); +if (x_122 == 0) +{ +uint8_t x_123; +x_123 = l_Lean_Syntax_isNodeOf(x_121, x_95, x_14); +if (x_123 == 0) +{ +lean_object* x_124; lean_object* x_125; +lean_dec(x_87); +lean_dec(x_15); +lean_dec(x_2); +x_124 = lean_box(1); +x_125 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_125, 0, x_124); +lean_ctor_set(x_125, 1, x_13); +return x_125; +} +else +{ +lean_object* x_126; lean_object* x_127; +x_126 = lean_box(0); +x_127 = l_Lean_Elab_Term_expandHave___lambda__2(x_5, x_2, x_15, x_87, x_126, x_12, x_13); +return x_127; +} +} +else +{ +lean_object* x_128; lean_object* x_129; +lean_dec(x_121); +x_128 = lean_box(0); +x_129 = l_Lean_Elab_Term_expandHave___lambda__2(x_5, x_2, x_15, x_87, x_128, x_12, x_13); +return x_129; +} +} +} +} +} +else +{ +lean_object* x_130; lean_object* x_131; uint8_t x_132; +x_130 = l_Lean_Syntax_getArg(x_4, x_85); +lean_dec(x_4); +x_131 = l_Lean_identKind___closed__2; +lean_inc(x_130); +x_132 = l_Lean_Syntax_isOfKind(x_130, x_131); +if (x_132 == 0) +{ +lean_object* x_133; lean_object* x_134; +lean_dec(x_130); +lean_dec(x_87); +lean_dec(x_17); +lean_dec(x_15); +lean_dec(x_2); +x_133 = lean_box(1); +x_134 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 1, x_13); +return x_134; +} +else +{ +lean_object* x_135; lean_object* x_136; uint8_t x_137; +x_135 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20488____closed__2; +lean_inc(x_2); +x_136 = lean_name_mk_string(x_2, x_135); +x_137 = l_Lean_Syntax_isOfKind(x_17, x_136); +lean_dec(x_136); +if (x_137 == 0) +{ +lean_object* x_138; lean_object* x_139; +lean_dec(x_130); +lean_dec(x_87); +lean_dec(x_15); +lean_dec(x_2); +x_138 = lean_box(1); +x_139 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_139, 0, x_138); +lean_ctor_set(x_139, 1, x_13); +return x_139; +} +else +{ +lean_object* x_140; uint8_t x_141; +x_140 = l_Lean_Syntax_getArg(x_5, x_16); +x_141 = l_Lean_Syntax_isNone(x_140); +if (x_141 == 0) +{ +uint8_t x_142; +x_142 = l_Lean_Syntax_isNodeOf(x_140, x_95, x_14); +if (x_142 == 0) +{ +lean_object* x_143; lean_object* x_144; +lean_dec(x_130); +lean_dec(x_87); +lean_dec(x_15); +lean_dec(x_2); +x_143 = lean_box(1); +x_144 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_144, 0, x_143); +lean_ctor_set(x_144, 1, x_13); +return x_144; +} +else +{ +lean_object* x_145; lean_object* x_146; +x_145 = lean_box(0); +x_146 = l_Lean_Elab_Term_expandHave___lambda__3(x_5, x_2, x_130, x_15, x_87, x_145, x_12, x_13); +return x_146; +} +} +else +{ +lean_object* x_147; lean_object* x_148; +lean_dec(x_140); +x_147 = lean_box(0); +x_148 = l_Lean_Elab_Term_expandHave___lambda__3(x_5, x_2, x_130, x_15, x_87, x_147, x_12, x_13); +return x_148; +} +} +} +} +} +} +else +{ +lean_object* x_149; uint8_t x_150; +lean_dec(x_17); +lean_dec(x_4); +lean_dec(x_2); +x_149 = l_Lean_Syntax_getArg(x_5, x_16); +x_150 = l_Lean_Syntax_isNone(x_149); +if (x_150 == 0) +{ +lean_object* x_151; uint8_t x_152; +x_151 = l_Lean_nullKind; +x_152 = l_Lean_Syntax_isNodeOf(x_149, x_151, x_14); +if (x_152 == 0) +{ +lean_object* x_153; lean_object* x_154; +lean_dec(x_87); +lean_dec(x_86); +lean_dec(x_22); +lean_dec(x_19); +lean_dec(x_15); +lean_dec(x_11); +lean_dec(x_8); +lean_dec(x_7); +x_153 = lean_box(1); +x_154 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_154, 0, x_153); +lean_ctor_set(x_154, 1, x_13); +return x_154; +} +else +{ +lean_object* x_155; lean_object* x_156; +x_155 = lean_box(0); +x_156 = l_Lean_Elab_Term_expandHave___lambda__4(x_5, x_86, x_15, x_87, x_22, x_19, x_7, x_8, x_11, x_155, x_12, x_13); +lean_dec(x_86); +return x_156; +} +} +else +{ +lean_object* x_157; lean_object* x_158; +lean_dec(x_149); +x_157 = lean_box(0); +x_158 = l_Lean_Elab_Term_expandHave___lambda__4(x_5, x_86, x_15, x_87, x_22, x_19, x_7, x_8, x_11, x_157, x_12, x_13); +lean_dec(x_86); +return x_158; +} +} +} +} +else +{ +lean_object* x_159; lean_object* x_160; uint8_t x_161; +lean_dec(x_19); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +x_159 = l_Lean_Syntax_getArg(x_17, x_14); +lean_dec(x_17); +x_160 = l_Lean_Syntax_getArg(x_5, x_16); +x_161 = l_Lean_Syntax_isNone(x_160); +if (x_161 == 0) +{ +lean_object* x_162; uint8_t x_163; +x_162 = l_Lean_nullKind; +x_163 = l_Lean_Syntax_isNodeOf(x_160, x_162, x_14); +if (x_163 == 0) +{ +lean_object* x_164; lean_object* x_165; +lean_dec(x_159); +lean_dec(x_15); +lean_dec(x_11); +lean_dec(x_2); +x_164 = lean_box(1); +x_165 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_165, 0, x_164); +lean_ctor_set(x_165, 1, x_13); +return x_165; +} +else +{ +lean_object* x_166; lean_object* x_167; +x_166 = lean_box(0); +x_167 = l_Lean_Elab_Term_expandHave___lambda__5(x_5, x_2, x_15, x_159, x_9, x_11, x_166, x_12, x_13); +return x_167; +} +} +else +{ +lean_object* x_168; lean_object* x_169; +lean_dec(x_160); +x_168 = lean_box(0); +x_169 = l_Lean_Elab_Term_expandHave___lambda__5(x_5, x_2, x_15, x_159, x_9, x_11, x_168, x_12, x_13); +return x_169; } } } @@ -3008,54 +3858,322 @@ lean_inc(x_15); x_19 = l_Lean_Syntax_isNodeOf(x_15, x_17, x_18); if (x_19 == 0) { -lean_object* x_20; lean_object* x_21; -lean_dec(x_15); +uint8_t x_20; +lean_inc(x_15); +x_20 = l_Lean_Syntax_isNodeOf(x_15, x_17, x_18); +if (x_20 == 0) +{ +uint8_t x_21; +x_21 = l_Lean_Syntax_isNodeOf(x_15, x_17, x_14); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; lean_dec(x_9); lean_dec(x_1); -x_20 = lean_box(1); -x_21 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_3); -return x_21; -} -else -{ -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_22 = l_Lean_Syntax_getArg(x_15, x_14); -lean_dec(x_15); -x_23 = lean_alloc_ctor(1, 1, 0); +x_22 = lean_box(1); +x_23 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_23, 0, x_22); -x_24 = l_myMacro____x40_Init_Notation___hyg_2278____closed__2; -x_25 = l_Lean_Parser_Syntax_addPrec___closed__4; -x_26 = lean_box(0); -x_27 = l_Lean_Elab_Term_expandHave___lambda__3(x_9, x_24, x_25, x_1, x_10, x_4, x_1, x_26, x_23, x_2, x_3); -lean_dec(x_1); +lean_ctor_set(x_23, 1, x_3); +return x_23; +} +else +{ +lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_24 = l_Lean_Syntax_getArg(x_9, x_8); +x_25 = l_Lean_identKind___closed__2; +lean_inc(x_24); +x_26 = l_Lean_Syntax_isOfKind(x_24, x_25); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_27 = l_Lean_Syntax_getArg(x_9, x_18); lean_dec(x_9); -return x_27; +x_28 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20488____closed__3; +lean_inc(x_27); +x_29 = l_Lean_Syntax_isOfKind(x_27, x_28); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; +lean_dec(x_27); +lean_dec(x_24); +lean_dec(x_1); +x_30 = lean_box(1); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_3); +return x_31; +} +else +{ +lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_32 = l_Lean_Syntax_getArg(x_27, x_8); +lean_dec(x_27); +x_33 = l_Lean_Syntax_getArg(x_1, x_18); +x_34 = l_Lean_Syntax_isNone(x_33); +if (x_34 == 0) +{ +uint8_t x_35; +x_35 = l_Lean_Syntax_isNodeOf(x_33, x_17, x_8); +if (x_35 == 0) +{ +lean_object* x_36; lean_object* x_37; +lean_dec(x_32); +lean_dec(x_24); +lean_dec(x_1); +x_36 = lean_box(1); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_3); +return x_37; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = l_myMacro____x40_Init_Notation___hyg_2278____closed__2; +x_39 = lean_box(0); +x_40 = l_Lean_Elab_Term_expandHave___lambda__1(x_1, x_38, x_24, x_32, x_39, x_2, x_3); +lean_dec(x_1); +return x_40; } } else { -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +lean_object* x_41; lean_object* x_42; lean_object* x_43; +lean_dec(x_33); +x_41 = l_myMacro____x40_Init_Notation___hyg_2278____closed__2; +x_42 = lean_box(0); +x_43 = l_Lean_Elab_Term_expandHave___lambda__1(x_1, x_41, x_24, x_32, x_42, x_2, x_3); +lean_dec(x_1); +return x_43; +} +} +} +else +{ +lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_44 = l_Lean_Syntax_getArg(x_9, x_18); +lean_dec(x_9); +x_45 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20488____closed__3; +lean_inc(x_44); +x_46 = l_Lean_Syntax_isOfKind(x_44, x_45); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; +lean_dec(x_44); +lean_dec(x_24); +lean_dec(x_1); +x_47 = lean_box(1); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_3); +return x_48; +} +else +{ +lean_object* x_49; lean_object* x_50; uint8_t x_51; +x_49 = l_Lean_Syntax_getArg(x_44, x_8); +lean_dec(x_44); +x_50 = l_Lean_Syntax_getArg(x_1, x_18); +x_51 = l_Lean_Syntax_isNone(x_50); +if (x_51 == 0) +{ +uint8_t x_52; +x_52 = l_Lean_Syntax_isNodeOf(x_50, x_17, x_8); +if (x_52 == 0) +{ +lean_object* x_53; lean_object* x_54; +lean_dec(x_49); +lean_dec(x_24); +lean_dec(x_1); +x_53 = lean_box(1); +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_3); +return x_54; +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = l_myMacro____x40_Init_Notation___hyg_2278____closed__2; +x_56 = lean_box(0); +x_57 = l_Lean_Elab_Term_expandHave___lambda__2(x_1, x_55, x_24, x_49, x_56, x_2, x_3); +lean_dec(x_1); +return x_57; +} +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +lean_dec(x_50); +x_58 = l_myMacro____x40_Init_Notation___hyg_2278____closed__2; +x_59 = lean_box(0); +x_60 = l_Lean_Elab_Term_expandHave___lambda__2(x_1, x_58, x_24, x_49, x_59, x_2, x_3); +lean_dec(x_1); +return x_60; +} +} +} +} +} +else +{ +lean_object* x_61; lean_object* x_62; uint8_t x_63; +x_61 = l_Lean_Syntax_getArg(x_15, x_14); lean_dec(x_15); -x_28 = lean_box(0); -x_29 = l_myMacro____x40_Init_Notation___hyg_2278____closed__2; -x_30 = l_Lean_Parser_Syntax_addPrec___closed__4; -x_31 = lean_box(0); -x_32 = l_Lean_Elab_Term_expandHave___lambda__3(x_9, x_29, x_30, x_1, x_10, x_4, x_1, x_31, x_28, x_2, x_3); +x_62 = l_Lean_identKind___closed__2; +lean_inc(x_61); +x_63 = l_Lean_Syntax_isOfKind(x_61, x_62); +if (x_63 == 0) +{ +lean_object* x_64; lean_object* x_65; +lean_dec(x_61); +lean_dec(x_9); +lean_dec(x_1); +x_64 = lean_box(1); +x_65 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_3); +return x_65; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; +x_66 = l_Lean_Syntax_getArg(x_9, x_8); +x_67 = l_Lean_Syntax_getArg(x_9, x_18); +lean_dec(x_9); +x_68 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20488____closed__3; +lean_inc(x_67); +x_69 = l_Lean_Syntax_isOfKind(x_67, x_68); +if (x_69 == 0) +{ +lean_object* x_70; lean_object* x_71; +lean_dec(x_67); +lean_dec(x_66); +lean_dec(x_61); +lean_dec(x_1); +x_70 = lean_box(1); +x_71 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_71, 0, x_70); +lean_ctor_set(x_71, 1, x_3); +return x_71; +} +else +{ +lean_object* x_72; lean_object* x_73; uint8_t x_74; +x_72 = l_Lean_Syntax_getArg(x_67, x_8); +lean_dec(x_67); +x_73 = l_Lean_Syntax_getArg(x_1, x_18); +x_74 = l_Lean_Syntax_isNone(x_73); +if (x_74 == 0) +{ +uint8_t x_75; +x_75 = l_Lean_Syntax_isNodeOf(x_73, x_17, x_8); +if (x_75 == 0) +{ +lean_object* x_76; lean_object* x_77; +lean_dec(x_72); +lean_dec(x_66); +lean_dec(x_61); +lean_dec(x_1); +x_76 = lean_box(1); +x_77 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_3); +return x_77; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_78 = l_myMacro____x40_Init_Notation___hyg_2278____closed__2; +x_79 = lean_box(0); +x_80 = l_Lean_Elab_Term_expandHave___lambda__3(x_1, x_78, x_61, x_66, x_72, x_79, x_2, x_3); +lean_dec(x_1); +return x_80; +} +} +else +{ +lean_object* x_81; lean_object* x_82; lean_object* x_83; +lean_dec(x_73); +x_81 = l_myMacro____x40_Init_Notation___hyg_2278____closed__2; +x_82 = lean_box(0); +x_83 = l_Lean_Elab_Term_expandHave___lambda__3(x_1, x_81, x_61, x_66, x_72, x_82, x_2, x_3); +lean_dec(x_1); +return x_83; +} +} +} +} +} +else +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_84 = l_Lean_Syntax_getArg(x_15, x_14); +x_85 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_85, 0, x_84); +x_86 = l_myMacro____x40_Init_Notation___hyg_2278____closed__2; +x_87 = l_Lean_Parser_Syntax_addPrec___closed__4; +x_88 = lean_box(0); +x_89 = l_Lean_Elab_Term_expandHave___lambda__6(x_9, x_86, x_11, x_15, x_1, x_87, x_10, x_4, x_1, x_88, x_85, x_2, x_3); lean_dec(x_1); lean_dec(x_9); -return x_32; +return x_89; +} +} +else +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_90 = lean_box(0); +x_91 = l_myMacro____x40_Init_Notation___hyg_2278____closed__2; +x_92 = l_Lean_Parser_Syntax_addPrec___closed__4; +x_93 = lean_box(0); +x_94 = l_Lean_Elab_Term_expandHave___lambda__6(x_9, x_91, x_11, x_15, x_1, x_92, x_10, x_4, x_1, x_93, x_90, x_2, x_3); +lean_dec(x_1); +lean_dec(x_9); +return x_94; } } } } } -lean_object* l_Lean_Elab_Term_expandHave___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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l_Lean_Elab_Term_expandHave___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_Elab_Term_expandHave___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +return x_8; +} +} +lean_object* l_Lean_Elab_Term_expandHave___lambda__2___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_Elab_Term_expandHave___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +return x_8; +} +} +lean_object* l_Lean_Elab_Term_expandHave___lambda__3___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, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_Elab_Term_expandHave___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +return x_9; +} +} +lean_object* l_Lean_Elab_Term_expandHave___lambda__4___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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; -x_13 = l_Lean_Elab_Term_expandHave___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_13 = l_Lean_Elab_Term_expandHave___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_2); @@ -3063,11 +4181,11 @@ lean_dec(x_1); return x_13; } } -lean_object* l_Lean_Elab_Term_expandHave___lambda__2___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, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_Elab_Term_expandHave___lambda__5___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, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l_Lean_Elab_Term_expandHave___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lean_Elab_Term_expandHave___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_5); @@ -3075,17 +4193,19 @@ lean_dec(x_1); return x_10; } } -lean_object* l_Lean_Elab_Term_expandHave___lambda__3___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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Lean_Elab_Term_expandHave___lambda__6___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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { -lean_object* x_12; -x_12 = l_Lean_Elab_Term_expandHave___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +uint8_t x_14; lean_object* x_15; +x_14 = lean_unbox(x_3); +lean_dec(x_3); +x_15 = l_Lean_Elab_Term_expandHave___lambda__6(x_1, x_2, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_12); lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_4); +lean_dec(x_9); +lean_dec(x_5); lean_dec(x_1); -return x_12; +return x_15; } } lean_object* l_Lean_Elab_Term_expandHave___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { diff --git a/stage0/stdlib/Lean/Elab/Deriving/FromToJson.c b/stage0/stdlib/Lean/Elab/Deriving/FromToJson.c index 0d0f2cc977..cdcca488bc 100644 --- a/stage0/stdlib/Lean/Elab/Deriving/FromToJson.c +++ b/stage0/stdlib/Lean/Elab/Deriving/FromToJson.c @@ -37,7 +37,6 @@ extern lean_object* l_myMacro____x40_Init_Notation___hyg_2278____closed__2; lean_object* l_Array_append___rarg(lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler___lambda__1___closed__23; -extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; extern lean_object* l_Lean_Parser_Term_tupleTail___elambda__1___closed__1; lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler___lambda__1___closed__21; lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -114,6 +113,7 @@ lean_object* l_Lean_Elab_Term_getCurrMacroScope(lean_object*, lean_object*, lean extern lean_object* l_Lean_Parser_Term_doLetArrow___elambda__1___closed__1; lean_object* l_Lean_Syntax_mkStrLit(lean_object*, lean_object*); uint8_t l_Lean_Elab_Deriving_FromToJson_mkJsonField___lambda__1(uint32_t); +extern lean_object* l_term_x7b_x7d___closed__3; extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__22; extern lean_object* l_myMacro____x40_Init_Notation___hyg_12692____closed__5; lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__1___closed__14; @@ -121,6 +121,7 @@ lean_object* l_Lean_Elab_Deriving_mkHeader___rarg(lean_object*, lean_object*, le lean_object* l_ReaderT_bind___at_Lean_Elab_Term_instMonadLogTermElabM___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__1___closed__12; size_t lean_usize_of_nat(lean_object*); +extern lean_object* l_term_x7b_x7d___closed__5; lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_doReturn___elambda__1___closed__2; lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__1___closed__4; @@ -189,7 +190,6 @@ extern lean_object* l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler___lambda__1___closed__17; extern lean_object* l_Lean_Parser_myMacro____x40_Lean_Parser_Extra___hyg_276____closed__1; lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_addParenHeuristic___closed__1; lean_object* l_String_dropRightWhile(lean_object*, lean_object*); lean_object* l_Lean_Elab_Deriving_mkInductiveApp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Deriving_mkInductiveApp___spec__2___rarg(lean_object*, lean_object*, lean_object*); @@ -2881,7 +2881,7 @@ x_151 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_151, 0, x_38); lean_ctor_set(x_151, 1, x_150); x_152 = lean_array_push(x_48, x_151); -x_153 = l_addParenHeuristic___closed__1; +x_153 = l_term_x7b_x7d___closed__3; lean_inc(x_38); x_154 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_154, 0, x_38); @@ -2905,7 +2905,7 @@ x_165 = lean_array_push(x_156, x_164); x_166 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler___lambda__1___closed__25; x_167 = lean_array_push(x_165, x_166); x_168 = lean_array_push(x_167, x_57); -x_169 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_169 = l_term_x7b_x7d___closed__5; x_170 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_170, 0, x_38); lean_ctor_set(x_170, 1, x_169); diff --git a/stage0/stdlib/Lean/Elab/Deriving/Inhabited.c b/stage0/stdlib/Lean/Elab/Deriving/Inhabited.c index 51f3e935c9..3bfb8ec282 100644 --- a/stage0/stdlib/Lean/Elab/Deriving/Inhabited.c +++ b/stage0/stdlib/Lean/Elab/Deriving/Inhabited.c @@ -40,7 +40,6 @@ extern lean_object* l_Lean_getConstInfoInduct___rarg___lambda__1___closed__2; lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_quoteAutoTactic___spec__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkAppM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___spec__7(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_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; lean_object* l_Lean_getConstInfoInduct___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ForEachExpr_visit___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandOptIdent___closed__2; @@ -50,9 +49,9 @@ lean_object* lean_environment_find(lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f_match__2(lean_object*); extern lean_object* l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__5; +lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Inhabited___hyg_2022____closed__1; lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Inhabited___hyg_2020____closed__1; lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f___spec__1___closed__7; lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); @@ -131,6 +130,7 @@ lean_object* l_Lean_getConstInfoCtor___at___private_Lean_Elab_Deriving_Inhabited lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___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_Lean_instInhabitedExpr; lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_mkInhabitedInstanceHandler___spec__3(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); +extern lean_object* l_term_x7b_x7d___closed__3; lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_match__1___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance___closed__3; extern lean_object* l_Lean_KernelException_toMessageData___closed__15; @@ -147,6 +147,7 @@ lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_mkInhabitedInstanceHandler extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParams(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_term_x7b_x7d___closed__5; lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__23; @@ -233,10 +234,9 @@ extern lean_object* l_Lean_Meta_mkArbitrary___closed__1; lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance_match__1___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_findSomeM_x3f___rarg___closed__1; lean_object* l_Lean_getConstInfoCtor___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_addParenHeuristic___closed__1; extern lean_object* l_term_x5b___x5d___closed__3; lean_object* l_runST___rarg(lean_object*); -lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Inhabited___hyg_2020_(lean_object*); +lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Inhabited___hyg_2022_(lean_object*); lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__2(lean_object*, lean_object*, lean_object*); @@ -4780,7 +4780,7 @@ x_40 = l_Lean_Elab_Term_getMainModule___rarg(x_12, x_39); x_41 = lean_ctor_get(x_40, 1); lean_inc(x_41); lean_dec(x_40); -x_42 = l_addParenHeuristic___closed__1; +x_42 = l_term_x7b_x7d___closed__3; lean_inc(x_36); x_43 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_43, 0, x_36); @@ -4801,7 +4801,7 @@ lean_ctor_set(x_49, 0, x_46); lean_ctor_set(x_49, 1, x_2); lean_inc(x_49); x_50 = lean_array_push(x_48, x_49); -x_51 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_51 = l_term_x7b_x7d___closed__5; x_52 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_52, 0, x_36); lean_ctor_set(x_52, 1, x_51); @@ -8807,7 +8807,7 @@ lean_dec(x_1); return x_5; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Inhabited___hyg_2020____closed__1() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Inhabited___hyg_2022____closed__1() { _start: { lean_object* x_1; @@ -8815,12 +8815,12 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Elab_mkInhabitedInstanceHandler___boxed) return x_1; } } -lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Inhabited___hyg_2020_(lean_object* x_1) { +lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Inhabited___hyg_2022_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; x_2 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___rarg___closed__2; -x_3 = l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Inhabited___hyg_2020____closed__1; +x_3 = l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Inhabited___hyg_2022____closed__1; x_4 = l_Lean_Elab_registerBuiltinDerivingHandler(x_2, x_3, x_1); if (lean_obj_tag(x_4) == 0) { @@ -8929,9 +8929,9 @@ l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance___clos lean_mark_persistent(l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance___closed__2); l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance___closed__3 = _init_l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance___closed__3(); lean_mark_persistent(l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance___closed__3); -l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Inhabited___hyg_2020____closed__1 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Inhabited___hyg_2020____closed__1(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Inhabited___hyg_2020____closed__1); -res = l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Inhabited___hyg_2020_(lean_io_mk_world()); +l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Inhabited___hyg_2022____closed__1 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Inhabited___hyg_2022____closed__1(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Inhabited___hyg_2022____closed__1); +res = l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Inhabited___hyg_2022_(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/Elab/Deriving/Util.c b/stage0/stdlib/Lean/Elab/Deriving/Util.c index 1caa553f87..0cc4dc49d5 100644 --- a/stage0/stdlib/Lean/Elab/Deriving/Util.c +++ b/stage0/stdlib/Lean/Elab/Deriving/Util.c @@ -42,7 +42,6 @@ lean_object* l_Lean_Meta_mkAppM(lean_object*, lean_object*, lean_object*, lean_o lean_object* l_Lean_Elab_Deriving_mkContext___closed__1; lean_object* l_Lean_Elab_Deriving_mkInductiveApp___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); -extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; lean_object* l_Lean_Elab_Deriving_mkInductArgNames___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_anonymousCtor___elambda__1___closed__2; size_t l_USize_sub(size_t, size_t); @@ -119,6 +118,7 @@ extern lean_object* l_myMacro____x40_Init_Notation___hyg_16821____closed__12; lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_mkInstanceCmds___spec__1___lambda__1(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_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__6; extern lean_object* l_Lean_instInhabitedExpr; +extern lean_object* l_term_x7b_x7d___closed__3; extern lean_object* l_Lean_KernelException_toMessageData___closed__15; lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_mkInstanceCmds___spec__1(lean_object*, 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_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_explicitBinder(uint8_t); @@ -130,6 +130,7 @@ lean_object* l_Lean_Elab_Deriving_mkInductArgNames___closed__1; size_t lean_usize_of_nat(lean_object*); extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_term_x7b_x7d___closed__5; lean_object* l_Lean_Elab_Deriving_mkImplicitBinders___boxed__const__1; extern lean_object* l_Lean_Parser_Tactic_inductionAlt___closed__5; extern lean_object* l_Lean_nullKind___closed__2; @@ -182,7 +183,6 @@ extern lean_object* l_instReprSigma___rarg___closed__6; lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_mkHeader___spec__1(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_mkConst(lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_16821____closed__6; -extern lean_object* l_addParenHeuristic___closed__1; extern lean_object* l_myMacro____x40_Init_Notation___hyg_16821____closed__2; lean_object* l_Lean_Elab_Deriving_mkInductiveApp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Deriving_mkInductiveApp___spec__2___rarg(lean_object*, lean_object*, lean_object*); @@ -703,7 +703,7 @@ x_23 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_22); x_24 = lean_ctor_get(x_23, 1); lean_inc(x_24); lean_dec(x_23); -x_25 = l_addParenHeuristic___closed__1; +x_25 = l_term_x7b_x7d___closed__3; lean_inc(x_19); x_26 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_26, 0, x_19); @@ -719,7 +719,7 @@ lean_ctor_set(x_32, 1, x_30); x_33 = lean_array_push(x_28, x_32); x_34 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; x_35 = lean_array_push(x_33, x_34); -x_36 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_36 = l_term_x7b_x7d___closed__5; x_37 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_37, 0, x_19); lean_ctor_set(x_37, 1, x_36); diff --git a/stage0/stdlib/Lean/Elab/Exception.c b/stage0/stdlib/Lean/Elab/Exception.c index e6e9a726dc..3f77e5ddd9 100644 --- a/stage0/stdlib/Lean/Elab/Exception.c +++ b/stage0/stdlib/Lean/Elab/Exception.c @@ -17,8 +17,10 @@ lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* l_Lean_Elab_throwPostpone___rarg(lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); uint8_t l_Lean_Elab_isAbortExceptionId(lean_object*); +lean_object* l_Lean_Elab_throwAbortTactic(lean_object*, lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___rarg___closed__1; lean_object* l_Lean_Elab_isAutoBoundImplicitLocalException_x3f___boxed(lean_object*); +lean_object* l_Lean_Elab_throwAbortTactic___rarg(lean_object*); extern lean_object* l_Lean_instInhabitedParserDescr___closed__1; lean_object* l_Lean_Elab_autoBoundImplicitExceptionId; lean_object* l_Lean_Elab_throwUnsupportedSyntax___rarg(lean_object*); @@ -31,6 +33,7 @@ lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_42_(lean_object lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_3_(lean_object*); lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_16_(lean_object*); lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_55_(lean_object*); +lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_68_(lean_object*); lean_object* l_Lean_Elab_throwPostpone(lean_object*, lean_object*); lean_object* l_Lean_Elab_throwAbortCommand___rarg___closed__1; lean_object* l_Lean_Elab_isAutoBoundImplicitLocalException_x3f_match__1(lean_object*); @@ -42,9 +45,11 @@ lean_object* l_Lean_Elab_throwAbortTerm___rarg(lean_object*); lean_object* l_Lean_Elab_mkMessageCore(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); lean_object* l_Lean_Elab_throwAbortCommand(lean_object*, lean_object*); extern lean_object* l_Lean_Meta_mkArrow___closed__2; +lean_object* l_Lean_Elab_abortTacticExceptionId; lean_object* l_Lean_KVMap_getName(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_throwIllFormedSyntax___rarg___closed__1; lean_object* l_Lean_Elab_abortTermExceptionId; +lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_68____closed__1; lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); lean_object* l_Lean_Elab_throwAbortCommand___rarg(lean_object*); lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_29____closed__2; @@ -65,6 +70,7 @@ lean_object* l_Lean_Elab_throwPostpone___rarg___closed__1; lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_3____closed__2; lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__1; extern lean_object* l_Lean_KVMap_empty; +lean_object* l_Lean_Elab_throwAbortTactic___rarg___closed__1; lean_object* l_Lean_Elab_throwUnsupportedSyntax(lean_object*, lean_object*); lean_object* l_Lean_KVMap_insertCore(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_throwIllFormedSyntax(lean_object*, lean_object*); @@ -74,10 +80,13 @@ lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_3____closed__1; lean_object* l_Lean_Elab_unsupportedSyntaxExceptionId; lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_16____closed__1; lean_object* l_Lean_Elab_throwAutoBoundImplicitLocal___rarg___closed__2; +uint8_t l_Lean_Elab_isAbortTacticException(lean_object*); +lean_object* l_Lean_Elab_isAbortTacticException___boxed(lean_object*); lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_throwAbortTerm(lean_object*, lean_object*); lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_42____closed__1; lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel(lean_object*, lean_object*); +lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_68____closed__2; static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_3____closed__1() { _start: { @@ -190,7 +199,7 @@ static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_55 _start: { lean_object* x_1; -x_1 = lean_mk_string("autoBoundImplicit"); +x_1 = lean_mk_string("abortTactic"); return x_1; } } @@ -213,6 +222,33 @@ x_3 = l_Lean_registerInternalExceptionId(x_2, x_1); return x_3; } } +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_68____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("autoBoundImplicit"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_68____closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_68____closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_68_(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_68____closed__2; +x_3 = l_Lean_registerInternalExceptionId(x_2, x_1); +return x_3; +} +} static lean_object* _init_l_Lean_Elab_throwPostpone___rarg___closed__1() { _start: { @@ -549,6 +585,67 @@ x_3 = lean_alloc_closure((void*)(l_Lean_Elab_throwAbortTerm___rarg), 1, 0); return x_3; } } +static lean_object* _init_l_Lean_Elab_throwAbortTactic___rarg___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_abortTacticExceptionId; +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; +} +} +lean_object* l_Lean_Elab_throwAbortTactic___rarg(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +lean_dec(x_1); +x_3 = l_Lean_Elab_throwAbortTactic___rarg___closed__1; +x_4 = lean_apply_2(x_2, lean_box(0), x_3); +return x_4; +} +} +lean_object* l_Lean_Elab_throwAbortTactic(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_Elab_throwAbortTactic___rarg), 1, 0); +return x_3; +} +} +uint8_t l_Lean_Elab_isAbortTacticException(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +uint8_t x_2; +x_2 = 0; +return x_2; +} +else +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = lean_ctor_get(x_1, 0); +x_4 = l_Lean_Elab_abortTacticExceptionId; +x_5 = lean_nat_dec_eq(x_3, x_4); +return x_5; +} +} +} +lean_object* l_Lean_Elab_isAbortTacticException___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l_Lean_Elab_isAbortTacticException(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} uint8_t l_Lean_Elab_isAbortExceptionId(lean_object* x_1) { _start: { @@ -560,13 +657,25 @@ if (x_3 == 0) lean_object* x_4; uint8_t x_5; x_4 = l_Lean_Elab_abortTermExceptionId; x_5 = lean_nat_dec_eq(x_1, x_4); -return x_5; +if (x_5 == 0) +{ +lean_object* x_6; uint8_t x_7; +x_6 = l_Lean_Elab_abortTacticExceptionId; +x_7 = lean_nat_dec_eq(x_1, x_6); +return x_7; } else { -uint8_t x_6; -x_6 = 1; -return x_6; +uint8_t x_8; +x_8 = 1; +return x_8; +} +} +else +{ +uint8_t x_9; +x_9 = 1; +return x_9; } } } @@ -668,6 +777,15 @@ l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_55____closed__2 = _init_l_Le lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_55____closed__2); res = l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_55_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; +l_Lean_Elab_abortTacticExceptionId = lean_io_result_get_value(res); +lean_mark_persistent(l_Lean_Elab_abortTacticExceptionId); +lean_dec_ref(res); +l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_68____closed__1 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_68____closed__1(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_68____closed__1); +l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_68____closed__2 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_68____closed__2(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_68____closed__2); +res = l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_68_(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; l_Lean_Elab_autoBoundImplicitExceptionId = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_Elab_autoBoundImplicitExceptionId); lean_dec_ref(res); @@ -693,6 +811,8 @@ l_Lean_Elab_throwAbortCommand___rarg___closed__1 = _init_l_Lean_Elab_throwAbortC lean_mark_persistent(l_Lean_Elab_throwAbortCommand___rarg___closed__1); l_Lean_Elab_throwAbortTerm___rarg___closed__1 = _init_l_Lean_Elab_throwAbortTerm___rarg___closed__1(); lean_mark_persistent(l_Lean_Elab_throwAbortTerm___rarg___closed__1); +l_Lean_Elab_throwAbortTactic___rarg___closed__1 = _init_l_Lean_Elab_throwAbortTactic___rarg___closed__1(); +lean_mark_persistent(l_Lean_Elab_throwAbortTactic___rarg___closed__1); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Elab/MutualDef.c b/stage0/stdlib/Lean/Elab/MutualDef.c index 34cb2a6070..e0025d7ba4 100644 --- a/stage0/stdlib/Lean/Elab/MutualDef.c +++ b/stage0/stdlib/Lean/Elab/MutualDef.c @@ -94,7 +94,6 @@ lean_object* l_Lean_Elab_liftMacroM___rarg___lambda__1___boxed(lean_object*, lea lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsAsStructInst___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_merge(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_pushLocalDecl___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*); -extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_typeHasRecFun_match__2(lean_object*); extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__16; lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabMutualDef___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -372,6 +371,7 @@ lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check_match__1(le uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_Term_MutualClosure_getModifiersForLetRecs___spec__2(lean_object*, size_t, size_t); extern lean_object* l_Lean_docStringExt; extern lean_object* l_Lean_instInhabitedExpr; +extern lean_object* l_term_x7b_x7d___closed__3; lean_object* l_Lean_throwError___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__5(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_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__9___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_checkNotAlreadyDeclared___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__4___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -423,6 +423,7 @@ lean_object* l_Lean_Elab_expandDeclIdCore(lean_object*); lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_isExample___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_MutualClosure_Replacement_apply_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_term_x7b_x7d___closed__5; lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__1(lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Elab_Term_MutualClosure_pushMain___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_expr_update_proj(lean_object*, lean_object*); @@ -689,7 +690,6 @@ extern lean_object* l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__2___clo lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo___closed__2; lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Syntax_SepArray_getElems___spec__1(lean_object*, size_t, size_t, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_getUsedFVarsMap___boxed(lean_object*); -extern lean_object* l_addParenHeuristic___closed__1; lean_object* l_List_map___at_Lean_Elab_Term_MutualClosure_main___spec__8___boxed(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsAsStructInst___spec__2___lambda__2(lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getFunName_match__1(lean_object*); @@ -6111,7 +6111,7 @@ if (x_40 == 0) { 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; size_t 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_41 = lean_ctor_get(x_39, 0); -x_42 = l_addParenHeuristic___closed__1; +x_42 = l_term_x7b_x7d___closed__3; lean_inc(x_41); x_43 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_43, 0, x_41); @@ -6137,7 +6137,7 @@ x_56 = lean_array_push(x_47, x_55); x_57 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__16; x_58 = lean_array_push(x_56, x_57); x_59 = lean_array_push(x_58, x_46); -x_60 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_60 = l_term_x7b_x7d___closed__5; x_61 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_61, 0, x_41); lean_ctor_set(x_61, 1, x_60); @@ -6157,7 +6157,7 @@ x_66 = lean_ctor_get(x_39, 1); lean_inc(x_66); lean_inc(x_65); lean_dec(x_39); -x_67 = l_addParenHeuristic___closed__1; +x_67 = l_term_x7b_x7d___closed__3; lean_inc(x_65); x_68 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_68, 0, x_65); @@ -6183,7 +6183,7 @@ x_81 = lean_array_push(x_72, x_80); x_82 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__16; x_83 = lean_array_push(x_81, x_82); x_84 = lean_array_push(x_83, x_71); -x_85 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_85 = l_term_x7b_x7d___closed__5; x_86 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_86, 0, x_65); lean_ctor_set(x_86, 1, x_85); diff --git a/stage0/stdlib/Lean/Elab/SyntheticMVars.c b/stage0/stdlib/Lean/Elab/SyntheticMVars.c index 8bdf93a5d6..88c7b5de97 100644 --- a/stage0/stdlib/Lean/Elab/SyntheticMVars.c +++ b/stage0/stdlib/Lean/Elab/SyntheticMVars.c @@ -32,7 +32,6 @@ lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_visit_match__1(lean_object*); lean_object* l_Lean_Meta_getDefaultInstancesPriorities___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefault___spec__1___rarg(lean_object*, lean_object*); extern lean_object* l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; -lean_object* l_Lean_Elab_Term_liftTacticElabM___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVar_match__1(lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingInstMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -49,7 +48,6 @@ lean_object* l_List_forIn_loop___at___private_Lean_Elab_SyntheticMVars_0__Lean_E lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_tryToSynthesizeUsingDefaultInstance___spec__1(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___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingCoeInstMVar___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkMVar(lean_object*); -lean_object* l_Lean_Elab_Term_liftTacticElabM___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_elabTermAndSynthesize(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumeElabTerm(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); @@ -141,10 +139,8 @@ lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePe lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_tryToSynthesizeUsingDefaultInstances___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1___closed__6; lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___closed__6; -lean_object* l_Lean_Elab_Tactic_getUnsolvedGoals(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reportStuckSyntheticMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_st_mk_ref(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed_match__1(lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingCoeInstMVar___lambda__4___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*); lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_visit_match__3(lean_object*); @@ -163,9 +159,9 @@ lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_ lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___closed__2; extern lean_object* l_Lean_KernelException_toMessageData___closed__15; lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingCoeInstMVar___lambda__3___closed__3; +lean_object* l_Lean_Elab_Tactic_run(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_bind___at_Lean_Elab_Term_instMonadLogTermElabM___spec__2___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_liftTacticElabM(lean_object*); lean_object* l_ReaderT_pure___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVar___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingInstMVar___lambda__1___closed__1; lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -276,7 +272,6 @@ lean_object* l_Std_RBNode_find___at_Lean_Meta_addDefaultInstanceEntry___spec__3( lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_tryToSynthesizeUsingDefaultInstances_match__2(lean_object*); extern lean_object* l_Array_findSomeM_x3f___rarg___closed__1; lean_object* l_Lean_Meta_getDefaultInstancesPriorities___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefault___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_liftTacticElabM___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_SyntheticMVars_0__Lean_Elab_Term_tryToSynthesizeUsingDefaultInstances_match__4___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withSynthesize___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefault_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -9215,9 +9210,11 @@ return x_71; lean_object* l_Lean_Elab_Term_runTactic___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, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -lean_object* x_11; -x_11 = l_Lean_Elab_Tactic_getUnsolvedGoals(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_11; +uint8_t x_11; lean_object* x_12; lean_object* x_13; +x_11 = 0; +x_12 = lean_box(0); +x_13 = l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(x_11, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_13; } } static lean_object* _init_l_Lean_Elab_Term_runTactic___closed__1() { @@ -9289,7 +9286,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_64 = l_Lean_Elab_Term_liftTacticElabM___rarg(x_1, x_56, x_3, x_4, x_5, x_6, x_7, x_8, x_63); +x_64 = l_Lean_Elab_Tactic_run(x_1, x_56, x_3, x_4, x_5, x_6, x_7, x_8, x_63); x_10 = x_64; goto block_27; } @@ -9312,7 +9309,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_69 = l_Lean_Elab_Term_liftTacticElabM___rarg(x_1, x_56, x_3, x_4, x_5, x_6, x_7, x_8, x_68); +x_69 = l_Lean_Elab_Tactic_run(x_1, x_56, x_3, x_4, x_5, x_6, x_7, x_8, x_68); if (lean_obj_tag(x_69) == 0) { 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; uint8_t x_78; @@ -10013,7 +10010,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_255 = l_Lean_Elab_Term_liftTacticElabM___rarg(x_1, x_247, x_3, x_4, x_5, x_6, x_7, x_8, x_254); +x_255 = l_Lean_Elab_Tactic_run(x_1, x_247, x_3, x_4, x_5, x_6, x_7, x_8, x_254); x_10 = x_255; goto block_27; } @@ -10036,7 +10033,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_260 = l_Lean_Elab_Term_liftTacticElabM___rarg(x_1, x_247, x_3, x_4, x_5, x_6, x_7, x_8, x_259); +x_260 = l_Lean_Elab_Tactic_run(x_1, x_247, x_3, x_4, x_5, x_6, x_7, x_8, x_259); if (lean_obj_tag(x_260) == 0) { lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; uint8_t x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; uint8_t x_281; @@ -10519,567 +10516,6 @@ goto block_27; } } } -lean_object* l_Lean_Elab_Term_liftTacticElabM___rarg___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, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; -x_24 = lean_ctor_get(x_3, 1); -x_50 = lean_st_ref_get(x_9, x_10); -x_51 = lean_ctor_get(x_50, 1); -lean_inc(x_51); -lean_dec(x_50); -x_52 = lean_st_ref_take(x_5, x_51); -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -x_54 = lean_ctor_get(x_52, 1); -lean_inc(x_54); -lean_dec(x_52); -x_55 = !lean_is_exclusive(x_53); -if (x_55 == 0) -{ -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; lean_object* x_65; lean_object* x_66; -x_56 = lean_ctor_get(x_53, 1); -lean_dec(x_56); -x_57 = lean_box(0); -lean_ctor_set(x_53, 1, x_57); -x_58 = lean_st_ref_set(x_5, x_53, x_54); -x_59 = lean_ctor_get(x_58, 1); -lean_inc(x_59); -lean_dec(x_58); -lean_inc(x_1); -x_60 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_60, 0, x_1); -lean_ctor_set(x_60, 1, x_57); -x_61 = lean_st_ref_get(x_9, x_59); -x_62 = lean_ctor_get(x_61, 1); -lean_inc(x_62); -lean_dec(x_61); -x_63 = lean_st_mk_ref(x_60, x_62); -x_64 = lean_ctor_get(x_63, 0); -lean_inc(x_64); -x_65 = lean_ctor_get(x_63, 1); -lean_inc(x_65); -lean_dec(x_63); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_64); -x_66 = lean_apply_9(x_2, x_1, x_64, x_4, x_5, x_6, x_7, x_8, x_9, x_65); -if (lean_obj_tag(x_66) == 0) -{ -lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; lean_object* x_74; lean_object* x_75; -x_67 = lean_ctor_get(x_66, 0); -lean_inc(x_67); -x_68 = lean_ctor_get(x_66, 1); -lean_inc(x_68); -lean_dec(x_66); -x_69 = lean_st_ref_get(x_9, x_68); -x_70 = lean_ctor_get(x_69, 1); -lean_inc(x_70); -lean_dec(x_69); -x_71 = lean_st_ref_get(x_64, x_70); -lean_dec(x_64); -x_72 = lean_ctor_get(x_71, 1); -lean_inc(x_72); -lean_dec(x_71); -x_73 = 0; -x_74 = lean_box(0); -lean_inc(x_9); -lean_inc(x_5); -x_75 = l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(x_73, x_74, x_4, x_5, x_6, x_7, x_8, x_9, x_72); -if (lean_obj_tag(x_75) == 0) -{ -lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t x_82; -x_76 = lean_ctor_get(x_75, 1); -lean_inc(x_76); -lean_dec(x_75); -x_77 = lean_st_ref_get(x_9, x_76); -lean_dec(x_9); -x_78 = lean_ctor_get(x_77, 1); -lean_inc(x_78); -lean_dec(x_77); -x_79 = lean_st_ref_take(x_5, x_78); -x_80 = lean_ctor_get(x_79, 0); -lean_inc(x_80); -x_81 = lean_ctor_get(x_79, 1); -lean_inc(x_81); -lean_dec(x_79); -x_82 = !lean_is_exclusive(x_80); -if (x_82 == 0) -{ -lean_object* x_83; lean_object* x_84; uint8_t x_85; -x_83 = lean_ctor_get(x_80, 1); -lean_dec(x_83); -lean_inc(x_24); -lean_ctor_set(x_80, 1, x_24); -x_84 = lean_st_ref_set(x_5, x_80, x_81); -lean_dec(x_5); -x_85 = !lean_is_exclusive(x_84); -if (x_85 == 0) -{ -lean_object* x_86; lean_object* x_87; -x_86 = lean_ctor_get(x_84, 0); -lean_dec(x_86); -x_87 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_87, 0, x_67); -lean_ctor_set(x_87, 1, x_74); -lean_ctor_set(x_84, 0, x_87); -x_11 = x_84; -goto block_23; -} -else -{ -lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_88 = lean_ctor_get(x_84, 1); -lean_inc(x_88); -lean_dec(x_84); -x_89 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_89, 0, x_67); -lean_ctor_set(x_89, 1, x_74); -x_90 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_90, 0, x_89); -lean_ctor_set(x_90, 1, x_88); -x_11 = x_90; -goto block_23; -} -} -else -{ -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; -x_91 = lean_ctor_get(x_80, 0); -x_92 = lean_ctor_get(x_80, 2); -x_93 = lean_ctor_get(x_80, 3); -x_94 = lean_ctor_get(x_80, 4); -x_95 = lean_ctor_get(x_80, 5); -lean_inc(x_95); -lean_inc(x_94); -lean_inc(x_93); -lean_inc(x_92); -lean_inc(x_91); -lean_dec(x_80); -lean_inc(x_24); -x_96 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_96, 0, x_91); -lean_ctor_set(x_96, 1, x_24); -lean_ctor_set(x_96, 2, x_92); -lean_ctor_set(x_96, 3, x_93); -lean_ctor_set(x_96, 4, x_94); -lean_ctor_set(x_96, 5, x_95); -x_97 = lean_st_ref_set(x_5, x_96, x_81); -lean_dec(x_5); -x_98 = lean_ctor_get(x_97, 1); -lean_inc(x_98); -if (lean_is_exclusive(x_97)) { - lean_ctor_release(x_97, 0); - lean_ctor_release(x_97, 1); - x_99 = x_97; -} else { - lean_dec_ref(x_97); - x_99 = lean_box(0); -} -x_100 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_100, 0, x_67); -lean_ctor_set(x_100, 1, x_74); -if (lean_is_scalar(x_99)) { - x_101 = lean_alloc_ctor(0, 2, 0); -} else { - x_101 = x_99; -} -lean_ctor_set(x_101, 0, x_100); -lean_ctor_set(x_101, 1, x_98); -x_11 = x_101; -goto block_23; -} -} -else -{ -lean_object* x_102; lean_object* x_103; -lean_dec(x_67); -x_102 = lean_ctor_get(x_75, 0); -lean_inc(x_102); -x_103 = lean_ctor_get(x_75, 1); -lean_inc(x_103); -lean_dec(x_75); -x_25 = x_102; -x_26 = x_103; -goto block_49; -} -} -else -{ -lean_object* x_104; lean_object* x_105; -lean_dec(x_64); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -x_104 = lean_ctor_get(x_66, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_66, 1); -lean_inc(x_105); -lean_dec(x_66); -x_25 = x_104; -x_26 = x_105; -goto block_49; -} -} -else -{ -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; lean_object* x_120; lean_object* x_121; -x_106 = lean_ctor_get(x_53, 0); -x_107 = lean_ctor_get(x_53, 2); -x_108 = lean_ctor_get(x_53, 3); -x_109 = lean_ctor_get(x_53, 4); -x_110 = lean_ctor_get(x_53, 5); -lean_inc(x_110); -lean_inc(x_109); -lean_inc(x_108); -lean_inc(x_107); -lean_inc(x_106); -lean_dec(x_53); -x_111 = lean_box(0); -x_112 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_112, 0, x_106); -lean_ctor_set(x_112, 1, x_111); -lean_ctor_set(x_112, 2, x_107); -lean_ctor_set(x_112, 3, x_108); -lean_ctor_set(x_112, 4, x_109); -lean_ctor_set(x_112, 5, x_110); -x_113 = lean_st_ref_set(x_5, x_112, x_54); -x_114 = lean_ctor_get(x_113, 1); -lean_inc(x_114); -lean_dec(x_113); -lean_inc(x_1); -x_115 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_115, 0, x_1); -lean_ctor_set(x_115, 1, x_111); -x_116 = lean_st_ref_get(x_9, x_114); -x_117 = lean_ctor_get(x_116, 1); -lean_inc(x_117); -lean_dec(x_116); -x_118 = lean_st_mk_ref(x_115, x_117); -x_119 = lean_ctor_get(x_118, 0); -lean_inc(x_119); -x_120 = lean_ctor_get(x_118, 1); -lean_inc(x_120); -lean_dec(x_118); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_119); -x_121 = lean_apply_9(x_2, x_1, x_119, x_4, x_5, x_6, x_7, x_8, x_9, x_120); -if (lean_obj_tag(x_121) == 0) -{ -lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; uint8_t x_128; lean_object* x_129; lean_object* x_130; -x_122 = lean_ctor_get(x_121, 0); -lean_inc(x_122); -x_123 = lean_ctor_get(x_121, 1); -lean_inc(x_123); -lean_dec(x_121); -x_124 = lean_st_ref_get(x_9, x_123); -x_125 = lean_ctor_get(x_124, 1); -lean_inc(x_125); -lean_dec(x_124); -x_126 = lean_st_ref_get(x_119, x_125); -lean_dec(x_119); -x_127 = lean_ctor_get(x_126, 1); -lean_inc(x_127); -lean_dec(x_126); -x_128 = 0; -x_129 = lean_box(0); -lean_inc(x_9); -lean_inc(x_5); -x_130 = l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(x_128, x_129, x_4, x_5, x_6, x_7, x_8, x_9, x_127); -if (lean_obj_tag(x_130) == 0) -{ -lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; -x_131 = lean_ctor_get(x_130, 1); -lean_inc(x_131); -lean_dec(x_130); -x_132 = lean_st_ref_get(x_9, x_131); -lean_dec(x_9); -x_133 = lean_ctor_get(x_132, 1); -lean_inc(x_133); -lean_dec(x_132); -x_134 = lean_st_ref_take(x_5, x_133); -x_135 = lean_ctor_get(x_134, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_134, 1); -lean_inc(x_136); -lean_dec(x_134); -x_137 = lean_ctor_get(x_135, 0); -lean_inc(x_137); -x_138 = lean_ctor_get(x_135, 2); -lean_inc(x_138); -x_139 = lean_ctor_get(x_135, 3); -lean_inc(x_139); -x_140 = lean_ctor_get(x_135, 4); -lean_inc(x_140); -x_141 = lean_ctor_get(x_135, 5); -lean_inc(x_141); -if (lean_is_exclusive(x_135)) { - lean_ctor_release(x_135, 0); - lean_ctor_release(x_135, 1); - lean_ctor_release(x_135, 2); - lean_ctor_release(x_135, 3); - lean_ctor_release(x_135, 4); - lean_ctor_release(x_135, 5); - x_142 = x_135; -} else { - lean_dec_ref(x_135); - x_142 = lean_box(0); -} -lean_inc(x_24); -if (lean_is_scalar(x_142)) { - x_143 = lean_alloc_ctor(0, 6, 0); -} else { - x_143 = x_142; -} -lean_ctor_set(x_143, 0, x_137); -lean_ctor_set(x_143, 1, x_24); -lean_ctor_set(x_143, 2, x_138); -lean_ctor_set(x_143, 3, x_139); -lean_ctor_set(x_143, 4, x_140); -lean_ctor_set(x_143, 5, x_141); -x_144 = lean_st_ref_set(x_5, x_143, x_136); -lean_dec(x_5); -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 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_147, 0, x_122); -lean_ctor_set(x_147, 1, x_129); -if (lean_is_scalar(x_146)) { - x_148 = lean_alloc_ctor(0, 2, 0); -} else { - x_148 = x_146; -} -lean_ctor_set(x_148, 0, x_147); -lean_ctor_set(x_148, 1, x_145); -x_11 = x_148; -goto block_23; -} -else -{ -lean_object* x_149; lean_object* x_150; -lean_dec(x_122); -x_149 = lean_ctor_get(x_130, 0); -lean_inc(x_149); -x_150 = lean_ctor_get(x_130, 1); -lean_inc(x_150); -lean_dec(x_130); -x_25 = x_149; -x_26 = x_150; -goto block_49; -} -} -else -{ -lean_object* x_151; lean_object* x_152; -lean_dec(x_119); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -x_151 = lean_ctor_get(x_121, 0); -lean_inc(x_151); -x_152 = lean_ctor_get(x_121, 1); -lean_inc(x_152); -lean_dec(x_121); -x_25 = x_151; -x_26 = x_152; -goto block_49; -} -} -block_23: -{ -if (lean_obj_tag(x_11) == 0) -{ -uint8_t x_12; -x_12 = !lean_is_exclusive(x_11); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; -x_13 = lean_ctor_get(x_11, 0); -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -lean_dec(x_13); -lean_ctor_set(x_11, 0, x_14); -return x_11; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_15 = lean_ctor_get(x_11, 0); -x_16 = lean_ctor_get(x_11, 1); -lean_inc(x_16); -lean_inc(x_15); -lean_dec(x_11); -x_17 = lean_ctor_get(x_15, 0); -lean_inc(x_17); -lean_dec(x_15); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_16); -return x_18; -} -} -else -{ -uint8_t x_19; -x_19 = !lean_is_exclusive(x_11); -if (x_19 == 0) -{ -return x_11; -} -else -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_11, 0); -x_21 = lean_ctor_get(x_11, 1); -lean_inc(x_21); -lean_inc(x_20); -lean_dec(x_11); -x_22 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_22, 0, x_20); -lean_ctor_set(x_22, 1, x_21); -return x_22; -} -} -} -block_49: -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; -x_27 = lean_st_ref_get(x_9, x_26); -lean_dec(x_9); -x_28 = lean_ctor_get(x_27, 1); -lean_inc(x_28); -lean_dec(x_27); -x_29 = lean_st_ref_take(x_5, x_28); -x_30 = lean_ctor_get(x_29, 0); -lean_inc(x_30); -x_31 = lean_ctor_get(x_29, 1); -lean_inc(x_31); -lean_dec(x_29); -x_32 = !lean_is_exclusive(x_30); -if (x_32 == 0) -{ -lean_object* x_33; lean_object* x_34; uint8_t x_35; -x_33 = lean_ctor_get(x_30, 1); -lean_dec(x_33); -lean_inc(x_24); -lean_ctor_set(x_30, 1, x_24); -x_34 = lean_st_ref_set(x_5, x_30, x_31); -lean_dec(x_5); -x_35 = !lean_is_exclusive(x_34); -if (x_35 == 0) -{ -lean_object* x_36; -x_36 = lean_ctor_get(x_34, 0); -lean_dec(x_36); -lean_ctor_set_tag(x_34, 1); -lean_ctor_set(x_34, 0, x_25); -x_11 = x_34; -goto block_23; -} -else -{ -lean_object* x_37; lean_object* x_38; -x_37 = lean_ctor_get(x_34, 1); -lean_inc(x_37); -lean_dec(x_34); -x_38 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_38, 0, x_25); -lean_ctor_set(x_38, 1, x_37); -x_11 = x_38; -goto block_23; -} -} -else -{ -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; -x_39 = lean_ctor_get(x_30, 0); -x_40 = lean_ctor_get(x_30, 2); -x_41 = lean_ctor_get(x_30, 3); -x_42 = lean_ctor_get(x_30, 4); -x_43 = lean_ctor_get(x_30, 5); -lean_inc(x_43); -lean_inc(x_42); -lean_inc(x_41); -lean_inc(x_40); -lean_inc(x_39); -lean_dec(x_30); -lean_inc(x_24); -x_44 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_44, 0, x_39); -lean_ctor_set(x_44, 1, x_24); -lean_ctor_set(x_44, 2, x_40); -lean_ctor_set(x_44, 3, x_41); -lean_ctor_set(x_44, 4, x_42); -lean_ctor_set(x_44, 5, x_43); -x_45 = lean_st_ref_set(x_5, x_44, x_31); -lean_dec(x_5); -x_46 = lean_ctor_get(x_45, 1); -lean_inc(x_46); -if (lean_is_exclusive(x_45)) { - lean_ctor_release(x_45, 0); - lean_ctor_release(x_45, 1); - x_47 = x_45; -} else { - lean_dec_ref(x_45); - x_47 = lean_box(0); -} -if (lean_is_scalar(x_47)) { - x_48 = lean_alloc_ctor(1, 2, 0); -} else { - x_48 = x_47; - lean_ctor_set_tag(x_48, 1); -} -lean_ctor_set(x_48, 0, x_25); -lean_ctor_set(x_48, 1, x_46); -x_11 = x_48; -goto block_23; -} -} -} -} -lean_object* l_Lean_Elab_Term_liftTacticElabM___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, lean_object* x_9) { -_start: -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -lean_inc(x_1); -x_10 = lean_alloc_closure((void*)(l_Lean_Elab_Term_liftTacticElabM___rarg___lambda__1___boxed), 10, 2); -lean_closure_set(x_10, 0, x_1); -lean_closure_set(x_10, 1, x_2); -x_11 = l_Lean_Elab_Term_instMonadInfoTreeTermElabM___closed__1; -x_12 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Term_instMonadLogTermElabM___spec__2___rarg), 9, 2); -lean_closure_set(x_12, 0, x_11); -lean_closure_set(x_12, 1, x_10); -x_13 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__4___rarg(x_1, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_13; -} -} -lean_object* l_Lean_Elab_Term_liftTacticElabM(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_liftTacticElabM___rarg), 9, 0); -return x_2; -} -} lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars(uint8_t 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: { @@ -11191,27 +10627,12 @@ _start: { lean_object* x_11; x_11 = l_Lean_Elab_Term_runTactic___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); return x_11; } } -lean_object* l_Lean_Elab_Term_liftTacticElabM___rarg___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, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = l_Lean_Elab_Term_liftTacticElabM___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_3); -return x_11; -} -} lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars___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, lean_object* x_8) { _start: { diff --git a/stage0/stdlib/Lean/Elab/Tactic/Basic.c b/stage0/stdlib/Lean/Elab/Tactic/Basic.c index e40ec08f33..7a39162fa7 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Basic.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Basic.c @@ -144,9 +144,11 @@ lean_object* l_Lean_Elab_log___at_Lean_Elab_Tactic_evalOpen___spec__8(lean_objec uint8_t lean_name_eq(lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_15342____closed__4; lean_object* l_Lean_Elab_Tactic_evalTactic(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_TacticM_runCore_x27(lean_object*); lean_object* l_Lean_Elab_goalsToMessageData___closed__1; extern lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20292____closed__5; lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCase___closed__1; +lean_object* l_Lean_Elab_Tactic_run___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_List_forIn_loop___at_Lean_Elab_Tactic_tagUntaggedGoals___spec__1(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_Meta_subst(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_getIntrosSize_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -260,7 +262,6 @@ extern lean_object* l_Lean_Meta_clear___lambda__3___closed__2; lean_object* l_Lean_Elab_Tactic_ensureHasNoMVars___boxed(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_goalsToMessageData___closed__2; lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRotateLeft(lean_object*); -lean_object* l_Lean_Elab_Tactic_TacticM_run_x27(lean_object*); extern lean_object* l___private_Lean_Util_Trace_0__Lean_addNode___rarg___lambda__1___closed__3; uint8_t l_Lean_Name_hasMacroScopes(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDone___closed__1; @@ -314,7 +315,6 @@ lean_object* l_List_findM_x3f___at___private_Lean_Elab_Tactic_Basic_0__Lean_Elab extern lean_object* l_Lean_Parser_Tactic_traceState___closed__2; lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_evalTacticUsing_loop_match__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2(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_object* l_Lean_Elab_Tactic_TacticM_run(lean_object*); lean_object* l_List_foldl___at_Array_appendList___spec__1___rarg(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_getFVarIds___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* l___regBuiltin_Lean_Elab_Tactic_evalFailIfSuccess(lean_object*); @@ -389,6 +389,7 @@ lean_object* l_Lean_Elab_Tactic_liftMetaTacticAux_match__1(lean_object*, lean_ob lean_object* l_Lean_Elab_Tactic_evalCase___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*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_revert(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalChoice___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_TacticM_runCore___rarg(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_Tactic_closeMainGoal___lambda__1(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_Meta_withMVarContext___at_Lean_Elab_Tactic_withMainContext___spec__1(lean_object*); lean_object* l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___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*); @@ -436,6 +437,7 @@ extern lean_object* l_Lean_instInhabitedSyntax; lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Tactic_evalOpen___spec__3(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_assumption(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_introNCore(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_run(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_getIntrosSize(lean_object*); lean_object* l_Lean_Elab_mkElabAttribute___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalFirst___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*); @@ -446,6 +448,7 @@ lean_object* l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM___closed__1; lean_object* l_Lean_Elab_Tactic_evalFailIfSuccess___closed__2; lean_object* l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Tactic_elabSetOption___spec__6___lambda__1(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_reportUnsolvedGoals___closed__1; +lean_object* l_ReaderT_bind___at_Lean_Elab_Term_instMonadLogTermElabM___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Tactic_paren___closed__1; lean_object* l_Lean_Elab_Term_reportUnsolvedGoals___closed__4; lean_object* l_Lean_Elab_Tactic_evalRotateLeft___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -453,6 +456,7 @@ extern lean_object* l_Lean_Parser_Tactic_done___closed__2; extern lean_object* l_myMacro____x40_Init_Notation___hyg_14734____closed__13; lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_erase___at_Lean_Elab_Tactic_evalCase___spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_TacticM_runCore(lean_object*); lean_object* l_Std_PersistentHashMap_findAux___at_Lean_Elab_Tactic_evalTacticAux___spec__4(lean_object*, size_t, lean_object*); extern lean_object* l_Lean_KernelException_toMessageData___closed__3; size_t lean_usize_of_nat(lean_object*); @@ -499,6 +503,7 @@ lean_object* l_Lean_Elab_Tactic_evalOpen(lean_object*, lean_object*, lean_object lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSubst___closed__1; lean_object* l_Lean_Meta_assignExprMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_tryTactic_x3f(lean_object*); +lean_object* l_Lean_Meta_withMVarContext___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_evalSeq1___spec__1(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_Lean_Syntax_mkApp___closed__1; lean_object* l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Tactic_withMacroExpansion___spec__1(lean_object*); @@ -537,12 +542,14 @@ lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTraceState___closed__1; extern lean_object* l___private_Lean_Util_Trace_0__Lean_addNode___rarg___lambda__1___closed__1; lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_evalTacticAux___spec__8___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_Elab_Tactic_getMainGoal_loop_match__1___rarg(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_Term_instMonadInfoTreeTermElabM___closed__1; extern lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_1247____closed__1; uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_ensureHasNoMVars___closed__2; lean_object* l_List_rotateRight___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalCase___lambda__1(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_Tactic_liftMetaTactic___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*); +lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_TacticM_runCore_x27___rarg(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_SavedState_restore(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalFirst___lambda__1(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_Syntax_getArgs(lean_object*); @@ -577,6 +584,7 @@ lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Tactic_evalIntro___ lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_expandTacticMacroFns_loop___spec__6___rarg(lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Tactic_match___elambda__1___closed__1; +lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5578____closed__1; lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_withTacticInfoContext___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalAssumption___rarg___closed__2; lean_object* l_List_filterAuxM___at_Lean_Elab_Tactic_pruneSolvedGoals___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*); @@ -585,7 +593,6 @@ lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___a lean_object* l_Lean_Elab_Tactic_evalIntros_match__1(lean_object*); lean_object* l_Lean_Meta_isExprMVarAssigned(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalCase___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* l_Lean_Elab_Tactic_TacticM_run___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_Parser_Tactic_case___closed__2; lean_object* l_Lean_Elab_Tactic_evalChoiceAux(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_logException___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -594,7 +601,6 @@ lean_object* l_Lean_Elab_Tactic_withMacroExpansion___rarg___lambda__1(lean_objec lean_object* l___regBuiltin_Lean_Elab_Tactic_evalAllGoals___closed__1; lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Tactic_elabSetOption___spec__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_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5423____closed__1; extern lean_object* l_Lean_Parser_Tactic_tacticTry_____closed__2; lean_object* l_Lean_Elab_Tactic_evalTacticAt(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___regBuiltin_Lean_Elab_Tactic_evalParen___closed__1; @@ -629,7 +635,7 @@ lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__21_ lean_object* l_Lean_Elab_Tactic_closeMainGoal(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_liftMacroM___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_tryTactic___rarg(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_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5423_(lean_object*); +lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5578_(lean_object*); lean_object* l_Lean_Meta_getMVarDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withPPInaccessibleNames___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_throwNoGoalsToBeSolved___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -712,6 +718,7 @@ lean_object* l_Lean_Elab_Tactic_expandTacticMacroFns_loop(lean_object*, lean_obj lean_object* l_List_erase___at_Lean_Elab_Tactic_evalCase___spec__1___boxed(lean_object*, lean_object*); lean_object* lean_local_ctx_find(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalIntro_introStep_match__1(lean_object*); +uint8_t l_Lean_Elab_isAbortTacticException(lean_object*); lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_evalTacticUsing_loop_match__3(lean_object*); lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Tactic_evalOpen___spec__10(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_usize_to_nat(size_t); @@ -760,7 +767,7 @@ lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__13_ lean_object* l_Lean_ScopedEnvExtension_getState___at_Lean_Elab_Tactic_evalTacticAux___spec__1(lean_object*, lean_object*); lean_object* l_Lean_ScopedEnvExtension_activateScoped___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Command_openHiding___elambda__1___closed__2; -lean_object* l_Lean_Elab_Tactic_TacticM_run_x27___rarg(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_Tactic_run___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_Elab_Tactic_expandTacticMacro(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_Tactic_expandTacticMacroFns_loop_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM___closed__2; @@ -951,6 +958,1078 @@ x_1 = lean_box(0); return x_1; } } +lean_object* l_Lean_Elab_Tactic_getGoals___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: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_9 = lean_st_ref_get(x_7, x_8); +x_10 = lean_ctor_get(x_9, 1); +lean_inc(x_10); +lean_dec(x_9); +x_11 = lean_st_ref_get(x_1, x_10); +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) +{ +return x_11; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_11, 0); +x_14 = lean_ctor_get(x_11, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_11); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_13); +lean_ctor_set(x_15, 1, x_14); +return x_15; +} +} +} +lean_object* l_Lean_Elab_Tactic_getGoals(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_getGoals___rarg___boxed), 8, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Tactic_getGoals___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, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_Elab_Tactic_getGoals___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_9; +} +} +lean_object* l_Lean_Elab_Tactic_getGoals___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Elab_Tactic_getGoals(x_1); +lean_dec(x_1); +return x_2; +} +} +lean_object* l_Lean_Elab_Tactic_setGoals(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, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_11 = lean_st_ref_get(x_9, x_10); +x_12 = lean_ctor_get(x_11, 1); +lean_inc(x_12); +lean_dec(x_11); +x_13 = lean_st_ref_take(x_3, x_12); +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +lean_dec(x_13); +x_15 = lean_st_ref_set(x_3, x_1, x_14); +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_15, 0); +lean_dec(x_17); +x_18 = lean_box(0); +lean_ctor_set(x_15, 0, x_18); +return x_15; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_15, 1); +lean_inc(x_19); +lean_dec(x_15); +x_20 = lean_box(0); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_19); +return x_21; +} +} +} +lean_object* l_Lean_Elab_Tactic_setGoals___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, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Elab_Tactic_setGoals(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_11; +} +} +lean_object* l_List_filterAuxM___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_12; +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_2); +lean_ctor_set(x_12, 1, x_11); +return x_12; +} +else +{ +uint8_t x_13; +x_13 = !lean_is_exclusive(x_1); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_14 = lean_ctor_get(x_1, 0); +x_15 = lean_ctor_get(x_1, 1); +x_16 = l_Lean_Meta_isExprMVarAssigned(x_14, x_7, x_8, x_9, x_10, x_11); +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_unbox(x_17); +lean_dec(x_17); +if (x_18 == 0) +{ +lean_object* x_19; +x_19 = lean_ctor_get(x_16, 1); +lean_inc(x_19); +lean_dec(x_16); +lean_ctor_set(x_1, 1, x_2); +{ +lean_object* _tmp_0 = x_15; +lean_object* _tmp_1 = x_1; +lean_object* _tmp_10 = x_19; +x_1 = _tmp_0; +x_2 = _tmp_1; +x_11 = _tmp_10; +} +goto _start; +} +else +{ +lean_object* x_21; +lean_free_object(x_1); +lean_dec(x_14); +x_21 = lean_ctor_get(x_16, 1); +lean_inc(x_21); +lean_dec(x_16); +x_1 = x_15; +x_11 = x_21; +goto _start; +} +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_23 = lean_ctor_get(x_1, 0); +x_24 = lean_ctor_get(x_1, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_1); +x_25 = l_Lean_Meta_isExprMVarAssigned(x_23, x_7, x_8, x_9, x_10, x_11); +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_unbox(x_26); +lean_dec(x_26); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; +x_28 = lean_ctor_get(x_25, 1); +lean_inc(x_28); +lean_dec(x_25); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_23); +lean_ctor_set(x_29, 1, x_2); +x_1 = x_24; +x_2 = x_29; +x_11 = x_28; +goto _start; +} +else +{ +lean_object* x_31; +lean_dec(x_23); +x_31 = lean_ctor_get(x_25, 1); +lean_inc(x_31); +lean_dec(x_25); +x_1 = x_24; +x_11 = x_31; +goto _start; +} +} +} +} +} +lean_object* l_Lean_Elab_Tactic_pruneSolvedGoals(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, lean_object* x_9) { +_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; +x_10 = l_Lean_Elab_Tactic_getGoals___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = lean_box(0); +x_14 = l_List_filterAuxM___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__1(x_11, x_13, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = l_List_reverse___rarg(x_15); +x_18 = l_Lean_Elab_Tactic_setGoals(x_17, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_16); +return x_18; +} +} +lean_object* l_List_filterAuxM___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_List_filterAuxM___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_12; +} +} +lean_object* l_Lean_Elab_Tactic_pruneSolvedGoals___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, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Elab_Tactic_pruneSolvedGoals(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_10; +} +} +lean_object* l_Lean_Elab_Tactic_getUnsolvedGoals(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, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = l_Lean_Elab_Tactic_pruneSolvedGoals(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_11 = lean_ctor_get(x_10, 1); +lean_inc(x_11); +lean_dec(x_10); +x_12 = l_Lean_Elab_Tactic_getGoals___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_11); +return x_12; +} +} +lean_object* l_Lean_Elab_Tactic_getUnsolvedGoals___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, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Elab_Tactic_getUnsolvedGoals(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_10; +} +} +lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_TacticM_runCore___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, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_11 = lean_st_ref_get(x_9, x_10); +x_12 = lean_ctor_get(x_11, 1); +lean_inc(x_12); +lean_dec(x_11); +x_13 = lean_st_mk_ref(x_3, x_12); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +lean_inc(x_9); +lean_inc(x_14); +x_16 = lean_apply_9(x_1, x_2, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_15); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +x_19 = lean_st_ref_get(x_9, x_18); +lean_dec(x_9); +x_20 = lean_ctor_get(x_19, 1); +lean_inc(x_20); +lean_dec(x_19); +x_21 = lean_st_ref_get(x_14, x_20); +lean_dec(x_14); +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; +x_23 = lean_ctor_get(x_21, 0); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_17); +lean_ctor_set(x_24, 1, x_23); +lean_ctor_set(x_21, 0, x_24); +return x_21; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_25 = lean_ctor_get(x_21, 0); +x_26 = lean_ctor_get(x_21, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_21); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_17); +lean_ctor_set(x_27, 1, x_25); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_26); +return x_28; +} +} +else +{ +uint8_t x_29; +lean_dec(x_14); +lean_dec(x_9); +x_29 = !lean_is_exclusive(x_16); +if (x_29 == 0) +{ +return x_16; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_16, 0); +x_31 = lean_ctor_get(x_16, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_16); +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_30); +lean_ctor_set(x_32, 1, x_31); +return x_32; +} +} +} +} +lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_TacticM_runCore(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_TacticM_runCore___rarg), 10, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_TacticM_runCore_x27___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, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_11 = lean_st_ref_get(x_9, x_10); +x_12 = lean_ctor_get(x_11, 1); +lean_inc(x_12); +lean_dec(x_11); +x_13 = lean_st_mk_ref(x_3, x_12); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +lean_inc(x_9); +lean_inc(x_14); +x_16 = lean_apply_9(x_1, x_2, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_15); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +x_19 = lean_st_ref_get(x_9, x_18); +lean_dec(x_9); +x_20 = lean_ctor_get(x_19, 1); +lean_inc(x_20); +lean_dec(x_19); +x_21 = lean_st_ref_get(x_14, x_20); +lean_dec(x_14); +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) +{ +lean_object* x_23; +x_23 = lean_ctor_get(x_21, 0); +lean_dec(x_23); +lean_ctor_set(x_21, 0, x_17); +return x_21; +} +else +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_21, 1); +lean_inc(x_24); +lean_dec(x_21); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_17); +lean_ctor_set(x_25, 1, x_24); +return x_25; +} +} +else +{ +uint8_t x_26; +lean_dec(x_14); +lean_dec(x_9); +x_26 = !lean_is_exclusive(x_16); +if (x_26 == 0) +{ +return x_16; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_16, 0); +x_28 = lean_ctor_get(x_16, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_16); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +return x_29; +} +} +} +} +lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_TacticM_runCore_x27(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_TacticM_runCore_x27___rarg), 10, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Tactic_run___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, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; +x_24 = lean_ctor_get(x_3, 1); +x_50 = lean_st_ref_get(x_9, x_10); +x_51 = lean_ctor_get(x_50, 1); +lean_inc(x_51); +lean_dec(x_50); +x_52 = lean_st_ref_take(x_5, x_51); +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); +lean_dec(x_52); +x_55 = !lean_is_exclusive(x_53); +if (x_55 == 0) +{ +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; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_101; +x_56 = lean_ctor_get(x_53, 1); +lean_dec(x_56); +x_57 = lean_box(0); +lean_ctor_set(x_53, 1, x_57); +x_58 = lean_st_ref_set(x_5, x_53, x_54); +x_59 = lean_ctor_get(x_58, 1); +lean_inc(x_59); +lean_dec(x_58); +lean_inc(x_1); +x_60 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_60, 0, x_1); +lean_ctor_set(x_60, 1, x_57); +x_61 = lean_st_ref_get(x_9, x_59); +x_62 = lean_ctor_get(x_61, 1); +lean_inc(x_62); +lean_dec(x_61); +x_63 = lean_st_mk_ref(x_60, x_62); +x_64 = lean_ctor_get(x_63, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_63, 1); +lean_inc(x_65); +lean_dec(x_63); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_64); +lean_inc(x_1); +x_101 = lean_apply_9(x_2, x_1, x_64, x_4, x_5, x_6, x_7, x_8, x_9, x_65); +if (lean_obj_tag(x_101) == 0) +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +x_102 = lean_ctor_get(x_101, 1); +lean_inc(x_102); +lean_dec(x_101); +x_103 = l_Lean_Elab_Tactic_getUnsolvedGoals(x_1, x_64, x_4, x_5, x_6, x_7, x_8, x_9, x_102); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_1); +x_104 = lean_ctor_get(x_103, 0); +lean_inc(x_104); +x_105 = lean_ctor_get(x_103, 1); +lean_inc(x_105); +lean_dec(x_103); +x_66 = x_104; +x_67 = x_105; +goto block_100; +} +else +{ +lean_object* x_106; lean_object* x_107; uint8_t x_108; +x_106 = lean_ctor_get(x_101, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_101, 1); +lean_inc(x_107); +lean_dec(x_101); +x_108 = l_Lean_Elab_isAbortTacticException(x_106); +if (x_108 == 0) +{ +lean_dec(x_64); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_1); +x_25 = x_106; +x_26 = x_107; +goto block_49; +} +else +{ +lean_object* x_109; lean_object* x_110; lean_object* x_111; +lean_dec(x_106); +x_109 = l_Lean_Elab_Tactic_getUnsolvedGoals(x_1, x_64, x_4, x_5, x_6, x_7, x_8, x_9, x_107); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_1); +x_110 = lean_ctor_get(x_109, 0); +lean_inc(x_110); +x_111 = lean_ctor_get(x_109, 1); +lean_inc(x_111); +lean_dec(x_109); +x_66 = x_110; +x_67 = x_111; +goto block_100; +} +} +block_100: +{ +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; uint8_t x_77; +x_68 = lean_st_ref_get(x_9, x_67); +x_69 = lean_ctor_get(x_68, 1); +lean_inc(x_69); +lean_dec(x_68); +x_70 = lean_st_ref_get(x_64, x_69); +lean_dec(x_64); +x_71 = lean_ctor_get(x_70, 1); +lean_inc(x_71); +lean_dec(x_70); +x_72 = lean_st_ref_get(x_9, x_71); +lean_dec(x_9); +x_73 = lean_ctor_get(x_72, 1); +lean_inc(x_73); +lean_dec(x_72); +x_74 = lean_st_ref_take(x_5, x_73); +x_75 = lean_ctor_get(x_74, 0); +lean_inc(x_75); +x_76 = lean_ctor_get(x_74, 1); +lean_inc(x_76); +lean_dec(x_74); +x_77 = !lean_is_exclusive(x_75); +if (x_77 == 0) +{ +lean_object* x_78; lean_object* x_79; uint8_t x_80; +x_78 = lean_ctor_get(x_75, 1); +lean_dec(x_78); +lean_inc(x_24); +lean_ctor_set(x_75, 1, x_24); +x_79 = lean_st_ref_set(x_5, x_75, x_76); +lean_dec(x_5); +x_80 = !lean_is_exclusive(x_79); +if (x_80 == 0) +{ +lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_81 = lean_ctor_get(x_79, 0); +lean_dec(x_81); +x_82 = lean_box(0); +x_83 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_83, 0, x_66); +lean_ctor_set(x_83, 1, x_82); +lean_ctor_set(x_79, 0, x_83); +x_11 = x_79; +goto block_23; +} +else +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_84 = lean_ctor_get(x_79, 1); +lean_inc(x_84); +lean_dec(x_79); +x_85 = lean_box(0); +x_86 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_86, 0, x_66); +lean_ctor_set(x_86, 1, x_85); +x_87 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_87, 0, x_86); +lean_ctor_set(x_87, 1, x_84); +x_11 = x_87; +goto block_23; +} +} +else +{ +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; +x_88 = lean_ctor_get(x_75, 0); +x_89 = lean_ctor_get(x_75, 2); +x_90 = lean_ctor_get(x_75, 3); +x_91 = lean_ctor_get(x_75, 4); +x_92 = lean_ctor_get(x_75, 5); +lean_inc(x_92); +lean_inc(x_91); +lean_inc(x_90); +lean_inc(x_89); +lean_inc(x_88); +lean_dec(x_75); +lean_inc(x_24); +x_93 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_93, 0, x_88); +lean_ctor_set(x_93, 1, x_24); +lean_ctor_set(x_93, 2, x_89); +lean_ctor_set(x_93, 3, x_90); +lean_ctor_set(x_93, 4, x_91); +lean_ctor_set(x_93, 5, x_92); +x_94 = lean_st_ref_set(x_5, x_93, x_76); +lean_dec(x_5); +x_95 = lean_ctor_get(x_94, 1); +lean_inc(x_95); +if (lean_is_exclusive(x_94)) { + lean_ctor_release(x_94, 0); + lean_ctor_release(x_94, 1); + x_96 = x_94; +} else { + lean_dec_ref(x_94); + x_96 = lean_box(0); +} +x_97 = lean_box(0); +x_98 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_98, 0, x_66); +lean_ctor_set(x_98, 1, x_97); +if (lean_is_scalar(x_96)) { + x_99 = lean_alloc_ctor(0, 2, 0); +} else { + x_99 = x_96; +} +lean_ctor_set(x_99, 0, x_98); +lean_ctor_set(x_99, 1, x_95); +x_11 = x_99; +goto block_23; +} +} +} +else +{ +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; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_152; +x_112 = lean_ctor_get(x_53, 0); +x_113 = lean_ctor_get(x_53, 2); +x_114 = lean_ctor_get(x_53, 3); +x_115 = lean_ctor_get(x_53, 4); +x_116 = lean_ctor_get(x_53, 5); +lean_inc(x_116); +lean_inc(x_115); +lean_inc(x_114); +lean_inc(x_113); +lean_inc(x_112); +lean_dec(x_53); +x_117 = lean_box(0); +x_118 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_118, 0, x_112); +lean_ctor_set(x_118, 1, x_117); +lean_ctor_set(x_118, 2, x_113); +lean_ctor_set(x_118, 3, x_114); +lean_ctor_set(x_118, 4, x_115); +lean_ctor_set(x_118, 5, x_116); +x_119 = lean_st_ref_set(x_5, x_118, x_54); +x_120 = lean_ctor_get(x_119, 1); +lean_inc(x_120); +lean_dec(x_119); +lean_inc(x_1); +x_121 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_121, 0, x_1); +lean_ctor_set(x_121, 1, x_117); +x_122 = lean_st_ref_get(x_9, x_120); +x_123 = lean_ctor_get(x_122, 1); +lean_inc(x_123); +lean_dec(x_122); +x_124 = lean_st_mk_ref(x_121, x_123); +x_125 = lean_ctor_get(x_124, 0); +lean_inc(x_125); +x_126 = lean_ctor_get(x_124, 1); +lean_inc(x_126); +lean_dec(x_124); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_125); +lean_inc(x_1); +x_152 = lean_apply_9(x_2, x_1, x_125, x_4, x_5, x_6, x_7, x_8, x_9, x_126); +if (lean_obj_tag(x_152) == 0) +{ +lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; +x_153 = lean_ctor_get(x_152, 1); +lean_inc(x_153); +lean_dec(x_152); +x_154 = l_Lean_Elab_Tactic_getUnsolvedGoals(x_1, x_125, x_4, x_5, x_6, x_7, x_8, x_9, x_153); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_1); +x_155 = lean_ctor_get(x_154, 0); +lean_inc(x_155); +x_156 = lean_ctor_get(x_154, 1); +lean_inc(x_156); +lean_dec(x_154); +x_127 = x_155; +x_128 = x_156; +goto block_151; +} +else +{ +lean_object* x_157; lean_object* x_158; uint8_t x_159; +x_157 = lean_ctor_get(x_152, 0); +lean_inc(x_157); +x_158 = lean_ctor_get(x_152, 1); +lean_inc(x_158); +lean_dec(x_152); +x_159 = l_Lean_Elab_isAbortTacticException(x_157); +if (x_159 == 0) +{ +lean_dec(x_125); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_1); +x_25 = x_157; +x_26 = x_158; +goto block_49; +} +else +{ +lean_object* x_160; lean_object* x_161; lean_object* x_162; +lean_dec(x_157); +x_160 = l_Lean_Elab_Tactic_getUnsolvedGoals(x_1, x_125, x_4, x_5, x_6, x_7, x_8, x_9, x_158); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_1); +x_161 = lean_ctor_get(x_160, 0); +lean_inc(x_161); +x_162 = lean_ctor_get(x_160, 1); +lean_inc(x_162); +lean_dec(x_160); +x_127 = x_161; +x_128 = x_162; +goto block_151; +} +} +block_151: +{ +lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; +x_129 = lean_st_ref_get(x_9, x_128); +x_130 = lean_ctor_get(x_129, 1); +lean_inc(x_130); +lean_dec(x_129); +x_131 = lean_st_ref_get(x_125, x_130); +lean_dec(x_125); +x_132 = lean_ctor_get(x_131, 1); +lean_inc(x_132); +lean_dec(x_131); +x_133 = lean_st_ref_get(x_9, x_132); +lean_dec(x_9); +x_134 = lean_ctor_get(x_133, 1); +lean_inc(x_134); +lean_dec(x_133); +x_135 = lean_st_ref_take(x_5, x_134); +x_136 = lean_ctor_get(x_135, 0); +lean_inc(x_136); +x_137 = lean_ctor_get(x_135, 1); +lean_inc(x_137); +lean_dec(x_135); +x_138 = lean_ctor_get(x_136, 0); +lean_inc(x_138); +x_139 = lean_ctor_get(x_136, 2); +lean_inc(x_139); +x_140 = lean_ctor_get(x_136, 3); +lean_inc(x_140); +x_141 = lean_ctor_get(x_136, 4); +lean_inc(x_141); +x_142 = lean_ctor_get(x_136, 5); +lean_inc(x_142); +if (lean_is_exclusive(x_136)) { + lean_ctor_release(x_136, 0); + lean_ctor_release(x_136, 1); + lean_ctor_release(x_136, 2); + lean_ctor_release(x_136, 3); + lean_ctor_release(x_136, 4); + lean_ctor_release(x_136, 5); + x_143 = x_136; +} else { + lean_dec_ref(x_136); + x_143 = lean_box(0); +} +lean_inc(x_24); +if (lean_is_scalar(x_143)) { + x_144 = lean_alloc_ctor(0, 6, 0); +} else { + x_144 = x_143; +} +lean_ctor_set(x_144, 0, x_138); +lean_ctor_set(x_144, 1, x_24); +lean_ctor_set(x_144, 2, x_139); +lean_ctor_set(x_144, 3, x_140); +lean_ctor_set(x_144, 4, x_141); +lean_ctor_set(x_144, 5, x_142); +x_145 = lean_st_ref_set(x_5, x_144, x_137); +lean_dec(x_5); +x_146 = lean_ctor_get(x_145, 1); +lean_inc(x_146); +if (lean_is_exclusive(x_145)) { + lean_ctor_release(x_145, 0); + lean_ctor_release(x_145, 1); + x_147 = x_145; +} else { + lean_dec_ref(x_145); + x_147 = lean_box(0); +} +x_148 = lean_box(0); +x_149 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_149, 0, x_127); +lean_ctor_set(x_149, 1, x_148); +if (lean_is_scalar(x_147)) { + x_150 = lean_alloc_ctor(0, 2, 0); +} else { + x_150 = x_147; +} +lean_ctor_set(x_150, 0, x_149); +lean_ctor_set(x_150, 1, x_146); +x_11 = x_150; +goto block_23; +} +} +block_23: +{ +if (lean_obj_tag(x_11) == 0) +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_ctor_get(x_11, 0); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +lean_dec(x_13); +lean_ctor_set(x_11, 0, x_14); +return x_11; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_15 = lean_ctor_get(x_11, 0); +x_16 = lean_ctor_get(x_11, 1); +lean_inc(x_16); +lean_inc(x_15); +lean_dec(x_11); +x_17 = lean_ctor_get(x_15, 0); +lean_inc(x_17); +lean_dec(x_15); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_16); +return x_18; +} +} +else +{ +uint8_t x_19; +x_19 = !lean_is_exclusive(x_11); +if (x_19 == 0) +{ +return x_11; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_11, 0); +x_21 = lean_ctor_get(x_11, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_11); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +} +block_49: +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; +x_27 = lean_st_ref_get(x_9, x_26); +lean_dec(x_9); +x_28 = lean_ctor_get(x_27, 1); +lean_inc(x_28); +lean_dec(x_27); +x_29 = lean_st_ref_take(x_5, x_28); +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_29, 1); +lean_inc(x_31); +lean_dec(x_29); +x_32 = !lean_is_exclusive(x_30); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; uint8_t x_35; +x_33 = lean_ctor_get(x_30, 1); +lean_dec(x_33); +lean_inc(x_24); +lean_ctor_set(x_30, 1, x_24); +x_34 = lean_st_ref_set(x_5, x_30, x_31); +lean_dec(x_5); +x_35 = !lean_is_exclusive(x_34); +if (x_35 == 0) +{ +lean_object* x_36; +x_36 = lean_ctor_get(x_34, 0); +lean_dec(x_36); +lean_ctor_set_tag(x_34, 1); +lean_ctor_set(x_34, 0, x_25); +x_11 = x_34; +goto block_23; +} +else +{ +lean_object* x_37; lean_object* x_38; +x_37 = lean_ctor_get(x_34, 1); +lean_inc(x_37); +lean_dec(x_34); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_25); +lean_ctor_set(x_38, 1, x_37); +x_11 = x_38; +goto block_23; +} +} +else +{ +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; +x_39 = lean_ctor_get(x_30, 0); +x_40 = lean_ctor_get(x_30, 2); +x_41 = lean_ctor_get(x_30, 3); +x_42 = lean_ctor_get(x_30, 4); +x_43 = lean_ctor_get(x_30, 5); +lean_inc(x_43); +lean_inc(x_42); +lean_inc(x_41); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_30); +lean_inc(x_24); +x_44 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_44, 0, x_39); +lean_ctor_set(x_44, 1, x_24); +lean_ctor_set(x_44, 2, x_40); +lean_ctor_set(x_44, 3, x_41); +lean_ctor_set(x_44, 4, x_42); +lean_ctor_set(x_44, 5, x_43); +x_45 = lean_st_ref_set(x_5, x_44, x_31); +lean_dec(x_5); +x_46 = lean_ctor_get(x_45, 1); +lean_inc(x_46); +if (lean_is_exclusive(x_45)) { + lean_ctor_release(x_45, 0); + lean_ctor_release(x_45, 1); + x_47 = x_45; +} else { + lean_dec_ref(x_45); + x_47 = lean_box(0); +} +if (lean_is_scalar(x_47)) { + x_48 = lean_alloc_ctor(1, 2, 0); +} else { + x_48 = x_47; + lean_ctor_set_tag(x_48, 1); +} +lean_ctor_set(x_48, 0, x_25); +lean_ctor_set(x_48, 1, x_46); +x_11 = x_48; +goto block_23; +} +} +} +} +lean_object* l_Lean_Elab_Tactic_run(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, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +lean_inc(x_1); +x_10 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_run___lambda__1___boxed), 10, 2); +lean_closure_set(x_10, 0, x_1); +lean_closure_set(x_10, 1, x_2); +x_11 = l_Lean_Elab_Term_instMonadInfoTreeTermElabM___closed__1; +x_12 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Term_instMonadLogTermElabM___spec__2___rarg), 9, 2); +lean_closure_set(x_12, 0, x_11); +lean_closure_set(x_12, 1, x_10); +x_13 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__4___rarg(x_1, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_13; +} +} +lean_object* l_Lean_Elab_Tactic_run___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, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Elab_Tactic_run___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_3); +return x_11; +} +} lean_object* l_Lean_Elab_Tactic_saveState___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: { @@ -1082,284 +2161,6 @@ lean_dec(x_2); return x_11; } } -static lean_object* _init_l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_saveState___boxed), 1, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_SavedState_restore___boxed), 10, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM___closed__1; -x_2 = l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM___closed__2; -x_3 = lean_alloc_ctor(0, 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_Elab_Tactic_instMonadBacktrackSavedStateTacticM() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM___closed__3; -return x_1; -} -} -lean_object* l_Lean_Elab_Tactic_tryCatch___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, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_12 = l_Lean_Elab_Tactic_saveState___rarg(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); -lean_inc(x_14); -lean_dec(x_12); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_15 = lean_apply_9(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); -if (lean_obj_tag(x_15) == 0) -{ -lean_dec(x_13); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_15; -} -else -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); -lean_inc(x_17); -lean_dec(x_15); -x_18 = l_Lean_Elab_Tactic_SavedState_restore(x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_17); -x_19 = lean_ctor_get(x_18, 1); -lean_inc(x_19); -lean_dec(x_18); -x_20 = lean_apply_10(x_2, x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_19); -return x_20; -} -} -} -lean_object* l_Lean_Elab_Tactic_tryCatch(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_tryCatch___rarg), 11, 0); -return x_2; -} -} -lean_object* l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; -x_12 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_12, 0, x_2); -lean_ctor_set(x_12, 1, x_11); -return x_12; -} -} -lean_object* l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___lambda__2(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, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { -_start: -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_13 = l_Lean_Elab_Tactic_saveState___rarg(x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -x_15 = lean_ctor_get(x_13, 1); -lean_inc(x_15); -lean_dec(x_13); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_16 = lean_apply_9(x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_15); -if (lean_obj_tag(x_16) == 0) -{ -lean_dec(x_14); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_16; -} -else -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -x_18 = lean_ctor_get(x_16, 1); -lean_inc(x_18); -lean_dec(x_16); -x_19 = l_Lean_Elab_Tactic_SavedState_restore(x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_18); -x_20 = lean_ctor_get(x_19, 1); -lean_inc(x_20); -lean_dec(x_19); -x_21 = lean_apply_10(x_3, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_20); -return x_21; -} -} -} -static lean_object* _init_l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___lambda__1___boxed), 11, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___lambda__2), 12, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___closed__1; -x_2 = l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___closed__2; -x_3 = lean_alloc_ctor(0, 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_Elab_Tactic_instMonadExceptExceptionTacticM() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___closed__3; -return x_1; -} -} -lean_object* l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; -x_12 = l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_12; -} -} -lean_object* l_Lean_Elab_Tactic_orElse___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, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_12 = l_Lean_Elab_Tactic_saveState___rarg(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); -lean_inc(x_14); -lean_dec(x_12); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_15 = lean_apply_9(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); -if (lean_obj_tag(x_15) == 0) -{ -lean_dec(x_13); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_15; -} -else -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_16 = lean_ctor_get(x_15, 1); -lean_inc(x_16); -lean_dec(x_15); -x_17 = l_Lean_Elab_Tactic_SavedState_restore(x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_16); -x_18 = lean_ctor_get(x_17, 1); -lean_inc(x_18); -lean_dec(x_17); -x_19 = lean_apply_9(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_18); -return x_19; -} -} -} -lean_object* l_Lean_Elab_Tactic_orElse(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_orElse___rarg), 11, 0); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Tactic_instOrElseTacticM___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_orElse___rarg), 11, 0); -return x_1; -} -} -lean_object* l_Lean_Elab_Tactic_instOrElseTacticM(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_Lean_Elab_Tactic_instOrElseTacticM___closed__1; -return x_2; -} -} lean_object* l_Lean_Elab_Tactic_getCurrMacroScope___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) { _start: { @@ -1778,18 +2579,12 @@ return x_19; } else { -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_20; lean_object* x_21; lean_object* x_22; x_20 = lean_ctor_get(x_3, 0); lean_inc(x_20); x_21 = lean_ctor_get(x_3, 1); lean_inc(x_21); lean_dec(x_3); -x_22 = l_Lean_Elab_Tactic_saveState___rarg(x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -x_24 = lean_ctor_get(x_22, 1); -lean_inc(x_24); -lean_dec(x_22); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); @@ -1799,10 +2594,9 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_2); -x_25 = lean_apply_10(x_20, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_24); -if (lean_obj_tag(x_25) == 0) +x_22 = lean_apply_10(x_20, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_22) == 0) { -lean_dec(x_23); lean_dec(x_21); lean_dec(x_11); lean_dec(x_10); @@ -1814,22 +2608,18 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -return x_25; +return x_22; } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_25, 0); -lean_inc(x_26); -x_27 = lean_ctor_get(x_25, 1); -lean_inc(x_27); -lean_dec(x_25); -x_28 = l_Lean_Elab_Tactic_SavedState_restore(x_23, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_27); -if (lean_obj_tag(x_26) == 0) +lean_object* x_23; +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +if (lean_obj_tag(x_23) == 0) { if (lean_obj_tag(x_21) == 0) { -uint8_t x_29; +uint8_t x_24; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -1840,62 +2630,60 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_29 = !lean_is_exclusive(x_28); -if (x_29 == 0) +x_24 = !lean_is_exclusive(x_22); +if (x_24 == 0) { -lean_object* x_30; -x_30 = lean_ctor_get(x_28, 0); -lean_dec(x_30); -lean_ctor_set_tag(x_28, 1); -lean_ctor_set(x_28, 0, x_26); -return x_28; +lean_object* x_25; +x_25 = lean_ctor_get(x_22, 0); +lean_dec(x_25); +return x_22; } else { -lean_object* x_31; lean_object* x_32; -x_31 = lean_ctor_get(x_28, 1); -lean_inc(x_31); -lean_dec(x_28); -x_32 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_32, 0, x_26); -lean_ctor_set(x_32, 1, x_31); -return x_32; +lean_object* x_26; lean_object* x_27; +x_26 = lean_ctor_get(x_22, 1); +lean_inc(x_26); +lean_dec(x_22); +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_23); +lean_ctor_set(x_27, 1, x_26); +return x_27; } } else { -lean_object* x_33; lean_object* x_34; lean_object* x_35; -lean_dec(x_26); -x_33 = lean_ctor_get(x_28, 1); -lean_inc(x_33); -lean_dec(x_28); +lean_object* x_28; lean_object* x_29; lean_object* x_30; +lean_dec(x_23); +x_28 = lean_ctor_get(x_22, 1); +lean_inc(x_28); +lean_dec(x_22); lean_inc(x_1); -x_34 = l_Lean_Elab_Tactic_SavedState_restore(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_33); -x_35 = lean_ctor_get(x_34, 1); -lean_inc(x_35); -lean_dec(x_34); +x_29 = l_Lean_Elab_Tactic_SavedState_restore(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_28); +x_30 = lean_ctor_get(x_29, 1); +lean_inc(x_30); +lean_dec(x_29); x_3 = x_21; -x_12 = x_35; +x_12 = x_30; goto _start; } } else { -uint8_t x_37; -x_37 = !lean_is_exclusive(x_28); +uint8_t x_32; +x_32 = !lean_is_exclusive(x_22); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_33 = lean_ctor_get(x_22, 1); +x_34 = lean_ctor_get(x_22, 0); +lean_dec(x_34); +x_35 = lean_ctor_get(x_23, 0); +lean_inc(x_35); +x_36 = l_Lean_Elab_unsupportedSyntaxExceptionId; +x_37 = lean_nat_dec_eq(x_35, x_36); +lean_dec(x_35); if (x_37 == 0) { -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; -x_38 = lean_ctor_get(x_28, 1); -x_39 = lean_ctor_get(x_28, 0); -lean_dec(x_39); -x_40 = lean_ctor_get(x_26, 0); -lean_inc(x_40); -x_41 = l_Lean_Elab_unsupportedSyntaxExceptionId; -x_42 = lean_nat_dec_eq(x_40, x_41); -lean_dec(x_40); -if (x_42 == 0) -{ lean_dec(x_21); lean_dec(x_11); lean_dec(x_10); @@ -1907,39 +2695,37 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -lean_ctor_set_tag(x_28, 1); -lean_ctor_set(x_28, 0, x_26); -return x_28; +return x_22; } else { -lean_object* x_43; lean_object* x_44; -lean_free_object(x_28); -lean_dec(x_26); +lean_object* x_38; lean_object* x_39; +lean_free_object(x_22); +lean_dec(x_23); lean_inc(x_1); -x_43 = l_Lean_Elab_Tactic_SavedState_restore(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_38); -x_44 = lean_ctor_get(x_43, 1); -lean_inc(x_44); -lean_dec(x_43); +x_38 = l_Lean_Elab_Tactic_SavedState_restore(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_33); +x_39 = lean_ctor_get(x_38, 1); +lean_inc(x_39); +lean_dec(x_38); x_3 = x_21; -x_12 = x_44; +x_12 = x_39; goto _start; } } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; -x_46 = lean_ctor_get(x_28, 1); -lean_inc(x_46); -lean_dec(x_28); -x_47 = lean_ctor_get(x_26, 0); -lean_inc(x_47); -x_48 = l_Lean_Elab_unsupportedSyntaxExceptionId; -x_49 = lean_nat_dec_eq(x_47, x_48); -lean_dec(x_47); -if (x_49 == 0) +lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_41 = lean_ctor_get(x_22, 1); +lean_inc(x_41); +lean_dec(x_22); +x_42 = lean_ctor_get(x_23, 0); +lean_inc(x_42); +x_43 = l_Lean_Elab_unsupportedSyntaxExceptionId; +x_44 = lean_nat_dec_eq(x_42, x_43); +lean_dec(x_42); +if (x_44 == 0) { -lean_object* x_50; +lean_object* x_45; lean_dec(x_21); lean_dec(x_11); lean_dec(x_10); @@ -1951,22 +2737,22 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_50 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_50, 0, x_26); -lean_ctor_set(x_50, 1, x_46); -return x_50; +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_23); +lean_ctor_set(x_45, 1, x_41); +return x_45; } else { -lean_object* x_51; lean_object* x_52; -lean_dec(x_26); +lean_object* x_46; lean_object* x_47; +lean_dec(x_23); lean_inc(x_1); -x_51 = l_Lean_Elab_Tactic_SavedState_restore(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_46); -x_52 = lean_ctor_get(x_51, 1); -lean_inc(x_52); -lean_dec(x_51); +x_46 = l_Lean_Elab_Tactic_SavedState_restore(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_41); +x_47 = lean_ctor_get(x_46, 1); +lean_inc(x_47); +lean_dec(x_46); x_3 = x_21; -x_12 = x_52; +x_12 = x_47; goto _start; } } @@ -2015,67 +2801,6 @@ x_13 = l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_evalTacticUsing_lo return x_13; } } -lean_object* l_Lean_Elab_Tactic_getGoals___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: -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_9 = lean_st_ref_get(x_7, x_8); -x_10 = lean_ctor_get(x_9, 1); -lean_inc(x_10); -lean_dec(x_9); -x_11 = lean_st_ref_get(x_1, x_10); -x_12 = !lean_is_exclusive(x_11); -if (x_12 == 0) -{ -return x_11; -} -else -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_13 = lean_ctor_get(x_11, 0); -x_14 = lean_ctor_get(x_11, 1); -lean_inc(x_14); -lean_inc(x_13); -lean_dec(x_11); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_13); -lean_ctor_set(x_15, 1, x_14); -return x_15; -} -} -} -lean_object* l_Lean_Elab_Tactic_getGoals(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_getGoals___rarg___boxed), 8, 0); -return x_2; -} -} -lean_object* l_Lean_Elab_Tactic_getGoals___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, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; -x_9 = l_Lean_Elab_Tactic_getGoals___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_9; -} -} -lean_object* l_Lean_Elab_Tactic_getGoals___boxed(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_Lean_Elab_Tactic_getGoals(x_1); -lean_dec(x_1); -return x_2; -} -} lean_object* l_Lean_Elab_Tactic_mkTacticInfo(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, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { @@ -3372,7 +4097,7 @@ return x_18; } else { -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_42; lean_object* x_43; 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; 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_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_38; lean_object* x_39; 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; 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; x_19 = lean_ctor_get(x_2, 0); lean_inc(x_19); x_20 = lean_ctor_get(x_2, 1); @@ -3381,207 +4106,209 @@ lean_dec(x_2); x_21 = l_Lean_Elab_Term_getCurrMacroScope(x_5, x_6, x_7, x_8, x_9, x_10, x_11); x_22 = lean_ctor_get(x_21, 1); lean_inc(x_22); -lean_dec(x_21); -x_23 = l_Lean_Elab_Tactic_saveState___rarg(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_22); -x_24 = lean_ctor_get(x_23, 0); -lean_inc(x_24); -x_25 = lean_ctor_get(x_23, 1); -lean_inc(x_25); -lean_dec(x_23); -x_55 = lean_st_ref_get(x_10, x_25); -x_56 = lean_ctor_get(x_55, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_55, 1); +if (lean_is_exclusive(x_21)) { + lean_ctor_release(x_21, 0); + lean_ctor_release(x_21, 1); + x_23 = x_21; +} else { + lean_dec_ref(x_21); + x_23 = lean_box(0); +} +x_44 = lean_st_ref_get(x_10, x_22); +x_45 = lean_ctor_get(x_44, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_44, 1); +lean_inc(x_46); +lean_dec(x_44); +x_47 = lean_ctor_get(x_45, 0); +lean_inc(x_47); +lean_dec(x_45); +x_48 = lean_ctor_get(x_9, 4); +lean_inc(x_48); +x_49 = lean_ctor_get(x_9, 5); +lean_inc(x_49); +lean_inc(x_47); +x_50 = lean_alloc_closure((void*)(l___private_Lean_Elab_Util_0__Lean_Elab_expandMacro_x3f___boxed), 4, 1); +lean_closure_set(x_50, 0, x_47); +lean_inc(x_48); +x_51 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed), 3, 1); +lean_closure_set(x_51, 0, x_48); +lean_inc(x_47); +x_52 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___rarg___lambda__1___boxed), 4, 1); +lean_closure_set(x_52, 0, x_47); +lean_inc(x_49); +lean_inc(x_48); +lean_inc(x_47); +x_53 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___rarg___lambda__2___boxed), 6, 3); +lean_closure_set(x_53, 0, x_47); +lean_closure_set(x_53, 1, x_48); +lean_closure_set(x_53, 2, x_49); +lean_inc(x_47); +x_54 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___rarg___lambda__3___boxed), 6, 3); +lean_closure_set(x_54, 0, x_47); +lean_closure_set(x_54, 1, x_48); +lean_closure_set(x_54, 2, x_49); +x_55 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_55, 0, x_50); +lean_ctor_set(x_55, 1, x_51); +lean_ctor_set(x_55, 2, x_52); +lean_ctor_set(x_55, 3, x_53); +lean_ctor_set(x_55, 4, x_54); +x_56 = x_55; +x_57 = lean_ctor_get(x_9, 3); lean_inc(x_57); -lean_dec(x_55); -x_58 = lean_ctor_get(x_56, 0); -lean_inc(x_58); -lean_dec(x_56); -x_59 = lean_ctor_get(x_9, 4); +x_58 = l_Lean_Elab_Term_getCurrMacroScope(x_5, x_6, x_7, x_8, x_9, x_10, x_46); +x_59 = lean_ctor_get(x_58, 0); lean_inc(x_59); -x_60 = lean_ctor_get(x_9, 5); +x_60 = lean_ctor_get(x_58, 1); lean_inc(x_60); -lean_inc(x_58); -x_61 = lean_alloc_closure((void*)(l___private_Lean_Elab_Util_0__Lean_Elab_expandMacro_x3f___boxed), 4, 1); -lean_closure_set(x_61, 0, x_58); -lean_inc(x_59); -x_62 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed), 3, 1); -lean_closure_set(x_62, 0, x_59); -lean_inc(x_58); -x_63 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___rarg___lambda__1___boxed), 4, 1); -lean_closure_set(x_63, 0, x_58); -lean_inc(x_60); -lean_inc(x_59); -lean_inc(x_58); -x_64 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___rarg___lambda__2___boxed), 6, 3); -lean_closure_set(x_64, 0, x_58); -lean_closure_set(x_64, 1, x_59); -lean_closure_set(x_64, 2, x_60); -lean_inc(x_58); -x_65 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___rarg___lambda__3___boxed), 6, 3); -lean_closure_set(x_65, 0, x_58); -lean_closure_set(x_65, 1, x_59); -lean_closure_set(x_65, 2, x_60); -x_66 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_66, 0, x_61); -lean_ctor_set(x_66, 1, x_62); -lean_ctor_set(x_66, 2, x_63); -lean_ctor_set(x_66, 3, x_64); -lean_ctor_set(x_66, 4, x_65); -x_67 = x_66; -x_68 = lean_ctor_get(x_9, 3); -lean_inc(x_68); -x_69 = l_Lean_Elab_Term_getCurrMacroScope(x_5, x_6, x_7, x_8, x_9, x_10, x_57); -x_70 = lean_ctor_get(x_69, 0); -lean_inc(x_70); -x_71 = lean_ctor_get(x_69, 1); -lean_inc(x_71); -lean_dec(x_69); -x_72 = lean_ctor_get(x_9, 1); +lean_dec(x_58); +x_61 = lean_ctor_get(x_9, 1); +lean_inc(x_61); +x_62 = lean_ctor_get(x_9, 2); +lean_inc(x_62); +x_63 = lean_st_ref_get(x_10, x_60); +x_64 = lean_ctor_get(x_63, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_63, 1); +lean_inc(x_65); +lean_dec(x_63); +x_66 = lean_ctor_get(x_64, 1); +lean_inc(x_66); +lean_dec(x_64); +x_67 = lean_environment_main_module(x_47); +x_68 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_68, 0, x_56); +lean_ctor_set(x_68, 1, x_67); +lean_ctor_set(x_68, 2, x_59); +lean_ctor_set(x_68, 3, x_61); +lean_ctor_set(x_68, 4, x_62); +lean_ctor_set(x_68, 5, x_57); +x_69 = lean_box(0); +x_70 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_70, 0, x_66); +lean_ctor_set(x_70, 1, x_69); +lean_inc(x_1); +x_71 = lean_apply_3(x_19, x_1, x_68, x_70); +if (lean_obj_tag(x_71) == 0) +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; uint8_t x_78; +lean_dec(x_23); +x_72 = lean_ctor_get(x_71, 0); lean_inc(x_72); -x_73 = lean_ctor_get(x_9, 2); +x_73 = lean_ctor_get(x_71, 1); lean_inc(x_73); -x_74 = lean_st_ref_get(x_10, x_71); -x_75 = lean_ctor_get(x_74, 0); -lean_inc(x_75); -x_76 = lean_ctor_get(x_74, 1); +lean_dec(x_71); +x_74 = lean_ctor_get(x_73, 0); +lean_inc(x_74); +x_75 = lean_st_ref_take(x_10, x_65); +x_76 = lean_ctor_get(x_75, 0); lean_inc(x_76); -lean_dec(x_74); x_77 = lean_ctor_get(x_75, 1); lean_inc(x_77); lean_dec(x_75); -x_78 = lean_environment_main_module(x_58); -x_79 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_79, 0, x_67); -lean_ctor_set(x_79, 1, x_78); -lean_ctor_set(x_79, 2, x_70); -lean_ctor_set(x_79, 3, x_72); -lean_ctor_set(x_79, 4, x_73); -lean_ctor_set(x_79, 5, x_68); -x_80 = lean_box(0); -x_81 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_81, 0, x_77); -lean_ctor_set(x_81, 1, x_80); -lean_inc(x_1); -x_82 = lean_apply_3(x_19, x_1, x_79, x_81); -if (lean_obj_tag(x_82) == 0) +x_78 = !lean_is_exclusive(x_76); +if (x_78 == 0) { -lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; uint8_t x_89; -x_83 = lean_ctor_get(x_82, 0); -lean_inc(x_83); -x_84 = lean_ctor_get(x_82, 1); -lean_inc(x_84); -lean_dec(x_82); -x_85 = lean_ctor_get(x_84, 0); +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_79 = lean_ctor_get(x_76, 1); +lean_dec(x_79); +lean_ctor_set(x_76, 1, x_74); +x_80 = lean_st_ref_set(x_10, x_76, x_77); +x_81 = lean_ctor_get(x_80, 1); +lean_inc(x_81); +lean_dec(x_80); +x_82 = lean_ctor_get(x_73, 1); +lean_inc(x_82); +lean_dec(x_73); +x_83 = l_List_reverse___rarg(x_82); +x_84 = l_List_forM___at_Lean_Elab_Tactic_expandTacticMacroFns_loop___spec__3(x_83, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_81); +x_85 = lean_ctor_get(x_84, 1); lean_inc(x_85); -x_86 = lean_st_ref_take(x_10, x_76); -x_87 = lean_ctor_get(x_86, 0); -lean_inc(x_87); -x_88 = lean_ctor_get(x_86, 1); +lean_dec(x_84); +x_24 = x_72; +x_25 = x_85; +goto block_37; +} +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; +x_86 = lean_ctor_get(x_76, 0); +x_87 = lean_ctor_get(x_76, 2); +x_88 = lean_ctor_get(x_76, 3); lean_inc(x_88); -lean_dec(x_86); -x_89 = !lean_is_exclusive(x_87); -if (x_89 == 0) -{ -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; -x_90 = lean_ctor_get(x_87, 1); +lean_inc(x_87); +lean_inc(x_86); +lean_dec(x_76); +x_89 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_89, 0, x_86); +lean_ctor_set(x_89, 1, x_74); +lean_ctor_set(x_89, 2, x_87); +lean_ctor_set(x_89, 3, x_88); +x_90 = lean_st_ref_set(x_10, x_89, x_77); +x_91 = lean_ctor_get(x_90, 1); +lean_inc(x_91); lean_dec(x_90); -lean_ctor_set(x_87, 1, x_85); -x_91 = lean_st_ref_set(x_10, x_87, x_88); -x_92 = lean_ctor_get(x_91, 1); +x_92 = lean_ctor_get(x_73, 1); lean_inc(x_92); -lean_dec(x_91); -x_93 = lean_ctor_get(x_84, 1); -lean_inc(x_93); -lean_dec(x_84); -x_94 = l_List_reverse___rarg(x_93); -x_95 = l_List_forM___at_Lean_Elab_Tactic_expandTacticMacroFns_loop___spec__3(x_94, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_92); -x_96 = lean_ctor_get(x_95, 1); +lean_dec(x_73); +x_93 = l_List_reverse___rarg(x_92); +x_94 = l_List_forM___at_Lean_Elab_Tactic_expandTacticMacroFns_loop___spec__3(x_93, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_91); +x_95 = lean_ctor_get(x_94, 1); +lean_inc(x_95); +lean_dec(x_94); +x_24 = x_72; +x_25 = x_95; +goto block_37; +} +} +else +{ +lean_object* x_96; +x_96 = lean_ctor_get(x_71, 0); lean_inc(x_96); -lean_dec(x_95); -x_26 = x_83; -x_27 = x_96; -goto block_41; -} -else +lean_dec(x_71); +if (lean_obj_tag(x_96) == 0) { -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; -x_97 = lean_ctor_get(x_87, 0); -x_98 = lean_ctor_get(x_87, 2); -x_99 = lean_ctor_get(x_87, 3); -lean_inc(x_99); -lean_inc(x_98); +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; +x_97 = lean_ctor_get(x_96, 0); lean_inc(x_97); -lean_dec(x_87); -x_100 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_100, 0, x_97); -lean_ctor_set(x_100, 1, x_85); -lean_ctor_set(x_100, 2, x_98); -lean_ctor_set(x_100, 3, x_99); -x_101 = lean_st_ref_set(x_10, x_100, x_88); -x_102 = lean_ctor_get(x_101, 1); -lean_inc(x_102); -lean_dec(x_101); -x_103 = lean_ctor_get(x_84, 1); -lean_inc(x_103); -lean_dec(x_84); -x_104 = l_List_reverse___rarg(x_103); -x_105 = l_List_forM___at_Lean_Elab_Tactic_expandTacticMacroFns_loop___spec__3(x_104, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_102); -x_106 = lean_ctor_get(x_105, 1); -lean_inc(x_106); -lean_dec(x_105); -x_26 = x_83; -x_27 = x_106; -goto block_41; -} -} -else -{ -lean_object* x_107; -x_107 = lean_ctor_get(x_82, 0); -lean_inc(x_107); -lean_dec(x_82); -if (lean_obj_tag(x_107) == 0) -{ -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; -x_108 = lean_ctor_get(x_107, 0); -lean_inc(x_108); -x_109 = lean_ctor_get(x_107, 1); -lean_inc(x_109); -lean_dec(x_107); -x_110 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_110, 0, x_109); -x_111 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_111, 0, x_110); +x_98 = lean_ctor_get(x_96, 1); +lean_inc(x_98); +lean_dec(x_96); +x_99 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_99, 0, x_98); +x_100 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_100, 0, x_99); lean_inc(x_9); -x_112 = l_Lean_throwErrorAt___at_Lean_Elab_Tactic_expandTacticMacroFns_loop___spec__4(x_108, x_111, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_76); -lean_dec(x_108); -x_113 = lean_ctor_get(x_112, 0); -lean_inc(x_113); -x_114 = lean_ctor_get(x_112, 1); -lean_inc(x_114); -lean_dec(x_112); -x_42 = x_113; -x_43 = x_114; -goto block_54; +x_101 = l_Lean_throwErrorAt___at_Lean_Elab_Tactic_expandTacticMacroFns_loop___spec__4(x_97, x_100, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_65); +lean_dec(x_97); +x_102 = lean_ctor_get(x_101, 0); +lean_inc(x_102); +x_103 = lean_ctor_get(x_101, 1); +lean_inc(x_103); +lean_dec(x_101); +x_38 = x_102; +x_39 = x_103; +goto block_43; } else { -lean_object* x_115; lean_object* x_116; lean_object* x_117; -x_115 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_expandTacticMacroFns_loop___spec__6___rarg(x_76); -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_115, 1); -lean_inc(x_117); -lean_dec(x_115); -x_42 = x_116; -x_43 = x_117; -goto block_54; +lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_104 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_expandTacticMacroFns_loop___spec__6___rarg(x_65); +x_105 = lean_ctor_get(x_104, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_104, 1); +lean_inc(x_106); +lean_dec(x_104); +x_38 = x_105; +x_39 = x_106; +goto block_43; } } -block_41: +block_37: { -lean_object* x_28; +lean_object* x_26; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); @@ -3590,10 +4317,9 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_28 = l_Lean_Elab_Tactic_evalTactic(x_26, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_27); -if (lean_obj_tag(x_28) == 0) +x_26 = l_Lean_Elab_Tactic_evalTactic(x_24, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_25); +if (lean_obj_tag(x_26) == 0) { -lean_dec(x_24); lean_dec(x_20); lean_dec(x_10); lean_dec(x_9); @@ -3604,35 +4330,60 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -return x_28; +return x_26; } else { -lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); -lean_inc(x_30); +uint8_t x_27; +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; uint8_t x_30; +x_28 = lean_ctor_get(x_26, 0); +x_29 = lean_ctor_get(x_26, 1); +x_30 = l_List_isEmpty___rarg(x_20); +if (x_30 == 0) +{ +lean_free_object(x_26); lean_dec(x_28); -x_31 = l_Lean_Elab_Tactic_SavedState_restore(x_24, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_30); -x_32 = !lean_is_exclusive(x_31); -if (x_32 == 0) +x_2 = x_20; +x_11 = x_29; +goto _start; +} +else { -lean_object* x_33; lean_object* x_34; uint8_t x_35; -x_33 = lean_ctor_get(x_31, 1); -x_34 = lean_ctor_get(x_31, 0); -lean_dec(x_34); -x_35 = l_List_isEmpty___rarg(x_20); -if (x_35 == 0) +lean_dec(x_20); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_26; +} +} +else { -lean_free_object(x_31); -lean_dec(x_29); +lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_32 = lean_ctor_get(x_26, 0); +x_33 = lean_ctor_get(x_26, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_26); +x_34 = l_List_isEmpty___rarg(x_20); +if (x_34 == 0) +{ +lean_dec(x_32); x_2 = x_20; x_11 = x_33; goto _start; } else { +lean_object* x_36; lean_dec(x_20); lean_dec(x_10); lean_dec(x_9); @@ -3643,28 +4394,29 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -lean_ctor_set_tag(x_31, 1); -lean_ctor_set(x_31, 0, x_29); -return x_31; +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_32); +lean_ctor_set(x_36, 1, x_33); +return x_36; } } -else +} +} +block_43: { -lean_object* x_37; uint8_t x_38; -x_37 = lean_ctor_get(x_31, 1); -lean_inc(x_37); -lean_dec(x_31); -x_38 = l_List_isEmpty___rarg(x_20); -if (x_38 == 0) +uint8_t x_40; +x_40 = l_List_isEmpty___rarg(x_20); +if (x_40 == 0) { -lean_dec(x_29); +lean_dec(x_38); +lean_dec(x_23); x_2 = x_20; -x_11 = x_37; +x_11 = x_39; goto _start; } else { -lean_object* x_40; +lean_object* x_42; lean_dec(x_20); lean_dec(x_10); lean_dec(x_9); @@ -3675,83 +4427,15 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_29); -lean_ctor_set(x_40, 1, x_37); -return x_40; -} -} -} -} -block_54: -{ -lean_object* x_44; uint8_t x_45; -x_44 = l_Lean_Elab_Tactic_SavedState_restore(x_24, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_43); -x_45 = !lean_is_exclusive(x_44); -if (x_45 == 0) -{ -lean_object* x_46; lean_object* x_47; uint8_t x_48; -x_46 = lean_ctor_get(x_44, 1); -x_47 = lean_ctor_get(x_44, 0); -lean_dec(x_47); -x_48 = l_List_isEmpty___rarg(x_20); -if (x_48 == 0) -{ -lean_free_object(x_44); -lean_dec(x_42); -x_2 = x_20; -x_11 = x_46; -goto _start; -} -else -{ -lean_dec(x_20); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -lean_ctor_set_tag(x_44, 1); -lean_ctor_set(x_44, 0, x_42); -return x_44; -} -} -else -{ -lean_object* x_50; uint8_t x_51; -x_50 = lean_ctor_get(x_44, 1); -lean_inc(x_50); -lean_dec(x_44); -x_51 = l_List_isEmpty___rarg(x_20); -if (x_51 == 0) -{ -lean_dec(x_42); -x_2 = x_20; -x_11 = x_50; -goto _start; -} -else -{ -lean_object* x_53; -lean_dec(x_20); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_53 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_53, 0, x_42); -lean_ctor_set(x_53, 1, x_50); -return x_53; +if (lean_is_scalar(x_23)) { + x_42 = lean_alloc_ctor(1, 2, 0); +} else { + x_42 = x_23; + lean_ctor_set_tag(x_42, 1); } +lean_ctor_set(x_42, 0, x_38); +lean_ctor_set(x_42, 1, x_39); +return x_42; } } } @@ -6430,6 +7114,284 @@ lean_dec(x_1); return x_13; } } +static lean_object* _init_l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_saveState___boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_SavedState_restore___boxed), 10, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM___closed__1; +x_2 = l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM___closed__2; +x_3 = lean_alloc_ctor(0, 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_Elab_Tactic_instMonadBacktrackSavedStateTacticM() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM___closed__3; +return x_1; +} +} +lean_object* l_Lean_Elab_Tactic_tryCatch___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, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_12 = l_Lean_Elab_Tactic_saveState___rarg(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_15 = lean_apply_9(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); +if (lean_obj_tag(x_15) == 0) +{ +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = l_Lean_Elab_Tactic_SavedState_restore(x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_17); +x_19 = lean_ctor_get(x_18, 1); +lean_inc(x_19); +lean_dec(x_18); +x_20 = lean_apply_10(x_2, x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_19); +return x_20; +} +} +} +lean_object* l_Lean_Elab_Tactic_tryCatch(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_tryCatch___rarg), 11, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_12, 0, x_2); +lean_ctor_set(x_12, 1, x_11); +return x_12; +} +} +lean_object* l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___lambda__2(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, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_13 = l_Lean_Elab_Tactic_saveState___rarg(x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_16 = lean_apply_9(x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_15); +if (lean_obj_tag(x_16) == 0) +{ +lean_dec(x_14); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_16; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +x_19 = l_Lean_Elab_Tactic_SavedState_restore(x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_18); +x_20 = lean_ctor_get(x_19, 1); +lean_inc(x_20); +lean_dec(x_19); +x_21 = lean_apply_10(x_3, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_20); +return x_21; +} +} +} +static lean_object* _init_l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___lambda__1___boxed), 11, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___lambda__2), 12, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___closed__1; +x_2 = l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___closed__2; +x_3 = lean_alloc_ctor(0, 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_Elab_Tactic_instMonadExceptExceptionTacticM() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___closed__3; +return x_1; +} +} +lean_object* l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_12; +} +} +lean_object* l_Lean_Elab_Tactic_orElse___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, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_12 = l_Lean_Elab_Tactic_saveState___rarg(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_15 = lean_apply_9(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); +if (lean_obj_tag(x_15) == 0) +{ +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +lean_dec(x_15); +x_17 = l_Lean_Elab_Tactic_SavedState_restore(x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_16); +x_18 = lean_ctor_get(x_17, 1); +lean_inc(x_18); +lean_dec(x_17); +x_19 = lean_apply_9(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_18); +return x_19; +} +} +} +lean_object* l_Lean_Elab_Tactic_orElse(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_orElse___rarg), 11, 0); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_instOrElseTacticM___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_orElse___rarg), 11, 0); +return x_1; +} +} +lean_object* l_Lean_Elab_Tactic_instOrElseTacticM(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Elab_Tactic_instOrElseTacticM___closed__1; +return x_2; +} +} lean_object* l_Lean_Elab_Tactic_saveTacticInfoForToken(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, lean_object* x_9, lean_object* x_10) { _start: { @@ -7777,59 +8739,6 @@ return x_20; } } } -lean_object* l_Lean_Elab_Tactic_setGoals(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, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_11 = lean_st_ref_get(x_9, x_10); -x_12 = lean_ctor_get(x_11, 1); -lean_inc(x_12); -lean_dec(x_11); -x_13 = lean_st_ref_take(x_3, x_12); -x_14 = lean_ctor_get(x_13, 1); -lean_inc(x_14); -lean_dec(x_13); -x_15 = lean_st_ref_set(x_3, x_1, x_14); -x_16 = !lean_is_exclusive(x_15); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_15, 0); -lean_dec(x_17); -x_18 = lean_box(0); -lean_ctor_set(x_15, 0, x_18); -return x_15; -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_15, 1); -lean_inc(x_19); -lean_dec(x_15); -x_20 = lean_box(0); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_19); -return x_21; -} -} -} -lean_object* l_Lean_Elab_Tactic_setGoals___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, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = l_Lean_Elab_Tactic_setGoals(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_11; -} -} lean_object* l_Lean_Elab_Tactic_appendGoals(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, lean_object* x_9, lean_object* x_10) { _start: { @@ -8107,185 +9016,6 @@ lean_dec(x_2); return x_11; } } -lean_object* l_List_filterAuxM___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_12; -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_2); -lean_ctor_set(x_12, 1, x_11); -return x_12; -} -else -{ -uint8_t x_13; -x_13 = !lean_is_exclusive(x_1); -if (x_13 == 0) -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; -x_14 = lean_ctor_get(x_1, 0); -x_15 = lean_ctor_get(x_1, 1); -x_16 = l_Lean_Meta_isExprMVarAssigned(x_14, x_7, x_8, x_9, x_10, x_11); -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -x_18 = lean_unbox(x_17); -lean_dec(x_17); -if (x_18 == 0) -{ -lean_object* x_19; -x_19 = lean_ctor_get(x_16, 1); -lean_inc(x_19); -lean_dec(x_16); -lean_ctor_set(x_1, 1, x_2); -{ -lean_object* _tmp_0 = x_15; -lean_object* _tmp_1 = x_1; -lean_object* _tmp_10 = x_19; -x_1 = _tmp_0; -x_2 = _tmp_1; -x_11 = _tmp_10; -} -goto _start; -} -else -{ -lean_object* x_21; -lean_free_object(x_1); -lean_dec(x_14); -x_21 = lean_ctor_get(x_16, 1); -lean_inc(x_21); -lean_dec(x_16); -x_1 = x_15; -x_11 = x_21; -goto _start; -} -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; -x_23 = lean_ctor_get(x_1, 0); -x_24 = lean_ctor_get(x_1, 1); -lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_1); -x_25 = l_Lean_Meta_isExprMVarAssigned(x_23, x_7, x_8, x_9, x_10, x_11); -x_26 = lean_ctor_get(x_25, 0); -lean_inc(x_26); -x_27 = lean_unbox(x_26); -lean_dec(x_26); -if (x_27 == 0) -{ -lean_object* x_28; lean_object* x_29; -x_28 = lean_ctor_get(x_25, 1); -lean_inc(x_28); -lean_dec(x_25); -x_29 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_29, 0, x_23); -lean_ctor_set(x_29, 1, x_2); -x_1 = x_24; -x_2 = x_29; -x_11 = x_28; -goto _start; -} -else -{ -lean_object* x_31; -lean_dec(x_23); -x_31 = lean_ctor_get(x_25, 1); -lean_inc(x_31); -lean_dec(x_25); -x_1 = x_24; -x_11 = x_31; -goto _start; -} -} -} -} -} -lean_object* l_Lean_Elab_Tactic_pruneSolvedGoals(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, lean_object* x_9) { -_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; -x_10 = l_Lean_Elab_Tactic_getGoals___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -x_12 = lean_ctor_get(x_10, 1); -lean_inc(x_12); -lean_dec(x_10); -x_13 = lean_box(0); -x_14 = l_List_filterAuxM___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__1(x_11, x_13, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_12); -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -x_16 = lean_ctor_get(x_14, 1); -lean_inc(x_16); -lean_dec(x_14); -x_17 = l_List_reverse___rarg(x_15); -x_18 = l_Lean_Elab_Tactic_setGoals(x_17, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_16); -return x_18; -} -} -lean_object* l_List_filterAuxM___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; -x_12 = l_List_filterAuxM___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_12; -} -} -lean_object* l_Lean_Elab_Tactic_pruneSolvedGoals___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, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l_Lean_Elab_Tactic_pruneSolvedGoals(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_10; -} -} -lean_object* l_Lean_Elab_Tactic_getUnsolvedGoals(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, lean_object* x_9) { -_start: -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_10 = l_Lean_Elab_Tactic_pruneSolvedGoals(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -x_11 = lean_ctor_get(x_10, 1); -lean_inc(x_11); -lean_dec(x_10); -x_12 = l_Lean_Elab_Tactic_getGoals___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_11); -return x_12; -} -} -lean_object* l_Lean_Elab_Tactic_getUnsolvedGoals___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, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l_Lean_Elab_Tactic_getUnsolvedGoals(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_10; -} -} lean_object* l_Lean_Elab_Tactic_getMainGoal_loop_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -24588,7 +25318,7 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5423____closed__1() { +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5578____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -24598,196 +25328,15 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5423_(lean_object* x_1) { +lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5578_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5423____closed__1; +x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5578____closed__1; x_3 = l_Lean_registerTraceClass(x_2, x_1); return x_3; } } -lean_object* l_Lean_Elab_Tactic_TacticM_run___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, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_11 = lean_st_ref_get(x_9, x_10); -x_12 = lean_ctor_get(x_11, 1); -lean_inc(x_12); -lean_dec(x_11); -x_13 = lean_st_mk_ref(x_3, x_12); -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -x_15 = lean_ctor_get(x_13, 1); -lean_inc(x_15); -lean_dec(x_13); -lean_inc(x_9); -lean_inc(x_14); -x_16 = lean_apply_9(x_1, x_2, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_15); -if (lean_obj_tag(x_16) == 0) -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -x_18 = lean_ctor_get(x_16, 1); -lean_inc(x_18); -lean_dec(x_16); -x_19 = lean_st_ref_get(x_9, x_18); -lean_dec(x_9); -x_20 = lean_ctor_get(x_19, 1); -lean_inc(x_20); -lean_dec(x_19); -x_21 = lean_st_ref_get(x_14, x_20); -lean_dec(x_14); -x_22 = !lean_is_exclusive(x_21); -if (x_22 == 0) -{ -lean_object* x_23; lean_object* x_24; -x_23 = lean_ctor_get(x_21, 0); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_17); -lean_ctor_set(x_24, 1, x_23); -lean_ctor_set(x_21, 0, x_24); -return x_21; -} -else -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_25 = lean_ctor_get(x_21, 0); -x_26 = lean_ctor_get(x_21, 1); -lean_inc(x_26); -lean_inc(x_25); -lean_dec(x_21); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_17); -lean_ctor_set(x_27, 1, x_25); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_26); -return x_28; -} -} -else -{ -uint8_t x_29; -lean_dec(x_14); -lean_dec(x_9); -x_29 = !lean_is_exclusive(x_16); -if (x_29 == 0) -{ -return x_16; -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_16, 0); -x_31 = lean_ctor_get(x_16, 1); -lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_16); -x_32 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_32, 0, x_30); -lean_ctor_set(x_32, 1, x_31); -return x_32; -} -} -} -} -lean_object* l_Lean_Elab_Tactic_TacticM_run(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_TacticM_run___rarg), 10, 0); -return x_2; -} -} -lean_object* l_Lean_Elab_Tactic_TacticM_run_x27___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, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_11 = lean_st_ref_get(x_9, x_10); -x_12 = lean_ctor_get(x_11, 1); -lean_inc(x_12); -lean_dec(x_11); -x_13 = lean_st_mk_ref(x_3, x_12); -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -x_15 = lean_ctor_get(x_13, 1); -lean_inc(x_15); -lean_dec(x_13); -lean_inc(x_9); -lean_inc(x_14); -x_16 = lean_apply_9(x_1, x_2, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_15); -if (lean_obj_tag(x_16) == 0) -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -x_18 = lean_ctor_get(x_16, 1); -lean_inc(x_18); -lean_dec(x_16); -x_19 = lean_st_ref_get(x_9, x_18); -lean_dec(x_9); -x_20 = lean_ctor_get(x_19, 1); -lean_inc(x_20); -lean_dec(x_19); -x_21 = lean_st_ref_get(x_14, x_20); -lean_dec(x_14); -x_22 = !lean_is_exclusive(x_21); -if (x_22 == 0) -{ -lean_object* x_23; -x_23 = lean_ctor_get(x_21, 0); -lean_dec(x_23); -lean_ctor_set(x_21, 0, x_17); -return x_21; -} -else -{ -lean_object* x_24; lean_object* x_25; -x_24 = lean_ctor_get(x_21, 1); -lean_inc(x_24); -lean_dec(x_21); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_17); -lean_ctor_set(x_25, 1, x_24); -return x_25; -} -} -else -{ -uint8_t x_26; -lean_dec(x_14); -lean_dec(x_9); -x_26 = !lean_is_exclusive(x_16); -if (x_26 == 0) -{ -return x_16; -} -else -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_16, 0); -x_28 = lean_ctor_get(x_16, 1); -lean_inc(x_28); -lean_inc(x_27); -lean_dec(x_16); -x_29 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_29, 0, x_27); -lean_ctor_set(x_29, 1, x_28); -return x_29; -} -} -} -} -lean_object* l_Lean_Elab_Tactic_TacticM_run_x27(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_TacticM_run_x27___rarg), 10, 0); -return x_2; -} -} lean_object* initialize_Init(lean_object*); lean_object* initialize_Lean_Util_CollectMVars(lean_object*); lean_object* initialize_Lean_Parser_Command(lean_object*); @@ -24861,24 +25410,6 @@ l_Lean_Elab_Term_reportUnsolvedGoals___closed__5 = _init_l_Lean_Elab_Term_report lean_mark_persistent(l_Lean_Elab_Term_reportUnsolvedGoals___closed__5); l_Lean_Elab_Tactic_instInhabitedState = _init_l_Lean_Elab_Tactic_instInhabitedState(); lean_mark_persistent(l_Lean_Elab_Tactic_instInhabitedState); -l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM___closed__1 = _init_l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM___closed__1(); -lean_mark_persistent(l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM___closed__1); -l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM___closed__2 = _init_l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM___closed__2(); -lean_mark_persistent(l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM___closed__2); -l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM___closed__3 = _init_l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM___closed__3(); -lean_mark_persistent(l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM___closed__3); -l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM = _init_l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM(); -lean_mark_persistent(l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM); -l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___closed__1 = _init_l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___closed__1(); -lean_mark_persistent(l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___closed__1); -l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___closed__2 = _init_l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___closed__2(); -lean_mark_persistent(l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___closed__2); -l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___closed__3 = _init_l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___closed__3(); -lean_mark_persistent(l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___closed__3); -l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM = _init_l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM(); -lean_mark_persistent(l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM); -l_Lean_Elab_Tactic_instOrElseTacticM___closed__1 = _init_l_Lean_Elab_Tactic_instOrElseTacticM___closed__1(); -lean_mark_persistent(l_Lean_Elab_Tactic_instOrElseTacticM___closed__1); l_Lean_Elab_Tactic_mkTacticAttribute___closed__1 = _init_l_Lean_Elab_Tactic_mkTacticAttribute___closed__1(); lean_mark_persistent(l_Lean_Elab_Tactic_mkTacticAttribute___closed__1); l_Lean_Elab_Tactic_mkTacticAttribute___closed__2 = _init_l_Lean_Elab_Tactic_mkTacticAttribute___closed__2(); @@ -24904,6 +25435,24 @@ l_Lean_Elab_Tactic_evalTacticAux___lambda__1___closed__1 = _init_l_Lean_Elab_Tac lean_mark_persistent(l_Lean_Elab_Tactic_evalTacticAux___lambda__1___closed__1); l_Lean_Elab_Tactic_evalTacticAux___lambda__1___closed__2 = _init_l_Lean_Elab_Tactic_evalTacticAux___lambda__1___closed__2(); lean_mark_persistent(l_Lean_Elab_Tactic_evalTacticAux___lambda__1___closed__2); +l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM___closed__1 = _init_l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM___closed__1); +l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM___closed__2 = _init_l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM___closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM___closed__2); +l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM___closed__3 = _init_l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM___closed__3(); +lean_mark_persistent(l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM___closed__3); +l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM = _init_l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM(); +lean_mark_persistent(l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM); +l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___closed__1 = _init_l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___closed__1); +l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___closed__2 = _init_l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___closed__2); +l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___closed__3 = _init_l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___closed__3(); +lean_mark_persistent(l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___closed__3); +l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM = _init_l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM(); +lean_mark_persistent(l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM); +l_Lean_Elab_Tactic_instOrElseTacticM___closed__1 = _init_l_Lean_Elab_Tactic_instOrElseTacticM___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_instOrElseTacticM___closed__1); l_Lean_Elab_Tactic_throwNoGoalsToBeSolved___rarg___closed__1 = _init_l_Lean_Elab_Tactic_throwNoGoalsToBeSolved___rarg___closed__1(); lean_mark_persistent(l_Lean_Elab_Tactic_throwNoGoalsToBeSolved___rarg___closed__1); l_Lean_Elab_Tactic_throwNoGoalsToBeSolved___rarg___closed__2 = _init_l_Lean_Elab_Tactic_throwNoGoalsToBeSolved___rarg___closed__2(); @@ -25091,9 +25640,9 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalFirst___closed__1); res = l___regBuiltin_Lean_Elab_Tactic_evalFirst(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5423____closed__1 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5423____closed__1(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5423____closed__1); -res = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5423_(lean_io_mk_world()); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5578____closed__1 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5578____closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5578____closed__1); +res = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5578_(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/Elab/Tactic/ElabTerm.c b/stage0/stdlib/Lean/Elab/Tactic/ElabTerm.c index fe286773d3..552a4bfaa8 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/ElabTerm.c +++ b/stage0/stdlib/Lean/Elab/Tactic/ElabTerm.c @@ -41,8 +41,9 @@ lean_object* l___regBuiltin_Lean_Elab_Tactic_evalExact(lean_object*); lean_object* lean_array_uget(lean_object*, size_t); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalNativeDecide(lean_object*); lean_object* l_Lean_Elab_Tactic_elabTermForApply_match__1(lean_object*); +lean_object* l_Lean_Elab_throwAbortTactic___at___private_Lean_Elab_Tactic_ElabTerm_0__Lean_Elab_Tactic_logUnassignedAndAbort___spec__1___rarg(lean_object*); lean_object* l_Lean_Elab_Tactic_evalWithReducible(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_Tactic_closeMainGoalUsing___lambda__1(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_Tactic_closeMainGoalUsing___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaMAtMain___spec__1___rarg(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_instToExprBool___closed__1; uint8_t l_Lean_MetavarKind_isNatural(uint8_t); @@ -54,14 +55,16 @@ lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDecide(lean_object*); extern lean_object* l_Lean_identKind___closed__2; lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRefine_x27(lean_object*); lean_object* l_Lean_Elab_Tactic_elabTermEnsuringType_match__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_closeMainGoalUsing(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_Tactic_closeMainGoalUsing(lean_object*, uint8_t, 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; +lean_object* l___private_Lean_Elab_Tactic_ElabTerm_0__Lean_Elab_Tactic_logUnassignedAndAbort___boxed(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_Tactic_elabTermForApply___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_Lean_Meta_mkSorry___closed__4; lean_object* l___private_Lean_Elab_Tactic_ElabTerm_0__Lean_Elab_Tactic_preprocessPropToDecide___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_Tactic_evalDecide___boxed(lean_object*); lean_object* l_Lean_Elab_Tactic_evalTactic(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_ElabTerm_0__Lean_Elab_Tactic_preprocessPropToDecide___lambda__1___closed__2; +lean_object* l_Lean_Elab_throwAbortTactic___at___private_Lean_Elab_Tactic_ElabTerm_0__Lean_Elab_Tactic_logUnassignedAndAbort___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalRename(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_Tactic_evalConstructor___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDecide___closed__1; @@ -118,6 +121,7 @@ extern lean_object* l_Lean_Parser_Tactic_withReducible___closed__2; lean_object* l_Lean_Elab_Tactic_evalDecide___rarg___lambda__2___closed__1; lean_object* l_Lean_Elab_Tactic_elabTermForApply_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_closeMainGoalUsing___closed__1; +lean_object* l_Lean_Elab_Tactic_closeMainGoalUsing___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_Tactic_evalConstructor___boxed(lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalWithReducible(lean_object*); @@ -143,6 +147,7 @@ lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_elabTermWithHoles__ extern lean_object* l_Lean_Parser_Tactic_rename___closed__2; lean_object* l_Lean_Elab_Tactic_evalRefine_x27___closed__1; extern lean_object* l_Lean_KernelException_toMessageData___closed__15; +lean_object* l___private_Lean_Elab_Tactic_ElabTerm_0__Lean_Elab_Tactic_logUnassignedAndAbort(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*); lean_object* l_Lean_Meta_getLocalInstances(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_elabAsFVar_match__1(lean_object*); @@ -175,10 +180,12 @@ lean_object* l_Lean_Meta_assignExprMVar(lean_object*, lean_object*, lean_object* lean_object* l_Lean_Elab_Tactic_evalRefine___closed__1; extern lean_object* l_Lean_Parser_Tactic_refine___closed__1; lean_object* l_Lean_Elab_Tactic_elabTerm___lambda__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_getMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Tactic_refine___closed__2; lean_object* l_Lean_Elab_Tactic_evalExistsIntro___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalConstructor___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___regBuiltin_Lean_Elab_Tactic_evalExact___closed__1; +lean_object* l_Lean_Elab_throwAbortTactic___at___private_Lean_Elab_Tactic_ElabTerm_0__Lean_Elab_Tactic_logUnassignedAndAbort___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalNativeDecide___rarg___lambda__1___closed__4; lean_object* l_Lean_Elab_Tactic_evalWithReducible___boxed(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_Tactic_refineCore_match__1(lean_object*); @@ -186,6 +193,7 @@ lean_object* l___private_Lean_Elab_Tactic_ElabTerm_0__Lean_Elab_Tactic_preproces uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_elabAsFVar_match__2(lean_object*); uint8_t l_Lean_Expr_hasMVar(lean_object*); +extern lean_object* l_Lean_Elab_throwAbortTactic___rarg___closed__1; lean_object* l_Lean_Meta_withNewMCtxDepth___at_Lean_Elab_Tactic_evalRename___spec__7___rarg(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_Tactic_evalNativeDecide___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_elabTermForApply(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -245,6 +253,7 @@ uint8_t l_Lean_Expr_hasFVar(lean_object*); lean_object* l_Lean_Elab_Tactic_evalNativeDecide(lean_object*); lean_object* l_Array_findSomeRevM_x3f_find___at_Lean_Elab_Tactic_evalRename___spec__6(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___regBuiltin_Lean_Elab_Tactic_evalRefine_x27___closed__1; +lean_object* l_Lean_Elab_Tactic_closeMainGoalUsing___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*, lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_refineCore(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_object* l_Lean_Elab_Tactic_evalExact(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -711,10 +720,11 @@ lean_dec(x_4); return x_14; } } -lean_object* l_Lean_Elab_Tactic_closeMainGoalUsing___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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Lean_Elab_Tactic_closeMainGoalUsing___lambda__1(lean_object* x_1, uint8_t 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, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { -lean_object* x_12; +lean_object* x_13; +lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); @@ -722,25 +732,24 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -lean_inc(x_3); -x_12 = lean_apply_10(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_12) == 0) +x_13 = lean_apply_10(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_13) == 0) { -lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); -lean_dec(x_12); -x_15 = 1; -x_16 = l_Lean_Elab_Tactic_closeMainGoal(x_13, x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = l_Lean_Elab_Tactic_closeMainGoal(x_14, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_15); +lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); return x_16; } else { uint8_t x_17; +lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -748,20 +757,19 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -x_17 = !lean_is_exclusive(x_12); +x_17 = !lean_is_exclusive(x_13); if (x_17 == 0) { -return x_12; +return x_13; } else { lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_18 = lean_ctor_get(x_12, 0); -x_19 = lean_ctor_get(x_12, 1); +x_18 = lean_ctor_get(x_13, 0); +x_19 = lean_ctor_get(x_13, 1); lean_inc(x_19); lean_inc(x_18); -lean_dec(x_12); +lean_dec(x_13); x_20 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_20, 0, x_18); lean_ctor_set(x_20, 1, x_19); @@ -778,20 +786,160 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_getMainTarget___boxed), 9, 0 return x_1; } } -lean_object* l_Lean_Elab_Tactic_closeMainGoalUsing(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, lean_object* x_9, lean_object* x_10) { +lean_object* l_Lean_Elab_Tactic_closeMainGoalUsing(lean_object* x_1, uint8_t 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, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_11 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_closeMainGoalUsing___lambda__1), 11, 1); -lean_closure_set(x_11, 0, x_1); -x_12 = l_Lean_Elab_Tactic_closeMainGoalUsing___closed__1; -x_13 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaMAtMain___spec__1___rarg), 11, 2); -lean_closure_set(x_13, 0, x_12); -lean_closure_set(x_13, 1, x_11); -x_14 = l_Lean_Elab_Tactic_withMainContext___rarg(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_12 = lean_box(x_2); +x_13 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_closeMainGoalUsing___lambda__1___boxed), 12, 2); +lean_closure_set(x_13, 0, x_1); +lean_closure_set(x_13, 1, x_12); +x_14 = l_Lean_Elab_Tactic_closeMainGoalUsing___closed__1; +x_15 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaMAtMain___spec__1___rarg), 11, 2); +lean_closure_set(x_15, 0, x_14); +lean_closure_set(x_15, 1, x_13); +x_16 = l_Lean_Elab_Tactic_withMainContext___rarg(x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_16; +} +} +lean_object* l_Lean_Elab_Tactic_closeMainGoalUsing___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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +uint8_t x_13; lean_object* x_14; +x_13 = lean_unbox(x_2); +lean_dec(x_2); +x_14 = l_Lean_Elab_Tactic_closeMainGoalUsing___lambda__1(x_1, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); return x_14; } } +lean_object* l_Lean_Elab_Tactic_closeMainGoalUsing___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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +uint8_t x_12; lean_object* x_13; +x_12 = lean_unbox(x_2); +lean_dec(x_2); +x_13 = l_Lean_Elab_Tactic_closeMainGoalUsing(x_1, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_13; +} +} +lean_object* l_Lean_Elab_throwAbortTactic___at___private_Lean_Elab_Tactic_ElabTerm_0__Lean_Elab_Tactic_logUnassignedAndAbort___spec__1___rarg(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_Elab_throwAbortTactic___rarg___closed__1; +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; +} +} +lean_object* l_Lean_Elab_throwAbortTactic___at___private_Lean_Elab_Tactic_ElabTerm_0__Lean_Elab_Tactic_logUnassignedAndAbort___spec__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, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = lean_alloc_closure((void*)(l_Lean_Elab_throwAbortTactic___at___private_Lean_Elab_Tactic_ElabTerm_0__Lean_Elab_Tactic_logUnassignedAndAbort___spec__1___rarg), 1, 0); +return x_9; +} +} +lean_object* l___private_Lean_Elab_Tactic_ElabTerm_0__Lean_Elab_Tactic_logUnassignedAndAbort(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, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_box(0); +x_12 = l_Lean_Elab_Term_logUnassignedUsingErrorInfos(x_1, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; uint8_t x_14; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_unbox(x_13); +lean_dec(x_13); +if (x_14 == 0) +{ +uint8_t x_15; +x_15 = !lean_is_exclusive(x_12); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_12, 0); +lean_dec(x_16); +x_17 = lean_box(0); +lean_ctor_set(x_12, 0, x_17); +return x_12; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_12, 1); +lean_inc(x_18); +lean_dec(x_12); +x_19 = lean_box(0); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +return x_20; +} +} +else +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_12, 1); +lean_inc(x_21); +lean_dec(x_12); +x_22 = l_Lean_Elab_throwAbortTactic___at___private_Lean_Elab_Tactic_ElabTerm_0__Lean_Elab_Tactic_logUnassignedAndAbort___spec__1___rarg(x_21); +return x_22; +} +} +else +{ +uint8_t x_23; +x_23 = !lean_is_exclusive(x_12); +if (x_23 == 0) +{ +return x_12; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_12, 0); +x_25 = lean_ctor_get(x_12, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_12); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; +} +} +} +} +lean_object* l_Lean_Elab_throwAbortTactic___at___private_Lean_Elab_Tactic_ElabTerm_0__Lean_Elab_Tactic_logUnassignedAndAbort___spec__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, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_Elab_throwAbortTactic___at___private_Lean_Elab_Tactic_ElabTerm_0__Lean_Elab_Tactic_logUnassignedAndAbort___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_9; +} +} +lean_object* l___private_Lean_Elab_Tactic_ElabTerm_0__Lean_Elab_Tactic_logUnassignedAndAbort___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, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l___private_Lean_Elab_Tactic_ElabTerm_0__Lean_Elab_Tactic_logUnassignedAndAbort(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_3); +lean_dec(x_2); +return x_11; +} +} lean_object* l_Lean_Elab_Tactic_evalExact___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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { @@ -799,9 +947,143 @@ lean_object* x_12; uint8_t x_13; lean_object* x_14; x_12 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_12, 0, x_2); x_13 = 0; +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); x_14 = l_Lean_Elab_Tactic_elabTermEnsuringType(x_1, x_12, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_15); +x_17 = l_Lean_Meta_getMVars(x_15, x_7, x_8, x_9, x_10, x_16); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = l___private_Lean_Elab_Tactic_ElabTerm_0__Lean_Elab_Tactic_logUnassignedAndAbort(x_18, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_19); +if (lean_obj_tag(x_20) == 0) +{ +uint8_t x_21; +x_21 = !lean_is_exclusive(x_20); +if (x_21 == 0) +{ +lean_object* x_22; +x_22 = lean_ctor_get(x_20, 0); +lean_dec(x_22); +lean_ctor_set(x_20, 0, x_15); +return x_20; +} +else +{ +lean_object* x_23; lean_object* x_24; +x_23 = lean_ctor_get(x_20, 1); +lean_inc(x_23); +lean_dec(x_20); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_15); +lean_ctor_set(x_24, 1, x_23); +return x_24; +} +} +else +{ +uint8_t x_25; +lean_dec(x_15); +x_25 = !lean_is_exclusive(x_20); +if (x_25 == 0) +{ +return x_20; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_20, 0); +x_27 = lean_ctor_get(x_20, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_20); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +return x_28; +} +} +} +else +{ +uint8_t x_29; +lean_dec(x_15); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_29 = !lean_is_exclusive(x_17); +if (x_29 == 0) +{ +return x_17; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_17, 0); +x_31 = lean_ctor_get(x_17, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_17); +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_30); +lean_ctor_set(x_32, 1, x_31); +return x_32; +} +} +} +else +{ +uint8_t x_33; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_33 = !lean_is_exclusive(x_14); +if (x_33 == 0) +{ return x_14; } +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_14, 0); +x_35 = lean_ctor_get(x_14, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_14); +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set(x_36, 1, x_35); +return x_36; +} +} +} } lean_object* l_Lean_Elab_Tactic_evalExact(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, lean_object* x_9, lean_object* x_10) { _start: @@ -827,14 +1109,15 @@ return x_13; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; x_14 = lean_unsigned_to_nat(1u); x_15 = l_Lean_Syntax_getArg(x_1, x_14); lean_dec(x_1); x_16 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalExact___lambda__1___boxed), 11, 1); lean_closure_set(x_16, 0, x_15); -x_17 = l_Lean_Elab_Tactic_closeMainGoalUsing(x_16, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_17; +x_17 = 0; +x_18 = l_Lean_Elab_Tactic_closeMainGoalUsing(x_16, x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_18; } } } @@ -1161,7 +1444,7 @@ lean_inc(x_7); x_15 = l_Lean_Elab_Tactic_elabTermEnsuringType(x_1, x_2, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); if (lean_obj_tag(x_15) == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_73; +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_70; x_16 = lean_ctor_get(x_15, 0); lean_inc(x_16); x_17 = lean_ctor_get(x_15, 1); @@ -1172,65 +1455,65 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_16); -x_73 = l_Lean_Meta_getMVarsNoDelayed(x_16, x_9, x_10, x_11, x_12, x_17); -if (lean_obj_tag(x_73) == 0) +x_70 = l_Lean_Meta_getMVarsNoDelayed(x_16, x_9, x_10, x_11, x_12, x_17); +if (lean_obj_tag(x_70) == 0) { -lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; uint8_t x_78; -x_74 = lean_ctor_get(x_73, 0); -lean_inc(x_74); -x_75 = lean_ctor_get(x_73, 1); -lean_inc(x_75); +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; uint8_t x_75; +x_71 = lean_ctor_get(x_70, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_70, 1); +lean_inc(x_72); +lean_dec(x_70); +x_73 = lean_array_get_size(x_71); +x_74 = lean_unsigned_to_nat(0u); +x_75 = lean_nat_dec_lt(x_74, x_73); +if (x_75 == 0) +{ +lean_object* x_76; lean_dec(x_73); -x_76 = lean_array_get_size(x_74); -x_77 = lean_unsigned_to_nat(0u); -x_78 = lean_nat_dec_lt(x_77, x_76); -if (x_78 == 0) -{ -lean_object* x_79; -lean_dec(x_76); -lean_dec(x_74); -x_79 = l_Array_empty___closed__1; -x_18 = x_79; -x_19 = x_75; -goto block_72; +lean_dec(x_71); +x_76 = l_Array_empty___closed__1; +x_18 = x_76; +x_19 = x_72; +goto block_69; } else { -uint8_t x_80; -x_80 = lean_nat_dec_le(x_76, x_76); -if (x_80 == 0) +uint8_t x_77; +x_77 = lean_nat_dec_le(x_73, x_73); +if (x_77 == 0) { -lean_object* x_81; -lean_dec(x_76); -lean_dec(x_74); +lean_object* x_78; +lean_dec(x_73); +lean_dec(x_71); +x_78 = l_Array_empty___closed__1; +x_18 = x_78; +x_19 = x_72; +goto block_69; +} +else +{ +size_t x_79; size_t x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_79 = 0; +x_80 = lean_usize_of_nat(x_73); +lean_dec(x_73); x_81 = l_Array_empty___closed__1; -x_18 = x_81; -x_19 = x_75; -goto block_72; -} -else -{ -size_t x_82; size_t x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_82 = 0; -x_83 = lean_usize_of_nat(x_76); -lean_dec(x_76); -x_84 = l_Array_empty___closed__1; -x_85 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_elabTermWithHoles___spec__3(x_74, x_82, x_83, x_84, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_75); -lean_dec(x_74); -x_86 = lean_ctor_get(x_85, 0); -lean_inc(x_86); -x_87 = lean_ctor_get(x_85, 1); -lean_inc(x_87); -lean_dec(x_85); -x_18 = x_86; -x_19 = x_87; -goto block_72; +x_82 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_elabTermWithHoles___spec__3(x_71, x_79, x_80, x_81, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_72); +lean_dec(x_71); +x_83 = lean_ctor_get(x_82, 0); +lean_inc(x_83); +x_84 = lean_ctor_get(x_82, 1); +lean_inc(x_84); +lean_dec(x_82); +x_18 = x_83; +x_19 = x_84; +goto block_69; } } } else { -uint8_t x_88; +uint8_t x_85; lean_dec(x_16); lean_dec(x_12); lean_dec(x_11); @@ -1239,26 +1522,26 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_3); -x_88 = !lean_is_exclusive(x_73); -if (x_88 == 0) +x_85 = !lean_is_exclusive(x_70); +if (x_85 == 0) { -return x_73; +return x_70; } else { -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_73, 0); -x_90 = lean_ctor_get(x_73, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_73); -x_91 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_90); -return x_91; +lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_86 = lean_ctor_get(x_70, 0); +x_87 = lean_ctor_get(x_70, 1); +lean_inc(x_87); +lean_inc(x_86); +lean_dec(x_70); +x_88 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_88, 0, x_86); +lean_ctor_set(x_88, 1, x_87); +return x_88; } } -block_72: +block_69: { if (x_4 == 0) { @@ -1268,37 +1551,36 @@ x_21 = lean_unsigned_to_nat(0u); x_22 = lean_nat_dec_lt(x_21, x_20); if (x_22 == 0) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_object* x_23; lean_object* x_24; lean_dec(x_20); lean_dec(x_18); -x_23 = lean_box(0); -x_24 = l_Array_empty___closed__1; +x_23 = l_Array_empty___closed__1; lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_25 = l_Lean_Elab_Term_logUnassignedUsingErrorInfos(x_24, x_23, x_7, x_8, x_9, x_10, x_11, x_12, x_19); -if (lean_obj_tag(x_25) == 0) +x_24 = l___private_Lean_Elab_Tactic_ElabTerm_0__Lean_Elab_Tactic_logUnassignedAndAbort(x_23, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_19); +if (lean_obj_tag(x_24) == 0) { -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_25, 1); -lean_inc(x_26); -lean_dec(x_25); -x_27 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst___closed__1; -x_28 = l_Lean_Elab_Tactic_elabTermWithHoles___lambda__1(x_3, x_16, x_27, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_26); +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_24, 1); +lean_inc(x_25); +lean_dec(x_24); +x_26 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst___closed__1; +x_27 = l_Lean_Elab_Tactic_elabTermWithHoles___lambda__1(x_3, x_16, x_26, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_25); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -return x_28; +return x_27; } else { -uint8_t x_29; +uint8_t x_28; lean_dec(x_16); lean_dec(x_12); lean_dec(x_11); @@ -1307,63 +1589,62 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_3); -x_29 = !lean_is_exclusive(x_25); -if (x_29 == 0) +x_28 = !lean_is_exclusive(x_24); +if (x_28 == 0) { -return x_25; +return x_24; } else { -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_25, 0); -x_31 = lean_ctor_get(x_25, 1); -lean_inc(x_31); +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_24, 0); +x_30 = lean_ctor_get(x_24, 1); lean_inc(x_30); -lean_dec(x_25); -x_32 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_32, 0, x_30); -lean_ctor_set(x_32, 1, x_31); -return x_32; +lean_inc(x_29); +lean_dec(x_24); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +return x_31; } } } else { -uint8_t x_33; -x_33 = lean_nat_dec_le(x_20, x_20); -if (x_33 == 0) +uint8_t x_32; +x_32 = lean_nat_dec_le(x_20, x_20); +if (x_32 == 0) { -lean_object* x_34; lean_object* x_35; lean_object* x_36; +lean_object* x_33; lean_object* x_34; lean_dec(x_20); lean_dec(x_18); -x_34 = lean_box(0); -x_35 = l_Array_empty___closed__1; +x_33 = l_Array_empty___closed__1; lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_36 = l_Lean_Elab_Term_logUnassignedUsingErrorInfos(x_35, x_34, x_7, x_8, x_9, x_10, x_11, x_12, x_19); -if (lean_obj_tag(x_36) == 0) +x_34 = l___private_Lean_Elab_Tactic_ElabTerm_0__Lean_Elab_Tactic_logUnassignedAndAbort(x_33, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_19); +if (lean_obj_tag(x_34) == 0) { -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_36, 1); -lean_inc(x_37); -lean_dec(x_36); -x_38 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst___closed__1; -x_39 = l_Lean_Elab_Tactic_elabTermWithHoles___lambda__1(x_3, x_16, x_38, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_37); +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_34, 1); +lean_inc(x_35); +lean_dec(x_34); +x_36 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst___closed__1; +x_37 = l_Lean_Elab_Tactic_elabTermWithHoles___lambda__1(x_3, x_16, x_36, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_35); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -return x_39; +return x_37; } else { -uint8_t x_40; +uint8_t x_38; lean_dec(x_16); lean_dec(x_12); lean_dec(x_11); @@ -1372,112 +1653,79 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_3); -x_40 = !lean_is_exclusive(x_36); -if (x_40 == 0) +x_38 = !lean_is_exclusive(x_34); +if (x_38 == 0) { -return x_36; +return x_34; } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_36, 0); -x_42 = lean_ctor_get(x_36, 1); -lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_36); -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; +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_34, 0); +x_40 = lean_ctor_get(x_34, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_34); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +return x_41; } } } else { -size_t x_44; size_t x_45; lean_object* x_46; lean_object* x_47; -x_44 = 0; -x_45 = lean_usize_of_nat(x_20); +size_t x_42; size_t x_43; lean_object* x_44; lean_object* x_45; +x_42 = 0; +x_43 = lean_usize_of_nat(x_20); lean_dec(x_20); -x_46 = l_Array_empty___closed__1; -x_47 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_elabTermWithHoles___spec__1(x_18, x_44, x_45, x_46, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_19); -if (lean_obj_tag(x_47) == 0) +x_44 = l_Array_empty___closed__1; +x_45 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_elabTermWithHoles___spec__1(x_18, x_42, x_43, x_44, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_19); +if (lean_obj_tag(x_45) == 0) { -lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_48 = lean_ctor_get(x_47, 0); -lean_inc(x_48); -x_49 = lean_ctor_get(x_47, 1); +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_45, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_45, 1); +lean_inc(x_47); +lean_dec(x_45); +x_48 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_elabTermWithHoles___spec__2(x_18, x_42, x_43, x_44, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_47); +lean_dec(x_18); +if (lean_obj_tag(x_48) == 0) +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_48, 0); lean_inc(x_49); -lean_dec(x_47); -x_50 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_elabTermWithHoles___spec__2(x_18, x_44, x_45, x_46, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_49); -lean_dec(x_18); -if (lean_obj_tag(x_50) == 0) -{ -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_51 = lean_ctor_get(x_50, 0); -lean_inc(x_51); -x_52 = lean_ctor_get(x_50, 1); -lean_inc(x_52); -lean_dec(x_50); -x_53 = lean_box(0); +x_50 = lean_ctor_get(x_48, 1); +lean_inc(x_50); +lean_dec(x_48); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_54 = l_Lean_Elab_Term_logUnassignedUsingErrorInfos(x_48, x_53, x_7, x_8, x_9, x_10, x_11, x_12, x_52); -if (lean_obj_tag(x_54) == 0) +x_51 = l___private_Lean_Elab_Tactic_ElabTerm_0__Lean_Elab_Tactic_logUnassignedAndAbort(x_46, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_50); +if (lean_obj_tag(x_51) == 0) { -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_54, 1); -lean_inc(x_55); -lean_dec(x_54); -x_56 = lean_array_to_list(lean_box(0), x_51); -x_57 = l_Lean_Elab_Tactic_elabTermWithHoles___lambda__1(x_3, x_16, x_56, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_55); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -return x_57; -} -else -{ -uint8_t x_58; +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_51, 1); +lean_inc(x_52); lean_dec(x_51); -lean_dec(x_16); +x_53 = lean_array_to_list(lean_box(0), x_49); +x_54 = l_Lean_Elab_Tactic_elabTermWithHoles___lambda__1(x_3, x_16, x_53, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_52); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -lean_dec(x_3); -x_58 = !lean_is_exclusive(x_54); -if (x_58 == 0) -{ return x_54; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_54, 0); -x_60 = lean_ctor_get(x_54, 1); -lean_inc(x_60); -lean_inc(x_59); -lean_dec(x_54); -x_61 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_61, 0, x_59); -lean_ctor_set(x_61, 1, x_60); -return x_61; -} -} -} -else -{ -uint8_t x_62; -lean_dec(x_48); +uint8_t x_55; +lean_dec(x_49); lean_dec(x_16); lean_dec(x_12); lean_dec(x_11); @@ -1486,29 +1734,61 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_3); -x_62 = !lean_is_exclusive(x_50); -if (x_62 == 0) +x_55 = !lean_is_exclusive(x_51); +if (x_55 == 0) { -return x_50; +return x_51; } else { -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; +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_51, 0); +x_57 = lean_ctor_get(x_51, 1); +lean_inc(x_57); +lean_inc(x_56); +lean_dec(x_51); +x_58 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_58, 0, x_56); +lean_ctor_set(x_58, 1, x_57); +return x_58; } } } else { -uint8_t x_66; +uint8_t x_59; +lean_dec(x_46); +lean_dec(x_16); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_3); +x_59 = !lean_is_exclusive(x_48); +if (x_59 == 0) +{ +return x_48; +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_48, 0); +x_61 = lean_ctor_get(x_48, 1); +lean_inc(x_61); +lean_inc(x_60); +lean_dec(x_48); +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; +} +} +} +else +{ +uint8_t x_63; lean_dec(x_18); lean_dec(x_16); lean_dec(x_12); @@ -1518,23 +1798,23 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_3); -x_66 = !lean_is_exclusive(x_47); -if (x_66 == 0) +x_63 = !lean_is_exclusive(x_45); +if (x_63 == 0) { -return x_47; +return x_45; } else { -lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_67 = lean_ctor_get(x_47, 0); -x_68 = lean_ctor_get(x_47, 1); -lean_inc(x_68); -lean_inc(x_67); -lean_dec(x_47); -x_69 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_69, 0, x_67); -lean_ctor_set(x_69, 1, x_68); -return x_69; +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_45, 0); +x_65 = lean_ctor_get(x_45, 1); +lean_inc(x_65); +lean_inc(x_64); +lean_dec(x_45); +x_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_64); +lean_ctor_set(x_66, 1, x_65); +return x_66; } } } @@ -1542,22 +1822,22 @@ return x_69; } else { -lean_object* x_70; lean_object* x_71; -x_70 = lean_array_to_list(lean_box(0), x_18); -x_71 = l_Lean_Elab_Tactic_elabTermWithHoles___lambda__1(x_3, x_16, x_70, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_19); +lean_object* x_67; lean_object* x_68; +x_67 = lean_array_to_list(lean_box(0), x_18); +x_68 = l_Lean_Elab_Tactic_elabTermWithHoles___lambda__1(x_3, x_16, x_67, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_19); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -return x_71; +return x_68; } } } else { -uint8_t x_92; +uint8_t x_89; lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -1565,23 +1845,23 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_3); -x_92 = !lean_is_exclusive(x_15); -if (x_92 == 0) +x_89 = !lean_is_exclusive(x_15); +if (x_89 == 0) { return x_15; } else { -lean_object* x_93; lean_object* x_94; lean_object* x_95; -x_93 = lean_ctor_get(x_15, 0); -x_94 = lean_ctor_get(x_15, 1); -lean_inc(x_94); -lean_inc(x_93); +lean_object* x_90; lean_object* x_91; lean_object* x_92; +x_90 = lean_ctor_get(x_15, 0); +x_91 = lean_ctor_get(x_15, 1); +lean_inc(x_91); +lean_inc(x_90); lean_dec(x_15); -x_95 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_95, 0, x_93); -lean_ctor_set(x_95, 1, x_94); -return x_95; +x_92 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_92, 0, x_90); +lean_ctor_set(x_92, 1, x_91); +return x_92; } } } @@ -5985,10 +6265,11 @@ return x_1; lean_object* l_Lean_Elab_Tactic_evalDecide___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, lean_object* x_9) { _start: { -lean_object* x_10; lean_object* x_11; +lean_object* x_10; uint8_t x_11; lean_object* x_12; x_10 = l_Lean_Elab_Tactic_evalDecide___rarg___closed__1; -x_11 = l_Lean_Elab_Tactic_closeMainGoalUsing(x_10, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_11; +x_11 = 1; +x_12 = l_Lean_Elab_Tactic_closeMainGoalUsing(x_10, x_11, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_12; } } lean_object* l_Lean_Elab_Tactic_evalDecide(lean_object* x_1) { @@ -6466,10 +6747,11 @@ return x_1; lean_object* l_Lean_Elab_Tactic_evalNativeDecide___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, lean_object* x_9) { _start: { -lean_object* x_10; lean_object* x_11; +lean_object* x_10; uint8_t x_11; lean_object* x_12; x_10 = l_Lean_Elab_Tactic_evalNativeDecide___rarg___closed__1; -x_11 = l_Lean_Elab_Tactic_closeMainGoalUsing(x_10, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_11; +x_11 = 1; +x_12 = l_Lean_Elab_Tactic_closeMainGoalUsing(x_10, x_11, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_12; } } lean_object* l_Lean_Elab_Tactic_evalNativeDecide(lean_object* x_1) { diff --git a/stage0/stdlib/Lean/Meta/ExprDefEq.c b/stage0/stdlib/Lean/Meta/ExprDefEq.c index 9edd67ec15..fad2a49535 100644 --- a/stage0/stdlib/Lean/Meta/ExprDefEq.c +++ b/stage0/stdlib/Lean/Meta/ExprDefEq.c @@ -58,8 +58,8 @@ uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkMVar___spec__ lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isSynthetic_match__1___rarg(uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfoldBothDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDepsAux_match__1(lean_object*); -lean_object* l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2674_(lean_object*); -lean_object* l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2661_(lean_object*); +lean_object* l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2676_(lean_object*); +lean_object* l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2663_(lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__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* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfoldBothDefEq_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -108,7 +108,6 @@ lean_object* l_Lean_mkMVar(lean_object*); size_t l_USize_sub(size_t, size_t); lean_object* l___private_Lean_Expr_0__Lean_Expr_etaExpandedAux(lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9521____closed__1; lean_object* l_Lean_addTrace___at_Lean_Meta_CheckAssignment_checkFVar___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_findCached_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isExprDefEqAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -198,7 +197,6 @@ lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_simpAssignmentArgAux_m lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_addAssignmentInfo___closed__1; lean_object* l_Std_PersistentArray_foldlM___at___private_Lean_Util_Trace_0__Lean_withNestedTracesFinalizer___spec__1(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2674____closed__2; lean_object* l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_tryHeuristic___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_etaEq(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unstuckMVar___closed__1; @@ -247,6 +245,7 @@ lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqQuickOther___closed__3; lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_checkApp___spec__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_Lean_Expr_updateLambdaE_x21___closed__2; +lean_object* l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2663____closed__2; lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqQuickMVarMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___closed__3; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); @@ -269,7 +268,6 @@ lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqLeft(lean_objec lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_simpAssignmentArgAux_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_processAssignment_process_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2661____closed__2; extern lean_object* l_Lean_Meta_isTypeCorrect___closed__1; extern lean_object* l_Lean_Meta_toCtorIfLit___closed__3; lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_processPostponedStep___spec__6___rarg(lean_object*, lean_object*); @@ -428,7 +426,6 @@ uint8_t l_Lean_Meta_CheckAssignmentQuick_check_visit(uint8_t, lean_object*, lean lean_object* l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg(lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqQuick(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isLambda(lean_object*); -lean_object* l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2674____closed__1; lean_object* l_Lean_Meta_CheckAssignment_checkAssignmentAux(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_anyMAux___at_Lean_Meta_CheckAssignment_checkMVar___spec__12___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEta___spec__1___closed__1; @@ -456,6 +453,7 @@ lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar_ lean_object* l_Lean_Meta_mkFreshExprMVarAt(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unstuckMVar___closed__8; lean_object* l_Lean_LocalDecl_type(lean_object*); +lean_object* l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2676____closed__1; lean_object* l_Lean_LocalDecl_value_x3f(lean_object*); lean_object* lean_local_ctx_mk_local_decl(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_tryHeuristic___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*); @@ -469,6 +467,7 @@ lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqDelta(lean_obje extern lean_object* l_Std_HashSet_instInhabitedHashSet___closed__1; lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___closed__1; +lean_object* l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2676____closed__2; extern lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_postponeIsLevelDefEq___closed__3; lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqLeft___closed__2; lean_object* l_Lean_LocalDecl_index(lean_object*); @@ -519,7 +518,6 @@ lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkMVar___s lean_object* l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_tryHeuristic___spec__1___lambda__3___closed__2; uint8_t l_Lean_Meta_CheckAssignmentQuick_check(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_simpAssignmentArg___closed__1; -lean_object* l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2661____closed__1; lean_object* l___private_Lean_Util_Trace_0__Lean_withNestedTracesFinalizer___at_Lean_Meta_isExprDefEqAuxImpl___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_cache___boxed(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_Meta_CheckAssignment_checkMVar___spec__28(lean_object*, lean_object*, size_t, size_t); @@ -548,6 +546,7 @@ lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkMVar___s uint8_t l_Array_contains___at___private_Lean_Class_0__Lean_checkOutParam___spec__1(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqQuickOther___closed__4; lean_object* l_Lean_Meta_whenUndefDo_match__1___rarg(uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2663____closed__1; lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfoldBothDefEq_match__1(lean_object*); lean_object* l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_processAssignmentFOApprox_loop___spec__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_anyMAux___at_Lean_Meta_CheckAssignment_checkMVar___spec__33___boxed(lean_object*, lean_object*); @@ -567,8 +566,8 @@ lean_object* l_Lean_Meta_CheckAssignment_checkMVar_match__2(lean_object*); uint8_t l_Lean_Expr_isFVar(lean_object*); lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isAssigned_match__1(lean_object*); -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9521_(lean_object*); -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9530_(lean_object*); +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9532_(lean_object*); +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9523_(lean_object*); lean_object* lean_expr_update_lambda(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Meta_CheckAssignment_throwCheckAssignmentFailure___rarg___closed__1; lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_checkAssignment___spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -619,6 +618,7 @@ extern lean_object* l_Lean_Expr_updateLet_x21___closed__2; lean_object* l_Lean_Meta_whenUndefDo_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__55___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqArgs___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* l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9523____closed__1; lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkMVar___spec__42___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isDefEqNat(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__50___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -11852,7 +11852,7 @@ lean_dec(x_5); return x_10; } } -static lean_object* _init_l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2661____closed__1() { +static lean_object* _init_l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2663____closed__1() { _start: { lean_object* x_1; @@ -11860,26 +11860,26 @@ x_1 = lean_mk_string("checkAssignment"); return x_1; } } -static lean_object* _init_l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2661____closed__2() { +static lean_object* _init_l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2663____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2661____closed__1; +x_2 = l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2663____closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2661_(lean_object* x_1) { +lean_object* l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2663_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2661____closed__2; +x_2 = l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2663____closed__2; x_3 = l_Lean_registerInternalExceptionId(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2674____closed__1() { +static lean_object* _init_l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2676____closed__1() { _start: { lean_object* x_1; @@ -11887,21 +11887,21 @@ x_1 = lean_mk_string("outOfScope"); return x_1; } } -static lean_object* _init_l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2674____closed__2() { +static lean_object* _init_l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2676____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2674____closed__1; +x_2 = l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2676____closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2674_(lean_object* x_1) { +lean_object* l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2676_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2674____closed__2; +x_2 = l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2676____closed__2; x_3 = l_Lean_registerInternalExceptionId(x_2, x_1); return x_3; } @@ -64773,7 +64773,7 @@ lean_dec(x_3); return x_8; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9521____closed__1() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9523____closed__1() { _start: { lean_object* x_1; @@ -64781,12 +64781,12 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Meta_isExprDefEqAuxImpl), 7, 0); return x_1; } } -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9521_(lean_object* x_1) { +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9523_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; x_2 = l_Lean_Meta_isExprDefEqAuxRef; -x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9521____closed__1; +x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9523____closed__1; x_4 = lean_st_ref_set(x_2, x_3, x_1); x_5 = !lean_is_exclusive(x_4); if (x_5 == 0) @@ -64808,7 +64808,7 @@ return x_8; } } } -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9530_(lean_object* x_1) { +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9532_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -65049,20 +65049,20 @@ l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps___closed__ lean_mark_persistent(l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps___closed__3); l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps___closed__4 = _init_l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps___closed__4(); lean_mark_persistent(l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps___closed__4); -l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2661____closed__1 = _init_l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2661____closed__1(); -lean_mark_persistent(l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2661____closed__1); -l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2661____closed__2 = _init_l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2661____closed__2(); -lean_mark_persistent(l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2661____closed__2); -res = l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2661_(lean_io_mk_world()); +l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2663____closed__1 = _init_l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2663____closed__1(); +lean_mark_persistent(l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2663____closed__1); +l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2663____closed__2 = _init_l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2663____closed__2(); +lean_mark_persistent(l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2663____closed__2); +res = l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2663_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l_Lean_Meta_CheckAssignment_checkAssignmentExceptionId = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_Meta_CheckAssignment_checkAssignmentExceptionId); lean_dec_ref(res); -l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2674____closed__1 = _init_l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2674____closed__1(); -lean_mark_persistent(l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2674____closed__1); -l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2674____closed__2 = _init_l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2674____closed__2(); -lean_mark_persistent(l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2674____closed__2); -res = l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2674_(lean_io_mk_world()); +l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2676____closed__1 = _init_l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2676____closed__1(); +lean_mark_persistent(l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2676____closed__1); +l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2676____closed__2 = _init_l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2676____closed__2(); +lean_mark_persistent(l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2676____closed__2); +res = l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2676_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l_Lean_Meta_CheckAssignment_outOfScopeExceptionId = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_Meta_CheckAssignment_outOfScopeExceptionId); @@ -65189,12 +65189,12 @@ l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unstuckMVar___closed__13 = _init_l_ lean_mark_persistent(l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unstuckMVar___closed__13); l_Lean_Meta_isExprDefEqAuxImpl___closed__1 = _init_l_Lean_Meta_isExprDefEqAuxImpl___closed__1(); lean_mark_persistent(l_Lean_Meta_isExprDefEqAuxImpl___closed__1); -l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9521____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9521____closed__1(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9521____closed__1); -res = l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9521_(lean_io_mk_world()); +l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9523____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9523____closed__1(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9523____closed__1); +res = l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9523_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9530_(lean_io_mk_world()); +res = l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9532_(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/Meta/Match/Basic.c b/stage0/stdlib/Lean/Meta/Match/Basic.c index 0f35576d3b..90c7a75524 100644 --- a/stage0/stdlib/Lean/Meta/Match/Basic.c +++ b/stage0/stdlib/Lean/Meta/Match/Basic.c @@ -33,7 +33,6 @@ lean_object* l_List_foldl___at_Lean_Meta_Match_Pattern_toMessageData___spec__1(l lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Lean_Meta_Match_Pattern_hasExprMVar___boxed(lean_object*); -extern lean_object* l_addParenHeuristic___closed__2; lean_object* l_Lean_throwError___at_Lean_Meta_whnf___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_term_x5b___x5d___closed__9; lean_object* lean_name_mk_string(lean_object*, lean_object*); @@ -266,6 +265,7 @@ lean_object* l_List_foldr___at_Lean_Meta_Match_Pattern_hasExprMVar___spec__1___b lean_object* l_Lean_Meta_Match_Alt_applyFVarSubst(lean_object*, lean_object*); lean_object* l_List_map___at_Lean_Meta_Match_Example_replaceFVarId___spec__2___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_instToFormatArray___rarg___closed__1; +extern lean_object* l_addParenHeuristic___closed__1; lean_object* l_Lean_LocalDecl_applyFVarSubst(lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Alt_toMessageData___closed__3; lean_object* l_Lean_Meta_Match_Pattern_toExpr(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -572,7 +572,7 @@ static lean_object* _init_l_Lean_Meta_Match_Pattern_toMessageData___closed__5() _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_addParenHeuristic___closed__2; +x_1 = l_addParenHeuristic___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } diff --git a/stage0/stdlib/Lean/Meta/MatchUtil.c b/stage0/stdlib/Lean/Meta/MatchUtil.c index b4782bd0ac..f7be61cdad 100644 --- a/stage0/stdlib/Lean/Meta/MatchUtil.c +++ b/stage0/stdlib/Lean/Meta/MatchUtil.c @@ -23,7 +23,6 @@ lean_object* l_Lean_Meta_matchNe_x3f_match__1___rarg(lean_object*, lean_object*, lean_object* l_Lean_Meta_matchHelper_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_matchNot_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_matchNot_x3f_match__2(lean_object*); -extern lean_object* l_myMacro____x40_Init_Core___hyg_1766____closed__4; lean_object* l_Lean_Meta_matchNot_x3f_match__1(lean_object*); lean_object* l_Lean_Meta_matchNot_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_testHelper(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -40,6 +39,7 @@ uint8_t l_Lean_Expr_hasLooseBVars(lean_object*); lean_object* l_Lean_Meta_matchNot_x3f_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_matchNe_x3f_match__1(lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_11514____closed__4; +extern lean_object* l_myMacro____x40_Init_Core___hyg_2016____closed__4; lean_object* l_Lean_Expr_isConstructorApp_x3f(lean_object*, lean_object*); lean_object* l_Lean_Meta_testHelper(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: @@ -1148,7 +1148,7 @@ lean_object* l_Lean_Meta_matchNe_x3f(lean_object* x_1, lean_object* x_2, lean_ob _start: { lean_object* x_7; lean_object* x_8; lean_object* x_72; lean_object* x_73; uint8_t x_74; -x_72 = l_myMacro____x40_Init_Core___hyg_1766____closed__4; +x_72 = l_myMacro____x40_Init_Core___hyg_2016____closed__4; x_73 = lean_unsigned_to_nat(3u); x_74 = l_Lean_Expr_isAppOfArity(x_1, x_72, x_73); if (x_74 == 0) @@ -1300,7 +1300,7 @@ if (x_10 == 0) lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; x_11 = lean_ctor_get(x_9, 0); x_12 = lean_ctor_get(x_9, 1); -x_13 = l_myMacro____x40_Init_Core___hyg_1766____closed__4; +x_13 = l_myMacro____x40_Init_Core___hyg_2016____closed__4; x_14 = lean_unsigned_to_nat(3u); x_15 = l_Lean_Expr_isAppOfArity(x_11, x_13, x_14); if (x_15 == 0) @@ -1422,7 +1422,7 @@ x_40 = lean_ctor_get(x_9, 1); lean_inc(x_40); lean_inc(x_39); lean_dec(x_9); -x_41 = l_myMacro____x40_Init_Core___hyg_1766____closed__4; +x_41 = l_myMacro____x40_Init_Core___hyg_2016____closed__4; x_42 = lean_unsigned_to_nat(3u); x_43 = l_Lean_Expr_isAppOfArity(x_39, x_41, x_42); if (x_43 == 0) diff --git a/stage0/stdlib/Lean/Meta/RecursorInfo.c b/stage0/stdlib/Lean/Meta/RecursorInfo.c index f554154f8b..fc18876acc 100644 --- a/stage0/stdlib/Lean/Meta/RecursorInfo.c +++ b/stage0/stdlib/Lean/Meta/RecursorInfo.c @@ -63,7 +63,6 @@ lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Meta_RecursorInfo_0__Lea extern lean_object* l_Lean_registerInternalExceptionId___closed__2; lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; lean_object* l_Lean_Meta_Attribute_Recursor_getMajorPos___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; lean_object* l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -234,6 +233,7 @@ extern lean_object* l_Lean_KernelException_toMessageData___closed__3; size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2259____closed__6; lean_object* l_Lean_ConstantInfo_type(lean_object*); +extern lean_object* l_term_x7b_x7d___closed__5; lean_object* l_Lean_Meta_Attribute_Recursor_getMajorPos___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMotiveLevel_match__1(lean_object*); lean_object* l_Lean_Meta_RecursorInfo_instToStringRecursorInfo___closed__12; @@ -1410,7 +1410,7 @@ x_82 = lean_string_append(x_80, x_81); x_83 = lean_string_append(x_82, x_40); lean_dec(x_40); x_84 = lean_string_append(x_83, x_7); -x_85 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_85 = l_term_x7b_x7d___closed__5; x_86 = lean_string_append(x_84, x_85); return x_86; } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Simp/SimpLemmas.c b/stage0/stdlib/Lean/Meta/Tactic/Simp/SimpLemmas.c index 0298f885d2..ae6f8e5ec9 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Simp/SimpLemmas.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Simp/SimpLemmas.c @@ -174,7 +174,6 @@ lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_2179____closed__5; lean_object* l_Std_PersistentHashMap_findAux___at_Lean_Meta_addSimpLemmaEntry___spec__3(lean_object*, size_t, lean_object*); lean_object* l_Lean_Meta_instToFormatSimpLemma___closed__1; -extern lean_object* l_myMacro____x40_Init_Core___hyg_1766____closed__4; lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_instToMessageDataSimpLemma(lean_object*); lean_object* l_List_mapM___at___private_Lean_Meta_AppBuilder_0__Lean_Meta_mkFun___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -338,6 +337,7 @@ lean_object* l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_isPerm_ma lean_object* l_Lean_Meta_SimpLemma_getName___closed__2; lean_object* l_Lean_indentExpr(lean_object*); lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_374____closed__2; +extern lean_object* l_myMacro____x40_Init_Core___hyg_2016____closed__4; uint8_t l_Lean_Meta_instBEqSimpLemma(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaCore___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* l_Lean_mkConst(lean_object*, lean_object*); @@ -6168,7 +6168,7 @@ x_16 = l_Lean_Expr_isAppOfArity(x_10, x_14, x_15); if (x_16 == 0) { lean_object* x_17; lean_object* x_18; uint8_t x_19; -x_17 = l_myMacro____x40_Init_Core___hyg_1766____closed__4; +x_17 = l_myMacro____x40_Init_Core___hyg_2016____closed__4; x_18 = lean_unsigned_to_nat(3u); x_19 = l_Lean_Expr_isAppOfArity(x_10, x_17, x_18); if (x_19 == 0) @@ -6827,7 +6827,7 @@ x_167 = l_Lean_Expr_isAppOfArity(x_161, x_165, x_166); if (x_167 == 0) { lean_object* x_168; lean_object* x_169; uint8_t x_170; -x_168 = l_myMacro____x40_Init_Core___hyg_1766____closed__4; +x_168 = l_myMacro____x40_Init_Core___hyg_2016____closed__4; x_169 = lean_unsigned_to_nat(3u); x_170 = l_Lean_Expr_isAppOfArity(x_161, x_168, x_169); if (x_170 == 0) diff --git a/stage0/stdlib/Lean/Parser/Term.c b/stage0/stdlib/Lean/Parser/Term.c index d8b4ec6c3c..b757d1345e 100644 --- a/stage0/stdlib/Lean/Parser/Term.c +++ b/stage0/stdlib/Lean/Parser/Term.c @@ -575,7 +575,6 @@ lean_object* l_Lean_Parser_Term_dbgTrace_parenthesizer___closed__2; lean_object* l_Lean_Parser_Term_explicitUniv_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_16268____closed__8; lean_object* l___regBuiltin_Lean_Parser_Term_trailing__parser_formatter___closed__1; -extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; lean_object* l_Lean_Parser_Term_explicitBinder___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_match_formatter___closed__12; lean_object* l_Lean_Parser_Term_binderTactic_parenthesizer___closed__2; @@ -2444,6 +2443,7 @@ lean_object* l_Lean_Parser_Tactic_quotSeq___elambda__1___closed__1; lean_object* l_Lean_Parser_Tactic_quot___elambda__1___closed__8; lean_object* l_Lean_Parser_Term_show___elambda__1___closed__11; lean_object* l_Lean_Parser_registerBuiltinParserAttribute(lean_object*, lean_object*, uint8_t, lean_object*); +extern lean_object* l_term_x7b_x7d___closed__3; lean_object* l_Lean_Parser_tacticParser_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_binderTactic___closed__1; extern lean_object* l_Lean_Parser_mkAntiquotSplice___closed__5; @@ -2753,6 +2753,7 @@ lean_object* l_Lean_Parser_Term_dynamicQuot_parenthesizer___closed__2; lean_object* l_Lean_Parser_Term_explicitUniv___elambda__1___closed__9; lean_object* l_Lean_Parser_Level_quot___closed__7; lean_object* l_Lean_Parser_Term_bracketedBinder_quot___elambda__1___closed__1; +extern lean_object* l_term_x7b_x7d___closed__5; lean_object* l___regBuiltinParser_Lean_Parser_Term_fun(lean_object*); lean_object* l_Lean_Parser_Term_argument_formatter___closed__2; lean_object* l_Lean_Parser_Term_haveAssign___elambda__1___closed__1; @@ -4615,7 +4616,6 @@ lean_object* l_Lean_Parser_checkColGtFn___boxed(lean_object*, lean_object*, lean lean_object* l_Lean_Parser_Term_namedArgument___closed__4; lean_object* l_Lean_Parser_Term_forInMacro_parenthesizer___closed__2; lean_object* l_Lean_Parser_Tactic_tacticSeq1Indented___elambda__1___closed__5; -extern lean_object* l_addParenHeuristic___closed__1; lean_object* l_Lean_Parser_Command_docComment___elambda__1___closed__7; lean_object* l_Lean_Parser_Term_borrowed___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_explicitBinder_parenthesizer___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -6002,7 +6002,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_tacticSeqBracketed___elambda__1__ _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_1 = l_term_x7b_x7d___closed__5; x_2 = l_String_trim(x_1); return x_2; } @@ -6057,7 +6057,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_tacticSeqBracketed___elambda__1__ _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_addParenHeuristic___closed__1; +x_1 = l_term_x7b_x7d___closed__3; x_2 = l_String_trim(x_1); return x_2; } @@ -7197,7 +7197,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_tacticSeqBracketed_formatter___cl _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_addParenHeuristic___closed__1; +x_1 = l_term_x7b_x7d___closed__3; x_2 = lean_alloc_closure((void*)(l_Lean_Parser_symbol_formatter), 6, 1); lean_closure_set(x_2, 0, x_1); return x_2; @@ -7279,7 +7279,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_tacticSeqBracketed_formatter___cl _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_1 = l_term_x7b_x7d___closed__5; x_2 = lean_alloc_closure((void*)(l_Lean_Parser_symbol_formatter), 6, 1); lean_closure_set(x_2, 0, x_1); return x_2; @@ -7560,7 +7560,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_tacticSeqBracketed_parenthesizer_ _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_addParenHeuristic___closed__1; +x_1 = l_term_x7b_x7d___closed__3; x_2 = lean_alloc_closure((void*)(l_Lean_Parser_symbol_parenthesizer), 6, 1); lean_closure_set(x_2, 0, x_1); return x_2; @@ -7644,7 +7644,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_tacticSeqBracketed_parenthesizer_ _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_1 = l_term_x7b_x7d___closed__5; x_2 = lean_alloc_closure((void*)(l_Lean_Parser_symbol_parenthesizer), 6, 1); lean_closure_set(x_2, 0, x_1); return x_2; diff --git a/stage0/stdlib/Lean/PrettyPrinter/Delaborator/Builtins.c b/stage0/stdlib/Lean/PrettyPrinter/Delaborator/Builtins.c index 81fb5488da..863d6358f9 100644 --- a/stage0/stdlib/Lean/PrettyPrinter/Delaborator/Builtins.c +++ b/stage0/stdlib/Lean/PrettyPrinter/Delaborator/Builtins.c @@ -57,7 +57,6 @@ lean_object* l_Lean_PrettyPrinter_Delaborator_delabProjectionApp_match__1___rarg lean_object* l_Lean_PrettyPrinter_Delaborator_delabLit_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_PrettyPrinter_Delaborator_delabMVar___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_12692____closed__4; -extern lean_object* l_addParenHeuristic___closed__2; lean_object* l_Lean_PrettyPrinter_Delaborator_delabLam_match__1___rarg(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyMUnsafe_any___at_Lean_PrettyPrinter_Delaborator_delabForall___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Delaborator_delabNil___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -122,7 +121,6 @@ lean_object* l_Lean_throwError___at_Lean_PrettyPrinter_Delaborator_delabAppMatch lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabAppMatch(lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_16268____closed__8; lean_object* l_Lean_PrettyPrinter_Delaborator_delabConst___closed__3; -extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabMData___closed__1; lean_object* l___private_Lean_PrettyPrinter_Delaborator_Builtins_0__Lean_PrettyPrinter_Delaborator_skippingBinders(lean_object*); lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabNamedPattern___closed__1; @@ -439,6 +437,7 @@ lean_object* l_Lean_getRevAliases(lean_object*, lean_object*); lean_object* l_Lean_ScopedEnvExtension_getState___at_Lean_PrettyPrinter_Delaborator_delabAppWithUnexpander_go___spec__1___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_PrettyPrinter_Delaborator_Builtins_0__Lean_PrettyPrinter_Delaborator_delabPatterns_usingNames(lean_object*); lean_object* l_Lean_PrettyPrinter_Delaborator_delabDoElems___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_term_x7b_x7d___closed__3; lean_object* l_Lean_PrettyPrinter_Delaborator_delabAppExplicit___closed__3; size_t lean_usize_modn(size_t, lean_object*); lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabNil___closed__2; @@ -496,6 +495,7 @@ lean_object* l_Lean_PrettyPrinter_Delaborator_delabProjectionApp_match__2(lean_o lean_object* l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isLambda(lean_object*); extern lean_object* l_Lean_NameGenerator_namePrefix___default___closed__2; +extern lean_object* l_term_x7b_x7d___closed__5; lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabFVar(lean_object*); lean_object* l_Lean_PrettyPrinter_Delaborator_withBindingBodyUnusedName___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_PrettyPrinter_Delaborator_Builtins_0__Lean_PrettyPrinter_Delaborator_skippingBinders_loop_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -3025,7 +3025,7 @@ x_59 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_59, 0, x_58); lean_ctor_set(x_59, 1, x_57); x_60 = lean_array_push(x_40, x_59); -x_61 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_61 = l_term_x7b_x7d___closed__5; x_62 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_62, 0, x_34); lean_ctor_set(x_62, 1, x_61); @@ -3081,7 +3081,7 @@ x_92 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_92, 0, x_91); lean_ctor_set(x_92, 1, x_90); x_93 = lean_array_push(x_73, x_92); -x_94 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_94 = l_term_x7b_x7d___closed__5; x_95 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_95, 0, x_66); lean_ctor_set(x_95, 1, x_94); @@ -14125,7 +14125,7 @@ lean_inc(x_56); x_57 = lean_ctor_get(x_55, 1); lean_inc(x_57); lean_dec(x_55); -x_58 = l_addParenHeuristic___closed__1; +x_58 = l_term_x7b_x7d___closed__3; lean_inc(x_56); x_59 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_59, 0, x_56); @@ -14141,7 +14141,7 @@ lean_ctor_set(x_64, 1, x_62); x_65 = lean_array_push(x_61, x_64); x_66 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; x_67 = lean_array_push(x_65, x_66); -x_68 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_68 = l_term_x7b_x7d___closed__5; x_69 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_69, 0, x_56); lean_ctor_set(x_69, 1, x_68); @@ -14167,7 +14167,7 @@ lean_inc(x_75); x_76 = lean_ctor_get(x_74, 1); lean_inc(x_76); lean_dec(x_74); -x_77 = l_addParenHeuristic___closed__1; +x_77 = l_term_x7b_x7d___closed__3; lean_inc(x_75); x_78 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_78, 0, x_75); @@ -14192,7 +14192,7 @@ x_89 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_89, 0, x_82); lean_ctor_set(x_89, 1, x_88); x_90 = lean_array_push(x_84, x_89); -x_91 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_91 = l_term_x7b_x7d___closed__5; x_92 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_92, 0, x_75); lean_ctor_set(x_92, 1, x_91); @@ -14543,7 +14543,7 @@ lean_inc(x_180); x_181 = lean_ctor_get(x_179, 1); lean_inc(x_181); lean_dec(x_179); -x_182 = l_addParenHeuristic___closed__1; +x_182 = l_term_x7b_x7d___closed__3; lean_inc(x_180); x_183 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_183, 0, x_180); @@ -14559,7 +14559,7 @@ lean_ctor_set(x_188, 1, x_186); x_189 = lean_array_push(x_185, x_188); x_190 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; x_191 = lean_array_push(x_189, x_190); -x_192 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_192 = l_term_x7b_x7d___closed__5; x_193 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_193, 0, x_180); lean_ctor_set(x_193, 1, x_192); @@ -14585,7 +14585,7 @@ lean_inc(x_199); x_200 = lean_ctor_get(x_198, 1); lean_inc(x_200); lean_dec(x_198); -x_201 = l_addParenHeuristic___closed__1; +x_201 = l_term_x7b_x7d___closed__3; lean_inc(x_199); x_202 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_202, 0, x_199); @@ -14610,7 +14610,7 @@ x_213 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_213, 0, x_206); lean_ctor_set(x_213, 1, x_212); x_214 = lean_array_push(x_208, x_213); -x_215 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_215 = l_term_x7b_x7d___closed__5; x_216 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_216, 0, x_199); lean_ctor_set(x_216, 1, x_215); @@ -15875,7 +15875,7 @@ lean_inc(x_133); x_134 = lean_ctor_get(x_132, 1); lean_inc(x_134); lean_dec(x_132); -x_135 = l_addParenHeuristic___closed__1; +x_135 = l_term_x7b_x7d___closed__3; lean_inc(x_133); x_136 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_136, 0, x_133); @@ -15899,7 +15899,7 @@ x_147 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_147, 0, x_140); lean_ctor_set(x_147, 1, x_146); x_148 = lean_array_push(x_142, x_147); -x_149 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_149 = l_term_x7b_x7d___closed__5; x_150 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_150, 0, x_133); lean_ctor_set(x_150, 1, x_149); @@ -20261,7 +20261,7 @@ if (x_12 == 0) { 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; size_t x_21; size_t 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; 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; x_13 = lean_ctor_get(x_11, 0); -x_14 = l_addParenHeuristic___closed__1; +x_14 = l_term_x7b_x7d___closed__3; lean_inc(x_13); x_15 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_15, 0, x_13); @@ -20307,7 +20307,7 @@ x_36 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_36, 0, x_35); lean_ctor_set(x_36, 1, x_34); x_37 = lean_array_push(x_33, x_36); -x_38 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_38 = l_term_x7b_x7d___closed__5; lean_inc(x_13); x_39 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_39, 0, x_13); @@ -20367,7 +20367,7 @@ x_59 = lean_ctor_get(x_11, 1); lean_inc(x_59); lean_inc(x_58); lean_dec(x_11); -x_60 = l_addParenHeuristic___closed__1; +x_60 = l_term_x7b_x7d___closed__3; lean_inc(x_58); x_61 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_61, 0, x_58); @@ -20413,7 +20413,7 @@ x_82 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_82, 0, x_81); lean_ctor_set(x_82, 1, x_80); x_83 = lean_array_push(x_79, x_82); -x_84 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_84 = l_term_x7b_x7d___closed__5; lean_inc(x_58); x_85 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_85, 0, x_58); @@ -20481,7 +20481,7 @@ if (x_12 == 0) { 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; size_t x_21; size_t 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; 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; x_13 = lean_ctor_get(x_11, 0); -x_14 = l_addParenHeuristic___closed__1; +x_14 = l_term_x7b_x7d___closed__3; lean_inc(x_13); x_15 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_15, 0, x_13); @@ -20527,7 +20527,7 @@ x_36 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_36, 0, x_35); lean_ctor_set(x_36, 1, x_34); x_37 = lean_array_push(x_33, x_36); -x_38 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_38 = l_term_x7b_x7d___closed__5; lean_inc(x_13); x_39 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_39, 0, x_13); @@ -20587,7 +20587,7 @@ x_59 = lean_ctor_get(x_11, 1); lean_inc(x_59); lean_inc(x_58); lean_dec(x_11); -x_60 = l_addParenHeuristic___closed__1; +x_60 = l_term_x7b_x7d___closed__3; lean_inc(x_58); x_61 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_61, 0, x_58); @@ -20633,7 +20633,7 @@ x_82 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_82, 0, x_81); lean_ctor_set(x_82, 1, x_80); x_83 = lean_array_push(x_79, x_82); -x_84 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_84 = l_term_x7b_x7d___closed__5; lean_inc(x_58); x_85 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_85, 0, x_58); @@ -23039,7 +23039,7 @@ if (x_20 == 0) { 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; lean_object* x_33; lean_object* x_34; x_21 = lean_ctor_get(x_19, 0); -x_22 = l_addParenHeuristic___closed__2; +x_22 = l_addParenHeuristic___closed__1; lean_inc(x_21); x_23 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_23, 0, x_21); @@ -23073,7 +23073,7 @@ x_36 = lean_ctor_get(x_19, 1); lean_inc(x_36); lean_inc(x_35); lean_dec(x_19); -x_37 = l_addParenHeuristic___closed__2; +x_37 = l_addParenHeuristic___closed__1; lean_inc(x_35); x_38 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_38, 0, x_35); diff --git a/stage0/stdlib/Lean/Util/Recognizers.c b/stage0/stdlib/Lean/Util/Recognizers.c index 84b48a8e43..c841729adf 100644 --- a/stage0/stdlib/Lean/Util/Recognizers.c +++ b/stage0/stdlib/Lean/Util/Recognizers.c @@ -50,7 +50,6 @@ lean_object* l_Lean_Expr_natAdd_x3f___boxed(lean_object*); lean_object* l_Lean_Expr_isConstructorApp___boxed(lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_12692____closed__7; lean_object* l_Lean_Expr_isConstructorApp_x3f_match__2___rarg(lean_object*, lean_object*, lean_object*); -extern lean_object* l_myMacro____x40_Init_Core___hyg_1766____closed__4; lean_object* l_Lean_Expr_heq_x3f(lean_object*); lean_object* l_Lean_Expr_arrayLit_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_app4_x3f___boxed(lean_object*, lean_object*); @@ -100,6 +99,7 @@ lean_object* l_Lean_Expr_const_x3f_match__1___rarg(lean_object*, lean_object*, l lean_object* l_Lean_Expr_not_x3f___boxed(lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_11514____closed__4; lean_object* l_Lean_Expr_listLit_x3f_loop(lean_object*, lean_object*); +extern lean_object* l_myMacro____x40_Init_Core___hyg_2016____closed__4; lean_object* l_Lean_Expr_arrow_x3f_match__1(lean_object*); lean_object* l_Lean_Expr_isConstructorApp_x3f(lean_object*, lean_object*); lean_object* l_Lean_Expr_isConstructorApp_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -383,7 +383,7 @@ lean_object* l_Lean_Expr_ne_x3f(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; uint8_t x_4; -x_2 = l_myMacro____x40_Init_Core___hyg_1766____closed__4; +x_2 = l_myMacro____x40_Init_Core___hyg_2016____closed__4; x_3 = lean_unsigned_to_nat(3u); x_4 = l_Lean_Expr_isAppOfArity(x_1, x_2, x_3); if (x_4 == 0) diff --git a/stage0/stdlib/Std/Data/PersistentArray.c b/stage0/stdlib/Std/Data/PersistentArray.c index 81a33e2082..b652462815 100644 --- a/stage0/stdlib/Std/Data/PersistentArray.c +++ b/stage0/stdlib/Std/Data/PersistentArray.c @@ -80,7 +80,6 @@ lean_object* l_Std_PersistentArray_getOp___rarg(lean_object*, lean_object*, lean lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlFromMAux___at_Std_PersistentArray_append___spec__2___rarg(lean_object*, size_t, size_t, lean_object*); lean_object* l_Array_findSomeRevM_x3f_find___at_Std_PersistentArray_findSomeRev_x3f___spec__4(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_forMAux(lean_object*, lean_object*); -extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; lean_object* l_Array_foldlMUnsafe_fold___at_Std_PersistentArray_toArray___spec__9___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_mapMAux___rarg___closed__2; lean_object* l_Array_foldlMUnsafe_fold___at_Std_PersistentArray_foldl___spec__11___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*); @@ -349,6 +348,7 @@ lean_object* l_Array_foldlMUnsafe_fold___at_Array_toPersistentArray___spec__1(le lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlMAux___at_Std_PersistentArray_filter___spec__10___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Std_PersistentArray_toList___spec__11___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_instInhabitedPersistentArray(lean_object*); +extern lean_object* l_term_x7b_x7d___closed__5; lean_object* l_Std_PersistentArray_any___rarg___boxed(lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Std_PersistentArray_toArray___spec__11(lean_object*); lean_object* l_Std_mkPArray___rarg(lean_object*, lean_object*); @@ -12222,7 +12222,7 @@ lean_dec(x_1); x_14 = l_Nat_repr(x_13); x_15 = lean_string_append(x_12, x_14); lean_dec(x_14); -x_16 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_16 = l_term_x7b_x7d___closed__5; x_17 = lean_string_append(x_15, x_16); return x_17; } diff --git a/stage0/stdlib/Std/Data/PersistentHashMap.c b/stage0/stdlib/Std/Data/PersistentHashMap.c index f1e6a862e6..dacab961ce 100644 --- a/stage0/stdlib/Std/Data/PersistentHashMap.c +++ b/stage0/stdlib/Std/Data/PersistentHashMap.c @@ -37,7 +37,6 @@ lean_object* l_Std_PersistentHashMap_stats(lean_object*, lean_object*, lean_obje lean_object* l_Std_PersistentHashMap_foldlMAux_traverse___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_find_x3f_match__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t l_Std_PersistentHashMap_mod2Shift(size_t, size_t); -extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; lean_object* l_Std_PersistentHashMap_findEntryAux___rarg(lean_object*, lean_object*, size_t, lean_object*); lean_object* l_Std_PersistentHashMap_find_x3f_match__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_erase(lean_object*, lean_object*); @@ -150,6 +149,7 @@ lean_object* l_Std_PersistentHashMap_findD___rarg___boxed(lean_object*, lean_obj lean_object* l_Std_PersistentHashMap_findD___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_findAtAux___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_find_x3f(lean_object*, lean_object*); +extern lean_object* l_term_x7b_x7d___closed__5; lean_object* l_Std_PersistentHashMap_insertAux_match__2(lean_object*, lean_object*, lean_object*); size_t l_Std_PersistentHashMap_div2Shift(size_t, size_t); lean_object* l_Std_PersistentHashMap_mod2Shift___boxed(lean_object*, lean_object*); @@ -4541,7 +4541,7 @@ lean_dec(x_1); x_19 = l_Nat_repr(x_18); x_20 = lean_string_append(x_17, x_19); lean_dec(x_19); -x_21 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22; +x_21 = l_term_x7b_x7d___closed__5; x_22 = lean_string_append(x_20, x_21); return x_22; }