diff --git a/stage0/src/Init/Conv.lean b/stage0/src/Init/Conv.lean index a25df03ae8..2ad1f1c1d4 100644 --- a/stage0/src/Init/Conv.lean +++ b/stage0/src/Init/Conv.lean @@ -72,7 +72,7 @@ syntax (name := arg) "arg " "@"? num : conv /-- `ext x` traverses into a binder (a `fun x => e` or `∀ x, e` expression) to target `e`, introducing name `x` in the process. -/ -syntax (name := ext) "ext " (colGt ident)* : conv +syntax (name := ext) "ext" (colGt ident)* : conv /-- `change t'` replaces the target `t` with `t'`, assuming `t` and `t'` are definitionally equal. -/ @@ -96,11 +96,11 @@ syntax (name := unfold) "unfold " (colGt ident)+ : conv syntax (name := pattern) "pattern " term : conv /-- `rw [thm]` rewrites the target using `thm`. See the `rw` tactic for more information. -/ -syntax (name := rewrite) "rewrite " (config)? rwRuleSeq : conv +syntax (name := rewrite) "rewrite" (config)? rwRuleSeq : conv /-- `simp [thm]` performs simplification using `thm` and marked `@[simp]` lemmas. See the `simp` tactic for more information. -/ -syntax (name := simp) "simp " (config)? (discharger)? (&"only ")? ("[" (simpStar <|> simpErase <|> simpLemma),* "]")? : conv +syntax (name := simp) "simp" (config)? (discharger)? (&" only")? (" [" (simpStar <|> simpErase <|> simpLemma),* "]")? : conv /-- `simp_match` simplifies match expressions. For example, ``` @@ -128,19 +128,19 @@ syntax (name := paren) "(" convSeq ")" : conv /-- `conv => cs` runs `cs` in sequence on the target `t`, resulting in `t'`, which becomes the new target subgoal. -/ -syntax (name := convConvSeq) "conv " " => " convSeq : conv +syntax (name := convConvSeq) "conv" " => " convSeq : conv /-- `· conv` focuses on the main conv goal and tries to solve it using `s` -/ macro dot:("·" <|> ".") s:convSeq : conv => `({%$dot ($s) }) /-- `rw [rules]` applies the given list of rewrite rules to the target. See the `rw` tactic for more information. -/ -macro "rw " c:(config)? s:rwRuleSeq : conv => `(rewrite $[$c]? $s) +macro "rw" c:(config)? s:rwRuleSeq : conv => `(rewrite $[$c]? $s) /-- `erw [rules]` is a shorthand for `rw (config := { transparency := .default }) [rules]`. This does rewriting up to unfolding of regular definitions (by comparison to regular `rw` which only unfolds `@[reducible]` definitions). -/ -macro "erw " s:rwRuleSeq : conv => `(rw (config := { transparency := .default }) $s) +macro "erw" s:rwRuleSeq : conv => `(rw (config := { transparency := .default }) $s) /-- `args` traverses into all arguments. Synonym for `congr`. -/ macro "args" : conv => `(congr) @@ -149,7 +149,7 @@ macro "left" : conv => `(lhs) /-- `right` traverses into the right argument. Synonym for `rhs`. -/ macro "right" : conv => `(rhs) /-- `intro` traverses into binders. Synonym for `ext`. -/ -macro "intro " xs:(colGt ident)* : conv => `(conv| ext $xs*) +macro "intro" xs:(colGt ident)* : conv => `(conv| ext $xs*) syntax enterArg := ident <|> ("@"? num) @@ -160,7 +160,7 @@ It is a shorthand for other conv tactics as follows: * `enter [x]` (where `x` is an identifier) is equivalent to `ext x`. For example, given the target `f (g a (fun x => x b))`, `enter [1, 2, x, 1]` will traverse to the subterm `b`. -/ -syntax "enter " "[" (colGt enterArg),+ "]": conv +syntax "enter" " [" (colGt enterArg),+ "]": conv macro_rules | `(conv| enter [$i:num]) => `(conv| arg $i) | `(conv| enter [@$i]) => `(conv| arg @$i) @@ -187,7 +187,7 @@ macro "apply " e:term : conv => `(tactic => apply $e) syntax (name := first) "first " withPosition((colGe "|" convSeq)+) : conv /-- `repeat convs` runs the sequence `convs` repeatedly until it fails to apply. -/ -syntax "repeat " convSeq : conv +syntax "repeat" convSeq : conv macro_rules | `(conv| repeat $seq) => `(conv| first | ($seq); repeat $seq | rfl) diff --git a/stage0/src/Init/Meta.lean b/stage0/src/Init/Meta.lean index c004759b17..2b7ebc3b54 100644 --- a/stage0/src/Init/Meta.lean +++ b/stage0/src/Init/Meta.lean @@ -1278,11 +1278,11 @@ syntax dsimpKind := atomic("(" &"dsimp") " := " &"true" ")" macro (name := declareSimpLikeTactic) doc?:(docComment)? "declare_simp_like_tactic" opt:((simpAllKind <|> dsimpKind)?) tacName:ident tacToken:str updateCfg:term : command => do let (kind, tkn, stx) ← if opt.raw.isNone then - pure (← `(``simp), ← `("simp "), ← `($[$doc?:docComment]? syntax (name := $tacName) $tacToken:str (config)? (discharger)? (&"only ")? ("[" (simpStar <|> simpErase <|> simpLemma),* "]")? (location)? : tactic)) + pure (← `(``simp), ← `("simp"), ← `($[$doc?:docComment]? syntax (name := $tacName) $tacToken:str (config)? (discharger)? (&" only")? (" [" (simpStar <|> simpErase <|> simpLemma),* "]")? (location)? : tactic)) else if opt.raw[0].getKind == ``simpAllKind then - pure (← `(``simpAll), ← `("simp_all "), ← `($[$doc?:docComment]? syntax (name := $tacName) $tacToken:str (config)? (discharger)? (&"only ")? ("[" (simpErase <|> simpLemma),* "]")? : tactic)) + pure (← `(``simpAll), ← `("simp_all"), ← `($[$doc?:docComment]? syntax (name := $tacName) $tacToken:str (config)? (discharger)? (&" only")? (" [" (simpErase <|> simpLemma),* "]")? : tactic)) else - pure (← `(``dsimp), ← `("dsimp "), ← `($[$doc?:docComment]? syntax (name := $tacName) $tacToken:str (config)? (discharger)? (&"only ")? ("[" (simpErase <|> simpLemma),* "]")? (location)? : tactic)) + pure (← `(``dsimp), ← `("dsimp"), ← `($[$doc?:docComment]? syntax (name := $tacName) $tacToken:str (config)? (discharger)? (&" only")? (" [" (simpErase <|> simpLemma),* "]")? (location)? : tactic)) `($stx:command @[macro $tacName] def expandSimp : Macro := fun s => do let c ← match s[1][0] with diff --git a/stage0/src/Init/Tactics.lean b/stage0/src/Init/Tactics.lean index 3a0ac67832..9712c7d9a8 100644 --- a/stage0/src/Init/Tactics.lean +++ b/stage0/src/Init/Tactics.lean @@ -303,7 +303,7 @@ It synthesizes a value of any target type by typeclass inference. macro "infer_instance" : tactic => `(exact inferInstance) /-- Optional configuration option for tactics -/ -syntax config := atomic("(" &"config") " := " term ")" +syntax config := atomic(" (" &"config") " := " term ")" /-- The `*` location refers to all hypotheses and the goal. -/ syntax locationWildcard := "*" @@ -347,7 +347,7 @@ If `thm` is a theorem `a = b`, then as a rewrite rule, -/ syntax rwRule := ("← " <|> "<- ")? term /-- A `rwRuleSeq` is a list of `rwRule` in brackets. -/ -syntax rwRuleSeq := "[" rwRule,*,? "]" +syntax rwRuleSeq := " [" rwRule,*,? "]" /-- `rewrite [e]` applies identity `e` as a rewrite rule to the target of the main goal. @@ -359,12 +359,12 @@ This provides a convenient way to unfold `e`. list of hypotheses in the local context. In the latter case, a turnstile `⊢` or `|-` can also be used, to signify the target of the goal. -/ -syntax (name := rewriteSeq) "rewrite " (config)? rwRuleSeq (location)? : tactic +syntax (name := rewriteSeq) "rewrite" (config)? rwRuleSeq (location)? : tactic /-- `rw` is like `rewrite`, but also tries to close the goal by "cheap" (reducible) `rfl` afterwards. -/ -macro (name := rwSeq) "rw " c:(config)? s:rwRuleSeq l:(location)? : tactic => +macro (name := rwSeq) "rw" c:(config)? s:rwRuleSeq l:(location)? : tactic => match s with | `(rwRuleSeq| [$rs,*]%$rbrak) => -- We show the `rfl` state on `]` @@ -396,7 +396,7 @@ syntax (name := injections) "injections" (colGt (ident <|> hole))* : tactic The discharger clause of `simp` and related tactics. This is a tactic used to discharge the side conditions on conditional rewrite rules. -/ -syntax discharger := atomic("(" (&"discharger" <|> &"disch")) " := " tacticSeq ")" +syntax discharger := atomic(" (" (&"discharger" <|> &"disch")) " := " tacticSeq ")" /-- Use this rewrite rule before entering the subterms -/ syntax simpPre := "↓" @@ -433,23 +433,23 @@ non-dependent hypotheses. It has many variants: - `simp [*] at *` simplifies target and all (propositional) hypotheses using the other hypotheses. -/ -syntax (name := simp) "simp " (config)? (discharger)? (&"only ")? - ("[" (simpStar <|> simpErase <|> simpLemma),* "]")? (location)? : tactic +syntax (name := simp) "simp" (config)? (discharger)? (&" only")? + (" [" (simpStar <|> simpErase <|> simpLemma),* "]")? (location)? : tactic /-- `simp_all` is a stronger version of `simp [*] at *` where the hypotheses and target are simplified multiple times until no simplication is applicable. Only non-dependent propositional hypotheses are considered. -/ -syntax (name := simpAll) "simp_all " (config)? (discharger)? (&"only ")? - ("[" (simpErase <|> simpLemma),* "]")? : tactic +syntax (name := simpAll) "simp_all" (config)? (discharger)? (&" only")? + (" [" (simpErase <|> simpLemma),* "]")? : tactic /-- The `dsimp` tactic is the definitional simplifier. It is similar to `simp` but only applies theorems that hold by reflexivity. Thus, the result is guaranteed to be definitionally equal to the input. -/ -syntax (name := dsimp) "dsimp " (config)? (discharger)? (&"only ")? - ("[" (simpErase <|> simpLemma),* "]")? (location)? : tactic +syntax (name := dsimp) "dsimp" (config)? (discharger)? (&" only")? + (" [" (simpErase <|> simpLemma),* "]")? (location)? : tactic /-- `delta id1 id2 ...` delta-expands the definitions `id1`, `id2`, .... diff --git a/stage0/src/Lean/Elab/PreDefinition/Structural/Eqns.lean b/stage0/src/Lean/Elab/PreDefinition/Structural/Eqns.lean index 707814cbe8..6eb2de8a50 100644 --- a/stage0/src/Lean/Elab/PreDefinition/Structural/Eqns.lean +++ b/stage0/src/Lean/Elab/PreDefinition/Structural/Eqns.lean @@ -42,7 +42,7 @@ where go mvarId else if let some mvarId ← whnfReducibleLHS? mvarId then go mvarId - else match (← simpTargetStar mvarId {}) with + else match (← simpTargetStar mvarId {}).1 with | TacticResultCNM.closed => return () | TacticResultCNM.modified mvarId => go mvarId | TacticResultCNM.noChange => diff --git a/stage0/src/Lean/Elab/PreDefinition/WF/Eqns.lean b/stage0/src/Lean/Elab/PreDefinition/WF/Eqns.lean index c29d49fbf7..df87a094b3 100644 --- a/stage0/src/Lean/Elab/PreDefinition/WF/Eqns.lean +++ b/stage0/src/Lean/Elab/PreDefinition/WF/Eqns.lean @@ -105,7 +105,7 @@ where def simpMatchWF? (info : EqnInfo) (us : List Level) (fixedPrefix : Array Expr) (mvarId : MVarId) : MetaM (Option MVarId) := mvarId.withContext do let target ← instantiateMVars (← mvarId.getType) - let targetNew ← Simp.main target (← Split.getSimpMatchContext) (methods := { pre }) + let (targetNew, _) ← Simp.main target (← Split.getSimpMatchContext) (methods := { pre }) let mvarIdNew ← applySimpResultToTarget mvarId target targetNew if mvarId != mvarIdNew then return some mvarIdNew else return none where @@ -169,7 +169,7 @@ private partial def mkProof (declName : Name) (info : EqnInfo) (type : Expr) : M go mvarId else if let some mvarId ← whnfReducibleLHS? mvarId then go mvarId - else match (← simpTargetStar mvarId { config.dsimp := false }) with + else match (← simpTargetStar mvarId { config.dsimp := false }).1 with | TacticResultCNM.closed => return () | TacticResultCNM.modified mvarId => go mvarId | TacticResultCNM.noChange => diff --git a/stage0/src/Lean/Elab/Tactic/Conv/Pattern.lean b/stage0/src/Lean/Elab/Tactic/Conv/Pattern.lean index 54c909de6d..e32d8cfc3f 100644 --- a/stage0/src/Lean/Elab/Tactic/Conv/Pattern.lean +++ b/stage0/src/Lean/Elab/Tactic/Conv/Pattern.lean @@ -48,7 +48,7 @@ private def pre (pattern : AbstractMVarsResult) (found? : IO.Ref (Option Expr)) private def findPattern? (pattern : AbstractMVarsResult) (e : Expr) : MetaM (Option (MVarId × Simp.Result)) := do let found? ← IO.mkRef none - let result ← Simp.main e (← getContext) (methods := { pre := pre pattern found? }) + let (result, _) ← Simp.main e (← getContext) (methods := { pre := pre pattern found? }) if let some newGoal ← found?.get then return some (newGoal.mvarId!, result) else diff --git a/stage0/src/Lean/Elab/Tactic/Conv/Simp.lean b/stage0/src/Lean/Elab/Tactic/Conv/Simp.lean index a3fdedbb96..34f479de08 100644 --- a/stage0/src/Lean/Elab/Tactic/Conv/Simp.lean +++ b/stage0/src/Lean/Elab/Tactic/Conv/Simp.lean @@ -19,7 +19,7 @@ def applySimpResult (result : Simp.Result) : TacticM Unit := do @[builtinTactic Lean.Parser.Tactic.Conv.simp] def evalSimp : Tactic := fun stx => withMainContext do let { ctx, dischargeWrapper, .. } ← mkSimpContext stx (eraseLocal := false) let lhs ← getLhs - let result ← dischargeWrapper.with fun d? => simp lhs ctx (discharge? := d?) + let (result, _) ← dischargeWrapper.with fun d? => simp lhs ctx (discharge? := d?) applySimpResult result @[builtinTactic Lean.Parser.Tactic.Conv.simpMatch] def evalSimpMatch : Tactic := fun _ => withMainContext do diff --git a/stage0/src/Lean/Elab/Tactic/Simp.lean b/stage0/src/Lean/Elab/Tactic/Simp.lean index fcbb89b752..ed5b9fd225 100644 --- a/stage0/src/Lean/Elab/Tactic/Simp.lean +++ b/stage0/src/Lean/Elab/Tactic/Simp.lean @@ -87,7 +87,7 @@ def elabSimpConfig (optConfig : Syntax) (kind : SimpKind) : TermElabM Meta.Simp. | .simpAll => return (← elabSimpConfigCtxCore optConfig).toConfig | .dsimp => return { (← elabDSimpConfigCore optConfig) with } -private def addDeclToUnfoldOrTheorem (thms : Meta.SimpTheorems) (e : Expr) (post : Bool) (inv : Bool) (kind : SimpKind) : MetaM Meta.SimpTheorems := do +private def addDeclToUnfoldOrTheorem (thms : Meta.SimpTheorems) (name : Name) (e : Expr) (post : Bool) (inv : Bool) (kind : SimpKind) : MetaM Meta.SimpTheorems := do if e.isConst then let declName := e.constName! let info ← getConstInfo declName @@ -101,9 +101,9 @@ private def addDeclToUnfoldOrTheorem (thms : Meta.SimpTheorems) (e : Expr) (post else thms.addDeclToUnfold declName else - thms.add #[] e (post := post) (inv := inv) + thms.add name #[] e (post := post) (inv := inv) -private def addSimpTheorem (thms : Meta.SimpTheorems) (stx : Syntax) (post : Bool) (inv : Bool) : TermElabM Meta.SimpTheorems := do +private def addSimpTheorem (thms : Meta.SimpTheorems) (name : Name) (stx : Syntax) (post : Bool) (inv : Bool) : TermElabM Meta.SimpTheorems := do let (levelParams, proof) ← Term.withoutModifyingElabMetaStateWithInfo <| withRef stx <| Term.withoutErrToSorry do let e ← Term.elabTerm stx none Term.synthesizeSyntheticMVars (mayPostpone := false) (ignoreStuckTC := true) @@ -114,7 +114,7 @@ private def addSimpTheorem (thms : Meta.SimpTheorems) (stx : Syntax) (post : Boo return (r.paramNames, r.expr) else return (#[], e) - thms.add levelParams proof (post := post) (inv := inv) + thms.add name levelParams proof (post := post) (inv := inv) structure ElabSimpArgsResult where ctx : Simp.Context @@ -143,6 +143,7 @@ def elabSimpArgs (stx : Syntax) (ctx : Simp.Context) (eraseLocal : Bool) (kind : -/ withMainContext do let mut thmsArray := ctx.simpTheorems + let mut namedStx := ctx.namedStx let mut thms := thmsArray[0]! let mut starArg := false for arg in stx[1].getSepArgs do @@ -166,14 +167,21 @@ def elabSimpArgs (stx : Syntax) (ctx : Simp.Context) (eraseLocal : Bool) (kind : let term := arg[2] match (← resolveSimpIdTheorem? term) with - | .expr e => thms ← addDeclToUnfoldOrTheorem thms e post inv kind - | .ext ext => thmsArray := thmsArray.push (← ext.getTheorems) - | .none => thms ← addSimpTheorem thms term post inv + | .expr e => + let name ← mkFreshId + namedStx := namedStx.insert name arg + thms ← addDeclToUnfoldOrTheorem thms name e post inv kind + | .ext ext => + thmsArray := thmsArray.push (← ext.getTheorems) + | .none => + let name ← mkFreshId + namedStx := namedStx.insert name arg + thms ← addSimpTheorem thms name term post inv else if arg.getKind == ``Lean.Parser.Tactic.simpStar then starArg := true else throwUnsupportedSyntax - return { ctx := { ctx with simpTheorems := thmsArray.set! 0 thms }, starArg } + return { ctx := { ctx with namedStx, simpTheorems := thmsArray.set! 0 thms }, starArg } where resolveSimpIdTheorem? (simpArgTerm : Term) : TacticM ResolveSimpIdResult := do let resolveExt (n : Name) : TacticM ResolveSimpIdResult := do @@ -236,12 +244,52 @@ def mkSimpContext (stx : Syntax) (eraseLocal : Bool) (kind := SimpKind.simp) (ig unless simpTheorems.isErased localDecl.userName do let fvarId := localDecl.fvarId let proof := localDecl.toExpr - let id ← mkFreshUserName `h - fvarIdToLemmaId := fvarIdToLemmaId.insert fvarId id - simpTheorems ← simpTheorems.addTheorem proof (name? := id) + fvarIdToLemmaId := fvarIdToLemmaId.insert fvarId fvarId.name + simpTheorems ← simpTheorems.addTheorem fvarId.name proof let ctx := { ctx with simpTheorems } return { ctx, fvarIdToLemmaId, dischargeWrapper } +register_builtin_option tactic.simp.trace : Bool := { + defValue := false + descr := "When tracing is enabled, calls to `simp` or `dsimp` will print an equivalent `simp only` call." +} + +def traceSimpCall (stx : Syntax) (ctx : Simp.Context) (usedSimps : NameSet) : MetaM Unit := do + let mut stx := stx + if stx[3].isNone then + stx := stx.setArg 3 (mkNullNode #[mkAtom "only"]) + let mut args := #[] + let mut localsOrStar := some #[] + let lc ← getLCtx + let env ← getEnv + for thm in usedSimps do + -- simp theorems provided in the local invocation + if let some thmStx := ctx.namedStx.find? thm then + args := args.push thmStx + -- local hypotheses in the context + else if let some ldecl := lc.find? ⟨thm⟩ then + localsOrStar := localsOrStar.bind fun locals => + if !ldecl.userName.isInaccessibleUserName && + (lc.findFromUserName? ldecl.userName).get!.fvarId == ldecl.fvarId then + some (locals.push ldecl.userName) + else + none + -- global definitions in the environment + else if env.contains thm then + if thm != ``eq_self then -- this one is implicitly available + args := args.push (← `(Parser.Tactic.simpLemma| $(mkIdent (← unresolveNameGlobal thm)):ident)) + -- Ignore everything else. + -- Note: this is possible for `simp (config := {contextual := true})` when + -- rewriting with a variable that was introduced in a scope. + else pure () + if let some locals := localsOrStar then + args := args ++ (← locals.mapM fun id => `(Parser.Tactic.simpLemma| $(mkIdent id):ident)) + else + args := args.push (← `(Parser.Tactic.simpStar| *)) + let argsStx := if args.isEmpty then #[] else #[mkAtom "[", (mkAtom ",").mkSep args, mkAtom "]"] + stx := stx.setArg 4 (mkNullNode argsStx) + logInfoAt stx[0] m!"Try this: {stx}" + /-- `simpLocation ctx discharge? varIdToLemmaId loc` runs the simplifier at locations specified by `loc`, @@ -258,7 +306,7 @@ For many tactics other than the simplifier, one should use the `withLocation` tactic combinator when working with a `location`. -/ -def simpLocation (ctx : Simp.Context) (discharge? : Option Simp.Discharge := none) (fvarIdToLemmaId : FVarIdToLemmaId := {}) (loc : Location) : TacticM Unit := do +def simpLocation (ctx : Simp.Context) (discharge? : Option Simp.Discharge := none) (fvarIdToLemmaId : FVarIdToLemmaId := {}) (loc : Location) : TacticM NameSet := do match loc with | Location.targets hyps simplifyTarget => withMainContext do @@ -268,26 +316,32 @@ def simpLocation (ctx : Simp.Context) (discharge? : Option Simp.Discharge := non withMainContext do go (← (← getMainGoal).getNondepPropHyps) (simplifyTarget := true) fvarIdToLemmaId where - go (fvarIdsToSimp : Array FVarId) (simplifyTarget : Bool) (fvarIdToLemmaId : Lean.Meta.FVarIdToLemmaId) : TacticM Unit := do + go (fvarIdsToSimp : Array FVarId) (simplifyTarget : Bool) (fvarIdToLemmaId : Lean.Meta.FVarIdToLemmaId) : TacticM NameSet := do let mvarId ← getMainGoal - let result? ← simpGoal mvarId ctx (simplifyTarget := simplifyTarget) (discharge? := discharge?) (fvarIdsToSimp := fvarIdsToSimp) (fvarIdToLemmaId := fvarIdToLemmaId) + let (result?, usedSimps) ← simpGoal mvarId ctx (simplifyTarget := simplifyTarget) (discharge? := discharge?) (fvarIdsToSimp := fvarIdsToSimp) (fvarIdToLemmaId := fvarIdToLemmaId) match result? with | none => replaceMainGoal [] | some (_, mvarId) => replaceMainGoal [mvarId] + return usedSimps /- "simp " (config)? (discharger)? ("only ")? ("[" simpLemma,* "]")? (location)? -/ @[builtinTactic Lean.Parser.Tactic.simp] def evalSimp : Tactic := fun stx => do let { ctx, fvarIdToLemmaId, dischargeWrapper } ← withMainContext <| mkSimpContext stx (eraseLocal := false) - dischargeWrapper.with fun discharge? => + let usedSimps ← dischargeWrapper.with fun discharge? => simpLocation ctx discharge? fvarIdToLemmaId (expandOptLocation stx[5]) + if tactic.simp.trace.get (← getOptions) then + traceSimpCall stx ctx usedSimps @[builtinTactic Lean.Parser.Tactic.simpAll] def evalSimpAll : Tactic := fun stx => do let { ctx, .. } ← mkSimpContext stx (eraseLocal := true) (kind := .simpAll) (ignoreStarArg := true) - match (← simpAll (← getMainGoal) ctx) with + let (result?, usedSimps) ← simpAll (← getMainGoal) ctx + match result? with | none => replaceMainGoal [] | some mvarId => replaceMainGoal [mvarId] + if tactic.simp.trace.get (← getOptions) then + traceSimpCall stx ctx usedSimps def dsimpLocation (ctx : Simp.Context) (loc : Location) : TacticM Unit := do match loc with @@ -301,10 +355,12 @@ def dsimpLocation (ctx : Simp.Context) (loc : Location) : TacticM Unit := do where go (fvarIdsToSimp : Array FVarId) (simplifyTarget : Bool) : TacticM Unit := do let mvarId ← getMainGoal - let result? ← dsimpGoal mvarId ctx (simplifyTarget := simplifyTarget) (fvarIdsToSimp := fvarIdsToSimp) + let (result?, usedSimps) ← dsimpGoal mvarId ctx (simplifyTarget := simplifyTarget) (fvarIdsToSimp := fvarIdsToSimp) match result? with | none => replaceMainGoal [] | some mvarId => replaceMainGoal [mvarId] + if tactic.simp.trace.get (← getOptions) then + traceSimpCall (← getRef) ctx usedSimps @[builtinTactic Lean.Parser.Tactic.dsimp] def evalDSimp : Tactic := fun stx => do let { ctx, .. } ← withMainContext <| mkSimpContext stx (eraseLocal := false) (kind := .dsimp) diff --git a/stage0/src/Lean/Meta/Tactic/AC/Main.lean b/stage0/src/Lean/Meta/Tactic/AC/Main.lean index cddd710178..d9e8e08b56 100644 --- a/stage0/src/Lean/Meta/Tactic/AC/Main.lean +++ b/stage0/src/Lean/Meta/Tactic/AC/Main.lean @@ -145,7 +145,7 @@ def rewriteUnnormalized (mvarId : MVarId) : MetaM Unit := do config := Simp.neutralConfig } let tgt ← instantiateMVars (← mvarId.getType) - let res ← Simp.main tgt simpCtx (methods := { post }) + let (res, _) ← Simp.main tgt simpCtx (methods := { post }) let newGoal ← applySimpResultToTarget mvarId tgt res newGoal.refl where diff --git a/stage0/src/Lean/Meta/Tactic/Acyclic.lean b/stage0/src/Lean/Meta/Tactic/Acyclic.lean index 58de1b70ce..2d6c581507 100644 --- a/stage0/src/Lean/Meta/Tactic/Acyclic.lean +++ b/stage0/src/Lean/Meta/Tactic/Acyclic.lean @@ -37,7 +37,7 @@ where let sizeOfEq ← mkLT sizeOf_lhs sizeOf_rhs let hlt ← mkFreshExprSyntheticOpaqueMVar sizeOfEq -- TODO: we only need the `sizeOf` simp theorems - match (← simpTarget hlt.mvarId! { config.arith := true, simpTheorems := #[ (← getSimpTheorems) ] }) with + match (← simpTarget hlt.mvarId! { config.arith := true, simpTheorems := #[ (← getSimpTheorems) ] }).1 with | some _ => return false | none => let heq ← mkCongrArg sizeOf_lhs.appFn! (← mkEqSymm h) diff --git a/stage0/src/Lean/Meta/Tactic/Simp/Main.lean b/stage0/src/Lean/Meta/Tactic/Simp/Main.lean index 4285030417..47feb16eb7 100644 --- a/stage0/src/Lean/Meta/Tactic/Simp/Main.lean +++ b/stage0/src/Lean/Meta/Tactic/Simp/Main.lean @@ -165,7 +165,9 @@ private partial def reduce (e : Expr) : SimpM Expr := withIncRecDepth do | some e => return (← reduce e) | none => pure () match (← unfold? e) with - | some e => reduce e + | some e' => + recordSimpTheorem e.getAppFn.constName! + reduce e' | none => return e private partial def dsimp (e : Expr) : M Expr := do @@ -579,7 +581,7 @@ where let mut updated := false for x in xs do if (← isProof x) then - s ← s.addTheorem x + s ← s.addTheorem x.fvarId!.name x updated := true if updated then withSimpTheorems s f @@ -609,7 +611,7 @@ where trace[Debug.Meta.Tactic.simp] "ctx arrow {rp.expr} -> {q}" withLocalDeclD e.bindingName! rp.expr fun h => do let s ← getSimpTheorems - let s ← s.addTheorem h + let s ← s.addTheorem h.fvarId!.name h withSimpTheorems s do let rq ← simp q match rq.proof? with @@ -687,18 +689,20 @@ where modify fun s => { s with cache := s.cache.insert e { r with dischargeDepth } } return r -def main (e : Expr) (ctx : Context) (methods : Methods := {}) : MetaM Result := do +def main (e : Expr) (ctx : Context) (usedSimps : NameSet := {}) (methods : Methods := {}) : MetaM (Result × NameSet) := do let ctx := { ctx with config := (← ctx.config.updateArith) } withConfig (fun c => { c with etaStruct := ctx.config.etaStruct }) <| withReducible do try - simp e methods ctx |>.run' {} + let (r, s) ← simp e methods ctx |>.run { usedTheorems := usedSimps } + pure (r, s.usedTheorems) catch ex => if ex.isMaxHeartbeat then throwNestedTacticEx `simp ex else throw ex -def dsimpMain (e : Expr) (ctx : Context) (methods : Methods := {}) : MetaM Expr := do +def dsimpMain (e : Expr) (ctx : Context) (usedSimps : NameSet := {}) (methods : Methods := {}) : MetaM (Expr × NameSet) := do withConfig (fun c => { c with etaStruct := ctx.config.etaStruct }) <| withReducible do try - dsimp e methods ctx |>.run' {} + let (r, s) ← dsimp e methods ctx |>.run { usedTheorems := usedSimps } + pure (r, s.usedTheorems) catch ex => if ex.isMaxHeartbeat then throwNestedTacticEx `dsimp ex else throw ex @@ -806,13 +810,15 @@ end DefaultMethods end Simp -def simp (e : Expr) (ctx : Simp.Context) (discharge? : Option Simp.Discharge := none) : MetaM Simp.Result := do profileitM Exception "simp" (← getOptions) do +def simp (e : Expr) (ctx : Simp.Context) (discharge? : Option Simp.Discharge := none) + (usedSimps : NameSet := {}) : MetaM (Simp.Result × NameSet) := do profileitM Exception "simp" (← getOptions) do match discharge? with - | none => Simp.main e ctx (methods := Simp.DefaultMethods.methods) - | some d => Simp.main e ctx (methods := { pre := (Simp.preDefault · d), post := (Simp.postDefault · d), discharge? := d }) + | none => Simp.main e ctx usedSimps (methods := Simp.DefaultMethods.methods) + | some d => Simp.main e ctx usedSimps (methods := { pre := (Simp.preDefault · d), post := (Simp.postDefault · d), discharge? := d }) -def dsimp (e : Expr) (ctx : Simp.Context) : MetaM Expr := do profileitM Exception "dsimp" (← getOptions) do - Simp.dsimpMain e ctx (methods := Simp.DefaultMethods.methods) +def dsimp (e : Expr) (ctx : Simp.Context) + (usedSimps : NameSet := {}) : MetaM (Expr × NameSet) := do profileitM Exception "dsimp" (← getOptions) do + Simp.dsimpMain e ctx usedSimps (methods := Simp.DefaultMethods.methods) /-- Auxiliary method. @@ -828,24 +834,26 @@ def applySimpResultToTarget (mvarId : MVarId) (target : Expr) (r : Simp.Result) return mvarId /-- See `simpTarget`. This method assumes `mvarId` is not assigned, and we are already using `mvarId`s local context. -/ -def simpTargetCore (mvarId : MVarId) (ctx : Simp.Context) (discharge? : Option Simp.Discharge := none) (mayCloseGoal := true) : MetaM (Option MVarId) := do +def simpTargetCore (mvarId : MVarId) (ctx : Simp.Context) (discharge? : Option Simp.Discharge := none) + (mayCloseGoal := true) (usedSimps : NameSet := {}) : MetaM (Option MVarId × NameSet) := do let target ← instantiateMVars (← mvarId.getType) - let r ← simp target ctx discharge? + let (r, usedSimps) ← simp target ctx discharge? usedSimps if mayCloseGoal && r.expr.isConstOf ``True then match r.proof? with | some proof => mvarId.assign (← mkOfEqTrue proof) | none => mvarId.assign (mkConst ``True.intro) - return none + return (none, usedSimps) else - applySimpResultToTarget mvarId target r + return (← applySimpResultToTarget mvarId target r, usedSimps) /-- Simplify the given goal target (aka type). Return `none` if the goal was closed. Return `some mvarId'` otherwise, where `mvarId'` is the simplified new goal. -/ -def simpTarget (mvarId : MVarId) (ctx : Simp.Context) (discharge? : Option Simp.Discharge := none) (mayCloseGoal := true) : MetaM (Option MVarId) := +def simpTarget (mvarId : MVarId) (ctx : Simp.Context) (discharge? : Option Simp.Discharge := none) + (mayCloseGoal := true) (usedSimps : NameSet := {}) : MetaM (Option MVarId × NameSet) := mvarId.withContext do mvarId.checkNotAssigned `simp - simpTargetCore mvarId ctx discharge? mayCloseGoal + simpTargetCore mvarId ctx discharge? mayCloseGoal usedSimps /-- Apply the result `r` for `prop` (which is inhabited by `proof`). Return `none` if the goal was closed. Return `some (proof', prop')` @@ -876,9 +884,10 @@ def applySimpResultToFVarId (mvarId : MVarId) (fvarId : FVarId) (r : Simp.Result otherwise, where `proof' : prop'` and `prop'` is the simplified `prop`. This method assumes `mvarId` is not assigned, and we are already using `mvarId`s local context. -/ -def simpStep (mvarId : MVarId) (proof : Expr) (prop : Expr) (ctx : Simp.Context) (discharge? : Option Simp.Discharge := none) (mayCloseGoal := true) : MetaM (Option (Expr × Expr)) := do - let r ← simp prop ctx discharge? - applySimpResultToProp mvarId proof prop r (mayCloseGoal := mayCloseGoal) +def simpStep (mvarId : MVarId) (proof : Expr) (prop : Expr) (ctx : Simp.Context) (discharge? : Option Simp.Discharge := none) + (mayCloseGoal := true) (usedSimps : NameSet := {}) : MetaM (Option (Expr × Expr) × NameSet) := do + let (r, usedSimps) ← simp prop ctx discharge? usedSimps + return (← applySimpResultToProp mvarId proof prop r (mayCloseGoal := mayCloseGoal), usedSimps) def applySimpResultToLocalDeclCore (mvarId : MVarId) (fvarId : FVarId) (r : Option (Expr × Expr)) : MetaM (Option (FVarId × MVarId)) := do match r with @@ -908,87 +917,99 @@ def applySimpResultToLocalDecl (mvarId : MVarId) (fvarId : FVarId) (r : Simp.Res else applySimpResultToLocalDeclCore mvarId fvarId (← applySimpResultToFVarId mvarId fvarId r mayCloseGoal) -def simpLocalDecl (mvarId : MVarId) (fvarId : FVarId) (ctx : Simp.Context) (discharge? : Option Simp.Discharge := none) (mayCloseGoal := true) : MetaM (Option (FVarId × MVarId)) := do +def simpLocalDecl (mvarId : MVarId) (fvarId : FVarId) (ctx : Simp.Context) (discharge? : Option Simp.Discharge := none) + (mayCloseGoal := true) (usedSimps : NameSet := {}) : MetaM (Option (FVarId × MVarId) × NameSet) := do mvarId.withContext do mvarId.checkNotAssigned `simp let type ← instantiateMVars (← fvarId.getType) - applySimpResultToLocalDeclCore mvarId fvarId (← simpStep mvarId (mkFVar fvarId) type ctx discharge? mayCloseGoal) + let (r, usedSimps) ← simpStep mvarId (mkFVar fvarId) type ctx discharge? mayCloseGoal usedSimps + return (← applySimpResultToLocalDeclCore mvarId fvarId r, usedSimps) abbrev FVarIdToLemmaId := FVarIdMap Name -def simpGoal (mvarId : MVarId) (ctx : Simp.Context) (discharge? : Option Simp.Discharge := none) (simplifyTarget : Bool := true) (fvarIdsToSimp : Array FVarId := #[]) (fvarIdToLemmaId : FVarIdToLemmaId := {}) : MetaM (Option (Array FVarId × MVarId)) := do +def simpGoal (mvarId : MVarId) (ctx : Simp.Context) (discharge? : Option Simp.Discharge := none) + (simplifyTarget : Bool := true) (fvarIdsToSimp : Array FVarId := #[]) (fvarIdToLemmaId : FVarIdToLemmaId := {}) + (usedSimps : NameSet := {}) : MetaM (Option (Array FVarId × MVarId) × NameSet) := do mvarId.withContext do mvarId.checkNotAssigned `simp let mut mvarId := mvarId let mut toAssert := #[] let mut replaced := #[] + let mut usedSimps := usedSimps for fvarId in fvarIdsToSimp do let localDecl ← fvarId.getDecl let type ← instantiateMVars localDecl.type let ctx ← match fvarIdToLemmaId.find? localDecl.fvarId with | none => pure ctx | some thmId => pure { ctx with simpTheorems := ctx.simpTheorems.eraseTheorem thmId } - let r ← simp type ctx discharge? + let (r, usedSimps') ← simp type ctx discharge? usedSimps + usedSimps := usedSimps' match r.proof? with | some _ => match (← applySimpResultToProp mvarId (mkFVar fvarId) type r) with - | none => return none + | none => return (none, usedSimps) | some (value, type) => toAssert := toAssert.push { userName := localDecl.userName, type := type, value := value } | none => if r.expr.isConstOf ``False then mvarId.assign (← mkFalseElim (← mvarId.getType) (mkFVar fvarId)) - return none + return (none, usedSimps) -- TODO: if there are no forwards dependencies we may consider using the same approach we used when `r.proof?` is a `some ...` -- Reason: it introduces a `mkExpectedTypeHint` mvarId ← mvarId.replaceLocalDeclDefEq fvarId r.expr replaced := replaced.push fvarId if simplifyTarget then match (← simpTarget mvarId ctx discharge?) with - | none => return none - | some mvarIdNew => mvarId := mvarIdNew + | (none, usedSimps') => return (none, usedSimps') + | (some mvarIdNew, usedSimps') => mvarId := mvarIdNew; usedSimps := usedSimps' let (fvarIdsNew, mvarIdNew) ← mvarId.assertHypotheses toAssert let toClear := fvarIdsToSimp.filter fun fvarId => !replaced.contains fvarId let mvarIdNew ← mvarIdNew.tryClearMany toClear - return (fvarIdsNew, mvarIdNew) + return (some (fvarIdsNew, mvarIdNew), usedSimps) -def simpTargetStar (mvarId : MVarId) (ctx : Simp.Context) (discharge? : Option Simp.Discharge := none) : MetaM TacticResultCNM := mvarId.withContext do +def simpTargetStar (mvarId : MVarId) (ctx : Simp.Context) (discharge? : Option Simp.Discharge := none) + (usedSimps : NameSet := {}) : MetaM (TacticResultCNM × NameSet) := mvarId.withContext do let mut ctx := ctx for h in (← getPropHyps) do let localDecl ← h.getDecl let proof := localDecl.toExpr - let simpTheorems ← ctx.simpTheorems.addTheorem proof + let simpTheorems ← ctx.simpTheorems.addTheorem localDecl.fvarId.name proof ctx := { ctx with simpTheorems } - match (← simpTarget mvarId ctx discharge?) with - | none => return TacticResultCNM.closed - | some mvarId' => + match (← simpTarget mvarId ctx discharge? (usedSimps := usedSimps)) with + | (none, usedSimps) => return (TacticResultCNM.closed, usedSimps) + | (some mvarId', usedSimps') => if (← mvarId.getType) == (← mvarId'.getType) then - return TacticResultCNM.noChange + return (TacticResultCNM.noChange, usedSimps) else - return TacticResultCNM.modified mvarId' + return (TacticResultCNM.modified mvarId', usedSimps') -def dsimpGoal (mvarId : MVarId) (ctx : Simp.Context) (simplifyTarget : Bool := true) (fvarIdsToSimp : Array FVarId := #[]) : MetaM (Option MVarId) := do +def dsimpGoal (mvarId : MVarId) (ctx : Simp.Context) (simplifyTarget : Bool := true) (fvarIdsToSimp : Array FVarId := #[]) + (usedSimps : NameSet := {}) : MetaM (Option MVarId × NameSet) := do mvarId.withContext do mvarId.checkNotAssigned `simp let mut mvarId := mvarId + let mut usedSimps : NameSet := usedSimps for fvarId in fvarIdsToSimp do let type ← instantiateMVars (← fvarId.getType) - let typeNew ← dsimp type ctx + let (typeNew, usedSimps') ← dsimp type ctx + usedSimps := usedSimps' if typeNew.isConstOf ``False then mvarId.assign (← mkFalseElim (← mvarId.getType) (mkFVar fvarId)) - return none + return (none, usedSimps) if typeNew != type then mvarId ← mvarId.replaceLocalDeclDefEq fvarId typeNew if simplifyTarget then let target ← mvarId.getType - let targetNew ← dsimp target ctx + let (targetNew, usedSimps') ← dsimp target ctx usedSimps + usedSimps := usedSimps' if targetNew.isConstOf ``True then mvarId.assign (mkConst ``True.intro) - return none + return (none, usedSimps) if let some (_, lhs, rhs) := targetNew.eq? then if (← withReducible <| isDefEq lhs rhs) then mvarId.assign (← mkEqRefl lhs) - return none + return (none, usedSimps) if target != targetNew then mvarId ← mvarId.replaceTargetDefEq targetNew - return some mvarId + pure () -- FIXME: bug in do notation if this is removed? + return (some mvarId, usedSimps) end Lean.Meta diff --git a/stage0/src/Lean/Meta/Tactic/Simp/Rewrite.lean b/stage0/src/Lean/Meta/Tactic/Simp/Rewrite.lean index 9a2bba2be4..6604bba622 100644 --- a/stage0/src/Lean/Meta/Tactic/Simp/Rewrite.lean +++ b/stage0/src/Lean/Meta/Tactic/Simp/Rewrite.lean @@ -55,7 +55,7 @@ where private def tryTheoremCore (lhs : Expr) (xs : Array Expr) (bis : Array BinderInfo) (val : Expr) (type : Expr) (e : Expr) (thm : SimpTheorem) (numExtraArgs : Nat) (discharge? : Expr → SimpM (Option Expr)) : SimpM (Option Result) := do let rec go (e : Expr) : SimpM (Option Result) := do if (← isDefEq lhs e) then - unless (← synthesizeArgs thm.getName xs bis discharge?) do + unless (← synthesizeArgs thm.name xs bis discharge?) do return none let proof? ← if thm.rfl then pure none @@ -73,6 +73,7 @@ private def tryTheoremCore (lhs : Expr) (xs : Array Expr) (bis : Array BinderInf trace[Meta.Tactic.simp.rewrite] "{thm}, perm rejected {e} ==> {rhs}" return none trace[Meta.Tactic.simp.rewrite] "{thm}, {e} ==> {rhs}" + recordSimpTheorem thm.name return some { expr := rhs, proof? } else unless lhs.isMVar do @@ -141,9 +142,7 @@ def rewrite? (e : Expr) (s : DiscrTree SimpTheorem) (erased : Std.PHashSet Name) return none where inErasedSet (thm : SimpTheorem) : Bool := - match thm.name? with - | none => false - | some name => erased.contains name + erased.contains thm.name @[inline] def andThen (s : Step) (f? : Expr → SimpM (Option Step)) : SimpM Step := do match s with @@ -207,7 +206,7 @@ def simpArith? (e : Expr) : SimpM (Option Step) := do def simpMatchCore? (app : MatcherApp) (e : Expr) (discharge? : Expr → SimpM (Option Expr)) : SimpM (Option Step) := do for matchEq in (← Match.getEquationsFor app.matcherName).eqnNames do -- Try lemma - match (← withReducible <| Simp.tryTheorem? e { proof := mkConst matchEq, name? := some matchEq, rfl := (← isRflTheorem matchEq) } discharge?) with + match (← withReducible <| Simp.tryTheorem? e { name := matchEq, proof := mkConst matchEq, rfl := (← isRflTheorem matchEq) } discharge?) with | none => pure () | some r => return some (Simp.Step.done r) return none diff --git a/stage0/src/Lean/Meta/Tactic/Simp/SimpAll.lean b/stage0/src/Lean/Meta/Tactic/Simp/SimpAll.lean index 61bb68a4b3..a696fba065 100644 --- a/stage0/src/Lean/Meta/Tactic/Simp/SimpAll.lean +++ b/stage0/src/Lean/Meta/Tactic/Simp/SimpAll.lean @@ -20,10 +20,11 @@ structure Entry where deriving Inhabited structure State where - modified : Bool := false - mvarId : MVarId - entries : Array Entry := #[] - ctx : Simp.Context + modified : Bool := false + mvarId : MVarId + entries : Array Entry := #[] + ctx : Simp.Context + usedSimps : NameSet := {} abbrev M := StateRefT State MetaM @@ -36,8 +37,8 @@ private def initEntries : M Unit := do unless simpThms.isErased localDecl.userName do let fvarId := localDecl.fvarId let proof := localDecl.toExpr - let id ← mkFreshUserName `h - simpThms ← simpThms.addTheorem proof (name? := id) + let id := fvarId.name + simpThms ← simpThms.addTheorem id proof modify fun s => { s with ctx.simpTheorems := simpThms } if hsNonDeps.contains h then -- We only simplify nondependent hypotheses @@ -56,7 +57,9 @@ private partial def loop : M Bool := do -- We disable the current entry to prevent it to be simplified to `True` let simpThmsWithoutEntry := (← getSimpTheorems).eraseTheorem entry.id let ctx := { ctx with simpTheorems := simpThmsWithoutEntry } - match (← simpStep (← get).mvarId entry.proof entry.type ctx) with + let (r, usedSimps) ← simpStep (← get).mvarId entry.proof entry.type ctx (usedSimps := (← get).usedSimps) + modify fun s => { s with usedSimps } + match r with | none => return true -- closed the goal | some (proofNew, typeNew) => unless typeNew == entry.type do @@ -85,8 +88,8 @@ private partial def loop : M Bool := do -/ trace[Meta.Tactic.simp.all] "entry.id: {entry.id}, {entry.type} => {typeNew}" let mut simpThmsNew := (← getSimpTheorems).eraseTheorem entry.id - let idNew ← mkFreshUserName `h - simpThmsNew ← simpThmsNew.addTheorem (← mkExpectedTypeHint proofNew typeNew) (name? := idNew) + let idNew ← mkFreshId + simpThmsNew ← simpThmsNew.addTheorem idNew (← mkExpectedTypeHint proofNew typeNew) modify fun s => { s with modified := true ctx.simpTheorems := simpThmsNew @@ -94,7 +97,9 @@ private partial def loop : M Bool := do } -- simplify target let mvarId := (← get).mvarId - match (← simpTarget mvarId (← get).ctx) with + let (r, usedSimps) ← simpTarget mvarId (← get).ctx (usedSimps := (← get).usedSimps) + modify fun s => { s with usedSimps } + match r with | none => return true | some mvarIdNew => unless mvarId == mvarIdNew do @@ -121,8 +126,9 @@ def main : M (Option MVarId) := do end SimpAll -def simpAll (mvarId : MVarId) (ctx : Simp.Context) : MetaM (Option MVarId) := do +def simpAll (mvarId : MVarId) (ctx : Simp.Context) (usedSimps : NameSet := {}) : MetaM (Option MVarId × NameSet) := do mvarId.withContext do - SimpAll.main.run' { mvarId := mvarId, ctx := ctx } + let (r, s) ← SimpAll.main.run { mvarId, ctx, usedSimps } + return (r, s.usedSimps) end Lean.Meta diff --git a/stage0/src/Lean/Meta/Tactic/Simp/SimpTheorems.lean b/stage0/src/Lean/Meta/Tactic/Simp/SimpTheorems.lean index 414b3cbd3b..651b0a912d 100644 --- a/stage0/src/Lean/Meta/Tactic/Simp/SimpTheorems.lean +++ b/stage0/src/Lean/Meta/Tactic/Simp/SimpTheorems.lean @@ -38,16 +38,11 @@ structure SimpTheorem where `name?` is mainly relevant for producing trace messages. It is also viewed an `id` used to "erase" `simp` theorems from `SimpTheorems`. -/ - name? : Option Name := none + name : Name /-- `rfl` is true if `proof` is by `Eq.refl` or `rfl`. -/ rfl : Bool deriving Inhabited -def SimpTheorem.getName (s : SimpTheorem) : Name := - match s.name? with - | some n => n - | none => "" - mutual partial def isRflProofCore (type : Expr) (proof : Expr) : CoreM Bool := do match type with @@ -85,7 +80,7 @@ def isRflProof (proof : Expr) : MetaM Bool := do instance : ToFormat SimpTheorem where format s := let perm := if s.perm then ":perm" else "" - let name := format s.getName + let name := format s.name let prio := f!":{s.priority}" name ++ prio ++ perm @@ -111,9 +106,7 @@ def addSimpTheoremEntry (d : SimpTheorems) (e : SimpTheorem) : SimpTheorems := { d with pre := d.pre.insertCore e.keys e, lemmaNames := updateLemmaNames d.lemmaNames } where updateLemmaNames (s : Std.PHashSet Name) : Std.PHashSet Name := - match e.name? with - | none => s - | some name => s.insert name + s.insert e.name def SimpTheorems.addDeclToUnfoldCore (d : SimpTheorems) (declName : Name) : SimpTheorems := { d with toUnfold := d.toUnfold.insert declName } @@ -233,7 +226,7 @@ private def checkTypeIsProp (type : Expr) : MetaM Unit := unless (← isProp type) do throwError "invalid 'simp', proposition expected{indentExpr type}" -private def mkSimpTheoremCore (e : Expr) (levelParams : Array Name) (proof : Expr) (post : Bool) (prio : Nat) (name? : Option Name) : MetaM SimpTheorem := do +private def mkSimpTheoremCore (name : Name) (e : Expr) (levelParams : Array Name) (proof : Expr) (post : Bool) (prio : Nat) : MetaM SimpTheorem := do let type ← instantiateMVars (← inferType e) withNewMCtxDepth do let (_, _, type) ← withReducible <| forallMetaTelescopeReducing type @@ -242,7 +235,7 @@ private def mkSimpTheoremCore (e : Expr) (levelParams : Array Name) (proof : Exp match type.eq? with | some (_, lhs, rhs) => pure (← DiscrTree.mkPath lhs, ← isPerm lhs rhs) | none => throwError "unexpected kind of 'simp' theorem{indentExpr type}" - return { keys, perm, post, levelParams, proof, name?, priority := prio, rfl := (← isRflProof proof) } + return { name, keys, perm, post, levelParams, proof, priority := prio, rfl := (← isRflProof proof) } private def mkSimpTheoremsFromConst (declName : Name) (post : Bool) (inv : Bool) (prio : Nat) : MetaM (Array SimpTheorem) := do let cinfo ← getConstInfo declName @@ -254,10 +247,10 @@ private def mkSimpTheoremsFromConst (declName : Name) (post : Bool) (inv : Bool) let mut r := #[] for (val, type) in (← preprocess val type inv (isGlobal := true)) do let auxName ← mkAuxLemma cinfo.levelParams type val - r := r.push <| (← mkSimpTheoremCore (mkConst auxName (cinfo.levelParams.map mkLevelParam)) #[] (mkConst auxName) post prio declName) + r := r.push <| (← mkSimpTheoremCore declName (mkConst auxName (cinfo.levelParams.map mkLevelParam)) #[] (mkConst auxName) post prio) return r else - return #[← mkSimpTheoremCore (mkConst declName (cinfo.levelParams.map mkLevelParam)) #[] (mkConst declName) post prio declName] + return #[← mkSimpTheoremCore declName (mkConst declName (cinfo.levelParams.map mkLevelParam)) #[] (mkConst declName) post prio] inductive SimpEntry where | thm : SimpTheorem → SimpEntry @@ -362,30 +355,30 @@ private def preprocessProof (val : Expr) (inv : Bool) : MetaM (Array Expr) := do return ps.toArray.map fun (val, _) => val /-- Auxiliary method for creating simp theorems from a proof term `val`. -/ -def mkSimpTheorems (levelParams : Array Name) (proof : Expr) (post : Bool := true) (inv : Bool := false) (prio : Nat := eval_prio default) (name? : Option Name := none): MetaM (Array SimpTheorem) := +def mkSimpTheorems (name : Name) (levelParams : Array Name) (proof : Expr) (post : Bool := true) (inv : Bool := false) (prio : Nat := eval_prio default) : MetaM (Array SimpTheorem) := withReducible do - (← preprocessProof proof inv).mapM fun val => mkSimpTheoremCore val levelParams val post prio name? + (← preprocessProof proof inv).mapM fun val => mkSimpTheoremCore name val levelParams val post prio /-- Auxiliary method for adding a local simp theorem to a `SimpTheorems` datastructure. -/ -def SimpTheorems.add (s : SimpTheorems) (levelParams : Array Name) (proof : Expr) (inv : Bool := false) (post : Bool := true) (prio : Nat := eval_prio default) (name? : Option Name := none): MetaM SimpTheorems := do +def SimpTheorems.add (s : SimpTheorems) (name : Name) (levelParams : Array Name) (proof : Expr) (inv : Bool := false) (post : Bool := true) (prio : Nat := eval_prio default) : MetaM SimpTheorems := do if proof.isConst then s.addConst proof.constName! post inv prio else - let simpThms ← mkSimpTheorems levelParams proof post inv prio (← getName? proof) + let simpThms ← mkSimpTheorems name levelParams proof post inv prio return simpThms.foldl addSimpTheoremEntry s -where - getName? (e : Expr) : MetaM (Option Name) := do - match name? with - | some _ => return name? - | none => - let f := e.getAppFn - if f.isConst then - return f.constName! - else if f.isFVar then - let localDecl ← getFVarLocalDecl f - return localDecl.userName - else - return none +-- where +-- getName? (e : Expr) : MetaM (Option Name) := do +-- match name? with +-- | some _ => return name? +-- | none => +-- let f := e.getAppFn +-- if f.isConst then +-- return f.constName! +-- else if f.isFVar then +-- let localDecl ← getFVarLocalDecl f +-- return localDecl.userName +-- else +-- return none def SimpTheorems.addDeclToUnfold (d : SimpTheorems) (declName : Name) : MetaM SimpTheorems := do if let some eqns ← getEqnsFor? declName then @@ -400,12 +393,12 @@ def SimpTheorems.addDeclToUnfold (d : SimpTheorems) (declName : Name) : MetaM Si abbrev SimpTheoremsArray := Array SimpTheorems -def SimpTheoremsArray.addTheorem (thmsArray : SimpTheoremsArray) (h : Expr) (name? : Option Name := none) : MetaM SimpTheoremsArray := +def SimpTheoremsArray.addTheorem (thmsArray : SimpTheoremsArray) (name : Name) (h : Expr) : MetaM SimpTheoremsArray := if thmsArray.isEmpty then let thms : SimpTheorems := {} - return #[ (← thms.add #[] h (name? := name?)) ] + return #[ (← thms.add name #[] h) ] else - thmsArray.modifyM 0 fun thms => thms.add #[] h (name? := name?) + thmsArray.modifyM 0 fun thms => thms.add name #[] h def SimpTheoremsArray.eraseTheorem (thmsArray : SimpTheoremsArray) (thmId : Name) : SimpTheoremsArray := thmsArray.map fun thms => thms.eraseCore thmId diff --git a/stage0/src/Lean/Meta/Tactic/Simp/Types.lean b/stage0/src/Lean/Meta/Tactic/Simp/Types.lean index 891c780459..ae20933539 100644 --- a/stage0/src/Lean/Meta/Tactic/Simp/Types.lean +++ b/stage0/src/Lean/Meta/Tactic/Simp/Types.lean @@ -22,11 +22,12 @@ abbrev Cache := ExprMap Result abbrev CongrCache := ExprMap (Option CongrTheorem) structure Context where - config : Config := {} - simpTheorems : SimpTheoremsArray := {} + config : Config := {} + simpTheorems : SimpTheoremsArray := {} congrTheorems : SimpCongrTheorems := {} + namedStx : NameMap Syntax := {} parent? : Option Expr := none - dischargeDepth : Nat := 0 + dischargeDepth : Nat := 0 deriving Inhabited def Context.isDeclToUnfold (ctx : Context) (declName : Name) : Bool := @@ -36,9 +37,10 @@ def Context.mkDefault : MetaM Context := return { config := {}, simpTheorems := #[(← getSimpTheorems)], congrTheorems := (← getSimpCongrTheorems) } structure State where - cache : Cache := {} - congrCache : CongrCache := {} - numSteps : Nat := 0 + cache : Cache := {} + congrCache : CongrCache := {} + usedTheorems : NameSet := {} + numSteps : Nat := 0 abbrev SimpM := ReaderT Context $ StateRefT State MetaM @@ -97,6 +99,9 @@ def getSimpCongrTheorems : M SimpCongrTheorems := finally modify fun s => { s with cache := cacheSaved } +def recordSimpTheorem (n : Name) : SimpM Unit := + modify fun s => { s with usedTheorems := s.usedTheorems.insert n } + end Simp export Simp (SimpM) diff --git a/stage0/src/Lean/Meta/Tactic/Split.lean b/stage0/src/Lean/Meta/Tactic/Split.lean index 33632a77e0..e6e2ddd7b9 100644 --- a/stage0/src/Lean/Meta/Tactic/Split.lean +++ b/stage0/src/Lean/Meta/Tactic/Split.lean @@ -17,7 +17,7 @@ def getSimpMatchContext : MetaM Simp.Context := } def simpMatch (e : Expr) : MetaM Simp.Result := do - Simp.main e (← getSimpMatchContext) (methods := { pre }) + (·.1) <$> Simp.main e (← getSimpMatchContext) (methods := { pre }) where pre (e : Expr) : SimpM Simp.Step := do let some app ← matchMatcherApp? e | return Simp.Step.visit { expr := e } @@ -35,7 +35,7 @@ def simpMatchTarget (mvarId : MVarId) : MetaM MVarId := mvarId.withContext do applySimpResultToTarget mvarId target r private def simpMatchCore (matchDeclName : Name) (matchEqDeclName : Name) (e : Expr) : MetaM Simp.Result := do - Simp.main e (← getSimpMatchContext) (methods := { pre }) + (·.1) <$> Simp.main e (← getSimpMatchContext) (methods := { pre }) where pre (e : Expr) : SimpM Simp.Step := do if e.isAppOf matchDeclName then @@ -44,7 +44,7 @@ where | some e' => return Simp.Step.done { expr := e' } | none => -- Try lemma - match (← withReducible <| Simp.tryTheorem? e { proof := mkConst matchEqDeclName, name? := matchEqDeclName, rfl := (← isRflTheorem matchEqDeclName) } SplitIf.discharge?) with + match (← withReducible <| Simp.tryTheorem? e { name := matchEqDeclName, proof := mkConst matchEqDeclName, rfl := (← isRflTheorem matchEqDeclName) } SplitIf.discharge?) with | none => return Simp.Step.visit { expr := e } | some r => return Simp.Step.done r else diff --git a/stage0/src/Lean/Meta/Tactic/SplitIf.lean b/stage0/src/Lean/Meta/Tactic/SplitIf.lean index 7e655355af..0bba1d84d0 100644 --- a/stage0/src/Lean/Meta/Tactic/SplitIf.lean +++ b/stage0/src/Lean/Meta/Tactic/SplitIf.lean @@ -82,14 +82,14 @@ open SplitIf def simpIfTarget (mvarId : MVarId) (useDecide := false) : MetaM MVarId := do let mut ctx ← getSimpContext - if let some mvarId' ← simpTarget mvarId ctx (discharge? useDecide) (mayCloseGoal := false) then + if let (some mvarId', _) ← simpTarget mvarId ctx (discharge? useDecide) (mayCloseGoal := false) then return mvarId' else unreachable! def simpIfLocalDecl (mvarId : MVarId) (fvarId : FVarId) : MetaM MVarId := do let mut ctx ← getSimpContext - if let some (_, mvarId') ← simpLocalDecl mvarId fvarId ctx discharge? (mayCloseGoal := false) then + if let (some (_, mvarId'), _) ← simpLocalDecl mvarId fvarId ctx discharge? (mayCloseGoal := false) then return mvarId' else unreachable! diff --git a/stage0/src/Lean/Meta/Tactic/Unfold.lean b/stage0/src/Lean/Meta/Tactic/Unfold.lean index 5b39d823ee..b85a1a8e4d 100644 --- a/stage0/src/Lean/Meta/Tactic/Unfold.lean +++ b/stage0/src/Lean/Meta/Tactic/Unfold.lean @@ -11,19 +11,18 @@ namespace Lean.Meta private def getSimpUnfoldContext : MetaM Simp.Context := return { - simpTheorems := {} congrTheorems := (← getSimpCongrTheorems) config := Simp.neutralConfig } def unfold (e : Expr) (declName : Name) : MetaM Simp.Result := do if let some unfoldThm ← getUnfoldEqnFor? declName then - Simp.main e (← getSimpUnfoldContext) (methods := { pre := pre unfoldThm }) + (·.1) <$> Simp.main e (← getSimpUnfoldContext) (methods := { pre := pre unfoldThm }) else return { expr := (← deltaExpand e (· == declName)) } where pre (unfoldThm : Name) (e : Expr) : SimpM Simp.Step := do - match (← withReducible <| Simp.tryTheorem? e { proof := mkConst unfoldThm, name? := some unfoldThm, rfl := (← isRflTheorem unfoldThm) } (fun _ => return none)) with + match (← withReducible <| Simp.tryTheorem? e { name := unfoldThm, proof := mkConst unfoldThm, rfl := (← isRflTheorem unfoldThm) } (fun _ => return none)) with | none => pure () | some r => match (← reduceMatcher? r.expr) with | .reduced e' => return Simp.Step.done { r with expr := e' } diff --git a/stage0/src/Lean/PrettyPrinter/Delaborator/Builtins.lean b/stage0/src/Lean/PrettyPrinter/Delaborator/Builtins.lean index e97b47ddc5..9d709ae6e0 100644 --- a/stage0/src/Lean/PrettyPrinter/Delaborator/Builtins.lean +++ b/stage0/src/Lean/PrettyPrinter/Delaborator/Builtins.lean @@ -59,38 +59,12 @@ def delabSort : Delab := do | none => `(Sort $(Level.quote l max_prec)) -def unresolveNameGlobal (n₀ : Name) : DelabM Name := do - if n₀.hasMacroScopes then return n₀ - if (← getPPOption getPPFullNames) then - match (← resolveGlobalName n₀) with - | [(potentialMatch, _)] => if potentialMatch == n₀ then return n₀ else return rootNamespace ++ n₀ - | _ => return n₀ -- if can't resolve, return the original - let mut initialNames := (getRevAliases (← getEnv) n₀).toArray - initialNames := initialNames.push (rootNamespace ++ n₀) - for initialName in initialNames do - match (← unresolveNameCore initialName) with - | none => continue - | some n => return n - return n₀ -- if can't resolve, return the original -where - unresolveNameCore (n : Name) : DelabM (Option Name) := do - let mut revComponents := n.components' - let mut candidate := Name.anonymous - for _ in [:revComponents.length] do - match revComponents with - | [] => return none - | cmpt::rest => candidate := cmpt ++ candidate; revComponents := rest - match (← resolveGlobalName candidate) with - | [(potentialMatch, _)] => if potentialMatch == n₀ then return some candidate else continue - | _ => continue - return none - -- NOTE: not a registered delaborator, as `const` is never called (see [delab] description) def delabConst : Delab := do let Expr.const c₀ ls ← getExpr | unreachable! let c₀ := if (← getPPOption getPPPrivateNames) then c₀ else (privateToUserName? c₀).getD c₀ - let mut c ← unresolveNameGlobal c₀ + let mut c ← unresolveNameGlobal c₀ (fullNames := ← getPPOption getPPFullNames) let stx ← if ls.isEmpty || !(← getPPOption getPPUniverses) then if (← getLCtx).usesUserName c then -- `c` is also a local declaration diff --git a/stage0/src/Lean/ResolveName.lean b/stage0/src/Lean/ResolveName.lean index 4422e3caa7..72ae6fbf24 100644 --- a/stage0/src/Lean/ResolveName.lean +++ b/stage0/src/Lean/ResolveName.lean @@ -306,4 +306,30 @@ def resolveGlobalConstNoOverload [Monad m] [MonadResolveName m] [MonadEnv m] [Mo | [c] => pure c | _ => throwErrorAt id s!"ambiguous identifier '{id}', possible interpretations: {cs.map mkConst}" +def unresolveNameGlobal [Monad m] [MonadResolveName m] [MonadEnv m] (n₀ : Name) (fullNames := false) : m Name := do + if n₀.hasMacroScopes then return n₀ + if fullNames then + match (← resolveGlobalName n₀) with + | [(potentialMatch, _)] => if potentialMatch == n₀ then return n₀ else return rootNamespace ++ n₀ + | _ => return n₀ -- if can't resolve, return the original + let mut initialNames := (getRevAliases (← getEnv) n₀).toArray + initialNames := initialNames.push (rootNamespace ++ n₀) + for initialName in initialNames do + match (← unresolveNameCore initialName) with + | none => continue + | some n => return n + return n₀ -- if can't resolve, return the original +where + unresolveNameCore (n : Name) : m (Option Name) := do + let mut revComponents := n.components' + let mut candidate := Name.anonymous + for _ in [:revComponents.length] do + match revComponents with + | [] => return none + | cmpt::rest => candidate := cmpt ++ candidate; revComponents := rest + match (← resolveGlobalName candidate) with + | [(potentialMatch, _)] => if potentialMatch == n₀ then return some candidate else continue + | _ => continue + return none + end Lean diff --git a/stage0/stdlib/Init/Conv.c b/stage0/stdlib/Init/Conv.c index bdf9897444..d16b20ef34 100644 --- a/stage0/stdlib/Init/Conv.c +++ b/stage0/stdlib/Init/Conv.c @@ -111,7 +111,6 @@ LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_Conv_convRepeat__; static lean_object* l_Lean_Parser_Tactic_Conv_convRepeat_____closed__5; static lean_object* l_Lean_Parser_Tactic_Conv_convArgs___closed__5; static lean_object* l_Lean_Parser_Tactic_Conv_paren___closed__5; -static lean_object* l_Lean_Parser_Tactic_Conv_rewrite___closed__8; static lean_object* l_Lean_Parser_Tactic_Conv_conv___closed__2; static lean_object* l_Lean_Parser_Tactic_Conv_convApply_____closed__5; LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convRfl__1(lean_object*, lean_object*, lean_object*); @@ -139,7 +138,6 @@ static lean_object* l_Lean_Parser_Tactic_Conv_ext___closed__7; static lean_object* l_Lean_Parser_Tactic_Conv_convSeq___closed__4; LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_Conv_convRfl; static lean_object* l_Lean_Parser_Tactic_Conv_conv___closed__7; -static lean_object* l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convRepeat____1___closed__1; static lean_object* l_Lean_Parser_Tactic_Conv_convRepeat_____closed__6; static lean_object* l_Lean_Parser_Tactic_Conv_rewrite___closed__7; static lean_object* l_Lean_Parser_Tactic_Conv_convSeq1Indented___closed__1; @@ -183,7 +181,6 @@ static lean_object* l_Lean_Parser_Tactic_Conv_convDone___closed__2; static lean_object* l_Lean_Parser_Tactic_Conv_rhs___closed__2; static lean_object* l_Lean_Parser_Tactic_Conv_first___closed__2; static lean_object* l_Lean_Parser_Tactic_Conv_conv_xb7_x2e_____closed__8; -static lean_object* l_Lean_Parser_Tactic_Conv_simp___closed__26; static lean_object* l_Lean_Parser_Tactic_Conv_enterArg___closed__6; static lean_object* l_Lean_Parser_Tactic_Conv_conv_quot___closed__6; static lean_object* l_Lean_Parser_Tactic_Conv_first___closed__1; @@ -210,14 +207,12 @@ static lean_object* l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules_ static lean_object* l_Lean_Parser_Tactic_Conv_conv_xb7_x2e_____closed__4; static lean_object* l_Lean_Parser_Tactic_Conv_simp___closed__21; static lean_object* l_Lean_Parser_Tactic_Conv_convErw_____closed__6; -static lean_object* l_Lean_Parser_Tactic_Conv_ext___closed__13; static lean_object* l_Lean_Parser_Tactic_Conv_first___closed__13; static lean_object* l_Lean_Parser_Tactic_Conv_delta___closed__1; static lean_object* l_Lean_Parser_Tactic_Conv_conv___closed__22; static lean_object* l_Lean_Parser_Tactic_Conv_convSeq1Indented___closed__4; static lean_object* l_Lean_Parser_Tactic_Conv_enterArg___closed__1; LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_Conv_paren; -static lean_object* l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__32; static lean_object* l_Lean_Parser_Tactic_Conv_simp___closed__2; LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_Conv_convSeqBracketed; extern lean_object* l_Lean_Parser_Tactic_simpStar; @@ -432,6 +427,7 @@ static lean_object* l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules_ static lean_object* l_Lean_Parser_Tactic_Conv_convRepeat_____closed__2; static lean_object* l_Lean_Parser_Tactic_Conv_convEnter_x5b_____x5d___closed__6; static lean_object* l_Lean_Parser_Tactic_Conv_convSeqBracketed___closed__9; +static lean_object* l_Lean_Parser_Tactic_Conv_convConvSeq___closed__6; static lean_object* l_Lean_Parser_Tactic_Conv_conv_xb7_x2e_____closed__7; static lean_object* l_Lean_Parser_Tactic_Conv_convRfl___closed__4; static lean_object* l_Lean_Parser_Tactic_Conv_convSeqBracketed___closed__10; @@ -1849,16 +1845,8 @@ return x_3; static lean_object* _init_l_Lean_Parser_Tactic_Conv_ext___closed__3() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("ext ", 4); -return x_1; -} -} -static lean_object* _init_l_Lean_Parser_Tactic_Conv_ext___closed__4() { -_start: -{ lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_Conv_ext___closed__3; +x_1 = l_Lean_Parser_Tactic_Conv_ext___closed__1; x_2 = 0; x_3 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -1866,7 +1854,7 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_ext___closed__5() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_ext___closed__4() { _start: { lean_object* x_1; @@ -1874,17 +1862,17 @@ x_1 = lean_mk_string_from_bytes("many", 4); return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_ext___closed__6() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_ext___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Parser_Tactic_Conv_ext___closed__5; +x_2 = l_Lean_Parser_Tactic_Conv_ext___closed__4; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_ext___closed__7() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_ext___closed__6() { _start: { lean_object* x_1; @@ -1892,32 +1880,32 @@ x_1 = lean_mk_string_from_bytes("colGt", 5); return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_ext___closed__8() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_ext___closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Parser_Tactic_Conv_ext___closed__7; +x_2 = l_Lean_Parser_Tactic_Conv_ext___closed__6; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_ext___closed__9() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_ext___closed__8() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Tactic_Conv_ext___closed__8; +x_1 = l_Lean_Parser_Tactic_Conv_ext___closed__7; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_ext___closed__10() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_ext___closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_Conv_conv_quot___closed__13; -x_2 = l_Lean_Parser_Tactic_Conv_ext___closed__9; +x_2 = l_Lean_Parser_Tactic_Conv_ext___closed__8; x_3 = l_Lean_Parser_Tactic_Conv_conv___closed__10; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); @@ -1926,25 +1914,25 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_ext___closed__11() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_ext___closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_Conv_ext___closed__6; -x_2 = l_Lean_Parser_Tactic_Conv_ext___closed__10; +x_1 = l_Lean_Parser_Tactic_Conv_ext___closed__5; +x_2 = l_Lean_Parser_Tactic_Conv_ext___closed__9; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_ext___closed__12() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_ext___closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_Conv_conv_quot___closed__13; -x_2 = l_Lean_Parser_Tactic_Conv_ext___closed__4; -x_3 = l_Lean_Parser_Tactic_Conv_ext___closed__11; +x_2 = l_Lean_Parser_Tactic_Conv_ext___closed__3; +x_3 = l_Lean_Parser_Tactic_Conv_ext___closed__10; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -1952,13 +1940,13 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_ext___closed__13() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_ext___closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_Conv_ext___closed__2; x_2 = lean_unsigned_to_nat(1022u); -x_3 = l_Lean_Parser_Tactic_Conv_ext___closed__12; +x_3 = l_Lean_Parser_Tactic_Conv_ext___closed__11; x_4 = lean_alloc_ctor(3, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -1970,7 +1958,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_Conv_ext() { _start: { lean_object* x_1; -x_1 = l_Lean_Parser_Tactic_Conv_ext___closed__13; +x_1 = l_Lean_Parser_Tactic_Conv_ext___closed__12; return x_1; } } @@ -2109,7 +2097,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Tactic_Conv_delta___closed__6; -x_2 = l_Lean_Parser_Tactic_Conv_ext___closed__10; +x_2 = l_Lean_Parser_Tactic_Conv_ext___closed__9; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -2321,16 +2309,8 @@ return x_3; static lean_object* _init_l_Lean_Parser_Tactic_Conv_rewrite___closed__3() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("rewrite ", 8); -return x_1; -} -} -static lean_object* _init_l_Lean_Parser_Tactic_Conv_rewrite___closed__4() { -_start: -{ lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_Conv_rewrite___closed__3; +x_1 = l_Lean_Parser_Tactic_Conv_rewrite___closed__1; x_2 = 0; x_3 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -2338,7 +2318,7 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_rewrite___closed__5() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_rewrite___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -2350,13 +2330,27 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } +static lean_object* _init_l_Lean_Parser_Tactic_Conv_rewrite___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Tactic_Conv_conv_quot___closed__13; +x_2 = l_Lean_Parser_Tactic_Conv_rewrite___closed__3; +x_3 = l_Lean_Parser_Tactic_Conv_rewrite___closed__4; +x_4 = lean_alloc_ctor(2, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} static lean_object* _init_l_Lean_Parser_Tactic_Conv_rewrite___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_Conv_conv_quot___closed__13; -x_2 = l_Lean_Parser_Tactic_Conv_rewrite___closed__4; -x_3 = l_Lean_Parser_Tactic_Conv_rewrite___closed__5; +x_2 = l_Lean_Parser_Tactic_Conv_rewrite___closed__5; +x_3 = l_Lean_Parser_Tactic_rwRuleSeq; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -2368,23 +2362,9 @@ static lean_object* _init_l_Lean_Parser_Tactic_Conv_rewrite___closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Tactic_Conv_conv_quot___closed__13; -x_2 = l_Lean_Parser_Tactic_Conv_rewrite___closed__6; -x_3 = l_Lean_Parser_Tactic_rwRuleSeq; -x_4 = lean_alloc_ctor(2, 3, 0); -lean_ctor_set(x_4, 0, x_1); -lean_ctor_set(x_4, 1, x_2); -lean_ctor_set(x_4, 2, x_3); -return x_4; -} -} -static lean_object* _init_l_Lean_Parser_Tactic_Conv_rewrite___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_Conv_rewrite___closed__2; x_2 = lean_unsigned_to_nat(1022u); -x_3 = l_Lean_Parser_Tactic_Conv_rewrite___closed__7; +x_3 = l_Lean_Parser_Tactic_Conv_rewrite___closed__6; x_4 = lean_alloc_ctor(3, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -2396,7 +2376,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_Conv_rewrite() { _start: { lean_object* x_1; -x_1 = l_Lean_Parser_Tactic_Conv_rewrite___closed__8; +x_1 = l_Lean_Parser_Tactic_Conv_rewrite___closed__7; return x_1; } } @@ -2421,16 +2401,8 @@ return x_3; static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__3() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("simp ", 5); -return x_1; -} -} -static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__4() { -_start: -{ lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_Conv_simp___closed__3; +x_1 = l_Lean_Parser_Tactic_Conv_simp___closed__1; x_2 = 0; x_3 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -2438,13 +2410,13 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__5() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_Conv_conv_quot___closed__13; -x_2 = l_Lean_Parser_Tactic_Conv_simp___closed__4; -x_3 = l_Lean_Parser_Tactic_Conv_rewrite___closed__5; +x_2 = l_Lean_Parser_Tactic_Conv_simp___closed__3; +x_3 = l_Lean_Parser_Tactic_Conv_rewrite___closed__4; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -2452,7 +2424,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__6() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -2464,13 +2436,13 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__7() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_Conv_conv_quot___closed__13; -x_2 = l_Lean_Parser_Tactic_Conv_simp___closed__5; -x_3 = l_Lean_Parser_Tactic_Conv_simp___closed__6; +x_2 = l_Lean_Parser_Tactic_Conv_simp___closed__4; +x_3 = l_Lean_Parser_Tactic_Conv_simp___closed__5; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -2478,19 +2450,19 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__8() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__7() { _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("only ", 5); +x_1 = lean_mk_string_from_bytes(" only", 5); return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__9() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__8() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_Conv_simp___closed__8; +x_1 = l_Lean_Parser_Tactic_Conv_simp___closed__7; x_2 = 0; x_3 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -2498,25 +2470,25 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__10() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Tactic_Conv_conv___closed__5; -x_2 = l_Lean_Parser_Tactic_Conv_simp___closed__9; +x_2 = l_Lean_Parser_Tactic_Conv_simp___closed__8; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__11() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_Conv_conv_quot___closed__13; -x_2 = l_Lean_Parser_Tactic_Conv_simp___closed__7; -x_3 = l_Lean_Parser_Tactic_Conv_simp___closed__10; +x_2 = l_Lean_Parser_Tactic_Conv_simp___closed__6; +x_3 = l_Lean_Parser_Tactic_Conv_simp___closed__9; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -2524,25 +2496,25 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__12() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__11() { _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("[", 1); +x_1 = lean_mk_string_from_bytes(" [", 2); return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__13() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__12() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Tactic_Conv_simp___closed__12; +x_1 = l_Lean_Parser_Tactic_Conv_simp___closed__11; x_2 = lean_alloc_ctor(5, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__14() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__13() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; @@ -2556,13 +2528,13 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__15() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__14() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_Conv_convSeq___closed__4; x_2 = l_Lean_Parser_Tactic_simpStar; -x_3 = l_Lean_Parser_Tactic_Conv_simp___closed__14; +x_3 = l_Lean_Parser_Tactic_Conv_simp___closed__13; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -2570,7 +2542,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__16() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__15() { _start: { lean_object* x_1; @@ -2578,17 +2550,17 @@ x_1 = lean_mk_string_from_bytes(", ", 2); return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__17() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__16() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Tactic_Conv_simp___closed__16; +x_1 = l_Lean_Parser_Tactic_Conv_simp___closed__15; x_2 = lean_alloc_ctor(5, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__18() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__17() { _start: { lean_object* x_1; @@ -2596,13 +2568,13 @@ x_1 = lean_mk_string_from_bytes(",", 1); return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__19() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__18() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; -x_1 = l_Lean_Parser_Tactic_Conv_simp___closed__15; -x_2 = l_Lean_Parser_Tactic_Conv_simp___closed__18; -x_3 = l_Lean_Parser_Tactic_Conv_simp___closed__17; +x_1 = l_Lean_Parser_Tactic_Conv_simp___closed__14; +x_2 = l_Lean_Parser_Tactic_Conv_simp___closed__17; +x_3 = l_Lean_Parser_Tactic_Conv_simp___closed__16; x_4 = 0; x_5 = lean_alloc_ctor(10, 3, 1); lean_ctor_set(x_5, 0, x_1); @@ -2612,13 +2584,13 @@ lean_ctor_set_uint8(x_5, sizeof(void*)*3, x_4); return x_5; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__20() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__19() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_Conv_conv_quot___closed__13; -x_2 = l_Lean_Parser_Tactic_Conv_simp___closed__13; -x_3 = l_Lean_Parser_Tactic_Conv_simp___closed__19; +x_2 = l_Lean_Parser_Tactic_Conv_simp___closed__12; +x_3 = l_Lean_Parser_Tactic_Conv_simp___closed__18; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -2626,7 +2598,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__21() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__20() { _start: { lean_object* x_1; @@ -2634,23 +2606,23 @@ x_1 = lean_mk_string_from_bytes("]", 1); return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__22() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__21() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Tactic_Conv_simp___closed__21; +x_1 = l_Lean_Parser_Tactic_Conv_simp___closed__20; x_2 = lean_alloc_ctor(5, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__23() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__22() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_Conv_conv_quot___closed__13; -x_2 = l_Lean_Parser_Tactic_Conv_simp___closed__20; -x_3 = l_Lean_Parser_Tactic_Conv_simp___closed__22; +x_2 = l_Lean_Parser_Tactic_Conv_simp___closed__19; +x_3 = l_Lean_Parser_Tactic_Conv_simp___closed__21; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -2658,25 +2630,25 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__24() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__23() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Tactic_Conv_conv___closed__5; -x_2 = l_Lean_Parser_Tactic_Conv_simp___closed__23; +x_2 = l_Lean_Parser_Tactic_Conv_simp___closed__22; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__25() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__24() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_Conv_conv_quot___closed__13; -x_2 = l_Lean_Parser_Tactic_Conv_simp___closed__11; -x_3 = l_Lean_Parser_Tactic_Conv_simp___closed__24; +x_2 = l_Lean_Parser_Tactic_Conv_simp___closed__10; +x_3 = l_Lean_Parser_Tactic_Conv_simp___closed__23; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -2684,13 +2656,13 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__26() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp___closed__25() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_Conv_simp___closed__2; x_2 = lean_unsigned_to_nat(1022u); -x_3 = l_Lean_Parser_Tactic_Conv_simp___closed__25; +x_3 = l_Lean_Parser_Tactic_Conv_simp___closed__24; x_4 = lean_alloc_ctor(3, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -2702,7 +2674,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_Conv_simp() { _start: { lean_object* x_1; -x_1 = l_Lean_Parser_Tactic_Conv_simp___closed__26; +x_1 = l_Lean_Parser_Tactic_Conv_simp___closed__25; return x_1; } } @@ -3119,15 +3091,13 @@ return x_3; static lean_object* _init_l_Lean_Parser_Tactic_Conv_convConvSeq___closed__3() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Tactic_Conv_conv_quot___closed__13; -x_2 = l_Lean_Parser_Tactic_Conv_conv___closed__3; -x_3 = l_Lean_Parser_Tactic_Conv_conv___closed__23; -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; +lean_object* x_1; uint8_t x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Tactic_Conv_conv_quot___closed__9; +x_2 = 0; +x_3 = lean_alloc_ctor(6, 1, 1); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); +return x_3; } } static lean_object* _init_l_Lean_Parser_Tactic_Conv_convConvSeq___closed__4() { @@ -3136,7 +3106,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_Conv_conv_quot___closed__13; x_2 = l_Lean_Parser_Tactic_Conv_convConvSeq___closed__3; -x_3 = l_Lean_Parser_Tactic_Conv_convSeq; +x_3 = l_Lean_Parser_Tactic_Conv_conv___closed__23; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -3148,9 +3118,23 @@ static lean_object* _init_l_Lean_Parser_Tactic_Conv_convConvSeq___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Tactic_Conv_conv_quot___closed__13; +x_2 = l_Lean_Parser_Tactic_Conv_convConvSeq___closed__4; +x_3 = l_Lean_Parser_Tactic_Conv_convSeq; +x_4 = lean_alloc_ctor(2, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_Conv_convConvSeq___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_Conv_convConvSeq___closed__2; x_2 = lean_unsigned_to_nat(1022u); -x_3 = l_Lean_Parser_Tactic_Conv_convConvSeq___closed__4; +x_3 = l_Lean_Parser_Tactic_Conv_convConvSeq___closed__5; x_4 = lean_alloc_ctor(3, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -3162,7 +3146,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_Conv_convConvSeq() { _start: { lean_object* x_1; -x_1 = l_Lean_Parser_Tactic_Conv_convConvSeq___closed__5; +x_1 = l_Lean_Parser_Tactic_Conv_convConvSeq___closed__6; return x_1; } } @@ -3485,7 +3469,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_Conv_convRw_______closed__3() { _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("rw ", 3); +x_1 = lean_mk_string_from_bytes("rw", 2); return x_1; } } @@ -3507,7 +3491,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_Conv_conv_quot___closed__13; x_2 = l_Lean_Parser_Tactic_Conv_convRw_______closed__4; -x_3 = l_Lean_Parser_Tactic_Conv_rewrite___closed__5; +x_3 = l_Lean_Parser_Tactic_Conv_rewrite___closed__4; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -3734,7 +3718,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_Conv_convErw_____closed__3() { _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("erw ", 4); +x_1 = lean_mk_string_from_bytes("erw", 3); return x_1; } } @@ -3790,29 +3774,21 @@ static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macro _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("rw", 2); +x_1 = lean_mk_string_from_bytes("config", 6); return x_1; } } static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__2() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("config", 6); -return x_1; -} -} -static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__3() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Tactic_Conv_convSeq1Indented___closed__2; -x_2 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__2; +x_2 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__4() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__3() { _start: { lean_object* x_1; @@ -3820,7 +3796,7 @@ x_1 = lean_mk_string_from_bytes(":=", 2); return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__5() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__4() { _start: { lean_object* x_1; @@ -3828,17 +3804,17 @@ x_1 = lean_mk_string_from_bytes("structInst", 10); return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__6() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Tactic_Conv_conv_quot___closed__6; -x_2 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__5; +x_2 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__4; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__7() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__6() { _start: { lean_object* x_1; @@ -3846,17 +3822,17 @@ x_1 = lean_mk_string_from_bytes("structInstField", 15); return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__8() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Tactic_Conv_conv_quot___closed__6; -x_2 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__7; +x_2 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__6; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__9() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__8() { _start: { lean_object* x_1; @@ -3864,17 +3840,17 @@ x_1 = lean_mk_string_from_bytes("structInstLVal", 14); return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__10() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Tactic_Conv_conv_quot___closed__6; -x_2 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__9; +x_2 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__8; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__11() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__10() { _start: { lean_object* x_1; @@ -3882,22 +3858,22 @@ x_1 = lean_mk_string_from_bytes("transparency", 12); return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__12() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__11() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__11; +x_1 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__10; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__13() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__11; +x_1 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__10; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__12; +x_3 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__11; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -3905,17 +3881,17 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__14() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__13() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__11; +x_2 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__10; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__15() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__14() { _start: { lean_object* x_1; lean_object* x_2; @@ -3924,7 +3900,7 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__16() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__15() { _start: { lean_object* x_1; @@ -3932,17 +3908,17 @@ x_1 = lean_mk_string_from_bytes("dotIdent", 8); return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__17() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__16() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Tactic_Conv_conv_quot___closed__6; -x_2 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__16; +x_2 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__15; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__18() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__17() { _start: { lean_object* x_1; @@ -3950,22 +3926,22 @@ x_1 = lean_mk_string_from_bytes("default", 7); return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__19() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__18() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__18; +x_1 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__17; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__20() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__19() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__18; +x_1 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__17; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__19; +x_3 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__18; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -3973,17 +3949,17 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__21() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__20() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__18; +x_2 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__17; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__22() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__21() { _start: { lean_object* x_1; @@ -3991,12 +3967,22 @@ x_1 = lean_mk_string_from_bytes("Inhabited", 9); return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__23() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__22() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__22; +x_2 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__21; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__23() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__22; +x_2 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__17; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } @@ -4005,59 +3991,49 @@ static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macro _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__23; -x_2 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__18; -x_3 = l_Lean_Name_str___override(x_1, x_2); +x_1 = lean_box(0); +x_2 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__23; +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; } } static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__25() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__24; -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* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__20; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; } } static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__26() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__21; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__25; +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; } } static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__27() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); +x_1 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__24; x_2 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__26; 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; -} -} -static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__28() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__25; -x_2 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__27; -x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__29() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__28() { _start: { lean_object* x_1; @@ -4065,17 +4041,17 @@ x_1 = lean_mk_string_from_bytes("optEllipsis", 11); return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__30() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__29() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Tactic_Conv_conv_quot___closed__6; -x_2 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__29; +x_2 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__28; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__31() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__30() { _start: { lean_object* x_1; lean_object* x_2; @@ -4084,7 +4060,7 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__32() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__31() { _start: { lean_object* x_1; lean_object* x_2; @@ -4129,7 +4105,7 @@ lean_inc(x_13); x_14 = lean_ctor_get(x_2, 1); lean_inc(x_14); lean_dec(x_2); -x_15 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__1; +x_15 = l_Lean_Parser_Tactic_Conv_convRw_______closed__3; lean_inc(x_12); x_16 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_16, 0, x_12); @@ -4139,12 +4115,12 @@ lean_inc(x_12); x_18 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_18, 0, x_12); lean_ctor_set(x_18, 1, x_17); -x_19 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__2; +x_19 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__1; lean_inc(x_12); x_20 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_20, 0, x_12); lean_ctor_set(x_20, 1, x_19); -x_21 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__4; +x_21 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__3; lean_inc(x_12); x_22 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_22, 0, x_12); @@ -4161,23 +4137,23 @@ x_27 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_27, 0, x_12); lean_ctor_set(x_27, 1, x_25); lean_ctor_set(x_27, 2, x_26); -x_28 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__14; +x_28 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__13; lean_inc(x_13); lean_inc(x_14); x_29 = l_Lean_addMacroScope(x_14, x_28, x_13); x_30 = lean_box(0); -x_31 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__13; +x_31 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__12; lean_inc(x_12); x_32 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_32, 0, x_12); lean_ctor_set(x_32, 1, x_31); lean_ctor_set(x_32, 2, x_29); lean_ctor_set(x_32, 3, x_30); -x_33 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__15; +x_33 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__14; x_34 = lean_array_push(x_33, x_32); lean_inc(x_27); x_35 = lean_array_push(x_34, x_27); -x_36 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__10; +x_36 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__9; lean_inc(x_12); x_37 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_37, 0, x_12); @@ -4188,10 +4164,10 @@ lean_inc(x_12); x_39 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_39, 0, x_12); lean_ctor_set(x_39, 1, x_38); -x_40 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__21; +x_40 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__20; x_41 = l_Lean_addMacroScope(x_14, x_40, x_13); -x_42 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__20; -x_43 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__28; +x_42 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__19; +x_43 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__27; lean_inc(x_12); x_44 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_44, 0, x_12); @@ -4200,7 +4176,7 @@ lean_ctor_set(x_44, 2, x_41); lean_ctor_set(x_44, 3, x_43); x_45 = lean_array_push(x_33, x_39); x_46 = lean_array_push(x_45, x_44); -x_47 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__17; +x_47 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__16; lean_inc(x_12); x_48 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_48, 0, x_12); @@ -4211,7 +4187,7 @@ x_50 = lean_array_push(x_49, x_37); lean_inc(x_22); x_51 = lean_array_push(x_50, x_22); x_52 = lean_array_push(x_51, x_48); -x_53 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__8; +x_53 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__7; lean_inc(x_12); x_54 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_54, 0, x_12); @@ -4226,7 +4202,7 @@ lean_ctor_set(x_57, 1, x_25); lean_ctor_set(x_57, 2, x_56); lean_inc(x_27); x_58 = lean_array_push(x_55, x_27); -x_59 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__30; +x_59 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__29; lean_inc(x_12); x_60 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_60, 0, x_12); @@ -4237,7 +4213,7 @@ lean_inc(x_12); x_62 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_62, 0, x_12); lean_ctor_set(x_62, 1, x_61); -x_63 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__31; +x_63 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__30; x_64 = lean_array_push(x_63, x_24); lean_inc(x_27); x_65 = lean_array_push(x_64, x_27); @@ -4245,7 +4221,7 @@ x_66 = lean_array_push(x_65, x_57); x_67 = lean_array_push(x_66, x_60); x_68 = lean_array_push(x_67, x_27); x_69 = lean_array_push(x_68, x_62); -x_70 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__6; +x_70 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__5; lean_inc(x_12); x_71 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_71, 0, x_12); @@ -4256,13 +4232,13 @@ lean_inc(x_12); x_73 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_73, 0, x_12); lean_ctor_set(x_73, 1, x_72); -x_74 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__32; +x_74 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__31; x_75 = lean_array_push(x_74, x_18); x_76 = lean_array_push(x_75, x_20); x_77 = lean_array_push(x_76, x_22); x_78 = lean_array_push(x_77, x_71); x_79 = lean_array_push(x_78, x_73); -x_80 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__3; +x_80 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__2; lean_inc(x_12); x_81 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_81, 0, x_12); @@ -4298,7 +4274,7 @@ lean_inc(x_91); x_92 = lean_ctor_get(x_2, 1); lean_inc(x_92); lean_dec(x_2); -x_93 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__1; +x_93 = l_Lean_Parser_Tactic_Conv_convRw_______closed__3; lean_inc(x_89); x_94 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_94, 0, x_89); @@ -4308,12 +4284,12 @@ lean_inc(x_89); x_96 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_96, 0, x_89); lean_ctor_set(x_96, 1, x_95); -x_97 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__2; +x_97 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__1; lean_inc(x_89); x_98 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_98, 0, x_89); lean_ctor_set(x_98, 1, x_97); -x_99 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__4; +x_99 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__3; lean_inc(x_89); x_100 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_100, 0, x_89); @@ -4330,23 +4306,23 @@ x_105 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_105, 0, x_89); lean_ctor_set(x_105, 1, x_103); lean_ctor_set(x_105, 2, x_104); -x_106 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__14; +x_106 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__13; lean_inc(x_91); lean_inc(x_92); x_107 = l_Lean_addMacroScope(x_92, x_106, x_91); x_108 = lean_box(0); -x_109 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__13; +x_109 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__12; lean_inc(x_89); x_110 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_110, 0, x_89); lean_ctor_set(x_110, 1, x_109); lean_ctor_set(x_110, 2, x_107); lean_ctor_set(x_110, 3, x_108); -x_111 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__15; +x_111 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__14; x_112 = lean_array_push(x_111, x_110); lean_inc(x_105); x_113 = lean_array_push(x_112, x_105); -x_114 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__10; +x_114 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__9; lean_inc(x_89); x_115 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_115, 0, x_89); @@ -4357,10 +4333,10 @@ lean_inc(x_89); x_117 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_117, 0, x_89); lean_ctor_set(x_117, 1, x_116); -x_118 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__21; +x_118 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__20; x_119 = l_Lean_addMacroScope(x_92, x_118, x_91); -x_120 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__20; -x_121 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__28; +x_120 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__19; +x_121 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__27; lean_inc(x_89); x_122 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_122, 0, x_89); @@ -4369,7 +4345,7 @@ lean_ctor_set(x_122, 2, x_119); lean_ctor_set(x_122, 3, x_121); x_123 = lean_array_push(x_111, x_117); x_124 = lean_array_push(x_123, x_122); -x_125 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__17; +x_125 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__16; lean_inc(x_89); x_126 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_126, 0, x_89); @@ -4380,7 +4356,7 @@ x_128 = lean_array_push(x_127, x_115); lean_inc(x_100); x_129 = lean_array_push(x_128, x_100); x_130 = lean_array_push(x_129, x_126); -x_131 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__8; +x_131 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__7; lean_inc(x_89); x_132 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_132, 0, x_89); @@ -4395,7 +4371,7 @@ lean_ctor_set(x_135, 1, x_103); lean_ctor_set(x_135, 2, x_134); lean_inc(x_105); x_136 = lean_array_push(x_133, x_105); -x_137 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__30; +x_137 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__29; lean_inc(x_89); x_138 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_138, 0, x_89); @@ -4406,7 +4382,7 @@ lean_inc(x_89); x_140 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_140, 0, x_89); lean_ctor_set(x_140, 1, x_139); -x_141 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__31; +x_141 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__30; x_142 = lean_array_push(x_141, x_102); lean_inc(x_105); x_143 = lean_array_push(x_142, x_105); @@ -4414,7 +4390,7 @@ x_144 = lean_array_push(x_143, x_135); x_145 = lean_array_push(x_144, x_138); x_146 = lean_array_push(x_145, x_105); x_147 = lean_array_push(x_146, x_140); -x_148 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__6; +x_148 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__5; lean_inc(x_89); x_149 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_149, 0, x_89); @@ -4425,13 +4401,13 @@ lean_inc(x_89); x_151 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_151, 0, x_89); lean_ctor_set(x_151, 1, x_150); -x_152 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__32; +x_152 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__31; x_153 = lean_array_push(x_152, x_96); x_154 = lean_array_push(x_153, x_98); x_155 = lean_array_push(x_154, x_100); x_156 = lean_array_push(x_155, x_149); x_157 = lean_array_push(x_156, x_151); -x_158 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__3; +x_158 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__2; lean_inc(x_89); x_159 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_159, 0, x_89); @@ -4865,7 +4841,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_Conv_convIntro_______closed__3() _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("intro ", 6); +x_1 = lean_mk_string_from_bytes("intro", 5); return x_1; } } @@ -4887,7 +4863,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_Conv_conv_quot___closed__13; x_2 = l_Lean_Parser_Tactic_Conv_convIntro_______closed__4; -x_3 = l_Lean_Parser_Tactic_Conv_ext___closed__11; +x_3 = l_Lean_Parser_Tactic_Conv_ext___closed__10; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -4962,7 +4938,7 @@ x_19 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_19, 0, x_13); lean_ctor_set(x_19, 1, x_18); lean_ctor_set(x_19, 2, x_17); -x_20 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__15; +x_20 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__14; x_21 = lean_array_push(x_20, x_15); x_22 = lean_array_push(x_21, x_19); x_23 = l_Lean_Parser_Tactic_Conv_ext___closed__2; @@ -4994,7 +4970,7 @@ x_32 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_32, 0, x_25); lean_ctor_set(x_32, 1, x_31); lean_ctor_set(x_32, 2, x_30); -x_33 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__15; +x_33 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__14; x_34 = lean_array_push(x_33, x_28); x_35 = lean_array_push(x_34, x_32); x_36 = l_Lean_Parser_Tactic_Conv_ext___closed__2; @@ -5130,7 +5106,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_Conv_convEnter_x5b_____x5d___clos _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("enter ", 6); +x_1 = lean_mk_string_from_bytes("enter", 5); return x_1; } } @@ -5152,7 +5128,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_Conv_conv_quot___closed__13; x_2 = l_Lean_Parser_Tactic_Conv_convEnter_x5b_____x5d___closed__4; -x_3 = l_Lean_Parser_Tactic_Conv_simp___closed__13; +x_3 = l_Lean_Parser_Tactic_Conv_simp___closed__12; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -5165,7 +5141,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_Conv_conv_quot___closed__13; -x_2 = l_Lean_Parser_Tactic_Conv_ext___closed__9; +x_2 = l_Lean_Parser_Tactic_Conv_ext___closed__8; x_3 = l_Lean_Parser_Tactic_Conv_enterArg; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); @@ -5179,8 +5155,8 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; x_1 = l_Lean_Parser_Tactic_Conv_convEnter_x5b_____x5d___closed__6; -x_2 = l_Lean_Parser_Tactic_Conv_simp___closed__18; -x_3 = l_Lean_Parser_Tactic_Conv_simp___closed__17; +x_2 = l_Lean_Parser_Tactic_Conv_simp___closed__17; +x_3 = l_Lean_Parser_Tactic_Conv_simp___closed__16; x_4 = 0; x_5 = lean_alloc_ctor(11, 3, 1); lean_ctor_set(x_5, 0, x_1); @@ -5210,7 +5186,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_Conv_conv_quot___closed__13; x_2 = l_Lean_Parser_Tactic_Conv_convEnter_x5b_____x5d___closed__8; -x_3 = l_Lean_Parser_Tactic_Conv_simp___closed__22; +x_3 = l_Lean_Parser_Tactic_Conv_simp___closed__21; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -5244,7 +5220,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macro _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("enter", 5); +x_1 = lean_mk_string_from_bytes("[", 1); return x_1; } } @@ -5338,12 +5314,12 @@ lean_inc(x_27); x_29 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_29, 0, x_27); lean_ctor_set(x_29, 1, x_28); -x_30 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convEnter_x5b_____x5d__1___closed__1; +x_30 = l_Lean_Parser_Tactic_Conv_convEnter_x5b_____x5d___closed__3; lean_inc(x_27); x_31 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_31, 0, x_27); lean_ctor_set(x_31, 1, x_30); -x_32 = l_Lean_Parser_Tactic_Conv_simp___closed__12; +x_32 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convEnter_x5b_____x5d__1___closed__1; lean_inc(x_27); x_33 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_33, 0, x_27); @@ -5355,7 +5331,7 @@ x_36 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_36, 0, x_27); lean_ctor_set(x_36, 1, x_22); lean_ctor_set(x_36, 2, x_35); -x_37 = l_Lean_Parser_Tactic_Conv_simp___closed__21; +x_37 = l_Lean_Parser_Tactic_Conv_simp___closed__20; lean_inc(x_27); x_38 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_38, 0, x_27); @@ -5443,12 +5419,12 @@ lean_inc(x_71); x_74 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_74, 0, x_71); lean_ctor_set(x_74, 1, x_73); -x_75 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convEnter_x5b_____x5d__1___closed__1; +x_75 = l_Lean_Parser_Tactic_Conv_convEnter_x5b_____x5d___closed__3; lean_inc(x_71); x_76 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_76, 0, x_71); lean_ctor_set(x_76, 1, x_75); -x_77 = l_Lean_Parser_Tactic_Conv_simp___closed__12; +x_77 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convEnter_x5b_____x5d__1___closed__1; lean_inc(x_71); x_78 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_78, 0, x_71); @@ -5460,7 +5436,7 @@ x_81 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_81, 0, x_71); lean_ctor_set(x_81, 1, x_22); lean_ctor_set(x_81, 2, x_80); -x_82 = l_Lean_Parser_Tactic_Conv_simp___closed__21; +x_82 = l_Lean_Parser_Tactic_Conv_simp___closed__20; lean_inc(x_71); x_83 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_83, 0, x_71); @@ -5606,7 +5582,7 @@ x_138 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_138, 0, x_132); lean_ctor_set(x_138, 1, x_137); lean_ctor_set(x_138, 2, x_136); -x_139 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__15; +x_139 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__14; x_140 = lean_array_push(x_139, x_134); x_141 = lean_array_push(x_140, x_138); x_142 = l_Lean_Parser_Tactic_Conv_ext___closed__2; @@ -5638,7 +5614,7 @@ x_151 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_151, 0, x_144); lean_ctor_set(x_151, 1, x_150); lean_ctor_set(x_151, 2, x_149); -x_152 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__15; +x_152 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__14; x_153 = lean_array_push(x_152, x_147); x_154 = lean_array_push(x_153, x_151); x_155 = l_Lean_Parser_Tactic_Conv_ext___closed__2; @@ -6701,7 +6677,7 @@ lean_inc(x_12); x_18 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_18, 0, x_12); lean_ctor_set(x_18, 1, x_17); -x_19 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__15; +x_19 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__14; x_20 = lean_array_push(x_19, x_18); x_21 = lean_array_push(x_20, x_9); x_22 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convApply____1___closed__2; @@ -6767,7 +6743,7 @@ lean_inc(x_40); x_47 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_47, 0, x_40); lean_ctor_set(x_47, 1, x_46); -x_48 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__15; +x_48 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__14; x_49 = lean_array_push(x_48, x_47); x_50 = lean_array_push(x_49, x_9); x_51 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convApply____1___closed__2; @@ -7039,7 +7015,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_Conv_convRepeat_____closed__3() { _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("repeat ", 7); +x_1 = lean_mk_string_from_bytes("repeat", 6); return x_1; } } @@ -7091,14 +7067,6 @@ x_1 = l_Lean_Parser_Tactic_Conv_convRepeat_____closed__6; return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convRepeat____1___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("repeat", 6); -return x_1; -} -} LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convRepeat____1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -7165,12 +7133,12 @@ lean_inc(x_12); x_28 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_28, 0, x_12); lean_ctor_set(x_28, 1, x_27); -x_29 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convRepeat____1___closed__1; +x_29 = l_Lean_Parser_Tactic_Conv_convRepeat_____closed__3; lean_inc(x_12); x_30 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_30, 0, x_12); lean_ctor_set(x_30, 1, x_29); -x_31 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__15; +x_31 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__14; x_32 = lean_array_push(x_31, x_30); x_33 = lean_array_push(x_32, x_9); lean_inc(x_12); @@ -7308,12 +7276,12 @@ lean_inc(x_71); x_88 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_88, 0, x_71); lean_ctor_set(x_88, 1, x_87); -x_89 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convRepeat____1___closed__1; +x_89 = l_Lean_Parser_Tactic_Conv_convRepeat_____closed__3; lean_inc(x_71); x_90 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_90, 0, x_71); lean_ctor_set(x_90, 1, x_89); -x_91 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__15; +x_91 = l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__14; x_92 = lean_array_push(x_91, x_90); x_93 = lean_array_push(x_92, x_9); lean_inc(x_71); @@ -7707,8 +7675,6 @@ l_Lean_Parser_Tactic_Conv_ext___closed__11 = _init_l_Lean_Parser_Tactic_Conv_ext lean_mark_persistent(l_Lean_Parser_Tactic_Conv_ext___closed__11); l_Lean_Parser_Tactic_Conv_ext___closed__12 = _init_l_Lean_Parser_Tactic_Conv_ext___closed__12(); lean_mark_persistent(l_Lean_Parser_Tactic_Conv_ext___closed__12); -l_Lean_Parser_Tactic_Conv_ext___closed__13 = _init_l_Lean_Parser_Tactic_Conv_ext___closed__13(); -lean_mark_persistent(l_Lean_Parser_Tactic_Conv_ext___closed__13); l_Lean_Parser_Tactic_Conv_ext = _init_l_Lean_Parser_Tactic_Conv_ext(); lean_mark_persistent(l_Lean_Parser_Tactic_Conv_ext); l_Lean_Parser_Tactic_Conv_change___closed__1 = _init_l_Lean_Parser_Tactic_Conv_change___closed__1(); @@ -7787,8 +7753,6 @@ l_Lean_Parser_Tactic_Conv_rewrite___closed__6 = _init_l_Lean_Parser_Tactic_Conv_ lean_mark_persistent(l_Lean_Parser_Tactic_Conv_rewrite___closed__6); l_Lean_Parser_Tactic_Conv_rewrite___closed__7 = _init_l_Lean_Parser_Tactic_Conv_rewrite___closed__7(); lean_mark_persistent(l_Lean_Parser_Tactic_Conv_rewrite___closed__7); -l_Lean_Parser_Tactic_Conv_rewrite___closed__8 = _init_l_Lean_Parser_Tactic_Conv_rewrite___closed__8(); -lean_mark_persistent(l_Lean_Parser_Tactic_Conv_rewrite___closed__8); l_Lean_Parser_Tactic_Conv_rewrite = _init_l_Lean_Parser_Tactic_Conv_rewrite(); lean_mark_persistent(l_Lean_Parser_Tactic_Conv_rewrite); l_Lean_Parser_Tactic_Conv_simp___closed__1 = _init_l_Lean_Parser_Tactic_Conv_simp___closed__1(); @@ -7841,8 +7805,6 @@ l_Lean_Parser_Tactic_Conv_simp___closed__24 = _init_l_Lean_Parser_Tactic_Conv_si lean_mark_persistent(l_Lean_Parser_Tactic_Conv_simp___closed__24); l_Lean_Parser_Tactic_Conv_simp___closed__25 = _init_l_Lean_Parser_Tactic_Conv_simp___closed__25(); lean_mark_persistent(l_Lean_Parser_Tactic_Conv_simp___closed__25); -l_Lean_Parser_Tactic_Conv_simp___closed__26 = _init_l_Lean_Parser_Tactic_Conv_simp___closed__26(); -lean_mark_persistent(l_Lean_Parser_Tactic_Conv_simp___closed__26); l_Lean_Parser_Tactic_Conv_simp = _init_l_Lean_Parser_Tactic_Conv_simp(); lean_mark_persistent(l_Lean_Parser_Tactic_Conv_simp); l_Lean_Parser_Tactic_Conv_simpMatch___closed__1 = _init_l_Lean_Parser_Tactic_Conv_simpMatch___closed__1(); @@ -7929,6 +7891,8 @@ l_Lean_Parser_Tactic_Conv_convConvSeq___closed__4 = _init_l_Lean_Parser_Tactic_C lean_mark_persistent(l_Lean_Parser_Tactic_Conv_convConvSeq___closed__4); l_Lean_Parser_Tactic_Conv_convConvSeq___closed__5 = _init_l_Lean_Parser_Tactic_Conv_convConvSeq___closed__5(); lean_mark_persistent(l_Lean_Parser_Tactic_Conv_convConvSeq___closed__5); +l_Lean_Parser_Tactic_Conv_convConvSeq___closed__6 = _init_l_Lean_Parser_Tactic_Conv_convConvSeq___closed__6(); +lean_mark_persistent(l_Lean_Parser_Tactic_Conv_convConvSeq___closed__6); l_Lean_Parser_Tactic_Conv_convConvSeq = _init_l_Lean_Parser_Tactic_Conv_convConvSeq(); lean_mark_persistent(l_Lean_Parser_Tactic_Conv_convConvSeq); l_Lean_Parser_Tactic_Conv_conv_xb7_x2e_____closed__1 = _init_l_Lean_Parser_Tactic_Conv_conv_xb7_x2e_____closed__1(); @@ -8055,8 +8019,6 @@ l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tacti lean_mark_persistent(l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__30); l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__31 = _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__31(); lean_mark_persistent(l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__31); -l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__32 = _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__32(); -lean_mark_persistent(l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convErw____1___closed__32); l_Lean_Parser_Tactic_Conv_convArgs___closed__1 = _init_l_Lean_Parser_Tactic_Conv_convArgs___closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_Conv_convArgs___closed__1); l_Lean_Parser_Tactic_Conv_convArgs___closed__2 = _init_l_Lean_Parser_Tactic_Conv_convArgs___closed__2(); @@ -8277,8 +8239,6 @@ l_Lean_Parser_Tactic_Conv_convRepeat_____closed__6 = _init_l_Lean_Parser_Tactic_ lean_mark_persistent(l_Lean_Parser_Tactic_Conv_convRepeat_____closed__6); l_Lean_Parser_Tactic_Conv_convRepeat__ = _init_l_Lean_Parser_Tactic_Conv_convRepeat__(); lean_mark_persistent(l_Lean_Parser_Tactic_Conv_convRepeat__); -l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convRepeat____1___closed__1 = _init_l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convRepeat____1___closed__1(); -lean_mark_persistent(l_Lean_Parser_Tactic_Conv___aux__Init__Conv______macroRules__Lean__Parser__Tactic__Conv__convRepeat____1___closed__1); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Init/Meta.c b/stage0/stdlib/Init/Meta.c index a4a884b99c..ad0982fd9b 100644 --- a/stage0/stdlib/Init/Meta.c +++ b/stage0/stdlib/Init/Meta.c @@ -346,6 +346,7 @@ LEAN_EXPORT lean_object* l_Lean_TSyntax_instCoeTSyntaxConsSyntaxNodeKindNil(lean static lean_object* l_Lean_toolchain___closed__5; static lean_object* l_Lean_Parser_Tactic___aux__Init__Meta______macroRules__Lean__Parser__Tactic__declareSimpLikeTactic__1___lambda__1___closed__42; uint8_t lean_usize_dec_lt(size_t, size_t); +static lean_object* l_Lean_Parser_Tactic_simpAutoUnfold___closed__26; static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_12088____closed__14; static lean_object* l_Lean_Option_hasQuote___rarg___closed__1; LEAN_EXPORT lean_object* l_Lean_version_patch; @@ -629,7 +630,6 @@ LEAN_EXPORT lean_object* l_Lean_TSyntax_instCoeStrLitTerm(lean_object*); LEAN_EXPORT lean_object* l_Lean_TSyntax_expandInterpolatedStrChunks(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_setKind(lean_object*, lean_object*); static lean_object* l_Lean_Parser_Tactic___aux__Init__Meta______macroRules__Lean__Parser__Tactic__declareSimpLikeTactic__1___closed__42; -static lean_object* l_Lean_Parser_Tactic_expandSimp____x40_Init_Meta___hyg_22774____lambda__1___closed__1; LEAN_EXPORT lean_object* lean_name_append_index_after(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Name_eraseSuffix_x3f(lean_object*, lean_object*); static lean_object* l___private_Init_Meta_0__Lean_Meta_reprTransparencyMode____x40_Init_Meta___hyg_10846____closed__7; @@ -1035,7 +1035,6 @@ LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_tacticErw____; static lean_object* l___private_Init_Meta_0__Lean_Syntax_reprSyntax____x40_Init_Meta___hyg_2120____closed__3; lean_object* l_Lean_Syntax_getKind(lean_object*); static lean_object* l_Lean_Parser_Tactic_simpAllArith___closed__8; -static lean_object* l_Lean_Parser_Tactic_expandSimp____x40_Init_Meta___hyg_16762____lambda__1___closed__1; static lean_object* l_Lean_TSyntax_expandInterpolatedStr___closed__6; LEAN_EXPORT lean_object* l_Lean___aux__Init__Meta______macroRules__Lean__Parser__Syntax__subPrec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MacroScopesView_review(lean_object*); @@ -26892,7 +26891,7 @@ static lean_object* _init_l_Lean_Parser_Tactic___aux__Init__Meta______macroRules _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("\"dsimp \"", 8); +x_1 = lean_mk_string_from_bytes("\"dsimp\"", 7); return x_1; } } @@ -27179,7 +27178,7 @@ static lean_object* _init_l_Lean_Parser_Tactic___aux__Init__Meta______macroRules _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("\"only \"", 7); +x_1 = lean_mk_string_from_bytes("\" only\"", 7); return x_1; } } @@ -27187,7 +27186,7 @@ static lean_object* _init_l_Lean_Parser_Tactic___aux__Init__Meta______macroRules _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("\"[\"", 3); +x_1 = lean_mk_string_from_bytes("\" [\"", 4); return x_1; } } @@ -27693,7 +27692,7 @@ static lean_object* _init_l_Lean_Parser_Tactic___aux__Init__Meta______macroRules _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("\"simp_all \"", 11); +x_1 = lean_mk_string_from_bytes("\"simp_all\"", 10); return x_1; } } @@ -27798,7 +27797,7 @@ static lean_object* _init_l_Lean_Parser_Tactic___aux__Init__Meta______macroRules _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("\"simp \"", 7); +x_1 = lean_mk_string_from_bytes("\"simp\"", 6); return x_1; } } @@ -29770,7 +29769,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_simpAutoUnfold___closed__9() { _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("only ", 5); +x_1 = lean_mk_string_from_bytes(" only", 5); return x_1; } } @@ -29815,14 +29814,22 @@ return x_4; static lean_object* _init_l_Lean_Parser_Tactic_simpAutoUnfold___closed__13() { _start: { +lean_object* x_1; +x_1 = lean_mk_string_from_bytes(" [", 2); +return x_1; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_simpAutoUnfold___closed__14() { +_start: +{ lean_object* x_1; lean_object* x_2; -x_1 = l_List_repr_x27___at___private_Init_Meta_0__Lean_Syntax_reprPreresolved____x40_Init_Meta___hyg_2003____spec__1___closed__6; +x_1 = l_Lean_Parser_Tactic_simpAutoUnfold___closed__13; x_2 = lean_alloc_ctor(5, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Tactic_simpAutoUnfold___closed__14() { +static lean_object* _init_l_Lean_Parser_Tactic_simpAutoUnfold___closed__15() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; @@ -29836,13 +29843,13 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Parser_Tactic_simpAutoUnfold___closed__15() { +static lean_object* _init_l_Lean_Parser_Tactic_simpAutoUnfold___closed__16() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_declareSimpLikeTactic___closed__11; x_2 = l_Lean_Parser_Tactic_simpStar; -x_3 = l_Lean_Parser_Tactic_simpAutoUnfold___closed__14; +x_3 = l_Lean_Parser_Tactic_simpAutoUnfold___closed__15; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -29850,7 +29857,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Parser_Tactic_simpAutoUnfold___closed__16() { +static lean_object* _init_l_Lean_Parser_Tactic_simpAutoUnfold___closed__17() { _start: { lean_object* x_1; @@ -29858,23 +29865,23 @@ x_1 = lean_mk_string_from_bytes(", ", 2); return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_simpAutoUnfold___closed__17() { +static lean_object* _init_l_Lean_Parser_Tactic_simpAutoUnfold___closed__18() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Tactic_simpAutoUnfold___closed__16; +x_1 = l_Lean_Parser_Tactic_simpAutoUnfold___closed__17; x_2 = lean_alloc_ctor(5, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Tactic_simpAutoUnfold___closed__18() { +static lean_object* _init_l_Lean_Parser_Tactic_simpAutoUnfold___closed__19() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; -x_1 = l_Lean_Parser_Tactic_simpAutoUnfold___closed__15; +x_1 = l_Lean_Parser_Tactic_simpAutoUnfold___closed__16; x_2 = l_List_repr_x27___at___private_Init_Meta_0__Lean_Syntax_reprPreresolved____x40_Init_Meta___hyg_2003____spec__1___closed__3; -x_3 = l_Lean_Parser_Tactic_simpAutoUnfold___closed__17; +x_3 = l_Lean_Parser_Tactic_simpAutoUnfold___closed__18; x_4 = 0; x_5 = lean_alloc_ctor(10, 3, 1); lean_ctor_set(x_5, 0, x_1); @@ -29884,13 +29891,13 @@ lean_ctor_set_uint8(x_5, sizeof(void*)*3, x_4); return x_5; } } -static lean_object* _init_l_Lean_Parser_Tactic_simpAutoUnfold___closed__19() { +static lean_object* _init_l_Lean_Parser_Tactic_simpAutoUnfold___closed__20() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_termEval__prec_____closed__4; -x_2 = l_Lean_Parser_Tactic_simpAutoUnfold___closed__13; -x_3 = l_Lean_Parser_Tactic_simpAutoUnfold___closed__18; +x_2 = l_Lean_Parser_Tactic_simpAutoUnfold___closed__14; +x_3 = l_Lean_Parser_Tactic_simpAutoUnfold___closed__19; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -29898,7 +29905,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Parser_Tactic_simpAutoUnfold___closed__20() { +static lean_object* _init_l_Lean_Parser_Tactic_simpAutoUnfold___closed__21() { _start: { lean_object* x_1; lean_object* x_2; @@ -29908,13 +29915,13 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Tactic_simpAutoUnfold___closed__21() { +static lean_object* _init_l_Lean_Parser_Tactic_simpAutoUnfold___closed__22() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_termEval__prec_____closed__4; -x_2 = l_Lean_Parser_Tactic_simpAutoUnfold___closed__19; -x_3 = l_Lean_Parser_Tactic_simpAutoUnfold___closed__20; +x_2 = l_Lean_Parser_Tactic_simpAutoUnfold___closed__20; +x_3 = l_Lean_Parser_Tactic_simpAutoUnfold___closed__21; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -29922,30 +29929,16 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Parser_Tactic_simpAutoUnfold___closed__22() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_tacticErw_______closed__9; -x_2 = l_Lean_Parser_Tactic_simpAutoUnfold___closed__21; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} static lean_object* _init_l_Lean_Parser_Tactic_simpAutoUnfold___closed__23() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_termEval__prec_____closed__4; -x_2 = l_Lean_Parser_Tactic_simpAutoUnfold___closed__12; -x_3 = l_Lean_Parser_Tactic_simpAutoUnfold___closed__22; -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; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Tactic_tacticErw_______closed__9; +x_2 = l_Lean_Parser_Tactic_simpAutoUnfold___closed__22; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; } } static lean_object* _init_l_Lean_Parser_Tactic_simpAutoUnfold___closed__24() { @@ -29953,8 +29946,8 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_termEval__prec_____closed__4; -x_2 = l_Lean_Parser_Tactic_simpAutoUnfold___closed__23; -x_3 = l_Lean_Parser_Tactic_tacticErw_______closed__10; +x_2 = l_Lean_Parser_Tactic_simpAutoUnfold___closed__12; +x_3 = l_Lean_Parser_Tactic_simpAutoUnfold___closed__23; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -29966,9 +29959,23 @@ static lean_object* _init_l_Lean_Parser_Tactic_simpAutoUnfold___closed__25() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_termEval__prec_____closed__4; +x_2 = l_Lean_Parser_Tactic_simpAutoUnfold___closed__24; +x_3 = l_Lean_Parser_Tactic_tacticErw_______closed__10; +x_4 = lean_alloc_ctor(2, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_simpAutoUnfold___closed__26() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_simpAutoUnfold___closed__2; x_2 = lean_unsigned_to_nat(1022u); -x_3 = l_Lean_Parser_Tactic_simpAutoUnfold___closed__24; +x_3 = l_Lean_Parser_Tactic_simpAutoUnfold___closed__25; x_4 = lean_alloc_ctor(3, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -29980,15 +29987,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_simpAutoUnfold() { _start: { lean_object* x_1; -x_1 = l_Lean_Parser_Tactic_simpAutoUnfold___closed__25; -return x_1; -} -} -static lean_object* _init_l_Lean_Parser_Tactic_expandSimp____x40_Init_Meta___hyg_16762____lambda__1___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("simp ", 5); +x_1 = l_Lean_Parser_Tactic_simpAutoUnfold___closed__26; return x_1; } } @@ -30000,7 +29999,7 @@ x_5 = l_Lean_Parser_Tactic___aux__Init__Meta______macroRules__Lean__Parser__Tact x_6 = l_Lean_Syntax_setKind(x_1, x_5); x_7 = lean_unsigned_to_nat(0u); x_8 = l_Lean_Syntax_getArg(x_6, x_7); -x_9 = l_Lean_Parser_Tactic_expandSimp____x40_Init_Meta___hyg_16762____lambda__1___closed__1; +x_9 = l_Lean_Parser_Tactic___aux__Init__Meta______macroRules__Lean__Parser__Tactic__declareSimpLikeTactic__1___closed__91; x_10 = l_Lean_mkAtomFrom(x_8, x_9); x_11 = l_Lean_Syntax_setArg(x_6, x_7, x_10); x_12 = l_Lean_mkOptionalNode___closed__2; @@ -30937,7 +30936,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_termEval__prec_____closed__4; x_2 = l_Lean_Parser_Tactic_simpArith___closed__7; -x_3 = l_Lean_Parser_Tactic_simpAutoUnfold___closed__22; +x_3 = l_Lean_Parser_Tactic_simpAutoUnfold___closed__23; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -31682,7 +31681,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_termEval__prec_____closed__4; x_2 = l_Lean_Parser_Tactic_simpArithAutoUnfold___closed__7; -x_3 = l_Lean_Parser_Tactic_simpAutoUnfold___closed__22; +x_3 = l_Lean_Parser_Tactic_simpAutoUnfold___closed__23; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -32464,9 +32463,9 @@ static lean_object* _init_l_Lean_Parser_Tactic_simpAllAutoUnfold___closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; -x_1 = l_Lean_Parser_Tactic_simpAutoUnfold___closed__14; +x_1 = l_Lean_Parser_Tactic_simpAutoUnfold___closed__15; x_2 = l_List_repr_x27___at___private_Init_Meta_0__Lean_Syntax_reprPreresolved____x40_Init_Meta___hyg_2003____spec__1___closed__3; -x_3 = l_Lean_Parser_Tactic_simpAutoUnfold___closed__17; +x_3 = l_Lean_Parser_Tactic_simpAutoUnfold___closed__18; x_4 = 0; x_5 = lean_alloc_ctor(10, 3, 1); lean_ctor_set(x_5, 0, x_1); @@ -32481,7 +32480,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_termEval__prec_____closed__4; -x_2 = l_Lean_Parser_Tactic_simpAutoUnfold___closed__13; +x_2 = l_Lean_Parser_Tactic_simpAutoUnfold___closed__14; x_3 = l_Lean_Parser_Tactic_simpAllAutoUnfold___closed__8; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); @@ -32496,7 +32495,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_termEval__prec_____closed__4; x_2 = l_Lean_Parser_Tactic_simpAllAutoUnfold___closed__9; -x_3 = l_Lean_Parser_Tactic_simpAutoUnfold___closed__20; +x_3 = l_Lean_Parser_Tactic_simpAutoUnfold___closed__21; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -32556,7 +32555,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_expandSimp____x40_Init_Meta___hyg _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("simp_all ", 9); +x_1 = lean_mk_string_from_bytes("simp_all", 8); return x_1; } } @@ -34871,14 +34870,6 @@ x_1 = l_Lean_Parser_Tactic_dsimpAutoUnfold___closed__10; return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_expandSimp____x40_Init_Meta___hyg_22774____lambda__1___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("dsimp ", 6); -return x_1; -} -} LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_expandSimp____x40_Init_Meta___hyg_22774____lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -34887,7 +34878,7 @@ x_5 = l_Lean_Parser_Tactic___aux__Init__Meta______macroRules__Lean__Parser__Tact x_6 = l_Lean_Syntax_setKind(x_1, x_5); x_7 = lean_unsigned_to_nat(0u); x_8 = l_Lean_Syntax_getArg(x_6, x_7); -x_9 = l_Lean_Parser_Tactic_expandSimp____x40_Init_Meta___hyg_22774____lambda__1___closed__1; +x_9 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_12088____closed__19; x_10 = l_Lean_mkAtomFrom(x_8, x_9); x_11 = l_Lean_Syntax_setArg(x_6, x_7, x_10); x_12 = l_Lean_mkOptionalNode___closed__2; @@ -37139,10 +37130,10 @@ l_Lean_Parser_Tactic_simpAutoUnfold___closed__24 = _init_l_Lean_Parser_Tactic_si lean_mark_persistent(l_Lean_Parser_Tactic_simpAutoUnfold___closed__24); l_Lean_Parser_Tactic_simpAutoUnfold___closed__25 = _init_l_Lean_Parser_Tactic_simpAutoUnfold___closed__25(); lean_mark_persistent(l_Lean_Parser_Tactic_simpAutoUnfold___closed__25); +l_Lean_Parser_Tactic_simpAutoUnfold___closed__26 = _init_l_Lean_Parser_Tactic_simpAutoUnfold___closed__26(); +lean_mark_persistent(l_Lean_Parser_Tactic_simpAutoUnfold___closed__26); l_Lean_Parser_Tactic_simpAutoUnfold = _init_l_Lean_Parser_Tactic_simpAutoUnfold(); lean_mark_persistent(l_Lean_Parser_Tactic_simpAutoUnfold); -l_Lean_Parser_Tactic_expandSimp____x40_Init_Meta___hyg_16762____lambda__1___closed__1 = _init_l_Lean_Parser_Tactic_expandSimp____x40_Init_Meta___hyg_16762____lambda__1___closed__1(); -lean_mark_persistent(l_Lean_Parser_Tactic_expandSimp____x40_Init_Meta___hyg_16762____lambda__1___closed__1); l_Lean_Parser_Tactic_expandSimp____x40_Init_Meta___hyg_16762____closed__1 = _init_l_Lean_Parser_Tactic_expandSimp____x40_Init_Meta___hyg_16762____closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_expandSimp____x40_Init_Meta___hyg_16762____closed__1); l_Lean_Parser_Tactic_expandSimp____x40_Init_Meta___hyg_16762____closed__2 = _init_l_Lean_Parser_Tactic_expandSimp____x40_Init_Meta___hyg_16762____closed__2(); @@ -37349,8 +37340,6 @@ l_Lean_Parser_Tactic_dsimpAutoUnfold___closed__10 = _init_l_Lean_Parser_Tactic_d lean_mark_persistent(l_Lean_Parser_Tactic_dsimpAutoUnfold___closed__10); l_Lean_Parser_Tactic_dsimpAutoUnfold = _init_l_Lean_Parser_Tactic_dsimpAutoUnfold(); lean_mark_persistent(l_Lean_Parser_Tactic_dsimpAutoUnfold); -l_Lean_Parser_Tactic_expandSimp____x40_Init_Meta___hyg_22774____lambda__1___closed__1 = _init_l_Lean_Parser_Tactic_expandSimp____x40_Init_Meta___hyg_22774____lambda__1___closed__1(); -lean_mark_persistent(l_Lean_Parser_Tactic_expandSimp____x40_Init_Meta___hyg_22774____lambda__1___closed__1); l_Lean_Parser_Tactic_expandSimp____x40_Init_Meta___hyg_22774____closed__1 = _init_l_Lean_Parser_Tactic_expandSimp____x40_Init_Meta___hyg_22774____closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_expandSimp____x40_Init_Meta___hyg_22774____closed__1); l_Lean_Parser_Tactic_expandSimp____x40_Init_Meta___hyg_22774____closed__2 = _init_l_Lean_Parser_Tactic_expandSimp____x40_Init_Meta___hyg_22774____closed__2(); diff --git a/stage0/stdlib/Init/Tactics.c b/stage0/stdlib/Init/Tactics.c index 780a40d667..a63a3d8460 100644 --- a/stage0/stdlib/Init/Tactics.c +++ b/stage0/stdlib/Init/Tactics.c @@ -248,11 +248,9 @@ static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__L static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tactic___x3c_x3b_x3e____1___closed__1; static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__rwSeq__1___closed__5; static lean_object* l_Lean_Parser_Tactic_contradiction___closed__1; -static lean_object* l_Lean_Parser_Tactic_simp___closed__20; static lean_object* l___aux__Init__Tactics______macroRules__term_u2039___u203a__1___closed__3; static lean_object* l_term_____x5b___x5d_x27_____closed__2; static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticHave____1___closed__5; -static lean_object* l_Lean_Parser_Tactic_dsimp___closed__10; static lean_object* l_Lean_Parser_Tactic_rotateLeft___closed__7; static lean_object* l_Lean_Parser_Tactic_subst___closed__4; static lean_object* l_Lean_Parser_Tactic_tacticHave_x27___x3a_x3d_____closed__4; @@ -391,6 +389,7 @@ static lean_object* l_Lean_Parser_Tactic_inductionAlt___closed__10; static lean_object* l_Lean_Parser_Tactic_config___closed__7; static lean_object* l_Lean_Parser_Tactic_location___closed__6; static lean_object* l_Lean_Parser_Tactic_clear___closed__3; +static lean_object* l_term_____x5b___x5d___closed__11; static lean_object* l_Lean_Parser_Tactic_intros___closed__8; static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticTrivial__5___closed__3; static lean_object* l_Lean_Parser_Tactic_split___closed__1; @@ -798,7 +797,6 @@ static lean_object* l_Lean_Parser_Tactic_induction___closed__6; static lean_object* l_Lean_Parser_Tactic_simpAll___closed__7; static lean_object* l_Lean_Parser_Tactic_discharger___closed__12; static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticTrivial__6___closed__3; -static lean_object* l_Lean_Parser_Attr_simp___closed__11; static lean_object* l_Lean_Parser_Tactic_letrec___closed__2; LEAN_EXPORT lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticInfer__instance__1(lean_object*, lean_object*, lean_object*); static lean_object* l_term_u2039___u203a___closed__2; @@ -1132,6 +1130,7 @@ static lean_object* l_term_u2039___u203a___closed__4; static lean_object* l_Lean_Parser_Tactic_rewriteSeq___closed__2; static lean_object* l_Lean_Parser_Tactic_dbgTrace___closed__1; static lean_object* l_Lean_Parser_Tactic_inductionAltLHS___closed__7; +static lean_object* l_Lean_Parser_Tactic_config___closed__15; static lean_object* l_Lean_Parser_Attr_simp___closed__9; static lean_object* l_Lean_Parser_Tactic_letrec___closed__10; static lean_object* l_Lean_Parser_Tactic_withAnnotateState___closed__23; @@ -7294,14 +7293,22 @@ return x_3; static lean_object* _init_l_Lean_Parser_Tactic_config___closed__5() { _start: { +lean_object* x_1; +x_1 = lean_mk_string_from_bytes(" (", 2); +return x_1; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_config___closed__6() { +_start: +{ lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Tactic_paren___closed__3; +x_1 = l_Lean_Parser_Tactic_config___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_Lean_Parser_Tactic_config___closed__6() { +static lean_object* _init_l_Lean_Parser_Tactic_config___closed__7() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; @@ -7313,13 +7320,13 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_config___closed__7() { +static lean_object* _init_l_Lean_Parser_Tactic_config___closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__10; -x_2 = l_Lean_Parser_Tactic_config___closed__5; -x_3 = l_Lean_Parser_Tactic_config___closed__6; +x_2 = l_Lean_Parser_Tactic_config___closed__6; +x_3 = l_Lean_Parser_Tactic_config___closed__7; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -7327,19 +7334,19 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Parser_Tactic_config___closed__8() { +static lean_object* _init_l_Lean_Parser_Tactic_config___closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Tactic_config___closed__4; -x_2 = l_Lean_Parser_Tactic_config___closed__7; +x_2 = l_Lean_Parser_Tactic_config___closed__8; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_config___closed__9() { +static lean_object* _init_l_Lean_Parser_Tactic_config___closed__10() { _start: { lean_object* x_1; @@ -7347,28 +7354,14 @@ x_1 = lean_mk_string_from_bytes(" := ", 4); return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_config___closed__10() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Tactic_config___closed__9; -x_2 = lean_alloc_ctor(5, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} static lean_object* _init_l_Lean_Parser_Tactic_config___closed__11() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__10; -x_2 = l_Lean_Parser_Tactic_config___closed__8; -x_3 = l_Lean_Parser_Tactic_config___closed__10; -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; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Tactic_config___closed__10; +x_2 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; } } static lean_object* _init_l_Lean_Parser_Tactic_config___closed__12() { @@ -7376,8 +7369,8 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__10; -x_2 = l_Lean_Parser_Tactic_config___closed__11; -x_3 = l_Lean_Parser_Tactic_rename___closed__5; +x_2 = l_Lean_Parser_Tactic_config___closed__9; +x_3 = l_Lean_Parser_Tactic_config___closed__11; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -7391,7 +7384,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__10; x_2 = l_Lean_Parser_Tactic_config___closed__12; -x_3 = l_Lean_Parser_Tactic_paren___closed__7; +x_3 = l_Lean_Parser_Tactic_rename___closed__5; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -7403,9 +7396,23 @@ static lean_object* _init_l_Lean_Parser_Tactic_config___closed__14() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__10; +x_2 = l_Lean_Parser_Tactic_config___closed__13; +x_3 = l_Lean_Parser_Tactic_paren___closed__7; +x_4 = lean_alloc_ctor(2, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_config___closed__15() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_config___closed__1; x_2 = l_Lean_Parser_Tactic_config___closed__2; -x_3 = l_Lean_Parser_Tactic_config___closed__13; +x_3 = l_Lean_Parser_Tactic_config___closed__14; x_4 = lean_alloc_ctor(9, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -7417,7 +7424,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_config() { _start: { lean_object* x_1; -x_1 = l_Lean_Parser_Tactic_config___closed__14; +x_1 = l_Lean_Parser_Tactic_config___closed__15; return x_1; } } @@ -8031,7 +8038,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_rwRuleSeq___closed__3() { _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("[", 1); +x_1 = lean_mk_string_from_bytes(" [", 2); return x_1; } } @@ -8177,7 +8184,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_rewriteSeq___closed__3() { _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("rewrite ", 8); +x_1 = lean_mk_string_from_bytes("rewrite", 7); return x_1; } } @@ -8291,7 +8298,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_rwSeq___closed__3() { _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("rw ", 3); +x_1 = lean_mk_string_from_bytes("rw", 2); return x_1; } } @@ -8375,7 +8382,7 @@ static lean_object* _init_l_Lean_Parser_Tactic___aux__Init__Tactics______macroRu _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("rewrite", 7); +x_1 = lean_mk_string_from_bytes("[", 1); return x_1; } } @@ -8542,12 +8549,12 @@ if (lean_is_exclusive(x_25)) { lean_dec_ref(x_25); x_28 = lean_box(0); } -x_29 = l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__rwSeq__1___closed__1; +x_29 = l_Lean_Parser_Tactic_rewriteSeq___closed__3; lean_inc(x_26); x_30 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_30, 0, x_26); lean_ctor_set(x_30, 1, x_29); -x_31 = l_Lean_Parser_Tactic_rwRuleSeq___closed__3; +x_31 = l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__rwSeq__1___closed__1; lean_inc(x_26); x_32 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_32, 0, x_26); @@ -9116,7 +9123,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__10; -x_2 = l_Lean_Parser_Tactic_config___closed__5; +x_2 = l_Lean_Parser_Tactic_config___closed__6; x_3 = l_Lean_Parser_Tactic_discharger___closed__6; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); @@ -9143,7 +9150,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__10; x_2 = l_Lean_Parser_Tactic_discharger___closed__8; -x_3 = l_Lean_Parser_Tactic_config___closed__10; +x_3 = l_Lean_Parser_Tactic_config___closed__11; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -9544,16 +9551,8 @@ return x_3; static lean_object* _init_l_Lean_Parser_Tactic_simp___closed__3() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("simp ", 5); -return x_1; -} -} -static lean_object* _init_l_Lean_Parser_Tactic_simp___closed__4() { -_start: -{ lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_simp___closed__3; +x_1 = l_Lean_Parser_Tactic_simp___closed__1; x_2 = 0; x_3 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -9561,12 +9560,12 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_simp___closed__5() { +static lean_object* _init_l_Lean_Parser_Tactic_simp___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__10; -x_2 = l_Lean_Parser_Tactic_simp___closed__4; +x_2 = l_Lean_Parser_Tactic_simp___closed__3; x_3 = l_Lean_Parser_Tactic_rewriteSeq___closed__5; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); @@ -9575,7 +9574,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Parser_Tactic_simp___closed__6() { +static lean_object* _init_l_Lean_Parser_Tactic_simp___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -9587,13 +9586,13 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_simp___closed__7() { +static lean_object* _init_l_Lean_Parser_Tactic_simp___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__10; -x_2 = l_Lean_Parser_Tactic_simp___closed__5; -x_3 = l_Lean_Parser_Tactic_simp___closed__6; +x_2 = l_Lean_Parser_Tactic_simp___closed__4; +x_3 = l_Lean_Parser_Tactic_simp___closed__5; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -9601,19 +9600,19 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Parser_Tactic_simp___closed__8() { +static lean_object* _init_l_Lean_Parser_Tactic_simp___closed__7() { _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("only ", 5); +x_1 = lean_mk_string_from_bytes(" only", 5); return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_simp___closed__9() { +static lean_object* _init_l_Lean_Parser_Tactic_simp___closed__8() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_simp___closed__8; +x_1 = l_Lean_Parser_Tactic_simp___closed__7; x_2 = 0; x_3 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -9621,25 +9620,25 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_simp___closed__10() { +static lean_object* _init_l_Lean_Parser_Tactic_simp___closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Tactic_rotateLeft___closed__6; -x_2 = l_Lean_Parser_Tactic_simp___closed__9; +x_2 = l_Lean_Parser_Tactic_simp___closed__8; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_simp___closed__11() { +static lean_object* _init_l_Lean_Parser_Tactic_simp___closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__10; -x_2 = l_Lean_Parser_Tactic_simp___closed__7; -x_3 = l_Lean_Parser_Tactic_simp___closed__10; +x_2 = l_Lean_Parser_Tactic_simp___closed__6; +x_3 = l_Lean_Parser_Tactic_simp___closed__9; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -9647,7 +9646,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Parser_Tactic_simp___closed__12() { +static lean_object* _init_l_Lean_Parser_Tactic_simp___closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; @@ -9661,13 +9660,13 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Parser_Tactic_simp___closed__13() { +static lean_object* _init_l_Lean_Parser_Tactic_simp___closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_intros___closed__6; x_2 = l_Lean_Parser_Tactic_simpStar; -x_3 = l_Lean_Parser_Tactic_simp___closed__12; +x_3 = l_Lean_Parser_Tactic_simp___closed__11; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -9675,11 +9674,11 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Parser_Tactic_simp___closed__14() { +static lean_object* _init_l_Lean_Parser_Tactic_simp___closed__13() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; -x_1 = l_Lean_Parser_Tactic_simp___closed__13; +x_1 = l_Lean_Parser_Tactic_simp___closed__12; x_2 = l_Lean_Parser_Tactic_rwRuleSeq___closed__7; x_3 = l_Lean_Parser_Tactic_rwRuleSeq___closed__6; x_4 = 0; @@ -9691,13 +9690,27 @@ lean_ctor_set_uint8(x_5, sizeof(void*)*3, x_4); return x_5; } } -static lean_object* _init_l_Lean_Parser_Tactic_simp___closed__15() { +static lean_object* _init_l_Lean_Parser_Tactic_simp___closed__14() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__10; x_2 = l_Lean_Parser_Tactic_rwRuleSeq___closed__4; -x_3 = l_Lean_Parser_Tactic_simp___closed__14; +x_3 = l_Lean_Parser_Tactic_simp___closed__13; +x_4 = lean_alloc_ctor(2, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_simp___closed__15() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__10; +x_2 = l_Lean_Parser_Tactic_simp___closed__14; +x_3 = l_Lean_Parser_Tactic_rwRuleSeq___closed__11; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -9708,10 +9721,22 @@ return x_4; static lean_object* _init_l_Lean_Parser_Tactic_simp___closed__16() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Tactic_rotateLeft___closed__6; +x_2 = l_Lean_Parser_Tactic_simp___closed__15; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_simp___closed__17() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__10; -x_2 = l_Lean_Parser_Tactic_simp___closed__15; -x_3 = l_Lean_Parser_Tactic_rwRuleSeq___closed__11; +x_2 = l_Lean_Parser_Tactic_simp___closed__10; +x_3 = l_Lean_Parser_Tactic_simp___closed__16; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -9719,25 +9744,13 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Parser_Tactic_simp___closed__17() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_rotateLeft___closed__6; -x_2 = l_Lean_Parser_Tactic_simp___closed__16; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} static lean_object* _init_l_Lean_Parser_Tactic_simp___closed__18() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__10; -x_2 = l_Lean_Parser_Tactic_simp___closed__11; -x_3 = l_Lean_Parser_Tactic_simp___closed__17; +x_2 = l_Lean_Parser_Tactic_simp___closed__17; +x_3 = l_Lean_Parser_Tactic_change___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); @@ -9749,23 +9762,9 @@ static lean_object* _init_l_Lean_Parser_Tactic_simp___closed__19() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__10; -x_2 = l_Lean_Parser_Tactic_simp___closed__18; -x_3 = l_Lean_Parser_Tactic_change___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_Lean_Parser_Tactic_simp___closed__20() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_simp___closed__2; x_2 = lean_unsigned_to_nat(1022u); -x_3 = l_Lean_Parser_Tactic_simp___closed__19; +x_3 = l_Lean_Parser_Tactic_simp___closed__18; x_4 = lean_alloc_ctor(3, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -9777,7 +9776,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_simp() { _start: { lean_object* x_1; -x_1 = l_Lean_Parser_Tactic_simp___closed__20; +x_1 = l_Lean_Parser_Tactic_simp___closed__19; return x_1; } } @@ -9803,7 +9802,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_simpAll___closed__3() { _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("simp_all ", 9); +x_1 = lean_mk_string_from_bytes("simp_all", 8); return x_1; } } @@ -9839,7 +9838,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__10; x_2 = l_Lean_Parser_Tactic_simpAll___closed__5; -x_3 = l_Lean_Parser_Tactic_simp___closed__6; +x_3 = l_Lean_Parser_Tactic_simp___closed__5; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -9853,7 +9852,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__10; x_2 = l_Lean_Parser_Tactic_simpAll___closed__6; -x_3 = l_Lean_Parser_Tactic_simp___closed__10; +x_3 = l_Lean_Parser_Tactic_simp___closed__9; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -9865,7 +9864,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_simpAll___closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; -x_1 = l_Lean_Parser_Tactic_simp___closed__12; +x_1 = l_Lean_Parser_Tactic_simp___closed__11; x_2 = l_Lean_Parser_Tactic_rwRuleSeq___closed__7; x_3 = l_Lean_Parser_Tactic_rwRuleSeq___closed__6; x_4 = 0; @@ -9974,16 +9973,8 @@ return x_3; static lean_object* _init_l_Lean_Parser_Tactic_dsimp___closed__3() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("dsimp ", 6); -return x_1; -} -} -static lean_object* _init_l_Lean_Parser_Tactic_dsimp___closed__4() { -_start: -{ lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_dsimp___closed__3; +x_1 = l_Lean_Parser_Tactic_dsimp___closed__1; x_2 = 0; x_3 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -9991,13 +9982,27 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } +static lean_object* _init_l_Lean_Parser_Tactic_dsimp___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__10; +x_2 = l_Lean_Parser_Tactic_dsimp___closed__3; +x_3 = l_Lean_Parser_Tactic_rewriteSeq___closed__5; +x_4 = lean_alloc_ctor(2, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} static lean_object* _init_l_Lean_Parser_Tactic_dsimp___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__10; x_2 = l_Lean_Parser_Tactic_dsimp___closed__4; -x_3 = l_Lean_Parser_Tactic_rewriteSeq___closed__5; +x_3 = l_Lean_Parser_Tactic_simp___closed__5; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -10011,7 +10016,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__10; x_2 = l_Lean_Parser_Tactic_dsimp___closed__5; -x_3 = l_Lean_Parser_Tactic_simp___closed__6; +x_3 = l_Lean_Parser_Tactic_simp___closed__9; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -10025,7 +10030,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__10; x_2 = l_Lean_Parser_Tactic_dsimp___closed__6; -x_3 = l_Lean_Parser_Tactic_simp___closed__10; +x_3 = l_Lean_Parser_Tactic_simpAll___closed__11; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -10039,7 +10044,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__10; x_2 = l_Lean_Parser_Tactic_dsimp___closed__7; -x_3 = l_Lean_Parser_Tactic_simpAll___closed__11; +x_3 = l_Lean_Parser_Tactic_change___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); @@ -10051,23 +10056,9 @@ static lean_object* _init_l_Lean_Parser_Tactic_dsimp___closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__10; -x_2 = l_Lean_Parser_Tactic_dsimp___closed__8; -x_3 = l_Lean_Parser_Tactic_change___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_Lean_Parser_Tactic_dsimp___closed__10() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_dsimp___closed__2; x_2 = lean_unsigned_to_nat(1022u); -x_3 = l_Lean_Parser_Tactic_dsimp___closed__9; +x_3 = l_Lean_Parser_Tactic_dsimp___closed__8; x_4 = lean_alloc_ctor(3, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -10079,7 +10070,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_dsimp() { _start: { lean_object* x_1; -x_1 = l_Lean_Parser_Tactic_dsimp___closed__10; +x_1 = l_Lean_Parser_Tactic_dsimp___closed__9; return x_1; } } @@ -13123,7 +13114,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__10; x_2 = l_Lean_Parser_Tactic_tacticHave_x27___x3a_x3d_____closed__5; -x_3 = l_Lean_Parser_Tactic_config___closed__10; +x_3 = l_Lean_Parser_Tactic_config___closed__11; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -17937,21 +17928,9 @@ return x_3; static lean_object* _init_l_Lean_Parser_Attr_simp___closed__4() { _start: { -lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_simp___closed__1; -x_2 = 0; -x_3 = lean_alloc_ctor(6, 1, 1); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Parser_Attr_simp___closed__5() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__10; -x_2 = l_Lean_Parser_Attr_simp___closed__4; +x_2 = l_Lean_Parser_Tactic_simp___closed__3; x_3 = l_Lean_Parser_Tactic_simpLemma___closed__4; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); @@ -17960,7 +17939,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Parser_Attr_simp___closed__6() { +static lean_object* _init_l_Lean_Parser_Attr_simp___closed__5() { _start: { lean_object* x_1; @@ -17968,23 +17947,35 @@ x_1 = lean_mk_string_from_bytes("prio", 4); return x_1; } } -static lean_object* _init_l_Lean_Parser_Attr_simp___closed__7() { +static lean_object* _init_l_Lean_Parser_Attr_simp___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Parser_Attr_simp___closed__6; +x_2 = l_Lean_Parser_Attr_simp___closed__5; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } +static lean_object* _init_l_Lean_Parser_Attr_simp___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Attr_simp___closed__6; +x_2 = lean_unsigned_to_nat(0u); +x_3 = lean_alloc_ctor(7, 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_Parser_Attr_simp___closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Attr_simp___closed__7; -x_2 = lean_unsigned_to_nat(0u); -x_3 = lean_alloc_ctor(7, 2, 0); +x_1 = l_Lean_Parser_Tactic_rotateLeft___closed__6; +x_2 = l_Lean_Parser_Attr_simp___closed__7; +x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; @@ -17993,22 +17984,10 @@ return x_3; static lean_object* _init_l_Lean_Parser_Attr_simp___closed__9() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_rotateLeft___closed__6; -x_2 = l_Lean_Parser_Attr_simp___closed__8; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Parser_Attr_simp___closed__10() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__10; -x_2 = l_Lean_Parser_Attr_simp___closed__5; -x_3 = l_Lean_Parser_Attr_simp___closed__9; +x_2 = l_Lean_Parser_Attr_simp___closed__4; +x_3 = l_Lean_Parser_Attr_simp___closed__8; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -18016,13 +17995,13 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Parser_Attr_simp___closed__11() { +static lean_object* _init_l_Lean_Parser_Attr_simp___closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Attr_simp___closed__3; x_2 = lean_unsigned_to_nat(1022u); -x_3 = l_Lean_Parser_Attr_simp___closed__10; +x_3 = l_Lean_Parser_Attr_simp___closed__9; x_4 = lean_alloc_ctor(3, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -18034,7 +18013,7 @@ static lean_object* _init_l_Lean_Parser_Attr_simp() { _start: { lean_object* x_1; -x_1 = l_Lean_Parser_Attr_simp___closed__11; +x_1 = l_Lean_Parser_Attr_simp___closed__10; return x_1; } } @@ -19630,15 +19609,11 @@ return x_3; static lean_object* _init_l_term_____x5b___x5d___closed__7() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__10; -x_2 = l_term_____x5b___x5d___closed__6; -x_3 = l_Lean_Parser_Tactic_rwRuleSeq___closed__4; -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; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__rwSeq__1___closed__1; +x_2 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; } } static lean_object* _init_l_term_____x5b___x5d___closed__8() { @@ -19646,8 +19621,8 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__10; -x_2 = l_term_____x5b___x5d___closed__7; -x_3 = l_Lean_Parser_Tactic_rename___closed__5; +x_2 = l_term_____x5b___x5d___closed__6; +x_3 = l_term_____x5b___x5d___closed__7; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -19661,7 +19636,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__10; x_2 = l_term_____x5b___x5d___closed__8; -x_3 = l_Lean_Parser_Tactic_rwRuleSeq___closed__11; +x_3 = l_Lean_Parser_Tactic_rename___closed__5; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -19672,11 +19647,25 @@ return x_4; static lean_object* _init_l_term_____x5b___x5d___closed__10() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__10; +x_2 = l_term_____x5b___x5d___closed__9; +x_3 = l_Lean_Parser_Tactic_rwRuleSeq___closed__11; +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_____x5b___x5d___closed__11() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l_term_____x5b___x5d___closed__2; x_2 = lean_unsigned_to_nat(1024u); x_3 = lean_unsigned_to_nat(0u); -x_4 = l_term_____x5b___x5d___closed__9; +x_4 = l_term_____x5b___x5d___closed__10; x_5 = lean_alloc_ctor(4, 4, 0); lean_ctor_set(x_5, 0, x_1); lean_ctor_set(x_5, 1, x_2); @@ -19689,7 +19678,7 @@ static lean_object* _init_l_term_____x5b___x5d() { _start: { lean_object* x_1; -x_1 = l_term_____x5b___x5d___closed__10; +x_1 = l_term_____x5b___x5d___closed__11; return x_1; } } @@ -20101,7 +20090,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__10; -x_2 = l_term_____x5b___x5d___closed__8; +x_2 = l_term_____x5b___x5d___closed__9; x_3 = l_term_____x5b___x5d_x27_____closed__4; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); @@ -21163,6 +21152,8 @@ l_Lean_Parser_Tactic_config___closed__13 = _init_l_Lean_Parser_Tactic_config___c lean_mark_persistent(l_Lean_Parser_Tactic_config___closed__13); l_Lean_Parser_Tactic_config___closed__14 = _init_l_Lean_Parser_Tactic_config___closed__14(); lean_mark_persistent(l_Lean_Parser_Tactic_config___closed__14); +l_Lean_Parser_Tactic_config___closed__15 = _init_l_Lean_Parser_Tactic_config___closed__15(); +lean_mark_persistent(l_Lean_Parser_Tactic_config___closed__15); l_Lean_Parser_Tactic_config = _init_l_Lean_Parser_Tactic_config(); lean_mark_persistent(l_Lean_Parser_Tactic_config); l_Lean_Parser_Tactic_locationWildcard___closed__1 = _init_l_Lean_Parser_Tactic_locationWildcard___closed__1(); @@ -21511,8 +21502,6 @@ l_Lean_Parser_Tactic_simp___closed__18 = _init_l_Lean_Parser_Tactic_simp___close lean_mark_persistent(l_Lean_Parser_Tactic_simp___closed__18); l_Lean_Parser_Tactic_simp___closed__19 = _init_l_Lean_Parser_Tactic_simp___closed__19(); lean_mark_persistent(l_Lean_Parser_Tactic_simp___closed__19); -l_Lean_Parser_Tactic_simp___closed__20 = _init_l_Lean_Parser_Tactic_simp___closed__20(); -lean_mark_persistent(l_Lean_Parser_Tactic_simp___closed__20); l_Lean_Parser_Tactic_simp = _init_l_Lean_Parser_Tactic_simp(); lean_mark_persistent(l_Lean_Parser_Tactic_simp); l_Lean_Parser_Tactic_simpAll___closed__1 = _init_l_Lean_Parser_Tactic_simpAll___closed__1(); @@ -21561,8 +21550,6 @@ l_Lean_Parser_Tactic_dsimp___closed__8 = _init_l_Lean_Parser_Tactic_dsimp___clos lean_mark_persistent(l_Lean_Parser_Tactic_dsimp___closed__8); l_Lean_Parser_Tactic_dsimp___closed__9 = _init_l_Lean_Parser_Tactic_dsimp___closed__9(); lean_mark_persistent(l_Lean_Parser_Tactic_dsimp___closed__9); -l_Lean_Parser_Tactic_dsimp___closed__10 = _init_l_Lean_Parser_Tactic_dsimp___closed__10(); -lean_mark_persistent(l_Lean_Parser_Tactic_dsimp___closed__10); l_Lean_Parser_Tactic_dsimp = _init_l_Lean_Parser_Tactic_dsimp(); lean_mark_persistent(l_Lean_Parser_Tactic_dsimp); l_Lean_Parser_Tactic_delta___closed__1 = _init_l_Lean_Parser_Tactic_delta___closed__1(); @@ -22317,8 +22304,6 @@ l_Lean_Parser_Attr_simp___closed__9 = _init_l_Lean_Parser_Attr_simp___closed__9( lean_mark_persistent(l_Lean_Parser_Attr_simp___closed__9); l_Lean_Parser_Attr_simp___closed__10 = _init_l_Lean_Parser_Attr_simp___closed__10(); lean_mark_persistent(l_Lean_Parser_Attr_simp___closed__10); -l_Lean_Parser_Attr_simp___closed__11 = _init_l_Lean_Parser_Attr_simp___closed__11(); -lean_mark_persistent(l_Lean_Parser_Attr_simp___closed__11); l_Lean_Parser_Attr_simp = _init_l_Lean_Parser_Attr_simp(); lean_mark_persistent(l_Lean_Parser_Attr_simp); l_term_u2039___u203a___closed__1 = _init_l_term_u2039___u203a___closed__1(); @@ -22443,6 +22428,8 @@ l_term_____x5b___x5d___closed__9 = _init_l_term_____x5b___x5d___closed__9(); lean_mark_persistent(l_term_____x5b___x5d___closed__9); l_term_____x5b___x5d___closed__10 = _init_l_term_____x5b___x5d___closed__10(); lean_mark_persistent(l_term_____x5b___x5d___closed__10); +l_term_____x5b___x5d___closed__11 = _init_l_term_____x5b___x5d___closed__11(); +lean_mark_persistent(l_term_____x5b___x5d___closed__11); l_term_____x5b___x5d = _init_l_term_____x5b___x5d(); lean_mark_persistent(l_term_____x5b___x5d); l___aux__Init__Tactics______macroRules__term_____x5b___x5d__1___closed__1 = _init_l___aux__Init__Tactics______macroRules__term_____x5b___x5d__1___closed__1(); diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/Structural/Eqns.c b/stage0/stdlib/Lean/Elab/PreDefinition/Structural/Eqns.c index 84b2ff4ad0..8be10ada4e 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/Structural/Eqns.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/Structural/Eqns.c @@ -39,17 +39,17 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Structural_instInhabitedEqnInfo; static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__14; lean_object* lean_st_ref_get(lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Structural_mkEqns___spec__1___closed__2; -static lean_object* l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1412____closed__2; static lean_object* l_Lean_Elab_Structural_registerEqnsInfo___closed__1; lean_object* l_Lean_Elab_Eqns_deltaLHS(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1413____closed__2; static lean_object* l_Lean_Elab_Structural_mkEqns___lambda__1___closed__1; lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); +static lean_object* l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1413____closed__1; static lean_object* l_Lean_Elab_Structural_mkEqns___closed__1; lean_object* l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_Structural_registerEqnsInfo___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1412____closed__1; static lean_object* l_Lean_Elab_Structural_registerEqnsInfo___closed__2; lean_object* lean_nat_add(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___closed__2; @@ -85,20 +85,21 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__ lean_object* l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_simpTargetStar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_simpTargetStar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__10; static lean_object* l_Lean_Elab_Structural_instInhabitedEqnInfo___closed__3; lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1191____closed__1; static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___closed__5; static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__12; static lean_object* l_Lean_Elab_Structural_instInhabitedEqnInfo___closed__1; +static lean_object* l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1192____closed__1; lean_object* l_Lean_Expr_bvar___override(lean_object*); lean_object* l_Lean_addDecl(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1191____closed__2; size_t lean_usize_of_nat(lean_object*); static lean_object* l_Lean_Elab_Structural_instInhabitedEqnInfo___closed__2; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___spec__2(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_NameSet_empty; +static lean_object* l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1192____closed__2; static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___closed__7; lean_object* l_Lean_Elab_Eqns_deltaRHS_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_registerGetEqnsFn(lean_object*, lean_object*); @@ -143,8 +144,8 @@ lean_object* l_Lean_Option_set___at_Lean_Meta_withPPInaccessibleNamesImp___spec_ extern lean_object* l_Lean_Meta_Simp_defaultMaxSteps; static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Structural_mkEqns___spec__1___closed__3; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1412_(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1191_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1413_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1192_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Structural_registerEqnsInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* _init_l_Lean_Elab_Structural_instInhabitedEqnInfo___closed__1() { _start: @@ -429,19 +430,21 @@ return x_4; static lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__8() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +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; x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__1; -x_3 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__2; -x_4 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__7; -x_5 = lean_unsigned_to_nat(0u); -x_6 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_6, 0, x_2); -lean_ctor_set(x_6, 1, x_3); -lean_ctor_set(x_6, 2, x_4); -lean_ctor_set(x_6, 3, x_1); -lean_ctor_set(x_6, 4, x_5); -return x_6; +x_2 = lean_box(0); +x_3 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__1; +x_4 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__2; +x_5 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__7; +x_6 = lean_unsigned_to_nat(0u); +x_7 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_7, 0, x_3); +lean_ctor_set(x_7, 1, x_4); +lean_ctor_set(x_7, 2, x_5); +lean_ctor_set(x_7, 3, x_1); +lean_ctor_set(x_7, 4, x_2); +lean_ctor_set(x_7, 5, x_6); +return x_7; } } static lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__9() { @@ -582,615 +585,619 @@ x_24 = lean_ctor_get(x_23, 0); lean_inc(x_24); if (lean_obj_tag(x_24) == 0) { -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; x_25 = lean_ctor_get(x_23, 1); lean_inc(x_25); lean_dec(x_23); x_26 = lean_box(0); x_27 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__8; +x_28 = l_Lean_NameSet_empty; lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_1); -x_28 = l_Lean_Meta_simpTargetStar(x_1, x_27, x_26, x_4, x_5, x_6, x_7, x_25); -if (lean_obj_tag(x_28) == 0) +x_29 = l_Lean_Meta_simpTargetStar(x_1, x_27, x_26, x_28, x_4, x_5, x_6, x_7, x_25); +if (lean_obj_tag(x_29) == 0) { -lean_object* x_29; -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -switch (lean_obj_tag(x_29)) { +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +lean_dec(x_30); +switch (lean_obj_tag(x_31)) { case 0: { -uint8_t x_30; +uint8_t x_32; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_30 = !lean_is_exclusive(x_28); -if (x_30 == 0) +x_32 = !lean_is_exclusive(x_29); +if (x_32 == 0) { -lean_object* x_31; lean_object* x_32; -x_31 = lean_ctor_get(x_28, 0); -lean_dec(x_31); -x_32 = lean_box(0); -lean_ctor_set(x_28, 0, x_32); -return x_28; +lean_object* x_33; lean_object* x_34; +x_33 = lean_ctor_get(x_29, 0); +lean_dec(x_33); +x_34 = lean_box(0); +lean_ctor_set(x_29, 0, x_34); +return x_29; } else { -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_28, 1); -lean_inc(x_33); -lean_dec(x_28); -x_34 = lean_box(0); -x_35 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_33); -return x_35; +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_29, 1); +lean_inc(x_35); +lean_dec(x_29); +x_36 = lean_box(0); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_35); +return x_37; } } case 1: { -lean_object* x_36; lean_object* x_37; -x_36 = lean_ctor_get(x_28, 1); -lean_inc(x_36); -lean_dec(x_28); +lean_object* x_38; lean_object* x_39; +x_38 = lean_ctor_get(x_29, 1); +lean_inc(x_38); +lean_dec(x_29); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_2); lean_inc(x_1); -x_37 = l_Lean_Elab_Eqns_deltaRHS_x3f(x_1, x_2, x_4, x_5, x_6, x_7, x_36); -if (lean_obj_tag(x_37) == 0) +x_39 = l_Lean_Elab_Eqns_deltaRHS_x3f(x_1, x_2, x_4, x_5, x_6, x_7, x_38); +if (lean_obj_tag(x_39) == 0) { -lean_object* x_38; -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -if (lean_obj_tag(x_38) == 0) +lean_object* x_40; +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +if (lean_obj_tag(x_40) == 0) { -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); -lean_dec(x_37); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_1); -x_40 = l_Lean_Meta_casesOnStuckLHS_x3f(x_1, x_4, x_5, x_6, x_7, x_39); -x_41 = lean_ctor_get(x_40, 0); +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_39, 1); lean_inc(x_41); -if (lean_obj_tag(x_41) == 0) -{ -lean_object* x_42; uint8_t x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_40, 1); -lean_inc(x_42); -lean_dec(x_40); -x_43 = 1; +lean_dec(x_39); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_1); -x_44 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2(x_1, x_43, x_4, x_5, x_6, x_7, x_42); -if (lean_obj_tag(x_44) == 0) +x_42 = l_Lean_Meta_casesOnStuckLHS_x3f(x_1, x_4, x_5, x_6, x_7, x_41); +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +if (lean_obj_tag(x_43) == 0) { -lean_object* x_45; -x_45 = lean_ctor_get(x_44, 0); -lean_inc(x_45); -if (lean_obj_tag(x_45) == 0) +lean_object* x_44; uint8_t x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_42, 1); +lean_inc(x_44); +lean_dec(x_42); +x_45 = 1; +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_1); +x_46 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2(x_1, x_45, x_4, x_5, x_6, x_7, x_44); +if (lean_obj_tag(x_46) == 0) { -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; -x_46 = lean_ctor_get(x_44, 1); -lean_inc(x_46); -lean_dec(x_44); -x_47 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_47, 0, x_2); -x_48 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__10; -x_49 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, x_47); -x_50 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__12; +lean_object* x_47; +x_47 = lean_ctor_get(x_46, 0); +lean_inc(x_47); +if (lean_obj_tag(x_47) == 0) +{ +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; +x_48 = lean_ctor_get(x_46, 1); +lean_inc(x_48); +lean_dec(x_46); +x_49 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_49, 0, x_2); +x_50 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__10; x_51 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_51, 0, x_49); -lean_ctor_set(x_51, 1, x_50); -x_52 = lean_alloc_ctor(5, 1, 0); -lean_ctor_set(x_52, 0, x_1); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_49); +x_52 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__12; x_53 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_53, 0, x_51); lean_ctor_set(x_53, 1, x_52); -x_54 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__14; +x_54 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_54, 0, x_1); x_55 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_55, 0, x_53); lean_ctor_set(x_55, 1, x_54); -x_56 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_55, x_4, x_5, x_6, x_7, x_46); +x_56 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__14; +x_57 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_56); +x_58 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_57, x_4, x_5, x_6, x_7, x_48); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_56; +return x_58; } else { -lean_object* x_57; lean_object* x_58; lean_object* x_59; +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_dec(x_1); -x_57 = lean_ctor_get(x_44, 1); -lean_inc(x_57); -lean_dec(x_44); -x_58 = lean_ctor_get(x_45, 0); -lean_inc(x_58); -lean_dec(x_45); -x_59 = l_List_forM___at___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___spec__1(x_2, x_58, x_4, x_5, x_6, x_7, x_57); -return x_59; +x_59 = lean_ctor_get(x_46, 1); +lean_inc(x_59); +lean_dec(x_46); +x_60 = lean_ctor_get(x_47, 0); +lean_inc(x_60); +lean_dec(x_47); +x_61 = l_List_forM___at___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___spec__1(x_2, x_60, x_4, x_5, x_6, x_7, x_59); +return x_61; } } else { -uint8_t x_60; +uint8_t x_62; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_60 = !lean_is_exclusive(x_44); -if (x_60 == 0) +x_62 = !lean_is_exclusive(x_46); +if (x_62 == 0) { -return x_44; +return x_46; } else { -lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_61 = lean_ctor_get(x_44, 0); -x_62 = lean_ctor_get(x_44, 1); -lean_inc(x_62); -lean_inc(x_61); -lean_dec(x_44); -x_63 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_63, 0, x_61); -lean_ctor_set(x_63, 1, x_62); -return x_63; +lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_46, 0); +x_64 = lean_ctor_get(x_46, 1); +lean_inc(x_64); +lean_inc(x_63); +lean_dec(x_46); +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; } } } else { -uint8_t x_64; +uint8_t x_66; lean_dec(x_1); -x_64 = !lean_is_exclusive(x_40); -if (x_64 == 0) +x_66 = !lean_is_exclusive(x_42); +if (x_66 == 0) { -lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; -x_65 = lean_ctor_get(x_40, 1); -x_66 = lean_ctor_get(x_40, 0); -lean_dec(x_66); -x_67 = lean_ctor_get(x_41, 0); -lean_inc(x_67); -lean_dec(x_41); -x_68 = lean_array_get_size(x_67); -x_69 = lean_unsigned_to_nat(0u); -x_70 = lean_nat_dec_lt(x_69, x_68); -if (x_70 == 0) -{ -lean_object* x_71; +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; uint8_t x_72; +x_67 = lean_ctor_get(x_42, 1); +x_68 = lean_ctor_get(x_42, 0); lean_dec(x_68); -lean_dec(x_67); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_71 = lean_box(0); -lean_ctor_set(x_40, 0, x_71); -return x_40; -} -else -{ -uint8_t x_72; -x_72 = lean_nat_dec_le(x_68, x_68); +x_69 = lean_ctor_get(x_43, 0); +lean_inc(x_69); +lean_dec(x_43); +x_70 = lean_array_get_size(x_69); +x_71 = lean_unsigned_to_nat(0u); +x_72 = lean_nat_dec_lt(x_71, x_70); if (x_72 == 0) { lean_object* x_73; -lean_dec(x_68); -lean_dec(x_67); +lean_dec(x_70); +lean_dec(x_69); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); x_73 = lean_box(0); -lean_ctor_set(x_40, 0, x_73); -return x_40; +lean_ctor_set(x_42, 0, x_73); +return x_42; } else { -size_t x_74; size_t x_75; lean_object* x_76; lean_object* x_77; -lean_free_object(x_40); -x_74 = 0; -x_75 = lean_usize_of_nat(x_68); -lean_dec(x_68); -x_76 = lean_box(0); -x_77 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___spec__2(x_2, x_67, x_74, x_75, x_76, x_4, x_5, x_6, x_7, x_65); -lean_dec(x_67); -return x_77; +uint8_t x_74; +x_74 = lean_nat_dec_le(x_70, x_70); +if (x_74 == 0) +{ +lean_object* x_75; +lean_dec(x_70); +lean_dec(x_69); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_75 = lean_box(0); +lean_ctor_set(x_42, 0, x_75); +return x_42; +} +else +{ +size_t x_76; size_t x_77; lean_object* x_78; lean_object* x_79; +lean_free_object(x_42); +x_76 = 0; +x_77 = lean_usize_of_nat(x_70); +lean_dec(x_70); +x_78 = lean_box(0); +x_79 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___spec__2(x_2, x_69, x_76, x_77, x_78, x_4, x_5, x_6, x_7, x_67); +lean_dec(x_69); +return x_79; } } } else { -lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t x_82; -x_78 = lean_ctor_get(x_40, 1); -lean_inc(x_78); +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; +x_80 = lean_ctor_get(x_42, 1); +lean_inc(x_80); +lean_dec(x_42); +x_81 = lean_ctor_get(x_43, 0); +lean_inc(x_81); +lean_dec(x_43); +x_82 = lean_array_get_size(x_81); +x_83 = lean_unsigned_to_nat(0u); +x_84 = lean_nat_dec_lt(x_83, x_82); +if (x_84 == 0) +{ +lean_object* x_85; lean_object* x_86; +lean_dec(x_82); +lean_dec(x_81); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_85 = lean_box(0); +x_86 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_80); +return x_86; +} +else +{ +uint8_t x_87; +x_87 = lean_nat_dec_le(x_82, x_82); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; +lean_dec(x_82); +lean_dec(x_81); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_88 = lean_box(0); +x_89 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_89, 0, x_88); +lean_ctor_set(x_89, 1, x_80); +return x_89; +} +else +{ +size_t x_90; size_t x_91; lean_object* x_92; lean_object* x_93; +x_90 = 0; +x_91 = lean_usize_of_nat(x_82); +lean_dec(x_82); +x_92 = lean_box(0); +x_93 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___spec__2(x_2, x_81, x_90, x_91, x_92, x_4, x_5, x_6, x_7, x_80); +lean_dec(x_81); +return x_93; +} +} +} +} +} +else +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; +lean_dec(x_1); +x_94 = lean_ctor_get(x_39, 1); +lean_inc(x_94); +lean_dec(x_39); +x_95 = lean_ctor_get(x_40, 0); +lean_inc(x_95); lean_dec(x_40); -x_79 = lean_ctor_get(x_41, 0); -lean_inc(x_79); -lean_dec(x_41); -x_80 = lean_array_get_size(x_79); -x_81 = lean_unsigned_to_nat(0u); -x_82 = lean_nat_dec_lt(x_81, x_80); -if (x_82 == 0) -{ -lean_object* x_83; lean_object* x_84; -lean_dec(x_80); -lean_dec(x_79); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_83 = lean_box(0); -x_84 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_78); -return x_84; -} -else -{ -uint8_t x_85; -x_85 = lean_nat_dec_le(x_80, x_80); -if (x_85 == 0) -{ -lean_object* x_86; lean_object* x_87; -lean_dec(x_80); -lean_dec(x_79); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_86 = lean_box(0); -x_87 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_87, 0, x_86); -lean_ctor_set(x_87, 1, x_78); -return x_87; -} -else -{ -size_t x_88; size_t x_89; lean_object* x_90; lean_object* x_91; -x_88 = 0; -x_89 = lean_usize_of_nat(x_80); -lean_dec(x_80); -x_90 = lean_box(0); -x_91 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___spec__2(x_2, x_79, x_88, x_89, x_90, x_4, x_5, x_6, x_7, x_78); -lean_dec(x_79); -return x_91; -} -} -} -} -} -else -{ -lean_object* x_92; lean_object* x_93; lean_object* x_94; -lean_dec(x_1); -x_92 = lean_ctor_get(x_37, 1); -lean_inc(x_92); -lean_dec(x_37); -x_93 = lean_ctor_get(x_38, 0); -lean_inc(x_93); -lean_dec(x_38); -x_94 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go(x_2, x_93, x_4, x_5, x_6, x_7, x_92); -return x_94; +x_96 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go(x_2, x_95, x_4, x_5, x_6, x_7, x_94); +return x_96; } } else { -uint8_t x_95; +uint8_t x_97; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_95 = !lean_is_exclusive(x_37); -if (x_95 == 0) +x_97 = !lean_is_exclusive(x_39); +if (x_97 == 0) { -return x_37; +return x_39; } else { -lean_object* x_96; lean_object* x_97; lean_object* x_98; -x_96 = lean_ctor_get(x_37, 0); -x_97 = lean_ctor_get(x_37, 1); -lean_inc(x_97); -lean_inc(x_96); -lean_dec(x_37); -x_98 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_98, 0, x_96); -lean_ctor_set(x_98, 1, x_97); -return x_98; +lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_98 = lean_ctor_get(x_39, 0); +x_99 = lean_ctor_get(x_39, 1); +lean_inc(x_99); +lean_inc(x_98); +lean_dec(x_39); +x_100 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_100, 0, x_98); +lean_ctor_set(x_100, 1, x_99); +return x_100; } } } default: { -lean_object* x_99; lean_object* x_100; lean_object* x_101; +lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_dec(x_1); -x_99 = lean_ctor_get(x_28, 1); -lean_inc(x_99); -lean_dec(x_28); -x_100 = lean_ctor_get(x_29, 0); -lean_inc(x_100); +x_101 = lean_ctor_get(x_29, 1); +lean_inc(x_101); lean_dec(x_29); -x_101 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go(x_2, x_100, x_4, x_5, x_6, x_7, x_99); -return x_101; +x_102 = lean_ctor_get(x_31, 0); +lean_inc(x_102); +lean_dec(x_31); +x_103 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go(x_2, x_102, x_4, x_5, x_6, x_7, x_101); +return x_103; } } } else { -uint8_t x_102; +uint8_t x_104; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_102 = !lean_is_exclusive(x_28); -if (x_102 == 0) +x_104 = !lean_is_exclusive(x_29); +if (x_104 == 0) { -return x_28; +return x_29; } else { -lean_object* x_103; lean_object* x_104; lean_object* x_105; -x_103 = lean_ctor_get(x_28, 0); -x_104 = lean_ctor_get(x_28, 1); -lean_inc(x_104); -lean_inc(x_103); -lean_dec(x_28); -x_105 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_105, 0, x_103); -lean_ctor_set(x_105, 1, x_104); -return x_105; -} -} -} -else -{ -lean_object* x_106; lean_object* x_107; lean_object* x_108; -lean_dec(x_1); -x_106 = lean_ctor_get(x_23, 1); +lean_object* x_105; lean_object* x_106; lean_object* x_107; +x_105 = lean_ctor_get(x_29, 0); +x_106 = lean_ctor_get(x_29, 1); lean_inc(x_106); -lean_dec(x_23); -x_107 = lean_ctor_get(x_24, 0); -lean_inc(x_107); -lean_dec(x_24); -x_108 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go(x_2, x_107, x_4, x_5, x_6, x_7, x_106); -return x_108; +lean_inc(x_105); +lean_dec(x_29); +x_107 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_107, 0, x_105); +lean_ctor_set(x_107, 1, x_106); +return x_107; +} } } else { -uint8_t x_109; +lean_object* x_108; lean_object* x_109; lean_object* x_110; +lean_dec(x_1); +x_108 = lean_ctor_get(x_23, 1); +lean_inc(x_108); +lean_dec(x_23); +x_109 = lean_ctor_get(x_24, 0); +lean_inc(x_109); +lean_dec(x_24); +x_110 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go(x_2, x_109, x_4, x_5, x_6, x_7, x_108); +return x_110; +} +} +else +{ +uint8_t x_111; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_109 = !lean_is_exclusive(x_23); -if (x_109 == 0) +x_111 = !lean_is_exclusive(x_23); +if (x_111 == 0) { return x_23; } else { -lean_object* x_110; lean_object* x_111; lean_object* x_112; -x_110 = lean_ctor_get(x_23, 0); -x_111 = lean_ctor_get(x_23, 1); -lean_inc(x_111); -lean_inc(x_110); -lean_dec(x_23); -x_112 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_112, 0, x_110); -lean_ctor_set(x_112, 1, x_111); -return x_112; -} -} -} -else -{ -lean_object* x_113; lean_object* x_114; lean_object* x_115; -lean_dec(x_1); -x_113 = lean_ctor_get(x_20, 1); +lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_112 = lean_ctor_get(x_23, 0); +x_113 = lean_ctor_get(x_23, 1); lean_inc(x_113); -lean_dec(x_20); -x_114 = lean_ctor_get(x_21, 0); -lean_inc(x_114); -lean_dec(x_21); -x_115 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go(x_2, x_114, x_4, x_5, x_6, x_7, x_113); -return x_115; +lean_inc(x_112); +lean_dec(x_23); +x_114 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_114, 0, x_112); +lean_ctor_set(x_114, 1, x_113); +return x_114; +} } } else { -uint8_t x_116; +lean_object* x_115; lean_object* x_116; lean_object* x_117; +lean_dec(x_1); +x_115 = lean_ctor_get(x_20, 1); +lean_inc(x_115); +lean_dec(x_20); +x_116 = lean_ctor_get(x_21, 0); +lean_inc(x_116); +lean_dec(x_21); +x_117 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go(x_2, x_116, x_4, x_5, x_6, x_7, x_115); +return x_117; +} +} +else +{ +uint8_t x_118; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_116 = !lean_is_exclusive(x_20); -if (x_116 == 0) +x_118 = !lean_is_exclusive(x_20); +if (x_118 == 0) { return x_20; } else { -lean_object* x_117; lean_object* x_118; lean_object* x_119; -x_117 = lean_ctor_get(x_20, 0); -x_118 = lean_ctor_get(x_20, 1); -lean_inc(x_118); -lean_inc(x_117); -lean_dec(x_20); -x_119 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_119, 0, x_117); -lean_ctor_set(x_119, 1, x_118); -return x_119; -} -} -} -else -{ -lean_object* x_120; lean_object* x_121; lean_object* x_122; -lean_dec(x_1); -x_120 = lean_ctor_get(x_17, 1); +lean_object* x_119; lean_object* x_120; lean_object* x_121; +x_119 = lean_ctor_get(x_20, 0); +x_120 = lean_ctor_get(x_20, 1); lean_inc(x_120); -lean_dec(x_17); -x_121 = lean_ctor_get(x_18, 0); -lean_inc(x_121); -lean_dec(x_18); -x_122 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go(x_2, x_121, x_4, x_5, x_6, x_7, x_120); -return x_122; +lean_inc(x_119); +lean_dec(x_20); +x_121 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_121, 0, x_119); +lean_ctor_set(x_121, 1, x_120); +return x_121; +} } } else { -uint8_t x_123; +lean_object* x_122; lean_object* x_123; lean_object* x_124; +lean_dec(x_1); +x_122 = lean_ctor_get(x_17, 1); +lean_inc(x_122); +lean_dec(x_17); +x_123 = lean_ctor_get(x_18, 0); +lean_inc(x_123); +lean_dec(x_18); +x_124 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go(x_2, x_123, x_4, x_5, x_6, x_7, x_122); +return x_124; +} +} +else +{ +uint8_t x_125; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_123 = !lean_is_exclusive(x_17); -if (x_123 == 0) +x_125 = !lean_is_exclusive(x_17); +if (x_125 == 0) { return x_17; } else { -lean_object* x_124; lean_object* x_125; lean_object* x_126; -x_124 = lean_ctor_get(x_17, 0); -x_125 = lean_ctor_get(x_17, 1); -lean_inc(x_125); -lean_inc(x_124); +lean_object* x_126; lean_object* x_127; lean_object* x_128; +x_126 = lean_ctor_get(x_17, 0); +x_127 = lean_ctor_get(x_17, 1); +lean_inc(x_127); +lean_inc(x_126); lean_dec(x_17); -x_126 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_126, 0, x_124); -lean_ctor_set(x_126, 1, x_125); -return x_126; +x_128 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_128, 0, x_126); +lean_ctor_set(x_128, 1, x_127); +return x_128; } } } else { -uint8_t x_127; +uint8_t x_129; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_127 = !lean_is_exclusive(x_13); -if (x_127 == 0) +x_129 = !lean_is_exclusive(x_13); +if (x_129 == 0) { -lean_object* x_128; lean_object* x_129; -x_128 = lean_ctor_get(x_13, 0); -lean_dec(x_128); -x_129 = lean_box(0); -lean_ctor_set(x_13, 0, x_129); -return x_13; -} -else -{ -lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_130 = lean_ctor_get(x_13, 1); -lean_inc(x_130); -lean_dec(x_13); +lean_object* x_130; lean_object* x_131; +x_130 = lean_ctor_get(x_13, 0); +lean_dec(x_130); x_131 = lean_box(0); -x_132 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_132, 0, x_131); -lean_ctor_set(x_132, 1, x_130); -return x_132; +lean_ctor_set(x_13, 0, x_131); +return x_13; +} +else +{ +lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_132 = lean_ctor_get(x_13, 1); +lean_inc(x_132); +lean_dec(x_13); +x_133 = lean_box(0); +x_134 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 1, x_132); +return x_134; } } } else { -uint8_t x_133; +uint8_t x_135; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_133 = !lean_is_exclusive(x_13); -if (x_133 == 0) +x_135 = !lean_is_exclusive(x_13); +if (x_135 == 0) { return x_13; } else { -lean_object* x_134; lean_object* x_135; lean_object* x_136; -x_134 = lean_ctor_get(x_13, 0); -x_135 = lean_ctor_get(x_13, 1); -lean_inc(x_135); -lean_inc(x_134); +lean_object* x_136; lean_object* x_137; lean_object* x_138; +x_136 = lean_ctor_get(x_13, 0); +x_137 = lean_ctor_get(x_13, 1); +lean_inc(x_137); +lean_inc(x_136); lean_dec(x_13); -x_136 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_136, 0, x_134); -lean_ctor_set(x_136, 1, x_135); -return x_136; +x_138 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_138, 0, x_136); +lean_ctor_set(x_138, 1, x_137); +return x_138; } } } else { -uint8_t x_137; +uint8_t x_139; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_137 = !lean_is_exclusive(x_9); -if (x_137 == 0) +x_139 = !lean_is_exclusive(x_9); +if (x_139 == 0) { -lean_object* x_138; lean_object* x_139; -x_138 = lean_ctor_get(x_9, 0); -lean_dec(x_138); -x_139 = lean_box(0); -lean_ctor_set(x_9, 0, x_139); +lean_object* x_140; lean_object* x_141; +x_140 = lean_ctor_get(x_9, 0); +lean_dec(x_140); +x_141 = lean_box(0); +lean_ctor_set(x_9, 0, x_141); return x_9; } else { -lean_object* x_140; lean_object* x_141; lean_object* x_142; -x_140 = lean_ctor_get(x_9, 1); -lean_inc(x_140); +lean_object* x_142; lean_object* x_143; lean_object* x_144; +x_142 = lean_ctor_get(x_9, 1); +lean_inc(x_142); lean_dec(x_9); -x_141 = lean_box(0); -x_142 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_142, 0, x_141); -lean_ctor_set(x_142, 1, x_140); -return x_142; +x_143 = lean_box(0); +x_144 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_144, 0, x_143); +lean_ctor_set(x_144, 1, x_142); +return x_144; } } } @@ -2539,7 +2546,7 @@ lean_dec(x_1); return x_17; } } -static lean_object* _init_l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1191____closed__1() { +static lean_object* _init_l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1192____closed__1() { _start: { lean_object* x_1; @@ -2547,22 +2554,22 @@ x_1 = lean_mk_string_from_bytes("structEqInfo", 12); return x_1; } } -static lean_object* _init_l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1191____closed__2() { +static lean_object* _init_l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1192____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_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1191____closed__1; +x_2 = l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1192____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1191_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1192_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; x_2 = l_Lean_Elab_Structural_instInhabitedEqnInfo; -x_3 = l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1191____closed__2; +x_3 = l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1192____closed__2; x_4 = l_Lean_mkMapDeclarationExtension___rarg(x_2, x_3, x_1); return x_4; } @@ -3157,7 +3164,7 @@ return x_31; } } } -static lean_object* _init_l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1412____closed__1() { +static lean_object* _init_l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1413____closed__1() { _start: { lean_object* x_1; @@ -3165,7 +3172,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Structural_getEqnsFor_x3f), 6, 0); return x_1; } } -static lean_object* _init_l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1412____closed__2() { +static lean_object* _init_l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1413____closed__2() { _start: { lean_object* x_1; @@ -3173,11 +3180,11 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Structural_getUnfoldFor_x3f), 6, 0) return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1412_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1413_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1412____closed__1; +x_2 = l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1413____closed__1; x_3 = l_Lean_Meta_registerGetEqnsFn(x_2, x_1); if (lean_obj_tag(x_3) == 0) { @@ -3185,7 +3192,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; x_4 = lean_ctor_get(x_3, 1); lean_inc(x_4); lean_dec(x_3); -x_5 = l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1412____closed__2; +x_5 = l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1413____closed__2; x_6 = l_Lean_Meta_registerGetUnfoldEqnFn(x_5, x_4); if (lean_obj_tag(x_6) == 0) { @@ -3358,11 +3365,11 @@ l_Lean_Elab_Structural_mkEqns___lambda__1___closed__1 = _init_l_Lean_Elab_Struct lean_mark_persistent(l_Lean_Elab_Structural_mkEqns___lambda__1___closed__1); l_Lean_Elab_Structural_mkEqns___closed__1 = _init_l_Lean_Elab_Structural_mkEqns___closed__1(); lean_mark_persistent(l_Lean_Elab_Structural_mkEqns___closed__1); -l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1191____closed__1 = _init_l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1191____closed__1(); -lean_mark_persistent(l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1191____closed__1); -l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1191____closed__2 = _init_l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1191____closed__2(); -lean_mark_persistent(l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1191____closed__2); -if (builtin) {res = l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1191_(lean_io_mk_world()); +l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1192____closed__1 = _init_l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1192____closed__1(); +lean_mark_persistent(l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1192____closed__1); +l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1192____closed__2 = _init_l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1192____closed__2(); +lean_mark_persistent(l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1192____closed__2); +if (builtin) {res = l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1192_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l_Lean_Elab_Structural_eqnInfoExt = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_Elab_Structural_eqnInfoExt); @@ -3371,11 +3378,11 @@ lean_dec_ref(res); lean_mark_persistent(l_Lean_Elab_Structural_registerEqnsInfo___closed__1); l_Lean_Elab_Structural_registerEqnsInfo___closed__2 = _init_l_Lean_Elab_Structural_registerEqnsInfo___closed__2(); lean_mark_persistent(l_Lean_Elab_Structural_registerEqnsInfo___closed__2); -l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1412____closed__1 = _init_l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1412____closed__1(); -lean_mark_persistent(l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1412____closed__1); -l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1412____closed__2 = _init_l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1412____closed__2(); -lean_mark_persistent(l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1412____closed__2); -res = l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1412_(lean_io_mk_world()); +l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1413____closed__1 = _init_l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1413____closed__1(); +lean_mark_persistent(l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1413____closed__1); +l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1413____closed__2 = _init_l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1413____closed__2(); +lean_mark_persistent(l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1413____closed__2); +res = l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1413_(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/PreDefinition/WF/Eqns.c b/stage0/stdlib/Lean/Elab/PreDefinition/WF/Eqns.c index 0e8dc6e40f..8c79e987f9 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/WF/Eqns.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/WF/Eqns.c @@ -37,7 +37,6 @@ uint8_t lean_usize_dec_eq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); lean_object* l_Lean_Meta_Simp_simpMatchCore_x3f(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_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3359____closed__2; static lean_object* l_panic___at___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_tryToFoldLHS_x3f___spec__1___closed__1; static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_decodePackedArg_x3f_decodePSum_x3f___closed__5; static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__3; @@ -82,6 +81,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Ela static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_deltaLHSUntilFix___lambda__1___closed__5; extern lean_object* l_Lean_levelZero; lean_object* lean_nat_add(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3201____closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_WF_eqnInfoExt; LEAN_EXPORT lean_object* l_Lean_Elab_WF_getUnfoldFor_x3f___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkAppN(lean_object*, lean_object*); @@ -107,12 +107,13 @@ lean_object* l_Lean_Elab_Eqns_simpIf_x3f(lean_object*, lean_object*, lean_object LEAN_EXPORT lean_object* l_Lean_Elab_WF_simpMatchWF_x3f_pre___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_WF_simpMatchWF_x3f_pre___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_Simp_main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Simp_main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_Expr_constLevels_x21(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_hasWellFoundedFix___boxed(lean_object*); static lean_object* l_Lean_Elab_WF_instInhabitedEqnInfo___closed__2; static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_tryToFoldWellFoundedFix_pre___closed__2; +static lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3201____closed__1; static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_deltaLHSUntilFix___lambda__1___closed__3; lean_object* l_Lean_Meta_transform___at_Lean_Meta_zetaReduce___spec__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MVarId_assign___at_Lean_Meta_getLevel___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -133,8 +134,8 @@ static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_ lean_object* l_Lean_mkMapDeclarationExtension___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_WF_registerEqnsInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3359_(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3171_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3389_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3201_(lean_object*); LEAN_EXPORT lean_object* l_panic___at___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_getFixedPrefix___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_WF_simpMatchWF_x3f_pre___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_decodePackedArg_x3f_decodePSum_x3f___closed__4; @@ -142,7 +143,7 @@ static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_ lean_object* l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); lean_object* l_Lean_Expr_sort___override(lean_object*); -lean_object* l_Lean_Meta_simpTargetStar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_simpTargetStar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_to_list(lean_object*, lean_object*); static lean_object* l_Lean_Elab_WF_simpMatchWF_x3f___lambda__3___closed__1; @@ -163,6 +164,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_WF_mkEqns(lean_object*, lean_object*, lean_ lean_object* l_Lean_addDecl(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__1; size_t lean_usize_of_nat(lean_object*); +extern lean_object* l_Lean_NameSet_empty; static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_tryToFoldWellFoundedFix___closed__1; lean_object* l_Lean_throwError___at_Lean_Meta_mkSimpCongrTheorem___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_registerGetEqnsFn(lean_object*, lean_object*); @@ -216,7 +218,6 @@ static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_ lean_object* l_List_mapTRAux___at_Lean_mkConstWithLevelParams___spec__1(lean_object*, lean_object*); lean_object* l_Array_ofSubarray___rarg(lean_object*); static lean_object* l_Lean_Elab_WF_instInhabitedEqnInfo___closed__4; -static lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3171____closed__1; static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_getFixedPrefix___lambda__3___closed__6; static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_deltaLHSUntilFix___lambda__1___closed__11; lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); @@ -235,7 +236,6 @@ lean_object* l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_deltaLHSUntilFix___lambda__1___closed__10; lean_object* lean_panic_fn(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3171____closed__2; lean_object* l_Lean_MVarId_getType_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_rwFixEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -259,7 +259,6 @@ static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_ LEAN_EXPORT lean_object* l_Lean_Elab_WF_getUnfoldFor_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_tryToFoldWellFoundedFix___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_tryToFoldWellFoundedFix_pre___closed__1; -static lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3359____closed__1; LEAN_EXPORT uint8_t l_Array_isEqvAux___at_Lean_Elab_WF_simpMatchWF_x3f_pre___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_rwFixEq___lambda__1___closed__8; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_WF_registerEqnsInfo___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -275,6 +274,7 @@ static lean_object* l_Lean_Elab_WF_simpMatchWF_x3f_pre___lambda__1___closed__1; lean_object* l_Lean_indentExpr(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_getFixedPrefix___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_tryToFoldWellFoundedFix_pre___closed__8; +static lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3389____closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_WF_getEqnsFor_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_reduceRecMatcher_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_WF_simpMatchWF_x3f___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -288,6 +288,7 @@ extern lean_object* l_Lean_Meta_Simp_defaultMaxSteps; LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_mkEqns___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*); static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_tryToFoldWellFoundedFix_pre___closed__9; lean_object* l_Lean_isTracingEnabledFor___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3389____closed__1; lean_object* l_Lean_Meta_instInhabitedMetaM___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_tryToFoldWellFoundedFix(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); @@ -3739,7 +3740,7 @@ lean_inc(x_1); x_10 = l_Lean_MVarId_getType(x_1, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_10) == 0) { -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_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; x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); x_12 = lean_ctor_get(x_10, 1); @@ -3767,138 +3768,142 @@ x_22 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_22, 0, x_19); lean_ctor_set(x_22, 1, x_20); lean_ctor_set(x_22, 2, x_21); +x_23 = l_Lean_NameSet_empty; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_14); -x_23 = l_Lean_Meta_Simp_main(x_14, x_17, x_22, x_5, x_6, x_7, x_8, x_18); -if (lean_obj_tag(x_23) == 0) +x_24 = l_Lean_Meta_Simp_main(x_14, x_17, x_23, x_22, x_5, x_6, x_7, x_8, x_18); +if (lean_obj_tag(x_24) == 0) { -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_23, 0); -lean_inc(x_24); -x_25 = lean_ctor_get(x_23, 1); +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_25 = lean_ctor_get(x_24, 0); lean_inc(x_25); -lean_dec(x_23); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +x_27 = lean_ctor_get(x_25, 0); +lean_inc(x_27); +lean_dec(x_25); lean_inc(x_1); -x_26 = l_Lean_Meta_applySimpResultToTarget(x_1, x_14, x_24, x_5, x_6, x_7, x_8, x_25); +x_28 = l_Lean_Meta_applySimpResultToTarget(x_1, x_14, x_27, x_5, x_6, x_7, x_8, x_26); lean_dec(x_14); -if (lean_obj_tag(x_26) == 0) +if (lean_obj_tag(x_28) == 0) { -uint8_t x_27; -x_27 = !lean_is_exclusive(x_26); -if (x_27 == 0) -{ -lean_object* x_28; uint8_t x_29; -x_28 = lean_ctor_get(x_26, 0); -x_29 = lean_name_eq(x_1, x_28); -lean_dec(x_1); +uint8_t x_29; +x_29 = !lean_is_exclusive(x_28); if (x_29 == 0) { -lean_object* x_30; -x_30 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_30, 0, x_28); -lean_ctor_set(x_26, 0, x_30); -return x_26; -} -else -{ -lean_object* x_31; -lean_dec(x_28); -x_31 = lean_box(0); -lean_ctor_set(x_26, 0, x_31); -return x_26; -} -} -else -{ -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 = lean_name_eq(x_1, x_32); +lean_object* x_30; uint8_t x_31; +x_30 = lean_ctor_get(x_28, 0); +x_31 = lean_name_eq(x_1, x_30); lean_dec(x_1); -if (x_34 == 0) +if (x_31 == 0) { -lean_object* x_35; lean_object* x_36; -x_35 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_35, 0, x_32); -x_36 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_33); -return x_36; +lean_object* x_32; +x_32 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_32, 0, x_30); +lean_ctor_set(x_28, 0, x_32); +return x_28; } else { +lean_object* x_33; +lean_dec(x_30); +x_33 = lean_box(0); +lean_ctor_set(x_28, 0, x_33); +return x_28; +} +} +else +{ +lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_34 = lean_ctor_get(x_28, 0); +x_35 = lean_ctor_get(x_28, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_28); +x_36 = lean_name_eq(x_1, x_34); +lean_dec(x_1); +if (x_36 == 0) +{ lean_object* x_37; lean_object* x_38; -lean_dec(x_32); -x_37 = lean_box(0); +x_37 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_37, 0, x_34); x_38 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_33); +lean_ctor_set(x_38, 1, x_35); return x_38; } +else +{ +lean_object* x_39; lean_object* x_40; +lean_dec(x_34); +x_39 = lean_box(0); +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_35); +return x_40; +} } } else { -uint8_t x_39; +uint8_t x_41; lean_dec(x_1); -x_39 = !lean_is_exclusive(x_26); -if (x_39 == 0) +x_41 = !lean_is_exclusive(x_28); +if (x_41 == 0) { -return x_26; +return x_28; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_26, 0); -x_41 = lean_ctor_get(x_26, 1); -lean_inc(x_41); -lean_inc(x_40); -lean_dec(x_26); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -return x_42; +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_28, 0); +x_43 = lean_ctor_get(x_28, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_28); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_42); +lean_ctor_set(x_44, 1, x_43); +return x_44; } } } else { -uint8_t x_43; +uint8_t x_45; lean_dec(x_14); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_43 = !lean_is_exclusive(x_23); -if (x_43 == 0) +x_45 = !lean_is_exclusive(x_24); +if (x_45 == 0) { -return x_23; +return x_24; } else { -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_23, 0); -x_45 = lean_ctor_get(x_23, 1); -lean_inc(x_45); -lean_inc(x_44); -lean_dec(x_23); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_44); -lean_ctor_set(x_46, 1, x_45); -return x_46; +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_24, 0); +x_47 = lean_ctor_get(x_24, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_24); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; } } } else { -uint8_t x_47; +uint8_t x_49; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -3907,23 +3912,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_47 = !lean_is_exclusive(x_10); -if (x_47 == 0) +x_49 = !lean_is_exclusive(x_10); +if (x_49 == 0) { return x_10; } else { -lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_48 = lean_ctor_get(x_10, 0); -x_49 = lean_ctor_get(x_10, 1); -lean_inc(x_49); -lean_inc(x_48); +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_10, 0); +x_51 = lean_ctor_get(x_10, 1); +lean_inc(x_51); +lean_inc(x_50); lean_dec(x_10); -x_50 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_49); -return x_50; +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +return x_52; } } } @@ -5006,19 +5011,21 @@ return x_4; static lean_object* _init_l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__7() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +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; x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__1; -x_3 = l_Lean_Elab_WF_instInhabitedEqnInfo___closed__3; -x_4 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__6; -x_5 = lean_unsigned_to_nat(0u); -x_6 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_6, 0, x_2); -lean_ctor_set(x_6, 1, x_3); -lean_ctor_set(x_6, 2, x_4); -lean_ctor_set(x_6, 3, x_1); -lean_ctor_set(x_6, 4, x_5); -return x_6; +x_2 = lean_box(0); +x_3 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__1; +x_4 = l_Lean_Elab_WF_instInhabitedEqnInfo___closed__3; +x_5 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__6; +x_6 = lean_unsigned_to_nat(0u); +x_7 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_7, 0, x_3); +lean_ctor_set(x_7, 1, x_4); +lean_ctor_set(x_7, 2, x_5); +lean_ctor_set(x_7, 3, x_1); +lean_ctor_set(x_7, 4, x_2); +lean_ctor_set(x_7, 5, x_6); +return x_7; } } static lean_object* _init_l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__8() { @@ -5128,27 +5135,31 @@ x_27 = lean_ctor_get(x_26, 0); lean_inc(x_27); if (lean_obj_tag(x_27) == 0) { -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; x_28 = lean_ctor_get(x_26, 1); lean_inc(x_28); lean_dec(x_26); x_29 = lean_box(0); x_30 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__7; +x_31 = l_Lean_NameSet_empty; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_1); -x_31 = l_Lean_Meta_simpTargetStar(x_1, x_30, x_29, x_7, x_8, x_9, x_10, x_28); -if (lean_obj_tag(x_31) == 0) +x_32 = l_Lean_Meta_simpTargetStar(x_1, x_30, x_29, x_31, x_7, x_8, x_9, x_10, x_28); +if (lean_obj_tag(x_32) == 0) { -lean_object* x_32; -x_32 = lean_ctor_get(x_31, 0); -lean_inc(x_32); -switch (lean_obj_tag(x_32)) { +lean_object* x_33; lean_object* x_34; +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +lean_dec(x_33); +switch (lean_obj_tag(x_34)) { case 0: { -uint8_t x_33; +uint8_t x_35; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -5158,67 +5169,67 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_33 = !lean_is_exclusive(x_31); -if (x_33 == 0) +x_35 = !lean_is_exclusive(x_32); +if (x_35 == 0) { -lean_object* x_34; lean_object* x_35; -x_34 = lean_ctor_get(x_31, 0); -lean_dec(x_34); -x_35 = lean_box(0); -lean_ctor_set(x_31, 0, x_35); -return x_31; +lean_object* x_36; lean_object* x_37; +x_36 = lean_ctor_get(x_32, 0); +lean_dec(x_36); +x_37 = lean_box(0); +lean_ctor_set(x_32, 0, x_37); +return x_32; } else { -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_31, 1); -lean_inc(x_36); -lean_dec(x_31); -x_37 = lean_box(0); -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_36); -return x_38; +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_32, 1); +lean_inc(x_38); +lean_dec(x_32); +x_39 = lean_box(0); +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_38); +return x_40; } } case 1: { -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_31, 1); -lean_inc(x_39); -lean_dec(x_31); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_1); -x_40 = l_Lean_Meta_casesOnStuckLHS_x3f(x_1, x_7, x_8, x_9, x_10, x_39); -x_41 = lean_ctor_get(x_40, 0); +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_32, 1); lean_inc(x_41); -if (lean_obj_tag(x_41) == 0) -{ -lean_object* x_42; uint8_t x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_40, 1); -lean_inc(x_42); -lean_dec(x_40); -x_43 = 1; +lean_dec(x_32); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_1); -x_44 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2(x_1, x_43, x_7, x_8, x_9, x_10, x_42); -if (lean_obj_tag(x_44) == 0) +x_42 = l_Lean_Meta_casesOnStuckLHS_x3f(x_1, x_7, x_8, x_9, x_10, x_41); +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +if (lean_obj_tag(x_43) == 0) { -lean_object* x_45; -x_45 = lean_ctor_get(x_44, 0); -lean_inc(x_45); -if (lean_obj_tag(x_45) == 0) +lean_object* x_44; uint8_t x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_42, 1); +lean_inc(x_44); +lean_dec(x_42); +x_45 = 1; +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_1); +x_46 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2(x_1, x_45, x_7, x_8, x_9, x_10, x_44); +if (lean_obj_tag(x_46) == 0) { -lean_object* x_46; lean_object* x_47; -x_46 = lean_ctor_get(x_44, 1); -lean_inc(x_46); -lean_dec(x_44); +lean_object* x_47; +x_47 = lean_ctor_get(x_46, 0); +lean_inc(x_47); +if (lean_obj_tag(x_47) == 0) +{ +lean_object* x_48; lean_object* x_49; +x_48 = lean_ctor_get(x_46, 1); +lean_inc(x_48); +lean_dec(x_46); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); @@ -5227,64 +5238,64 @@ lean_inc(x_1); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_47 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_tryToFoldLHS_x3f(x_2, x_3, x_4, x_1, x_7, x_8, x_9, x_10, x_46); -if (lean_obj_tag(x_47) == 0) +x_49 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_tryToFoldLHS_x3f(x_2, x_3, x_4, x_1, x_7, x_8, x_9, x_10, x_48); +if (lean_obj_tag(x_49) == 0) { -lean_object* x_48; -x_48 = lean_ctor_get(x_47, 0); -lean_inc(x_48); -if (lean_obj_tag(x_48) == 0) +lean_object* x_50; +x_50 = lean_ctor_get(x_49, 0); +lean_inc(x_50); +if (lean_obj_tag(x_50) == 0) { -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_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_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_49 = lean_ctor_get(x_47, 1); -lean_inc(x_49); -lean_dec(x_47); -x_50 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_50, 0, x_5); -x_51 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_getFixedPrefix___lambda__3___closed__4; -x_52 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_52, 1, x_50); -x_53 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__9; +x_51 = lean_ctor_get(x_49, 1); +lean_inc(x_51); +lean_dec(x_49); +x_52 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_52, 0, x_5); +x_53 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_getFixedPrefix___lambda__3___closed__4; x_54 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_54, 0, x_52); -lean_ctor_set(x_54, 1, x_53); -x_55 = lean_alloc_ctor(5, 1, 0); -lean_ctor_set(x_55, 0, x_1); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_52); +x_55 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__9; x_56 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_56, 0, x_54); lean_ctor_set(x_56, 1, x_55); -x_57 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_tryToFoldWellFoundedFix_pre___closed__11; +x_57 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_57, 0, x_1); x_58 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_58, 0, x_56); lean_ctor_set(x_58, 1, x_57); -x_59 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_58, x_7, x_8, x_9, x_10, x_49); +x_59 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_tryToFoldWellFoundedFix_pre___closed__11; +x_60 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_60, 0, x_58); +lean_ctor_set(x_60, 1, x_59); +x_61 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_60, x_7, x_8, x_9, x_10, x_51); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -return x_59; +return x_61; } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_dec(x_1); -x_60 = lean_ctor_get(x_47, 1); -lean_inc(x_60); -lean_dec(x_47); -x_61 = lean_ctor_get(x_48, 0); -lean_inc(x_61); -lean_dec(x_48); -x_62 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go(x_5, x_2, x_3, x_4, x_61, x_7, x_8, x_9, x_10, x_60); -return x_62; +x_62 = lean_ctor_get(x_49, 1); +lean_inc(x_62); +lean_dec(x_49); +x_63 = lean_ctor_get(x_50, 0); +lean_inc(x_63); +lean_dec(x_50); +x_64 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go(x_5, x_2, x_3, x_4, x_63, x_7, x_8, x_9, x_10, x_62); +return x_64; } } else { -uint8_t x_63; +uint8_t x_65; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -5294,43 +5305,43 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_63 = !lean_is_exclusive(x_47); -if (x_63 == 0) +x_65 = !lean_is_exclusive(x_49); +if (x_65 == 0) { -return x_47; +return x_49; } else { -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_47, 0); -x_65 = lean_ctor_get(x_47, 1); -lean_inc(x_65); -lean_inc(x_64); -lean_dec(x_47); -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; -} -} -} -else -{ -lean_object* x_67; lean_object* x_68; lean_object* x_69; -lean_dec(x_1); -x_67 = lean_ctor_get(x_44, 1); +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_49, 0); +x_67 = lean_ctor_get(x_49, 1); lean_inc(x_67); -lean_dec(x_44); -x_68 = lean_ctor_get(x_45, 0); -lean_inc(x_68); -lean_dec(x_45); -x_69 = l_List_forM___at___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___spec__1(x_5, x_2, x_3, x_4, x_68, x_7, x_8, x_9, x_10, x_67); -return x_69; +lean_inc(x_66); +lean_dec(x_49); +x_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_66); +lean_ctor_set(x_68, 1, x_67); +return x_68; +} } } else { -uint8_t x_70; +lean_object* x_69; lean_object* x_70; lean_object* x_71; +lean_dec(x_1); +x_69 = lean_ctor_get(x_46, 1); +lean_inc(x_69); +lean_dec(x_46); +x_70 = lean_ctor_get(x_47, 0); +lean_inc(x_70); +lean_dec(x_47); +x_71 = l_List_forM___at___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___spec__1(x_5, x_2, x_3, x_4, x_70, x_7, x_8, x_9, x_10, x_69); +return x_71; +} +} +else +{ +uint8_t x_72; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -5340,69 +5351,48 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_70 = !lean_is_exclusive(x_44); -if (x_70 == 0) +x_72 = !lean_is_exclusive(x_46); +if (x_72 == 0) { -return x_44; +return x_46; } else { -lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_71 = lean_ctor_get(x_44, 0); -x_72 = lean_ctor_get(x_44, 1); -lean_inc(x_72); -lean_inc(x_71); -lean_dec(x_44); -x_73 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_73, 0, x_71); -lean_ctor_set(x_73, 1, x_72); -return x_73; +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_46, 0); +x_74 = lean_ctor_get(x_46, 1); +lean_inc(x_74); +lean_inc(x_73); +lean_dec(x_46); +x_75 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_75, 0, x_73); +lean_ctor_set(x_75, 1, x_74); +return x_75; } } } else { -uint8_t x_74; +uint8_t x_76; lean_dec(x_1); -x_74 = !lean_is_exclusive(x_40); -if (x_74 == 0) +x_76 = !lean_is_exclusive(x_42); +if (x_76 == 0) { -lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; uint8_t x_80; -x_75 = lean_ctor_get(x_40, 1); -x_76 = lean_ctor_get(x_40, 0); -lean_dec(x_76); -x_77 = lean_ctor_get(x_41, 0); -lean_inc(x_77); -lean_dec(x_41); -x_78 = lean_array_get_size(x_77); -x_79 = lean_unsigned_to_nat(0u); -x_80 = lean_nat_dec_lt(x_79, x_78); -if (x_80 == 0) -{ -lean_object* x_81; +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_77 = lean_ctor_get(x_42, 1); +x_78 = lean_ctor_get(x_42, 0); lean_dec(x_78); -lean_dec(x_77); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_81 = lean_box(0); -lean_ctor_set(x_40, 0, x_81); -return x_40; -} -else -{ -uint8_t x_82; -x_82 = lean_nat_dec_le(x_78, x_78); +x_79 = lean_ctor_get(x_43, 0); +lean_inc(x_79); +lean_dec(x_43); +x_80 = lean_array_get_size(x_79); +x_81 = lean_unsigned_to_nat(0u); +x_82 = lean_nat_dec_lt(x_81, x_80); if (x_82 == 0) { lean_object* x_83; -lean_dec(x_78); -lean_dec(x_77); +lean_dec(x_80); +lean_dec(x_79); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -5412,40 +5402,18 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); x_83 = lean_box(0); -lean_ctor_set(x_40, 0, x_83); -return x_40; +lean_ctor_set(x_42, 0, x_83); +return x_42; } else { -size_t x_84; size_t x_85; lean_object* x_86; lean_object* x_87; -lean_free_object(x_40); -x_84 = 0; -x_85 = lean_usize_of_nat(x_78); -lean_dec(x_78); -x_86 = lean_box(0); -x_87 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___spec__2(x_5, x_2, x_3, x_4, x_77, x_84, x_85, x_86, x_7, x_8, x_9, x_10, x_75); -lean_dec(x_77); -return x_87; -} -} -} -else +uint8_t x_84; +x_84 = lean_nat_dec_le(x_80, x_80); +if (x_84 == 0) { -lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; uint8_t x_92; -x_88 = lean_ctor_get(x_40, 1); -lean_inc(x_88); -lean_dec(x_40); -x_89 = lean_ctor_get(x_41, 0); -lean_inc(x_89); -lean_dec(x_41); -x_90 = lean_array_get_size(x_89); -x_91 = lean_unsigned_to_nat(0u); -x_92 = lean_nat_dec_lt(x_91, x_90); -if (x_92 == 0) -{ -lean_object* x_93; lean_object* x_94; -lean_dec(x_90); -lean_dec(x_89); +lean_object* x_85; +lean_dec(x_80); +lean_dec(x_79); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -5454,21 +5422,41 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_93 = lean_box(0); -x_94 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_94, 0, x_93); -lean_ctor_set(x_94, 1, x_88); -return x_94; +x_85 = lean_box(0); +lean_ctor_set(x_42, 0, x_85); +return x_42; } else { -uint8_t x_95; -x_95 = lean_nat_dec_le(x_90, x_90); -if (x_95 == 0) +size_t x_86; size_t x_87; lean_object* x_88; lean_object* x_89; +lean_free_object(x_42); +x_86 = 0; +x_87 = lean_usize_of_nat(x_80); +lean_dec(x_80); +x_88 = lean_box(0); +x_89 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___spec__2(x_5, x_2, x_3, x_4, x_79, x_86, x_87, x_88, x_7, x_8, x_9, x_10, x_77); +lean_dec(x_79); +return x_89; +} +} +} +else { -lean_object* x_96; lean_object* x_97; -lean_dec(x_90); -lean_dec(x_89); +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; uint8_t x_94; +x_90 = lean_ctor_get(x_42, 1); +lean_inc(x_90); +lean_dec(x_42); +x_91 = lean_ctor_get(x_43, 0); +lean_inc(x_91); +lean_dec(x_43); +x_92 = lean_array_get_size(x_91); +x_93 = lean_unsigned_to_nat(0u); +x_94 = lean_nat_dec_lt(x_93, x_92); +if (x_94 == 0) +{ +lean_object* x_95; lean_object* x_96; +lean_dec(x_92); +lean_dec(x_91); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -5477,22 +5465,45 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_96 = lean_box(0); -x_97 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_97, 0, x_96); -lean_ctor_set(x_97, 1, x_88); -return x_97; +x_95 = lean_box(0); +x_96 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_96, 0, x_95); +lean_ctor_set(x_96, 1, x_90); +return x_96; } else { -size_t x_98; size_t x_99; lean_object* x_100; lean_object* x_101; -x_98 = 0; -x_99 = lean_usize_of_nat(x_90); -lean_dec(x_90); -x_100 = lean_box(0); -x_101 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___spec__2(x_5, x_2, x_3, x_4, x_89, x_98, x_99, x_100, x_7, x_8, x_9, x_10, x_88); -lean_dec(x_89); -return x_101; +uint8_t x_97; +x_97 = lean_nat_dec_le(x_92, x_92); +if (x_97 == 0) +{ +lean_object* x_98; lean_object* x_99; +lean_dec(x_92); +lean_dec(x_91); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_98 = lean_box(0); +x_99 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_99, 0, x_98); +lean_ctor_set(x_99, 1, x_90); +return x_99; +} +else +{ +size_t x_100; size_t x_101; lean_object* x_102; lean_object* x_103; +x_100 = 0; +x_101 = lean_usize_of_nat(x_92); +lean_dec(x_92); +x_102 = lean_box(0); +x_103 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___spec__2(x_5, x_2, x_3, x_4, x_91, x_100, x_101, x_102, x_7, x_8, x_9, x_10, x_90); +lean_dec(x_91); +return x_103; } } } @@ -5500,22 +5511,22 @@ return x_101; } default: { -lean_object* x_102; lean_object* x_103; lean_object* x_104; +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_dec(x_1); -x_102 = lean_ctor_get(x_31, 1); -lean_inc(x_102); -lean_dec(x_31); -x_103 = lean_ctor_get(x_32, 0); -lean_inc(x_103); +x_104 = lean_ctor_get(x_32, 1); +lean_inc(x_104); lean_dec(x_32); -x_104 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go(x_5, x_2, x_3, x_4, x_103, x_7, x_8, x_9, x_10, x_102); -return x_104; +x_105 = lean_ctor_get(x_34, 0); +lean_inc(x_105); +lean_dec(x_34); +x_106 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go(x_5, x_2, x_3, x_4, x_105, x_7, x_8, x_9, x_10, x_104); +return x_106; } } } else { -uint8_t x_105; +uint8_t x_107; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -5525,43 +5536,43 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_105 = !lean_is_exclusive(x_31); -if (x_105 == 0) +x_107 = !lean_is_exclusive(x_32); +if (x_107 == 0) { -return x_31; +return x_32; } else { -lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_106 = lean_ctor_get(x_31, 0); -x_107 = lean_ctor_get(x_31, 1); -lean_inc(x_107); -lean_inc(x_106); -lean_dec(x_31); -x_108 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_108, 0, x_106); -lean_ctor_set(x_108, 1, x_107); -return x_108; -} -} -} -else -{ -lean_object* x_109; lean_object* x_110; lean_object* x_111; -lean_dec(x_1); -x_109 = lean_ctor_get(x_26, 1); +lean_object* x_108; lean_object* x_109; lean_object* x_110; +x_108 = lean_ctor_get(x_32, 0); +x_109 = lean_ctor_get(x_32, 1); lean_inc(x_109); -lean_dec(x_26); -x_110 = lean_ctor_get(x_27, 0); -lean_inc(x_110); -lean_dec(x_27); -x_111 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go(x_5, x_2, x_3, x_4, x_110, x_7, x_8, x_9, x_10, x_109); -return x_111; +lean_inc(x_108); +lean_dec(x_32); +x_110 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_110, 0, x_108); +lean_ctor_set(x_110, 1, x_109); +return x_110; +} } } else { -uint8_t x_112; +lean_object* x_111; lean_object* x_112; lean_object* x_113; +lean_dec(x_1); +x_111 = lean_ctor_get(x_26, 1); +lean_inc(x_111); +lean_dec(x_26); +x_112 = lean_ctor_get(x_27, 0); +lean_inc(x_112); +lean_dec(x_27); +x_113 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go(x_5, x_2, x_3, x_4, x_112, x_7, x_8, x_9, x_10, x_111); +return x_113; +} +} +else +{ +uint8_t x_114; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -5571,43 +5582,43 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_112 = !lean_is_exclusive(x_26); -if (x_112 == 0) +x_114 = !lean_is_exclusive(x_26); +if (x_114 == 0) { return x_26; } else { -lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_113 = lean_ctor_get(x_26, 0); -x_114 = lean_ctor_get(x_26, 1); -lean_inc(x_114); -lean_inc(x_113); -lean_dec(x_26); -x_115 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_115, 0, x_113); -lean_ctor_set(x_115, 1, x_114); -return x_115; -} -} -} -else -{ -lean_object* x_116; lean_object* x_117; lean_object* x_118; -lean_dec(x_1); -x_116 = lean_ctor_get(x_23, 1); +lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_115 = lean_ctor_get(x_26, 0); +x_116 = lean_ctor_get(x_26, 1); lean_inc(x_116); -lean_dec(x_23); -x_117 = lean_ctor_get(x_24, 0); -lean_inc(x_117); -lean_dec(x_24); -x_118 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go(x_5, x_2, x_3, x_4, x_117, x_7, x_8, x_9, x_10, x_116); -return x_118; +lean_inc(x_115); +lean_dec(x_26); +x_117 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_117, 0, x_115); +lean_ctor_set(x_117, 1, x_116); +return x_117; +} } } else { -uint8_t x_119; +lean_object* x_118; lean_object* x_119; lean_object* x_120; +lean_dec(x_1); +x_118 = lean_ctor_get(x_23, 1); +lean_inc(x_118); +lean_dec(x_23); +x_119 = lean_ctor_get(x_24, 0); +lean_inc(x_119); +lean_dec(x_24); +x_120 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go(x_5, x_2, x_3, x_4, x_119, x_7, x_8, x_9, x_10, x_118); +return x_120; +} +} +else +{ +uint8_t x_121; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -5617,43 +5628,43 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_119 = !lean_is_exclusive(x_23); -if (x_119 == 0) +x_121 = !lean_is_exclusive(x_23); +if (x_121 == 0) { return x_23; } else { -lean_object* x_120; lean_object* x_121; lean_object* x_122; -x_120 = lean_ctor_get(x_23, 0); -x_121 = lean_ctor_get(x_23, 1); -lean_inc(x_121); -lean_inc(x_120); -lean_dec(x_23); -x_122 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_122, 0, x_120); -lean_ctor_set(x_122, 1, x_121); -return x_122; -} -} -} -else -{ -lean_object* x_123; lean_object* x_124; lean_object* x_125; -lean_dec(x_1); -x_123 = lean_ctor_get(x_20, 1); +lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_122 = lean_ctor_get(x_23, 0); +x_123 = lean_ctor_get(x_23, 1); lean_inc(x_123); -lean_dec(x_20); -x_124 = lean_ctor_get(x_21, 0); -lean_inc(x_124); -lean_dec(x_21); -x_125 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go(x_5, x_2, x_3, x_4, x_124, x_7, x_8, x_9, x_10, x_123); -return x_125; +lean_inc(x_122); +lean_dec(x_23); +x_124 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_124, 0, x_122); +lean_ctor_set(x_124, 1, x_123); +return x_124; +} } } else { -uint8_t x_126; +lean_object* x_125; lean_object* x_126; lean_object* x_127; +lean_dec(x_1); +x_125 = lean_ctor_get(x_20, 1); +lean_inc(x_125); +lean_dec(x_20); +x_126 = lean_ctor_get(x_21, 0); +lean_inc(x_126); +lean_dec(x_21); +x_127 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go(x_5, x_2, x_3, x_4, x_126, x_7, x_8, x_9, x_10, x_125); +return x_127; +} +} +else +{ +uint8_t x_128; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -5663,29 +5674,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_126 = !lean_is_exclusive(x_20); -if (x_126 == 0) +x_128 = !lean_is_exclusive(x_20); +if (x_128 == 0) { return x_20; } else { -lean_object* x_127; lean_object* x_128; lean_object* x_129; -x_127 = lean_ctor_get(x_20, 0); -x_128 = lean_ctor_get(x_20, 1); -lean_inc(x_128); -lean_inc(x_127); +lean_object* x_129; lean_object* x_130; lean_object* x_131; +x_129 = lean_ctor_get(x_20, 0); +x_130 = lean_ctor_get(x_20, 1); +lean_inc(x_130); +lean_inc(x_129); lean_dec(x_20); -x_129 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_129, 0, x_127); -lean_ctor_set(x_129, 1, x_128); -return x_129; +x_131 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_131, 0, x_129); +lean_ctor_set(x_131, 1, x_130); +return x_131; } } } else { -uint8_t x_130; +uint8_t x_132; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -5695,33 +5706,33 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_130 = !lean_is_exclusive(x_16); -if (x_130 == 0) +x_132 = !lean_is_exclusive(x_16); +if (x_132 == 0) { -lean_object* x_131; lean_object* x_132; -x_131 = lean_ctor_get(x_16, 0); -lean_dec(x_131); -x_132 = lean_box(0); -lean_ctor_set(x_16, 0, x_132); -return x_16; -} -else -{ -lean_object* x_133; lean_object* x_134; lean_object* x_135; -x_133 = lean_ctor_get(x_16, 1); -lean_inc(x_133); -lean_dec(x_16); +lean_object* x_133; lean_object* x_134; +x_133 = lean_ctor_get(x_16, 0); +lean_dec(x_133); x_134 = lean_box(0); -x_135 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_135, 0, x_134); -lean_ctor_set(x_135, 1, x_133); -return x_135; +lean_ctor_set(x_16, 0, x_134); +return x_16; +} +else +{ +lean_object* x_135; lean_object* x_136; lean_object* x_137; +x_135 = lean_ctor_get(x_16, 1); +lean_inc(x_135); +lean_dec(x_16); +x_136 = lean_box(0); +x_137 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_137, 0, x_136); +lean_ctor_set(x_137, 1, x_135); +return x_137; } } } else { -uint8_t x_136; +uint8_t x_138; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -5731,29 +5742,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_136 = !lean_is_exclusive(x_16); -if (x_136 == 0) +x_138 = !lean_is_exclusive(x_16); +if (x_138 == 0) { return x_16; } else { -lean_object* x_137; lean_object* x_138; lean_object* x_139; -x_137 = lean_ctor_get(x_16, 0); -x_138 = lean_ctor_get(x_16, 1); -lean_inc(x_138); -lean_inc(x_137); +lean_object* x_139; lean_object* x_140; lean_object* x_141; +x_139 = lean_ctor_get(x_16, 0); +x_140 = lean_ctor_get(x_16, 1); +lean_inc(x_140); +lean_inc(x_139); lean_dec(x_16); -x_139 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_139, 0, x_137); -lean_ctor_set(x_139, 1, x_138); -return x_139; +x_141 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_141, 0, x_139); +lean_ctor_set(x_141, 1, x_140); +return x_141; } } } else { -uint8_t x_140; +uint8_t x_142; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -5763,27 +5774,27 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_140 = !lean_is_exclusive(x_12); -if (x_140 == 0) +x_142 = !lean_is_exclusive(x_12); +if (x_142 == 0) { -lean_object* x_141; lean_object* x_142; -x_141 = lean_ctor_get(x_12, 0); -lean_dec(x_141); -x_142 = lean_box(0); -lean_ctor_set(x_12, 0, x_142); +lean_object* x_143; lean_object* x_144; +x_143 = lean_ctor_get(x_12, 0); +lean_dec(x_143); +x_144 = lean_box(0); +lean_ctor_set(x_12, 0, x_144); return x_12; } else { -lean_object* x_143; lean_object* x_144; lean_object* x_145; -x_143 = lean_ctor_get(x_12, 1); -lean_inc(x_143); +lean_object* x_145; lean_object* x_146; lean_object* x_147; +x_145 = lean_ctor_get(x_12, 1); +lean_inc(x_145); lean_dec(x_12); -x_144 = lean_box(0); -x_145 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_145, 0, x_144); -lean_ctor_set(x_145, 1, x_143); -return x_145; +x_146 = lean_box(0); +x_147 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_147, 0, x_146); +lean_ctor_set(x_147, 1, x_145); +return x_147; } } } @@ -7105,7 +7116,7 @@ lean_dec(x_3); return x_18; } } -static lean_object* _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3171____closed__1() { +static lean_object* _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3201____closed__1() { _start: { lean_object* x_1; @@ -7113,22 +7124,22 @@ x_1 = lean_mk_string_from_bytes("wfEqInfo", 8); return x_1; } } -static lean_object* _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3171____closed__2() { +static lean_object* _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3201____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_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3171____closed__1; +x_2 = l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3201____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3171_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3201_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; x_2 = l_Lean_Elab_WF_instInhabitedEqnInfo; -x_3 = l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3171____closed__2; +x_3 = l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3201____closed__2; x_4 = l_Lean_mkMapDeclarationExtension___rarg(x_2, x_3, x_1); return x_4; } @@ -7855,7 +7866,7 @@ lean_dec(x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3359____closed__1() { +static lean_object* _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3389____closed__1() { _start: { lean_object* x_1; @@ -7863,7 +7874,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Elab_WF_getEqnsFor_x3f), 6, 0); return x_1; } } -static lean_object* _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3359____closed__2() { +static lean_object* _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3389____closed__2() { _start: { lean_object* x_1; @@ -7871,11 +7882,11 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Elab_WF_getUnfoldFor_x3f), 6, 0); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3359_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3389_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3359____closed__1; +x_2 = l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3389____closed__1; x_3 = l_Lean_Meta_registerGetEqnsFn(x_2, x_1); if (lean_obj_tag(x_3) == 0) { @@ -7883,7 +7894,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; x_4 = lean_ctor_get(x_3, 1); lean_inc(x_4); lean_dec(x_3); -x_5 = l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3359____closed__2; +x_5 = l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3389____closed__2; x_6 = l_Lean_Meta_registerGetUnfoldEqnFn(x_5, x_4); if (lean_obj_tag(x_6) == 0) { @@ -8140,11 +8151,11 @@ l_Std_Range_forIn_loop___at_Lean_Elab_WF_mkEqns___spec__1___lambda__1___closed__ lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_Elab_WF_mkEqns___spec__1___lambda__1___closed__2); l_Lean_Elab_WF_mkEqns___closed__1 = _init_l_Lean_Elab_WF_mkEqns___closed__1(); lean_mark_persistent(l_Lean_Elab_WF_mkEqns___closed__1); -l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3171____closed__1 = _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3171____closed__1(); -lean_mark_persistent(l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3171____closed__1); -l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3171____closed__2 = _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3171____closed__2(); -lean_mark_persistent(l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3171____closed__2); -if (builtin) {res = l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3171_(lean_io_mk_world()); +l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3201____closed__1 = _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3201____closed__1(); +lean_mark_persistent(l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3201____closed__1); +l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3201____closed__2 = _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3201____closed__2(); +lean_mark_persistent(l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3201____closed__2); +if (builtin) {res = l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3201_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l_Lean_Elab_WF_eqnInfoExt = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_Elab_WF_eqnInfoExt); @@ -8153,11 +8164,11 @@ lean_dec_ref(res); lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lean_Elab_WF_registerEqnsInfo___spec__2___closed__1); l_Lean_Elab_WF_registerEqnsInfo___closed__1 = _init_l_Lean_Elab_WF_registerEqnsInfo___closed__1(); lean_mark_persistent(l_Lean_Elab_WF_registerEqnsInfo___closed__1); -l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3359____closed__1 = _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3359____closed__1(); -lean_mark_persistent(l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3359____closed__1); -l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3359____closed__2 = _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3359____closed__2(); -lean_mark_persistent(l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3359____closed__2); -res = l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3359_(lean_io_mk_world()); +l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3389____closed__1 = _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3389____closed__1(); +lean_mark_persistent(l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3389____closed__1); +l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3389____closed__2 = _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3389____closed__2(); +lean_mark_persistent(l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3389____closed__2); +res = l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_3389_(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/Conv/Pattern.c b/stage0/stdlib/Lean/Elab/Tactic/Conv/Pattern.c index 4f9d308b99..c22052fdd1 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Conv/Pattern.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Conv/Pattern.c @@ -48,7 +48,7 @@ lean_object* l_Lean_mkAppN(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Conv_evalPattern___lambda__3(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_Simp_neutralConfig; lean_object* l_Lean_Meta_abstractMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_Simp_main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Simp_main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_Conv_evalPattern___lambda__3___closed__4; @@ -66,6 +66,7 @@ lean_object* l_Lean_Elab_Tactic_getMainGoal(lean_object*, lean_object*, lean_obj lean_object* l_Lean_Expr_toHeadIndex(lean_object*); lean_object* l_Lean_Elab_Tactic_Conv_getLhs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); +extern lean_object* l_Lean_NameSet_empty; extern lean_object* l_Lean_Elab_Tactic_tacticElabAttribute; lean_object* l_Lean_Elab_Term_withoutErrToSorryImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_evalTactic_throwExs___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -127,43 +128,47 @@ x_3 = l_Lean_Meta_getSimpCongrTheorems___rarg(x_1, x_2); x_4 = !lean_is_exclusive(x_3); if (x_4 == 0) { -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_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; x_5 = lean_ctor_get(x_3, 0); x_6 = lean_box(0); -x_7 = l_Lean_Meta_Simp_neutralConfig; -x_8 = l___private_Lean_Elab_Tactic_Conv_Pattern_0__Lean_Elab_Tactic_Conv_getContext___rarg___closed__1; -x_9 = lean_unsigned_to_nat(0u); -x_10 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_10, 0, x_7); -lean_ctor_set(x_10, 1, x_8); -lean_ctor_set(x_10, 2, x_5); -lean_ctor_set(x_10, 3, x_6); -lean_ctor_set(x_10, 4, x_9); -lean_ctor_set(x_3, 0, x_10); +x_7 = lean_box(0); +x_8 = l_Lean_Meta_Simp_neutralConfig; +x_9 = l___private_Lean_Elab_Tactic_Conv_Pattern_0__Lean_Elab_Tactic_Conv_getContext___rarg___closed__1; +x_10 = lean_unsigned_to_nat(0u); +x_11 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_11, 0, x_8); +lean_ctor_set(x_11, 1, x_9); +lean_ctor_set(x_11, 2, x_5); +lean_ctor_set(x_11, 3, x_6); +lean_ctor_set(x_11, 4, x_7); +lean_ctor_set(x_11, 5, x_10); +lean_ctor_set(x_3, 0, x_11); return x_3; } 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; -x_11 = lean_ctor_get(x_3, 0); -x_12 = lean_ctor_get(x_3, 1); +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_12 = lean_ctor_get(x_3, 0); +x_13 = lean_ctor_get(x_3, 1); +lean_inc(x_13); lean_inc(x_12); -lean_inc(x_11); lean_dec(x_3); -x_13 = lean_box(0); -x_14 = l_Lean_Meta_Simp_neutralConfig; -x_15 = l___private_Lean_Elab_Tactic_Conv_Pattern_0__Lean_Elab_Tactic_Conv_getContext___rarg___closed__1; -x_16 = lean_unsigned_to_nat(0u); -x_17 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_17, 0, x_14); -lean_ctor_set(x_17, 1, x_15); -lean_ctor_set(x_17, 2, x_11); -lean_ctor_set(x_17, 3, x_13); -lean_ctor_set(x_17, 4, x_16); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_12); -return x_18; +x_14 = lean_box(0); +x_15 = lean_box(0); +x_16 = l_Lean_Meta_Simp_neutralConfig; +x_17 = l___private_Lean_Elab_Tactic_Conv_Pattern_0__Lean_Elab_Tactic_Conv_getContext___rarg___closed__1; +x_18 = lean_unsigned_to_nat(0u); +x_19 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_19, 0, x_16); +lean_ctor_set(x_19, 1, x_17); +lean_ctor_set(x_19, 2, x_12); +lean_ctor_set(x_19, 3, x_14); +lean_ctor_set(x_19, 4, x_15); +lean_ctor_set(x_19, 5, x_18); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_13); +return x_20; } } } @@ -1266,7 +1271,7 @@ return x_10; LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Conv_Pattern_0__Lean_Elab_Tactic_Conv_findPattern_x3f(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; 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_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; x_8 = lean_box(0); x_9 = lean_st_ref_get(x_6, x_7); x_10 = lean_ctor_get(x_9, 1); @@ -1296,141 +1301,228 @@ x_20 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_20, 0, x_17); lean_ctor_set(x_20, 1, x_18); lean_ctor_set(x_20, 2, x_19); +x_21 = l_Lean_NameSet_empty; lean_inc(x_6); -x_21 = l_Lean_Meta_Simp_main(x_2, x_15, x_20, x_3, x_4, x_5, x_6, x_16); -if (lean_obj_tag(x_21) == 0) +x_22 = l_Lean_Meta_Simp_main(x_2, x_15, x_21, x_20, x_3, x_4, x_5, x_6, x_16); +if (lean_obj_tag(x_22) == 0) { -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 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -x_23 = lean_ctor_get(x_21, 1); +lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_23 = lean_ctor_get(x_22, 0); lean_inc(x_23); -lean_dec(x_21); -x_24 = lean_st_ref_get(x_6, x_23); -lean_dec(x_6); -x_25 = lean_ctor_get(x_24, 1); -lean_inc(x_25); -lean_dec(x_24); -x_26 = lean_st_ref_get(x_12, x_25); -lean_dec(x_12); -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -if (lean_obj_tag(x_27) == 0) -{ -uint8_t x_28; +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); lean_dec(x_22); -x_28 = !lean_is_exclusive(x_26); -if (x_28 == 0) +x_25 = !lean_is_exclusive(x_23); +if (x_25 == 0) { -lean_object* x_29; -x_29 = lean_ctor_get(x_26, 0); -lean_dec(x_29); -lean_ctor_set(x_26, 0, x_8); -return x_26; -} -else -{ -lean_object* x_30; lean_object* x_31; -x_30 = lean_ctor_get(x_26, 1); -lean_inc(x_30); -lean_dec(x_26); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_8); -lean_ctor_set(x_31, 1, x_30); -return x_31; -} -} -else +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_26 = lean_ctor_get(x_23, 0); +x_27 = lean_ctor_get(x_23, 1); +lean_dec(x_27); +x_28 = lean_st_ref_get(x_6, x_24); +lean_dec(x_6); +x_29 = lean_ctor_get(x_28, 1); +lean_inc(x_29); +lean_dec(x_28); +x_30 = lean_st_ref_get(x_12, x_29); +lean_dec(x_12); +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +if (lean_obj_tag(x_31) == 0) { uint8_t x_32; -x_32 = !lean_is_exclusive(x_26); +lean_free_object(x_23); +lean_dec(x_26); +x_32 = !lean_is_exclusive(x_30); if (x_32 == 0) { -lean_object* x_33; uint8_t x_34; -x_33 = lean_ctor_get(x_26, 0); +lean_object* x_33; +x_33 = lean_ctor_get(x_30, 0); lean_dec(x_33); -x_34 = !lean_is_exclusive(x_27); -if (x_34 == 0) -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_27, 0); -x_36 = l_Lean_Expr_mvarId_x21(x_35); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_22); -lean_ctor_set(x_27, 0, x_37); -return x_26; +lean_ctor_set(x_30, 0, x_8); +return x_30; } else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_38 = lean_ctor_get(x_27, 0); -lean_inc(x_38); -lean_dec(x_27); -x_39 = l_Lean_Expr_mvarId_x21(x_38); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_22); -x_41 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_26, 0, x_41); -return x_26; +lean_object* x_34; lean_object* x_35; +x_34 = lean_ctor_get(x_30, 1); +lean_inc(x_34); +lean_dec(x_30); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_8); +lean_ctor_set(x_35, 1, x_34); +return x_35; } } 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; -x_42 = lean_ctor_get(x_26, 1); -lean_inc(x_42); -lean_dec(x_26); -x_43 = lean_ctor_get(x_27, 0); -lean_inc(x_43); -if (lean_is_exclusive(x_27)) { - lean_ctor_release(x_27, 0); - x_44 = x_27; +uint8_t x_36; +x_36 = !lean_is_exclusive(x_30); +if (x_36 == 0) +{ +lean_object* x_37; uint8_t x_38; +x_37 = lean_ctor_get(x_30, 0); +lean_dec(x_37); +x_38 = !lean_is_exclusive(x_31); +if (x_38 == 0) +{ +lean_object* x_39; lean_object* x_40; +x_39 = lean_ctor_get(x_31, 0); +x_40 = l_Lean_Expr_mvarId_x21(x_39); +lean_ctor_set(x_23, 1, x_26); +lean_ctor_set(x_23, 0, x_40); +lean_ctor_set(x_31, 0, x_23); +return x_30; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_31, 0); +lean_inc(x_41); +lean_dec(x_31); +x_42 = l_Lean_Expr_mvarId_x21(x_41); +lean_ctor_set(x_23, 1, x_26); +lean_ctor_set(x_23, 0, x_42); +x_43 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_43, 0, x_23); +lean_ctor_set(x_30, 0, x_43); +return x_30; +} +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_44 = lean_ctor_get(x_30, 1); +lean_inc(x_44); +lean_dec(x_30); +x_45 = lean_ctor_get(x_31, 0); +lean_inc(x_45); +if (lean_is_exclusive(x_31)) { + lean_ctor_release(x_31, 0); + x_46 = x_31; } else { - lean_dec_ref(x_27); - x_44 = lean_box(0); + lean_dec_ref(x_31); + x_46 = lean_box(0); } -x_45 = l_Lean_Expr_mvarId_x21(x_43); -x_46 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_46, 0, x_45); -lean_ctor_set(x_46, 1, x_22); -if (lean_is_scalar(x_44)) { - x_47 = lean_alloc_ctor(1, 1, 0); +x_47 = l_Lean_Expr_mvarId_x21(x_45); +lean_ctor_set(x_23, 1, x_26); +lean_ctor_set(x_23, 0, x_47); +if (lean_is_scalar(x_46)) { + x_48 = lean_alloc_ctor(1, 1, 0); } else { - x_47 = x_44; + x_48 = x_46; } -lean_ctor_set(x_47, 0, x_46); -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_42); -return x_48; +lean_ctor_set(x_48, 0, x_23); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_44); +return x_49; } } } else { -uint8_t x_49; +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_50 = lean_ctor_get(x_23, 0); +lean_inc(x_50); +lean_dec(x_23); +x_51 = lean_st_ref_get(x_6, x_24); +lean_dec(x_6); +x_52 = lean_ctor_get(x_51, 1); +lean_inc(x_52); +lean_dec(x_51); +x_53 = lean_st_ref_get(x_12, x_52); +lean_dec(x_12); +x_54 = lean_ctor_get(x_53, 0); +lean_inc(x_54); +if (lean_obj_tag(x_54) == 0) +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; +lean_dec(x_50); +x_55 = lean_ctor_get(x_53, 1); +lean_inc(x_55); +if (lean_is_exclusive(x_53)) { + lean_ctor_release(x_53, 0); + lean_ctor_release(x_53, 1); + x_56 = x_53; +} else { + lean_dec_ref(x_53); + x_56 = lean_box(0); +} +if (lean_is_scalar(x_56)) { + x_57 = lean_alloc_ctor(0, 2, 0); +} else { + x_57 = x_56; +} +lean_ctor_set(x_57, 0, x_8); +lean_ctor_set(x_57, 1, x_55); +return x_57; +} +else +{ +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; +x_58 = lean_ctor_get(x_53, 1); +lean_inc(x_58); +if (lean_is_exclusive(x_53)) { + lean_ctor_release(x_53, 0); + lean_ctor_release(x_53, 1); + x_59 = x_53; +} else { + lean_dec_ref(x_53); + x_59 = lean_box(0); +} +x_60 = lean_ctor_get(x_54, 0); +lean_inc(x_60); +if (lean_is_exclusive(x_54)) { + lean_ctor_release(x_54, 0); + x_61 = x_54; +} else { + lean_dec_ref(x_54); + x_61 = lean_box(0); +} +x_62 = l_Lean_Expr_mvarId_x21(x_60); +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_50); +if (lean_is_scalar(x_61)) { + x_64 = lean_alloc_ctor(1, 1, 0); +} else { + x_64 = x_61; +} +lean_ctor_set(x_64, 0, x_63); +if (lean_is_scalar(x_59)) { + x_65 = lean_alloc_ctor(0, 2, 0); +} else { + x_65 = x_59; +} +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_58); +return x_65; +} +} +} +else +{ +uint8_t x_66; lean_dec(x_12); lean_dec(x_6); -x_49 = !lean_is_exclusive(x_21); -if (x_49 == 0) +x_66 = !lean_is_exclusive(x_22); +if (x_66 == 0) { -return x_21; +return x_22; } else { -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_21, 0); -x_51 = lean_ctor_get(x_21, 1); -lean_inc(x_51); -lean_inc(x_50); -lean_dec(x_21); -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_50); -lean_ctor_set(x_52, 1, x_51); -return x_52; +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_22, 0); +x_68 = lean_ctor_get(x_22, 1); +lean_inc(x_68); +lean_inc(x_67); +lean_dec(x_22); +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; } } } diff --git a/stage0/stdlib/Lean/Elab/Tactic/Conv/Simp.c b/stage0/stdlib/Lean/Elab/Tactic/Conv/Simp.c index f619b2111b..fe0bfaa397 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Conv/Simp.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Conv/Simp.c @@ -54,6 +54,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Conv_evalSimpMatch___rarg___lambda__ static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimp_declRange___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimp_declRange___closed__5; lean_object* l_Lean_Elab_Tactic_Conv_getLhs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_NameSet_empty; extern lean_object* l_Lean_Elab_Tactic_tacticElabAttribute; static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimp___closed__11; lean_object* l_Lean_Elab_Tactic_Simp_DischargeWrapper_with___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -75,7 +76,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimp___closed__12; static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimpMatch_declRange___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Conv_applySimpResult(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimpMatch_declRange___closed__3; -lean_object* l_Lean_Meta_simp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_simp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimp___closed__10; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Conv_applySimpResult(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: @@ -153,9 +154,10 @@ return x_22; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Conv_evalSimp___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) { _start: { -lean_object* x_13; -x_13 = l_Lean_Meta_simp(x_1, x_2, x_3, x_8, x_9, x_10, x_11, x_12); -return x_13; +lean_object* x_13; lean_object* x_14; +x_13 = l_Lean_NameSet_empty; +x_14 = l_Lean_Meta_simp(x_1, x_2, x_3, x_13, x_8, x_9, x_10, x_11, x_12); +return x_14; } } LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Conv_evalSimp___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) { @@ -218,18 +220,21 @@ x_22 = l_Lean_Elab_Tactic_Simp_DischargeWrapper_with___rarg(x_17, x_21, x_2, x_3 lean_dec(x_17); if (lean_obj_tag(x_22) == 0) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; 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); -x_25 = l_Lean_Elab_Tactic_Conv_applySimpResult(x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_24); -return x_25; +x_25 = lean_ctor_get(x_23, 0); +lean_inc(x_25); +lean_dec(x_23); +x_26 = l_Lean_Elab_Tactic_Conv_applySimpResult(x_25, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_24); +return x_26; } else { -uint8_t x_26; +uint8_t x_27; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -238,29 +243,29 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_26 = !lean_is_exclusive(x_22); -if (x_26 == 0) +x_27 = !lean_is_exclusive(x_22); +if (x_27 == 0) { return x_22; } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_22, 0); -x_28 = lean_ctor_get(x_22, 1); +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_22, 0); +x_29 = lean_ctor_get(x_22, 1); +lean_inc(x_29); lean_inc(x_28); -lean_inc(x_27); lean_dec(x_22); -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; +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +return x_30; } } } else { -uint8_t x_30; +uint8_t x_31; lean_dec(x_17); lean_dec(x_16); lean_dec(x_9); @@ -271,29 +276,29 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_30 = !lean_is_exclusive(x_18); -if (x_30 == 0) +x_31 = !lean_is_exclusive(x_18); +if (x_31 == 0) { return x_18; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_18, 0); -x_32 = lean_ctor_get(x_18, 1); +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_18, 0); +x_33 = lean_ctor_get(x_18, 1); +lean_inc(x_33); lean_inc(x_32); -lean_inc(x_31); lean_dec(x_18); -x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_31); -lean_ctor_set(x_33, 1, x_32); -return x_33; +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +return x_34; } } } else { -uint8_t x_34; +uint8_t x_35; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -302,23 +307,23 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_34 = !lean_is_exclusive(x_13); -if (x_34 == 0) +x_35 = !lean_is_exclusive(x_13); +if (x_35 == 0) { return x_13; } else { -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_13, 0); -x_36 = lean_ctor_get(x_13, 1); +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_13, 0); +x_37 = lean_ctor_get(x_13, 1); +lean_inc(x_37); lean_inc(x_36); -lean_inc(x_35); lean_dec(x_13); -x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_35); -lean_ctor_set(x_37, 1, x_36); -return x_37; +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +return x_38; } } } diff --git a/stage0/stdlib/Lean/Elab/Tactic/Conv/Unfold.c b/stage0/stdlib/Lean/Elab/Tactic/Conv/Unfold.c index 1f4c7b1077..62917c15e7 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Conv/Unfold.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Conv/Unfold.c @@ -21,7 +21,6 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalUnfold___closed__10 lean_object* lean_array_get_size(lean_object*); lean_object* l_Lean_Elab_Tactic_withMainContext___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalUnfold_declRange___closed__7; -lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__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* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_usize_dec_lt(size_t, size_t); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalUnfold_declRange(lean_object*); @@ -43,6 +42,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalUnfold___closed__13 static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalUnfold_declRange___closed__5; static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalUnfold___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalUnfold___closed__5; +lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_Tactic_elabSimpArgs___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_EXPORT lean_object* l_Lean_Elab_Tactic_Conv_evalUnfold___boxed__const__1; lean_object* l_Lean_Meta_unfold(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Conv_evalUnfold___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -98,7 +98,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_18 = l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__2(x_16, x_17, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_18 = l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__3(x_16, x_17, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); if (lean_obj_tag(x_18) == 0) { lean_object* x_19; lean_object* x_20; lean_object* x_21; diff --git a/stage0/stdlib/Lean/Elab/Tactic/Simp.c b/stage0/stdlib/Lean/Elab/Tactic/Simp.c index 16404a720f..55378b96e8 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Simp.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Simp.c @@ -15,35 +15,37 @@ extern "C" { #endif static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimp_declRange___closed__3; lean_object* l_Lean_Elab_ContextInfo_save___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_mkConstWithLevelParams___at_Lean_Elab_Tactic_elabSimpArgs___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Std_RBNode_forIn_visit___at_Lean_Elab_Tactic_traceSimpCall___spec__10___closed__4; LEAN_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Tactic_tacticToDischarge___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimp_declRange___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSimp___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_array_set(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Tactic_elabSimpArgs___spec__7___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*); extern lean_object* l_Std_PersistentHashMap_empty___at_Lean_KeyedDeclsAttribute_ExtensionState_declNames___default___spec__1; size_t lean_usize_add(size_t, size_t); -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_elabSimpArgs___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__9___closed__3; lean_object* l_Lean_Expr_mvarId_x21(lean_object*); lean_object* lean_erase_macro_scopes(lean_object*); static lean_object* l_Lean_Elab_Tactic_mkSimpContext___lambda__2___closed__6; +extern lean_object* l_Lean_rootNamespace; lean_object* l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__3___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_stringToMessageData(lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__1; +uint8_t lean_is_inaccessible_user_name(lean_object*); +LEAN_EXPORT lean_object* l_panic___at_Lean_Elab_Tactic_elabSimpArgs___spec__20(lean_object*); lean_object* l_Lean_Elab_Term_elabCDotFunctionAlias_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabSimpConfigCore___spec__6(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_mkSimpContext___lambda__2___closed__3; lean_object* lean_mk_empty_array_with_capacity(lean_object*); static lean_object* l_Lean_Elab_Tactic_tacticToDischarge___closed__9; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabSimpConfig___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Tactic_elabSimpArgs___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___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_Lean_Name_str___override(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_mkDischargeWrapper(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771____closed__3; lean_object* l_Lean_LocalDecl_userName(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21(lean_object*, uint8_t, uint8_t, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDSimp_declRange___closed__5; LEAN_EXPORT lean_object* l_Std_PersistentArray_mapM___at_Lean_Elab_Tactic_elabSimpConfigCore___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__3; lean_object* l_List_filterTRAux___at_Lean_resolveGlobalConstCore___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_SavedState_restore(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_elabSimpConfigCore___closed__2; @@ -55,72 +57,91 @@ static lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp__ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_364____boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_SimpExtension_getTheorems(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_beqSimpKind____x40_Lean_Elab_Tactic_Simp___hyg_554_(uint8_t, uint8_t); +lean_object* l_Array_append___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_withoutModifyingStateWithInfoAndMessagesImpl___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapTRAux___at_Lean_resolveGlobalConstCore___spec__2(lean_object*, lean_object*); +lean_object* l_Lean_Syntax_mkSep(lean_object*, lean_object*); extern lean_object* l_Std_Format_defWidth; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabSimpConfigCore___spec__10(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_elabSimpArgs___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_elabSimpArgs___spec__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_6____closed__2; static lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_364____closed__2; lean_object* l_Lean_SourceInfo_fromRef(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_withoutModifyingStateWithInfoAndMessages___at_Lean_Elab_Tactic_elabSimpConfigCore___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal_unresolveNameCore___at_Lean_Elab_Tactic_traceSimpCall___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimpAll___closed__3; lean_object* l_List_filterMap___at_Lean_resolveGlobalConst___spec__1(lean_object*); static lean_object* l_Lean_Elab_Tactic_tacticToDischarge___closed__18; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabSimpConfigCore___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_mkDischargeWrapper___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_pushInfoTree___at_Lean_Elab_Tactic_elabSimpArgs___spec__17___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_tacticToDischarge___closed__5; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimpAll___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_simpLocation_go___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_EXPORT lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_traceSimpCall___spec__5(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_EXPORT lean_object* l_Lean_unresolveNameGlobal_unresolveNameCore___at_Lean_Elab_Tactic_traceSimpCall___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_tacticToDischarge___closed__14; LEAN_EXPORT lean_object* l_Std_PersistentArray_mapMAux___at_Lean_Elab_Tactic_elabSimpConfigCore___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_elabSimpArgs___spec__5___closed__3; static lean_object* l_Lean_Elab_Tactic_elabSimpConfigCore___closed__5; +lean_object* l_panic___at_Lean_LocalDecl_setBinderInfo___spec__1(lean_object*); lean_object* lean_environment_find(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDSimp_declRange___closed__3; lean_object* l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__7; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabSimpConfigCore___spec__9(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_append___rarg(lean_object*, lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__5; +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal___at_Lean_Elab_Tactic_traceSimpCall___spec__2___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_simpLocation___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__22___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* lean_st_ref_get(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_addConstInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__13___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*); static lean_object* l_Lean_Elab_Tactic_tacticToDischarge___lambda__3___closed__4; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimp(lean_object*); uint8_t l_Lean_Meta_SimpTheorems_isDeclToUnfold(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal___at_Lean_Elab_Tactic_traceSimpCall___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_tacticToDischarge___lambda__3___closed__1; uint8_t lean_name_eq(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Tactic_elabSimpArgs___spec__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDSimp_declRange___closed__6; +LEAN_EXPORT lean_object* l_Std_RBNode_forIn_visit___at_Lean_Elab_Tactic_traceSimpCall___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_elabSimpArgs___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Std_RBNode_forIn_visit___at_Lean_Elab_Tactic_traceSimpCall___spec__10___closed__1; +static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__10___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimpAll_declRange___closed__1; static lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_6____closed__6; -LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addDeclToUnfoldOrTheorem(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_SimpTheorems_add(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addDeclToUnfoldOrTheorem(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_SimpTheorems_add(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MVarId_getNondepPropHyps(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_local_ctx_find_from_user_name(lean_object*, lean_object*); lean_object* l_Std_RBNode_insert___at_Lean_Elab_Term_withAuxDecl___spec__1(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_traceSimpCall___spec__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_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20(lean_object*, uint8_t, uint8_t, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_elabSimpArgs___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimpAll_declRange___closed__4; +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__8; lean_object* l_Lean_Elab_InfoTree_substitute(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_withMainContext___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_TermElabM_run___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_simpLocation_go(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_EXPORT lean_object* l_Lean_Elab_Tactic_elabSimpArgs___lambda__1(lean_object*, uint8_t, uint8_t, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_elabSimpArgs___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_elabSimpArgs___spec__1___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_tacticToDischarge___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_EXPORT lean_object* l_Lean_Elab_Tactic_dsimpLocation_go___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_Meta_SimpTheorems_addDeclToUnfold(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__7; static lean_object* l_Lean_Elab_Tactic_tacticToDischarge___closed__4; -LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__18___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_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Tactic_traceSimpCall___spec__7___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDSimp_declRange(lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimp_declRange(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_elabSimpArgs___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771____closed__5; +uint8_t l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(uint8_t, uint8_t); lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_simpLocation___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_usize_dec_lt(size_t, size_t); @@ -130,76 +151,94 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabSimpCo static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimp___closed__7; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_SimpTheorems_addDeclToUnfoldCore(lean_object*, lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__2; static lean_object* l_Lean_Elab_Tactic_tacticToDischarge___closed__6; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabSimpConfigCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Simp_DischargeWrapper_with(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_mkSimpContext___lambda__2(lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_nat_add(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__19(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_6____closed__1; +LEAN_EXPORT lean_object* l_Std_RBNode_forIn_visit___at_Lean_Elab_Tactic_traceSimpCall___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_tacticToDischarge___closed__20; static lean_object* l_Lean_Elab_Tactic_mkSimpContext___closed__1; -static lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__2; +LEAN_EXPORT lean_object* l_Lean_mkFreshId___at_Lean_Elab_Tactic_elabSimpArgs___spec__2___rarg___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_mapMAux___at_Lean_Elab_Tactic_elabSimpConfigCore___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_elabSimpConfigCore___closed__9; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_mkSimpContext___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*); +static lean_object* l_Std_RBNode_forIn_visit___at_Lean_Elab_Tactic_traceSimpCall___spec__10___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_6____boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771____closed__1; +LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__15(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_364____closed__3; -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_elabSimpArgs___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_elabSimpArgs___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_traceSimpCall___lambda__2___closed__2; extern lean_object* l_Lean_LocalContext_empty; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDSimp(lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_elabSimpArgs___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSimpAll(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpTheorem___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal_unresolveNameCore___at_Lean_Elab_Tactic_traceSimpCall___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpTheorem___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_List_mapTRAux___at_Lean_resolveGlobalConstNoOverload___spec__1(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__18___closed__1; uint8_t l_Std_PersistentHashMap_contains___at_Lean_Meta_SimpTheorems_erase___spec__1(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimpAll___closed__1; +LEAN_EXPORT lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Tactic_elabSimpArgs___spec__8___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_EXPORT lean_object* l_Std_PersistentArray_mapM___at_Lean_Elab_Tactic_elabSimpConfigCore___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addDeclToUnfoldOrTheorem___closed__3; lean_object* l_Lean_ConstantInfo_levelParams(lean_object*); +uint8_t l_Lean_Name_hasMacroScopes(lean_object*); LEAN_EXPORT uint8_t l_Lean_Elab_Tactic_ElabSimpArgsResult_starArg___default; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabSimpConfigCore___spec__4(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Tactic_tacticToDischarge___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_185____boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabSimpArgs___lambda__2(lean_object*, uint8_t, uint8_t, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabSimpConfigCore___spec__5(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_pushInfoTree___at_Lean_Elab_Tactic_elabSimpArgs___spec__17(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_traceSimpCall___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__3; static lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_185____closed__1; lean_object* l_Lean_Elab_Term_elabTermEnsuringType(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); -lean_object* l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771____closed__4; +uint8_t l_Lean_Option_get___at_Lean_getSanitizeNames___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_6____closed__4; -static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__9___closed__4; -static lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__3___closed__3; static lean_object* l_Lean_Elab_Tactic_tacticToDischarge___closed__3; +uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__19___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_EXPORT lean_object* l_Lean_Elab_Tactic_elabSimpArgs_resolveSimpIdTheorem_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_elabSimpArgs___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Option_register___at_Lean_initFn____x40_Lean_PrettyPrinter_Delaborator_Options___hyg_6____spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_abstractMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_tacticToDischarge___closed__15; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSimp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Tactic_elabSimpArgs___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__10; lean_object* lean_st_ref_take(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_mkSimpContext___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_mkSimpContext___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__1___at_Lean_Elab_Tactic_mkSimpContext___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_nat_sub(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabSimpConfigCtxCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Tactic_elabSimpArgs___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771____closed__2; static lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_6____closed__8; lean_object* l_Lean_Elab_Tactic_expandOptLocation(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpTheorem___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Meta_SimpTheorems_isLemma(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabSimpConfigCore___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_Name_components_x27(lean_object*); +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Elab_Tactic_traceSimpCall___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_dsimpLocation___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_beqSimpKind____x40_Lean_Elab_Tactic_Simp___hyg_554____boxed(lean_object*, lean_object*); extern lean_object* l_Lean_Meta_simpExtension; static lean_object* l_Lean_Elab_Tactic_mkSimpContext___lambda__3___closed__1; lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Elab_Tactic_instInhabitedSimpKind; -LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_tacticToDischarge___closed__10; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabSimpArgs___lambda__1___boxed(lean_object**); static lean_object* l_Lean_Elab_Tactic_mkSimpContext___lambda__3___closed__2; -static lean_object* l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__18___closed__2; +lean_object* l_Lean_Name_num___override(lean_object*, lean_object*); uint8_t l_Lean_Expr_hasExprMVar(lean_object*); +static lean_object* l_Lean_logAt___at_Lean_Elab_Tactic_traceSimpCall___spec__8___closed__1; lean_object* l_Lean_replaceRef(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_185____closed__2; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimpAll___closed__4; @@ -207,33 +246,51 @@ static lean_object* l_Lean_Elab_Tactic_elabDSimpConfigCore___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addDeclToUnfoldOrTheorem___lambda__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_elabSimpArgs_resolveSimpIdTheorem_x3f___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimp_declRange___closed__7; +LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Tactic_elabSimpArgs___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_mkSimpContext___lambda__2___closed__5; -LEAN_EXPORT lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_elabSimpArgs___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDSimp_declRange___closed__7; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabSimpConfig(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__19___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*); +uint8_t l_Lean_Name_quickCmp(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_elabSimpConfigCore___closed__4; +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal_unresolveNameCore___at_Lean_Elab_Tactic_traceSimpCall___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_mkSimpContext___lambda__2___closed__4; +lean_object* l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_tacticToDischarge___lambda__3___closed__2; static lean_object* l_Lean_Elab_Tactic_instBEqSimpKind___closed__1; lean_object* lean_st_mk_ref(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Tactic_elabSimpArgs___spec__8(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_evalExpr_x27___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addDeclToUnfoldOrTheorem___closed__4; lean_object* l_Lean_Syntax_getId(lean_object*); +LEAN_EXPORT lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Tactic_traceSimpCall___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSimp___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_EXPORT lean_object* l_Lean_Elab_Tactic_elabDSimpConfigCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__5; lean_object* lean_format_pretty(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_pushInfoTree___at_Lean_Elab_Tactic_elabSimpArgs___spec__18___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutErrToSorry___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpTheorem___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_dsimpLocation_go___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_EXPORT lean_object* l_Lean_Elab_Tactic_simpLocation(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_EXPORT lean_object* l_Lean_Elab_Tactic_traceSimpCall___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addBuiltinDeclarationRanges(lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_simpLocation___lambda__2(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*); +uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_tacticToDischarge___closed__7; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_mkSimpContext___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_getMainGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_mkFreshId___at_Lean_Elab_Tactic_elabSimpArgs___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabSimpArgs___lambda__2___boxed(lean_object**); +static lean_object* l_Lean_Elab_Tactic_evalSimp___closed__1; +LEAN_EXPORT lean_object* l_Std_RBNode_find___at_Lean_Elab_Tactic_traceSimpCall___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_elabDSimpConfigCore___closed__2; lean_object* l_Lean_Elab_Term_resolveId_x3f(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSimpAll___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_EXPORT lean_object* l_Lean_Elab_Tactic_elabSimpArgs_resolveSimpIdTheorem_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_mkFreshId___at_Lean_Elab_Tactic_elabSimpArgs___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_getRevAliases(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_tacticToDischarge___closed__19; static lean_object* l_Lean_Elab_Tactic_elabSimpArgs_resolveSimpIdTheorem_x3f___closed__1; static lean_object* l_Lean_Elab_Tactic_elabSimpConfigCore___closed__8; @@ -242,10 +299,13 @@ static lean_object* l_Lean_Elab_Tactic_elabSimpConfigCtxCore___closed__3; static lean_object* l_Lean_Elab_Tactic_elabSimpConfigCore___closed__6; static lean_object* l_Lean_Elab_Tactic_mkSimpContext___lambda__2___closed__2; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabSimpConfigCore___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Tactic_traceSimpCall___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDSimp___closed__4; +lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabSimpConfigCore___spec__10___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_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isConst(lean_object*); +uint8_t l_Array_isEmpty___rarg(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabSimpConfigCore___spec__11(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_SimpKind_noConfusion(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_dsimpLocation___lambda__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*); @@ -254,146 +314,186 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_mkSimpContext___lambda__1(lean_objec static lean_object* l_Lean_Elab_Tactic_elabSimpConfigCore___closed__1; lean_object* l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__2___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabSimpConfigCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_panic___at_Lean_Elab_Tactic_elabSimpArgs___spec__19(lean_object*); +uint8_t l_Lean_MessageData_hasSyntheticSorry(lean_object*); +LEAN_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Tactic_traceSimpCall___spec__7___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__10___closed__4; static lean_object* l_Lean_Elab_Tactic_elabSimpArgs___closed__3; lean_object* l_Lean_Meta_SimpTheorems_eraseCore(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Tactic_elabSimpArgs___spec__17___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_tacticToDischarge___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_instInhabitedSimpTheorems; static lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addDeclToUnfoldOrTheorem___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Simp_DischargeWrapper_with___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_elabSimpArgs_resolveSimpIdTheorem_x3f___closed__4; +extern lean_object* l_Lean_warningAsError; +static lean_object* l_Lean_Elab_Tactic_traceSimpCall___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimp___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDSimp___closed__2; size_t lean_usize_of_nat(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimp_declRange___closed__1; +extern lean_object* l_Lean_NameSet_empty; extern lean_object* l_Lean_Elab_Tactic_tacticElabAttribute; -LEAN_EXPORT lean_object* l_Lean_mkConstWithLevelParams___at_Lean_Elab_Tactic_elabSimpArgs___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_dsimpLocation___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_ConstantInfo_type(lean_object*); lean_object* l_Lean_Elab_Term_withoutErrToSorryImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSimpAll___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*); +static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__10___closed__1; +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_traceSimpCall___spec__5___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_Lean_Elab_Term_runTactic(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabSimpArgs(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_fvarId(lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_evalTactic___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_mkSimpCongrTheorem___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_SimpKind_noConfusion___rarg___lambda__1(lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_elabSimpArgs___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal___at_Lean_Elab_Tactic_traceSimpCall___spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__10___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDSimp___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_withoutModifyingStateWithInfoAndMessages___at_Lean_Elab_Tactic_tacticToDischarge___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDSimp___closed__3; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_tactic_simp_trace; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_mkSimpContext___lambda__3(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__19___closed__2; +LEAN_EXPORT lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Tactic_elabSimpArgs___spec__8___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_EXPORT lean_object* l_Lean_Elab_Tactic_tacticToDischarge___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDSimp_declRange___closed__1; static lean_object* l_Lean_Elab_Tactic_elabDSimpConfigCore___closed__1; -LEAN_EXPORT lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__2___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*); static lean_object* l_Lean_Elab_Tactic_tacticToDischarge___closed__11; -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___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_EXPORT lean_object* l_Lean_Elab_Tactic_traceSimpCall(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_mapMAux___at_Lean_Elab_Tactic_elabSimpConfigCore___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Tactic_tacticToDischarge___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_saveState___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimp___closed__2; -LEAN_EXPORT lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Tactic_elabSimpArgs___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* l_Lean_Syntax_getPos_x3f(lean_object*, uint8_t); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpTheorem___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_redLength___rarg(lean_object*); lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_withSaveInfoContext___at_Lean_Elab_Tactic_elabSimpConfigCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_elabSimpConfigCore___closed__11; +static lean_object* l_Lean_Elab_Tactic_traceSimpCall___closed__1; lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getSepArgs(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Simp_DischargeWrapper_with___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addDeclToUnfoldOrTheorem___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addDeclToUnfoldOrTheorem___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addDeclToUnfoldOrTheorem___closed__1; -static lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__3___closed__2; lean_object* l_Lean_Expr_eta(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimp_declRange___closed__6; -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__2; +lean_object* l_Lean_Syntax_setArg(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_traceSimpCall___closed__2; +static lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__2; +LEAN_EXPORT lean_object* l_Lean_Elab_pushInfoTree___at_Lean_Elab_Tactic_elabSimpArgs___spec__18(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimp___closed__1; -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__4; +uint8_t lean_nat_dec_le(lean_object*, lean_object*); uint8_t l_Lean_Expr_hasMVar(lean_object*); LEAN_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Tactic_tacticToDischarge___spec__1___rarg(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_traceSimpCall___closed__4; +lean_object* l_Lean_Name_append(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__22(lean_object*, uint8_t, uint8_t, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getKind(lean_object*); -lean_object* l_Lean_Meta_dsimpGoal(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_simpAll(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__1; -LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Tactic_elabSimpArgs___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_EXPORT lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Tactic_elabSimpArgs___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* l_Lean_Meta_dsimpGoal(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_simpAll(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimp___closed__4; static lean_object* l_Lean_Elab_Tactic_tacticToDischarge___closed__16; -static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__9___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimp___closed__8; -LEAN_EXPORT lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Tactic_elabSimpArgs___spec__16(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_traceSimpCall___lambda__2___closed__1; +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_elabSimpArgs___spec__16(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimpAll_declRange___closed__7; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_traceSimpCall___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_tacticToDischarge___closed__12; -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__8; -LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__18(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalDSimp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__18___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___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp___rarg(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_6____closed__3; +LEAN_EXPORT lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Tactic_elabSimpArgs___spec__17(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimpAll___closed__2; lean_object* l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__7; +LEAN_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Tactic_traceSimpCall___spec__7(lean_object*, lean_object*); lean_object* l_List_mapTRAux___at_Lean_mkConstWithLevelParams___spec__1(lean_object*, lean_object*); -static lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__1; -static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__9___closed__1; lean_object* l_Lean_Meta_getSimpExtension_x3f(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_6____closed__5; +LEAN_EXPORT lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__5; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__19___closed__1; static lean_object* l_Lean_Elab_Tactic_elabSimpConfigCore___closed__3; static lean_object* l_Lean_Elab_Tactic_tacticToDischarge___lambda__3___closed__3; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_elabSimpConfigCore___closed__7; -lean_object* l_Lean_Meta_simpGoal(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_Lean_Meta_simpGoal(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* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_elabSimpArgs___spec__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__2___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_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_traceSimpCall___spec__5___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_elabSimpArgs___closed__2; +lean_object* l_List_toArrayAux___rarg(lean_object*, lean_object*); uint8_t l_Lean_Syntax_isNone(lean_object*); lean_object* l_Lean_FVarId_getDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_getFVarIds(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__1___closed__2; lean_object* lean_panic_fn(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__3; static lean_object* l_Lean_Elab_Tactic_tacticToDischarge___closed__13; -LEAN_EXPORT lean_object* l_Lean_Elab_addConstInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__12___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_EXPORT lean_object* l_Lean_mkConstWithLevelParams___at_Lean_Elab_Tactic_elabSimpArgs___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_elabSimpConfigCtxCore___closed__2; lean_object* l_Lean_Meta_getPropHyps(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_dsimpLocation_go(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_EXPORT lean_object* l_Lean_logAt___at_Lean_Elab_Tactic_traceSimpCall___spec__8(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_tacticToDischarge(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_traceSimpCall___lambda__2___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimpAll_declRange___closed__3; +lean_object* l_Lean_Syntax_getTailPos_x3f(lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Std_PersistentArray_mapMAux___at_Lean_Elab_Tactic_elabSimpConfigCore___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabSimpConfigCore___spec__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_EXPORT lean_object* l_Lean_Elab_Tactic_dsimpLocation(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__1; +static lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__1; +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_traceSimpCall___spec__6(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_traceSimpCall___spec__5___closed__1; lean_object* l_Lean_Elab_Tactic_replaceMainGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_traceSimpCall___spec__5___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*); extern lean_object* l_Lean_Elab_unsupportedSyntaxExceptionId; +static lean_object* l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_SimpKind_toCtorIdx___boxed(lean_object*); -static lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__3___closed__1; +lean_object* l_List_lengthTRAux___rarg(lean_object*, lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__4; +LEAN_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Tactic_traceSimpCall___spec__7___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* lean_mk_syntax_ident(lean_object*); +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771____closed__7; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimpAll_declRange___closed__5; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__3; +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal___at_Lean_Elab_Tactic_traceSimpCall___spec__2___lambda__2(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_mkSimpContext___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*); static lean_object* l_Lean_Elab_Tactic_tacticToDischarge___closed__2; lean_object* l_Lean_Meta_SimpTheoremsArray_addTheorem(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Tactic_elabSimpArgs___spec__7___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_EXPORT lean_object* l_Lean_mkConstWithLevelParams___at_Lean_Elab_Tactic_elabSimpArgs___spec__14___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_Meta_SimpTheorems_addConst(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimp___closed__5; +LEAN_EXPORT lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Tactic_elabSimpArgs___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_mkSimpContext___closed__2; -LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpTheorem(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__9; +static lean_object* l_Lean_unresolveNameGlobal___at_Lean_Elab_Tactic_traceSimpCall___spec__2___lambda__1___closed__1; +LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpTheorem(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_elabSimpArgs___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimp_declRange___closed__4; lean_object* l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal___at_Lean_Elab_Tactic_traceSimpCall___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__6; static lean_object* l_Lean_Elab_Tactic_tacticToDischarge___closed__17; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimp___closed__6; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabSimpArgs___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*); +static lean_object* l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__4; +LEAN_EXPORT lean_object* l_Std_RBNode_find___at_Lean_Elab_Tactic_traceSimpCall___spec__1___boxed(lean_object*, lean_object*); uint8_t l_List_isEmpty___rarg(lean_object*); static lean_object* l_Lean_Elab_Tactic_elabSimpConfigCtxCore___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_185_(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_364_(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_6_(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__1___at_Lean_Elab_Tactic_mkSimpContext___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_addConstInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__13(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_local_ctx_find(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addDeclToUnfoldOrTheorem___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_elabSimpArgs___spec__15(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_dsimpLocation_go___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_EXPORT lean_object* l_Lean_Elab_Tactic_elabDSimpConfigCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabSimpConfigCtxCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -401,9 +501,8 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_SimpKind_noConfusion___rarg(uint8_t, lean_object* l_List_toString___at_Lean_resolveGlobalConstNoOverloadCore___spec__2(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_SimpKind_noConfusion___rarg___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Meta_SimpTheoremsArray_isErased(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Tactic_elabSimpArgs___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__3___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_EXPORT lean_object* l_Std_PersistentArray_mapM___at_Lean_Elab_Tactic_elabSimpConfigCore___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_mapM___at_Lean_Elab_Tactic_elabSimpConfigCore___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isProp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_elabSimpArgs___closed__4; @@ -415,22 +514,29 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_mkSimpContext(lean_object*, uint8_t, static lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_6____closed__7; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimp_declRange___closed__2; static lean_object* l_Lean_Elab_Tactic_SimpKind_noConfusion___rarg___closed__1; -LEAN_EXPORT lean_object* l_Lean_Elab_addConstInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_elabSimpArgs___spec__5___closed__2; +static lean_object* l_Std_RBNode_forIn_visit___at_Lean_Elab_Tactic_traceSimpCall___spec__10___closed__3; +static lean_object* l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__8; +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal___at_Lean_Elab_Tactic_traceSimpCall___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_isLocalIdent_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_constName_x21(lean_object*); static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_elabSimpArgs___spec__1___rarg___closed__1; +static lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_elabSimpArgs___spec__5___closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabSimpConfigCore___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_Simp_defaultMaxSteps; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDSimp_declRange___closed__2; -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__6; lean_object* l_Lean_Syntax_formatStxAux(lean_object*, uint8_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimpAll(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimpAll_declRange___closed__6; +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771____closed__6; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabSimpArgs___boxed__const__1; +LEAN_EXPORT lean_object* l_Lean_mkFreshId___at_Lean_Elab_Tactic_elabSimpArgs___spec__2___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_DiscrTree_empty(lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_traceSimpCall___spec__9(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimpAll_declRange(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_SimpKind_noConfusion___rarg___lambda__1___boxed(lean_object*); lean_object* l_Lean_Meta_getSimpCongrTheorems___rarg(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__6; static lean_object* l_Lean_Elab_Tactic_elabSimpArgs_resolveSimpIdTheorem_x3f___closed__2; lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); @@ -4029,27 +4135,27 @@ x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addDeclToUnfoldOrTheorem(lean_object* x_1, lean_object* x_2, uint8_t x_3, uint8_t x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addDeclToUnfoldOrTheorem(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, uint8_t x_5, uint8_t 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_11; -x_11 = l_Lean_Expr_isConst(x_2); -if (x_11 == 0) +uint8_t x_12; +x_12 = l_Lean_Expr_isConst(x_3); +if (x_12 == 0) { -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_12 = lean_box(0); +lean_object* x_13; lean_object* x_14; lean_object* x_15; x_13 = l_Lean_Elab_Tactic_elabSimpConfigCore___closed__8; x_14 = lean_unsigned_to_nat(1000u); -x_15 = l_Lean_Meta_SimpTheorems_add(x_1, x_13, x_2, x_4, x_3, x_14, x_12, x_6, x_7, x_8, x_9, x_10); +x_15 = l_Lean_Meta_SimpTheorems_add(x_1, x_2, x_13, x_3, x_5, x_4, x_14, x_7, x_8, x_9, x_10, x_11); return x_15; } else { lean_object* x_16; lean_object* x_17; -x_16 = l_Lean_Expr_constName_x21(x_2); lean_dec(x_2); +x_16 = l_Lean_Expr_constName_x21(x_3); +lean_dec(x_3); lean_inc(x_16); -x_17 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_16, x_6, x_7, x_8, x_9, x_10); +x_17 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_16, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_17) == 0) { lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; @@ -4060,11 +4166,11 @@ lean_inc(x_19); lean_dec(x_17); x_20 = l_Lean_ConstantInfo_type(x_18); lean_dec(x_18); +lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -lean_inc(x_6); -x_21 = l_Lean_Meta_isProp(x_20, x_6, x_7, x_8, x_9, x_19); +x_21 = l_Lean_Meta_isProp(x_20, x_7, x_8, x_9, x_10, x_19); if (lean_obj_tag(x_21) == 0) { lean_object* x_22; uint8_t x_23; @@ -4074,14 +4180,14 @@ x_23 = lean_unbox(x_22); lean_dec(x_22); if (x_23 == 0) { -if (x_4 == 0) +if (x_5 == 0) { lean_object* x_24; lean_object* x_25; lean_object* x_26; x_24 = lean_ctor_get(x_21, 1); lean_inc(x_24); lean_dec(x_21); x_25 = lean_box(0); -x_26 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addDeclToUnfoldOrTheorem___lambda__1(x_5, x_1, x_16, x_25, x_6, x_7, x_8, x_9, x_24); +x_26 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addDeclToUnfoldOrTheorem___lambda__1(x_6, x_1, x_16, x_25, x_7, x_8, x_9, x_10, x_24); return x_26; } else @@ -4101,11 +4207,11 @@ x_31 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addDeclToUnfoldOrTh x_32 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_32, 0, x_30); lean_ctor_set(x_32, 1, x_31); -x_33 = l_Lean_throwError___at_Lean_Meta_mkSimpCongrTheorem___spec__6(x_32, x_6, x_7, x_8, x_9, x_27); +x_33 = l_Lean_throwError___at_Lean_Meta_mkSimpCongrTheorem___spec__6(x_32, x_7, x_8, x_9, x_10, x_27); +lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -lean_dec(x_6); x_34 = !lean_is_exclusive(x_33); if (x_34 == 0) { @@ -4133,7 +4239,7 @@ x_38 = lean_ctor_get(x_21, 1); lean_inc(x_38); lean_dec(x_21); x_39 = lean_unsigned_to_nat(1000u); -x_40 = l_Lean_Meta_SimpTheorems_addConst(x_1, x_16, x_3, x_4, x_39, x_6, x_7, x_8, x_9, x_38); +x_40 = l_Lean_Meta_SimpTheorems_addConst(x_1, x_16, x_4, x_5, x_39, x_7, x_8, x_9, x_10, x_38); return x_40; } } @@ -4141,10 +4247,10 @@ else { uint8_t x_41; lean_dec(x_16); +lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -lean_dec(x_6); lean_dec(x_1); x_41 = !lean_is_exclusive(x_21); if (x_41 == 0) @@ -4170,10 +4276,10 @@ else { uint8_t x_45; lean_dec(x_16); +lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -lean_dec(x_6); lean_dec(x_1); x_45 = !lean_is_exclusive(x_17); if (x_45 == 0) @@ -4208,18 +4314,18 @@ lean_dec(x_4); return x_11; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addDeclToUnfoldOrTheorem___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_EXPORT lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addDeclToUnfoldOrTheorem___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_11; uint8_t x_12; uint8_t x_13; lean_object* x_14; -x_11 = lean_unbox(x_3); -lean_dec(x_3); +uint8_t x_12; uint8_t x_13; uint8_t x_14; lean_object* x_15; x_12 = lean_unbox(x_4); lean_dec(x_4); x_13 = lean_unbox(x_5); lean_dec(x_5); -x_14 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addDeclToUnfoldOrTheorem(x_1, x_2, x_11, x_12, x_13, x_6, x_7, x_8, x_9, x_10); -return x_14; +x_14 = lean_unbox(x_6); +lean_dec(x_6); +x_15 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addDeclToUnfoldOrTheorem(x_1, x_2, x_3, x_12, x_13, x_14, x_7, x_8, x_9, x_10, x_11); +return x_15; } } LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutErrToSorry___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpTheorem___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) { @@ -4522,65 +4628,66 @@ return x_27; } } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpTheorem(lean_object* x_1, lean_object* x_2, uint8_t x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpTheorem(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, uint8_t 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_object* x_14; lean_object* x_15; -x_12 = lean_box(0); -lean_inc(x_2); -x_13 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpTheorem___lambda__1), 9, 2); -lean_closure_set(x_13, 0, x_2); -lean_closure_set(x_13, 1, x_12); -x_14 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpTheorem___lambda__2___boxed), 9, 2); -lean_closure_set(x_14, 0, x_2); +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_13 = lean_box(0); +lean_inc(x_3); +x_14 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpTheorem___lambda__1), 9, 2); +lean_closure_set(x_14, 0, x_3); lean_closure_set(x_14, 1, x_13); +x_15 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpTheorem___lambda__2___boxed), 9, 2); +lean_closure_set(x_15, 0, x_3); +lean_closure_set(x_15, 1, x_14); +lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_7); -x_15 = l_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___rarg(x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_15) == 0) +x_16 = l_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___rarg(x_15, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_16) == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); -lean_dec(x_15); -x_18 = lean_ctor_get(x_16, 0); +x_18 = lean_ctor_get(x_16, 1); lean_inc(x_18); -x_19 = lean_ctor_get(x_16, 1); -lean_inc(x_19); lean_dec(x_16); -x_20 = lean_unsigned_to_nat(1000u); -x_21 = l_Lean_Meta_SimpTheorems_add(x_1, x_18, x_19, x_4, x_3, x_20, x_12, x_7, x_8, x_9, x_10, x_17); -return x_21; +x_19 = lean_ctor_get(x_17, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_17, 1); +lean_inc(x_20); +lean_dec(x_17); +x_21 = lean_unsigned_to_nat(1000u); +x_22 = l_Lean_Meta_SimpTheorems_add(x_1, x_2, x_19, x_20, x_5, x_4, x_21, x_8, x_9, x_10, x_11, x_18); +return x_22; } else { -uint8_t x_22; +uint8_t x_23; +lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -lean_dec(x_7); +lean_dec(x_2); lean_dec(x_1); -x_22 = !lean_is_exclusive(x_15); -if (x_22 == 0) +x_23 = !lean_is_exclusive(x_16); +if (x_23 == 0) { -return x_15; +return x_16; } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_15, 0); -x_24 = lean_ctor_get(x_15, 1); +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_16, 0); +x_25 = lean_ctor_get(x_16, 1); +lean_inc(x_25); lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_15); -x_25 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_25, 0, x_23); -lean_ctor_set(x_25, 1, x_24); -return x_25; +lean_dec(x_16); +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; } } } @@ -4594,16 +4701,16 @@ lean_dec(x_1); return x_10; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpTheorem___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_EXPORT lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpTheorem___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_12; uint8_t x_13; lean_object* x_14; -x_12 = lean_unbox(x_3); -lean_dec(x_3); +uint8_t x_13; uint8_t x_14; lean_object* x_15; x_13 = lean_unbox(x_4); lean_dec(x_4); -x_14 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpTheorem(x_1, x_2, x_12, x_13, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -return x_14; +x_14 = lean_unbox(x_5); +lean_dec(x_5); +x_15 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpTheorem(x_1, x_2, x_3, x_13, x_14, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_15; } } static uint8_t _init_l_Lean_Elab_Tactic_ElabSimpArgsResult_starArg___default() { @@ -4975,7 +5082,203 @@ x_9 = lean_alloc_closure((void*)(l_Lean_Elab_throwUnsupportedSyntax___at_Lean_El return x_9; } } -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_elabSimpArgs___spec__6(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_EXPORT lean_object* l_Lean_mkFreshId___at_Lean_Elab_Tactic_elabSimpArgs___spec__2___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_3 = lean_st_ref_get(x_1, x_2); +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_4, 2); +lean_inc(x_5); +lean_dec(x_4); +x_6 = lean_ctor_get(x_3, 1); +lean_inc(x_6); +lean_dec(x_3); +x_7 = !lean_is_exclusive(x_5); +if (x_7 == 0) +{ +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; uint8_t x_16; +x_8 = lean_ctor_get(x_5, 0); +x_9 = lean_ctor_get(x_5, 1); +lean_inc(x_9); +lean_inc(x_8); +x_10 = l_Lean_Name_num___override(x_8, x_9); +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_add(x_9, x_11); +lean_dec(x_9); +lean_ctor_set(x_5, 1, x_12); +x_13 = lean_st_ref_take(x_1, x_6); +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); +x_16 = !lean_is_exclusive(x_14); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_17 = lean_ctor_get(x_14, 2); +lean_dec(x_17); +lean_ctor_set(x_14, 2, x_5); +x_18 = lean_st_ref_set(x_1, x_14, x_15); +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) +{ +lean_object* x_20; +x_20 = lean_ctor_get(x_18, 0); +lean_dec(x_20); +lean_ctor_set(x_18, 0, x_10); +return x_18; +} +else +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_18, 1); +lean_inc(x_21); +lean_dec(x_18); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_10); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +else +{ +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; +x_23 = lean_ctor_get(x_14, 0); +x_24 = lean_ctor_get(x_14, 1); +x_25 = lean_ctor_get(x_14, 3); +x_26 = lean_ctor_get(x_14, 4); +x_27 = lean_ctor_get(x_14, 5); +x_28 = lean_ctor_get(x_14, 6); +lean_inc(x_28); +lean_inc(x_27); +lean_inc(x_26); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_14); +x_29 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_29, 0, x_23); +lean_ctor_set(x_29, 1, x_24); +lean_ctor_set(x_29, 2, x_5); +lean_ctor_set(x_29, 3, x_25); +lean_ctor_set(x_29, 4, x_26); +lean_ctor_set(x_29, 5, x_27); +lean_ctor_set(x_29, 6, x_28); +x_30 = lean_st_ref_set(x_1, x_29, x_15); +x_31 = lean_ctor_get(x_30, 1); +lean_inc(x_31); +if (lean_is_exclusive(x_30)) { + lean_ctor_release(x_30, 0); + lean_ctor_release(x_30, 1); + x_32 = x_30; +} else { + lean_dec_ref(x_30); + x_32 = lean_box(0); +} +if (lean_is_scalar(x_32)) { + x_33 = lean_alloc_ctor(0, 2, 0); +} else { + x_33 = x_32; +} +lean_ctor_set(x_33, 0, x_10); +lean_ctor_set(x_33, 1, x_31); +return x_33; +} +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_34 = lean_ctor_get(x_5, 0); +x_35 = lean_ctor_get(x_5, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_5); +lean_inc(x_35); +lean_inc(x_34); +x_36 = l_Lean_Name_num___override(x_34, x_35); +x_37 = lean_unsigned_to_nat(1u); +x_38 = lean_nat_add(x_35, x_37); +lean_dec(x_35); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_34); +lean_ctor_set(x_39, 1, x_38); +x_40 = lean_st_ref_take(x_1, x_6); +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); +lean_dec(x_40); +x_43 = lean_ctor_get(x_41, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_41, 1); +lean_inc(x_44); +x_45 = lean_ctor_get(x_41, 3); +lean_inc(x_45); +x_46 = lean_ctor_get(x_41, 4); +lean_inc(x_46); +x_47 = lean_ctor_get(x_41, 5); +lean_inc(x_47); +x_48 = lean_ctor_get(x_41, 6); +lean_inc(x_48); +if (lean_is_exclusive(x_41)) { + lean_ctor_release(x_41, 0); + lean_ctor_release(x_41, 1); + lean_ctor_release(x_41, 2); + lean_ctor_release(x_41, 3); + lean_ctor_release(x_41, 4); + lean_ctor_release(x_41, 5); + lean_ctor_release(x_41, 6); + x_49 = x_41; +} else { + lean_dec_ref(x_41); + x_49 = lean_box(0); +} +if (lean_is_scalar(x_49)) { + x_50 = lean_alloc_ctor(0, 7, 0); +} else { + x_50 = x_49; +} +lean_ctor_set(x_50, 0, x_43); +lean_ctor_set(x_50, 1, x_44); +lean_ctor_set(x_50, 2, x_39); +lean_ctor_set(x_50, 3, x_45); +lean_ctor_set(x_50, 4, x_46); +lean_ctor_set(x_50, 5, x_47); +lean_ctor_set(x_50, 6, x_48); +x_51 = lean_st_ref_set(x_1, x_50, x_42); +x_52 = lean_ctor_get(x_51, 1); +lean_inc(x_52); +if (lean_is_exclusive(x_51)) { + lean_ctor_release(x_51, 0); + lean_ctor_release(x_51, 1); + x_53 = x_51; +} else { + lean_dec_ref(x_51); + x_53 = lean_box(0); +} +if (lean_is_scalar(x_53)) { + x_54 = lean_alloc_ctor(0, 2, 0); +} else { + x_54 = x_53; +} +lean_ctor_set(x_54, 0, x_36); +lean_ctor_set(x_54, 1, x_52); +return x_54; +} +} +} +LEAN_EXPORT lean_object* l_Lean_mkFreshId___at_Lean_Elab_Tactic_elabSimpArgs___spec__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; +x_8 = lean_alloc_closure((void*)(l_Lean_mkFreshId___at_Lean_Elab_Tactic_elabSimpArgs___spec__2___rarg___boxed), 2, 0); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_elabSimpArgs___spec__7(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; uint8_t x_13; @@ -5013,7 +5316,7 @@ return x_19; } } } -LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Tactic_elabSimpArgs___spec__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, lean_object* x_10, lean_object* x_11) { +LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Tactic_elabSimpArgs___spec__6(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; @@ -5026,7 +5329,7 @@ x_14 = l_Lean_replaceRef(x_1, x_13); lean_dec(x_13); lean_dec(x_1); lean_ctor_set(x_9, 5, x_14); -x_15 = l_Lean_throwError___at_Lean_Elab_Tactic_elabSimpArgs___spec__6(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_15 = l_Lean_throwError___at_Lean_Elab_Tactic_elabSimpArgs___spec__7(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); @@ -5078,7 +5381,7 @@ lean_ctor_set(x_28, 7, x_23); lean_ctor_set(x_28, 8, x_24); lean_ctor_set(x_28, 9, x_25); lean_ctor_set(x_28, 10, x_26); -x_29 = l_Lean_throwError___at_Lean_Elab_Tactic_elabSimpArgs___spec__6(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_28, x_10, x_11); +x_29 = l_Lean_throwError___at_Lean_Elab_Tactic_elabSimpArgs___spec__7(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_28, x_10, x_11); lean_dec(x_10); lean_dec(x_28); lean_dec(x_8); @@ -5091,7 +5394,7 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Tactic_elabSimpArgs___spec__8(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_EXPORT lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Tactic_elabSimpArgs___spec__9(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; uint8_t x_12; @@ -5137,7 +5440,7 @@ return x_24; } } } -static lean_object* _init_l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__9___closed__1() { +static lean_object* _init_l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__10___closed__1() { _start: { lean_object* x_1; @@ -5145,16 +5448,16 @@ x_1 = lean_mk_string_from_bytes("unknown constant '", 18); return x_1; } } -static lean_object* _init_l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__9___closed__2() { +static lean_object* _init_l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__10___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__9___closed__1; +x_1 = l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__10___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__9___closed__3() { +static lean_object* _init_l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__10___closed__3() { _start: { lean_object* x_1; @@ -5162,16 +5465,16 @@ x_1 = lean_mk_string_from_bytes("'", 1); return x_1; } } -static lean_object* _init_l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__9___closed__4() { +static lean_object* _init_l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__10___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__9___closed__3; +x_1 = l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__10___closed__3; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__9(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_EXPORT lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__10(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; lean_object* x_17; lean_object* x_18; @@ -5179,11 +5482,11 @@ x_11 = lean_box(0); x_12 = l_Lean_Expr_const___override(x_1, x_11); x_13 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_13, 0, x_12); -x_14 = l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__9___closed__2; +x_14 = l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__10___closed__2; x_15 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_15, 0, x_14); lean_ctor_set(x_15, 1, x_13); -x_16 = l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__9___closed__4; +x_16 = l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__10___closed__4; x_17 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_17, 0, x_15); lean_ctor_set(x_17, 1, x_16); @@ -5191,7 +5494,7 @@ x_18 = l_Lean_throwError___at_Lean_Elab_Tactic_evalTactic___spec__2(x_17, x_2, x return x_18; } } -LEAN_EXPORT lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Tactic_elabSimpArgs___spec__7___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_EXPORT lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Tactic_elabSimpArgs___spec__8___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) { _start: { lean_object* x_13; lean_object* x_14; @@ -5202,13 +5505,13 @@ lean_ctor_set(x_14, 1, x_12); return x_14; } } -LEAN_EXPORT lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Tactic_elabSimpArgs___spec__7(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_EXPORT lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Tactic_elabSimpArgs___spec__8(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; lean_inc(x_8); lean_inc(x_1); -x_11 = l_Lean_resolveGlobalName___at_Lean_Elab_Tactic_elabSimpArgs___spec__8(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_resolveGlobalName___at_Lean_Elab_Tactic_elabSimpArgs___spec__9(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); x_13 = lean_ctor_get(x_11, 1); @@ -5222,7 +5525,7 @@ if (x_16 == 0) lean_object* x_17; lean_object* x_18; lean_dec(x_1); x_17 = lean_box(0); -x_18 = l_Lean_resolveGlobalConstCore___at_Lean_Elab_Tactic_elabSimpArgs___spec__7___lambda__1(x_15, x_14, x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); +x_18 = l_Lean_resolveGlobalConstCore___at_Lean_Elab_Tactic_elabSimpArgs___spec__8___lambda__1(x_15, x_14, x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -5237,7 +5540,7 @@ else { lean_object* x_19; uint8_t x_20; lean_dec(x_15); -x_19 = l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__9(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); +x_19 = l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__10(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -5267,7 +5570,7 @@ return x_23; } } } -static lean_object* _init_l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__1() { +static lean_object* _init_l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_elabSimpArgs___spec__5___closed__1() { _start: { lean_object* x_1; @@ -5275,27 +5578,27 @@ x_1 = lean_mk_string_from_bytes("expected identifier", 19); return x_1; } } -static lean_object* _init_l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__2() { +static lean_object* _init_l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_elabSimpArgs___spec__5___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__1; +x_1 = l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_elabSimpArgs___spec__5___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__3() { +static lean_object* _init_l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_elabSimpArgs___spec__5___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__2; +x_1 = l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_elabSimpArgs___spec__5___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_elabSimpArgs___spec__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_EXPORT lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_elabSimpArgs___spec__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, lean_object* x_10) { _start: { if (lean_obj_tag(x_1) == 3) @@ -5338,7 +5641,7 @@ x_18 = l_Lean_replaceRef(x_1, x_17); lean_dec(x_17); lean_dec(x_1); lean_ctor_set(x_8, 5, x_18); -x_19 = l_Lean_resolveGlobalConstCore___at_Lean_Elab_Tactic_elabSimpArgs___spec__7(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_19 = l_Lean_resolveGlobalConstCore___at_Lean_Elab_Tactic_elabSimpArgs___spec__8(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); return x_19; } else @@ -5382,7 +5685,7 @@ lean_ctor_set(x_32, 7, x_27); lean_ctor_set(x_32, 8, x_28); lean_ctor_set(x_32, 9, x_29); lean_ctor_set(x_32, 10, x_30); -x_33 = l_Lean_resolveGlobalConstCore___at_Lean_Elab_Tactic_elabSimpArgs___spec__7(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_32, x_9, x_10); +x_33 = l_Lean_resolveGlobalConstCore___at_Lean_Elab_Tactic_elabSimpArgs___spec__8(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_32, x_9, x_10); return x_33; } } @@ -5390,13 +5693,13 @@ return x_33; else { lean_object* x_34; lean_object* x_35; -x_34 = l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__3; -x_35 = l_Lean_throwErrorAt___at_Lean_Elab_Tactic_elabSimpArgs___spec__5(x_1, x_34, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_34 = l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_elabSimpArgs___spec__5___closed__3; +x_35 = l_Lean_throwErrorAt___at_Lean_Elab_Tactic_elabSimpArgs___spec__6(x_1, x_34, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); return x_35; } } } -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_elabSimpArgs___spec__11(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_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_elabSimpArgs___spec__12(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; uint8_t x_13; @@ -5434,7 +5737,7 @@ return x_19; } } } -LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Tactic_elabSimpArgs___spec__10(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_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Tactic_elabSimpArgs___spec__11(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; @@ -5447,7 +5750,7 @@ x_14 = l_Lean_replaceRef(x_1, x_13); lean_dec(x_13); lean_dec(x_1); lean_ctor_set(x_9, 5, x_14); -x_15 = l_Lean_throwError___at_Lean_Elab_Tactic_elabSimpArgs___spec__11(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_15 = l_Lean_throwError___at_Lean_Elab_Tactic_elabSimpArgs___spec__12(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); @@ -5499,7 +5802,7 @@ lean_ctor_set(x_28, 7, x_23); lean_ctor_set(x_28, 8, x_24); lean_ctor_set(x_28, 9, x_25); lean_ctor_set(x_28, 10, x_26); -x_29 = l_Lean_throwError___at_Lean_Elab_Tactic_elabSimpArgs___spec__11(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_28, x_10, x_11); +x_29 = l_Lean_throwError___at_Lean_Elab_Tactic_elabSimpArgs___spec__12(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_28, x_10, x_11); lean_dec(x_10); lean_dec(x_28); lean_dec(x_8); @@ -5512,7 +5815,7 @@ return x_29; } } } -static lean_object* _init_l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__3___closed__1() { +static lean_object* _init_l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__1() { _start: { lean_object* x_1; @@ -5520,7 +5823,7 @@ x_1 = lean_mk_string_from_bytes("ambiguous identifier '", 22); return x_1; } } -static lean_object* _init_l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__3___closed__2() { +static lean_object* _init_l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__2() { _start: { lean_object* x_1; @@ -5528,7 +5831,7 @@ x_1 = lean_mk_string_from_bytes("', possible interpretations: ", 29); return x_1; } } -static lean_object* _init_l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__3___closed__3() { +static lean_object* _init_l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__3() { _start: { lean_object* x_1; @@ -5536,7 +5839,7 @@ x_1 = lean_mk_string_from_bytes("", 0); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__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_EXPORT lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__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) { _start: { lean_object* x_11; @@ -5549,7 +5852,7 @@ lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_11 = l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_elabSimpArgs___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_elabSimpArgs___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); if (lean_obj_tag(x_11) == 0) { lean_object* x_12; @@ -5568,23 +5871,23 @@ lean_inc(x_1); x_17 = l_Lean_Syntax_formatStxAux(x_14, x_15, x_16, x_1); x_18 = l_Std_Format_defWidth; x_19 = lean_format_pretty(x_17, x_18); -x_20 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__3___closed__1; +x_20 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__1; x_21 = lean_string_append(x_20, x_19); lean_dec(x_19); -x_22 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__3___closed__2; +x_22 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__2; x_23 = lean_string_append(x_21, x_22); x_24 = lean_box(0); x_25 = l_List_mapTRAux___at_Lean_resolveGlobalConstNoOverload___spec__1(x_12, x_24); x_26 = l_List_toString___at_Lean_resolveGlobalConstNoOverloadCore___spec__2(x_25); x_27 = lean_string_append(x_23, x_26); lean_dec(x_26); -x_28 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__3___closed__3; +x_28 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__3; x_29 = lean_string_append(x_27, x_28); x_30 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_30, 0, x_29); x_31 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_31, 0, x_30); -x_32 = l_Lean_throwErrorAt___at_Lean_Elab_Tactic_elabSimpArgs___spec__10(x_1, x_31, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); +x_32 = l_Lean_throwErrorAt___at_Lean_Elab_Tactic_elabSimpArgs___spec__11(x_1, x_31, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); return x_32; } else @@ -5645,23 +5948,23 @@ lean_inc(x_1); x_44 = l_Lean_Syntax_formatStxAux(x_41, x_42, x_43, x_1); x_45 = l_Std_Format_defWidth; x_46 = lean_format_pretty(x_44, x_45); -x_47 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__3___closed__1; +x_47 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__1; x_48 = lean_string_append(x_47, x_46); lean_dec(x_46); -x_49 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__3___closed__2; +x_49 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__2; x_50 = lean_string_append(x_48, x_49); x_51 = lean_box(0); x_52 = l_List_mapTRAux___at_Lean_resolveGlobalConstNoOverload___spec__1(x_12, x_51); x_53 = l_List_toString___at_Lean_resolveGlobalConstNoOverloadCore___spec__2(x_52); x_54 = lean_string_append(x_50, x_53); lean_dec(x_53); -x_55 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__3___closed__3; +x_55 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__3; x_56 = lean_string_append(x_54, x_55); x_57 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_57, 0, x_56); x_58 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_58, 0, x_57); -x_59 = l_Lean_throwErrorAt___at_Lean_Elab_Tactic_elabSimpArgs___spec__10(x_1, x_58, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_40); +x_59 = l_Lean_throwErrorAt___at_Lean_Elab_Tactic_elabSimpArgs___spec__11(x_1, x_58, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_40); return x_59; } } @@ -5699,7 +6002,7 @@ return x_63; } } } -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_elabSimpArgs___spec__15(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_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_elabSimpArgs___spec__16(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; uint8_t x_13; @@ -5737,7 +6040,7 @@ return x_19; } } } -LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__14(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_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__15(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; uint8_t x_12; @@ -5761,15 +6064,15 @@ x_17 = lean_box(0); x_18 = l_Lean_Expr_const___override(x_1, x_17); x_19 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_19, 0, x_18); -x_20 = l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__9___closed__2; +x_20 = l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__10___closed__2; x_21 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_21, 0, x_20); lean_ctor_set(x_21, 1, x_19); -x_22 = l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__9___closed__4; +x_22 = l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__10___closed__4; x_23 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_23, 0, x_21); lean_ctor_set(x_23, 1, x_22); -x_24 = l_Lean_throwError___at_Lean_Elab_Tactic_elabSimpArgs___spec__15(x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_14); +x_24 = l_Lean_throwError___at_Lean_Elab_Tactic_elabSimpArgs___spec__16(x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_14); return x_24; } else @@ -5803,15 +6106,15 @@ x_30 = lean_box(0); x_31 = l_Lean_Expr_const___override(x_1, x_30); x_32 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_32, 0, x_31); -x_33 = l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__9___closed__2; +x_33 = l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__10___closed__2; x_34 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_34, 0, x_33); lean_ctor_set(x_34, 1, x_32); -x_35 = l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__9___closed__4; +x_35 = l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__10___closed__4; x_36 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_36, 0, x_34); lean_ctor_set(x_36, 1, x_35); -x_37 = l_Lean_throwError___at_Lean_Elab_Tactic_elabSimpArgs___spec__15(x_36, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_27); +x_37 = l_Lean_throwError___at_Lean_Elab_Tactic_elabSimpArgs___spec__16(x_36, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_27); return x_37; } else @@ -5829,12 +6132,12 @@ return x_39; } } } -LEAN_EXPORT lean_object* l_Lean_mkConstWithLevelParams___at_Lean_Elab_Tactic_elabSimpArgs___spec__13(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_EXPORT lean_object* l_Lean_mkConstWithLevelParams___at_Lean_Elab_Tactic_elabSimpArgs___spec__14(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_inc(x_1); -x_11 = l_Lean_getConstInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__14(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_getConstInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__15(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); if (lean_obj_tag(x_11) == 0) { uint8_t x_12; @@ -5895,7 +6198,7 @@ return x_28; } } } -LEAN_EXPORT lean_object* l_Lean_Elab_pushInfoTree___at_Lean_Elab_Tactic_elabSimpArgs___spec__17(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_EXPORT lean_object* l_Lean_Elab_pushInfoTree___at_Lean_Elab_Tactic_elabSimpArgs___spec__18(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; uint8_t x_14; @@ -6092,7 +6395,7 @@ return x_65; } } } -LEAN_EXPORT lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Tactic_elabSimpArgs___spec__16(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_EXPORT lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Tactic_elabSimpArgs___spec__17(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; uint8_t x_14; @@ -6141,16 +6444,16 @@ x_22 = l_Lean_Elab_Tactic_elabSimpConfigCore___closed__6; x_23 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_23, 0, x_1); lean_ctor_set(x_23, 1, x_22); -x_24 = l_Lean_Elab_pushInfoTree___at_Lean_Elab_Tactic_elabSimpArgs___spec__17(x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_21); +x_24 = l_Lean_Elab_pushInfoTree___at_Lean_Elab_Tactic_elabSimpArgs___spec__18(x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_21); return x_24; } } } -LEAN_EXPORT lean_object* l_Lean_Elab_addConstInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__12(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_EXPORT lean_object* l_Lean_Elab_addConstInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__13(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_mkConstWithLevelParams___at_Lean_Elab_Tactic_elabSimpArgs___spec__13(x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_13 = l_Lean_mkConstWithLevelParams___at_Lean_Elab_Tactic_elabSimpArgs___spec__14(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_13) == 0) { lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; @@ -6173,7 +6476,7 @@ lean_ctor_set(x_20, 3, x_14); lean_ctor_set_uint8(x_20, sizeof(void*)*4, x_19); x_21 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_21, 0, x_20); -x_22 = l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Tactic_elabSimpArgs___spec__16(x_21, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_15); +x_22 = l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Tactic_elabSimpArgs___spec__17(x_21, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_15); lean_dec(x_10); lean_dec(x_8); lean_dec(x_6); @@ -6210,7 +6513,7 @@ return x_26; } } } -LEAN_EXPORT lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__2___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_EXPORT lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__3___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; @@ -6220,7 +6523,7 @@ lean_ctor_set(x_12, 1, x_11); return x_12; } } -LEAN_EXPORT lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__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_EXPORT lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__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) { _start: { lean_object* x_12; @@ -6233,7 +6536,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_12 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__3(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_12 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__4(x_1, 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) { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; @@ -6291,7 +6594,7 @@ x_23 = lean_ctor_get(x_15, 1); lean_inc(x_23); lean_dec(x_15); lean_inc(x_13); -x_24 = l_Lean_Elab_addConstInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__12(x_1, x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_23); +x_24 = l_Lean_Elab_addConstInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__13(x_1, x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_23); lean_dec(x_10); lean_dec(x_8); lean_dec(x_6); @@ -6379,7 +6682,7 @@ return x_36; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__18___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_EXPORT lean_object* l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__19___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) { _start: { lean_object* x_13; lean_object* x_14; @@ -6390,7 +6693,7 @@ lean_ctor_set(x_14, 1, x_12); return x_14; } } -static lean_object* _init_l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__18___closed__1() { +static lean_object* _init_l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__19___closed__1() { _start: { lean_object* x_1; @@ -6398,16 +6701,16 @@ x_1 = lean_mk_string_from_bytes("' does not have [simp] attribute", 32); return x_1; } } -static lean_object* _init_l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__18___closed__2() { +static lean_object* _init_l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__19___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__18___closed__1; +x_1 = l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__19___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__18(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_EXPORT lean_object* l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__19(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; @@ -6433,11 +6736,11 @@ lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean lean_dec(x_1); x_16 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_16, 0, x_2); -x_17 = l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__9___closed__4; +x_17 = l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__10___closed__4; x_18 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_18, 0, x_17); lean_ctor_set(x_18, 1, x_16); -x_19 = l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__18___closed__2; +x_19 = l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__19___closed__2; x_20 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_20, 0, x_18); lean_ctor_set(x_20, 1, x_19); @@ -6473,7 +6776,7 @@ else { lean_object* x_26; lean_object* x_27; x_26 = lean_box(0); -x_27 = l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__18___lambda__1(x_1, x_2, x_26, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_27 = l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__19___lambda__1(x_1, x_2, x_26, 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); @@ -6489,7 +6792,7 @@ else { lean_object* x_28; lean_object* x_29; x_28 = lean_box(0); -x_29 = l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__18___lambda__1(x_1, x_2, x_28, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_29 = l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__19___lambda__1(x_1, x_2, x_28, 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); @@ -6505,7 +6808,7 @@ else { lean_object* x_30; lean_object* x_31; x_30 = lean_box(0); -x_31 = l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__18___lambda__1(x_1, x_2, x_30, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_31 = l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__19___lambda__1(x_1, x_2, x_30, 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); @@ -6518,7 +6821,7 @@ return x_31; } } } -LEAN_EXPORT lean_object* l_panic___at_Lean_Elab_Tactic_elabSimpArgs___spec__19(lean_object* x_1) { +LEAN_EXPORT lean_object* l_panic___at_Lean_Elab_Tactic_elabSimpArgs___spec__20(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -6527,7 +6830,7 @@ x_3 = lean_panic_fn(x_2, x_1); return x_3; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__1() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__1() { _start: { lean_object* x_1; @@ -6535,17 +6838,17 @@ x_1 = lean_mk_string_from_bytes("simpErase", 9); return x_1; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__2() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Tactic_tacticToDischarge___closed__4; -x_2 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__1; +x_2 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__3() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__3() { _start: { lean_object* x_1; @@ -6553,17 +6856,17 @@ x_1 = lean_mk_string_from_bytes("simpLemma", 9); return x_1; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__4() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Tactic_tacticToDischarge___closed__4; -x_2 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__3; +x_2 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__3; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__5() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__5() { _start: { lean_object* x_1; @@ -6571,17 +6874,17 @@ x_1 = lean_mk_string_from_bytes("simpStar", 8); return x_1; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__6() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Tactic_tacticToDischarge___closed__4; -x_2 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__5; +x_2 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__5; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__7() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__7() { _start: { lean_object* x_1; @@ -6589,719 +6892,16 @@ x_1 = lean_mk_string_from_bytes("simpPost", 8); return x_1; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__8() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Tactic_tacticToDischarge___closed__4; -x_2 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__7; +x_2 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__7; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20(lean_object* x_1, uint8_t x_2, uint8_t x_3, lean_object* x_4, size_t x_5, size_t 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) { -_start: -{ -uint8_t x_17; -x_17 = lean_usize_dec_lt(x_6, x_5); -if (x_17 == 0) -{ -lean_object* x_18; -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_7); -lean_ctor_set(x_18, 1, x_16); -return x_18; -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; 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; uint8_t x_35; -x_19 = lean_array_uget(x_4, x_6); -x_27 = lean_ctor_get(x_7, 1); -lean_inc(x_27); -x_28 = lean_ctor_get(x_7, 0); -lean_inc(x_28); -if (lean_is_exclusive(x_7)) { - lean_ctor_release(x_7, 0); - lean_ctor_release(x_7, 1); - x_29 = x_7; -} else { - lean_dec_ref(x_7); - x_29 = lean_box(0); -} -x_30 = lean_ctor_get(x_27, 0); -lean_inc(x_30); -x_31 = lean_ctor_get(x_27, 1); -lean_inc(x_31); -if (lean_is_exclusive(x_27)) { - lean_ctor_release(x_27, 0); - lean_ctor_release(x_27, 1); - x_32 = x_27; -} else { - lean_dec_ref(x_27); - x_32 = lean_box(0); -} -lean_inc(x_19); -x_33 = l_Lean_Syntax_getKind(x_19); -x_34 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__2; -x_35 = lean_name_eq(x_33, x_34); -if (x_35 == 0) -{ -lean_object* x_36; uint8_t x_37; -x_36 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__4; -x_37 = lean_name_eq(x_33, x_36); -if (x_37 == 0) -{ -lean_object* x_38; uint8_t x_39; -lean_dec(x_28); -lean_dec(x_19); -x_38 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__6; -x_39 = lean_name_eq(x_33, x_38); -lean_dec(x_33); -if (x_39 == 0) -{ -lean_object* x_40; uint8_t x_41; -lean_dec(x_32); -lean_dec(x_31); -lean_dec(x_30); -lean_dec(x_29); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_40 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_elabSimpArgs___spec__1___rarg(x_16); -x_41 = !lean_is_exclusive(x_40); -if (x_41 == 0) -{ -return x_40; -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_40, 0); -x_43 = lean_ctor_get(x_40, 1); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_40); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -return x_44; -} -} -else -{ -lean_object* x_45; uint8_t x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -if (lean_is_scalar(x_32)) { - x_45 = lean_alloc_ctor(0, 2, 0); -} else { - x_45 = x_32; -} -lean_ctor_set(x_45, 0, x_30); -lean_ctor_set(x_45, 1, x_31); -x_46 = 1; -x_47 = lean_box(x_46); -if (lean_is_scalar(x_29)) { - x_48 = lean_alloc_ctor(0, 2, 0); -} else { - x_48 = x_29; -} -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_45); -x_49 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_49, 0, x_48); -x_20 = x_49; -x_21 = x_16; -goto block_26; -} -} -else -{ -lean_object* x_50; lean_object* x_51; uint8_t x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; -lean_dec(x_33); -x_50 = lean_unsigned_to_nat(0u); -x_51 = l_Lean_Syntax_getArg(x_19, x_50); -x_52 = l_Lean_Syntax_isNone(x_51); -x_53 = lean_unsigned_to_nat(1u); -x_54 = l_Lean_Syntax_getArg(x_19, x_53); -x_55 = l_Lean_Syntax_isNone(x_54); -lean_dec(x_54); -x_56 = lean_unsigned_to_nat(2u); -x_57 = l_Lean_Syntax_getArg(x_19, x_56); -lean_dec(x_19); -if (x_52 == 0) -{ -lean_object* x_102; lean_object* x_103; lean_object* x_104; uint8_t x_105; -x_102 = l_Lean_Syntax_getArg(x_51, x_50); -lean_dec(x_51); -x_103 = l_Lean_Syntax_getKind(x_102); -x_104 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__8; -x_105 = lean_name_eq(x_103, x_104); -lean_dec(x_103); -x_58 = x_105; -goto block_101; -} -else -{ -uint8_t x_106; -lean_dec(x_51); -x_106 = 1; -x_58 = x_106; -goto block_101; -} -block_101: -{ -uint8_t x_59; -if (x_55 == 0) -{ -uint8_t x_99; -x_99 = 1; -x_59 = x_99; -goto block_98; -} -else -{ -uint8_t x_100; -x_100 = 0; -x_59 = x_100; -goto block_98; -} -block_98: -{ -lean_object* x_60; -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_57); -x_60 = l_Lean_Elab_Tactic_elabSimpArgs_resolveSimpIdTheorem_x3f(x_57, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_60) == 0) -{ -lean_object* x_61; -x_61 = lean_ctor_get(x_60, 0); -lean_inc(x_61); -switch (lean_obj_tag(x_61)) { -case 0: -{ -lean_object* x_62; lean_object* x_63; -x_62 = lean_ctor_get(x_60, 1); -lean_inc(x_62); -lean_dec(x_60); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -x_63 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpTheorem(x_30, x_57, x_58, x_59, x_10, x_11, x_12, x_13, x_14, x_15, x_62); -if (lean_obj_tag(x_63) == 0) -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; -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); -if (lean_is_scalar(x_32)) { - x_66 = lean_alloc_ctor(0, 2, 0); -} else { - x_66 = x_32; -} -lean_ctor_set(x_66, 0, x_64); -lean_ctor_set(x_66, 1, x_31); -if (lean_is_scalar(x_29)) { - x_67 = lean_alloc_ctor(0, 2, 0); -} else { - x_67 = x_29; -} -lean_ctor_set(x_67, 0, x_28); -lean_ctor_set(x_67, 1, x_66); -x_68 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_68, 0, x_67); -x_20 = x_68; -x_21 = x_65; -goto block_26; -} -else -{ -uint8_t x_69; -lean_dec(x_32); -lean_dec(x_31); -lean_dec(x_29); -lean_dec(x_28); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_69 = !lean_is_exclusive(x_63); -if (x_69 == 0) -{ -return x_63; -} -else -{ -lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_70 = lean_ctor_get(x_63, 0); -x_71 = lean_ctor_get(x_63, 1); -lean_inc(x_71); -lean_inc(x_70); -lean_dec(x_63); -x_72 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_72, 0, x_70); -lean_ctor_set(x_72, 1, x_71); -return x_72; -} -} -} -case 1: -{ -lean_object* x_73; lean_object* x_74; lean_object* x_75; -lean_dec(x_57); -x_73 = lean_ctor_get(x_60, 1); -lean_inc(x_73); -lean_dec(x_60); -x_74 = lean_ctor_get(x_61, 0); -lean_inc(x_74); -lean_dec(x_61); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_75 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addDeclToUnfoldOrTheorem(x_30, x_74, x_58, x_59, x_3, x_12, x_13, x_14, x_15, x_73); -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; -x_76 = lean_ctor_get(x_75, 0); -lean_inc(x_76); -x_77 = lean_ctor_get(x_75, 1); -lean_inc(x_77); -lean_dec(x_75); -if (lean_is_scalar(x_32)) { - x_78 = lean_alloc_ctor(0, 2, 0); -} else { - x_78 = x_32; -} -lean_ctor_set(x_78, 0, x_76); -lean_ctor_set(x_78, 1, x_31); -if (lean_is_scalar(x_29)) { - x_79 = lean_alloc_ctor(0, 2, 0); -} else { - x_79 = x_29; -} -lean_ctor_set(x_79, 0, x_28); -lean_ctor_set(x_79, 1, x_78); -x_80 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_80, 0, x_79); -x_20 = x_80; -x_21 = x_77; -goto block_26; -} -else -{ -uint8_t x_81; -lean_dec(x_32); -lean_dec(x_31); -lean_dec(x_29); -lean_dec(x_28); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_81 = !lean_is_exclusive(x_75); -if (x_81 == 0) -{ -return x_75; -} -else -{ -lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_82 = lean_ctor_get(x_75, 0); -x_83 = lean_ctor_get(x_75, 1); -lean_inc(x_83); -lean_inc(x_82); -lean_dec(x_75); -x_84 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_84, 0, x_82); -lean_ctor_set(x_84, 1, x_83); -return x_84; -} -} -} -default: -{ -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; lean_object* x_93; -lean_dec(x_57); -x_85 = lean_ctor_get(x_60, 1); -lean_inc(x_85); -lean_dec(x_60); -x_86 = lean_ctor_get(x_61, 0); -lean_inc(x_86); -lean_dec(x_61); -x_87 = l_Lean_Meta_SimpExtension_getTheorems(x_86, x_14, x_15, x_85); -lean_dec(x_86); -x_88 = lean_ctor_get(x_87, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_87, 1); -lean_inc(x_89); -lean_dec(x_87); -x_90 = lean_array_push(x_31, x_88); -if (lean_is_scalar(x_32)) { - x_91 = lean_alloc_ctor(0, 2, 0); -} else { - x_91 = x_32; -} -lean_ctor_set(x_91, 0, x_30); -lean_ctor_set(x_91, 1, x_90); -if (lean_is_scalar(x_29)) { - x_92 = lean_alloc_ctor(0, 2, 0); -} else { - x_92 = x_29; -} -lean_ctor_set(x_92, 0, x_28); -lean_ctor_set(x_92, 1, x_91); -x_93 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_93, 0, x_92); -x_20 = x_93; -x_21 = x_89; -goto block_26; -} -} -} -else -{ -uint8_t x_94; -lean_dec(x_57); -lean_dec(x_32); -lean_dec(x_31); -lean_dec(x_30); -lean_dec(x_29); -lean_dec(x_28); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_94 = !lean_is_exclusive(x_60); -if (x_94 == 0) -{ -return x_60; -} -else -{ -lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_95 = lean_ctor_get(x_60, 0); -x_96 = lean_ctor_get(x_60, 1); -lean_inc(x_96); -lean_inc(x_95); -lean_dec(x_60); -x_97 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_97, 0, x_95); -lean_ctor_set(x_97, 1, x_96); -return x_97; -} -} -} -} -} -} -else -{ -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_dec(x_33); -x_107 = lean_unsigned_to_nat(1u); -x_108 = l_Lean_Syntax_getArg(x_19, x_107); -lean_dec(x_19); -lean_inc(x_14); -lean_inc(x_12); -lean_inc(x_10); -lean_inc(x_108); -x_109 = l_Lean_Elab_Term_isLocalIdent_x3f(x_108, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -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); -if (x_2 == 0) -{ -uint8_t x_140; -x_140 = lean_unbox(x_28); -if (x_140 == 0) -{ -lean_object* x_141; -lean_dec(x_110); -x_141 = lean_box(0); -x_112 = x_141; -goto block_139; -} -else -{ -if (lean_obj_tag(x_110) == 0) -{ -lean_object* x_142; -x_142 = lean_box(0); -x_112 = x_142; -goto block_139; -} -else -{ -lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; -lean_dec(x_110); -lean_dec(x_32); -lean_dec(x_29); -x_143 = l_Lean_Syntax_getId(x_108); -lean_dec(x_108); -x_144 = l_Lean_Meta_SimpTheorems_eraseCore(x_30, x_143); -x_145 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_145, 0, x_144); -lean_ctor_set(x_145, 1, x_31); -x_146 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_146, 0, x_28); -lean_ctor_set(x_146, 1, x_145); -x_147 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_147, 0, x_146); -x_20 = x_147; -x_21 = x_111; -goto block_26; -} -} -} -else -{ -if (lean_obj_tag(x_110) == 0) -{ -lean_object* x_148; -x_148 = lean_box(0); -x_112 = x_148; -goto block_139; -} -else -{ -lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; -lean_dec(x_110); -lean_dec(x_32); -lean_dec(x_29); -x_149 = l_Lean_Syntax_getId(x_108); -lean_dec(x_108); -x_150 = l_Lean_Meta_SimpTheorems_eraseCore(x_30, x_149); -x_151 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_151, 0, x_150); -lean_ctor_set(x_151, 1, x_31); -x_152 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_152, 0, x_28); -lean_ctor_set(x_152, 1, x_151); -x_153 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_153, 0, x_152); -x_20 = x_153; -x_21 = x_111; -goto block_26; -} -} -block_139: -{ -lean_object* x_113; lean_object* x_114; -lean_dec(x_112); -x_113 = lean_box(0); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_114 = l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__2(x_108, x_113, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_111); -if (lean_obj_tag(x_114) == 0) -{ -lean_object* x_115; uint8_t x_116; -x_115 = lean_ctor_get(x_1, 0); -x_116 = lean_ctor_get_uint8(x_115, sizeof(void*)*2 + 11); -if (x_116 == 0) -{ -lean_object* x_117; lean_object* x_118; lean_object* x_119; -x_117 = lean_ctor_get(x_114, 0); -lean_inc(x_117); -x_118 = lean_ctor_get(x_114, 1); -lean_inc(x_118); -lean_dec(x_114); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_119 = l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__18(x_30, x_117, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_118); -if (lean_obj_tag(x_119) == 0) -{ -lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; -x_120 = lean_ctor_get(x_119, 0); -lean_inc(x_120); -x_121 = lean_ctor_get(x_119, 1); -lean_inc(x_121); -lean_dec(x_119); -if (lean_is_scalar(x_32)) { - x_122 = lean_alloc_ctor(0, 2, 0); -} else { - x_122 = x_32; -} -lean_ctor_set(x_122, 0, x_120); -lean_ctor_set(x_122, 1, x_31); -if (lean_is_scalar(x_29)) { - x_123 = lean_alloc_ctor(0, 2, 0); -} else { - x_123 = x_29; -} -lean_ctor_set(x_123, 0, x_28); -lean_ctor_set(x_123, 1, x_122); -x_124 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_124, 0, x_123); -x_20 = x_124; -x_21 = x_121; -goto block_26; -} -else -{ -uint8_t x_125; -lean_dec(x_32); -lean_dec(x_31); -lean_dec(x_29); -lean_dec(x_28); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_125 = !lean_is_exclusive(x_119); -if (x_125 == 0) -{ -return x_119; -} -else -{ -lean_object* x_126; lean_object* x_127; lean_object* x_128; -x_126 = lean_ctor_get(x_119, 0); -x_127 = lean_ctor_get(x_119, 1); -lean_inc(x_127); -lean_inc(x_126); -lean_dec(x_119); -x_128 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_128, 0, x_126); -lean_ctor_set(x_128, 1, x_127); -return x_128; -} -} -} -else -{ -lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; -x_129 = lean_ctor_get(x_114, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_114, 1); -lean_inc(x_130); -lean_dec(x_114); -x_131 = l_Lean_Meta_SimpTheorems_eraseCore(x_30, x_129); -if (lean_is_scalar(x_32)) { - x_132 = lean_alloc_ctor(0, 2, 0); -} else { - x_132 = x_32; -} -lean_ctor_set(x_132, 0, x_131); -lean_ctor_set(x_132, 1, x_31); -if (lean_is_scalar(x_29)) { - x_133 = lean_alloc_ctor(0, 2, 0); -} else { - x_133 = x_29; -} -lean_ctor_set(x_133, 0, x_28); -lean_ctor_set(x_133, 1, x_132); -x_134 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_134, 0, x_133); -x_20 = x_134; -x_21 = x_130; -goto block_26; -} -} -else -{ -uint8_t x_135; -lean_dec(x_32); -lean_dec(x_31); -lean_dec(x_30); -lean_dec(x_29); -lean_dec(x_28); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_135 = !lean_is_exclusive(x_114); -if (x_135 == 0) -{ -return x_114; -} -else -{ -lean_object* x_136; lean_object* x_137; lean_object* x_138; -x_136 = lean_ctor_get(x_114, 0); -x_137 = lean_ctor_get(x_114, 1); -lean_inc(x_137); -lean_inc(x_136); -lean_dec(x_114); -x_138 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_138, 0, x_136); -lean_ctor_set(x_138, 1, x_137); -return x_138; -} -} -} -} -block_26: -{ -lean_object* x_22; size_t x_23; size_t x_24; -x_22 = lean_ctor_get(x_20, 0); -lean_inc(x_22); -lean_dec(x_20); -x_23 = 1; -x_24 = lean_usize_add(x_6, x_23); -x_6 = x_24; -x_7 = x_22; -x_16 = x_21; -goto _start; -} -} -} -} LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21(lean_object* x_1, uint8_t x_2, uint8_t x_3, lean_object* x_4, size_t x_5, size_t 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) { _start: { @@ -7325,23 +6925,23 @@ return x_18; } else { -lean_object* x_19; lean_object* x_20; lean_object* x_21; 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; uint8_t x_35; +lean_object* x_19; lean_object* x_20; lean_object* x_21; 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; uint8_t x_38; x_19 = lean_array_uget(x_4, x_6); x_27 = lean_ctor_get(x_7, 1); lean_inc(x_27); -x_28 = lean_ctor_get(x_7, 0); +x_28 = lean_ctor_get(x_27, 1); lean_inc(x_28); +x_29 = lean_ctor_get(x_7, 0); +lean_inc(x_29); if (lean_is_exclusive(x_7)) { lean_ctor_release(x_7, 0); lean_ctor_release(x_7, 1); - x_29 = x_7; + x_30 = x_7; } else { lean_dec_ref(x_7); - x_29 = lean_box(0); + x_30 = lean_box(0); } -x_30 = lean_ctor_get(x_27, 0); -lean_inc(x_30); -x_31 = lean_ctor_get(x_27, 1); +x_31 = lean_ctor_get(x_27, 0); lean_inc(x_31); if (lean_is_exclusive(x_27)) { lean_ctor_release(x_27, 0); @@ -7351,28 +6951,42 @@ if (lean_is_exclusive(x_27)) { lean_dec_ref(x_27); x_32 = lean_box(0); } +x_33 = lean_ctor_get(x_28, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_28, 1); +lean_inc(x_34); +if (lean_is_exclusive(x_28)) { + lean_ctor_release(x_28, 0); + lean_ctor_release(x_28, 1); + x_35 = x_28; +} else { + lean_dec_ref(x_28); + x_35 = lean_box(0); +} lean_inc(x_19); -x_33 = l_Lean_Syntax_getKind(x_19); -x_34 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__2; -x_35 = lean_name_eq(x_33, x_34); -if (x_35 == 0) +x_36 = l_Lean_Syntax_getKind(x_19); +x_37 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__2; +x_38 = lean_name_eq(x_36, x_37); +if (x_38 == 0) { -lean_object* x_36; uint8_t x_37; -x_36 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__4; -x_37 = lean_name_eq(x_33, x_36); -if (x_37 == 0) +lean_object* x_39; uint8_t x_40; +x_39 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__4; +x_40 = lean_name_eq(x_36, x_39); +if (x_40 == 0) { -lean_object* x_38; uint8_t x_39; -lean_dec(x_28); -lean_dec(x_19); -x_38 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__6; -x_39 = lean_name_eq(x_33, x_38); -lean_dec(x_33); -if (x_39 == 0) -{ -lean_object* x_40; uint8_t x_41; -lean_dec(x_32); +lean_object* x_41; uint8_t x_42; lean_dec(x_31); +lean_dec(x_19); +x_41 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__6; +x_42 = lean_name_eq(x_36, x_41); +lean_dec(x_36); +if (x_42 == 0) +{ +lean_object* x_43; uint8_t x_44; +lean_dec(x_35); +lean_dec(x_34); +lean_dec(x_33); +lean_dec(x_32); lean_dec(x_30); lean_dec(x_29); lean_dec(x_15); @@ -7383,168 +6997,191 @@ lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -x_40 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_elabSimpArgs___spec__1___rarg(x_16); -x_41 = !lean_is_exclusive(x_40); -if (x_41 == 0) +x_43 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_elabSimpArgs___spec__1___rarg(x_16); +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 0) { -return x_40; +return x_43; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_40, 0); -x_43 = lean_ctor_get(x_40, 1); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_40); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -return x_44; +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_43, 0); +x_46 = lean_ctor_get(x_43, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_43); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; } } else { -lean_object* x_45; uint8_t x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -if (lean_is_scalar(x_32)) { - x_45 = lean_alloc_ctor(0, 2, 0); -} else { - x_45 = x_32; -} -lean_ctor_set(x_45, 0, x_30); -lean_ctor_set(x_45, 1, x_31); -x_46 = 1; -x_47 = lean_box(x_46); -if (lean_is_scalar(x_29)) { +lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +if (lean_is_scalar(x_35)) { x_48 = lean_alloc_ctor(0, 2, 0); } else { - x_48 = x_29; + x_48 = x_35; } -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_45); -x_49 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_49, 0, x_48); -x_20 = x_49; +lean_ctor_set(x_48, 0, x_33); +lean_ctor_set(x_48, 1, x_34); +x_49 = 1; +x_50 = lean_box(x_49); +if (lean_is_scalar(x_32)) { + x_51 = lean_alloc_ctor(0, 2, 0); +} else { + x_51 = x_32; +} +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_48); +if (lean_is_scalar(x_30)) { + x_52 = lean_alloc_ctor(0, 2, 0); +} else { + x_52 = x_30; +} +lean_ctor_set(x_52, 0, x_29); +lean_ctor_set(x_52, 1, x_51); +x_53 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_53, 0, x_52); +x_20 = x_53; x_21 = x_16; goto block_26; } } else { -lean_object* x_50; lean_object* x_51; uint8_t x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; -lean_dec(x_33); -x_50 = lean_unsigned_to_nat(0u); -x_51 = l_Lean_Syntax_getArg(x_19, x_50); -x_52 = l_Lean_Syntax_isNone(x_51); -x_53 = lean_unsigned_to_nat(1u); -x_54 = l_Lean_Syntax_getArg(x_19, x_53); -x_55 = l_Lean_Syntax_isNone(x_54); -lean_dec(x_54); -x_56 = lean_unsigned_to_nat(2u); -x_57 = l_Lean_Syntax_getArg(x_19, x_56); -lean_dec(x_19); -if (x_52 == 0) +lean_object* x_54; lean_object* x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; +lean_dec(x_36); +x_54 = lean_unsigned_to_nat(0u); +x_55 = l_Lean_Syntax_getArg(x_19, x_54); +x_56 = l_Lean_Syntax_isNone(x_55); +x_57 = lean_unsigned_to_nat(1u); +x_58 = l_Lean_Syntax_getArg(x_19, x_57); +x_59 = l_Lean_Syntax_isNone(x_58); +lean_dec(x_58); +x_60 = lean_unsigned_to_nat(2u); +x_61 = l_Lean_Syntax_getArg(x_19, x_60); +if (x_56 == 0) { -lean_object* x_102; lean_object* x_103; lean_object* x_104; uint8_t x_105; -x_102 = l_Lean_Syntax_getArg(x_51, x_50); -lean_dec(x_51); -x_103 = l_Lean_Syntax_getKind(x_102); -x_104 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__8; -x_105 = lean_name_eq(x_103, x_104); -lean_dec(x_103); -x_58 = x_105; -goto block_101; +lean_object* x_117; lean_object* x_118; lean_object* x_119; uint8_t x_120; +x_117 = l_Lean_Syntax_getArg(x_55, x_54); +lean_dec(x_55); +x_118 = l_Lean_Syntax_getKind(x_117); +x_119 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__8; +x_120 = lean_name_eq(x_118, x_119); +lean_dec(x_118); +x_62 = x_120; +goto block_116; } else { -uint8_t x_106; -lean_dec(x_51); -x_106 = 1; -x_58 = x_106; -goto block_101; +uint8_t x_121; +lean_dec(x_55); +x_121 = 1; +x_62 = x_121; +goto block_116; } -block_101: +block_116: { -uint8_t x_59; -if (x_55 == 0) +uint8_t x_63; +if (x_59 == 0) { -uint8_t x_99; -x_99 = 1; -x_59 = x_99; -goto block_98; +uint8_t x_114; +x_114 = 1; +x_63 = x_114; +goto block_113; } else { -uint8_t x_100; -x_100 = 0; -x_59 = x_100; -goto block_98; +uint8_t x_115; +x_115 = 0; +x_63 = x_115; +goto block_113; } -block_98: +block_113: { -lean_object* x_60; +lean_object* x_64; lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -lean_inc(x_57); -x_60 = l_Lean_Elab_Tactic_elabSimpArgs_resolveSimpIdTheorem_x3f(x_57, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_60) == 0) -{ -lean_object* x_61; -x_61 = lean_ctor_get(x_60, 0); lean_inc(x_61); -switch (lean_obj_tag(x_61)) { +x_64 = l_Lean_Elab_Tactic_elabSimpArgs_resolveSimpIdTheorem_x3f(x_61, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_64) == 0) +{ +lean_object* x_65; +x_65 = lean_ctor_get(x_64, 0); +lean_inc(x_65); +switch (lean_obj_tag(x_65)) { case 0: { -lean_object* x_62; lean_object* x_63; -x_62 = lean_ctor_get(x_60, 1); -lean_inc(x_62); -lean_dec(x_60); +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_66 = lean_ctor_get(x_64, 1); +lean_inc(x_66); +lean_dec(x_64); +x_67 = l_Lean_mkFreshId___at_Lean_Elab_Tactic_elabSimpArgs___spec__2___rarg(x_15, x_66); +x_68 = lean_ctor_get(x_67, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_67, 1); +lean_inc(x_69); +lean_dec(x_67); +lean_inc(x_68); +x_70 = l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(x_29, x_68, x_19); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -x_63 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpTheorem(x_30, x_57, x_58, x_59, x_10, x_11, x_12, x_13, x_14, x_15, x_62); -if (lean_obj_tag(x_63) == 0) +x_71 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpTheorem(x_33, x_68, x_61, x_62, x_63, x_10, x_11, x_12, x_13, x_14, x_15, x_69); +if (lean_obj_tag(x_71) == 0) { -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; -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_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_71, 1); +lean_inc(x_73); +lean_dec(x_71); +if (lean_is_scalar(x_35)) { + x_74 = lean_alloc_ctor(0, 2, 0); +} else { + x_74 = x_35; +} +lean_ctor_set(x_74, 0, x_72); +lean_ctor_set(x_74, 1, x_34); if (lean_is_scalar(x_32)) { - x_66 = lean_alloc_ctor(0, 2, 0); + x_75 = lean_alloc_ctor(0, 2, 0); } else { - x_66 = x_32; + x_75 = x_32; } -lean_ctor_set(x_66, 0, x_64); -lean_ctor_set(x_66, 1, x_31); -if (lean_is_scalar(x_29)) { - x_67 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_75, 0, x_31); +lean_ctor_set(x_75, 1, x_74); +if (lean_is_scalar(x_30)) { + x_76 = lean_alloc_ctor(0, 2, 0); } else { - x_67 = x_29; + x_76 = x_30; } -lean_ctor_set(x_67, 0, x_28); -lean_ctor_set(x_67, 1, x_66); -x_68 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_68, 0, x_67); -x_20 = x_68; -x_21 = x_65; +lean_ctor_set(x_76, 0, x_70); +lean_ctor_set(x_76, 1, x_75); +x_77 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_77, 0, x_76); +x_20 = x_77; +x_21 = x_73; goto block_26; } else { -uint8_t x_69; +uint8_t x_78; +lean_dec(x_70); +lean_dec(x_35); +lean_dec(x_34); lean_dec(x_32); lean_dec(x_31); -lean_dec(x_29); -lean_dec(x_28); +lean_dec(x_30); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -7553,76 +7190,93 @@ lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -x_69 = !lean_is_exclusive(x_63); -if (x_69 == 0) +x_78 = !lean_is_exclusive(x_71); +if (x_78 == 0) { -return x_63; +return x_71; } else { -lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_70 = lean_ctor_get(x_63, 0); -x_71 = lean_ctor_get(x_63, 1); -lean_inc(x_71); -lean_inc(x_70); -lean_dec(x_63); -x_72 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_72, 0, x_70); -lean_ctor_set(x_72, 1, x_71); -return x_72; +lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_79 = lean_ctor_get(x_71, 0); +x_80 = lean_ctor_get(x_71, 1); +lean_inc(x_80); +lean_inc(x_79); +lean_dec(x_71); +x_81 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_81, 0, x_79); +lean_ctor_set(x_81, 1, x_80); +return x_81; } } } case 1: { -lean_object* x_73; lean_object* x_74; lean_object* x_75; -lean_dec(x_57); -x_73 = lean_ctor_get(x_60, 1); -lean_inc(x_73); -lean_dec(x_60); -x_74 = lean_ctor_get(x_61, 0); -lean_inc(x_74); +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_dec(x_61); +x_82 = lean_ctor_get(x_64, 1); +lean_inc(x_82); +lean_dec(x_64); +x_83 = lean_ctor_get(x_65, 0); +lean_inc(x_83); +lean_dec(x_65); +x_84 = l_Lean_mkFreshId___at_Lean_Elab_Tactic_elabSimpArgs___spec__2___rarg(x_15, x_82); +x_85 = lean_ctor_get(x_84, 0); +lean_inc(x_85); +x_86 = lean_ctor_get(x_84, 1); +lean_inc(x_86); +lean_dec(x_84); +lean_inc(x_85); +x_87 = l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(x_29, x_85, x_19); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); -x_75 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addDeclToUnfoldOrTheorem(x_30, x_74, x_58, x_59, x_3, x_12, x_13, x_14, x_15, x_73); -if (lean_obj_tag(x_75) == 0) +x_88 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addDeclToUnfoldOrTheorem(x_33, x_85, x_83, x_62, x_63, x_3, x_12, x_13, x_14, x_15, x_86); +if (lean_obj_tag(x_88) == 0) { -lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_76 = lean_ctor_get(x_75, 0); -lean_inc(x_76); -x_77 = lean_ctor_get(x_75, 1); -lean_inc(x_77); -lean_dec(x_75); +lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_89 = lean_ctor_get(x_88, 0); +lean_inc(x_89); +x_90 = lean_ctor_get(x_88, 1); +lean_inc(x_90); +lean_dec(x_88); +if (lean_is_scalar(x_35)) { + x_91 = lean_alloc_ctor(0, 2, 0); +} else { + x_91 = x_35; +} +lean_ctor_set(x_91, 0, x_89); +lean_ctor_set(x_91, 1, x_34); if (lean_is_scalar(x_32)) { - x_78 = lean_alloc_ctor(0, 2, 0); + x_92 = lean_alloc_ctor(0, 2, 0); } else { - x_78 = x_32; + x_92 = x_32; } -lean_ctor_set(x_78, 0, x_76); -lean_ctor_set(x_78, 1, x_31); -if (lean_is_scalar(x_29)) { - x_79 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_92, 0, x_31); +lean_ctor_set(x_92, 1, x_91); +if (lean_is_scalar(x_30)) { + x_93 = lean_alloc_ctor(0, 2, 0); } else { - x_79 = x_29; + x_93 = x_30; } -lean_ctor_set(x_79, 0, x_28); -lean_ctor_set(x_79, 1, x_78); -x_80 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_80, 0, x_79); -x_20 = x_80; -x_21 = x_77; +lean_ctor_set(x_93, 0, x_87); +lean_ctor_set(x_93, 1, x_92); +x_94 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_94, 0, x_93); +x_20 = x_94; +x_21 = x_90; goto block_26; } else { -uint8_t x_81; +uint8_t x_95; +lean_dec(x_87); +lean_dec(x_35); +lean_dec(x_34); lean_dec(x_32); lean_dec(x_31); -lean_dec(x_29); -lean_dec(x_28); +lean_dec(x_30); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -7631,75 +7285,86 @@ lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -x_81 = !lean_is_exclusive(x_75); -if (x_81 == 0) +x_95 = !lean_is_exclusive(x_88); +if (x_95 == 0) { -return x_75; +return x_88; } else { -lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_82 = lean_ctor_get(x_75, 0); -x_83 = lean_ctor_get(x_75, 1); -lean_inc(x_83); -lean_inc(x_82); -lean_dec(x_75); -x_84 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_84, 0, x_82); -lean_ctor_set(x_84, 1, x_83); -return x_84; +lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_96 = lean_ctor_get(x_88, 0); +x_97 = lean_ctor_get(x_88, 1); +lean_inc(x_97); +lean_inc(x_96); +lean_dec(x_88); +x_98 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_98, 0, x_96); +lean_ctor_set(x_98, 1, x_97); +return x_98; } } } default: { -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; lean_object* x_93; -lean_dec(x_57); -x_85 = lean_ctor_get(x_60, 1); -lean_inc(x_85); -lean_dec(x_60); -x_86 = lean_ctor_get(x_61, 0); -lean_inc(x_86); +lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_dec(x_61); -x_87 = l_Lean_Meta_SimpExtension_getTheorems(x_86, x_14, x_15, x_85); -lean_dec(x_86); -x_88 = lean_ctor_get(x_87, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_87, 1); -lean_inc(x_89); -lean_dec(x_87); -x_90 = lean_array_push(x_31, x_88); +lean_dec(x_19); +x_99 = lean_ctor_get(x_64, 1); +lean_inc(x_99); +lean_dec(x_64); +x_100 = lean_ctor_get(x_65, 0); +lean_inc(x_100); +lean_dec(x_65); +x_101 = l_Lean_Meta_SimpExtension_getTheorems(x_100, x_14, x_15, x_99); +lean_dec(x_100); +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_104 = lean_array_push(x_34, x_102); +if (lean_is_scalar(x_35)) { + x_105 = lean_alloc_ctor(0, 2, 0); +} else { + x_105 = x_35; +} +lean_ctor_set(x_105, 0, x_33); +lean_ctor_set(x_105, 1, x_104); if (lean_is_scalar(x_32)) { - x_91 = lean_alloc_ctor(0, 2, 0); + x_106 = lean_alloc_ctor(0, 2, 0); } else { - x_91 = x_32; + x_106 = x_32; } -lean_ctor_set(x_91, 0, x_30); -lean_ctor_set(x_91, 1, x_90); -if (lean_is_scalar(x_29)) { - x_92 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_106, 0, x_31); +lean_ctor_set(x_106, 1, x_105); +if (lean_is_scalar(x_30)) { + x_107 = lean_alloc_ctor(0, 2, 0); } else { - x_92 = x_29; + x_107 = x_30; } -lean_ctor_set(x_92, 0, x_28); -lean_ctor_set(x_92, 1, x_91); -x_93 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_93, 0, x_92); -x_20 = x_93; -x_21 = x_89; +lean_ctor_set(x_107, 0, x_29); +lean_ctor_set(x_107, 1, x_106); +x_108 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_108, 0, x_107); +x_20 = x_108; +x_21 = x_103; goto block_26; } } } else { -uint8_t x_94; -lean_dec(x_57); +uint8_t x_109; +lean_dec(x_61); +lean_dec(x_35); +lean_dec(x_34); +lean_dec(x_33); lean_dec(x_32); lean_dec(x_31); lean_dec(x_30); lean_dec(x_29); -lean_dec(x_28); +lean_dec(x_19); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -7708,23 +7373,23 @@ lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -x_94 = !lean_is_exclusive(x_60); -if (x_94 == 0) +x_109 = !lean_is_exclusive(x_64); +if (x_109 == 0) { -return x_60; +return x_64; } else { -lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_95 = lean_ctor_get(x_60, 0); -x_96 = lean_ctor_get(x_60, 1); -lean_inc(x_96); -lean_inc(x_95); -lean_dec(x_60); -x_97 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_97, 0, x_95); -lean_ctor_set(x_97, 1, x_96); -return x_97; +lean_object* x_110; lean_object* x_111; lean_object* x_112; +x_110 = lean_ctor_get(x_64, 0); +x_111 = lean_ctor_get(x_64, 1); +lean_inc(x_111); +lean_inc(x_110); +lean_dec(x_64); +x_112 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_112, 0, x_110); +lean_ctor_set(x_112, 1, x_111); +return x_112; } } } @@ -7733,101 +7398,109 @@ return x_97; } else { -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_dec(x_33); -x_107 = lean_unsigned_to_nat(1u); -x_108 = l_Lean_Syntax_getArg(x_19, x_107); +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_dec(x_36); +x_122 = lean_unsigned_to_nat(1u); +x_123 = l_Lean_Syntax_getArg(x_19, x_122); lean_dec(x_19); lean_inc(x_14); lean_inc(x_12); lean_inc(x_10); -lean_inc(x_108); -x_109 = l_Lean_Elab_Term_isLocalIdent_x3f(x_108, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -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); +lean_inc(x_123); +x_124 = l_Lean_Elab_Term_isLocalIdent_x3f(x_123, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +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); if (x_2 == 0) { -uint8_t x_140; -x_140 = lean_unbox(x_28); -if (x_140 == 0) +uint8_t x_157; +x_157 = lean_unbox(x_31); +if (x_157 == 0) { -lean_object* x_141; -lean_dec(x_110); -x_141 = lean_box(0); -x_112 = x_141; -goto block_139; +lean_object* x_158; +lean_dec(x_125); +x_158 = lean_box(0); +x_127 = x_158; +goto block_156; } else { -if (lean_obj_tag(x_110) == 0) +if (lean_obj_tag(x_125) == 0) { -lean_object* x_142; -x_142 = lean_box(0); -x_112 = x_142; -goto block_139; +lean_object* x_159; +x_159 = lean_box(0); +x_127 = x_159; +goto block_156; } else { -lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; -lean_dec(x_110); +lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; +lean_dec(x_125); +lean_dec(x_35); lean_dec(x_32); -lean_dec(x_29); -x_143 = l_Lean_Syntax_getId(x_108); -lean_dec(x_108); -x_144 = l_Lean_Meta_SimpTheorems_eraseCore(x_30, x_143); -x_145 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_145, 0, x_144); -lean_ctor_set(x_145, 1, x_31); -x_146 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_146, 0, x_28); -lean_ctor_set(x_146, 1, x_145); -x_147 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_147, 0, x_146); -x_20 = x_147; -x_21 = x_111; +lean_dec(x_30); +x_160 = l_Lean_Syntax_getId(x_123); +lean_dec(x_123); +x_161 = l_Lean_Meta_SimpTheorems_eraseCore(x_33, x_160); +x_162 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_162, 0, x_161); +lean_ctor_set(x_162, 1, x_34); +x_163 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_163, 0, x_31); +lean_ctor_set(x_163, 1, x_162); +x_164 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_164, 0, x_29); +lean_ctor_set(x_164, 1, x_163); +x_165 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_165, 0, x_164); +x_20 = x_165; +x_21 = x_126; goto block_26; } } } else { -if (lean_obj_tag(x_110) == 0) +if (lean_obj_tag(x_125) == 0) { -lean_object* x_148; -x_148 = lean_box(0); -x_112 = x_148; -goto block_139; +lean_object* x_166; +x_166 = lean_box(0); +x_127 = x_166; +goto block_156; } else { -lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; -lean_dec(x_110); +lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; +lean_dec(x_125); +lean_dec(x_35); lean_dec(x_32); -lean_dec(x_29); -x_149 = l_Lean_Syntax_getId(x_108); -lean_dec(x_108); -x_150 = l_Lean_Meta_SimpTheorems_eraseCore(x_30, x_149); -x_151 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_151, 0, x_150); -lean_ctor_set(x_151, 1, x_31); -x_152 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_152, 0, x_28); -lean_ctor_set(x_152, 1, x_151); -x_153 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_153, 0, x_152); -x_20 = x_153; -x_21 = x_111; +lean_dec(x_30); +x_167 = l_Lean_Syntax_getId(x_123); +lean_dec(x_123); +x_168 = l_Lean_Meta_SimpTheorems_eraseCore(x_33, x_167); +x_169 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_169, 0, x_168); +lean_ctor_set(x_169, 1, x_34); +x_170 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_170, 0, x_31); +lean_ctor_set(x_170, 1, x_169); +x_171 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_171, 0, x_29); +lean_ctor_set(x_171, 1, x_170); +x_172 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_172, 0, x_171); +x_20 = x_172; +x_21 = x_126; goto block_26; } } -block_139: +block_156: { -lean_object* x_113; lean_object* x_114; -lean_dec(x_112); -x_113 = lean_box(0); +lean_object* x_128; lean_object* x_129; +lean_dec(x_127); +x_128 = lean_box(0); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); @@ -7836,20 +7509,20 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_114 = l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__2(x_108, x_113, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_111); -if (lean_obj_tag(x_114) == 0) +x_129 = l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__3(x_123, x_128, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_126); +if (lean_obj_tag(x_129) == 0) { -lean_object* x_115; uint8_t x_116; -x_115 = lean_ctor_get(x_1, 0); -x_116 = lean_ctor_get_uint8(x_115, sizeof(void*)*2 + 11); -if (x_116 == 0) +lean_object* x_130; uint8_t x_131; +x_130 = lean_ctor_get(x_1, 0); +x_131 = lean_ctor_get_uint8(x_130, sizeof(void*)*2 + 11); +if (x_131 == 0) { -lean_object* x_117; lean_object* x_118; lean_object* x_119; -x_117 = lean_ctor_get(x_114, 0); -lean_inc(x_117); -x_118 = lean_ctor_get(x_114, 1); -lean_inc(x_118); -lean_dec(x_114); +lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_132 = lean_ctor_get(x_129, 0); +lean_inc(x_132); +x_133 = lean_ctor_get(x_129, 1); +lean_inc(x_133); +lean_dec(x_129); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); @@ -7858,108 +7531,51 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_119 = l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__18(x_30, x_117, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_118); -if (lean_obj_tag(x_119) == 0) +x_134 = l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__19(x_33, x_132, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_133); +if (lean_obj_tag(x_134) == 0) { -lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; -x_120 = lean_ctor_get(x_119, 0); -lean_inc(x_120); -x_121 = lean_ctor_get(x_119, 1); -lean_inc(x_121); -lean_dec(x_119); +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; +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); +if (lean_is_scalar(x_35)) { + x_137 = lean_alloc_ctor(0, 2, 0); +} else { + x_137 = x_35; +} +lean_ctor_set(x_137, 0, x_135); +lean_ctor_set(x_137, 1, x_34); if (lean_is_scalar(x_32)) { - x_122 = lean_alloc_ctor(0, 2, 0); + x_138 = lean_alloc_ctor(0, 2, 0); } else { - x_122 = x_32; + x_138 = x_32; } -lean_ctor_set(x_122, 0, x_120); -lean_ctor_set(x_122, 1, x_31); -if (lean_is_scalar(x_29)) { - x_123 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_138, 0, x_31); +lean_ctor_set(x_138, 1, x_137); +if (lean_is_scalar(x_30)) { + x_139 = lean_alloc_ctor(0, 2, 0); } else { - x_123 = x_29; + x_139 = x_30; } -lean_ctor_set(x_123, 0, x_28); -lean_ctor_set(x_123, 1, x_122); -x_124 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_124, 0, x_123); -x_20 = x_124; -x_21 = x_121; +lean_ctor_set(x_139, 0, x_29); +lean_ctor_set(x_139, 1, x_138); +x_140 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_140, 0, x_139); +x_20 = x_140; +x_21 = x_136; goto block_26; } else { -uint8_t x_125; -lean_dec(x_32); -lean_dec(x_31); -lean_dec(x_29); -lean_dec(x_28); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_125 = !lean_is_exclusive(x_119); -if (x_125 == 0) -{ -return x_119; -} -else -{ -lean_object* x_126; lean_object* x_127; lean_object* x_128; -x_126 = lean_ctor_get(x_119, 0); -x_127 = lean_ctor_get(x_119, 1); -lean_inc(x_127); -lean_inc(x_126); -lean_dec(x_119); -x_128 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_128, 0, x_126); -lean_ctor_set(x_128, 1, x_127); -return x_128; -} -} -} -else -{ -lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; -x_129 = lean_ctor_get(x_114, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_114, 1); -lean_inc(x_130); -lean_dec(x_114); -x_131 = l_Lean_Meta_SimpTheorems_eraseCore(x_30, x_129); -if (lean_is_scalar(x_32)) { - x_132 = lean_alloc_ctor(0, 2, 0); -} else { - x_132 = x_32; -} -lean_ctor_set(x_132, 0, x_131); -lean_ctor_set(x_132, 1, x_31); -if (lean_is_scalar(x_29)) { - x_133 = lean_alloc_ctor(0, 2, 0); -} else { - x_133 = x_29; -} -lean_ctor_set(x_133, 0, x_28); -lean_ctor_set(x_133, 1, x_132); -x_134 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_134, 0, x_133); -x_20 = x_134; -x_21 = x_130; -goto block_26; -} -} -else -{ -uint8_t x_135; +uint8_t x_141; +lean_dec(x_35); +lean_dec(x_34); lean_dec(x_32); lean_dec(x_31); lean_dec(x_30); lean_dec(x_29); -lean_dec(x_28); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -7968,23 +7584,892 @@ lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -x_135 = !lean_is_exclusive(x_114); -if (x_135 == 0) +x_141 = !lean_is_exclusive(x_134); +if (x_141 == 0) { -return x_114; +return x_134; } else { -lean_object* x_136; lean_object* x_137; lean_object* x_138; -x_136 = lean_ctor_get(x_114, 0); -x_137 = lean_ctor_get(x_114, 1); -lean_inc(x_137); +lean_object* x_142; lean_object* x_143; lean_object* x_144; +x_142 = lean_ctor_get(x_134, 0); +x_143 = lean_ctor_get(x_134, 1); +lean_inc(x_143); +lean_inc(x_142); +lean_dec(x_134); +x_144 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_144, 0, x_142); +lean_ctor_set(x_144, 1, x_143); +return x_144; +} +} +} +else +{ +lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; +x_145 = lean_ctor_get(x_129, 0); +lean_inc(x_145); +x_146 = lean_ctor_get(x_129, 1); +lean_inc(x_146); +lean_dec(x_129); +x_147 = l_Lean_Meta_SimpTheorems_eraseCore(x_33, x_145); +if (lean_is_scalar(x_35)) { + x_148 = lean_alloc_ctor(0, 2, 0); +} else { + x_148 = x_35; +} +lean_ctor_set(x_148, 0, x_147); +lean_ctor_set(x_148, 1, x_34); +if (lean_is_scalar(x_32)) { + x_149 = lean_alloc_ctor(0, 2, 0); +} else { + x_149 = x_32; +} +lean_ctor_set(x_149, 0, x_31); +lean_ctor_set(x_149, 1, x_148); +if (lean_is_scalar(x_30)) { + x_150 = lean_alloc_ctor(0, 2, 0); +} else { + x_150 = x_30; +} +lean_ctor_set(x_150, 0, x_29); +lean_ctor_set(x_150, 1, x_149); +x_151 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_151, 0, x_150); +x_20 = x_151; +x_21 = x_146; +goto block_26; +} +} +else +{ +uint8_t x_152; +lean_dec(x_35); +lean_dec(x_34); +lean_dec(x_33); +lean_dec(x_32); +lean_dec(x_31); +lean_dec(x_30); +lean_dec(x_29); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_152 = !lean_is_exclusive(x_129); +if (x_152 == 0) +{ +return x_129; +} +else +{ +lean_object* x_153; lean_object* x_154; lean_object* x_155; +x_153 = lean_ctor_get(x_129, 0); +x_154 = lean_ctor_get(x_129, 1); +lean_inc(x_154); +lean_inc(x_153); +lean_dec(x_129); +x_155 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_155, 0, x_153); +lean_ctor_set(x_155, 1, x_154); +return x_155; +} +} +} +} +block_26: +{ +lean_object* x_22; size_t x_23; size_t x_24; +x_22 = lean_ctor_get(x_20, 0); +lean_inc(x_22); +lean_dec(x_20); +x_23 = 1; +x_24 = lean_usize_add(x_6, x_23); +x_6 = x_24; +x_7 = x_22; +x_16 = x_21; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__22(lean_object* x_1, uint8_t x_2, uint8_t x_3, lean_object* x_4, size_t x_5, size_t 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) { +_start: +{ +uint8_t x_17; +x_17 = lean_usize_dec_lt(x_6, x_5); +if (x_17 == 0) +{ +lean_object* x_18; +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_7); +lean_ctor_set(x_18, 1, x_16); +return x_18; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; 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; uint8_t x_38; +x_19 = lean_array_uget(x_4, x_6); +x_27 = lean_ctor_get(x_7, 1); +lean_inc(x_27); +x_28 = lean_ctor_get(x_27, 1); +lean_inc(x_28); +x_29 = lean_ctor_get(x_7, 0); +lean_inc(x_29); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + x_30 = x_7; +} else { + lean_dec_ref(x_7); + x_30 = lean_box(0); +} +x_31 = lean_ctor_get(x_27, 0); +lean_inc(x_31); +if (lean_is_exclusive(x_27)) { + lean_ctor_release(x_27, 0); + lean_ctor_release(x_27, 1); + x_32 = x_27; +} else { + lean_dec_ref(x_27); + x_32 = lean_box(0); +} +x_33 = lean_ctor_get(x_28, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_28, 1); +lean_inc(x_34); +if (lean_is_exclusive(x_28)) { + lean_ctor_release(x_28, 0); + lean_ctor_release(x_28, 1); + x_35 = x_28; +} else { + lean_dec_ref(x_28); + x_35 = lean_box(0); +} +lean_inc(x_19); +x_36 = l_Lean_Syntax_getKind(x_19); +x_37 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__2; +x_38 = lean_name_eq(x_36, x_37); +if (x_38 == 0) +{ +lean_object* x_39; uint8_t x_40; +x_39 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__4; +x_40 = lean_name_eq(x_36, x_39); +if (x_40 == 0) +{ +lean_object* x_41; uint8_t x_42; +lean_dec(x_31); +lean_dec(x_19); +x_41 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__6; +x_42 = lean_name_eq(x_36, x_41); +lean_dec(x_36); +if (x_42 == 0) +{ +lean_object* x_43; uint8_t x_44; +lean_dec(x_35); +lean_dec(x_34); +lean_dec(x_33); +lean_dec(x_32); +lean_dec(x_30); +lean_dec(x_29); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_43 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_elabSimpArgs___spec__1___rarg(x_16); +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 0) +{ +return x_43; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_43, 0); +x_46 = lean_ctor_get(x_43, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_43); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +else +{ +lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +if (lean_is_scalar(x_35)) { + x_48 = lean_alloc_ctor(0, 2, 0); +} else { + x_48 = x_35; +} +lean_ctor_set(x_48, 0, x_33); +lean_ctor_set(x_48, 1, x_34); +x_49 = 1; +x_50 = lean_box(x_49); +if (lean_is_scalar(x_32)) { + x_51 = lean_alloc_ctor(0, 2, 0); +} else { + x_51 = x_32; +} +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_48); +if (lean_is_scalar(x_30)) { + x_52 = lean_alloc_ctor(0, 2, 0); +} else { + x_52 = x_30; +} +lean_ctor_set(x_52, 0, x_29); +lean_ctor_set(x_52, 1, x_51); +x_53 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_53, 0, x_52); +x_20 = x_53; +x_21 = x_16; +goto block_26; +} +} +else +{ +lean_object* x_54; lean_object* x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; +lean_dec(x_36); +x_54 = lean_unsigned_to_nat(0u); +x_55 = l_Lean_Syntax_getArg(x_19, x_54); +x_56 = l_Lean_Syntax_isNone(x_55); +x_57 = lean_unsigned_to_nat(1u); +x_58 = l_Lean_Syntax_getArg(x_19, x_57); +x_59 = l_Lean_Syntax_isNone(x_58); +lean_dec(x_58); +x_60 = lean_unsigned_to_nat(2u); +x_61 = l_Lean_Syntax_getArg(x_19, x_60); +if (x_56 == 0) +{ +lean_object* x_117; lean_object* x_118; lean_object* x_119; uint8_t x_120; +x_117 = l_Lean_Syntax_getArg(x_55, x_54); +lean_dec(x_55); +x_118 = l_Lean_Syntax_getKind(x_117); +x_119 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__8; +x_120 = lean_name_eq(x_118, x_119); +lean_dec(x_118); +x_62 = x_120; +goto block_116; +} +else +{ +uint8_t x_121; +lean_dec(x_55); +x_121 = 1; +x_62 = x_121; +goto block_116; +} +block_116: +{ +uint8_t x_63; +if (x_59 == 0) +{ +uint8_t x_114; +x_114 = 1; +x_63 = x_114; +goto block_113; +} +else +{ +uint8_t x_115; +x_115 = 0; +x_63 = x_115; +goto block_113; +} +block_113: +{ +lean_object* x_64; +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_61); +x_64 = l_Lean_Elab_Tactic_elabSimpArgs_resolveSimpIdTheorem_x3f(x_61, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_64) == 0) +{ +lean_object* x_65; +x_65 = lean_ctor_get(x_64, 0); +lean_inc(x_65); +switch (lean_obj_tag(x_65)) { +case 0: +{ +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_66 = lean_ctor_get(x_64, 1); +lean_inc(x_66); +lean_dec(x_64); +x_67 = l_Lean_mkFreshId___at_Lean_Elab_Tactic_elabSimpArgs___spec__2___rarg(x_15, x_66); +x_68 = lean_ctor_get(x_67, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_67, 1); +lean_inc(x_69); +lean_dec(x_67); +lean_inc(x_68); +x_70 = l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(x_29, x_68, x_19); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +x_71 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpTheorem(x_33, x_68, x_61, x_62, x_63, x_10, x_11, x_12, x_13, x_14, x_15, x_69); +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; +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_71, 1); +lean_inc(x_73); +lean_dec(x_71); +if (lean_is_scalar(x_35)) { + x_74 = lean_alloc_ctor(0, 2, 0); +} else { + x_74 = x_35; +} +lean_ctor_set(x_74, 0, x_72); +lean_ctor_set(x_74, 1, x_34); +if (lean_is_scalar(x_32)) { + x_75 = lean_alloc_ctor(0, 2, 0); +} else { + x_75 = x_32; +} +lean_ctor_set(x_75, 0, x_31); +lean_ctor_set(x_75, 1, x_74); +if (lean_is_scalar(x_30)) { + x_76 = lean_alloc_ctor(0, 2, 0); +} else { + x_76 = x_30; +} +lean_ctor_set(x_76, 0, x_70); +lean_ctor_set(x_76, 1, x_75); +x_77 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_77, 0, x_76); +x_20 = x_77; +x_21 = x_73; +goto block_26; +} +else +{ +uint8_t x_78; +lean_dec(x_70); +lean_dec(x_35); +lean_dec(x_34); +lean_dec(x_32); +lean_dec(x_31); +lean_dec(x_30); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_78 = !lean_is_exclusive(x_71); +if (x_78 == 0) +{ +return x_71; +} +else +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_79 = lean_ctor_get(x_71, 0); +x_80 = lean_ctor_get(x_71, 1); +lean_inc(x_80); +lean_inc(x_79); +lean_dec(x_71); +x_81 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_81, 0, x_79); +lean_ctor_set(x_81, 1, x_80); +return x_81; +} +} +} +case 1: +{ +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_dec(x_61); +x_82 = lean_ctor_get(x_64, 1); +lean_inc(x_82); +lean_dec(x_64); +x_83 = lean_ctor_get(x_65, 0); +lean_inc(x_83); +lean_dec(x_65); +x_84 = l_Lean_mkFreshId___at_Lean_Elab_Tactic_elabSimpArgs___spec__2___rarg(x_15, x_82); +x_85 = lean_ctor_get(x_84, 0); +lean_inc(x_85); +x_86 = lean_ctor_get(x_84, 1); +lean_inc(x_86); +lean_dec(x_84); +lean_inc(x_85); +x_87 = l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(x_29, x_85, x_19); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +x_88 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addDeclToUnfoldOrTheorem(x_33, x_85, x_83, x_62, x_63, x_3, x_12, x_13, x_14, x_15, x_86); +if (lean_obj_tag(x_88) == 0) +{ +lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_89 = lean_ctor_get(x_88, 0); +lean_inc(x_89); +x_90 = lean_ctor_get(x_88, 1); +lean_inc(x_90); +lean_dec(x_88); +if (lean_is_scalar(x_35)) { + x_91 = lean_alloc_ctor(0, 2, 0); +} else { + x_91 = x_35; +} +lean_ctor_set(x_91, 0, x_89); +lean_ctor_set(x_91, 1, x_34); +if (lean_is_scalar(x_32)) { + x_92 = lean_alloc_ctor(0, 2, 0); +} else { + x_92 = x_32; +} +lean_ctor_set(x_92, 0, x_31); +lean_ctor_set(x_92, 1, x_91); +if (lean_is_scalar(x_30)) { + x_93 = lean_alloc_ctor(0, 2, 0); +} else { + x_93 = x_30; +} +lean_ctor_set(x_93, 0, x_87); +lean_ctor_set(x_93, 1, x_92); +x_94 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_94, 0, x_93); +x_20 = x_94; +x_21 = x_90; +goto block_26; +} +else +{ +uint8_t x_95; +lean_dec(x_87); +lean_dec(x_35); +lean_dec(x_34); +lean_dec(x_32); +lean_dec(x_31); +lean_dec(x_30); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_95 = !lean_is_exclusive(x_88); +if (x_95 == 0) +{ +return x_88; +} +else +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_96 = lean_ctor_get(x_88, 0); +x_97 = lean_ctor_get(x_88, 1); +lean_inc(x_97); +lean_inc(x_96); +lean_dec(x_88); +x_98 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_98, 0, x_96); +lean_ctor_set(x_98, 1, x_97); +return x_98; +} +} +} +default: +{ +lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +lean_dec(x_61); +lean_dec(x_19); +x_99 = lean_ctor_get(x_64, 1); +lean_inc(x_99); +lean_dec(x_64); +x_100 = lean_ctor_get(x_65, 0); +lean_inc(x_100); +lean_dec(x_65); +x_101 = l_Lean_Meta_SimpExtension_getTheorems(x_100, x_14, x_15, x_99); +lean_dec(x_100); +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_104 = lean_array_push(x_34, x_102); +if (lean_is_scalar(x_35)) { + x_105 = lean_alloc_ctor(0, 2, 0); +} else { + x_105 = x_35; +} +lean_ctor_set(x_105, 0, x_33); +lean_ctor_set(x_105, 1, x_104); +if (lean_is_scalar(x_32)) { + x_106 = lean_alloc_ctor(0, 2, 0); +} else { + x_106 = x_32; +} +lean_ctor_set(x_106, 0, x_31); +lean_ctor_set(x_106, 1, x_105); +if (lean_is_scalar(x_30)) { + x_107 = lean_alloc_ctor(0, 2, 0); +} else { + x_107 = x_30; +} +lean_ctor_set(x_107, 0, x_29); +lean_ctor_set(x_107, 1, x_106); +x_108 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_108, 0, x_107); +x_20 = x_108; +x_21 = x_103; +goto block_26; +} +} +} +else +{ +uint8_t x_109; +lean_dec(x_61); +lean_dec(x_35); +lean_dec(x_34); +lean_dec(x_33); +lean_dec(x_32); +lean_dec(x_31); +lean_dec(x_30); +lean_dec(x_29); +lean_dec(x_19); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_109 = !lean_is_exclusive(x_64); +if (x_109 == 0) +{ +return x_64; +} +else +{ +lean_object* x_110; lean_object* x_111; lean_object* x_112; +x_110 = lean_ctor_get(x_64, 0); +x_111 = lean_ctor_get(x_64, 1); +lean_inc(x_111); +lean_inc(x_110); +lean_dec(x_64); +x_112 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_112, 0, x_110); +lean_ctor_set(x_112, 1, x_111); +return x_112; +} +} +} +} +} +} +else +{ +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_dec(x_36); +x_122 = lean_unsigned_to_nat(1u); +x_123 = l_Lean_Syntax_getArg(x_19, x_122); +lean_dec(x_19); +lean_inc(x_14); +lean_inc(x_12); +lean_inc(x_10); +lean_inc(x_123); +x_124 = l_Lean_Elab_Term_isLocalIdent_x3f(x_123, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +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); +if (x_2 == 0) +{ +uint8_t x_157; +x_157 = lean_unbox(x_31); +if (x_157 == 0) +{ +lean_object* x_158; +lean_dec(x_125); +x_158 = lean_box(0); +x_127 = x_158; +goto block_156; +} +else +{ +if (lean_obj_tag(x_125) == 0) +{ +lean_object* x_159; +x_159 = lean_box(0); +x_127 = x_159; +goto block_156; +} +else +{ +lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; +lean_dec(x_125); +lean_dec(x_35); +lean_dec(x_32); +lean_dec(x_30); +x_160 = l_Lean_Syntax_getId(x_123); +lean_dec(x_123); +x_161 = l_Lean_Meta_SimpTheorems_eraseCore(x_33, x_160); +x_162 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_162, 0, x_161); +lean_ctor_set(x_162, 1, x_34); +x_163 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_163, 0, x_31); +lean_ctor_set(x_163, 1, x_162); +x_164 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_164, 0, x_29); +lean_ctor_set(x_164, 1, x_163); +x_165 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_165, 0, x_164); +x_20 = x_165; +x_21 = x_126; +goto block_26; +} +} +} +else +{ +if (lean_obj_tag(x_125) == 0) +{ +lean_object* x_166; +x_166 = lean_box(0); +x_127 = x_166; +goto block_156; +} +else +{ +lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; +lean_dec(x_125); +lean_dec(x_35); +lean_dec(x_32); +lean_dec(x_30); +x_167 = l_Lean_Syntax_getId(x_123); +lean_dec(x_123); +x_168 = l_Lean_Meta_SimpTheorems_eraseCore(x_33, x_167); +x_169 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_169, 0, x_168); +lean_ctor_set(x_169, 1, x_34); +x_170 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_170, 0, x_31); +lean_ctor_set(x_170, 1, x_169); +x_171 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_171, 0, x_29); +lean_ctor_set(x_171, 1, x_170); +x_172 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_172, 0, x_171); +x_20 = x_172; +x_21 = x_126; +goto block_26; +} +} +block_156: +{ +lean_object* x_128; lean_object* x_129; +lean_dec(x_127); +x_128 = lean_box(0); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_129 = l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__3(x_123, x_128, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_126); +if (lean_obj_tag(x_129) == 0) +{ +lean_object* x_130; uint8_t x_131; +x_130 = lean_ctor_get(x_1, 0); +x_131 = lean_ctor_get_uint8(x_130, sizeof(void*)*2 + 11); +if (x_131 == 0) +{ +lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_132 = lean_ctor_get(x_129, 0); +lean_inc(x_132); +x_133 = lean_ctor_get(x_129, 1); +lean_inc(x_133); +lean_dec(x_129); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_134 = l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__19(x_33, x_132, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_133); +if (lean_obj_tag(x_134) == 0) +{ +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; +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_114); -x_138 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_138, 0, x_136); +lean_dec(x_134); +if (lean_is_scalar(x_35)) { + x_137 = lean_alloc_ctor(0, 2, 0); +} else { + x_137 = x_35; +} +lean_ctor_set(x_137, 0, x_135); +lean_ctor_set(x_137, 1, x_34); +if (lean_is_scalar(x_32)) { + x_138 = lean_alloc_ctor(0, 2, 0); +} else { + x_138 = x_32; +} +lean_ctor_set(x_138, 0, x_31); lean_ctor_set(x_138, 1, x_137); -return x_138; +if (lean_is_scalar(x_30)) { + x_139 = lean_alloc_ctor(0, 2, 0); +} else { + x_139 = x_30; +} +lean_ctor_set(x_139, 0, x_29); +lean_ctor_set(x_139, 1, x_138); +x_140 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_140, 0, x_139); +x_20 = x_140; +x_21 = x_136; +goto block_26; +} +else +{ +uint8_t x_141; +lean_dec(x_35); +lean_dec(x_34); +lean_dec(x_32); +lean_dec(x_31); +lean_dec(x_30); +lean_dec(x_29); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_141 = !lean_is_exclusive(x_134); +if (x_141 == 0) +{ +return x_134; +} +else +{ +lean_object* x_142; lean_object* x_143; lean_object* x_144; +x_142 = lean_ctor_get(x_134, 0); +x_143 = lean_ctor_get(x_134, 1); +lean_inc(x_143); +lean_inc(x_142); +lean_dec(x_134); +x_144 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_144, 0, x_142); +lean_ctor_set(x_144, 1, x_143); +return x_144; +} +} +} +else +{ +lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; +x_145 = lean_ctor_get(x_129, 0); +lean_inc(x_145); +x_146 = lean_ctor_get(x_129, 1); +lean_inc(x_146); +lean_dec(x_129); +x_147 = l_Lean_Meta_SimpTheorems_eraseCore(x_33, x_145); +if (lean_is_scalar(x_35)) { + x_148 = lean_alloc_ctor(0, 2, 0); +} else { + x_148 = x_35; +} +lean_ctor_set(x_148, 0, x_147); +lean_ctor_set(x_148, 1, x_34); +if (lean_is_scalar(x_32)) { + x_149 = lean_alloc_ctor(0, 2, 0); +} else { + x_149 = x_32; +} +lean_ctor_set(x_149, 0, x_31); +lean_ctor_set(x_149, 1, x_148); +if (lean_is_scalar(x_30)) { + x_150 = lean_alloc_ctor(0, 2, 0); +} else { + x_150 = x_30; +} +lean_ctor_set(x_150, 0, x_29); +lean_ctor_set(x_150, 1, x_149); +x_151 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_151, 0, x_150); +x_20 = x_151; +x_21 = x_146; +goto block_26; +} +} +else +{ +uint8_t x_152; +lean_dec(x_35); +lean_dec(x_34); +lean_dec(x_33); +lean_dec(x_32); +lean_dec(x_31); +lean_dec(x_30); +lean_dec(x_29); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_152 = !lean_is_exclusive(x_129); +if (x_152 == 0) +{ +return x_129; +} +else +{ +lean_object* x_153; lean_object* x_154; lean_object* x_155; +x_153 = lean_ctor_get(x_129, 0); +x_154 = lean_ctor_get(x_129, 1); +lean_inc(x_154); +lean_inc(x_153); +lean_dec(x_129); +x_155 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_155, 0, x_153); +lean_ctor_set(x_155, 1, x_154); +return x_155; } } } @@ -8009,101 +8494,111 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabSimpArgs___lambda__1(lean_object _start: { lean_object* x_21; -x_21 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20); +x_21 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20); if (lean_obj_tag(x_21) == 0) { -lean_object* x_22; lean_object* x_23; uint8_t x_24; +lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; x_22 = lean_ctor_get(x_21, 0); lean_inc(x_22); x_23 = lean_ctor_get(x_22, 1); lean_inc(x_23); -x_24 = !lean_is_exclusive(x_21); -if (x_24 == 0) +x_24 = lean_ctor_get(x_23, 1); +lean_inc(x_24); +x_25 = !lean_is_exclusive(x_21); +if (x_25 == 0) { -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; uint8_t x_33; -x_25 = lean_ctor_get(x_21, 0); -lean_dec(x_25); -x_26 = lean_ctor_get(x_22, 0); -lean_inc(x_26); -lean_dec(x_22); -x_27 = lean_ctor_get(x_23, 0); +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; uint8_t x_35; +x_26 = lean_ctor_get(x_21, 0); +lean_dec(x_26); +x_27 = lean_ctor_get(x_22, 0); lean_inc(x_27); -x_28 = lean_ctor_get(x_23, 1); +lean_dec(x_22); +x_28 = lean_ctor_get(x_23, 0); lean_inc(x_28); lean_dec(x_23); -x_29 = lean_unsigned_to_nat(0u); -x_30 = lean_array_set(x_28, x_29, x_27); -x_31 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_31, 0, x_8); -lean_ctor_set(x_31, 1, x_30); -lean_ctor_set(x_31, 2, x_9); -lean_ctor_set(x_31, 3, x_10); -lean_ctor_set(x_31, 4, x_11); -x_32 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_32, 0, x_31); -x_33 = lean_unbox(x_26); -lean_dec(x_26); -lean_ctor_set_uint8(x_32, sizeof(void*)*1, x_33); -lean_ctor_set(x_21, 0, x_32); +x_29 = lean_ctor_get(x_24, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_24, 1); +lean_inc(x_30); +lean_dec(x_24); +x_31 = lean_unsigned_to_nat(0u); +x_32 = lean_array_set(x_30, x_31, x_29); +x_33 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_33, 0, x_8); +lean_ctor_set(x_33, 1, x_32); +lean_ctor_set(x_33, 2, x_9); +lean_ctor_set(x_33, 3, x_27); +lean_ctor_set(x_33, 4, x_10); +lean_ctor_set(x_33, 5, x_11); +x_34 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_34, 0, x_33); +x_35 = lean_unbox(x_28); +lean_dec(x_28); +lean_ctor_set_uint8(x_34, sizeof(void*)*1, x_35); +lean_ctor_set(x_21, 0, x_34); return x_21; } else { -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; uint8_t x_42; lean_object* x_43; -x_34 = lean_ctor_get(x_21, 1); -lean_inc(x_34); -lean_dec(x_21); -x_35 = lean_ctor_get(x_22, 0); -lean_inc(x_35); -lean_dec(x_22); -x_36 = lean_ctor_get(x_23, 0); +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; uint8_t x_45; lean_object* x_46; +x_36 = lean_ctor_get(x_21, 1); lean_inc(x_36); -x_37 = lean_ctor_get(x_23, 1); +lean_dec(x_21); +x_37 = lean_ctor_get(x_22, 0); lean_inc(x_37); +lean_dec(x_22); +x_38 = lean_ctor_get(x_23, 0); +lean_inc(x_38); lean_dec(x_23); -x_38 = lean_unsigned_to_nat(0u); -x_39 = lean_array_set(x_37, x_38, x_36); -x_40 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_40, 0, x_8); -lean_ctor_set(x_40, 1, x_39); -lean_ctor_set(x_40, 2, x_9); -lean_ctor_set(x_40, 3, x_10); -lean_ctor_set(x_40, 4, x_11); -x_41 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_41, 0, x_40); -x_42 = lean_unbox(x_35); -lean_dec(x_35); -lean_ctor_set_uint8(x_41, sizeof(void*)*1, x_42); -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_41); -lean_ctor_set(x_43, 1, x_34); -return x_43; +x_39 = lean_ctor_get(x_24, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_24, 1); +lean_inc(x_40); +lean_dec(x_24); +x_41 = lean_unsigned_to_nat(0u); +x_42 = lean_array_set(x_40, x_41, x_39); +x_43 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_43, 0, x_8); +lean_ctor_set(x_43, 1, x_42); +lean_ctor_set(x_43, 2, x_9); +lean_ctor_set(x_43, 3, x_37); +lean_ctor_set(x_43, 4, x_10); +lean_ctor_set(x_43, 5, x_11); +x_44 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_44, 0, x_43); +x_45 = lean_unbox(x_38); +lean_dec(x_38); +lean_ctor_set_uint8(x_44, sizeof(void*)*1, x_45); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_44); +lean_ctor_set(x_46, 1, x_36); +return x_46; } } else { -uint8_t x_44; +uint8_t x_47; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -x_44 = !lean_is_exclusive(x_21); -if (x_44 == 0) +x_47 = !lean_is_exclusive(x_21); +if (x_47 == 0) { return x_21; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_21, 0); -x_46 = lean_ctor_get(x_21, 1); -lean_inc(x_46); -lean_inc(x_45); +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_21, 0); +x_49 = lean_ctor_get(x_21, 1); +lean_inc(x_49); +lean_inc(x_48); lean_dec(x_21); -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -return x_47; +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +return x_50; } } } @@ -8112,101 +8607,111 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabSimpArgs___lambda__2(lean_object _start: { lean_object* x_21; -x_21 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20); +x_21 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__22(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20); if (lean_obj_tag(x_21) == 0) { -lean_object* x_22; lean_object* x_23; uint8_t x_24; +lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; x_22 = lean_ctor_get(x_21, 0); lean_inc(x_22); x_23 = lean_ctor_get(x_22, 1); lean_inc(x_23); -x_24 = !lean_is_exclusive(x_21); -if (x_24 == 0) +x_24 = lean_ctor_get(x_23, 1); +lean_inc(x_24); +x_25 = !lean_is_exclusive(x_21); +if (x_25 == 0) { -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; uint8_t x_33; -x_25 = lean_ctor_get(x_21, 0); -lean_dec(x_25); -x_26 = lean_ctor_get(x_22, 0); -lean_inc(x_26); -lean_dec(x_22); -x_27 = lean_ctor_get(x_23, 0); +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; uint8_t x_35; +x_26 = lean_ctor_get(x_21, 0); +lean_dec(x_26); +x_27 = lean_ctor_get(x_22, 0); lean_inc(x_27); -x_28 = lean_ctor_get(x_23, 1); +lean_dec(x_22); +x_28 = lean_ctor_get(x_23, 0); lean_inc(x_28); lean_dec(x_23); -x_29 = lean_unsigned_to_nat(0u); -x_30 = lean_array_set(x_28, x_29, x_27); -x_31 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_31, 0, x_8); -lean_ctor_set(x_31, 1, x_30); -lean_ctor_set(x_31, 2, x_9); -lean_ctor_set(x_31, 3, x_10); -lean_ctor_set(x_31, 4, x_11); -x_32 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_32, 0, x_31); -x_33 = lean_unbox(x_26); -lean_dec(x_26); -lean_ctor_set_uint8(x_32, sizeof(void*)*1, x_33); -lean_ctor_set(x_21, 0, x_32); +x_29 = lean_ctor_get(x_24, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_24, 1); +lean_inc(x_30); +lean_dec(x_24); +x_31 = lean_unsigned_to_nat(0u); +x_32 = lean_array_set(x_30, x_31, x_29); +x_33 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_33, 0, x_8); +lean_ctor_set(x_33, 1, x_32); +lean_ctor_set(x_33, 2, x_9); +lean_ctor_set(x_33, 3, x_27); +lean_ctor_set(x_33, 4, x_10); +lean_ctor_set(x_33, 5, x_11); +x_34 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_34, 0, x_33); +x_35 = lean_unbox(x_28); +lean_dec(x_28); +lean_ctor_set_uint8(x_34, sizeof(void*)*1, x_35); +lean_ctor_set(x_21, 0, x_34); return x_21; } else { -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; uint8_t x_42; lean_object* x_43; -x_34 = lean_ctor_get(x_21, 1); -lean_inc(x_34); -lean_dec(x_21); -x_35 = lean_ctor_get(x_22, 0); -lean_inc(x_35); -lean_dec(x_22); -x_36 = lean_ctor_get(x_23, 0); +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; uint8_t x_45; lean_object* x_46; +x_36 = lean_ctor_get(x_21, 1); lean_inc(x_36); -x_37 = lean_ctor_get(x_23, 1); +lean_dec(x_21); +x_37 = lean_ctor_get(x_22, 0); lean_inc(x_37); +lean_dec(x_22); +x_38 = lean_ctor_get(x_23, 0); +lean_inc(x_38); lean_dec(x_23); -x_38 = lean_unsigned_to_nat(0u); -x_39 = lean_array_set(x_37, x_38, x_36); -x_40 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_40, 0, x_8); -lean_ctor_set(x_40, 1, x_39); -lean_ctor_set(x_40, 2, x_9); -lean_ctor_set(x_40, 3, x_10); -lean_ctor_set(x_40, 4, x_11); -x_41 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_41, 0, x_40); -x_42 = lean_unbox(x_35); -lean_dec(x_35); -lean_ctor_set_uint8(x_41, sizeof(void*)*1, x_42); -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_41); -lean_ctor_set(x_43, 1, x_34); -return x_43; +x_39 = lean_ctor_get(x_24, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_24, 1); +lean_inc(x_40); +lean_dec(x_24); +x_41 = lean_unsigned_to_nat(0u); +x_42 = lean_array_set(x_40, x_41, x_39); +x_43 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_43, 0, x_8); +lean_ctor_set(x_43, 1, x_42); +lean_ctor_set(x_43, 2, x_9); +lean_ctor_set(x_43, 3, x_37); +lean_ctor_set(x_43, 4, x_10); +lean_ctor_set(x_43, 5, x_11); +x_44 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_44, 0, x_43); +x_45 = lean_unbox(x_38); +lean_dec(x_38); +lean_ctor_set_uint8(x_44, sizeof(void*)*1, x_45); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_44); +lean_ctor_set(x_46, 1, x_36); +return x_46; } } else { -uint8_t x_44; +uint8_t x_47; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -x_44 = !lean_is_exclusive(x_21); -if (x_44 == 0) +x_47 = !lean_is_exclusive(x_21); +if (x_47 == 0) { return x_21; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_21, 0); -x_46 = lean_ctor_get(x_21, 1); -lean_inc(x_46); -lean_inc(x_45); +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_21, 0); +x_49 = lean_ctor_get(x_21, 1); +lean_inc(x_49); +lean_inc(x_48); lean_dec(x_21); -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -return x_47; +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +return x_50; } } } @@ -8264,7 +8769,7 @@ uint8_t x_14; x_14 = l_Lean_Syntax_isNone(x_1); if (x_14 == 0) { -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; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; size_t x_27; +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; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; size_t x_28; x_15 = lean_ctor_get(x_2, 0); lean_inc(x_15); x_16 = lean_ctor_get(x_2, 1); @@ -8275,84 +8780,92 @@ x_18 = lean_ctor_get(x_2, 3); lean_inc(x_18); x_19 = lean_ctor_get(x_2, 4); lean_inc(x_19); -x_20 = lean_array_get_size(x_16); -x_21 = lean_unsigned_to_nat(0u); -x_22 = lean_nat_dec_lt(x_21, x_20); -lean_dec(x_20); -x_23 = lean_unsigned_to_nat(1u); -x_24 = l_Lean_Syntax_getArg(x_1, x_23); -x_25 = l_Lean_Syntax_getSepArgs(x_24); -lean_dec(x_24); -x_26 = lean_array_get_size(x_25); -x_27 = lean_usize_of_nat(x_26); -lean_dec(x_26); -if (x_22 == 0) +x_20 = lean_ctor_get(x_2, 5); +lean_inc(x_20); +x_21 = lean_array_get_size(x_16); +x_22 = lean_unsigned_to_nat(0u); +x_23 = lean_nat_dec_lt(x_22, x_21); +lean_dec(x_21); +x_24 = lean_unsigned_to_nat(1u); +x_25 = l_Lean_Syntax_getArg(x_1, x_24); +x_26 = l_Lean_Syntax_getSepArgs(x_25); +lean_dec(x_25); +x_27 = lean_array_get_size(x_26); +x_28 = lean_usize_of_nat(x_27); +lean_dec(x_27); +if (x_23 == 0) { -lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t 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_28 = l_Lean_Elab_Tactic_elabSimpArgs___closed__4; -x_29 = l_panic___at_Lean_Elab_Tactic_elabSimpArgs___spec__19(x_28); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_16); -x_31 = 0; -x_32 = lean_box(x_31); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_30); -x_34 = lean_box(x_3); -x_35 = lean_box(x_4); -x_36 = lean_box_usize(x_27); -x_37 = l_Lean_Elab_Tactic_elabSimpArgs___boxed__const__1; -x_38 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_elabSimpArgs___lambda__1___boxed), 20, 11); -lean_closure_set(x_38, 0, x_2); -lean_closure_set(x_38, 1, x_34); -lean_closure_set(x_38, 2, x_35); -lean_closure_set(x_38, 3, x_25); -lean_closure_set(x_38, 4, x_36); -lean_closure_set(x_38, 5, x_37); -lean_closure_set(x_38, 6, x_33); -lean_closure_set(x_38, 7, x_15); -lean_closure_set(x_38, 8, x_17); -lean_closure_set(x_38, 9, x_18); -lean_closure_set(x_38, 10, x_19); -x_39 = l_Lean_Elab_Tactic_withMainContext___rarg(x_38, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -return x_39; +lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t 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_29 = l_Lean_Elab_Tactic_elabSimpArgs___closed__4; +x_30 = l_panic___at_Lean_Elab_Tactic_elabSimpArgs___spec__20(x_29); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_16); +x_32 = 0; +x_33 = lean_box(x_32); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_31); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_18); +lean_ctor_set(x_35, 1, x_34); +x_36 = lean_box(x_3); +x_37 = lean_box(x_4); +x_38 = lean_box_usize(x_28); +x_39 = l_Lean_Elab_Tactic_elabSimpArgs___boxed__const__1; +x_40 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_elabSimpArgs___lambda__1___boxed), 20, 11); +lean_closure_set(x_40, 0, x_2); +lean_closure_set(x_40, 1, x_36); +lean_closure_set(x_40, 2, x_37); +lean_closure_set(x_40, 3, x_26); +lean_closure_set(x_40, 4, x_38); +lean_closure_set(x_40, 5, x_39); +lean_closure_set(x_40, 6, x_35); +lean_closure_set(x_40, 7, x_15); +lean_closure_set(x_40, 8, x_17); +lean_closure_set(x_40, 9, x_19); +lean_closure_set(x_40, 10, x_20); +x_41 = l_Lean_Elab_Tactic_withMainContext___rarg(x_40, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_41; } else { -lean_object* x_40; lean_object* x_41; uint8_t 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; -x_40 = lean_array_fget(x_16, x_21); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_16); -x_42 = 0; -x_43 = lean_box(x_42); -x_44 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_44, 0, x_43); -lean_ctor_set(x_44, 1, x_41); -x_45 = lean_box(x_3); -x_46 = lean_box(x_4); -x_47 = lean_box_usize(x_27); -x_48 = l_Lean_Elab_Tactic_elabSimpArgs___boxed__const__1; -x_49 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_elabSimpArgs___lambda__2___boxed), 20, 11); -lean_closure_set(x_49, 0, x_2); -lean_closure_set(x_49, 1, x_45); -lean_closure_set(x_49, 2, x_46); -lean_closure_set(x_49, 3, x_25); -lean_closure_set(x_49, 4, x_47); -lean_closure_set(x_49, 5, x_48); -lean_closure_set(x_49, 6, x_44); -lean_closure_set(x_49, 7, x_15); -lean_closure_set(x_49, 8, x_17); -lean_closure_set(x_49, 9, x_18); -lean_closure_set(x_49, 10, x_19); -x_50 = l_Lean_Elab_Tactic_withMainContext___rarg(x_49, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -return x_50; +lean_object* x_42; lean_object* x_43; uint8_t 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; +x_42 = lean_array_fget(x_16, x_22); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_16); +x_44 = 0; +x_45 = lean_box(x_44); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_43); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_18); +lean_ctor_set(x_47, 1, x_46); +x_48 = lean_box(x_3); +x_49 = lean_box(x_4); +x_50 = lean_box_usize(x_28); +x_51 = l_Lean_Elab_Tactic_elabSimpArgs___boxed__const__1; +x_52 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_elabSimpArgs___lambda__2___boxed), 20, 11); +lean_closure_set(x_52, 0, x_2); +lean_closure_set(x_52, 1, x_48); +lean_closure_set(x_52, 2, x_49); +lean_closure_set(x_52, 3, x_26); +lean_closure_set(x_52, 4, x_50); +lean_closure_set(x_52, 5, x_51); +lean_closure_set(x_52, 6, x_47); +lean_closure_set(x_52, 7, x_15); +lean_closure_set(x_52, 8, x_17); +lean_closure_set(x_52, 9, x_19); +lean_closure_set(x_52, 10, x_20); +x_53 = l_Lean_Elab_Tactic_withMainContext___rarg(x_52, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_53; } } else { -uint8_t x_51; lean_object* x_52; lean_object* x_53; +uint8_t x_54; lean_object* x_55; lean_object* x_56; lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -8361,14 +8874,14 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_51 = 0; -x_52 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_52, 0, x_2); -lean_ctor_set_uint8(x_52, sizeof(void*)*1, x_51); -x_53 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_13); -return x_53; +x_54 = 0; +x_55 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_55, 0, x_2); +lean_ctor_set_uint8(x_55, sizeof(void*)*1, x_54); +x_56 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_13); +return x_56; } } } @@ -8388,11 +8901,35 @@ lean_dec(x_1); return x_9; } } -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_elabSimpArgs___spec__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_EXPORT lean_object* l_Lean_mkFreshId___at_Lean_Elab_Tactic_elabSimpArgs___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_mkFreshId___at_Lean_Elab_Tactic_elabSimpArgs___spec__2___rarg(x_1, x_2); +lean_dec(x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_mkFreshId___at_Lean_Elab_Tactic_elabSimpArgs___spec__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_mkFreshId___at_Lean_Elab_Tactic_elabSimpArgs___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +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_8; +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_elabSimpArgs___spec__7___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_throwError___at_Lean_Elab_Tactic_elabSimpArgs___spec__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_throwError___at_Lean_Elab_Tactic_elabSimpArgs___spec__7(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); @@ -8404,11 +8941,11 @@ lean_dec(x_2); return x_11; } } -LEAN_EXPORT lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Tactic_elabSimpArgs___spec__8___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_EXPORT lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Tactic_elabSimpArgs___spec__9___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_resolveGlobalName___at_Lean_Elab_Tactic_elabSimpArgs___spec__8(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_resolveGlobalName___at_Lean_Elab_Tactic_elabSimpArgs___spec__9(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_7); lean_dec(x_6); @@ -8419,11 +8956,11 @@ lean_dec(x_2); return x_11; } } -LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__9___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_EXPORT lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__10___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_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__9(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__10(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); @@ -8435,11 +8972,11 @@ lean_dec(x_2); return x_11; } } -LEAN_EXPORT lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Tactic_elabSimpArgs___spec__7___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_EXPORT lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Tactic_elabSimpArgs___spec__8___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: { lean_object* x_13; -x_13 = l_Lean_resolveGlobalConstCore___at_Lean_Elab_Tactic_elabSimpArgs___spec__7___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_resolveGlobalConstCore___at_Lean_Elab_Tactic_elabSimpArgs___spec__8___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); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -8452,11 +8989,11 @@ lean_dec(x_3); return x_13; } } -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_elabSimpArgs___spec__11___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_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_elabSimpArgs___spec__12___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_throwError___at_Lean_Elab_Tactic_elabSimpArgs___spec__11(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_throwError___at_Lean_Elab_Tactic_elabSimpArgs___spec__12(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); @@ -8468,11 +9005,11 @@ lean_dec(x_2); return x_11; } } -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_elabSimpArgs___spec__15___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_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_elabSimpArgs___spec__16___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_throwError___at_Lean_Elab_Tactic_elabSimpArgs___spec__15(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_throwError___at_Lean_Elab_Tactic_elabSimpArgs___spec__16(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); @@ -8484,11 +9021,11 @@ lean_dec(x_2); return x_11; } } -LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__14___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_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__15___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_getConstInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__14(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_getConstInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__15(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); @@ -8500,11 +9037,11 @@ lean_dec(x_2); return x_11; } } -LEAN_EXPORT lean_object* l_Lean_mkConstWithLevelParams___at_Lean_Elab_Tactic_elabSimpArgs___spec__13___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_EXPORT lean_object* l_Lean_mkConstWithLevelParams___at_Lean_Elab_Tactic_elabSimpArgs___spec__14___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_mkConstWithLevelParams___at_Lean_Elab_Tactic_elabSimpArgs___spec__13(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_mkConstWithLevelParams___at_Lean_Elab_Tactic_elabSimpArgs___spec__14(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); @@ -8516,11 +9053,11 @@ lean_dec(x_2); return x_11; } } -LEAN_EXPORT lean_object* l_Lean_Elab_pushInfoTree___at_Lean_Elab_Tactic_elabSimpArgs___spec__17___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_EXPORT lean_object* l_Lean_Elab_pushInfoTree___at_Lean_Elab_Tactic_elabSimpArgs___spec__18___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_pushInfoTree___at_Lean_Elab_Tactic_elabSimpArgs___spec__17(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_Elab_pushInfoTree___at_Lean_Elab_Tactic_elabSimpArgs___spec__18(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); @@ -8532,11 +9069,11 @@ lean_dec(x_2); return x_11; } } -LEAN_EXPORT lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Tactic_elabSimpArgs___spec__16___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_EXPORT lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Tactic_elabSimpArgs___spec__17___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_pushInfoLeaf___at_Lean_Elab_Tactic_elabSimpArgs___spec__16(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Tactic_elabSimpArgs___spec__17(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); @@ -8548,11 +9085,11 @@ lean_dec(x_2); return x_11; } } -LEAN_EXPORT lean_object* l_Lean_Elab_addConstInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__12___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_EXPORT lean_object* l_Lean_Elab_addConstInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__13___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_addConstInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__12(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_addConstInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__13(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_9); lean_dec(x_7); @@ -8560,11 +9097,11 @@ lean_dec(x_5); return x_13; } } -LEAN_EXPORT lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__2___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_EXPORT lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__3___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_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__2___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 = l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_Tactic_elabSimpArgs___spec__3___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); @@ -8577,11 +9114,11 @@ lean_dec(x_2); return x_12; } } -LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__18___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_EXPORT lean_object* l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__19___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: { lean_object* x_13; -x_13 = l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__18___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_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__19___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); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -8594,24 +9131,6 @@ lean_dec(x_3); return x_13; } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___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, lean_object* x_14, lean_object* x_15, lean_object* x_16) { -_start: -{ -uint8_t x_17; uint8_t x_18; size_t x_19; size_t x_20; lean_object* x_21; -x_17 = lean_unbox(x_2); -lean_dec(x_2); -x_18 = lean_unbox(x_3); -lean_dec(x_3); -x_19 = lean_unbox_usize(x_5); -lean_dec(x_5); -x_20 = lean_unbox_usize(x_6); -lean_dec(x_6); -x_21 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20(x_1, x_17, x_18, x_4, x_19, x_20, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -lean_dec(x_4); -lean_dec(x_1); -return x_21; -} -} LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___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, lean_object* x_14, lean_object* x_15, lean_object* x_16) { _start: { @@ -8630,6 +9149,24 @@ lean_dec(x_1); return x_21; } } +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__22___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, lean_object* x_14, lean_object* x_15, lean_object* x_16) { +_start: +{ +uint8_t x_17; uint8_t x_18; size_t x_19; size_t x_20; lean_object* x_21; +x_17 = lean_unbox(x_2); +lean_dec(x_2); +x_18 = lean_unbox(x_3); +lean_dec(x_3); +x_19 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_20 = lean_unbox_usize(x_6); +lean_dec(x_6); +x_21 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__22(x_1, x_17, x_18, x_4, x_19, x_20, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +lean_dec(x_4); +lean_dec(x_1); +return x_21; +} +} LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabSimpArgs___lambda__1___boxed(lean_object** _args) { lean_object* x_1 = _args[0]; lean_object* x_2 = _args[1]; @@ -8719,24 +9256,6 @@ lean_dec(x_1); return x_16; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__1___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("h", 1); -return x_1; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__1___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__1___closed__1; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; -} -} LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__1(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { @@ -8779,87 +9298,76 @@ lean_inc(x_20); x_25 = l_Lean_Meta_SimpTheoremsArray_isErased(x_20, x_24); if (x_25 == 0) { -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_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; x_26 = l_Lean_LocalDecl_fvarId(x_22); x_27 = l_Lean_LocalDecl_toExpr(x_22); lean_dec(x_22); -x_28 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__1___closed__2; -x_29 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_28, x_12, x_13, x_23); +lean_inc_n(x_26, 2); +x_28 = l_Std_RBNode_insert___at_Lean_Elab_Term_withAuxDecl___spec__1(x_19, x_26, x_26); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +x_29 = l_Lean_Meta_SimpTheoremsArray_addTheorem(x_20, x_26, x_27, x_10, x_11, x_12, x_13, x_23); +if (lean_obj_tag(x_29) == 0) +{ +lean_object* x_30; lean_object* x_31; size_t x_32; size_t x_33; 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); -lean_inc(x_30); -x_32 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_32, 0, x_30); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -x_33 = l_Lean_Meta_SimpTheoremsArray_addTheorem(x_20, x_27, x_32, x_10, x_11, x_12, x_13, x_31); -if (lean_obj_tag(x_33) == 0) -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; size_t x_37; size_t x_38; -x_34 = lean_ctor_get(x_33, 0); -lean_inc(x_34); -x_35 = lean_ctor_get(x_33, 1); -lean_inc(x_35); -lean_dec(x_33); -x_36 = l_Std_RBNode_insert___at_Lean_Elab_Term_withAuxDecl___spec__1(x_19, x_26, x_30); -lean_ctor_set(x_5, 1, x_34); -lean_ctor_set(x_5, 0, x_36); -x_37 = 1; -x_38 = lean_usize_add(x_4, x_37); -x_4 = x_38; -x_14 = x_35; +lean_ctor_set(x_5, 1, x_30); +lean_ctor_set(x_5, 0, x_28); +x_32 = 1; +x_33 = lean_usize_add(x_4, x_32); +x_4 = x_33; +x_14 = x_31; goto _start; } else { -uint8_t x_40; -lean_dec(x_30); -lean_dec(x_26); +uint8_t x_35; +lean_dec(x_28); lean_free_object(x_5); -lean_dec(x_19); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); -x_40 = !lean_is_exclusive(x_33); -if (x_40 == 0) +x_35 = !lean_is_exclusive(x_29); +if (x_35 == 0) { -return x_33; +return x_29; } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_33, 0); -x_42 = lean_ctor_get(x_33, 1); -lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_33); -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_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_29, 0); +x_37 = lean_ctor_get(x_29, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_29); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +return x_38; } } } else { -size_t x_44; size_t x_45; +size_t x_39; size_t x_40; lean_dec(x_22); -x_44 = 1; -x_45 = lean_usize_add(x_4, x_44); -x_4 = x_45; +x_39 = 1; +x_40 = lean_usize_add(x_4, x_39); +x_4 = x_40; x_14 = x_23; goto _start; } } else { -uint8_t x_47; +uint8_t x_42; lean_free_object(x_5); lean_dec(x_20); lean_dec(x_19); @@ -8867,163 +9375,152 @@ lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); -x_47 = !lean_is_exclusive(x_21); -if (x_47 == 0) +x_42 = !lean_is_exclusive(x_21); +if (x_42 == 0) { return x_21; } else { -lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_48 = lean_ctor_get(x_21, 0); -x_49 = lean_ctor_get(x_21, 1); -lean_inc(x_49); -lean_inc(x_48); +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_21, 0); +x_44 = lean_ctor_get(x_21, 1); +lean_inc(x_44); +lean_inc(x_43); lean_dec(x_21); -x_50 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_49); -return x_50; +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +return x_45; } } } else { -lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_5, 0); -x_52 = lean_ctor_get(x_5, 1); -lean_inc(x_52); -lean_inc(x_51); +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_5, 0); +x_47 = lean_ctor_get(x_5, 1); +lean_inc(x_47); +lean_inc(x_46); lean_dec(x_5); lean_inc(x_10); -x_53 = l_Lean_FVarId_getDecl(x_17, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_53) == 0) +x_48 = l_Lean_FVarId_getDecl(x_17, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_48) == 0) { -lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_54 = lean_ctor_get(x_53, 0); -lean_inc(x_54); -x_55 = lean_ctor_get(x_53, 1); -lean_inc(x_55); -lean_dec(x_53); -x_56 = l_Lean_LocalDecl_userName(x_54); -lean_inc(x_52); -x_57 = l_Lean_Meta_SimpTheoremsArray_isErased(x_52, x_56); -if (x_57 == 0) +lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; +x_49 = lean_ctor_get(x_48, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_48, 1); +lean_inc(x_50); +lean_dec(x_48); +x_51 = l_Lean_LocalDecl_userName(x_49); +lean_inc(x_47); +x_52 = l_Lean_Meta_SimpTheoremsArray_isErased(x_47, x_51); +if (x_52 == 0) { -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; -x_58 = l_Lean_LocalDecl_fvarId(x_54); -x_59 = l_Lean_LocalDecl_toExpr(x_54); -lean_dec(x_54); -x_60 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__1___closed__2; -x_61 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_60, x_12, x_13, x_55); -x_62 = lean_ctor_get(x_61, 0); -lean_inc(x_62); -x_63 = lean_ctor_get(x_61, 1); -lean_inc(x_63); -lean_dec(x_61); -lean_inc(x_62); -x_64 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_64, 0, x_62); +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_53 = l_Lean_LocalDecl_fvarId(x_49); +x_54 = l_Lean_LocalDecl_toExpr(x_49); +lean_dec(x_49); +lean_inc_n(x_53, 2); +x_55 = l_Std_RBNode_insert___at_Lean_Elab_Term_withAuxDecl___spec__1(x_46, x_53, x_53); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -x_65 = l_Lean_Meta_SimpTheoremsArray_addTheorem(x_52, x_59, x_64, x_10, x_11, x_12, x_13, x_63); -if (lean_obj_tag(x_65) == 0) +x_56 = l_Lean_Meta_SimpTheoremsArray_addTheorem(x_47, x_53, x_54, x_10, x_11, x_12, x_13, x_50); +if (lean_obj_tag(x_56) == 0) { -lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; size_t x_70; size_t x_71; -x_66 = lean_ctor_get(x_65, 0); -lean_inc(x_66); -x_67 = lean_ctor_get(x_65, 1); -lean_inc(x_67); -lean_dec(x_65); -x_68 = l_Std_RBNode_insert___at_Lean_Elab_Term_withAuxDecl___spec__1(x_51, x_58, x_62); -x_69 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_69, 0, x_68); -lean_ctor_set(x_69, 1, x_66); -x_70 = 1; -x_71 = lean_usize_add(x_4, x_70); -x_4 = x_71; -x_5 = x_69; -x_14 = x_67; +lean_object* x_57; lean_object* x_58; lean_object* x_59; size_t x_60; size_t x_61; +x_57 = lean_ctor_get(x_56, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_56, 1); +lean_inc(x_58); +lean_dec(x_56); +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_55); +lean_ctor_set(x_59, 1, x_57); +x_60 = 1; +x_61 = lean_usize_add(x_4, x_60); +x_4 = x_61; +x_5 = x_59; +x_14 = x_58; goto _start; } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; -lean_dec(x_62); -lean_dec(x_58); -lean_dec(x_51); +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +lean_dec(x_55); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); -x_73 = lean_ctor_get(x_65, 0); -lean_inc(x_73); -x_74 = lean_ctor_get(x_65, 1); -lean_inc(x_74); -if (lean_is_exclusive(x_65)) { - lean_ctor_release(x_65, 0); - lean_ctor_release(x_65, 1); - x_75 = x_65; +x_63 = lean_ctor_get(x_56, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_56, 1); +lean_inc(x_64); +if (lean_is_exclusive(x_56)) { + lean_ctor_release(x_56, 0); + lean_ctor_release(x_56, 1); + x_65 = x_56; } else { - lean_dec_ref(x_65); - x_75 = lean_box(0); + lean_dec_ref(x_56); + x_65 = lean_box(0); } -if (lean_is_scalar(x_75)) { - x_76 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 2, 0); } else { - x_76 = x_75; + x_66 = x_65; } -lean_ctor_set(x_76, 0, x_73); -lean_ctor_set(x_76, 1, x_74); -return x_76; +lean_ctor_set(x_66, 0, x_63); +lean_ctor_set(x_66, 1, x_64); +return x_66; } } else { -lean_object* x_77; size_t x_78; size_t x_79; -lean_dec(x_54); -x_77 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_77, 0, x_51); -lean_ctor_set(x_77, 1, x_52); -x_78 = 1; -x_79 = lean_usize_add(x_4, x_78); -x_4 = x_79; -x_5 = x_77; -x_14 = x_55; +lean_object* x_67; size_t x_68; size_t x_69; +lean_dec(x_49); +x_67 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_67, 0, x_46); +lean_ctor_set(x_67, 1, x_47); +x_68 = 1; +x_69 = lean_usize_add(x_4, x_68); +x_4 = x_69; +x_5 = x_67; +x_14 = x_50; goto _start; } } else { -lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; -lean_dec(x_52); -lean_dec(x_51); +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; +lean_dec(x_47); +lean_dec(x_46); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); -x_81 = lean_ctor_get(x_53, 0); -lean_inc(x_81); -x_82 = lean_ctor_get(x_53, 1); -lean_inc(x_82); -if (lean_is_exclusive(x_53)) { - lean_ctor_release(x_53, 0); - lean_ctor_release(x_53, 1); - x_83 = x_53; +x_71 = lean_ctor_get(x_48, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_48, 1); +lean_inc(x_72); +if (lean_is_exclusive(x_48)) { + lean_ctor_release(x_48, 0); + lean_ctor_release(x_48, 1); + x_73 = x_48; } else { - lean_dec_ref(x_53); - x_83 = lean_box(0); + lean_dec_ref(x_48); + x_73 = lean_box(0); } -if (lean_is_scalar(x_83)) { - x_84 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_73)) { + x_74 = lean_alloc_ctor(1, 2, 0); } else { - x_84 = x_83; + x_74 = x_73; } -lean_ctor_set(x_84, 0, x_81); -lean_ctor_set(x_84, 1, x_82); -return x_84; +lean_ctor_set(x_74, 0, x_71); +lean_ctor_set(x_74, 1, x_72); +return x_74; } } } @@ -9071,87 +9568,76 @@ lean_inc(x_19); x_24 = l_Lean_Meta_SimpTheoremsArray_isErased(x_19, x_23); if (x_24 == 0) { -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_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; x_25 = l_Lean_LocalDecl_fvarId(x_21); x_26 = l_Lean_LocalDecl_toExpr(x_21); lean_dec(x_21); -x_27 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__1___closed__2; -x_28 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_27, x_11, x_12, x_22); +lean_inc_n(x_25, 2); +x_27 = l_Std_RBNode_insert___at_Lean_Elab_Term_withAuxDecl___spec__1(x_18, x_25, x_25); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +x_28 = l_Lean_Meta_SimpTheoremsArray_addTheorem(x_19, x_25, x_26, x_9, x_10, x_11, x_12, x_22); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; lean_object* x_30; size_t x_31; size_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); lean_dec(x_28); -lean_inc(x_29); -x_31 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_31, 0, x_29); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -x_32 = l_Lean_Meta_SimpTheoremsArray_addTheorem(x_19, x_26, x_31, x_9, x_10, x_11, x_12, x_30); -if (lean_obj_tag(x_32) == 0) -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; size_t x_36; size_t x_37; -x_33 = lean_ctor_get(x_32, 0); -lean_inc(x_33); -x_34 = lean_ctor_get(x_32, 1); -lean_inc(x_34); -lean_dec(x_32); -x_35 = l_Std_RBNode_insert___at_Lean_Elab_Term_withAuxDecl___spec__1(x_18, x_25, x_29); -lean_ctor_set(x_4, 1, x_33); -lean_ctor_set(x_4, 0, x_35); -x_36 = 1; -x_37 = lean_usize_add(x_3, x_36); -x_3 = x_37; -x_13 = x_34; +lean_ctor_set(x_4, 1, x_29); +lean_ctor_set(x_4, 0, x_27); +x_31 = 1; +x_32 = lean_usize_add(x_3, x_31); +x_3 = x_32; +x_13 = x_30; goto _start; } else { -uint8_t x_39; -lean_dec(x_29); -lean_dec(x_25); +uint8_t x_34; +lean_dec(x_27); lean_free_object(x_4); -lean_dec(x_18); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_39 = !lean_is_exclusive(x_32); -if (x_39 == 0) +x_34 = !lean_is_exclusive(x_28); +if (x_34 == 0) { -return x_32; +return x_28; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_32, 0); -x_41 = lean_ctor_get(x_32, 1); -lean_inc(x_41); -lean_inc(x_40); -lean_dec(x_32); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -return x_42; +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_28, 0); +x_36 = lean_ctor_get(x_28, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_28); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; } } } else { -size_t x_43; size_t x_44; +size_t x_38; size_t x_39; lean_dec(x_21); -x_43 = 1; -x_44 = lean_usize_add(x_3, x_43); -x_3 = x_44; +x_38 = 1; +x_39 = lean_usize_add(x_3, x_38); +x_3 = x_39; x_13 = x_22; goto _start; } } else { -uint8_t x_46; +uint8_t x_41; lean_free_object(x_4); lean_dec(x_19); lean_dec(x_18); @@ -9159,163 +9645,152 @@ lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_46 = !lean_is_exclusive(x_20); -if (x_46 == 0) +x_41 = !lean_is_exclusive(x_20); +if (x_41 == 0) { return x_20; } else { -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = lean_ctor_get(x_20, 0); -x_48 = lean_ctor_get(x_20, 1); -lean_inc(x_48); -lean_inc(x_47); +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_20, 0); +x_43 = lean_ctor_get(x_20, 1); +lean_inc(x_43); +lean_inc(x_42); lean_dec(x_20); -x_49 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -return x_49; +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_42); +lean_ctor_set(x_44, 1, x_43); +return x_44; } } } else { -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_4, 0); -x_51 = lean_ctor_get(x_4, 1); -lean_inc(x_51); -lean_inc(x_50); +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_4, 0); +x_46 = lean_ctor_get(x_4, 1); +lean_inc(x_46); +lean_inc(x_45); lean_dec(x_4); lean_inc(x_9); -x_52 = l_Lean_FVarId_getDecl(x_16, x_9, x_10, x_11, x_12, x_13); -if (lean_obj_tag(x_52) == 0) +x_47 = l_Lean_FVarId_getDecl(x_16, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_47) == 0) { -lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; -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 = l_Lean_LocalDecl_userName(x_53); -lean_inc(x_51); -x_56 = l_Lean_Meta_SimpTheoremsArray_isErased(x_51, x_55); -if (x_56 == 0) +lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; +x_48 = lean_ctor_get(x_47, 0); +lean_inc(x_48); +x_49 = lean_ctor_get(x_47, 1); +lean_inc(x_49); +lean_dec(x_47); +x_50 = l_Lean_LocalDecl_userName(x_48); +lean_inc(x_46); +x_51 = l_Lean_Meta_SimpTheoremsArray_isErased(x_46, x_50); +if (x_51 == 0) { -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_57 = l_Lean_LocalDecl_fvarId(x_53); -x_58 = l_Lean_LocalDecl_toExpr(x_53); -lean_dec(x_53); -x_59 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__1___closed__2; -x_60 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_59, x_11, x_12, x_54); -x_61 = lean_ctor_get(x_60, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_60, 1); -lean_inc(x_62); -lean_dec(x_60); -lean_inc(x_61); -x_63 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_63, 0, x_61); +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_52 = l_Lean_LocalDecl_fvarId(x_48); +x_53 = l_Lean_LocalDecl_toExpr(x_48); +lean_dec(x_48); +lean_inc_n(x_52, 2); +x_54 = l_Std_RBNode_insert___at_Lean_Elab_Term_withAuxDecl___spec__1(x_45, x_52, x_52); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_64 = l_Lean_Meta_SimpTheoremsArray_addTheorem(x_51, x_58, x_63, x_9, x_10, x_11, x_12, x_62); -if (lean_obj_tag(x_64) == 0) +x_55 = l_Lean_Meta_SimpTheoremsArray_addTheorem(x_46, x_52, x_53, x_9, x_10, x_11, x_12, x_49); +if (lean_obj_tag(x_55) == 0) { -lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; size_t x_69; size_t x_70; -x_65 = lean_ctor_get(x_64, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_64, 1); -lean_inc(x_66); -lean_dec(x_64); -x_67 = l_Std_RBNode_insert___at_Lean_Elab_Term_withAuxDecl___spec__1(x_50, x_57, x_61); -x_68 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_68, 0, x_67); -lean_ctor_set(x_68, 1, x_65); -x_69 = 1; -x_70 = lean_usize_add(x_3, x_69); -x_3 = x_70; -x_4 = x_68; -x_13 = x_66; +lean_object* x_56; lean_object* x_57; lean_object* x_58; size_t x_59; size_t x_60; +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_55, 1); +lean_inc(x_57); +lean_dec(x_55); +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_54); +lean_ctor_set(x_58, 1, x_56); +x_59 = 1; +x_60 = lean_usize_add(x_3, x_59); +x_3 = x_60; +x_4 = x_58; +x_13 = x_57; goto _start; } else { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -lean_dec(x_61); -lean_dec(x_57); -lean_dec(x_50); +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; +lean_dec(x_54); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_72 = lean_ctor_get(x_64, 0); -lean_inc(x_72); -x_73 = lean_ctor_get(x_64, 1); -lean_inc(x_73); -if (lean_is_exclusive(x_64)) { - lean_ctor_release(x_64, 0); - lean_ctor_release(x_64, 1); - x_74 = x_64; +x_62 = lean_ctor_get(x_55, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_55, 1); +lean_inc(x_63); +if (lean_is_exclusive(x_55)) { + lean_ctor_release(x_55, 0); + lean_ctor_release(x_55, 1); + x_64 = x_55; } else { - lean_dec_ref(x_64); - x_74 = lean_box(0); + lean_dec_ref(x_55); + x_64 = lean_box(0); } -if (lean_is_scalar(x_74)) { - x_75 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_64)) { + x_65 = lean_alloc_ctor(1, 2, 0); } else { - x_75 = x_74; + x_65 = x_64; } -lean_ctor_set(x_75, 0, x_72); -lean_ctor_set(x_75, 1, x_73); -return x_75; +lean_ctor_set(x_65, 0, x_62); +lean_ctor_set(x_65, 1, x_63); +return x_65; } } else { -lean_object* x_76; size_t x_77; size_t x_78; -lean_dec(x_53); -x_76 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_76, 0, x_50); -lean_ctor_set(x_76, 1, x_51); -x_77 = 1; -x_78 = lean_usize_add(x_3, x_77); -x_3 = x_78; -x_4 = x_76; -x_13 = x_54; +lean_object* x_66; size_t x_67; size_t x_68; +lean_dec(x_48); +x_66 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_66, 0, x_45); +lean_ctor_set(x_66, 1, x_46); +x_67 = 1; +x_68 = lean_usize_add(x_3, x_67); +x_3 = x_68; +x_4 = x_66; +x_13 = x_49; goto _start; } } else { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; -lean_dec(x_51); -lean_dec(x_50); +lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +lean_dec(x_46); +lean_dec(x_45); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_80 = lean_ctor_get(x_52, 0); -lean_inc(x_80); -x_81 = lean_ctor_get(x_52, 1); -lean_inc(x_81); -if (lean_is_exclusive(x_52)) { - lean_ctor_release(x_52, 0); - lean_ctor_release(x_52, 1); - x_82 = x_52; +x_70 = lean_ctor_get(x_47, 0); +lean_inc(x_70); +x_71 = lean_ctor_get(x_47, 1); +lean_inc(x_71); +if (lean_is_exclusive(x_47)) { + lean_ctor_release(x_47, 0); + lean_ctor_release(x_47, 1); + x_72 = x_47; } else { - lean_dec_ref(x_52); - x_82 = lean_box(0); + lean_dec_ref(x_47); + x_72 = lean_box(0); } -if (lean_is_scalar(x_82)) { - x_83 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_72)) { + x_73 = lean_alloc_ctor(1, 2, 0); } else { - x_83 = x_82; + x_73 = x_72; } -lean_ctor_set(x_83, 0, x_80); -lean_ctor_set(x_83, 1, x_81); -return x_83; +lean_ctor_set(x_73, 0, x_70); +lean_ctor_set(x_73, 1, x_71); +return x_73; } } } @@ -9343,7 +9818,7 @@ x_21 = l_Lean_Elab_Tactic_elabSimpConfig(x_20, x_2, x_9, x_10, x_11, x_12, x_13, lean_dec(x_20); if (lean_obj_tag(x_21) == 0) { -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_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; x_22 = lean_ctor_get(x_21, 0); lean_inc(x_22); x_23 = lean_ctor_get(x_21, 1); @@ -9354,13 +9829,15 @@ x_25 = l_Lean_Syntax_getArg(x_1, x_24); x_26 = l_Lean_Elab_Tactic_tacticToDischarge___closed__19; x_27 = lean_array_push(x_26, x_6); x_28 = lean_box(0); -x_29 = lean_unsigned_to_nat(0u); -x_30 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_30, 0, x_22); -lean_ctor_set(x_30, 1, x_27); -lean_ctor_set(x_30, 2, x_17); -lean_ctor_set(x_30, 3, x_28); -lean_ctor_set(x_30, 4, x_29); +x_29 = lean_box(0); +x_30 = lean_unsigned_to_nat(0u); +x_31 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_31, 0, x_22); +lean_ctor_set(x_31, 1, x_27); +lean_ctor_set(x_31, 2, x_17); +lean_ctor_set(x_31, 3, x_28); +lean_ctor_set(x_31, 4, x_29); +lean_ctor_set(x_31, 5, x_30); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -9369,17 +9846,17 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_31 = l_Lean_Elab_Tactic_elabSimpArgs(x_25, x_30, x_3, x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_23); +x_32 = l_Lean_Elab_Tactic_elabSimpArgs(x_25, x_31, x_3, x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_23); lean_dec(x_25); -if (lean_obj_tag(x_31) == 0) +if (lean_obj_tag(x_32) == 0) { -lean_object* x_32; uint8_t x_33; -x_32 = lean_ctor_get(x_31, 0); -lean_inc(x_32); -x_33 = lean_ctor_get_uint8(x_32, sizeof(void*)*1); -if (x_33 == 0) +lean_object* x_33; uint8_t x_34; +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +x_34 = lean_ctor_get_uint8(x_33, sizeof(void*)*1); +if (x_34 == 0) { -uint8_t x_34; +uint8_t x_35; lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -9388,173 +9865,173 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -x_34 = !lean_is_exclusive(x_31); -if (x_34 == 0) +x_35 = !lean_is_exclusive(x_32); +if (x_35 == 0) { -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_35 = lean_ctor_get(x_31, 0); -lean_dec(x_35); +lean_object* x_36; lean_object* x_37; lean_object* x_38; x_36 = lean_ctor_get(x_32, 0); -lean_inc(x_36); -lean_dec(x_32); -x_37 = lean_box(0); +lean_dec(x_36); +x_37 = lean_ctor_get(x_33, 0); +lean_inc(x_37); +lean_dec(x_33); x_38 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 0, x_37); lean_ctor_set(x_38, 1, x_4); -lean_ctor_set(x_38, 2, x_37); -lean_ctor_set(x_31, 0, x_38); -return x_31; +lean_ctor_set(x_38, 2, x_28); +lean_ctor_set(x_32, 0, x_38); +return x_32; } else { -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_39 = lean_ctor_get(x_31, 1); +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_39 = lean_ctor_get(x_32, 1); lean_inc(x_39); -lean_dec(x_31); -x_40 = lean_ctor_get(x_32, 0); -lean_inc(x_40); lean_dec(x_32); -x_41 = lean_box(0); -x_42 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_4); -lean_ctor_set(x_42, 2, x_41); -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_39); -return x_43; +x_40 = lean_ctor_get(x_33, 0); +lean_inc(x_40); +lean_dec(x_33); +x_41 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_4); +lean_ctor_set(x_41, 2, x_28); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_39); +return x_42; } } else { if (x_5 == 0) { -lean_object* x_44; lean_object* x_45; uint8_t x_46; -x_44 = lean_ctor_get(x_32, 0); +lean_object* x_43; lean_object* x_44; uint8_t x_45; +x_43 = lean_ctor_get(x_33, 0); +lean_inc(x_43); +lean_dec(x_33); +x_44 = lean_ctor_get(x_32, 1); lean_inc(x_44); lean_dec(x_32); -x_45 = lean_ctor_get(x_31, 1); -lean_inc(x_45); -lean_dec(x_31); -x_46 = !lean_is_exclusive(x_44); -if (x_46 == 0) +x_45 = !lean_is_exclusive(x_43); +if (x_45 == 0) { -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_47 = lean_ctor_get(x_44, 0); -x_48 = lean_ctor_get(x_44, 1); -x_49 = lean_ctor_get(x_44, 2); -x_50 = lean_ctor_get(x_44, 3); -x_51 = lean_ctor_get(x_44, 4); +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; +x_46 = lean_ctor_get(x_43, 0); +x_47 = lean_ctor_get(x_43, 1); +x_48 = lean_ctor_get(x_43, 2); +x_49 = lean_ctor_get(x_43, 3); +x_50 = lean_ctor_get(x_43, 4); +x_51 = lean_ctor_get(x_43, 5); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); -x_52 = l_Lean_Meta_getPropHyps(x_11, x_12, x_13, x_14, x_45); +x_52 = l_Lean_Meta_getPropHyps(x_11, x_12, x_13, x_14, x_44); if (lean_obj_tag(x_52) == 0) { -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; size_t x_58; size_t x_59; lean_object* x_60; +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; size_t x_57; size_t x_58; lean_object* x_59; 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_box(0); -x_56 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_56, 0, x_55); -lean_ctor_set(x_56, 1, x_48); -x_57 = lean_array_get_size(x_53); -x_58 = lean_usize_of_nat(x_57); -lean_dec(x_57); -x_59 = 0; -x_60 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__1___at_Lean_Elab_Tactic_mkSimpContext___spec__2(x_53, x_58, x_59, x_56, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_54); +x_55 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_55, 0, x_28); +lean_ctor_set(x_55, 1, x_47); +x_56 = lean_array_get_size(x_53); +x_57 = lean_usize_of_nat(x_56); +lean_dec(x_56); +x_58 = 0; +x_59 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__1___at_Lean_Elab_Tactic_mkSimpContext___spec__2(x_53, x_57, x_58, x_55, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_54); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_53); -if (lean_obj_tag(x_60) == 0) +if (lean_obj_tag(x_59) == 0) { -uint8_t x_61; -x_61 = !lean_is_exclusive(x_60); -if (x_61 == 0) +uint8_t x_60; +x_60 = !lean_is_exclusive(x_59); +if (x_60 == 0) { -lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_62 = lean_ctor_get(x_60, 0); -x_63 = lean_ctor_get(x_62, 0); +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_61 = lean_ctor_get(x_59, 0); +x_62 = lean_ctor_get(x_61, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_61, 1); lean_inc(x_63); -x_64 = lean_ctor_get(x_62, 1); -lean_inc(x_64); -lean_dec(x_62); -lean_ctor_set(x_44, 1, x_64); -x_65 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_65, 0, x_44); -lean_ctor_set(x_65, 1, x_4); -lean_ctor_set(x_65, 2, x_63); -lean_ctor_set(x_60, 0, x_65); -return x_60; +lean_dec(x_61); +lean_ctor_set(x_43, 1, x_63); +x_64 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_64, 0, x_43); +lean_ctor_set(x_64, 1, x_4); +lean_ctor_set(x_64, 2, x_62); +lean_ctor_set(x_59, 0, x_64); +return x_59; } else { -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_66 = lean_ctor_get(x_60, 0); -x_67 = lean_ctor_get(x_60, 1); -lean_inc(x_67); +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_65 = lean_ctor_get(x_59, 0); +x_66 = lean_ctor_get(x_59, 1); lean_inc(x_66); -lean_dec(x_60); -x_68 = lean_ctor_get(x_66, 0); +lean_inc(x_65); +lean_dec(x_59); +x_67 = lean_ctor_get(x_65, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_65, 1); lean_inc(x_68); -x_69 = lean_ctor_get(x_66, 1); -lean_inc(x_69); -lean_dec(x_66); -lean_ctor_set(x_44, 1, x_69); -x_70 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_70, 0, x_44); -lean_ctor_set(x_70, 1, x_4); -lean_ctor_set(x_70, 2, x_68); -x_71 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_71, 0, x_70); -lean_ctor_set(x_71, 1, x_67); -return x_71; +lean_dec(x_65); +lean_ctor_set(x_43, 1, x_68); +x_69 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_69, 0, x_43); +lean_ctor_set(x_69, 1, x_4); +lean_ctor_set(x_69, 2, x_67); +x_70 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_70, 0, x_69); +lean_ctor_set(x_70, 1, x_66); +return x_70; } } else { -uint8_t x_72; -lean_free_object(x_44); +uint8_t x_71; +lean_free_object(x_43); lean_dec(x_51); lean_dec(x_50); lean_dec(x_49); -lean_dec(x_47); +lean_dec(x_48); +lean_dec(x_46); lean_dec(x_4); -x_72 = !lean_is_exclusive(x_60); -if (x_72 == 0) +x_71 = !lean_is_exclusive(x_59); +if (x_71 == 0) { -return x_60; +return x_59; } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_60, 0); -x_74 = lean_ctor_get(x_60, 1); -lean_inc(x_74); +lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_72 = lean_ctor_get(x_59, 0); +x_73 = lean_ctor_get(x_59, 1); lean_inc(x_73); -lean_dec(x_60); -x_75 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_75, 0, x_73); -lean_ctor_set(x_75, 1, x_74); -return x_75; +lean_inc(x_72); +lean_dec(x_59); +x_74 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_74, 0, x_72); +lean_ctor_set(x_74, 1, x_73); +return x_74; } } } else { -uint8_t x_76; -lean_free_object(x_44); +uint8_t x_75; +lean_free_object(x_43); lean_dec(x_51); lean_dec(x_50); lean_dec(x_49); lean_dec(x_48); lean_dec(x_47); +lean_dec(x_46); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -9564,144 +10041,148 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_4); -x_76 = !lean_is_exclusive(x_52); -if (x_76 == 0) +x_75 = !lean_is_exclusive(x_52); +if (x_75 == 0) { return x_52; } else { -lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_77 = lean_ctor_get(x_52, 0); -x_78 = lean_ctor_get(x_52, 1); -lean_inc(x_78); +lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_76 = lean_ctor_get(x_52, 0); +x_77 = lean_ctor_get(x_52, 1); lean_inc(x_77); +lean_inc(x_76); lean_dec(x_52); -x_79 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_79, 0, x_77); -lean_ctor_set(x_79, 1, x_78); -return x_79; +x_78 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_78, 0, x_76); +lean_ctor_set(x_78, 1, x_77); +return x_78; } } } else { -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_80 = lean_ctor_get(x_44, 0); -x_81 = lean_ctor_get(x_44, 1); -x_82 = lean_ctor_get(x_44, 2); -x_83 = lean_ctor_get(x_44, 3); -x_84 = lean_ctor_get(x_44, 4); +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_43, 0); +x_80 = lean_ctor_get(x_43, 1); +x_81 = lean_ctor_get(x_43, 2); +x_82 = lean_ctor_get(x_43, 3); +x_83 = lean_ctor_get(x_43, 4); +x_84 = lean_ctor_get(x_43, 5); lean_inc(x_84); lean_inc(x_83); lean_inc(x_82); lean_inc(x_81); lean_inc(x_80); -lean_dec(x_44); +lean_inc(x_79); +lean_dec(x_43); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); -x_85 = l_Lean_Meta_getPropHyps(x_11, x_12, x_13, x_14, x_45); +x_85 = l_Lean_Meta_getPropHyps(x_11, x_12, x_13, x_14, x_44); if (lean_obj_tag(x_85) == 0) { -lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; size_t x_91; size_t x_92; lean_object* x_93; +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; size_t x_90; size_t x_91; lean_object* x_92; 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_88 = lean_box(0); -x_89 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_89, 0, x_88); -lean_ctor_set(x_89, 1, x_81); -x_90 = lean_array_get_size(x_86); -x_91 = lean_usize_of_nat(x_90); -lean_dec(x_90); -x_92 = 0; -x_93 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__1___at_Lean_Elab_Tactic_mkSimpContext___spec__2(x_86, x_91, x_92, x_89, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_87); +x_88 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_88, 0, x_28); +lean_ctor_set(x_88, 1, x_80); +x_89 = lean_array_get_size(x_86); +x_90 = lean_usize_of_nat(x_89); +lean_dec(x_89); +x_91 = 0; +x_92 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__1___at_Lean_Elab_Tactic_mkSimpContext___spec__2(x_86, x_90, x_91, x_88, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_87); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_86); -if (lean_obj_tag(x_93) == 0) +if (lean_obj_tag(x_92) == 0) { -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_94 = lean_ctor_get(x_93, 0); +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; +x_93 = lean_ctor_get(x_92, 0); +lean_inc(x_93); +x_94 = lean_ctor_get(x_92, 1); lean_inc(x_94); -x_95 = lean_ctor_get(x_93, 1); -lean_inc(x_95); -if (lean_is_exclusive(x_93)) { - lean_ctor_release(x_93, 0); - lean_ctor_release(x_93, 1); - x_96 = x_93; +if (lean_is_exclusive(x_92)) { + lean_ctor_release(x_92, 0); + lean_ctor_release(x_92, 1); + x_95 = x_92; } else { - lean_dec_ref(x_93); - x_96 = lean_box(0); + lean_dec_ref(x_92); + x_95 = lean_box(0); } -x_97 = lean_ctor_get(x_94, 0); +x_96 = lean_ctor_get(x_93, 0); +lean_inc(x_96); +x_97 = lean_ctor_get(x_93, 1); lean_inc(x_97); -x_98 = lean_ctor_get(x_94, 1); -lean_inc(x_98); -lean_dec(x_94); -x_99 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_99, 0, x_80); -lean_ctor_set(x_99, 1, x_98); -lean_ctor_set(x_99, 2, x_82); -lean_ctor_set(x_99, 3, x_83); -lean_ctor_set(x_99, 4, x_84); -x_100 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_100, 0, x_99); -lean_ctor_set(x_100, 1, x_4); -lean_ctor_set(x_100, 2, x_97); -if (lean_is_scalar(x_96)) { - x_101 = lean_alloc_ctor(0, 2, 0); +lean_dec(x_93); +x_98 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_98, 0, x_79); +lean_ctor_set(x_98, 1, x_97); +lean_ctor_set(x_98, 2, x_81); +lean_ctor_set(x_98, 3, x_82); +lean_ctor_set(x_98, 4, x_83); +lean_ctor_set(x_98, 5, x_84); +x_99 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_99, 0, x_98); +lean_ctor_set(x_99, 1, x_4); +lean_ctor_set(x_99, 2, x_96); +if (lean_is_scalar(x_95)) { + x_100 = lean_alloc_ctor(0, 2, 0); } else { - x_101 = x_96; + x_100 = x_95; } -lean_ctor_set(x_101, 0, x_100); -lean_ctor_set(x_101, 1, x_95); -return x_101; +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_94); +return x_100; } else { -lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_dec(x_84); lean_dec(x_83); lean_dec(x_82); -lean_dec(x_80); +lean_dec(x_81); +lean_dec(x_79); lean_dec(x_4); -x_102 = lean_ctor_get(x_93, 0); +x_101 = lean_ctor_get(x_92, 0); +lean_inc(x_101); +x_102 = lean_ctor_get(x_92, 1); lean_inc(x_102); -x_103 = lean_ctor_get(x_93, 1); -lean_inc(x_103); -if (lean_is_exclusive(x_93)) { - lean_ctor_release(x_93, 0); - lean_ctor_release(x_93, 1); - x_104 = x_93; +if (lean_is_exclusive(x_92)) { + lean_ctor_release(x_92, 0); + lean_ctor_release(x_92, 1); + x_103 = x_92; } else { - lean_dec_ref(x_93); - x_104 = lean_box(0); + lean_dec_ref(x_92); + x_103 = lean_box(0); } -if (lean_is_scalar(x_104)) { - x_105 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_103)) { + x_104 = lean_alloc_ctor(1, 2, 0); } else { - x_105 = x_104; + x_104 = x_103; } -lean_ctor_set(x_105, 0, x_102); -lean_ctor_set(x_105, 1, x_103); -return x_105; +lean_ctor_set(x_104, 0, x_101); +lean_ctor_set(x_104, 1, x_102); +return x_104; } } else { -lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_dec(x_84); lean_dec(x_83); lean_dec(x_82); lean_dec(x_81); lean_dec(x_80); +lean_dec(x_79); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -9711,32 +10192,32 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_4); -x_106 = lean_ctor_get(x_85, 0); +x_105 = lean_ctor_get(x_85, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_85, 1); lean_inc(x_106); -x_107 = lean_ctor_get(x_85, 1); -lean_inc(x_107); if (lean_is_exclusive(x_85)) { lean_ctor_release(x_85, 0); lean_ctor_release(x_85, 1); - x_108 = x_85; + x_107 = x_85; } else { lean_dec_ref(x_85); - x_108 = lean_box(0); + x_107 = lean_box(0); } -if (lean_is_scalar(x_108)) { - x_109 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_107)) { + x_108 = lean_alloc_ctor(1, 2, 0); } else { - x_109 = x_108; + x_108 = x_107; } -lean_ctor_set(x_109, 0, x_106); -lean_ctor_set(x_109, 1, x_107); -return x_109; +lean_ctor_set(x_108, 0, x_105); +lean_ctor_set(x_108, 1, x_106); +return x_108; } } } else { -uint8_t x_110; +uint8_t x_109; lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -9745,48 +10226,46 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -x_110 = !lean_is_exclusive(x_31); -if (x_110 == 0) +x_109 = !lean_is_exclusive(x_32); +if (x_109 == 0) { -lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; -x_111 = lean_ctor_get(x_31, 0); -lean_dec(x_111); -x_112 = lean_ctor_get(x_32, 0); -lean_inc(x_112); -lean_dec(x_32); -x_113 = lean_box(0); -x_114 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_114, 0, x_112); -lean_ctor_set(x_114, 1, x_4); -lean_ctor_set(x_114, 2, x_113); -lean_ctor_set(x_31, 0, x_114); -return x_31; +lean_object* x_110; lean_object* x_111; lean_object* x_112; +x_110 = lean_ctor_get(x_32, 0); +lean_dec(x_110); +x_111 = lean_ctor_get(x_33, 0); +lean_inc(x_111); +lean_dec(x_33); +x_112 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_112, 0, x_111); +lean_ctor_set(x_112, 1, x_4); +lean_ctor_set(x_112, 2, x_28); +lean_ctor_set(x_32, 0, x_112); +return x_32; } else { -lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; -x_115 = lean_ctor_get(x_31, 1); -lean_inc(x_115); -lean_dec(x_31); -x_116 = lean_ctor_get(x_32, 0); -lean_inc(x_116); +lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; +x_113 = lean_ctor_get(x_32, 1); +lean_inc(x_113); lean_dec(x_32); -x_117 = lean_box(0); -x_118 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_118, 0, x_116); -lean_ctor_set(x_118, 1, x_4); -lean_ctor_set(x_118, 2, x_117); -x_119 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_119, 0, x_118); -lean_ctor_set(x_119, 1, x_115); -return x_119; +x_114 = lean_ctor_get(x_33, 0); +lean_inc(x_114); +lean_dec(x_33); +x_115 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_115, 0, x_114); +lean_ctor_set(x_115, 1, x_4); +lean_ctor_set(x_115, 2, x_28); +x_116 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_116, 0, x_115); +lean_ctor_set(x_116, 1, x_113); +return x_116; } } } } else { -uint8_t x_120; +uint8_t x_117; lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -9796,29 +10275,29 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_4); -x_120 = !lean_is_exclusive(x_31); -if (x_120 == 0) +x_117 = !lean_is_exclusive(x_32); +if (x_117 == 0) { -return x_31; +return x_32; } else { -lean_object* x_121; lean_object* x_122; lean_object* x_123; -x_121 = lean_ctor_get(x_31, 0); -x_122 = lean_ctor_get(x_31, 1); -lean_inc(x_122); -lean_inc(x_121); -lean_dec(x_31); -x_123 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_123, 0, x_121); -lean_ctor_set(x_123, 1, x_122); -return x_123; +lean_object* x_118; lean_object* x_119; lean_object* x_120; +x_118 = lean_ctor_get(x_32, 0); +x_119 = lean_ctor_get(x_32, 1); +lean_inc(x_119); +lean_inc(x_118); +lean_dec(x_32); +x_120 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_120, 0, x_118); +lean_ctor_set(x_120, 1, x_119); +return x_120; } } } else { -uint8_t x_124; +uint8_t x_121; lean_dec(x_17); lean_dec(x_14); lean_dec(x_13); @@ -9830,23 +10309,23 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); -x_124 = !lean_is_exclusive(x_21); -if (x_124 == 0) +x_121 = !lean_is_exclusive(x_21); +if (x_121 == 0) { return x_21; } else { -lean_object* x_125; lean_object* x_126; lean_object* x_127; -x_125 = lean_ctor_get(x_21, 0); -x_126 = lean_ctor_get(x_21, 1); -lean_inc(x_126); -lean_inc(x_125); +lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_122 = lean_ctor_get(x_21, 0); +x_123 = lean_ctor_get(x_21, 1); +lean_inc(x_123); +lean_inc(x_122); lean_dec(x_21); -x_127 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_127, 0, x_125); -lean_ctor_set(x_127, 1, x_126); -return x_127; +x_124 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_124, 0, x_122); +lean_ctor_set(x_124, 1, x_123); +return x_124; } } } @@ -10252,6 +10731,3656 @@ x_17 = l_Lean_Elab_Tactic_mkSimpContext(x_1, x_14, x_15, x_16, x_5, x_6, x_7, x_ return x_17; } } +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("tactic", 6); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771____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_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771____closed__1; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771____closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771____closed__2; +x_2 = l_Lean_Elab_Tactic_tacticToDischarge___lambda__3___closed__1; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771____closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("trace", 5); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771____closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771____closed__3; +x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771____closed__4; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771____closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("When tracing is enabled, calls to `simp` or `dsimp` will print an equivalent `simp only` call.", 94); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771____closed__7() { +_start: +{ +uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = 0; +x_2 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__3; +x_3 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771____closed__6; +x_4 = lean_box(x_1); +x_5 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_5, 0, x_4); +lean_ctor_set(x_5, 1, x_2); +lean_ctor_set(x_5, 2, x_3); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771_(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771____closed__5; +x_3 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771____closed__7; +x_4 = l_Lean_Option_register___at_Lean_initFn____x40_Lean_PrettyPrinter_Delaborator_Options___hyg_6____spec__1(x_2, x_3, x_1); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Std_RBNode_find___at_Lean_Elab_Tactic_traceSimpCall___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_3; +x_3 = lean_box(0); +return x_3; +} +else +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_4 = lean_ctor_get(x_1, 0); +x_5 = lean_ctor_get(x_1, 1); +x_6 = lean_ctor_get(x_1, 2); +x_7 = lean_ctor_get(x_1, 3); +x_8 = l_Lean_Name_quickCmp(x_2, x_5); +switch (x_8) { +case 0: +{ +x_1 = x_4; +goto _start; +} +case 1: +{ +lean_object* x_10; +lean_inc(x_6); +x_10 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_10, 0, x_6); +return x_10; +} +default: +{ +x_1 = x_7; +goto _start; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Tactic_traceSimpCall___spec__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) { +_start: +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_st_ref_get(x_5, x_6); +x_8 = !lean_is_exclusive(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_9 = lean_ctor_get(x_7, 0); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +lean_dec(x_9); +x_11 = lean_ctor_get(x_4, 6); +lean_inc(x_11); +x_12 = lean_ctor_get(x_4, 7); +lean_inc(x_12); +lean_dec(x_4); +x_13 = l_Lean_ResolveName_resolveGlobalName(x_10, x_11, x_12, x_1); +lean_ctor_set(x_7, 0, x_13); +return x_7; +} +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; +x_14 = lean_ctor_get(x_7, 0); +x_15 = lean_ctor_get(x_7, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_7); +x_16 = lean_ctor_get(x_14, 0); +lean_inc(x_16); +lean_dec(x_14); +x_17 = lean_ctor_get(x_4, 6); +lean_inc(x_17); +x_18 = lean_ctor_get(x_4, 7); +lean_inc(x_18); +lean_dec(x_4); +x_19 = l_Lean_ResolveName_resolveGlobalName(x_16, x_17, x_18, x_1); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_15); +return x_20; +} +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_traceSimpCall___spec__5___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_12; +lean_inc(x_3); +x_11 = l_Lean_resolveGlobalName___at_Lean_Elab_Tactic_traceSimpCall___spec__4(x_3, x_6, x_7, x_8, x_9, x_10); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +if (lean_obj_tag(x_12) == 0) +{ +uint8_t x_13; +x_13 = !lean_is_exclusive(x_11); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_14 = lean_ctor_get(x_11, 0); +lean_dec(x_14); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_3); +lean_ctor_set(x_15, 1, x_4); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_1); +lean_ctor_set(x_16, 1, x_15); +x_17 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_11, 0, x_17); +return x_11; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_18 = lean_ctor_get(x_11, 1); +lean_inc(x_18); +lean_dec(x_11); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_3); +lean_ctor_set(x_19, 1, x_4); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_1); +lean_ctor_set(x_20, 1, x_19); +x_21 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_21, 0, x_20); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_18); +return x_22; +} +} +else +{ +lean_object* x_23; lean_object* x_24; +x_23 = lean_ctor_get(x_12, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_12, 1); +lean_inc(x_24); +lean_dec(x_12); +if (lean_obj_tag(x_24) == 0) +{ +uint8_t x_25; +x_25 = !lean_is_exclusive(x_11); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_26 = lean_ctor_get(x_11, 0); +lean_dec(x_26); +x_27 = lean_ctor_get(x_23, 0); +lean_inc(x_27); +lean_dec(x_23); +x_28 = lean_name_eq(x_27, x_2); +lean_dec(x_27); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_3); +lean_ctor_set(x_29, 1, x_4); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_1); +lean_ctor_set(x_30, 1, x_29); +x_31 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_11, 0, x_31); +return x_11; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +lean_dec(x_1); +lean_inc(x_3); +x_32 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_32, 0, x_3); +x_33 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_33, 0, x_32); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_3); +lean_ctor_set(x_34, 1, x_4); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +x_36 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_11, 0, x_36); +return x_11; +} +} +else +{ +lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_37 = lean_ctor_get(x_11, 1); +lean_inc(x_37); +lean_dec(x_11); +x_38 = lean_ctor_get(x_23, 0); +lean_inc(x_38); +lean_dec(x_23); +x_39 = lean_name_eq(x_38, x_2); +lean_dec(x_38); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_3); +lean_ctor_set(x_40, 1, x_4); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_1); +lean_ctor_set(x_41, 1, x_40); +x_42 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_42, 0, x_41); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_37); +return x_43; +} +else +{ +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_dec(x_1); +lean_inc(x_3); +x_44 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_44, 0, x_3); +x_45 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_45, 0, x_44); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_3); +lean_ctor_set(x_46, 1, x_4); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +x_48 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_48, 0, x_47); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_37); +return x_49; +} +} +} +else +{ +uint8_t x_50; +lean_dec(x_24); +lean_dec(x_23); +x_50 = !lean_is_exclusive(x_11); +if (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_11, 0); +lean_dec(x_51); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_3); +lean_ctor_set(x_52, 1, x_4); +x_53 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_53, 0, x_1); +lean_ctor_set(x_53, 1, x_52); +x_54 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_11, 0, x_54); +return x_11; +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_55 = lean_ctor_get(x_11, 1); +lean_inc(x_55); +lean_dec(x_11); +x_56 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_56, 0, x_3); +lean_ctor_set(x_56, 1, x_4); +x_57 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_57, 0, x_1); +lean_ctor_set(x_57, 1, x_56); +x_58 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_58, 0, x_57); +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_55); +return x_59; +} +} +} +} +} +static lean_object* _init_l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_traceSimpCall___spec__5___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(0); +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_traceSimpCall___spec__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, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +uint8_t x_13; +x_13 = lean_nat_dec_le(x_5, x_4); +if (x_13 == 0) +{ +lean_object* x_14; uint8_t x_15; +x_14 = lean_unsigned_to_nat(0u); +x_15 = lean_nat_dec_eq(x_3, x_14); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_16 = lean_unsigned_to_nat(1u); +x_17 = lean_nat_sub(x_3, x_16); +lean_dec(x_3); +x_18 = lean_ctor_get(x_7, 1); +lean_inc(x_18); +lean_dec(x_7); +x_19 = lean_ctor_get(x_18, 1); +lean_inc(x_19); +if (lean_obj_tag(x_19) == 0) +{ +uint8_t x_20; +lean_dec(x_17); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_2); +x_20 = !lean_is_exclusive(x_18); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_18, 1); +lean_dec(x_21); +x_22 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_traceSimpCall___spec__5___closed__1; +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_18); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_12); +return x_24; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_25 = lean_ctor_get(x_18, 0); +lean_inc(x_25); +lean_dec(x_18); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_19); +x_27 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_traceSimpCall___spec__5___closed__1; +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_26); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_12); +return x_29; +} +} +else +{ +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; +x_30 = lean_ctor_get(x_18, 0); +lean_inc(x_30); +lean_dec(x_18); +x_31 = lean_ctor_get(x_19, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_19, 1); +lean_inc(x_32); +lean_dec(x_19); +x_33 = l_Lean_Name_append(x_31, x_30); +lean_dec(x_31); +x_34 = lean_box(0); +lean_inc(x_10); +lean_inc(x_2); +x_35 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_traceSimpCall___spec__5___lambda__1(x_2, x_1, x_33, x_32, x_34, x_8, x_9, x_10, x_11, x_12); +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +if (lean_obj_tag(x_36) == 0) +{ +uint8_t x_37; +lean_dec(x_17); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_2); +x_37 = !lean_is_exclusive(x_35); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; +x_38 = lean_ctor_get(x_35, 0); +lean_dec(x_38); +x_39 = lean_ctor_get(x_36, 0); +lean_inc(x_39); +lean_dec(x_36); +lean_ctor_set(x_35, 0, x_39); +return x_35; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_35, 1); +lean_inc(x_40); +lean_dec(x_35); +x_41 = lean_ctor_get(x_36, 0); +lean_inc(x_41); +lean_dec(x_36); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_40); +return x_42; +} +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_35, 1); +lean_inc(x_43); +lean_dec(x_35); +x_44 = lean_ctor_get(x_36, 0); +lean_inc(x_44); +lean_dec(x_36); +x_45 = lean_nat_add(x_4, x_6); +lean_dec(x_4); +x_3 = x_17; +x_4 = x_45; +x_7 = x_44; +x_12 = x_43; +goto _start; +} +} +} +else +{ +lean_object* x_47; +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_7); +lean_ctor_set(x_47, 1, x_12); +return x_47; +} +} +else +{ +lean_object* x_48; +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_7); +lean_ctor_set(x_48, 1, x_12); +return x_48; +} +} +} +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal_unresolveNameCore___at_Lean_Elab_Tactic_traceSimpCall___spec__3___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; +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_1); +lean_ctor_set(x_8, 1, x_7); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal_unresolveNameCore___at_Lean_Elab_Tactic_traceSimpCall___spec__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) { +_start: +{ +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; +x_8 = l_Lean_Name_components_x27(x_2); +x_9 = lean_unsigned_to_nat(0u); +x_10 = l_List_lengthTRAux___rarg(x_8, x_9); +x_11 = lean_box(0); +x_12 = lean_box(0); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_8); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_11); +lean_ctor_set(x_14, 1, x_13); +x_15 = lean_unsigned_to_nat(1u); +lean_inc(x_10); +x_16 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_traceSimpCall___spec__5(x_1, x_11, x_10, x_9, x_10, x_15, x_14, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_10); +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +lean_dec(x_17); +if (lean_obj_tag(x_18) == 0) +{ +uint8_t x_19; +x_19 = !lean_is_exclusive(x_16); +if (x_19 == 0) +{ +lean_object* x_20; +x_20 = lean_ctor_get(x_16, 0); +lean_dec(x_20); +lean_ctor_set(x_16, 0, x_11); +return x_16; +} +else +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_16, 1); +lean_inc(x_21); +lean_dec(x_16); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_11); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +else +{ +uint8_t x_23; +x_23 = !lean_is_exclusive(x_16); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_16, 0); +lean_dec(x_24); +x_25 = lean_ctor_get(x_18, 0); +lean_inc(x_25); +lean_dec(x_18); +lean_ctor_set(x_16, 0, x_25); +return x_16; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_16, 1); +lean_inc(x_26); +lean_dec(x_16); +x_27 = lean_ctor_get(x_18, 0); +lean_inc(x_27); +lean_dec(x_18); +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; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_traceSimpCall___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t 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; +x_12 = lean_usize_dec_lt(x_5, x_4); +if (x_12 == 0) +{ +lean_object* x_13; +lean_dec(x_9); +lean_dec(x_2); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_6); +lean_ctor_set(x_13, 1, x_11); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +lean_dec(x_6); +x_14 = lean_array_uget(x_3, x_5); +lean_inc(x_9); +x_15 = l_Lean_unresolveNameGlobal_unresolveNameCore___at_Lean_Elab_Tactic_traceSimpCall___spec__3(x_1, x_14, x_7, x_8, x_9, x_10, x_11); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; size_t x_18; size_t x_19; +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = 1; +x_19 = lean_usize_add(x_5, x_18); +lean_inc(x_2); +{ +size_t _tmp_4 = x_19; +lean_object* _tmp_5 = x_2; +lean_object* _tmp_10 = x_17; +x_5 = _tmp_4; +x_6 = _tmp_5; +x_11 = _tmp_10; +} +goto _start; +} +else +{ +uint8_t x_21; +lean_dec(x_9); +lean_dec(x_2); +x_21 = !lean_is_exclusive(x_15); +if (x_21 == 0) +{ +lean_object* x_22; uint8_t x_23; +x_22 = lean_ctor_get(x_15, 0); +lean_dec(x_22); +x_23 = !lean_is_exclusive(x_16); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_box(0); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_16); +lean_ctor_set(x_25, 1, x_24); +lean_ctor_set(x_15, 0, x_25); +return x_15; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_26 = lean_ctor_get(x_16, 0); +lean_inc(x_26); +lean_dec(x_16); +x_27 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_27, 0, x_26); +x_28 = lean_box(0); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +lean_ctor_set(x_15, 0, x_29); +return x_15; +} +} +else +{ +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; +x_30 = lean_ctor_get(x_15, 1); +lean_inc(x_30); +lean_dec(x_15); +x_31 = lean_ctor_get(x_16, 0); +lean_inc(x_31); +if (lean_is_exclusive(x_16)) { + lean_ctor_release(x_16, 0); + x_32 = x_16; +} else { + lean_dec_ref(x_16); + x_32 = lean_box(0); +} +if (lean_is_scalar(x_32)) { + x_33 = lean_alloc_ctor(1, 1, 0); +} else { + x_33 = x_32; +} +lean_ctor_set(x_33, 0, x_31); +x_34 = lean_box(0); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_30); +return x_36; +} +} +} +} +} +static lean_object* _init_l_Lean_unresolveNameGlobal___at_Lean_Elab_Tactic_traceSimpCall___spec__2___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = lean_box(0); +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; +} +} +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal___at_Lean_Elab_Tactic_traceSimpCall___spec__2___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; 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; size_t x_20; size_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_8 = lean_st_ref_get(x_6, x_7); +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_8, 1); +lean_inc(x_10); +lean_dec(x_8); +x_11 = lean_ctor_get(x_9, 0); +lean_inc(x_11); +lean_dec(x_9); +lean_inc(x_1); +x_12 = l_Lean_getRevAliases(x_11, x_1); +x_13 = l_List_redLength___rarg(x_12); +x_14 = lean_mk_empty_array_with_capacity(x_13); +lean_dec(x_13); +x_15 = l_List_toArrayAux___rarg(x_12, x_14); +x_16 = l_Lean_rootNamespace; +lean_inc(x_1); +x_17 = l_Lean_Name_append(x_16, x_1); +x_18 = lean_array_push(x_15, x_17); +x_19 = lean_array_get_size(x_18); +x_20 = lean_usize_of_nat(x_19); +lean_dec(x_19); +x_21 = 0; +x_22 = l_Lean_unresolveNameGlobal___at_Lean_Elab_Tactic_traceSimpCall___spec__2___lambda__1___closed__1; +x_23 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_traceSimpCall___spec__6(x_1, x_22, x_18, x_20, x_21, x_22, x_3, x_4, x_5, x_6, x_10); +lean_dec(x_18); +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +lean_dec(x_24); +if (lean_obj_tag(x_25) == 0) +{ +uint8_t x_26; +x_26 = !lean_is_exclusive(x_23); +if (x_26 == 0) +{ +lean_object* x_27; +x_27 = lean_ctor_get(x_23, 0); +lean_dec(x_27); +lean_ctor_set(x_23, 0, x_1); +return x_23; +} +else +{ +lean_object* x_28; lean_object* x_29; +x_28 = lean_ctor_get(x_23, 1); +lean_inc(x_28); +lean_dec(x_23); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_1); +lean_ctor_set(x_29, 1, x_28); +return x_29; +} +} +else +{ +uint8_t x_30; +lean_dec(x_1); +x_30 = !lean_is_exclusive(x_23); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; +x_31 = lean_ctor_get(x_23, 0); +lean_dec(x_31); +x_32 = lean_ctor_get(x_25, 0); +lean_inc(x_32); +lean_dec(x_25); +lean_ctor_set(x_23, 0, x_32); +return x_23; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_23, 1); +lean_inc(x_33); +lean_dec(x_23); +x_34 = lean_ctor_get(x_25, 0); +lean_inc(x_34); +lean_dec(x_25); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_33); +return x_35; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal___at_Lean_Elab_Tactic_traceSimpCall___spec__2___lambda__2(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: +{ +lean_dec(x_3); +if (x_1 == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_box(0); +x_10 = l_Lean_unresolveNameGlobal___at_Lean_Elab_Tactic_traceSimpCall___spec__2___lambda__1(x_2, x_9, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +return x_10; +} +else +{ +lean_object* x_11; lean_object* x_12; +lean_inc(x_2); +x_11 = l_Lean_resolveGlobalName___at_Lean_Elab_Tactic_traceSimpCall___spec__4(x_2, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +if (lean_obj_tag(x_12) == 0) +{ +uint8_t x_13; +x_13 = !lean_is_exclusive(x_11); +if (x_13 == 0) +{ +lean_object* x_14; +x_14 = lean_ctor_get(x_11, 0); +lean_dec(x_14); +lean_ctor_set(x_11, 0, x_2); +return x_11; +} +else +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_11, 1); +lean_inc(x_15); +lean_dec(x_11); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_2); +lean_ctor_set(x_16, 1, x_15); +return x_16; +} +} +else +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_12, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_12, 1); +lean_inc(x_18); +lean_dec(x_12); +if (lean_obj_tag(x_18) == 0) +{ +uint8_t x_19; +x_19 = !lean_is_exclusive(x_11); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_20 = lean_ctor_get(x_11, 0); +lean_dec(x_20); +x_21 = lean_ctor_get(x_17, 0); +lean_inc(x_21); +lean_dec(x_17); +x_22 = lean_name_eq(x_21, x_2); +lean_dec(x_21); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; +x_23 = l_Lean_rootNamespace; +x_24 = l_Lean_Name_append(x_23, x_2); +lean_ctor_set(x_11, 0, x_24); +return x_11; +} +else +{ +lean_ctor_set(x_11, 0, x_2); +return x_11; +} +} +else +{ +lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_25 = lean_ctor_get(x_11, 1); +lean_inc(x_25); +lean_dec(x_11); +x_26 = lean_ctor_get(x_17, 0); +lean_inc(x_26); +lean_dec(x_17); +x_27 = lean_name_eq(x_26, x_2); +lean_dec(x_26); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = l_Lean_rootNamespace; +x_29 = l_Lean_Name_append(x_28, x_2); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_25); +return x_30; +} +else +{ +lean_object* x_31; +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_2); +lean_ctor_set(x_31, 1, x_25); +return x_31; +} +} +} +else +{ +uint8_t x_32; +lean_dec(x_18); +lean_dec(x_17); +x_32 = !lean_is_exclusive(x_11); +if (x_32 == 0) +{ +lean_object* x_33; +x_33 = lean_ctor_get(x_11, 0); +lean_dec(x_33); +lean_ctor_set(x_11, 0, x_2); +return x_11; +} +else +{ +lean_object* x_34; lean_object* x_35; +x_34 = lean_ctor_get(x_11, 1); +lean_inc(x_34); +lean_dec(x_11); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_2); +lean_ctor_set(x_35, 1, x_34); +return x_35; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal___at_Lean_Elab_Tactic_traceSimpCall___spec__2(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) { +_start: +{ +uint8_t x_8; +x_8 = l_Lean_Name_hasMacroScopes(x_1); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_box(0); +x_10 = l_Lean_unresolveNameGlobal___at_Lean_Elab_Tactic_traceSimpCall___spec__2___lambda__2(x_2, x_1, x_9, x_3, x_4, x_5, x_6, x_7); +return x_10; +} +else +{ +lean_object* x_11; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_1); +lean_ctor_set(x_11, 1, x_7); +return x_11; +} +} +} +LEAN_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Tactic_traceSimpCall___spec__7___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_4 = lean_ctor_get(x_1, 5); +lean_inc(x_4); +lean_dec(x_1); +x_5 = l_Lean_SourceInfo_fromRef(x_4); +x_6 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_5); +lean_ctor_set(x_6, 1, x_3); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Tactic_traceSimpCall___spec__7(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Tactic_traceSimpCall___spec__7___rarg___boxed), 3, 0); +return x_3; +} +} +static lean_object* _init_l_Lean_logAt___at_Lean_Elab_Tactic_traceSimpCall___spec__8___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_warningAsError; +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Elab_Tactic_traceSimpCall___spec__8(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) { +_start: +{ +lean_object* x_9; uint8_t x_267; uint8_t x_268; +x_267 = 2; +x_268 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_267); +if (x_268 == 0) +{ +lean_object* x_269; +x_269 = lean_box(0); +x_9 = x_269; +goto block_266; +} +else +{ +uint8_t x_270; +lean_inc(x_2); +x_270 = l_Lean_MessageData_hasSyntheticSorry(x_2); +if (x_270 == 0) +{ +lean_object* x_271; +x_271 = lean_box(0); +x_9 = x_271; +goto block_266; +} +else +{ +lean_object* x_272; lean_object* x_273; +lean_dec(x_2); +x_272 = lean_box(0); +x_273 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_273, 0, x_272); +lean_ctor_set(x_273, 1, x_8); +return x_273; +} +} +block_266: +{ +uint8_t x_10; lean_object* x_260; uint8_t x_261; uint8_t x_262; +lean_dec(x_9); +x_260 = lean_ctor_get(x_6, 2); +x_261 = 1; +x_262 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_261); +if (x_262 == 0) +{ +x_10 = x_3; +goto block_259; +} +else +{ +lean_object* x_263; uint8_t x_264; +x_263 = l_Lean_logAt___at_Lean_Elab_Tactic_traceSimpCall___spec__8___closed__1; +x_264 = l_Lean_Option_get___at_Lean_getSanitizeNames___spec__1(x_260, x_263); +if (x_264 == 0) +{ +x_10 = x_3; +goto block_259; +} +else +{ +uint8_t x_265; +x_265 = 2; +x_10 = x_265; +goto block_259; +} +} +block_259: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; +x_11 = lean_ctor_get(x_6, 0); +x_12 = lean_ctor_get(x_6, 1); +x_13 = lean_ctor_get(x_6, 5); +x_14 = lean_ctor_get(x_6, 6); +x_15 = lean_ctor_get(x_6, 7); +x_16 = l_Lean_replaceRef(x_1, x_13); +x_17 = 0; +x_18 = l_Lean_Syntax_getPos_x3f(x_16, x_17); +x_19 = l_Lean_Syntax_getTailPos_x3f(x_16, x_17); +if (lean_obj_tag(x_18) == 0) +{ +if (lean_obj_tag(x_19) == 0) +{ +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; uint8_t x_33; +x_20 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +lean_dec(x_20); +x_23 = lean_unsigned_to_nat(0u); +x_24 = l_Lean_FileMap_toPosition(x_12, x_23); +lean_inc(x_24); +x_25 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_25, 0, x_24); +lean_inc(x_15); +lean_inc(x_14); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_14); +lean_ctor_set(x_26, 1, x_15); +x_27 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_21); +x_28 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__3; +lean_inc(x_11); +x_29 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_29, 0, x_11); +lean_ctor_set(x_29, 1, x_24); +lean_ctor_set(x_29, 2, x_25); +lean_ctor_set(x_29, 3, x_28); +lean_ctor_set(x_29, 4, x_27); +lean_ctor_set_uint8(x_29, sizeof(void*)*5, x_10); +x_30 = lean_st_ref_take(x_7, x_22); +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_30, 1); +lean_inc(x_32); +lean_dec(x_30); +x_33 = !lean_is_exclusive(x_31); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_34 = lean_ctor_get(x_31, 5); +x_35 = l_Std_PersistentArray_push___rarg(x_34, x_29); +lean_ctor_set(x_31, 5, x_35); +x_36 = lean_st_ref_set(x_7, x_31, x_32); +x_37 = !lean_is_exclusive(x_36); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; +x_38 = lean_ctor_get(x_36, 0); +lean_dec(x_38); +x_39 = lean_box(0); +lean_ctor_set(x_36, 0, x_39); +return x_36; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_36, 1); +lean_inc(x_40); +lean_dec(x_36); +x_41 = lean_box(0); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_40); +return x_42; +} +} +else +{ +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; +x_43 = lean_ctor_get(x_31, 0); +x_44 = lean_ctor_get(x_31, 1); +x_45 = lean_ctor_get(x_31, 2); +x_46 = lean_ctor_get(x_31, 3); +x_47 = lean_ctor_get(x_31, 4); +x_48 = lean_ctor_get(x_31, 5); +x_49 = lean_ctor_get(x_31, 6); +lean_inc(x_49); +lean_inc(x_48); +lean_inc(x_47); +lean_inc(x_46); +lean_inc(x_45); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_31); +x_50 = l_Std_PersistentArray_push___rarg(x_48, x_29); +x_51 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_51, 0, x_43); +lean_ctor_set(x_51, 1, x_44); +lean_ctor_set(x_51, 2, x_45); +lean_ctor_set(x_51, 3, x_46); +lean_ctor_set(x_51, 4, x_47); +lean_ctor_set(x_51, 5, x_50); +lean_ctor_set(x_51, 6, x_49); +x_52 = lean_st_ref_set(x_7, x_51, x_32); +x_53 = lean_ctor_get(x_52, 1); +lean_inc(x_53); +if (lean_is_exclusive(x_52)) { + lean_ctor_release(x_52, 0); + lean_ctor_release(x_52, 1); + x_54 = x_52; +} else { + lean_dec_ref(x_52); + x_54 = lean_box(0); +} +x_55 = lean_box(0); +if (lean_is_scalar(x_54)) { + x_56 = lean_alloc_ctor(0, 2, 0); +} else { + x_56 = x_54; +} +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_53); +return x_56; +} +} +else +{ +uint8_t x_57; +x_57 = !lean_is_exclusive(x_19); +if (x_57 == 0) +{ +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; uint8_t x_72; +x_58 = lean_ctor_get(x_19, 0); +x_59 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_59, 1); +lean_inc(x_61); +lean_dec(x_59); +x_62 = lean_unsigned_to_nat(0u); +x_63 = l_Lean_FileMap_toPosition(x_12, x_62); +x_64 = l_Lean_FileMap_toPosition(x_12, x_58); +lean_dec(x_58); +lean_ctor_set(x_19, 0, x_64); +lean_inc(x_15); +lean_inc(x_14); +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_14); +lean_ctor_set(x_65, 1, x_15); +x_66 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_60); +x_67 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__3; +lean_inc(x_11); +x_68 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_68, 0, x_11); +lean_ctor_set(x_68, 1, x_63); +lean_ctor_set(x_68, 2, x_19); +lean_ctor_set(x_68, 3, x_67); +lean_ctor_set(x_68, 4, x_66); +lean_ctor_set_uint8(x_68, sizeof(void*)*5, x_10); +x_69 = lean_st_ref_take(x_7, x_61); +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_is_exclusive(x_70); +if (x_72 == 0) +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_t x_76; +x_73 = lean_ctor_get(x_70, 5); +x_74 = l_Std_PersistentArray_push___rarg(x_73, x_68); +lean_ctor_set(x_70, 5, x_74); +x_75 = lean_st_ref_set(x_7, x_70, x_71); +x_76 = !lean_is_exclusive(x_75); +if (x_76 == 0) +{ +lean_object* x_77; lean_object* x_78; +x_77 = lean_ctor_get(x_75, 0); +lean_dec(x_77); +x_78 = lean_box(0); +lean_ctor_set(x_75, 0, x_78); +return x_75; +} +else +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_79 = lean_ctor_get(x_75, 1); +lean_inc(x_79); +lean_dec(x_75); +x_80 = lean_box(0); +x_81 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_81, 0, x_80); +lean_ctor_set(x_81, 1, x_79); +return x_81; +} +} +else +{ +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; lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_82 = lean_ctor_get(x_70, 0); +x_83 = lean_ctor_get(x_70, 1); +x_84 = lean_ctor_get(x_70, 2); +x_85 = lean_ctor_get(x_70, 3); +x_86 = lean_ctor_get(x_70, 4); +x_87 = lean_ctor_get(x_70, 5); +x_88 = lean_ctor_get(x_70, 6); +lean_inc(x_88); +lean_inc(x_87); +lean_inc(x_86); +lean_inc(x_85); +lean_inc(x_84); +lean_inc(x_83); +lean_inc(x_82); +lean_dec(x_70); +x_89 = l_Std_PersistentArray_push___rarg(x_87, x_68); +x_90 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_90, 0, x_82); +lean_ctor_set(x_90, 1, x_83); +lean_ctor_set(x_90, 2, x_84); +lean_ctor_set(x_90, 3, x_85); +lean_ctor_set(x_90, 4, x_86); +lean_ctor_set(x_90, 5, x_89); +lean_ctor_set(x_90, 6, x_88); +x_91 = lean_st_ref_set(x_7, x_90, x_71); +x_92 = lean_ctor_get(x_91, 1); +lean_inc(x_92); +if (lean_is_exclusive(x_91)) { + lean_ctor_release(x_91, 0); + lean_ctor_release(x_91, 1); + x_93 = x_91; +} else { + lean_dec_ref(x_91); + x_93 = lean_box(0); +} +x_94 = lean_box(0); +if (lean_is_scalar(x_93)) { + x_95 = lean_alloc_ctor(0, 2, 0); +} else { + x_95 = x_93; +} +lean_ctor_set(x_95, 0, x_94); +lean_ctor_set(x_95, 1, x_92); +return x_95; +} +} +else +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; +x_96 = lean_ctor_get(x_19, 0); +lean_inc(x_96); +lean_dec(x_19); +x_97 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +x_98 = lean_ctor_get(x_97, 0); +lean_inc(x_98); +x_99 = lean_ctor_get(x_97, 1); +lean_inc(x_99); +lean_dec(x_97); +x_100 = lean_unsigned_to_nat(0u); +x_101 = l_Lean_FileMap_toPosition(x_12, x_100); +x_102 = l_Lean_FileMap_toPosition(x_12, x_96); +lean_dec(x_96); +x_103 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_103, 0, x_102); +lean_inc(x_15); +lean_inc(x_14); +x_104 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_104, 0, x_14); +lean_ctor_set(x_104, 1, x_15); +x_105 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_105, 0, x_104); +lean_ctor_set(x_105, 1, x_98); +x_106 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__3; +lean_inc(x_11); +x_107 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_107, 0, x_11); +lean_ctor_set(x_107, 1, x_101); +lean_ctor_set(x_107, 2, x_103); +lean_ctor_set(x_107, 3, x_106); +lean_ctor_set(x_107, 4, x_105); +lean_ctor_set_uint8(x_107, sizeof(void*)*5, x_10); +x_108 = lean_st_ref_take(x_7, x_99); +x_109 = lean_ctor_get(x_108, 0); +lean_inc(x_109); +x_110 = lean_ctor_get(x_108, 1); +lean_inc(x_110); +lean_dec(x_108); +x_111 = lean_ctor_get(x_109, 0); +lean_inc(x_111); +x_112 = lean_ctor_get(x_109, 1); +lean_inc(x_112); +x_113 = lean_ctor_get(x_109, 2); +lean_inc(x_113); +x_114 = lean_ctor_get(x_109, 3); +lean_inc(x_114); +x_115 = lean_ctor_get(x_109, 4); +lean_inc(x_115); +x_116 = lean_ctor_get(x_109, 5); +lean_inc(x_116); +x_117 = lean_ctor_get(x_109, 6); +lean_inc(x_117); +if (lean_is_exclusive(x_109)) { + lean_ctor_release(x_109, 0); + lean_ctor_release(x_109, 1); + lean_ctor_release(x_109, 2); + lean_ctor_release(x_109, 3); + lean_ctor_release(x_109, 4); + lean_ctor_release(x_109, 5); + lean_ctor_release(x_109, 6); + x_118 = x_109; +} else { + lean_dec_ref(x_109); + x_118 = lean_box(0); +} +x_119 = l_Std_PersistentArray_push___rarg(x_116, x_107); +if (lean_is_scalar(x_118)) { + x_120 = lean_alloc_ctor(0, 7, 0); +} else { + x_120 = x_118; +} +lean_ctor_set(x_120, 0, x_111); +lean_ctor_set(x_120, 1, x_112); +lean_ctor_set(x_120, 2, x_113); +lean_ctor_set(x_120, 3, x_114); +lean_ctor_set(x_120, 4, x_115); +lean_ctor_set(x_120, 5, x_119); +lean_ctor_set(x_120, 6, x_117); +x_121 = lean_st_ref_set(x_7, x_120, x_110); +x_122 = lean_ctor_get(x_121, 1); +lean_inc(x_122); +if (lean_is_exclusive(x_121)) { + lean_ctor_release(x_121, 0); + lean_ctor_release(x_121, 1); + x_123 = x_121; +} else { + lean_dec_ref(x_121); + x_123 = lean_box(0); +} +x_124 = lean_box(0); +if (lean_is_scalar(x_123)) { + x_125 = lean_alloc_ctor(0, 2, 0); +} else { + x_125 = x_123; +} +lean_ctor_set(x_125, 0, x_124); +lean_ctor_set(x_125, 1, x_122); +return x_125; +} +} +} +else +{ +if (lean_obj_tag(x_19) == 0) +{ +uint8_t x_126; +x_126 = !lean_is_exclusive(x_18); +if (x_126 == 0) +{ +lean_object* x_127; lean_object* x_128; 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; uint8_t x_139; +x_127 = lean_ctor_get(x_18, 0); +x_128 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +x_129 = lean_ctor_get(x_128, 0); +lean_inc(x_129); +x_130 = lean_ctor_get(x_128, 1); +lean_inc(x_130); +lean_dec(x_128); +x_131 = l_Lean_FileMap_toPosition(x_12, x_127); +lean_dec(x_127); +lean_inc(x_131); +lean_ctor_set(x_18, 0, x_131); +lean_inc(x_15); +lean_inc(x_14); +x_132 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_132, 0, x_14); +lean_ctor_set(x_132, 1, x_15); +x_133 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_133, 0, x_132); +lean_ctor_set(x_133, 1, x_129); +x_134 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__3; +lean_inc(x_11); +x_135 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_135, 0, x_11); +lean_ctor_set(x_135, 1, x_131); +lean_ctor_set(x_135, 2, x_18); +lean_ctor_set(x_135, 3, x_134); +lean_ctor_set(x_135, 4, x_133); +lean_ctor_set_uint8(x_135, sizeof(void*)*5, x_10); +x_136 = lean_st_ref_take(x_7, x_130); +x_137 = lean_ctor_get(x_136, 0); +lean_inc(x_137); +x_138 = lean_ctor_get(x_136, 1); +lean_inc(x_138); +lean_dec(x_136); +x_139 = !lean_is_exclusive(x_137); +if (x_139 == 0) +{ +lean_object* x_140; lean_object* x_141; lean_object* x_142; uint8_t x_143; +x_140 = lean_ctor_get(x_137, 5); +x_141 = l_Std_PersistentArray_push___rarg(x_140, x_135); +lean_ctor_set(x_137, 5, x_141); +x_142 = lean_st_ref_set(x_7, x_137, x_138); +x_143 = !lean_is_exclusive(x_142); +if (x_143 == 0) +{ +lean_object* x_144; lean_object* x_145; +x_144 = lean_ctor_get(x_142, 0); +lean_dec(x_144); +x_145 = lean_box(0); +lean_ctor_set(x_142, 0, x_145); +return x_142; +} +else +{ +lean_object* x_146; lean_object* x_147; lean_object* x_148; +x_146 = lean_ctor_get(x_142, 1); +lean_inc(x_146); +lean_dec(x_142); +x_147 = lean_box(0); +x_148 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_148, 0, x_147); +lean_ctor_set(x_148, 1, x_146); +return x_148; +} +} +else +{ +lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; +x_149 = lean_ctor_get(x_137, 0); +x_150 = lean_ctor_get(x_137, 1); +x_151 = lean_ctor_get(x_137, 2); +x_152 = lean_ctor_get(x_137, 3); +x_153 = lean_ctor_get(x_137, 4); +x_154 = lean_ctor_get(x_137, 5); +x_155 = lean_ctor_get(x_137, 6); +lean_inc(x_155); +lean_inc(x_154); +lean_inc(x_153); +lean_inc(x_152); +lean_inc(x_151); +lean_inc(x_150); +lean_inc(x_149); +lean_dec(x_137); +x_156 = l_Std_PersistentArray_push___rarg(x_154, x_135); +x_157 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_157, 0, x_149); +lean_ctor_set(x_157, 1, x_150); +lean_ctor_set(x_157, 2, x_151); +lean_ctor_set(x_157, 3, x_152); +lean_ctor_set(x_157, 4, x_153); +lean_ctor_set(x_157, 5, x_156); +lean_ctor_set(x_157, 6, x_155); +x_158 = lean_st_ref_set(x_7, x_157, x_138); +x_159 = lean_ctor_get(x_158, 1); +lean_inc(x_159); +if (lean_is_exclusive(x_158)) { + lean_ctor_release(x_158, 0); + lean_ctor_release(x_158, 1); + x_160 = x_158; +} else { + lean_dec_ref(x_158); + x_160 = lean_box(0); +} +x_161 = lean_box(0); +if (lean_is_scalar(x_160)) { + x_162 = lean_alloc_ctor(0, 2, 0); +} else { + x_162 = x_160; +} +lean_ctor_set(x_162, 0, x_161); +lean_ctor_set(x_162, 1, x_159); +return x_162; +} +} +else +{ +lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; +x_163 = lean_ctor_get(x_18, 0); +lean_inc(x_163); +lean_dec(x_18); +x_164 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +x_165 = lean_ctor_get(x_164, 0); +lean_inc(x_165); +x_166 = lean_ctor_get(x_164, 1); +lean_inc(x_166); +lean_dec(x_164); +x_167 = l_Lean_FileMap_toPosition(x_12, x_163); +lean_dec(x_163); +lean_inc(x_167); +x_168 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_168, 0, x_167); +lean_inc(x_15); +lean_inc(x_14); +x_169 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_169, 0, x_14); +lean_ctor_set(x_169, 1, x_15); +x_170 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_170, 0, x_169); +lean_ctor_set(x_170, 1, x_165); +x_171 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__3; +lean_inc(x_11); +x_172 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_172, 0, x_11); +lean_ctor_set(x_172, 1, x_167); +lean_ctor_set(x_172, 2, x_168); +lean_ctor_set(x_172, 3, x_171); +lean_ctor_set(x_172, 4, x_170); +lean_ctor_set_uint8(x_172, sizeof(void*)*5, x_10); +x_173 = lean_st_ref_take(x_7, x_166); +x_174 = lean_ctor_get(x_173, 0); +lean_inc(x_174); +x_175 = lean_ctor_get(x_173, 1); +lean_inc(x_175); +lean_dec(x_173); +x_176 = lean_ctor_get(x_174, 0); +lean_inc(x_176); +x_177 = lean_ctor_get(x_174, 1); +lean_inc(x_177); +x_178 = lean_ctor_get(x_174, 2); +lean_inc(x_178); +x_179 = lean_ctor_get(x_174, 3); +lean_inc(x_179); +x_180 = lean_ctor_get(x_174, 4); +lean_inc(x_180); +x_181 = lean_ctor_get(x_174, 5); +lean_inc(x_181); +x_182 = lean_ctor_get(x_174, 6); +lean_inc(x_182); +if (lean_is_exclusive(x_174)) { + lean_ctor_release(x_174, 0); + lean_ctor_release(x_174, 1); + lean_ctor_release(x_174, 2); + lean_ctor_release(x_174, 3); + lean_ctor_release(x_174, 4); + lean_ctor_release(x_174, 5); + lean_ctor_release(x_174, 6); + x_183 = x_174; +} else { + lean_dec_ref(x_174); + x_183 = lean_box(0); +} +x_184 = l_Std_PersistentArray_push___rarg(x_181, x_172); +if (lean_is_scalar(x_183)) { + x_185 = lean_alloc_ctor(0, 7, 0); +} else { + x_185 = x_183; +} +lean_ctor_set(x_185, 0, x_176); +lean_ctor_set(x_185, 1, x_177); +lean_ctor_set(x_185, 2, x_178); +lean_ctor_set(x_185, 3, x_179); +lean_ctor_set(x_185, 4, x_180); +lean_ctor_set(x_185, 5, x_184); +lean_ctor_set(x_185, 6, x_182); +x_186 = lean_st_ref_set(x_7, x_185, x_175); +x_187 = lean_ctor_get(x_186, 1); +lean_inc(x_187); +if (lean_is_exclusive(x_186)) { + lean_ctor_release(x_186, 0); + lean_ctor_release(x_186, 1); + x_188 = x_186; +} else { + lean_dec_ref(x_186); + x_188 = lean_box(0); +} +x_189 = lean_box(0); +if (lean_is_scalar(x_188)) { + x_190 = lean_alloc_ctor(0, 2, 0); +} else { + x_190 = x_188; +} +lean_ctor_set(x_190, 0, x_189); +lean_ctor_set(x_190, 1, x_187); +return x_190; +} +} +else +{ +lean_object* x_191; uint8_t x_192; +x_191 = lean_ctor_get(x_18, 0); +lean_inc(x_191); +lean_dec(x_18); +x_192 = !lean_is_exclusive(x_19); +if (x_192 == 0) +{ +lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; uint8_t x_206; +x_193 = lean_ctor_get(x_19, 0); +x_194 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +x_195 = lean_ctor_get(x_194, 0); +lean_inc(x_195); +x_196 = lean_ctor_get(x_194, 1); +lean_inc(x_196); +lean_dec(x_194); +x_197 = l_Lean_FileMap_toPosition(x_12, x_191); +lean_dec(x_191); +x_198 = l_Lean_FileMap_toPosition(x_12, x_193); +lean_dec(x_193); +lean_ctor_set(x_19, 0, x_198); +lean_inc(x_15); +lean_inc(x_14); +x_199 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_199, 0, x_14); +lean_ctor_set(x_199, 1, x_15); +x_200 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_200, 0, x_199); +lean_ctor_set(x_200, 1, x_195); +x_201 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__3; +lean_inc(x_11); +x_202 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_202, 0, x_11); +lean_ctor_set(x_202, 1, x_197); +lean_ctor_set(x_202, 2, x_19); +lean_ctor_set(x_202, 3, x_201); +lean_ctor_set(x_202, 4, x_200); +lean_ctor_set_uint8(x_202, sizeof(void*)*5, x_10); +x_203 = lean_st_ref_take(x_7, x_196); +x_204 = lean_ctor_get(x_203, 0); +lean_inc(x_204); +x_205 = lean_ctor_get(x_203, 1); +lean_inc(x_205); +lean_dec(x_203); +x_206 = !lean_is_exclusive(x_204); +if (x_206 == 0) +{ +lean_object* x_207; lean_object* x_208; lean_object* x_209; uint8_t x_210; +x_207 = lean_ctor_get(x_204, 5); +x_208 = l_Std_PersistentArray_push___rarg(x_207, x_202); +lean_ctor_set(x_204, 5, x_208); +x_209 = lean_st_ref_set(x_7, x_204, x_205); +x_210 = !lean_is_exclusive(x_209); +if (x_210 == 0) +{ +lean_object* x_211; lean_object* x_212; +x_211 = lean_ctor_get(x_209, 0); +lean_dec(x_211); +x_212 = lean_box(0); +lean_ctor_set(x_209, 0, x_212); +return x_209; +} +else +{ +lean_object* x_213; lean_object* x_214; lean_object* x_215; +x_213 = lean_ctor_get(x_209, 1); +lean_inc(x_213); +lean_dec(x_209); +x_214 = lean_box(0); +x_215 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_215, 0, x_214); +lean_ctor_set(x_215, 1, x_213); +return x_215; +} +} +else +{ +lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; +x_216 = lean_ctor_get(x_204, 0); +x_217 = lean_ctor_get(x_204, 1); +x_218 = lean_ctor_get(x_204, 2); +x_219 = lean_ctor_get(x_204, 3); +x_220 = lean_ctor_get(x_204, 4); +x_221 = lean_ctor_get(x_204, 5); +x_222 = lean_ctor_get(x_204, 6); +lean_inc(x_222); +lean_inc(x_221); +lean_inc(x_220); +lean_inc(x_219); +lean_inc(x_218); +lean_inc(x_217); +lean_inc(x_216); +lean_dec(x_204); +x_223 = l_Std_PersistentArray_push___rarg(x_221, x_202); +x_224 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_224, 0, x_216); +lean_ctor_set(x_224, 1, x_217); +lean_ctor_set(x_224, 2, x_218); +lean_ctor_set(x_224, 3, x_219); +lean_ctor_set(x_224, 4, x_220); +lean_ctor_set(x_224, 5, x_223); +lean_ctor_set(x_224, 6, x_222); +x_225 = lean_st_ref_set(x_7, x_224, x_205); +x_226 = lean_ctor_get(x_225, 1); +lean_inc(x_226); +if (lean_is_exclusive(x_225)) { + lean_ctor_release(x_225, 0); + lean_ctor_release(x_225, 1); + x_227 = x_225; +} else { + lean_dec_ref(x_225); + x_227 = lean_box(0); +} +x_228 = lean_box(0); +if (lean_is_scalar(x_227)) { + x_229 = lean_alloc_ctor(0, 2, 0); +} else { + x_229 = x_227; +} +lean_ctor_set(x_229, 0, x_228); +lean_ctor_set(x_229, 1, x_226); +return x_229; +} +} +else +{ +lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; +x_230 = lean_ctor_get(x_19, 0); +lean_inc(x_230); +lean_dec(x_19); +x_231 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +x_232 = lean_ctor_get(x_231, 0); +lean_inc(x_232); +x_233 = lean_ctor_get(x_231, 1); +lean_inc(x_233); +lean_dec(x_231); +x_234 = l_Lean_FileMap_toPosition(x_12, x_191); +lean_dec(x_191); +x_235 = l_Lean_FileMap_toPosition(x_12, x_230); +lean_dec(x_230); +x_236 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_236, 0, x_235); +lean_inc(x_15); +lean_inc(x_14); +x_237 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_237, 0, x_14); +lean_ctor_set(x_237, 1, x_15); +x_238 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_238, 0, x_237); +lean_ctor_set(x_238, 1, x_232); +x_239 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__3; +lean_inc(x_11); +x_240 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_240, 0, x_11); +lean_ctor_set(x_240, 1, x_234); +lean_ctor_set(x_240, 2, x_236); +lean_ctor_set(x_240, 3, x_239); +lean_ctor_set(x_240, 4, x_238); +lean_ctor_set_uint8(x_240, sizeof(void*)*5, x_10); +x_241 = lean_st_ref_take(x_7, x_233); +x_242 = lean_ctor_get(x_241, 0); +lean_inc(x_242); +x_243 = lean_ctor_get(x_241, 1); +lean_inc(x_243); +lean_dec(x_241); +x_244 = lean_ctor_get(x_242, 0); +lean_inc(x_244); +x_245 = lean_ctor_get(x_242, 1); +lean_inc(x_245); +x_246 = lean_ctor_get(x_242, 2); +lean_inc(x_246); +x_247 = lean_ctor_get(x_242, 3); +lean_inc(x_247); +x_248 = lean_ctor_get(x_242, 4); +lean_inc(x_248); +x_249 = lean_ctor_get(x_242, 5); +lean_inc(x_249); +x_250 = lean_ctor_get(x_242, 6); +lean_inc(x_250); +if (lean_is_exclusive(x_242)) { + lean_ctor_release(x_242, 0); + lean_ctor_release(x_242, 1); + lean_ctor_release(x_242, 2); + lean_ctor_release(x_242, 3); + lean_ctor_release(x_242, 4); + lean_ctor_release(x_242, 5); + lean_ctor_release(x_242, 6); + x_251 = x_242; +} else { + lean_dec_ref(x_242); + x_251 = lean_box(0); +} +x_252 = l_Std_PersistentArray_push___rarg(x_249, x_240); +if (lean_is_scalar(x_251)) { + x_253 = lean_alloc_ctor(0, 7, 0); +} else { + x_253 = x_251; +} +lean_ctor_set(x_253, 0, x_244); +lean_ctor_set(x_253, 1, x_245); +lean_ctor_set(x_253, 2, x_246); +lean_ctor_set(x_253, 3, x_247); +lean_ctor_set(x_253, 4, x_248); +lean_ctor_set(x_253, 5, x_252); +lean_ctor_set(x_253, 6, x_250); +x_254 = lean_st_ref_set(x_7, x_253, x_243); +x_255 = lean_ctor_get(x_254, 1); +lean_inc(x_255); +if (lean_is_exclusive(x_254)) { + lean_ctor_release(x_254, 0); + lean_ctor_release(x_254, 1); + x_256 = x_254; +} else { + lean_dec_ref(x_254); + x_256 = lean_box(0); +} +x_257 = lean_box(0); +if (lean_is_scalar(x_256)) { + x_258 = lean_alloc_ctor(0, 2, 0); +} else { + x_258 = x_256; +} +lean_ctor_set(x_258, 0, x_257); +lean_ctor_set(x_258, 1, x_255); +return x_258; +} +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_traceSimpCall___spec__9(lean_object* x_1, size_t x_2, size_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) { +_start: +{ +uint8_t x_10; +x_10 = lean_usize_dec_lt(x_3, x_2); +if (x_10 == 0) +{ +lean_object* x_11; +lean_dec(x_7); +lean_dec(x_1); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_4); +lean_ctor_set(x_11, 1, x_9); +return x_11; +} +else +{ +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; size_t x_29; size_t x_30; lean_object* x_31; +x_12 = lean_array_uget(x_4, x_3); +x_13 = lean_unsigned_to_nat(0u); +x_14 = lean_array_uset(x_4, x_3, x_13); +lean_inc(x_7); +x_15 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Tactic_traceSimpCall___spec__7___rarg(x_7, x_8, x_9); +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 = lean_st_ref_get(x_8, x_17); +x_19 = lean_ctor_get(x_18, 1); +lean_inc(x_19); +lean_dec(x_18); +x_20 = l_Lean_Elab_Tactic_tacticToDischarge___closed__13; +lean_inc(x_1); +lean_inc(x_16); +x_21 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_21, 0, x_16); +lean_ctor_set(x_21, 1, x_20); +lean_ctor_set(x_21, 2, x_1); +x_22 = lean_mk_syntax_ident(x_12); +x_23 = l_Lean_Elab_Tactic_tacticToDischarge___closed__18; +lean_inc(x_21); +x_24 = lean_array_push(x_23, x_21); +x_25 = lean_array_push(x_24, x_21); +x_26 = lean_array_push(x_25, x_22); +x_27 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__4; +x_28 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_28, 0, x_16); +lean_ctor_set(x_28, 1, x_27); +lean_ctor_set(x_28, 2, x_26); +x_29 = 1; +x_30 = lean_usize_add(x_3, x_29); +x_31 = lean_array_uset(x_14, x_3, x_28); +x_3 = x_30; +x_4 = x_31; +x_9 = x_19; +goto _start; +} +} +} +static lean_object* _init_l_Std_RBNode_forIn_visit___at_Lean_Elab_Tactic_traceSimpCall___spec__10___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Init.Data.Option.BasicAux", 25); +return x_1; +} +} +static lean_object* _init_l_Std_RBNode_forIn_visit___at_Lean_Elab_Tactic_traceSimpCall___spec__10___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Option.get!", 11); +return x_1; +} +} +static lean_object* _init_l_Std_RBNode_forIn_visit___at_Lean_Elab_Tactic_traceSimpCall___spec__10___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("value is none", 13); +return x_1; +} +} +static lean_object* _init_l_Std_RBNode_forIn_visit___at_Lean_Elab_Tactic_traceSimpCall___spec__10___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_1 = l_Std_RBNode_forIn_visit___at_Lean_Elab_Tactic_traceSimpCall___spec__10___closed__1; +x_2 = l_Std_RBNode_forIn_visit___at_Lean_Elab_Tactic_traceSimpCall___spec__10___closed__2; +x_3 = lean_unsigned_to_nat(16u); +x_4 = lean_unsigned_to_nat(14u); +x_5 = l_Std_RBNode_forIn_visit___at_Lean_Elab_Tactic_traceSimpCall___spec__10___closed__3; +x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Std_RBNode_forIn_visit___at_Lean_Elab_Tactic_traceSimpCall___spec__10(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_5) == 0) +{ +lean_object* x_12; lean_object* x_13; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_12 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_12, 0, x_6); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_11); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_14 = lean_ctor_get(x_5, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_5, 1); +lean_inc(x_15); +x_16 = lean_ctor_get(x_5, 3); +lean_inc(x_16); +lean_dec(x_5); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_17 = l_Std_RBNode_forIn_visit___at_Lean_Elab_Tactic_traceSimpCall___spec__10(x_1, x_2, x_3, x_4, x_14, x_6, x_7, x_8, x_9, x_10, x_11); +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 = !lean_is_exclusive(x_18); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_27; +x_21 = lean_ctor_get(x_18, 0); +x_27 = !lean_is_exclusive(x_21); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_28 = lean_ctor_get(x_21, 0); +x_29 = lean_ctor_get(x_21, 1); +x_30 = lean_ctor_get(x_1, 3); +x_31 = l_Std_RBNode_find___at_Lean_Elab_Tactic_traceSimpCall___spec__1(x_30, x_15); +if (lean_obj_tag(x_31) == 0) +{ +lean_object* x_32; +lean_inc(x_15); +lean_inc(x_3); +x_32 = lean_local_ctx_find(x_3, x_15); +if (lean_obj_tag(x_32) == 0) +{ +uint8_t x_33; +lean_inc(x_15); +lean_inc(x_4); +x_33 = l_Lean_Environment_contains(x_4, x_15); +if (x_33 == 0) +{ +lean_dec(x_15); +x_22 = x_18; +x_23 = x_19; +goto block_26; +} +else +{ +lean_object* x_34; uint8_t x_35; +x_34 = l_Lean_Elab_Tactic_mkSimpContext___lambda__2___closed__5; +x_35 = lean_name_eq(x_15, x_34); +if (x_35 == 0) +{ +uint8_t x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_36 = 0; +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_37 = l_Lean_unresolveNameGlobal___at_Lean_Elab_Tactic_traceSimpCall___spec__2(x_15, x_36, x_7, x_8, x_9, x_10, x_19); +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +lean_dec(x_37); +lean_inc(x_9); +x_40 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Tactic_traceSimpCall___spec__7___rarg(x_9, x_10, x_39); +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); +lean_dec(x_40); +x_43 = lean_st_ref_get(x_10, x_42); +x_44 = lean_ctor_get(x_43, 1); +lean_inc(x_44); +lean_dec(x_43); +x_45 = l_Lean_Elab_Tactic_tacticToDischarge___closed__13; +lean_inc(x_2); +lean_inc(x_41); +x_46 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_46, 0, x_41); +lean_ctor_set(x_46, 1, x_45); +lean_ctor_set(x_46, 2, x_2); +x_47 = lean_mk_syntax_ident(x_38); +x_48 = l_Lean_Elab_Tactic_tacticToDischarge___closed__18; +lean_inc(x_46); +x_49 = lean_array_push(x_48, x_46); +x_50 = lean_array_push(x_49, x_46); +x_51 = lean_array_push(x_50, x_47); +x_52 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__4; +x_53 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_53, 0, x_41); +lean_ctor_set(x_53, 1, x_52); +lean_ctor_set(x_53, 2, x_51); +x_54 = lean_array_push(x_28, x_53); +lean_ctor_set(x_21, 0, x_54); +x_22 = x_18; +x_23 = x_44; +goto block_26; +} +else +{ +lean_dec(x_15); +x_22 = x_18; +x_23 = x_19; +goto block_26; +} +} +} +else +{ +lean_dec(x_15); +if (lean_obj_tag(x_29) == 0) +{ +lean_object* x_55; +lean_dec(x_32); +x_55 = lean_box(0); +lean_ctor_set(x_21, 1, x_55); +x_22 = x_18; +x_23 = x_19; +goto block_26; +} +else +{ +lean_object* x_56; uint8_t x_57; +x_56 = lean_ctor_get(x_32, 0); +lean_inc(x_56); +lean_dec(x_32); +x_57 = !lean_is_exclusive(x_29); +if (x_57 == 0) +{ +lean_object* x_58; lean_object* x_59; uint8_t x_60; +x_58 = lean_ctor_get(x_29, 0); +x_59 = l_Lean_LocalDecl_userName(x_56); +lean_inc(x_59); +x_60 = lean_is_inaccessible_user_name(x_59); +if (x_60 == 0) +{ +lean_object* x_61; lean_object* x_62; +lean_inc(x_59); +lean_inc(x_3); +x_61 = lean_local_ctx_find_from_user_name(x_3, x_59); +x_62 = l_Lean_LocalDecl_fvarId(x_56); +lean_dec(x_56); +if (lean_obj_tag(x_61) == 0) +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t x_66; +x_63 = l_Std_RBNode_forIn_visit___at_Lean_Elab_Tactic_traceSimpCall___spec__10___closed__4; +x_64 = l_panic___at_Lean_LocalDecl_setBinderInfo___spec__1(x_63); +x_65 = l_Lean_LocalDecl_fvarId(x_64); +lean_dec(x_64); +x_66 = lean_name_eq(x_65, x_62); +lean_dec(x_62); +lean_dec(x_65); +if (x_66 == 0) +{ +lean_object* x_67; +lean_dec(x_59); +lean_free_object(x_29); +lean_dec(x_58); +x_67 = lean_box(0); +lean_ctor_set(x_21, 1, x_67); +x_22 = x_18; +x_23 = x_19; +goto block_26; +} +else +{ +lean_object* x_68; +x_68 = lean_array_push(x_58, x_59); +lean_ctor_set(x_29, 0, x_68); +x_22 = x_18; +x_23 = x_19; +goto block_26; +} +} +else +{ +uint8_t x_69; +lean_free_object(x_29); +x_69 = !lean_is_exclusive(x_61); +if (x_69 == 0) +{ +lean_object* x_70; lean_object* x_71; uint8_t x_72; +x_70 = lean_ctor_get(x_61, 0); +x_71 = l_Lean_LocalDecl_fvarId(x_70); +lean_dec(x_70); +x_72 = lean_name_eq(x_71, x_62); +lean_dec(x_62); +lean_dec(x_71); +if (x_72 == 0) +{ +lean_object* x_73; +lean_free_object(x_61); +lean_dec(x_59); +lean_dec(x_58); +x_73 = lean_box(0); +lean_ctor_set(x_21, 1, x_73); +x_22 = x_18; +x_23 = x_19; +goto block_26; +} +else +{ +lean_object* x_74; +x_74 = lean_array_push(x_58, x_59); +lean_ctor_set(x_61, 0, x_74); +lean_ctor_set(x_21, 1, x_61); +x_22 = x_18; +x_23 = x_19; +goto block_26; +} +} +else +{ +lean_object* x_75; lean_object* x_76; uint8_t x_77; +x_75 = lean_ctor_get(x_61, 0); +lean_inc(x_75); +lean_dec(x_61); +x_76 = l_Lean_LocalDecl_fvarId(x_75); +lean_dec(x_75); +x_77 = lean_name_eq(x_76, x_62); +lean_dec(x_62); +lean_dec(x_76); +if (x_77 == 0) +{ +lean_object* x_78; +lean_dec(x_59); +lean_dec(x_58); +x_78 = lean_box(0); +lean_ctor_set(x_21, 1, x_78); +x_22 = x_18; +x_23 = x_19; +goto block_26; +} +else +{ +lean_object* x_79; lean_object* x_80; +x_79 = lean_array_push(x_58, x_59); +x_80 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_80, 0, x_79); +lean_ctor_set(x_21, 1, x_80); +x_22 = x_18; +x_23 = x_19; +goto block_26; +} +} +} +} +else +{ +lean_object* x_81; +lean_dec(x_59); +lean_free_object(x_29); +lean_dec(x_58); +lean_dec(x_56); +x_81 = lean_box(0); +lean_ctor_set(x_21, 1, x_81); +x_22 = x_18; +x_23 = x_19; +goto block_26; +} +} +else +{ +lean_object* x_82; lean_object* x_83; uint8_t x_84; +x_82 = lean_ctor_get(x_29, 0); +lean_inc(x_82); +lean_dec(x_29); +x_83 = l_Lean_LocalDecl_userName(x_56); +lean_inc(x_83); +x_84 = lean_is_inaccessible_user_name(x_83); +if (x_84 == 0) +{ +lean_object* x_85; lean_object* x_86; +lean_inc(x_83); +lean_inc(x_3); +x_85 = lean_local_ctx_find_from_user_name(x_3, x_83); +x_86 = l_Lean_LocalDecl_fvarId(x_56); +lean_dec(x_56); +if (lean_obj_tag(x_85) == 0) +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; +x_87 = l_Std_RBNode_forIn_visit___at_Lean_Elab_Tactic_traceSimpCall___spec__10___closed__4; +x_88 = l_panic___at_Lean_LocalDecl_setBinderInfo___spec__1(x_87); +x_89 = l_Lean_LocalDecl_fvarId(x_88); +lean_dec(x_88); +x_90 = lean_name_eq(x_89, x_86); +lean_dec(x_86); +lean_dec(x_89); +if (x_90 == 0) +{ +lean_object* x_91; +lean_dec(x_83); +lean_dec(x_82); +x_91 = lean_box(0); +lean_ctor_set(x_21, 1, x_91); +x_22 = x_18; +x_23 = x_19; +goto block_26; +} +else +{ +lean_object* x_92; lean_object* x_93; +x_92 = lean_array_push(x_82, x_83); +x_93 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_93, 0, x_92); +lean_ctor_set(x_21, 1, x_93); +x_22 = x_18; +x_23 = x_19; +goto block_26; +} +} +else +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_94 = lean_ctor_get(x_85, 0); +lean_inc(x_94); +if (lean_is_exclusive(x_85)) { + lean_ctor_release(x_85, 0); + x_95 = x_85; +} else { + lean_dec_ref(x_85); + x_95 = lean_box(0); +} +x_96 = l_Lean_LocalDecl_fvarId(x_94); +lean_dec(x_94); +x_97 = lean_name_eq(x_96, x_86); +lean_dec(x_86); +lean_dec(x_96); +if (x_97 == 0) +{ +lean_object* x_98; +lean_dec(x_95); +lean_dec(x_83); +lean_dec(x_82); +x_98 = lean_box(0); +lean_ctor_set(x_21, 1, x_98); +x_22 = x_18; +x_23 = x_19; +goto block_26; +} +else +{ +lean_object* x_99; lean_object* x_100; +x_99 = lean_array_push(x_82, x_83); +if (lean_is_scalar(x_95)) { + x_100 = lean_alloc_ctor(1, 1, 0); +} else { + x_100 = x_95; +} +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_21, 1, x_100); +x_22 = x_18; +x_23 = x_19; +goto block_26; +} +} +} +else +{ +lean_object* x_101; +lean_dec(x_83); +lean_dec(x_82); +lean_dec(x_56); +x_101 = lean_box(0); +lean_ctor_set(x_21, 1, x_101); +x_22 = x_18; +x_23 = x_19; +goto block_26; +} +} +} +} +} +else +{ +lean_object* x_102; lean_object* x_103; +lean_dec(x_15); +x_102 = lean_ctor_get(x_31, 0); +lean_inc(x_102); +lean_dec(x_31); +x_103 = lean_array_push(x_28, x_102); +lean_ctor_set(x_21, 0, x_103); +x_22 = x_18; +x_23 = x_19; +goto block_26; +} +} +else +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; +x_104 = lean_ctor_get(x_21, 0); +x_105 = lean_ctor_get(x_21, 1); +lean_inc(x_105); +lean_inc(x_104); +lean_dec(x_21); +x_106 = lean_ctor_get(x_1, 3); +x_107 = l_Std_RBNode_find___at_Lean_Elab_Tactic_traceSimpCall___spec__1(x_106, x_15); +if (lean_obj_tag(x_107) == 0) +{ +lean_object* x_108; +lean_inc(x_15); +lean_inc(x_3); +x_108 = lean_local_ctx_find(x_3, x_15); +if (lean_obj_tag(x_108) == 0) +{ +uint8_t x_109; +lean_inc(x_15); +lean_inc(x_4); +x_109 = l_Lean_Environment_contains(x_4, x_15); +if (x_109 == 0) +{ +lean_object* x_110; +lean_dec(x_15); +x_110 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_110, 0, x_104); +lean_ctor_set(x_110, 1, x_105); +lean_ctor_set(x_18, 0, x_110); +x_22 = x_18; +x_23 = x_19; +goto block_26; +} +else +{ +lean_object* x_111; uint8_t x_112; +x_111 = l_Lean_Elab_Tactic_mkSimpContext___lambda__2___closed__5; +x_112 = lean_name_eq(x_15, x_111); +if (x_112 == 0) +{ +uint8_t 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_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; +x_113 = 0; +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_114 = l_Lean_unresolveNameGlobal___at_Lean_Elab_Tactic_traceSimpCall___spec__2(x_15, x_113, x_7, x_8, x_9, x_10, x_19); +x_115 = lean_ctor_get(x_114, 0); +lean_inc(x_115); +x_116 = lean_ctor_get(x_114, 1); +lean_inc(x_116); +lean_dec(x_114); +lean_inc(x_9); +x_117 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Tactic_traceSimpCall___spec__7___rarg(x_9, x_10, x_116); +x_118 = lean_ctor_get(x_117, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); +lean_dec(x_117); +x_120 = lean_st_ref_get(x_10, x_119); +x_121 = lean_ctor_get(x_120, 1); +lean_inc(x_121); +lean_dec(x_120); +x_122 = l_Lean_Elab_Tactic_tacticToDischarge___closed__13; +lean_inc(x_2); +lean_inc(x_118); +x_123 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_123, 0, x_118); +lean_ctor_set(x_123, 1, x_122); +lean_ctor_set(x_123, 2, x_2); +x_124 = lean_mk_syntax_ident(x_115); +x_125 = l_Lean_Elab_Tactic_tacticToDischarge___closed__18; +lean_inc(x_123); +x_126 = lean_array_push(x_125, x_123); +x_127 = lean_array_push(x_126, x_123); +x_128 = lean_array_push(x_127, x_124); +x_129 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__4; +x_130 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_130, 0, x_118); +lean_ctor_set(x_130, 1, x_129); +lean_ctor_set(x_130, 2, x_128); +x_131 = lean_array_push(x_104, x_130); +x_132 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_132, 0, x_131); +lean_ctor_set(x_132, 1, x_105); +lean_ctor_set(x_18, 0, x_132); +x_22 = x_18; +x_23 = x_121; +goto block_26; +} +else +{ +lean_object* x_133; +lean_dec(x_15); +x_133 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_133, 0, x_104); +lean_ctor_set(x_133, 1, x_105); +lean_ctor_set(x_18, 0, x_133); +x_22 = x_18; +x_23 = x_19; +goto block_26; +} +} +} +else +{ +lean_dec(x_15); +if (lean_obj_tag(x_105) == 0) +{ +lean_object* x_134; lean_object* x_135; +lean_dec(x_108); +x_134 = lean_box(0); +x_135 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_135, 0, x_104); +lean_ctor_set(x_135, 1, x_134); +lean_ctor_set(x_18, 0, x_135); +x_22 = x_18; +x_23 = x_19; +goto block_26; +} +else +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; +x_136 = lean_ctor_get(x_108, 0); +lean_inc(x_136); +lean_dec(x_108); +x_137 = lean_ctor_get(x_105, 0); +lean_inc(x_137); +if (lean_is_exclusive(x_105)) { + lean_ctor_release(x_105, 0); + x_138 = x_105; +} else { + lean_dec_ref(x_105); + x_138 = lean_box(0); +} +x_139 = l_Lean_LocalDecl_userName(x_136); +lean_inc(x_139); +x_140 = lean_is_inaccessible_user_name(x_139); +if (x_140 == 0) +{ +lean_object* x_141; lean_object* x_142; +lean_inc(x_139); +lean_inc(x_3); +x_141 = lean_local_ctx_find_from_user_name(x_3, x_139); +x_142 = l_Lean_LocalDecl_fvarId(x_136); +lean_dec(x_136); +if (lean_obj_tag(x_141) == 0) +{ +lean_object* x_143; lean_object* x_144; lean_object* x_145; uint8_t x_146; +x_143 = l_Std_RBNode_forIn_visit___at_Lean_Elab_Tactic_traceSimpCall___spec__10___closed__4; +x_144 = l_panic___at_Lean_LocalDecl_setBinderInfo___spec__1(x_143); +x_145 = l_Lean_LocalDecl_fvarId(x_144); +lean_dec(x_144); +x_146 = lean_name_eq(x_145, x_142); +lean_dec(x_142); +lean_dec(x_145); +if (x_146 == 0) +{ +lean_object* x_147; lean_object* x_148; +lean_dec(x_139); +lean_dec(x_138); +lean_dec(x_137); +x_147 = lean_box(0); +x_148 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_148, 0, x_104); +lean_ctor_set(x_148, 1, x_147); +lean_ctor_set(x_18, 0, x_148); +x_22 = x_18; +x_23 = x_19; +goto block_26; +} +else +{ +lean_object* x_149; lean_object* x_150; lean_object* x_151; +x_149 = lean_array_push(x_137, x_139); +if (lean_is_scalar(x_138)) { + x_150 = lean_alloc_ctor(1, 1, 0); +} else { + x_150 = x_138; +} +lean_ctor_set(x_150, 0, x_149); +x_151 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_151, 0, x_104); +lean_ctor_set(x_151, 1, x_150); +lean_ctor_set(x_18, 0, x_151); +x_22 = x_18; +x_23 = x_19; +goto block_26; +} +} +else +{ +lean_object* x_152; lean_object* x_153; lean_object* x_154; uint8_t x_155; +lean_dec(x_138); +x_152 = lean_ctor_get(x_141, 0); +lean_inc(x_152); +if (lean_is_exclusive(x_141)) { + lean_ctor_release(x_141, 0); + x_153 = x_141; +} else { + lean_dec_ref(x_141); + x_153 = lean_box(0); +} +x_154 = l_Lean_LocalDecl_fvarId(x_152); +lean_dec(x_152); +x_155 = lean_name_eq(x_154, x_142); +lean_dec(x_142); +lean_dec(x_154); +if (x_155 == 0) +{ +lean_object* x_156; lean_object* x_157; +lean_dec(x_153); +lean_dec(x_139); +lean_dec(x_137); +x_156 = lean_box(0); +x_157 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_157, 0, x_104); +lean_ctor_set(x_157, 1, x_156); +lean_ctor_set(x_18, 0, x_157); +x_22 = x_18; +x_23 = x_19; +goto block_26; +} +else +{ +lean_object* x_158; lean_object* x_159; lean_object* x_160; +x_158 = lean_array_push(x_137, x_139); +if (lean_is_scalar(x_153)) { + x_159 = lean_alloc_ctor(1, 1, 0); +} else { + x_159 = x_153; +} +lean_ctor_set(x_159, 0, x_158); +x_160 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_160, 0, x_104); +lean_ctor_set(x_160, 1, x_159); +lean_ctor_set(x_18, 0, x_160); +x_22 = x_18; +x_23 = x_19; +goto block_26; +} +} +} +else +{ +lean_object* x_161; lean_object* x_162; +lean_dec(x_139); +lean_dec(x_138); +lean_dec(x_137); +lean_dec(x_136); +x_161 = lean_box(0); +x_162 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_162, 0, x_104); +lean_ctor_set(x_162, 1, x_161); +lean_ctor_set(x_18, 0, x_162); +x_22 = x_18; +x_23 = x_19; +goto block_26; +} +} +} +} +else +{ +lean_object* x_163; lean_object* x_164; lean_object* x_165; +lean_dec(x_15); +x_163 = lean_ctor_get(x_107, 0); +lean_inc(x_163); +lean_dec(x_107); +x_164 = lean_array_push(x_104, x_163); +x_165 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_165, 0, x_164); +lean_ctor_set(x_165, 1, x_105); +lean_ctor_set(x_18, 0, x_165); +x_22 = x_18; +x_23 = x_19; +goto block_26; +} +} +block_26: +{ +lean_object* x_24; +x_24 = lean_ctor_get(x_22, 0); +lean_inc(x_24); +lean_dec(x_22); +x_5 = x_16; +x_6 = x_24; +x_11 = x_23; +goto _start; +} +} +else +{ +lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; +x_166 = lean_ctor_get(x_18, 0); +lean_inc(x_166); +lean_dec(x_18); +x_172 = lean_ctor_get(x_166, 0); +lean_inc(x_172); +x_173 = lean_ctor_get(x_166, 1); +lean_inc(x_173); +if (lean_is_exclusive(x_166)) { + lean_ctor_release(x_166, 0); + lean_ctor_release(x_166, 1); + x_174 = x_166; +} else { + lean_dec_ref(x_166); + x_174 = lean_box(0); +} +x_175 = lean_ctor_get(x_1, 3); +x_176 = l_Std_RBNode_find___at_Lean_Elab_Tactic_traceSimpCall___spec__1(x_175, x_15); +if (lean_obj_tag(x_176) == 0) +{ +lean_object* x_177; +lean_inc(x_15); +lean_inc(x_3); +x_177 = lean_local_ctx_find(x_3, x_15); +if (lean_obj_tag(x_177) == 0) +{ +uint8_t x_178; +lean_inc(x_15); +lean_inc(x_4); +x_178 = l_Lean_Environment_contains(x_4, x_15); +if (x_178 == 0) +{ +lean_object* x_179; lean_object* x_180; +lean_dec(x_15); +if (lean_is_scalar(x_174)) { + x_179 = lean_alloc_ctor(0, 2, 0); +} else { + x_179 = x_174; +} +lean_ctor_set(x_179, 0, x_172); +lean_ctor_set(x_179, 1, x_173); +x_180 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_180, 0, x_179); +x_167 = x_180; +x_168 = x_19; +goto block_171; +} +else +{ +lean_object* x_181; uint8_t x_182; +x_181 = l_Lean_Elab_Tactic_mkSimpContext___lambda__2___closed__5; +x_182 = lean_name_eq(x_15, x_181); +if (x_182 == 0) +{ +uint8_t x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; +x_183 = 0; +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_184 = l_Lean_unresolveNameGlobal___at_Lean_Elab_Tactic_traceSimpCall___spec__2(x_15, x_183, x_7, x_8, x_9, x_10, x_19); +x_185 = lean_ctor_get(x_184, 0); +lean_inc(x_185); +x_186 = lean_ctor_get(x_184, 1); +lean_inc(x_186); +lean_dec(x_184); +lean_inc(x_9); +x_187 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Tactic_traceSimpCall___spec__7___rarg(x_9, x_10, x_186); +x_188 = lean_ctor_get(x_187, 0); +lean_inc(x_188); +x_189 = lean_ctor_get(x_187, 1); +lean_inc(x_189); +lean_dec(x_187); +x_190 = lean_st_ref_get(x_10, x_189); +x_191 = lean_ctor_get(x_190, 1); +lean_inc(x_191); +lean_dec(x_190); +x_192 = l_Lean_Elab_Tactic_tacticToDischarge___closed__13; +lean_inc(x_2); +lean_inc(x_188); +x_193 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_193, 0, x_188); +lean_ctor_set(x_193, 1, x_192); +lean_ctor_set(x_193, 2, x_2); +x_194 = lean_mk_syntax_ident(x_185); +x_195 = l_Lean_Elab_Tactic_tacticToDischarge___closed__18; +lean_inc(x_193); +x_196 = lean_array_push(x_195, x_193); +x_197 = lean_array_push(x_196, x_193); +x_198 = lean_array_push(x_197, x_194); +x_199 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__4; +x_200 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_200, 0, x_188); +lean_ctor_set(x_200, 1, x_199); +lean_ctor_set(x_200, 2, x_198); +x_201 = lean_array_push(x_172, x_200); +if (lean_is_scalar(x_174)) { + x_202 = lean_alloc_ctor(0, 2, 0); +} else { + x_202 = x_174; +} +lean_ctor_set(x_202, 0, x_201); +lean_ctor_set(x_202, 1, x_173); +x_203 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_203, 0, x_202); +x_167 = x_203; +x_168 = x_191; +goto block_171; +} +else +{ +lean_object* x_204; lean_object* x_205; +lean_dec(x_15); +if (lean_is_scalar(x_174)) { + x_204 = lean_alloc_ctor(0, 2, 0); +} else { + x_204 = x_174; +} +lean_ctor_set(x_204, 0, x_172); +lean_ctor_set(x_204, 1, x_173); +x_205 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_205, 0, x_204); +x_167 = x_205; +x_168 = x_19; +goto block_171; +} +} +} +else +{ +lean_dec(x_15); +if (lean_obj_tag(x_173) == 0) +{ +lean_object* x_206; lean_object* x_207; lean_object* x_208; +lean_dec(x_177); +x_206 = lean_box(0); +if (lean_is_scalar(x_174)) { + x_207 = lean_alloc_ctor(0, 2, 0); +} else { + x_207 = x_174; +} +lean_ctor_set(x_207, 0, x_172); +lean_ctor_set(x_207, 1, x_206); +x_208 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_208, 0, x_207); +x_167 = x_208; +x_168 = x_19; +goto block_171; +} +else +{ +lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; uint8_t x_213; +x_209 = lean_ctor_get(x_177, 0); +lean_inc(x_209); +lean_dec(x_177); +x_210 = lean_ctor_get(x_173, 0); +lean_inc(x_210); +if (lean_is_exclusive(x_173)) { + lean_ctor_release(x_173, 0); + x_211 = x_173; +} else { + lean_dec_ref(x_173); + x_211 = lean_box(0); +} +x_212 = l_Lean_LocalDecl_userName(x_209); +lean_inc(x_212); +x_213 = lean_is_inaccessible_user_name(x_212); +if (x_213 == 0) +{ +lean_object* x_214; lean_object* x_215; +lean_inc(x_212); +lean_inc(x_3); +x_214 = lean_local_ctx_find_from_user_name(x_3, x_212); +x_215 = l_Lean_LocalDecl_fvarId(x_209); +lean_dec(x_209); +if (lean_obj_tag(x_214) == 0) +{ +lean_object* x_216; lean_object* x_217; lean_object* x_218; uint8_t x_219; +x_216 = l_Std_RBNode_forIn_visit___at_Lean_Elab_Tactic_traceSimpCall___spec__10___closed__4; +x_217 = l_panic___at_Lean_LocalDecl_setBinderInfo___spec__1(x_216); +x_218 = l_Lean_LocalDecl_fvarId(x_217); +lean_dec(x_217); +x_219 = lean_name_eq(x_218, x_215); +lean_dec(x_215); +lean_dec(x_218); +if (x_219 == 0) +{ +lean_object* x_220; lean_object* x_221; lean_object* x_222; +lean_dec(x_212); +lean_dec(x_211); +lean_dec(x_210); +x_220 = lean_box(0); +if (lean_is_scalar(x_174)) { + x_221 = lean_alloc_ctor(0, 2, 0); +} else { + x_221 = x_174; +} +lean_ctor_set(x_221, 0, x_172); +lean_ctor_set(x_221, 1, x_220); +x_222 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_222, 0, x_221); +x_167 = x_222; +x_168 = x_19; +goto block_171; +} +else +{ +lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; +x_223 = lean_array_push(x_210, x_212); +if (lean_is_scalar(x_211)) { + x_224 = lean_alloc_ctor(1, 1, 0); +} else { + x_224 = x_211; +} +lean_ctor_set(x_224, 0, x_223); +if (lean_is_scalar(x_174)) { + x_225 = lean_alloc_ctor(0, 2, 0); +} else { + x_225 = x_174; +} +lean_ctor_set(x_225, 0, x_172); +lean_ctor_set(x_225, 1, x_224); +x_226 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_226, 0, x_225); +x_167 = x_226; +x_168 = x_19; +goto block_171; +} +} +else +{ +lean_object* x_227; lean_object* x_228; lean_object* x_229; uint8_t x_230; +lean_dec(x_211); +x_227 = lean_ctor_get(x_214, 0); +lean_inc(x_227); +if (lean_is_exclusive(x_214)) { + lean_ctor_release(x_214, 0); + x_228 = x_214; +} else { + lean_dec_ref(x_214); + x_228 = lean_box(0); +} +x_229 = l_Lean_LocalDecl_fvarId(x_227); +lean_dec(x_227); +x_230 = lean_name_eq(x_229, x_215); +lean_dec(x_215); +lean_dec(x_229); +if (x_230 == 0) +{ +lean_object* x_231; lean_object* x_232; lean_object* x_233; +lean_dec(x_228); +lean_dec(x_212); +lean_dec(x_210); +x_231 = lean_box(0); +if (lean_is_scalar(x_174)) { + x_232 = lean_alloc_ctor(0, 2, 0); +} else { + x_232 = x_174; +} +lean_ctor_set(x_232, 0, x_172); +lean_ctor_set(x_232, 1, x_231); +x_233 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_233, 0, x_232); +x_167 = x_233; +x_168 = x_19; +goto block_171; +} +else +{ +lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; +x_234 = lean_array_push(x_210, x_212); +if (lean_is_scalar(x_228)) { + x_235 = lean_alloc_ctor(1, 1, 0); +} else { + x_235 = x_228; +} +lean_ctor_set(x_235, 0, x_234); +if (lean_is_scalar(x_174)) { + x_236 = lean_alloc_ctor(0, 2, 0); +} else { + x_236 = x_174; +} +lean_ctor_set(x_236, 0, x_172); +lean_ctor_set(x_236, 1, x_235); +x_237 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_237, 0, x_236); +x_167 = x_237; +x_168 = x_19; +goto block_171; +} +} +} +else +{ +lean_object* x_238; lean_object* x_239; lean_object* x_240; +lean_dec(x_212); +lean_dec(x_211); +lean_dec(x_210); +lean_dec(x_209); +x_238 = lean_box(0); +if (lean_is_scalar(x_174)) { + x_239 = lean_alloc_ctor(0, 2, 0); +} else { + x_239 = x_174; +} +lean_ctor_set(x_239, 0, x_172); +lean_ctor_set(x_239, 1, x_238); +x_240 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_240, 0, x_239); +x_167 = x_240; +x_168 = x_19; +goto block_171; +} +} +} +} +else +{ +lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; +lean_dec(x_15); +x_241 = lean_ctor_get(x_176, 0); +lean_inc(x_241); +lean_dec(x_176); +x_242 = lean_array_push(x_172, x_241); +if (lean_is_scalar(x_174)) { + x_243 = lean_alloc_ctor(0, 2, 0); +} else { + x_243 = x_174; +} +lean_ctor_set(x_243, 0, x_242); +lean_ctor_set(x_243, 1, x_173); +x_244 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_244, 0, x_243); +x_167 = x_244; +x_168 = x_19; +goto block_171; +} +block_171: +{ +lean_object* x_169; +x_169 = lean_ctor_get(x_167, 0); +lean_inc(x_169); +lean_dec(x_167); +x_5 = x_16; +x_6 = x_169; +x_11 = x_168; +goto _start; +} +} +} +} +} +static lean_object* _init_l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Try this: ", 10); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("[", 1); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(2); +x_2 = l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__4; +x_3 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes(",", 1); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(2); +x_2 = l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__6; +x_3 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__8() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("]", 1); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(2); +x_2 = l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__8; +x_3 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic_tacticToDischarge___closed__18; +x_2 = l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__5; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_traceSimpCall___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) { +_start: +{ +uint8_t x_10; +lean_dec(x_4); +x_10 = l_Array_isEmpty___rarg(x_2); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; lean_object* x_30; +lean_dec(x_1); +x_11 = l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__7; +x_12 = l_Lean_Syntax_mkSep(x_2, x_11); +lean_dec(x_2); +x_13 = l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__10; +x_14 = lean_array_push(x_13, x_12); +x_15 = l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__9; +x_16 = lean_array_push(x_14, x_15); +x_17 = lean_box(2); +x_18 = l_Lean_Elab_Tactic_tacticToDischarge___closed__13; +x_19 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +lean_ctor_set(x_19, 2, x_16); +x_20 = lean_unsigned_to_nat(4u); +x_21 = l_Lean_Syntax_setArg(x_3, x_20, x_19); +x_22 = lean_unsigned_to_nat(0u); +x_23 = l_Lean_Syntax_getArg(x_21, x_22); +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_21); +x_25 = l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__2; +x_26 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_24); +x_27 = l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__3; +x_28 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +x_29 = 0; +x_30 = l_Lean_logAt___at_Lean_Elab_Tactic_traceSimpCall___spec__8(x_23, x_28, x_29, 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_23); +return x_30; +} +else +{ +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; uint8_t x_43; lean_object* x_44; +lean_dec(x_2); +x_31 = lean_box(2); +x_32 = l_Lean_Elab_Tactic_tacticToDischarge___closed__13; +x_33 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_33, 0, x_31); +lean_ctor_set(x_33, 1, x_32); +lean_ctor_set(x_33, 2, x_1); +x_34 = lean_unsigned_to_nat(4u); +x_35 = l_Lean_Syntax_setArg(x_3, x_34, x_33); +x_36 = lean_unsigned_to_nat(0u); +x_37 = l_Lean_Syntax_getArg(x_35, x_36); +x_38 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_38, 0, x_35); +x_39 = l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__2; +x_40 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_38); +x_41 = l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__3; +x_42 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +x_43 = 0; +x_44 = l_Lean_logAt___at_Lean_Elab_Tactic_traceSimpCall___spec__8(x_37, x_42, x_43, 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_37); +return x_44; +} +} +} +static lean_object* _init_l_Lean_Elab_Tactic_traceSimpCall___lambda__2___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Tactic_elabSimpConfigCore___closed__8; +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_traceSimpCall___lambda__2___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic_elabSimpConfigCore___closed__8; +x_2 = l_Lean_Elab_Tactic_traceSimpCall___lambda__2___closed__1; +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_traceSimpCall___lambda__2___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("*", 1); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_traceSimpCall___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) { +_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_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +lean_dec(x_4); +x_10 = lean_ctor_get(x_5, 1); +lean_inc(x_10); +x_11 = lean_st_ref_get(x_8, x_9); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = lean_ctor_get(x_12, 0); +lean_inc(x_14); +lean_dec(x_12); +x_47 = l_Lean_Elab_Tactic_elabSimpConfigCore___closed__8; +x_48 = l_Lean_Elab_Tactic_traceSimpCall___lambda__2___closed__2; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_49 = l_Std_RBNode_forIn_visit___at_Lean_Elab_Tactic_traceSimpCall___spec__10(x_1, x_47, x_10, x_14, x_2, x_48, x_5, x_6, x_7, x_8, x_13); +lean_dec(x_1); +x_50 = lean_ctor_get(x_49, 0); +lean_inc(x_50); +x_51 = lean_ctor_get(x_49, 1); +lean_inc(x_51); +lean_dec(x_49); +x_52 = lean_ctor_get(x_50, 0); +lean_inc(x_52); +lean_dec(x_50); +x_15 = x_52; +x_16 = x_51; +goto block_46; +block_46: +{ +lean_object* x_17; +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +if (lean_obj_tag(x_17) == 0) +{ +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; +x_18 = lean_ctor_get(x_15, 0); +lean_inc(x_18); +lean_dec(x_15); +lean_inc(x_7); +x_19 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Tactic_traceSimpCall___spec__7___rarg(x_7, x_8, x_16); +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = lean_st_ref_get(x_8, x_21); +x_23 = lean_ctor_get(x_22, 1); +lean_inc(x_23); +lean_dec(x_22); +x_24 = l_Lean_Elab_Tactic_traceSimpCall___lambda__2___closed__3; +lean_inc(x_20); +x_25 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_25, 0, x_20); +lean_ctor_set(x_25, 1, x_24); +x_26 = l_Lean_Elab_Tactic_tacticToDischarge___closed__19; +x_27 = lean_array_push(x_26, x_25); +x_28 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__6; +x_29 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_29, 0, x_20); +lean_ctor_set(x_29, 1, x_28); +lean_ctor_set(x_29, 2, x_27); +x_30 = lean_array_push(x_18, x_29); +x_31 = l_Lean_Elab_Tactic_elabSimpConfigCore___closed__8; +x_32 = lean_box(0); +x_33 = l_Lean_Elab_Tactic_traceSimpCall___lambda__1(x_31, x_30, x_3, x_32, x_5, x_6, x_7, x_8, x_23); +return x_33; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; size_t x_37; size_t 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; +x_34 = lean_ctor_get(x_15, 0); +lean_inc(x_34); +lean_dec(x_15); +x_35 = lean_ctor_get(x_17, 0); +lean_inc(x_35); +lean_dec(x_17); +x_36 = lean_array_get_size(x_35); +x_37 = lean_usize_of_nat(x_36); +lean_dec(x_36); +x_38 = 0; +x_39 = l_Lean_Elab_Tactic_elabSimpConfigCore___closed__8; +lean_inc(x_7); +x_40 = l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_traceSimpCall___spec__9(x_39, x_37, x_38, x_35, x_5, x_6, x_7, x_8, x_16); +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); +lean_dec(x_40); +x_43 = l_Array_append___rarg(x_34, x_41); +x_44 = lean_box(0); +x_45 = l_Lean_Elab_Tactic_traceSimpCall___lambda__1(x_39, x_43, x_3, x_44, x_5, x_6, x_7, x_8, x_42); +return x_45; +} +} +} +} +static lean_object* _init_l_Lean_Elab_Tactic_traceSimpCall___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("only", 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_traceSimpCall___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(2); +x_2 = l_Lean_Elab_Tactic_traceSimpCall___closed__1; +x_3 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_traceSimpCall___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic_tacticToDischarge___closed__19; +x_2 = l_Lean_Elab_Tactic_traceSimpCall___closed__2; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_traceSimpCall___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = lean_box(2); +x_2 = l_Lean_Elab_Tactic_tacticToDischarge___closed__13; +x_3 = l_Lean_Elab_Tactic_traceSimpCall___closed__3; +x_4 = lean_alloc_ctor(1, 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; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_traceSimpCall(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; uint8_t x_11; +x_9 = lean_unsigned_to_nat(3u); +x_10 = l_Lean_Syntax_getArg(x_1, x_9); +x_11 = l_Lean_Syntax_isNone(x_10); +lean_dec(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_box(0); +x_13 = l_Lean_Elab_Tactic_traceSimpCall___lambda__2(x_2, x_3, x_1, x_12, x_4, x_5, x_6, x_7, x_8); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_14 = l_Lean_Elab_Tactic_traceSimpCall___closed__4; +x_15 = l_Lean_Syntax_setArg(x_1, x_9, x_14); +x_16 = lean_box(0); +x_17 = l_Lean_Elab_Tactic_traceSimpCall___lambda__2(x_2, x_3, x_15, x_16, x_4, x_5, x_6, x_7, x_8); +return x_17; +} +} +} +LEAN_EXPORT lean_object* l_Std_RBNode_find___at_Lean_Elab_Tactic_traceSimpCall___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Std_RBNode_find___at_Lean_Elab_Tactic_traceSimpCall___spec__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Tactic_traceSimpCall___spec__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) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_resolveGlobalName___at_Lean_Elab_Tactic_traceSimpCall___spec__4(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_traceSimpCall___spec__5___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_Std_Range_forIn_loop___at_Lean_Elab_Tactic_traceSimpCall___spec__5___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_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_traceSimpCall___spec__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, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_traceSimpCall___spec__5(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_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal_unresolveNameCore___at_Lean_Elab_Tactic_traceSimpCall___spec__3___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_unresolveNameGlobal_unresolveNameCore___at_Lean_Elab_Tactic_traceSimpCall___spec__3___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_4); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal_unresolveNameCore___at_Lean_Elab_Tactic_traceSimpCall___spec__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) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_unresolveNameGlobal_unresolveNameCore___at_Lean_Elab_Tactic_traceSimpCall___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_traceSimpCall___spec__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) { +_start: +{ +size_t x_12; size_t x_13; lean_object* x_14; +x_12 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_13 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_14 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_traceSimpCall___spec__6(x_1, x_2, x_3, x_12, x_13, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_3); +lean_dec(x_1); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal___at_Lean_Elab_Tactic_traceSimpCall___spec__2___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_unresolveNameGlobal___at_Lean_Elab_Tactic_traceSimpCall___spec__2___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal___at_Lean_Elab_Tactic_traceSimpCall___spec__2___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) { +_start: +{ +uint8_t x_9; lean_object* x_10; +x_9 = lean_unbox(x_1); +lean_dec(x_1); +x_10 = l_Lean_unresolveNameGlobal___at_Lean_Elab_Tactic_traceSimpCall___spec__2___lambda__2(x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal___at_Lean_Elab_Tactic_traceSimpCall___spec__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: +{ +uint8_t x_8; lean_object* x_9; +x_8 = lean_unbox(x_2); +lean_dec(x_2); +x_9 = l_Lean_unresolveNameGlobal___at_Lean_Elab_Tactic_traceSimpCall___spec__2(x_1, x_8, x_3, x_4, x_5, x_6, x_7); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Tactic_traceSimpCall___spec__7___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Tactic_traceSimpCall___spec__7___rarg(x_1, x_2, x_3); +lean_dec(x_2); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Tactic_traceSimpCall___spec__7___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Tactic_traceSimpCall___spec__7(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Elab_Tactic_traceSimpCall___spec__8___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: +{ +uint8_t x_9; lean_object* x_10; +x_9 = lean_unbox(x_3); +lean_dec(x_3); +x_10 = l_Lean_logAt___at_Lean_Elab_Tactic_traceSimpCall___spec__8(x_1, x_2, x_9, 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_1); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_traceSimpCall___spec__9___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: +{ +size_t x_10; size_t x_11; lean_object* x_12; +x_10 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_11 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_12 = l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_traceSimpCall___spec__9(x_1, x_10, x_11, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Std_RBNode_forIn_visit___at_Lean_Elab_Tactic_traceSimpCall___spec__10___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_Std_RBNode_forIn_visit___at_Lean_Elab_Tactic_traceSimpCall___spec__10(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_1); +return x_12; +} +} LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_simpLocation_go(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { @@ -10267,55 +14396,156 @@ lean_inc(x_6); x_15 = l_Lean_Elab_Tactic_getMainGoal(x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); if (lean_obj_tag(x_15) == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 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_NameSet_empty; lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -x_18 = l_Lean_Meta_simpGoal(x_16, x_1, x_2, x_4, x_3, x_5, x_10, x_11, x_12, x_13, x_17); -if (lean_obj_tag(x_18) == 0) -{ -lean_object* x_19; -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); +x_19 = l_Lean_Meta_simpGoal(x_16, x_1, x_2, x_4, x_3, x_5, x_18, x_10, x_11, x_12, x_13, x_17); if (lean_obj_tag(x_19) == 0) { -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_18, 1); +lean_object* x_20; lean_object* x_21; +x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); -lean_dec(x_18); -x_21 = lean_box(0); -x_22 = l_Lean_Elab_Tactic_replaceMainGoal(x_21, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_20); -return x_22; -} -else +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +if (lean_obj_tag(x_21) == 0) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_23 = lean_ctor_get(x_19, 0); -lean_inc(x_23); +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_22 = lean_ctor_get(x_19, 1); +lean_inc(x_22); lean_dec(x_19); -x_24 = lean_ctor_get(x_18, 1); -lean_inc(x_24); -lean_dec(x_18); -x_25 = lean_ctor_get(x_23, 1); -lean_inc(x_25); -lean_dec(x_23); -x_26 = lean_box(0); -x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_25); -lean_ctor_set(x_27, 1, x_26); -x_28 = l_Lean_Elab_Tactic_replaceMainGoal(x_27, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_24); -return x_28; +x_23 = lean_ctor_get(x_20, 1); +lean_inc(x_23); +lean_dec(x_20); +x_24 = lean_box(0); +x_25 = l_Lean_Elab_Tactic_replaceMainGoal(x_24, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_22); +if (lean_obj_tag(x_25) == 0) +{ +uint8_t x_26; +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 0) +{ +lean_object* x_27; +x_27 = lean_ctor_get(x_25, 0); +lean_dec(x_27); +lean_ctor_set(x_25, 0, x_23); +return x_25; +} +else +{ +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(0, 2, 0); +lean_ctor_set(x_29, 0, x_23); +lean_ctor_set(x_29, 1, x_28); +return x_29; } } else { -uint8_t x_29; +uint8_t x_30; +lean_dec(x_23); +x_30 = !lean_is_exclusive(x_25); +if (x_30 == 0) +{ +return x_25; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_25, 0); +x_32 = lean_ctor_get(x_25, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_25); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_31); +lean_ctor_set(x_33, 1, x_32); +return x_33; +} +} +} +else +{ +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; +x_34 = lean_ctor_get(x_21, 0); +lean_inc(x_34); +lean_dec(x_21); +x_35 = lean_ctor_get(x_19, 1); +lean_inc(x_35); +lean_dec(x_19); +x_36 = lean_ctor_get(x_20, 1); +lean_inc(x_36); +lean_dec(x_20); +x_37 = lean_ctor_get(x_34, 1); +lean_inc(x_37); +lean_dec(x_34); +x_38 = lean_box(0); +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_37); +lean_ctor_set(x_39, 1, x_38); +x_40 = l_Lean_Elab_Tactic_replaceMainGoal(x_39, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_35); +if (lean_obj_tag(x_40) == 0) +{ +uint8_t x_41; +x_41 = !lean_is_exclusive(x_40); +if (x_41 == 0) +{ +lean_object* x_42; +x_42 = lean_ctor_get(x_40, 0); +lean_dec(x_42); +lean_ctor_set(x_40, 0, x_36); +return x_40; +} +else +{ +lean_object* x_43; lean_object* x_44; +x_43 = lean_ctor_get(x_40, 1); +lean_inc(x_43); +lean_dec(x_40); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_36); +lean_ctor_set(x_44, 1, x_43); +return x_44; +} +} +else +{ +uint8_t x_45; +lean_dec(x_36); +x_45 = !lean_is_exclusive(x_40); +if (x_45 == 0) +{ +return x_40; +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_40, 0); +x_47 = lean_ctor_get(x_40, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_40); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; +} +} +} +} +else +{ +uint8_t x_49; lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -10324,29 +14554,29 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_29 = !lean_is_exclusive(x_18); -if (x_29 == 0) +x_49 = !lean_is_exclusive(x_19); +if (x_49 == 0) { -return x_18; +return x_19; } else { -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_18, 0); -x_31 = lean_ctor_get(x_18, 1); -lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_18); -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* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_19, 0); +x_51 = lean_ctor_get(x_19, 1); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_19); +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +return x_52; } } } else { -uint8_t x_33; +uint8_t x_53; lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -10359,23 +14589,23 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_33 = !lean_is_exclusive(x_15); -if (x_33 == 0) +x_53 = !lean_is_exclusive(x_15); +if (x_53 == 0) { return x_15; } else { -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_15, 0); -x_35 = lean_ctor_get(x_15, 1); -lean_inc(x_35); -lean_inc(x_34); +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_15, 0); +x_55 = lean_ctor_get(x_15, 1); +lean_inc(x_55); +lean_inc(x_54); lean_dec(x_15); -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; +x_56 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_56, 0, x_54); +lean_ctor_set(x_56, 1, x_55); +return x_56; } } } @@ -10610,6 +14840,14 @@ x_17 = l_Lean_Elab_Tactic_simpLocation(x_2, x_4, x_3, x_16, x_5, x_6, x_7, x_8, return x_17; } } +static lean_object* _init_l_Lean_Elab_Tactic_evalSimp___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Elab_Tactic_tactic_simp_trace; +return x_1; +} +} LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSimp(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: { @@ -10649,17 +14887,123 @@ lean_inc(x_21); x_22 = lean_ctor_get(x_18, 2); lean_inc(x_22); lean_dec(x_18); +lean_inc(x_20); +lean_inc(x_1); x_23 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalSimp___lambda__1___boxed), 13, 3); lean_closure_set(x_23, 0, x_1); lean_closure_set(x_23, 1, x_20); lean_closure_set(x_23, 2, x_22); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); x_24 = l_Lean_Elab_Tactic_Simp_DischargeWrapper_with___rarg(x_21, x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_19); lean_dec(x_21); +if (lean_obj_tag(x_24) == 0) +{ +uint8_t x_25; +x_25 = !lean_is_exclusive(x_24); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; +x_26 = lean_ctor_get(x_24, 0); +x_27 = lean_ctor_get(x_24, 1); +x_28 = lean_ctor_get(x_8, 2); +lean_inc(x_28); +x_29 = l_Lean_Elab_Tactic_evalSimp___closed__1; +x_30 = l_Lean_Option_get___at_Lean_getSanitizeNames___spec__1(x_28, x_29); +lean_dec(x_28); +if (x_30 == 0) +{ +lean_object* x_31; +lean_dec(x_26); +lean_dec(x_20); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_31 = lean_box(0); +lean_ctor_set(x_24, 0, x_31); return x_24; } else { -uint8_t x_25; +lean_object* x_32; +lean_free_object(x_24); +x_32 = l_Lean_Elab_Tactic_traceSimpCall(x_1, x_20, x_26, x_6, x_7, x_8, x_9, x_27); +return x_32; +} +} +else +{ +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_24, 0); +x_34 = lean_ctor_get(x_24, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_24); +x_35 = lean_ctor_get(x_8, 2); +lean_inc(x_35); +x_36 = l_Lean_Elab_Tactic_evalSimp___closed__1; +x_37 = l_Lean_Option_get___at_Lean_getSanitizeNames___spec__1(x_35, x_36); +lean_dec(x_35); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; +lean_dec(x_33); +lean_dec(x_20); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_38 = lean_box(0); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_34); +return x_39; +} +else +{ +lean_object* x_40; +x_40 = l_Lean_Elab_Tactic_traceSimpCall(x_1, x_20, x_33, x_6, x_7, x_8, x_9, x_34); +return x_40; +} +} +} +else +{ +uint8_t x_41; +lean_dec(x_20); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_41 = !lean_is_exclusive(x_24); +if (x_41 == 0) +{ +return x_24; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_24, 0); +x_43 = lean_ctor_get(x_24, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_24); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_42); +lean_ctor_set(x_44, 1, x_43); +return x_44; +} +} +} +else +{ +uint8_t x_45; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -10669,23 +15013,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_25 = !lean_is_exclusive(x_17); -if (x_25 == 0) +x_45 = !lean_is_exclusive(x_17); +if (x_45 == 0) { return x_17; } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_17, 0); -x_27 = lean_ctor_get(x_17, 1); -lean_inc(x_27); -lean_inc(x_26); +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_17, 0); +x_47 = lean_ctor_get(x_17, 1); +lean_inc(x_47); +lean_inc(x_46); lean_dec(x_17); -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; +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; } } } @@ -10787,7 +15131,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSimp_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(281u); +x_1 = lean_unsigned_to_nat(330u); x_2 = lean_unsigned_to_nat(41u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -10799,8 +15143,8 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSimp_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(284u); -x_2 = lean_unsigned_to_nat(74u); +x_1 = lean_unsigned_to_nat(335u); +x_2 = lean_unsigned_to_nat(35u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -10814,7 +15158,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l___regBuiltin_Lean_Elab_Tactic_evalSimp_declRange___closed__1; x_2 = lean_unsigned_to_nat(41u); x_3 = l___regBuiltin_Lean_Elab_Tactic_evalSimp_declRange___closed__2; -x_4 = lean_unsigned_to_nat(74u); +x_4 = lean_unsigned_to_nat(35u); x_5 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_5, 0, x_1); lean_ctor_set(x_5, 1, x_2); @@ -10827,7 +15171,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSimp_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(281u); +x_1 = lean_unsigned_to_nat(330u); x_2 = lean_unsigned_to_nat(45u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -10839,7 +15183,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSimp_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(281u); +x_1 = lean_unsigned_to_nat(330u); x_2 = lean_unsigned_to_nat(53u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -10885,6 +15229,39 @@ x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1); return x_4; } } +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSimpAll___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* x_13) { +_start: +{ +lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_14 = lean_ctor_get(x_11, 2); +lean_inc(x_14); +x_15 = l_Lean_Elab_Tactic_evalSimp___closed__1; +x_16 = l_Lean_Option_get___at_Lean_getSanitizeNames___spec__1(x_14, x_15); +lean_dec(x_14); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_17 = lean_box(0); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_13); +return x_18; +} +else +{ +lean_object* x_19; +x_19 = l_Lean_Elab_Tactic_traceSimpCall(x_1, x_2, x_3, x_9, x_10, x_11, x_12, x_13); +return x_19; +} +} +} LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSimpAll(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: { @@ -10899,6 +15276,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); +lean_inc(x_1); x_13 = l_Lean_Elab_Tactic_mkSimpContext(x_1, x_11, x_12, x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); if (lean_obj_tag(x_13) == 0) { @@ -10922,83 +15300,65 @@ lean_inc(x_2); x_17 = l_Lean_Elab_Tactic_getMainGoal(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_15); if (lean_obj_tag(x_17) == 0) { -lean_object* x_18; lean_object* x_19; lean_object* x_20; +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; 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_Lean_NameSet_empty; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_20 = l_Lean_Meta_simpAll(x_18, x_16, x_6, x_7, x_8, x_9, x_19); -if (lean_obj_tag(x_20) == 0) -{ -lean_object* x_21; -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); +lean_inc(x_16); +x_21 = l_Lean_Meta_simpAll(x_18, x_16, x_20, x_6, x_7, x_8, x_9, x_19); if (lean_obj_tag(x_21) == 0) { -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_20, 1); +lean_object* x_22; lean_object* x_23; +x_22 = lean_ctor_get(x_21, 0); lean_inc(x_22); -lean_dec(x_20); -x_23 = lean_box(0); -x_24 = l_Lean_Elab_Tactic_replaceMainGoal(x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_22); -return x_24; -} -else +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +if (lean_obj_tag(x_23) == 0) { -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_25 = lean_ctor_get(x_20, 1); -lean_inc(x_25); -lean_dec(x_20); -x_26 = lean_ctor_get(x_21, 0); -lean_inc(x_26); +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_24 = lean_ctor_get(x_21, 1); +lean_inc(x_24); lean_dec(x_21); -x_27 = lean_box(0); -x_28 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_28, 0, x_26); -lean_ctor_set(x_28, 1, x_27); -x_29 = l_Lean_Elab_Tactic_replaceMainGoal(x_28, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_25); -return x_29; -} -} -else +x_25 = lean_ctor_get(x_22, 1); +lean_inc(x_25); +lean_dec(x_22); +x_26 = lean_box(0); +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); +lean_inc(x_2); +x_27 = l_Lean_Elab_Tactic_replaceMainGoal(x_26, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_24); +if (lean_obj_tag(x_27) == 0) { -uint8_t x_30; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); +lean_dec(x_27); +x_30 = l_Lean_Elab_Tactic_evalSimpAll___lambda__1(x_1, x_16, x_25, x_28, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_29); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_30 = !lean_is_exclusive(x_20); -if (x_30 == 0) -{ -return x_20; +lean_dec(x_28); +return x_30; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_20, 0); -x_32 = lean_ctor_get(x_20, 1); -lean_inc(x_32); -lean_inc(x_31); -lean_dec(x_20); -x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_31); -lean_ctor_set(x_33, 1, x_32); -return x_33; -} -} -} -else -{ -uint8_t x_34; +uint8_t x_31; +lean_dec(x_25); lean_dec(x_16); lean_dec(x_9); lean_dec(x_8); @@ -11008,29 +15368,73 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_34 = !lean_is_exclusive(x_17); -if (x_34 == 0) +lean_dec(x_1); +x_31 = !lean_is_exclusive(x_27); +if (x_31 == 0) { -return x_17; +return x_27; } else { -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_17, 0); -x_36 = lean_ctor_get(x_17, 1); -lean_inc(x_36); +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_27, 0); +x_33 = lean_ctor_get(x_27, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_27); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +return x_34; +} +} +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_35 = lean_ctor_get(x_21, 1); lean_inc(x_35); -lean_dec(x_17); -x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_35); -lean_ctor_set(x_37, 1, x_36); -return x_37; -} -} +lean_dec(x_21); +x_36 = lean_ctor_get(x_22, 1); +lean_inc(x_36); +lean_dec(x_22); +x_37 = lean_ctor_get(x_23, 0); +lean_inc(x_37); +lean_dec(x_23); +x_38 = lean_box(0); +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_37); +lean_ctor_set(x_39, 1, x_38); +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); +lean_inc(x_2); +x_40 = l_Lean_Elab_Tactic_replaceMainGoal(x_39, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_35); +if (lean_obj_tag(x_40) == 0) +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); +lean_dec(x_40); +x_43 = l_Lean_Elab_Tactic_evalSimpAll___lambda__1(x_1, x_16, x_36, x_41, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_42); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_41); +return x_43; } else { -uint8_t x_38; +uint8_t x_44; +lean_dec(x_36); +lean_dec(x_16); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -11039,27 +15443,140 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_38 = !lean_is_exclusive(x_13); -if (x_38 == 0) +lean_dec(x_1); +x_44 = !lean_is_exclusive(x_40); +if (x_44 == 0) +{ +return x_40; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_40, 0); +x_46 = lean_ctor_get(x_40, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_40); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +} +else +{ +uint8_t x_48; +lean_dec(x_16); +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); +x_48 = !lean_is_exclusive(x_21); +if (x_48 == 0) +{ +return x_21; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_21, 0); +x_50 = lean_ctor_get(x_21, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_21); +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +return x_51; +} +} +} +else +{ +uint8_t x_52; +lean_dec(x_16); +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); +x_52 = !lean_is_exclusive(x_17); +if (x_52 == 0) +{ +return x_17; +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_17, 0); +x_54 = lean_ctor_get(x_17, 1); +lean_inc(x_54); +lean_inc(x_53); +lean_dec(x_17); +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_53); +lean_ctor_set(x_55, 1, x_54); +return x_55; +} +} +} +else +{ +uint8_t x_56; +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); +x_56 = !lean_is_exclusive(x_13); +if (x_56 == 0) { return x_13; } else { -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_13, 0); -x_40 = lean_ctor_get(x_13, 1); -lean_inc(x_40); -lean_inc(x_39); +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_13, 0); +x_58 = lean_ctor_get(x_13, 1); +lean_inc(x_58); +lean_inc(x_57); lean_dec(x_13); -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; +x_59 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_59, 0, x_57); +lean_ctor_set(x_59, 1, x_58); +return x_59; } } } } +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSimpAll___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* x_13) { +_start: +{ +lean_object* x_14; +x_14 = l_Lean_Elab_Tactic_evalSimpAll___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); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +return x_14; +} +} static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSimpAll___closed__1() { _start: { @@ -11120,7 +15637,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSimpAll_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(286u); +x_1 = lean_unsigned_to_nat(337u); x_2 = lean_unsigned_to_nat(44u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -11132,8 +15649,8 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSimpAll_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(290u); -x_2 = lean_unsigned_to_nat(43u); +x_1 = lean_unsigned_to_nat(344u); +x_2 = lean_unsigned_to_nat(35u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -11147,7 +15664,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l___regBuiltin_Lean_Elab_Tactic_evalSimpAll_declRange___closed__1; x_2 = lean_unsigned_to_nat(44u); x_3 = l___regBuiltin_Lean_Elab_Tactic_evalSimpAll_declRange___closed__2; -x_4 = lean_unsigned_to_nat(43u); +x_4 = lean_unsigned_to_nat(35u); x_5 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_5, 0, x_1); lean_ctor_set(x_5, 1, x_2); @@ -11160,7 +15677,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSimpAll_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(286u); +x_1 = lean_unsigned_to_nat(337u); x_2 = lean_unsigned_to_nat(48u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -11172,7 +15689,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSimpAll_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(286u); +x_1 = lean_unsigned_to_nat(337u); x_2 = lean_unsigned_to_nat(59u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -11218,6 +15735,40 @@ x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1); return x_4; } } +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_dsimpLocation_go___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) { +_start: +{ +lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_13 = lean_ctor_get(x_10, 2); +lean_inc(x_13); +x_14 = l_Lean_Elab_Tactic_evalSimp___closed__1; +x_15 = l_Lean_Option_get___at_Lean_getSanitizeNames___spec__1(x_13, x_14); +lean_dec(x_13); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_2); +lean_dec(x_1); +x_16 = lean_box(0); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_12); +return x_17; +} +else +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_10, 5); +lean_inc(x_18); +x_19 = l_Lean_Elab_Tactic_traceSimpCall(x_18, x_1, x_2, x_8, x_9, x_10, x_11, x_12); +return x_19; +} +} +} LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_dsimpLocation_go(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) { _start: { @@ -11233,52 +15784,65 @@ lean_inc(x_4); x_13 = l_Lean_Elab_Tactic_getMainGoal(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_14; lean_object* x_15; lean_object* x_16; +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 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); +x_16 = l_Lean_NameSet_empty; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_16 = l_Lean_Meta_dsimpGoal(x_14, x_1, x_3, x_2, x_8, x_9, x_10, x_11, x_15); -if (lean_obj_tag(x_16) == 0) -{ -lean_object* x_17; -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); +lean_inc(x_1); +x_17 = l_Lean_Meta_dsimpGoal(x_14, x_1, x_3, x_2, x_16, x_8, x_9, x_10, x_11, x_15); 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_16, 1); +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_17, 0); lean_inc(x_18); -lean_dec(x_16); -x_19 = lean_box(0); -x_20 = l_Lean_Elab_Tactic_replaceMainGoal(x_19, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_18); -return x_20; -} -else +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +if (lean_obj_tag(x_19) == 0) { -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_21 = lean_ctor_get(x_16, 1); -lean_inc(x_21); -lean_dec(x_16); -x_22 = lean_ctor_get(x_17, 0); -lean_inc(x_22); +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_20 = lean_ctor_get(x_17, 1); +lean_inc(x_20); lean_dec(x_17); -x_23 = lean_box(0); -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -x_25 = l_Lean_Elab_Tactic_replaceMainGoal(x_24, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_21); -return x_25; -} +x_21 = lean_ctor_get(x_18, 1); +lean_inc(x_21); +lean_dec(x_18); +x_22 = lean_box(0); +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_23 = l_Lean_Elab_Tactic_replaceMainGoal(x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_20); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +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_26 = l_Lean_Elab_Tactic_dsimpLocation_go___lambda__1(x_1, x_21, x_24, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_25); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_24); +return x_26; } else { -uint8_t x_26; +uint8_t x_27; +lean_dec(x_21); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -11287,29 +15851,137 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_26 = !lean_is_exclusive(x_16); -if (x_26 == 0) +lean_dec(x_1); +x_27 = !lean_is_exclusive(x_23); +if (x_27 == 0) { -return x_16; +return x_23; } 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_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_23, 0); +x_29 = lean_ctor_get(x_23, 1); +lean_inc(x_29); 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_dec(x_23); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +return x_30; } } } else { -uint8_t 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; +x_31 = lean_ctor_get(x_17, 1); +lean_inc(x_31); +lean_dec(x_17); +x_32 = lean_ctor_get(x_18, 1); +lean_inc(x_32); +lean_dec(x_18); +x_33 = lean_ctor_get(x_19, 0); +lean_inc(x_33); +lean_dec(x_19); +x_34 = lean_box(0); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +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_36 = l_Lean_Elab_Tactic_replaceMainGoal(x_35, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_31); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_36, 1); +lean_inc(x_38); +lean_dec(x_36); +x_39 = l_Lean_Elab_Tactic_dsimpLocation_go___lambda__1(x_1, x_32, x_37, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_38); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_37); +return x_39; +} +else +{ +uint8_t x_40; +lean_dec(x_32); +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_1); +x_40 = !lean_is_exclusive(x_36); +if (x_40 == 0) +{ +return x_36; +} +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; +} +} +} +} +else +{ +uint8_t x_44; +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_1); +x_44 = !lean_is_exclusive(x_17); +if (x_44 == 0) +{ +return x_17; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_17, 0); +x_46 = lean_ctor_get(x_17, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_17); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +else +{ +uint8_t x_48; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -11320,27 +15992,40 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_30 = !lean_is_exclusive(x_13); -if (x_30 == 0) +x_48 = !lean_is_exclusive(x_13); +if (x_48 == 0) { return x_13; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_13, 0); -x_32 = lean_ctor_get(x_13, 1); -lean_inc(x_32); -lean_inc(x_31); +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_13, 0); +x_50 = lean_ctor_get(x_13, 1); +lean_inc(x_50); +lean_inc(x_49); lean_dec(x_13); -x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_31); -lean_ctor_set(x_33, 1, x_32); -return x_33; +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +return x_51; } } } } +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_dsimpLocation_go___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: +{ +lean_object* x_13; +x_13 = l_Lean_Elab_Tactic_dsimpLocation_go___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); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_13; +} +} LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_dsimpLocation_go___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: { @@ -11685,7 +16370,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalDSimp_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(309u); +x_1 = lean_unsigned_to_nat(365u); x_2 = lean_unsigned_to_nat(42u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -11697,7 +16382,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalDSimp_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(311u); +x_1 = lean_unsigned_to_nat(367u); x_2 = lean_unsigned_to_nat(46u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -11725,7 +16410,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalDSimp_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(309u); +x_1 = lean_unsigned_to_nat(365u); x_2 = lean_unsigned_to_nat(46u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -11737,7 +16422,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalDSimp_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(309u); +x_1 = lean_unsigned_to_nat(365u); x_2 = lean_unsigned_to_nat(55u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -11956,46 +16641,46 @@ l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_elabSimpArgs___spec__1_ lean_mark_persistent(l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_elabSimpArgs___spec__1___rarg___closed__1); l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_elabSimpArgs___spec__1___rarg___closed__2 = _init_l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_elabSimpArgs___spec__1___rarg___closed__2(); lean_mark_persistent(l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_elabSimpArgs___spec__1___rarg___closed__2); -l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__9___closed__1 = _init_l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__9___closed__1(); -lean_mark_persistent(l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__9___closed__1); -l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__9___closed__2 = _init_l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__9___closed__2(); -lean_mark_persistent(l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__9___closed__2); -l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__9___closed__3 = _init_l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__9___closed__3(); -lean_mark_persistent(l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__9___closed__3); -l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__9___closed__4 = _init_l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__9___closed__4(); -lean_mark_persistent(l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__9___closed__4); -l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__1 = _init_l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__1(); -lean_mark_persistent(l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__1); -l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__2 = _init_l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__2(); -lean_mark_persistent(l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__2); -l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__3 = _init_l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__3(); -lean_mark_persistent(l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__3); -l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__3___closed__1 = _init_l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__3___closed__1(); -lean_mark_persistent(l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__3___closed__1); -l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__3___closed__2 = _init_l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__3___closed__2(); -lean_mark_persistent(l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__3___closed__2); -l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__3___closed__3 = _init_l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__3___closed__3(); -lean_mark_persistent(l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__3___closed__3); -l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__18___closed__1 = _init_l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__18___closed__1(); -lean_mark_persistent(l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__18___closed__1); -l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__18___closed__2 = _init_l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__18___closed__2(); -lean_mark_persistent(l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__18___closed__2); -l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__1(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__1); -l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__2(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__2); -l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__3 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__3(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__3); -l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__4 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__4(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__4); -l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__5 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__5(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__5); -l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__6 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__6(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__6); -l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__7 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__7(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__7); -l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__8 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__8(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__20___closed__8); +l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__10___closed__1 = _init_l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__10___closed__1(); +lean_mark_persistent(l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__10___closed__1); +l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__10___closed__2 = _init_l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__10___closed__2(); +lean_mark_persistent(l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__10___closed__2); +l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__10___closed__3 = _init_l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__10___closed__3(); +lean_mark_persistent(l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__10___closed__3); +l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__10___closed__4 = _init_l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__10___closed__4(); +lean_mark_persistent(l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__10___closed__4); +l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_elabSimpArgs___spec__5___closed__1 = _init_l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_elabSimpArgs___spec__5___closed__1(); +lean_mark_persistent(l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_elabSimpArgs___spec__5___closed__1); +l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_elabSimpArgs___spec__5___closed__2 = _init_l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_elabSimpArgs___spec__5___closed__2(); +lean_mark_persistent(l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_elabSimpArgs___spec__5___closed__2); +l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_elabSimpArgs___spec__5___closed__3 = _init_l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_elabSimpArgs___spec__5___closed__3(); +lean_mark_persistent(l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_elabSimpArgs___spec__5___closed__3); +l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__1 = _init_l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__1(); +lean_mark_persistent(l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__1); +l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__2 = _init_l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__2(); +lean_mark_persistent(l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__2); +l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__3 = _init_l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__3(); +lean_mark_persistent(l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__3); +l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__19___closed__1 = _init_l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__19___closed__1(); +lean_mark_persistent(l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__19___closed__1); +l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__19___closed__2 = _init_l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__19___closed__2(); +lean_mark_persistent(l_Lean_Meta_SimpTheorems_erase___at_Lean_Elab_Tactic_elabSimpArgs___spec__19___closed__2); +l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__1(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__1); +l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__2(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__2); +l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__3 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__3(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__3); +l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__4 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__4(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__4); +l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__5 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__5(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__5); +l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__6 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__6(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__6); +l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__7 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__7(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__7); +l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__8 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__8(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabSimpArgs___spec__21___closed__8); l_Lean_Elab_Tactic_elabSimpArgs___closed__1 = _init_l_Lean_Elab_Tactic_elabSimpArgs___closed__1(); lean_mark_persistent(l_Lean_Elab_Tactic_elabSimpArgs___closed__1); l_Lean_Elab_Tactic_elabSimpArgs___closed__2 = _init_l_Lean_Elab_Tactic_elabSimpArgs___closed__2(); @@ -12006,10 +16691,6 @@ l_Lean_Elab_Tactic_elabSimpArgs___closed__4 = _init_l_Lean_Elab_Tactic_elabSimpA lean_mark_persistent(l_Lean_Elab_Tactic_elabSimpArgs___closed__4); l_Lean_Elab_Tactic_elabSimpArgs___boxed__const__1 = _init_l_Lean_Elab_Tactic_elabSimpArgs___boxed__const__1(); lean_mark_persistent(l_Lean_Elab_Tactic_elabSimpArgs___boxed__const__1); -l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__1___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__1___closed__1(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__1___closed__1); -l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__1___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__1___closed__2(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__1___closed__2); l_Lean_Elab_Tactic_mkSimpContext___lambda__2___closed__1 = _init_l_Lean_Elab_Tactic_mkSimpContext___lambda__2___closed__1(); lean_mark_persistent(l_Lean_Elab_Tactic_mkSimpContext___lambda__2___closed__1); l_Lean_Elab_Tactic_mkSimpContext___lambda__2___closed__2 = _init_l_Lean_Elab_Tactic_mkSimpContext___lambda__2___closed__2(); @@ -12030,6 +16711,75 @@ l_Lean_Elab_Tactic_mkSimpContext___closed__1 = _init_l_Lean_Elab_Tactic_mkSimpCo lean_mark_persistent(l_Lean_Elab_Tactic_mkSimpContext___closed__1); l_Lean_Elab_Tactic_mkSimpContext___closed__2 = _init_l_Lean_Elab_Tactic_mkSimpContext___closed__2(); lean_mark_persistent(l_Lean_Elab_Tactic_mkSimpContext___closed__2); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771____closed__1 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771____closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771____closed__1); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771____closed__2 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771____closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771____closed__2); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771____closed__3 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771____closed__3(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771____closed__3); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771____closed__4 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771____closed__4(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771____closed__4); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771____closed__5 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771____closed__5(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771____closed__5); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771____closed__6 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771____closed__6(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771____closed__6); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771____closed__7 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771____closed__7(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771____closed__7); +if (builtin) {res = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Simp___hyg_3771_(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +l_Lean_Elab_Tactic_tactic_simp_trace = lean_io_result_get_value(res); +lean_mark_persistent(l_Lean_Elab_Tactic_tactic_simp_trace); +lean_dec_ref(res); +}l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_traceSimpCall___spec__5___closed__1 = _init_l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_traceSimpCall___spec__5___closed__1(); +lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_traceSimpCall___spec__5___closed__1); +l_Lean_unresolveNameGlobal___at_Lean_Elab_Tactic_traceSimpCall___spec__2___lambda__1___closed__1 = _init_l_Lean_unresolveNameGlobal___at_Lean_Elab_Tactic_traceSimpCall___spec__2___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_unresolveNameGlobal___at_Lean_Elab_Tactic_traceSimpCall___spec__2___lambda__1___closed__1); +l_Lean_logAt___at_Lean_Elab_Tactic_traceSimpCall___spec__8___closed__1 = _init_l_Lean_logAt___at_Lean_Elab_Tactic_traceSimpCall___spec__8___closed__1(); +lean_mark_persistent(l_Lean_logAt___at_Lean_Elab_Tactic_traceSimpCall___spec__8___closed__1); +l_Std_RBNode_forIn_visit___at_Lean_Elab_Tactic_traceSimpCall___spec__10___closed__1 = _init_l_Std_RBNode_forIn_visit___at_Lean_Elab_Tactic_traceSimpCall___spec__10___closed__1(); +lean_mark_persistent(l_Std_RBNode_forIn_visit___at_Lean_Elab_Tactic_traceSimpCall___spec__10___closed__1); +l_Std_RBNode_forIn_visit___at_Lean_Elab_Tactic_traceSimpCall___spec__10___closed__2 = _init_l_Std_RBNode_forIn_visit___at_Lean_Elab_Tactic_traceSimpCall___spec__10___closed__2(); +lean_mark_persistent(l_Std_RBNode_forIn_visit___at_Lean_Elab_Tactic_traceSimpCall___spec__10___closed__2); +l_Std_RBNode_forIn_visit___at_Lean_Elab_Tactic_traceSimpCall___spec__10___closed__3 = _init_l_Std_RBNode_forIn_visit___at_Lean_Elab_Tactic_traceSimpCall___spec__10___closed__3(); +lean_mark_persistent(l_Std_RBNode_forIn_visit___at_Lean_Elab_Tactic_traceSimpCall___spec__10___closed__3); +l_Std_RBNode_forIn_visit___at_Lean_Elab_Tactic_traceSimpCall___spec__10___closed__4 = _init_l_Std_RBNode_forIn_visit___at_Lean_Elab_Tactic_traceSimpCall___spec__10___closed__4(); +lean_mark_persistent(l_Std_RBNode_forIn_visit___at_Lean_Elab_Tactic_traceSimpCall___spec__10___closed__4); +l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__1 = _init_l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__1); +l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__2 = _init_l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__2); +l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__3 = _init_l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__3(); +lean_mark_persistent(l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__3); +l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__4 = _init_l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__4(); +lean_mark_persistent(l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__4); +l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__5 = _init_l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__5(); +lean_mark_persistent(l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__5); +l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__6 = _init_l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__6(); +lean_mark_persistent(l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__6); +l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__7 = _init_l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__7(); +lean_mark_persistent(l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__7); +l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__8 = _init_l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__8(); +lean_mark_persistent(l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__8); +l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__9 = _init_l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__9(); +lean_mark_persistent(l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__9); +l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__10 = _init_l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__10(); +lean_mark_persistent(l_Lean_Elab_Tactic_traceSimpCall___lambda__1___closed__10); +l_Lean_Elab_Tactic_traceSimpCall___lambda__2___closed__1 = _init_l_Lean_Elab_Tactic_traceSimpCall___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_traceSimpCall___lambda__2___closed__1); +l_Lean_Elab_Tactic_traceSimpCall___lambda__2___closed__2 = _init_l_Lean_Elab_Tactic_traceSimpCall___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_traceSimpCall___lambda__2___closed__2); +l_Lean_Elab_Tactic_traceSimpCall___lambda__2___closed__3 = _init_l_Lean_Elab_Tactic_traceSimpCall___lambda__2___closed__3(); +lean_mark_persistent(l_Lean_Elab_Tactic_traceSimpCall___lambda__2___closed__3); +l_Lean_Elab_Tactic_traceSimpCall___closed__1 = _init_l_Lean_Elab_Tactic_traceSimpCall___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_traceSimpCall___closed__1); +l_Lean_Elab_Tactic_traceSimpCall___closed__2 = _init_l_Lean_Elab_Tactic_traceSimpCall___closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_traceSimpCall___closed__2); +l_Lean_Elab_Tactic_traceSimpCall___closed__3 = _init_l_Lean_Elab_Tactic_traceSimpCall___closed__3(); +lean_mark_persistent(l_Lean_Elab_Tactic_traceSimpCall___closed__3); +l_Lean_Elab_Tactic_traceSimpCall___closed__4 = _init_l_Lean_Elab_Tactic_traceSimpCall___closed__4(); +lean_mark_persistent(l_Lean_Elab_Tactic_traceSimpCall___closed__4); +l_Lean_Elab_Tactic_evalSimp___closed__1 = _init_l_Lean_Elab_Tactic_evalSimp___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_evalSimp___closed__1); l___regBuiltin_Lean_Elab_Tactic_evalSimp___closed__1 = _init_l___regBuiltin_Lean_Elab_Tactic_evalSimp___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalSimp___closed__1); l___regBuiltin_Lean_Elab_Tactic_evalSimp___closed__2 = _init_l___regBuiltin_Lean_Elab_Tactic_evalSimp___closed__2(); diff --git a/stage0/stdlib/Lean/Meta/Tactic/AC/Main.c b/stage0/stdlib/Lean/Meta/Tactic/AC/Main.c index 9f717914a7..55a7f61d1b 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/AC/Main.c +++ b/stage0/stdlib/Lean/Meta/Tactic/AC/Main.c @@ -39,7 +39,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_AC_buildNormProof(lean_object*, lean_object uint8_t lean_usize_dec_eq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); static lean_object* l_Lean_Meta_AC_getInstance___closed__6; -LEAN_EXPORT lean_object* l_Lean_Meta_AC_initFn____x40_Lean_Meta_Tactic_AC_Main___hyg_2246_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_AC_initFn____x40_Lean_Meta_Tactic_AC_Main___hyg_2270_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_AC_acRflTactic___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_EXPORT lean_object* l_Std_HashSet_toArray___at_Lean_Meta_AC_toACExpr___spec__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_AC_acRflTactic___boxed(lean_object*); @@ -103,7 +103,7 @@ static lean_object* l_Lean_Meta_AC_buildNormProof_mkContext___closed__5; LEAN_EXPORT lean_object* l_Lean_Meta_AC_buildNormProof_convert(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_AC_buildNormProof_convertTarget(lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Meta_AC_acRflTactic___closed__5; -lean_object* l_Lean_Meta_Simp_main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Simp_main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_AC_buildNormProof___closed__7; lean_object* lean_nat_sub(lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_AC_buildNormProof_mkContext___spec__1___closed__3; @@ -167,6 +167,7 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_AC_buildNormProof static lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_AC_buildNormProof_mkContext___spec__1___closed__1; LEAN_EXPORT lean_object* l_Std_HashMapImp_expand___at_Lean_Meta_AC_toACExpr___spec__8(lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); +extern lean_object* l_Lean_NameSet_empty; extern lean_object* l_Lean_Elab_Tactic_tacticElabAttribute; static lean_object* l_Std_HashMap_find_x21___at_Lean_Meta_AC_toACExpr___spec__13___closed__2; static lean_object* l_Std_HashMap_find_x21___at_Lean_Meta_AC_toACExpr___spec__13___closed__1; @@ -4593,7 +4594,7 @@ lean_inc(x_9); if (lean_obj_tag(x_9) == 5) { lean_object* x_10; -x_10 = lean_ctor_get(x_2, 3); +x_10 = lean_ctor_get(x_2, 4); lean_inc(x_10); if (lean_obj_tag(x_10) == 0) { @@ -5604,7 +5605,7 @@ return x_1; LEAN_EXPORT lean_object* l_Lean_Meta_AC_rewriteUnnormalized(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_7; lean_object* x_8; 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_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; x_7 = l_Lean_Meta_getSimpCongrTheorems___rarg(x_5, x_6); x_8 = lean_ctor_get(x_7, 0); lean_inc(x_8); @@ -5612,153 +5613,159 @@ x_9 = lean_ctor_get(x_7, 1); lean_inc(x_9); lean_dec(x_7); x_10 = lean_box(0); -x_11 = l_Lean_Meta_Simp_neutralConfig; -x_12 = l_Std_HashSet_toArray___at_Lean_Meta_AC_toACExpr___spec__1___closed__1; -x_13 = lean_unsigned_to_nat(0u); -x_14 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_14, 0, x_11); -lean_ctor_set(x_14, 1, x_12); -lean_ctor_set(x_14, 2, x_8); -lean_ctor_set(x_14, 3, x_10); -lean_ctor_set(x_14, 4, x_13); +x_11 = lean_box(0); +x_12 = l_Lean_Meta_Simp_neutralConfig; +x_13 = l_Std_HashSet_toArray___at_Lean_Meta_AC_toACExpr___spec__1___closed__1; +x_14 = lean_unsigned_to_nat(0u); +x_15 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_15, 0, x_12); +lean_ctor_set(x_15, 1, x_13); +lean_ctor_set(x_15, 2, x_8); +lean_ctor_set(x_15, 3, x_10); +lean_ctor_set(x_15, 4, x_11); +lean_ctor_set(x_15, 5, x_14); lean_inc(x_1); -x_15 = l_Lean_MVarId_getType(x_1, x_2, x_3, x_4, x_5, x_9); -if (lean_obj_tag(x_15) == 0) +x_16 = l_Lean_MVarId_getType(x_1, x_2, x_3, x_4, x_5, x_9); +if (lean_obj_tag(x_16) == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); -lean_dec(x_15); -x_18 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__2(x_16, x_2, x_3, x_4, x_5, x_17); -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +x_19 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__2(x_17, x_2, x_3, x_4, x_5, x_18); +x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); -lean_dec(x_18); -x_21 = lean_alloc_closure((void*)(l_Lean_Meta_AC_rewriteUnnormalized___lambda__1___boxed), 9, 1); -lean_closure_set(x_21, 0, x_10); -x_22 = lean_alloc_closure((void*)(l_Lean_Meta_AC_rewriteUnnormalized___lambda__2___boxed), 9, 1); -lean_closure_set(x_22, 0, x_10); -x_23 = l_Lean_Meta_AC_rewriteUnnormalized___closed__1; -x_24 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_24, 0, x_21); -lean_ctor_set(x_24, 1, x_23); -lean_ctor_set(x_24, 2, x_22); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_19); -x_25 = l_Lean_Meta_Simp_main(x_19, x_14, x_24, x_2, x_3, x_4, x_5, x_20); -if (lean_obj_tag(x_25) == 0) -{ -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); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -x_28 = l_Lean_Meta_applySimpResultToTarget(x_1, x_19, x_26, x_2, x_3, x_4, x_5, x_27); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); lean_dec(x_19); -if (lean_obj_tag(x_28) == 0) +x_22 = lean_alloc_closure((void*)(l_Lean_Meta_AC_rewriteUnnormalized___lambda__1___boxed), 9, 1); +lean_closure_set(x_22, 0, x_11); +x_23 = lean_alloc_closure((void*)(l_Lean_Meta_AC_rewriteUnnormalized___lambda__2___boxed), 9, 1); +lean_closure_set(x_23, 0, x_11); +x_24 = l_Lean_Meta_AC_rewriteUnnormalized___closed__1; +x_25 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_25, 0, x_22); +lean_ctor_set(x_25, 1, x_24); +lean_ctor_set(x_25, 2, x_23); +x_26 = l_Lean_NameSet_empty; +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_20); +x_27 = l_Lean_Meta_Simp_main(x_20, x_15, x_26, x_25, x_2, x_3, x_4, x_5, x_21); +if (lean_obj_tag(x_27) == 0) { -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_28, 0); +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_27, 1); lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); +lean_dec(x_27); +x_30 = lean_ctor_get(x_28, 0); lean_inc(x_30); lean_dec(x_28); -x_31 = l_Lean_MVarId_refl(x_29, x_2, x_3, x_4, x_5, x_30); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_31 = l_Lean_Meta_applySimpResultToTarget(x_1, x_20, x_30, x_2, x_3, x_4, x_5, x_29); +lean_dec(x_20); +if (lean_obj_tag(x_31) == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_31, 1); +lean_inc(x_33); +lean_dec(x_31); +x_34 = l_Lean_MVarId_refl(x_32, x_2, x_3, x_4, x_5, x_33); +return x_34; +} +else +{ +uint8_t x_35; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_35 = !lean_is_exclusive(x_31); +if (x_35 == 0) +{ return x_31; } else { -uint8_t x_32; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_32 = !lean_is_exclusive(x_28); -if (x_32 == 0) -{ -return x_28; -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_28, 0); -x_34 = lean_ctor_get(x_28, 1); -lean_inc(x_34); -lean_inc(x_33); -lean_dec(x_28); -x_35 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_35, 0, x_33); -lean_ctor_set(x_35, 1, x_34); -return x_35; -} -} -} -else -{ -uint8_t x_36; -lean_dec(x_19); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_36 = !lean_is_exclusive(x_25); -if (x_36 == 0) -{ -return x_25; -} -else -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_25, 0); -x_38 = lean_ctor_get(x_25, 1); -lean_inc(x_38); +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_31, 0); +x_37 = lean_ctor_get(x_31, 1); lean_inc(x_37); -lean_dec(x_25); -x_39 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_39, 0, x_37); -lean_ctor_set(x_39, 1, x_38); -return x_39; +lean_inc(x_36); +lean_dec(x_31); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +return x_38; } } } else { -uint8_t x_40; -lean_dec(x_14); +uint8_t x_39; +lean_dec(x_20); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_40 = !lean_is_exclusive(x_15); -if (x_40 == 0) +x_39 = !lean_is_exclusive(x_27); +if (x_39 == 0) { -return x_15; +return x_27; } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_15, 0); -x_42 = lean_ctor_get(x_15, 1); -lean_inc(x_42); +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_27, 0); +x_41 = lean_ctor_get(x_27, 1); lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_27); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; +} +} +} +else +{ +uint8_t x_43; lean_dec(x_15); -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_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_43 = !lean_is_exclusive(x_16); +if (x_43 == 0) +{ +return x_16; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_16, 0); +x_45 = lean_ctor_get(x_16, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_16); +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_44); +lean_ctor_set(x_46, 1, x_45); +return x_46; } } } @@ -6110,7 +6117,7 @@ x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Meta_AC_initFn____x40_Lean_Meta_Tactic_AC_Main___hyg_2246_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_AC_initFn____x40_Lean_Meta_Tactic_AC_Main___hyg_2270_(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; lean_object* x_4; @@ -6355,7 +6362,7 @@ lean_mark_persistent(l___regBuiltin_Lean_Meta_AC_acRflTactic_declRange___closed_ res = l___regBuiltin_Lean_Meta_AC_acRflTactic_declRange(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = l_Lean_Meta_AC_initFn____x40_Lean_Meta_Tactic_AC_Main___hyg_2246_(lean_io_mk_world()); +res = l_Lean_Meta_AC_initFn____x40_Lean_Meta_Tactic_AC_Main___hyg_2270_(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/Tactic/Acyclic.c b/stage0/stdlib/Lean/Meta/Tactic/Acyclic.c index 78cff98ed3..522213da3b 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Acyclic.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Acyclic.c @@ -16,7 +16,7 @@ extern "C" { static lean_object* l_Lean_MVarId_acyclic_go___closed__18; static lean_object* l_Lean_MVarId_acyclic_go___closed__28; static lean_object* l_Lean_MVarId_acyclic_go___closed__14; -lean_object* l_Lean_Meta_simpTarget(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_simpTarget(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_MVarId_acyclic_go___closed__3; lean_object* l_Lean_Expr_mvarId_x21(lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, uint8_t, lean_object*); @@ -57,7 +57,7 @@ extern lean_object* l_Lean_Meta_simpExtension; static lean_object* l_Lean_MVarId_acyclic_go___closed__29; lean_object* l_Std_mkHashMapImp___rarg(lean_object*); static lean_object* l_Lean_MVarId_acyclic_go___closed__25; -LEAN_EXPORT lean_object* l_Lean_MVarId_initFn____x40_Lean_Meta_Tactic_Acyclic___hyg_868_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_MVarId_initFn____x40_Lean_Meta_Tactic_Acyclic___hyg_869_(lean_object*); lean_object* l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); static lean_object* l_Lean_MVarId_acyclic_go___closed__6; @@ -68,6 +68,7 @@ LEAN_EXPORT lean_object* l_Lean_MVarId_acyclic_go___lambda__2(lean_object*, lean lean_object* lean_whnf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_MVarId_acyclic_go___closed__2; static lean_object* l_Lean_MVarId_acyclic_go___closed__8; +extern lean_object* l_Lean_NameSet_empty; LEAN_EXPORT lean_object* l_Lean_MVarId_acyclic___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_MVarId_acyclic_go___closed__17; LEAN_EXPORT lean_object* l_Lean_MVarId_acyclic_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -597,7 +598,7 @@ lean_inc(x_50); x_56 = l_Lean_Meta_mkLT(x_50, x_54, x_5, x_6, x_7, x_8, x_55); if (lean_obj_tag(x_56) == 0) { -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; uint8_t x_74; lean_object* x_75; +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; uint8_t x_75; lean_object* x_76; lean_object* x_77; x_57 = lean_ctor_get(x_56, 0); lean_inc(x_57); x_58 = lean_ctor_get(x_56, 1); @@ -622,328 +623,334 @@ lean_inc(x_61); x_67 = l_Lean_Expr_mvarId_x21(x_61); x_68 = lean_array_push(x_46, x_65); x_69 = lean_box(0); -x_70 = l_Lean_MVarId_acyclic_go___closed__18; -x_71 = l_Lean_MVarId_acyclic_go___closed__23; -x_72 = lean_unsigned_to_nat(0u); -x_73 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_73, 0, x_70); -lean_ctor_set(x_73, 1, x_68); -lean_ctor_set(x_73, 2, x_71); -lean_ctor_set(x_73, 3, x_69); -lean_ctor_set(x_73, 4, x_72); -x_74 = 1; +x_70 = lean_box(0); +x_71 = l_Lean_MVarId_acyclic_go___closed__18; +x_72 = l_Lean_MVarId_acyclic_go___closed__23; +x_73 = lean_unsigned_to_nat(0u); +x_74 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_74, 0, x_71); +lean_ctor_set(x_74, 1, x_68); +lean_ctor_set(x_74, 2, x_72); +lean_ctor_set(x_74, 3, x_69); +lean_ctor_set(x_74, 4, x_70); +lean_ctor_set(x_74, 5, x_73); +x_75 = 1; +x_76 = l_Lean_NameSet_empty; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_75 = l_Lean_Meta_simpTarget(x_67, x_73, x_69, x_74, x_5, x_6, x_7, x_8, x_66); -if (lean_obj_tag(x_75) == 0) +x_77 = l_Lean_Meta_simpTarget(x_67, x_74, x_70, x_75, x_76, x_5, x_6, x_7, x_8, x_66); +if (lean_obj_tag(x_77) == 0) { -lean_object* x_76; -x_76 = lean_ctor_get(x_75, 0); -lean_inc(x_76); -if (lean_obj_tag(x_76) == 0) -{ -lean_object* x_77; lean_object* x_78; -x_77 = lean_ctor_get(x_75, 1); -lean_inc(x_77); -lean_dec(x_75); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_78 = l_Lean_Meta_mkEqSymm(x_2, x_5, x_6, x_7, x_8, x_77); -if (lean_obj_tag(x_78) == 0) -{ -lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; +lean_object* x_78; lean_object* x_79; +x_78 = lean_ctor_get(x_77, 0); +lean_inc(x_78); x_79 = lean_ctor_get(x_78, 0); lean_inc(x_79); -x_80 = lean_ctor_get(x_78, 1); -lean_inc(x_80); lean_dec(x_78); -x_81 = l_Lean_Expr_appFn_x21(x_50); +if (lean_obj_tag(x_79) == 0) +{ +lean_object* x_80; lean_object* x_81; +x_80 = lean_ctor_get(x_77, 1); +lean_inc(x_80); +lean_dec(x_77); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_82 = l_Lean_Meta_mkCongrArg(x_81, x_79, x_5, x_6, x_7, x_8, x_80); -if (lean_obj_tag(x_82) == 0) +x_81 = l_Lean_Meta_mkEqSymm(x_2, x_5, x_6, x_7, x_8, x_80); +if (lean_obj_tag(x_81) == 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; lean_object* x_89; -x_83 = lean_ctor_get(x_82, 0); +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_82 = lean_ctor_get(x_81, 0); +lean_inc(x_82); +x_83 = lean_ctor_get(x_81, 1); lean_inc(x_83); -x_84 = lean_ctor_get(x_82, 1); -lean_inc(x_84); -lean_dec(x_82); -x_85 = l_Lean_MVarId_acyclic_go___closed__28; -x_86 = lean_array_push(x_85, x_61); -x_87 = lean_array_push(x_86, x_83); -x_88 = l_Lean_MVarId_acyclic_go___closed__27; +lean_dec(x_81); +x_84 = l_Lean_Expr_appFn_x21(x_50); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_89 = l_Lean_Meta_mkAppM(x_88, x_87, x_5, x_6, x_7, x_8, x_84); -if (lean_obj_tag(x_89) == 0) +x_85 = l_Lean_Meta_mkCongrArg(x_84, x_82, x_5, x_6, x_7, x_8, x_83); +if (lean_obj_tag(x_85) == 0) { -lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_90 = lean_ctor_get(x_89, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_89, 1); -lean_inc(x_91); -lean_dec(x_89); -x_92 = lean_array_push(x_46, x_50); -x_93 = l_Lean_MVarId_acyclic_go___closed__30; +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_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_88 = l_Lean_MVarId_acyclic_go___closed__28; +x_89 = lean_array_push(x_88, x_61); +x_90 = lean_array_push(x_89, x_86); +x_91 = l_Lean_MVarId_acyclic_go___closed__27; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_94 = l_Lean_Meta_mkAppM(x_93, x_92, x_5, x_6, x_7, x_8, x_91); -if (lean_obj_tag(x_94) == 0) +x_92 = l_Lean_Meta_mkAppM(x_91, x_90, x_5, x_6, x_7, x_8, x_87); +if (lean_obj_tag(x_92) == 0) { -lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_95 = lean_ctor_get(x_94, 0); -lean_inc(x_95); -x_96 = lean_ctor_get(x_94, 1); -lean_inc(x_96); -lean_dec(x_94); -lean_inc(x_1); -x_97 = l_Lean_MVarId_getType(x_1, x_5, x_6, x_7, x_8, x_96); +lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_93 = lean_ctor_get(x_92, 0); +lean_inc(x_93); +x_94 = lean_ctor_get(x_92, 1); +lean_inc(x_94); +lean_dec(x_92); +x_95 = lean_array_push(x_46, x_50); +x_96 = l_Lean_MVarId_acyclic_go___closed__30; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_97 = l_Lean_Meta_mkAppM(x_96, x_95, x_5, x_6, x_7, x_8, x_94); if (lean_obj_tag(x_97) == 0) { -lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; +lean_object* x_98; lean_object* x_99; lean_object* x_100; x_98 = lean_ctor_get(x_97, 0); lean_inc(x_98); x_99 = lean_ctor_get(x_97, 1); lean_inc(x_99); lean_dec(x_97); -x_100 = l_Lean_Expr_app___override(x_95, x_90); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_101 = l_Lean_Meta_mkFalseElim(x_98, x_100, x_5, x_6, x_7, x_8, x_99); -if (lean_obj_tag(x_101) == 0) +lean_inc(x_1); +x_100 = l_Lean_MVarId_getType(x_1, x_5, x_6, x_7, x_8, x_99); +if (lean_obj_tag(x_100) == 0) { -lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; uint8_t x_111; -x_102 = lean_ctor_get(x_101, 0); +lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_101 = lean_ctor_get(x_100, 0); +lean_inc(x_101); +x_102 = lean_ctor_get(x_100, 1); lean_inc(x_102); -x_103 = lean_ctor_get(x_101, 1); -lean_inc(x_103); -lean_dec(x_101); -x_104 = l_Lean_MVarId_assign___at_Lean_Meta_getLevel___spec__1(x_1, x_102, x_5, x_6, x_7, x_8, x_103); -x_105 = lean_ctor_get(x_104, 1); -lean_inc(x_105); -lean_dec(x_104); -x_106 = l_Lean_MVarId_acyclic_go___closed__6; -x_107 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_106, x_5, x_6, x_7, x_8, x_105); -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 = l_Lean_MVarId_acyclic_go___closed__31; -x_111 = lean_unbox(x_108); -lean_dec(x_108); -if (x_111 == 0) -{ -lean_object* x_112; lean_object* x_113; -x_112 = lean_box(0); +lean_dec(x_100); +x_103 = l_Lean_Expr_app___override(x_98, x_93); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_113 = lean_apply_6(x_110, x_112, x_5, x_6, x_7, x_8, x_109); -if (lean_obj_tag(x_113) == 0) +x_104 = l_Lean_Meta_mkFalseElim(x_101, x_103, x_5, x_6, x_7, x_8, x_102); +if (lean_obj_tag(x_104) == 0) { -uint8_t x_114; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_114 = !lean_is_exclusive(x_113); +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; uint8_t x_114; +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_107 = l_Lean_MVarId_assign___at_Lean_Meta_getLevel___spec__1(x_1, x_105, x_5, x_6, x_7, x_8, x_106); +x_108 = lean_ctor_get(x_107, 1); +lean_inc(x_108); +lean_dec(x_107); +x_109 = l_Lean_MVarId_acyclic_go___closed__6; +x_110 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_109, x_5, x_6, x_7, x_8, x_108); +x_111 = lean_ctor_get(x_110, 0); +lean_inc(x_111); +x_112 = lean_ctor_get(x_110, 1); +lean_inc(x_112); +lean_dec(x_110); +x_113 = l_Lean_MVarId_acyclic_go___closed__31; +x_114 = lean_unbox(x_111); +lean_dec(x_111); if (x_114 == 0) { -return x_113; -} -else -{ -lean_object* x_115; lean_object* x_116; lean_object* x_117; -x_115 = lean_ctor_get(x_113, 0); -x_116 = lean_ctor_get(x_113, 1); -lean_inc(x_116); -lean_inc(x_115); -lean_dec(x_113); -x_117 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_117, 0, x_115); -lean_ctor_set(x_117, 1, x_116); -return x_117; -} -} -else -{ -lean_object* x_118; lean_object* x_119; -x_118 = lean_ctor_get(x_113, 0); -lean_inc(x_118); -x_119 = lean_ctor_get(x_113, 1); -lean_inc(x_119); -lean_dec(x_113); -x_10 = x_118; -x_11 = x_119; -goto block_45; -} -} -else -{ -lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; -x_120 = l_Lean_MVarId_acyclic_go___closed__33; -x_121 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_106, x_120, x_5, x_6, x_7, x_8, x_109); -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); +lean_object* x_115; lean_object* x_116; +x_115 = lean_box(0); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_124 = lean_apply_6(x_110, x_122, x_5, x_6, x_7, x_8, x_123); -if (lean_obj_tag(x_124) == 0) +x_116 = lean_apply_6(x_113, x_115, x_5, x_6, x_7, x_8, x_112); +if (lean_obj_tag(x_116) == 0) { -uint8_t x_125; +uint8_t x_117; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_125 = !lean_is_exclusive(x_124); -if (x_125 == 0) +x_117 = !lean_is_exclusive(x_116); +if (x_117 == 0) { -return x_124; +return x_116; } else { -lean_object* x_126; lean_object* x_127; lean_object* x_128; -x_126 = lean_ctor_get(x_124, 0); -x_127 = lean_ctor_get(x_124, 1); -lean_inc(x_127); +lean_object* x_118; lean_object* x_119; lean_object* x_120; +x_118 = lean_ctor_get(x_116, 0); +x_119 = lean_ctor_get(x_116, 1); +lean_inc(x_119); +lean_inc(x_118); +lean_dec(x_116); +x_120 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_120, 0, x_118); +lean_ctor_set(x_120, 1, x_119); +return x_120; +} +} +else +{ +lean_object* x_121; lean_object* x_122; +x_121 = lean_ctor_get(x_116, 0); +lean_inc(x_121); +x_122 = lean_ctor_get(x_116, 1); +lean_inc(x_122); +lean_dec(x_116); +x_10 = x_121; +x_11 = x_122; +goto block_45; +} +} +else +{ +lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; +x_123 = l_Lean_MVarId_acyclic_go___closed__33; +x_124 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_109, x_123, x_5, x_6, x_7, x_8, x_112); +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); -x_128 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_128, 0, x_126); -lean_ctor_set(x_128, 1, x_127); -return x_128; -} +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_127 = lean_apply_6(x_113, x_125, x_5, x_6, x_7, x_8, x_126); +if (lean_obj_tag(x_127) == 0) +{ +uint8_t x_128; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_128 = !lean_is_exclusive(x_127); +if (x_128 == 0) +{ +return x_127; } else { -lean_object* x_129; lean_object* x_130; -x_129 = lean_ctor_get(x_124, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_124, 1); +lean_object* x_129; lean_object* x_130; lean_object* x_131; +x_129 = lean_ctor_get(x_127, 0); +x_130 = lean_ctor_get(x_127, 1); lean_inc(x_130); -lean_dec(x_124); -x_10 = x_129; -x_11 = x_130; -goto block_45; -} +lean_inc(x_129); +lean_dec(x_127); +x_131 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_131, 0, x_129); +lean_ctor_set(x_131, 1, x_130); +return x_131; } } else { -lean_object* x_131; lean_object* x_132; -lean_dec(x_1); -x_131 = lean_ctor_get(x_101, 0); -lean_inc(x_131); -x_132 = lean_ctor_get(x_101, 1); +lean_object* x_132; lean_object* x_133; +x_132 = lean_ctor_get(x_127, 0); lean_inc(x_132); -lean_dec(x_101); -x_10 = x_131; -x_11 = x_132; -goto block_45; -} -} -else -{ -lean_object* x_133; lean_object* x_134; -lean_dec(x_95); -lean_dec(x_90); -lean_dec(x_1); -x_133 = lean_ctor_get(x_97, 0); +x_133 = lean_ctor_get(x_127, 1); lean_inc(x_133); -x_134 = lean_ctor_get(x_97, 1); +lean_dec(x_127); +x_10 = x_132; +x_11 = x_133; +goto block_45; +} +} +} +else +{ +lean_object* x_134; lean_object* x_135; +lean_dec(x_1); +x_134 = lean_ctor_get(x_104, 0); lean_inc(x_134); -lean_dec(x_97); -x_10 = x_133; -x_11 = x_134; -goto block_45; -} -} -else -{ -lean_object* x_135; lean_object* x_136; -lean_dec(x_90); -lean_dec(x_1); -x_135 = lean_ctor_get(x_94, 0); +x_135 = lean_ctor_get(x_104, 1); lean_inc(x_135); -x_136 = lean_ctor_get(x_94, 1); +lean_dec(x_104); +x_10 = x_134; +x_11 = x_135; +goto block_45; +} +} +else +{ +lean_object* x_136; lean_object* x_137; +lean_dec(x_98); +lean_dec(x_93); +lean_dec(x_1); +x_136 = lean_ctor_get(x_100, 0); lean_inc(x_136); -lean_dec(x_94); -x_10 = x_135; -x_11 = x_136; -goto block_45; -} -} -else -{ -lean_object* x_137; lean_object* x_138; -lean_dec(x_50); -lean_dec(x_1); -x_137 = lean_ctor_get(x_89, 0); +x_137 = lean_ctor_get(x_100, 1); lean_inc(x_137); -x_138 = lean_ctor_get(x_89, 1); +lean_dec(x_100); +x_10 = x_136; +x_11 = x_137; +goto block_45; +} +} +else +{ +lean_object* x_138; lean_object* x_139; +lean_dec(x_93); +lean_dec(x_1); +x_138 = lean_ctor_get(x_97, 0); lean_inc(x_138); -lean_dec(x_89); -x_10 = x_137; -x_11 = x_138; -goto block_45; -} -} -else -{ -lean_object* x_139; lean_object* x_140; -lean_dec(x_61); -lean_dec(x_50); -lean_dec(x_1); -x_139 = lean_ctor_get(x_82, 0); +x_139 = lean_ctor_get(x_97, 1); lean_inc(x_139); -x_140 = lean_ctor_get(x_82, 1); -lean_inc(x_140); -lean_dec(x_82); -x_10 = x_139; -x_11 = x_140; +lean_dec(x_97); +x_10 = x_138; +x_11 = x_139; goto block_45; } } else { -lean_object* x_141; lean_object* x_142; +lean_object* x_140; lean_object* x_141; +lean_dec(x_50); +lean_dec(x_1); +x_140 = lean_ctor_get(x_92, 0); +lean_inc(x_140); +x_141 = lean_ctor_get(x_92, 1); +lean_inc(x_141); +lean_dec(x_92); +x_10 = x_140; +x_11 = x_141; +goto block_45; +} +} +else +{ +lean_object* x_142; lean_object* x_143; lean_dec(x_61); lean_dec(x_50); lean_dec(x_1); -x_141 = lean_ctor_get(x_78, 0); -lean_inc(x_141); -x_142 = lean_ctor_get(x_78, 1); +x_142 = lean_ctor_get(x_85, 0); lean_inc(x_142); -lean_dec(x_78); -x_10 = x_141; -x_11 = x_142; +x_143 = lean_ctor_get(x_85, 1); +lean_inc(x_143); +lean_dec(x_85); +x_10 = x_142; +x_11 = x_143; goto block_45; } } else { -uint8_t x_143; -lean_dec(x_76); +lean_object* x_144; lean_object* x_145; +lean_dec(x_61); +lean_dec(x_50); +lean_dec(x_1); +x_144 = lean_ctor_get(x_81, 0); +lean_inc(x_144); +x_145 = lean_ctor_get(x_81, 1); +lean_inc(x_145); +lean_dec(x_81); +x_10 = x_144; +x_11 = x_145; +goto block_45; +} +} +else +{ +uint8_t x_146; +lean_dec(x_79); lean_dec(x_61); lean_dec(x_50); lean_dec(x_8); @@ -952,94 +959,94 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); -x_143 = !lean_is_exclusive(x_75); -if (x_143 == 0) +x_146 = !lean_is_exclusive(x_77); +if (x_146 == 0) { -lean_object* x_144; uint8_t x_145; lean_object* x_146; -x_144 = lean_ctor_get(x_75, 0); -lean_dec(x_144); -x_145 = 0; -x_146 = lean_box(x_145); -lean_ctor_set(x_75, 0, x_146); -return x_75; -} -else -{ -lean_object* x_147; uint8_t x_148; lean_object* x_149; lean_object* x_150; -x_147 = lean_ctor_get(x_75, 1); -lean_inc(x_147); -lean_dec(x_75); +lean_object* x_147; uint8_t x_148; lean_object* x_149; +x_147 = lean_ctor_get(x_77, 0); +lean_dec(x_147); x_148 = 0; x_149 = lean_box(x_148); -x_150 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_150, 0, x_149); -lean_ctor_set(x_150, 1, x_147); -return x_150; +lean_ctor_set(x_77, 0, x_149); +return x_77; +} +else +{ +lean_object* x_150; uint8_t x_151; lean_object* x_152; lean_object* x_153; +x_150 = lean_ctor_get(x_77, 1); +lean_inc(x_150); +lean_dec(x_77); +x_151 = 0; +x_152 = lean_box(x_151); +x_153 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_153, 0, x_152); +lean_ctor_set(x_153, 1, x_150); +return x_153; } } } else { -lean_object* x_151; lean_object* x_152; +lean_object* x_154; lean_object* x_155; lean_dec(x_61); lean_dec(x_50); lean_dec(x_2); lean_dec(x_1); -x_151 = lean_ctor_get(x_75, 0); -lean_inc(x_151); -x_152 = lean_ctor_get(x_75, 1); -lean_inc(x_152); -lean_dec(x_75); -x_10 = x_151; -x_11 = x_152; -goto block_45; -} -} -else -{ -lean_object* x_153; lean_object* x_154; -lean_dec(x_50); -lean_dec(x_2); -lean_dec(x_1); -x_153 = lean_ctor_get(x_56, 0); -lean_inc(x_153); -x_154 = lean_ctor_get(x_56, 1); +x_154 = lean_ctor_get(x_77, 0); lean_inc(x_154); -lean_dec(x_56); -x_10 = x_153; -x_11 = x_154; +x_155 = lean_ctor_get(x_77, 1); +lean_inc(x_155); +lean_dec(x_77); +x_10 = x_154; +x_11 = x_155; goto block_45; } } else { -lean_object* x_155; lean_object* x_156; +lean_object* x_156; lean_object* x_157; lean_dec(x_50); lean_dec(x_2); lean_dec(x_1); -x_155 = lean_ctor_get(x_53, 0); -lean_inc(x_155); -x_156 = lean_ctor_get(x_53, 1); +x_156 = lean_ctor_get(x_56, 0); lean_inc(x_156); -lean_dec(x_53); -x_10 = x_155; -x_11 = x_156; +x_157 = lean_ctor_get(x_56, 1); +lean_inc(x_157); +lean_dec(x_56); +x_10 = x_156; +x_11 = x_157; goto block_45; } } else { -lean_object* x_157; lean_object* x_158; +lean_object* x_158; lean_object* x_159; +lean_dec(x_50); +lean_dec(x_2); +lean_dec(x_1); +x_158 = lean_ctor_get(x_53, 0); +lean_inc(x_158); +x_159 = lean_ctor_get(x_53, 1); +lean_inc(x_159); +lean_dec(x_53); +x_10 = x_158; +x_11 = x_159; +goto block_45; +} +} +else +{ +lean_object* x_160; lean_object* x_161; lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_157 = lean_ctor_get(x_49, 0); -lean_inc(x_157); -x_158 = lean_ctor_get(x_49, 1); -lean_inc(x_158); +x_160 = lean_ctor_get(x_49, 0); +lean_inc(x_160); +x_161 = lean_ctor_get(x_49, 1); +lean_inc(x_161); lean_dec(x_49); -x_10 = x_157; -x_11 = x_158; +x_10 = x_160; +x_11 = x_161; goto block_45; } block_45: @@ -1619,7 +1626,7 @@ lean_dec(x_1); return x_10; } } -LEAN_EXPORT lean_object* l_Lean_MVarId_initFn____x40_Lean_Meta_Tactic_Acyclic___hyg_868_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_MVarId_initFn____x40_Lean_Meta_Tactic_Acyclic___hyg_869_(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; lean_object* x_4; @@ -1720,7 +1727,7 @@ l_Lean_MVarId_acyclic___lambda__2___closed__1 = _init_l_Lean_MVarId_acyclic___la lean_mark_persistent(l_Lean_MVarId_acyclic___lambda__2___closed__1); l_Lean_MVarId_acyclic___lambda__2___closed__2 = _init_l_Lean_MVarId_acyclic___lambda__2___closed__2(); lean_mark_persistent(l_Lean_MVarId_acyclic___lambda__2___closed__2); -res = l_Lean_MVarId_initFn____x40_Lean_Meta_Tactic_Acyclic___hyg_868_(lean_io_mk_world()); +res = l_Lean_MVarId_initFn____x40_Lean_Meta_Tactic_Acyclic___hyg_869_(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/Tactic/Simp/Main.c b/stage0/stdlib/Lean/Meta/Tactic/Simp/Main.c index 4ff3bbca58..0cb1ee6020 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Simp/Main.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Simp/Main.c @@ -16,7 +16,7 @@ extern "C" { LEAN_EXPORT lean_object* l_Lean_Meta_applySimpResultToLocalDecl(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_dischargeEqnThmHypothesis_x3f___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_applySimpResultToLocalDeclCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_dsimpGoal___spec__1___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_dsimpGoal___spec__1___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*); static lean_object* l_Lean_Meta_Simp_simp_simpLet___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_applySimpResultToFVarId(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___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*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -26,7 +26,7 @@ lean_object* l_Lean_Expr_bindingInfo_x21(lean_object*); static lean_object* l_Lean_Meta_Simp_isOfNatNatLit___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_unfold_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Simp_dsimpMain(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_dsimpMain(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkImpCongrCtx(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_hasAnyFVar_visit___at_Lean_Expr_containsFVar___spec__1(lean_object*, lean_object*); @@ -36,7 +36,7 @@ LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Meta_Simp_simp___sp LEAN_EXPORT lean_object* l_Lean_Meta_Simp_DefaultMethods_discharge_x3f___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_EXPORT lean_object* l_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___lambda__3___boxed(lean_object**); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceProjFn_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_simpTarget(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_simpTarget(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_add(size_t, size_t); LEAN_EXPORT lean_object* l_Array_findSomeRevM_x3f_find___at_Lean_Meta_Simp_dischargeUsingAssumption_x3f___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*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withNewMCtxDepthImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -62,7 +62,7 @@ static lean_object* l_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___lambda__2___ lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Lean_Meta_Simp_getSimpCongrTheorems___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_DefaultMethods_discharge_x3f___lambda__2___closed__2; -LEAN_EXPORT lean_object* l_Lean_Meta_simpLocalDecl___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_simpLocalDecl___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_Meta_unifyEq_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_simp_simpArrow___lambda__4___closed__14; LEAN_EXPORT lean_object* l_Lean_Meta_Simp_getSimpLetCase(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -81,7 +81,7 @@ lean_object* l_Lean_LocalDecl_userName(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduce___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___lambda__1___boxed(lean_object**); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_congrDefault(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_simpGoal___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_simpGoal___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_EXPORT lean_object* l_Lean_instantiateMVars___at_Lean_Meta_Simp_dischargeEqnThmHypothesis_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_processCongrHypothesis___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*); uint8_t l_Lean_LocalDecl_isAuxDecl(lean_object*); @@ -100,7 +100,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Simp_dischargeEqnThmHypothesis_x3f_go_x3f__ static lean_object* l_Lean_Meta_Simp_throwCongrHypothesisFailed___rarg___closed__2; static lean_object* l_Lean_Meta_Simp_simp_simpArrow___lambda__3___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__8___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_simpGoal___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_simpGoal___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_DefaultMethods_post(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_simpProj___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -135,7 +135,7 @@ size_t lean_usize_sub(size_t, size_t); lean_object* lean_environment_find(lean_object*, lean_object*); static lean_object* l_panic___at_Lean_Meta_Simp_simp_simpStep___spec__1___closed__1; static lean_object* l_Lean_Meta_Simp_simp_simpLambda___closed__1; -LEAN_EXPORT lean_object* l_Lean_Meta_simpTargetCore___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_simpTargetCore___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_HashMap_insert___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__3(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_applySimpResultToTarget___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at_Lean_Meta_Simp_simp_simpProj___spec__4(lean_object*, lean_object*, lean_object*); @@ -157,14 +157,14 @@ LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit___at___private_Lean_Meta_Ta lean_object* l_Lean_Meta_mkCongrFun(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_instInhabitedM___rarg___closed__1; static lean_object* l_Lean_Meta_Simp_dischargeEqnThmHypothesis_x3f___closed__4; -LEAN_EXPORT lean_object* l_Lean_Meta_simpStep(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_simpStep(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkLetBodyCongr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isApp(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__4___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_LocalContext_findDeclRevM_x3f___at_Lean_Meta_Simp_dischargeUsingAssumption_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_Simp_simp_simpProj___spec__9(lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lean_Meta_Simp_simp_simpLambda___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_simpGoal___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_simpGoal___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__14___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_mkEqTrans(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_appFn_x21(lean_object*); @@ -175,7 +175,7 @@ LEAN_EXPORT lean_object* l_Std_PersistentArray_anyMAux___at_Lean_Meta_Simp_simp_ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_findSomeRevMAux___at_Lean_Meta_Simp_dischargeUsingAssumption_x3f___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_dsimpGoal___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_EXPORT lean_object* l_Lean_Meta_simpTargetStar___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_simpTargetStar___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_AssocList_find_x3f___at_Lean_Meta_Simp_simp___spec__2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_unfold_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_findSomeRevM_x3f___at_Lean_Meta_Simp_dischargeUsingAssumption_x3f___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -199,7 +199,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_mkCongrSimp_x3f___lambda__2(lean_ LEAN_EXPORT uint8_t l_Std_AssocList_contains___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__4(lean_object*, lean_object*); lean_object* l_Lean_Expr_letE___override(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l_Lean_getConstInfo___at___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal___lambda__5___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_Meta_isTypeCorrect(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_SimpLetCase_noConfusion___rarg(uint8_t, uint8_t, lean_object*); lean_object* l_Lean_Meta_getFunInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -219,10 +219,12 @@ LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_Simp_simp_process LEAN_EXPORT lean_object* l_Lean_Meta_Simp_Result_getProof(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_throwCongrHypothesisFailed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Meta_Simp_simp_simpForall___spec__2(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_dsimpGoal___lambda__5___closed__1; lean_object* l_Lean_Meta_mkEqMP(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_appArg_x21(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___lambda__5___boxed(lean_object**); static lean_object* l_Lean_Meta_Simp_main___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_applySimpResultToProp___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_DefaultMethods_discharge_x3f___lambda__2___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___lambda__3___boxed(lean_object**); LEAN_EXPORT lean_object* l_Lean_Meta_withLetDecl___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__9(lean_object*, lean_object*); @@ -231,12 +233,12 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Simp_DefaultMethods_discharge_x3f___lambda_ lean_object* l_Lean_Meta_Simp_postDefault(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_DefaultMethods_discharge_x3f___lambda__1___closed__1; LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at_Lean_Meta_Simp_simp_simpProj___spec__12(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_simpLocalDecl___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_simpLocalDecl___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_congrArgs___spec__1___closed__4; static lean_object* l_Lean_Meta_Simp_simp_simpForall___closed__9; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_isOfNatNatLit___closed__1; -LEAN_EXPORT lean_object* l_Lean_Meta_dsimp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_dsimp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_Simp_instInhabitedResult; static lean_object* l_Lean_Meta_Simp_isOfNatNatLit___closed__2; uint8_t lean_usize_dec_lt(size_t, size_t); @@ -245,7 +247,7 @@ static lean_object* l_Lean_Meta_Simp_dischargeEqnThmHypothesis_x3f___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_Simp_removeUnnecessaryCasts___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_simp_simpForall___closed__4; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_dsimpGoal___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_dsimpGoal___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_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_Simp_simp_congrDefault___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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_simp_simpArrow___lambda__4___closed__16; @@ -280,7 +282,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_Tact lean_object* l_StateRefT_x27_lift___rarg___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___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* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_simpTarget___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_simpTarget___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitForall___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__5___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*); static lean_object* l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__6; lean_object* l_Lean_Meta_Simp_rewritePre(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -307,7 +309,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit___at___private_Lean_Meta_Ta LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at_Lean_Meta_Simp_dischargeEqnThmHypothesis_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_getConfig___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___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_EXPORT lean_object* l_Lean_Meta_simpTargetCore(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_simpTargetCore(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallMetaTelescopeReducingAux(lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getProjectionFnInfo_x3f___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceProjFn_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec(lean_object*); @@ -317,7 +319,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_simpForall___lambda__2___boxed(le static lean_object* l_Lean_isTracingEnabledFor___at_Lean_Meta_Simp_simp_simpForall___spec__1___closed__1; static lean_object* l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__5; static lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___lambda__3___closed__1; -LEAN_EXPORT lean_object* l_Lean_Meta_Simp_main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_projExpr_x21(lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_simpArrow(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -330,7 +332,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_simpConst___boxed(lean_object*, l LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_Simp_simp_simpProj___spec__17(lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_unfold_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_anyM___at_Lean_Meta_Simp_simp_simpProj___spec__5___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_simpTarget___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_simpTarget___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_visitFn___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_EXPORT lean_object* l_Lean_Meta_Simp_instInhabitedM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_lambdaTelescopeDSimp_go(lean_object*); @@ -338,14 +340,13 @@ static lean_object* l_Lean_Meta_Simp_DefaultMethods_discharge_x3f___lambda__1___ LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___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*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MVarId_assign___at_Lean_Meta_getLevel___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal___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_EXPORT lean_object* l_Lean_Meta_Simp_SimpLetCase_toCtorIdx(uint8_t); lean_object* l_Lean_Meta_throwNestedTacticEx___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_simpGoal___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_simpGoal___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_headBeta(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_simpTarget___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_simpTarget___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_EXPORT lean_object* l_Lean_Meta_Simp_simp_simpLet(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_dsimpGoal___lambda__4___closed__1; static lean_object* l_Lean_Meta_simpTargetCore___closed__3; lean_object* l_Lean_MVarId_tryClearMany(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_Config_updateArith___closed__3; @@ -391,6 +392,7 @@ lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(lean_object*, l static lean_object* l_Lean_Meta_Simp_SimpLetCase_noConfusion___rarg___closed__1; static lean_object* l_Lean_Meta_Simp_simp_simpArrow___lambda__4___closed__7; LEAN_EXPORT lean_object* l_Lean_Meta_Simp_DefaultMethods_discharge_x3f___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_applySimpResultToProp___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_DefaultMethods_methods; lean_object* l_Nat_repr(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -430,7 +432,7 @@ lean_object* l_Lean_Expr_sort___override(lean_object*); lean_object* l_Lean_MVarId_replaceTargetEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_simpLambda(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkEqNDRec(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_simpTargetStar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_simpTargetStar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_natLit_x3f(lean_object*); LEAN_EXPORT lean_object* l_Std_AssocList_contains___at_Lean_Meta_Simp_simp_cacheResult___spec__2___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_Simp_lambdaTelescopeDSimp_go___spec__1___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -441,11 +443,11 @@ LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitForall___at___private_ LEAN_EXPORT lean_object* l_Lean_Meta_Simp_initFn____x40_Lean_Meta_Tactic_Simp_Main___hyg_5_(lean_object*); lean_object* l_Lean_Meta_Simp_post(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_Config_updateArith___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___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*); uint8_t l_Lean_Expr_isAppOfArity(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_mkCongrSimp_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_DefaultMethods_discharge_x3f___lambda__1___closed__7; -LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__4___closed__3; lean_object* l_Lean_MVarId_replaceLocalDeclDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__11(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*); @@ -492,14 +494,16 @@ static lean_object* l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___close LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___lambda__5(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*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at_Lean_Meta_Simp_simp_simpProj___spec__11___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_initFn____x40_Lean_Meta_Tactic_Simp_Main___hyg_5____closed__2; +LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal___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_EXPORT lean_object* l_Array_findSomeRevM_x3f_find___at_Lean_Meta_Simp_dischargeUsingAssumption_x3f___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_Config_updateArith___closed__5; size_t lean_usize_of_nat(lean_object*); +extern lean_object* l_Lean_NameSet_empty; LEAN_EXPORT lean_object* l_Lean_Meta_applySimpResultToFVarId___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f(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_isLambda(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_withNewLemmas___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_fvarId(lean_object*); static lean_object* l_Lean_Meta_Simp_initFn____x40_Lean_Meta_Tactic_Simp_Main___hyg_5____closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_cacheResult(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -525,9 +529,8 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySi static lean_object* l_Lean_Meta_Simp_DefaultMethods_discharge_x3f___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lean_Meta_Simp_simp_simpLambda___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*); static lean_object* l_Lean_Meta_Simp_simp_simpForall___closed__3; -LEAN_EXPORT lean_object* l_Lean_Meta_simpLocalDecl___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_EXPORT lean_object* l_Lean_Meta_simpLocalDecl___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_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__8___rarg___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*); -static lean_object* l_Lean_Meta_simpTargetCore___closed__4; lean_object* l_Lean_LocalDecl_type(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__4___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_EXPORT lean_object* l_Lean_Meta_Simp_dischargeEqnThmHypothesis_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -543,7 +546,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_visitFn___lambda__1(lean_object*, lean_object* l_Lean_Meta_reduceMatcher_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_fvar___override(lean_object*); LEAN_EXPORT lean_object* l_Lean_exprDependsOn___at_Lean_Meta_Simp_simp_simpProj___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__10___boxed(lean_object**); size_t lean_ptr_addr(lean_object*); lean_object* l_Lean_Meta_mkForallCongr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -557,19 +560,19 @@ lean_object* l_Lean_Meta_trySynthInstance(lean_object*, lean_object*, lean_objec lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*); lean_object* l_Lean_getExprMVarAssignment_x3f___at___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_addTrace___at_Lean_Meta_Simp_simp_simpForall___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_applySimpResultToTarget(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_SimpTheoremsArray_eraseTheorem(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___lambda__7___closed__2; static lean_object* l_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___lambda__2___closed__1; -LEAN_EXPORT lean_object* l_Lean_Meta_simpTargetCore___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_simpTargetCore___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitLet___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__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*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_transform___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__1___closed__1; lean_object* l_Lean_Expr_bindingName_x21(lean_object*); static lean_object* l_Lean_Meta_Simp_dsimpMain___closed__1; uint8_t lean_expr_eqv(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_Simp_simp_simpProj___spec__16(lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Lean_exprDependsOn___at_Lean_Meta_Simp_simp_simpProj___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_mkCongrFun(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -594,7 +597,7 @@ static lean_object* l_Lean_Meta_Simp_isOfNatNatLit___closed__4; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_congrArgs___spec__1___lambda__2___closed__1; uint8_t l___private_Lean_Util_Trace_0__Lean_checkTraceOption(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceFVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_simpGoal___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_simp_simpArrow___closed__1; LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Meta_Simp_simp_congr___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*); @@ -606,7 +609,7 @@ LEAN_EXPORT lean_object* l_ReaderT_bind___at___private_Lean_Meta_Tactic_Simp_Mai static lean_object* l_Lean_Meta_Simp_DefaultMethods_discharge_x3f___lambda__2___closed__4; static lean_object* l_Lean_Meta_Simp_simp_simpForall___closed__7; static lean_object* l_Lean_Meta_simpTargetCore___closed__2; -LEAN_EXPORT lean_object* l_Lean_Meta_simpLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_simpLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_abstractM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_SynthInstance_removeUnusedArguments_x3f___spec__2___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_Config_updateArith___closed__8; @@ -615,6 +618,7 @@ LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_v LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___lambda__7___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*); static lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_Simp_removeUnnecessaryCasts___spec__1___closed__1; static lean_object* l_Lean_Meta_Simp_dischargeEqnThmHypothesis_x3f_go_x3f___lambda__2___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_lambdaTelescopeDSimp_go___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_object*); static lean_object* l_Lean_Meta_Simp_dsimpMain___closed__2; LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_Simp_removeUnnecessaryCasts___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -625,7 +629,7 @@ LEAN_EXPORT lean_object* l_Std_HashMapImp_expand___at_Lean_Meta_Simp_simp_mkCong LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_visitFn___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_contains___at___private_Lean_Class_0__Lean_checkOutParam___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_throwCongrHypothesisFailed___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_simpTargetCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_simpTargetCore___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_Meta_SimpCongrTheorems_get(lean_object*, lean_object*); lean_object* l_Array_ofSubarray___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_transform___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___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*); @@ -639,14 +643,13 @@ lean_object* l_Lean_Meta_getFunInfoNArgs(lean_object*, lean_object*, lean_object lean_object* l_Lean_Meta_mkCongrArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_applySimpResultToProp___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__14___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Simp_main___closed__2; static lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_Simp_removeUnnecessaryCasts___spec__1___closed__2; lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isFVar(lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Meta_Simp_isOfNatNatLit(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_simpGoal(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_simpGoal(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_EXPORT lean_object* l_Lean_Meta_Simp_SimpLetCase_noConfusion___rarg___lambda__1(lean_object*); LEAN_EXPORT lean_object* l_Std_AssocList_foldlM___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__7(lean_object*, 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*); @@ -655,7 +658,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___lambda_ LEAN_EXPORT lean_object* l_Lean_Meta_Simp_isOfNatNatLit___boxed(lean_object*); lean_object* l_Lean_Expr_app___override(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at_Lean_Meta_Simp_simp_simpProj___spec__3___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_simpGoal___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_EXPORT lean_object* l_Lean_Meta_simpGoal___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_withNewLemmas___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_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_Simp_simp_simpProj___spec__17___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_anyMAux___at_Lean_Meta_Simp_simp_simpProj___spec__14___boxed(lean_object*, lean_object*); @@ -676,10 +679,10 @@ lean_object* lean_panic_fn(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_simpConst(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_simp_simpArrow___lambda__4___closed__4; LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__8___rarg(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_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Meta_Simp_simp___spec__1(lean_object*, lean_object*); uint8_t l_Lean_MapDeclarationExtension_contains___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal___lambda__5(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_Meta_getPropHyps(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_simpArrow___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_EXPORT lean_object* l_Lean_isProjectionFn___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_unfold_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -692,9 +695,11 @@ LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal___lambda__3(lean_object*, lean_ob LEAN_EXPORT lean_object* l_Std_PersistentArray_findSomeRevMAux___at_Lean_Meta_Simp_dischargeUsingAssumption_x3f___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_simpLoop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_simp_simpForall___closed__2; +static lean_object* l_Lean_Meta_applySimpResultToProp___closed__1; static lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_Simp_removeUnnecessaryCasts___spec__1___closed__3; static lean_object* l_Lean_Meta_Simp_simp_simpArrow___lambda__4___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Simp_dischargeUsingAssumption_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Simp_recordSimpTheorem(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__4(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_applySimpResultToProp(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_simp_simpArrow___lambda__4___closed__2; @@ -714,10 +719,10 @@ lean_object* l_Lean_Meta_whnfD(lean_object*, lean_object*, lean_object*, lean_ob LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_simpProj(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_mkCongrSimp_x3f___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_EXPORT lean_object* l_Std_AssocList_contains___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__4___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_simpGoal___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_simpGoal___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Std_PersistentArray_anyM___at_Lean_Meta_Simp_simp_simpProj___spec__5(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceProj(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal___lambda__4(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal___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*); lean_object* l_Lean_Meta_SimpTheoremsArray_addTheorem(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_findSomeRevM_x3f_find___at_Lean_Meta_Simp_dischargeUsingAssumption_x3f___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_EXPORT lean_object* l_Lean_addTrace___at_Lean_Meta_Simp_simp_simpForall___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -741,7 +746,7 @@ static lean_object* l_Lean_Meta_Simp_simp_simpStep___closed__4; LEAN_EXPORT lean_object* l_Lean_Meta_Simp_removeUnnecessaryCasts_elimDummyEqRec(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__14(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___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_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__9(lean_object*, size_t, size_t); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withLetDeclImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___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*); @@ -770,10 +775,8 @@ LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_Simp_simp_process static lean_object* l_Lean_Meta_Simp_simp_simpLit___closed__1; lean_object* l_Lean_Meta_Simp_synthesizeArgs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__4___closed__7; -static lean_object* l_Lean_Meta_simpGoal___lambda__3___closed__1; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__4; lean_object* l_Lean_FVarId_getType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_congrArgs___spec__1___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_EXPORT lean_object* l_Lean_Meta_Simp_simp_cacheResult___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Meta_hasSmartUnfoldingDecl(lean_object*, lean_object*); @@ -804,9 +807,9 @@ static lean_object* l_Lean_Meta_Simp_simp_simpStep___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_simpLit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLetDecl___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__9___rarg(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_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at_Lean_Meta_Simp_simp_simpProj___spec__11(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_simp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_simp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkNumeral(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_simpStep___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_simpStep___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__4___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*); static lean_object* l_Lean_Meta_Simp_simp_simpArrow___lambda__4___closed__8; LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_simpProj___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -5691,21 +5694,28 @@ return x_15; } else { -lean_object* x_16; lean_object* x_17; lean_object* x_18; -lean_dec(x_1); +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; x_16 = lean_ctor_get(x_10, 1); lean_inc(x_16); lean_dec(x_10); x_17 = lean_ctor_get(x_11, 0); lean_inc(x_17); lean_dec(x_11); -x_18 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduce(x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_16); -return x_18; +x_18 = l_Lean_Expr_getAppFn(x_1); +lean_dec(x_1); +x_19 = l_Lean_Expr_constName_x21(x_18); +lean_dec(x_18); +x_20 = l_Lean_Meta_Simp_recordSimpTheorem(x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_16); +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec(x_20); +x_22 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduce(x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_21); +return x_22; } } else { -uint8_t x_19; +uint8_t x_23; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -5713,23 +5723,23 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_19 = !lean_is_exclusive(x_10); -if (x_19 == 0) +x_23 = !lean_is_exclusive(x_10); +if (x_23 == 0) { return x_10; } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_10, 0); -x_21 = lean_ctor_get(x_10, 1); -lean_inc(x_21); -lean_inc(x_20); +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_10, 0); +x_25 = lean_ctor_get(x_10, 1); +lean_inc(x_25); +lean_inc(x_24); lean_dec(x_10); -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; +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; } } } @@ -11041,12 +11051,13 @@ lean_dec(x_18); x_26 = lean_ctor_get(x_19, 1); lean_inc(x_26); lean_dec(x_19); -x_27 = lean_box(0); +lean_inc(x_15); +x_27 = l_Lean_Expr_fvarId_x21(x_15); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_28 = l_Lean_Meta_SimpTheoremsArray_addTheorem(x_17, x_15, x_27, x_8, x_9, x_10, x_11, x_26); +x_28 = l_Lean_Meta_SimpTheoremsArray_addTheorem(x_17, x_27, x_15, x_8, x_9, x_10, x_11, x_26); if (lean_obj_tag(x_28) == 0) { lean_object* x_29; lean_object* x_30; uint8_t x_31; lean_object* x_32; size_t x_33; size_t x_34; @@ -11170,12 +11181,13 @@ lean_dec(x_45); x_54 = lean_ctor_get(x_46, 1); lean_inc(x_54); lean_dec(x_46); -x_55 = lean_box(0); +lean_inc(x_15); +x_55 = l_Lean_Expr_fvarId_x21(x_15); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_56 = l_Lean_Meta_SimpTheoremsArray_addTheorem(x_44, x_15, x_55, x_8, x_9, x_10, x_11, x_54); +x_56 = l_Lean_Meta_SimpTheoremsArray_addTheorem(x_44, x_55, x_15, x_8, x_9, x_10, x_11, x_54); if (lean_obj_tag(x_56) == 0) { lean_object* x_57; lean_object* x_58; uint8_t x_59; lean_object* x_60; lean_object* x_61; size_t x_62; size_t x_63; @@ -11429,448 +11441,480 @@ return x_66; } else { -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_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; x_67 = lean_ctor_get(x_58, 1); x_68 = lean_ctor_get(x_58, 2); +x_69 = lean_ctor_get(x_58, 3); +lean_inc(x_69); lean_inc(x_68); lean_inc(x_67); lean_dec(x_58); -x_69 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_69, 0, x_39); -lean_ctor_set(x_69, 1, x_67); -lean_ctor_set(x_69, 2, x_68); -x_70 = lean_st_ref_set(x_5, x_69, x_59); +x_70 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_70, 0, x_39); +lean_ctor_set(x_70, 1, x_67); +lean_ctor_set(x_70, 2, x_68); +lean_ctor_set(x_70, 3, x_69); +x_71 = lean_st_ref_set(x_5, x_70, x_59); lean_dec(x_5); -x_71 = lean_ctor_get(x_70, 1); -lean_inc(x_71); -if (lean_is_exclusive(x_70)) { - lean_ctor_release(x_70, 0); - lean_ctor_release(x_70, 1); - x_72 = x_70; +x_72 = lean_ctor_get(x_71, 1); +lean_inc(x_72); +if (lean_is_exclusive(x_71)) { + lean_ctor_release(x_71, 0); + lean_ctor_release(x_71, 1); + x_73 = x_71; } else { - lean_dec_ref(x_70); - x_72 = lean_box(0); + lean_dec_ref(x_71); + x_73 = lean_box(0); } -if (lean_is_scalar(x_72)) { - x_73 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_73)) { + x_74 = lean_alloc_ctor(0, 2, 0); } else { - x_73 = x_72; + x_74 = x_73; } -lean_ctor_set(x_73, 0, x_53); -lean_ctor_set(x_73, 1, x_71); -return x_73; +lean_ctor_set(x_74, 0, x_53); +lean_ctor_set(x_74, 1, x_72); +return x_74; } } else { -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; uint8_t x_81; -x_74 = lean_ctor_get(x_52, 0); -lean_inc(x_74); -x_75 = lean_ctor_get(x_52, 1); +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; uint8_t x_82; +x_75 = lean_ctor_get(x_52, 0); lean_inc(x_75); +x_76 = lean_ctor_get(x_52, 1); +lean_inc(x_76); lean_dec(x_52); -x_76 = lean_st_ref_get(x_9, x_75); +x_77 = lean_st_ref_get(x_9, x_76); lean_dec(x_9); -x_77 = lean_ctor_get(x_76, 1); -lean_inc(x_77); -lean_dec(x_76); -x_78 = lean_st_ref_take(x_5, x_77); -x_79 = lean_ctor_get(x_78, 0); -lean_inc(x_79); -x_80 = lean_ctor_get(x_78, 1); +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); -lean_dec(x_78); -x_81 = !lean_is_exclusive(x_79); -if (x_81 == 0) -{ -lean_object* x_82; lean_object* x_83; uint8_t x_84; -x_82 = lean_ctor_get(x_79, 0); -lean_dec(x_82); -lean_ctor_set(x_79, 0, x_39); -x_83 = lean_st_ref_set(x_5, x_79, x_80); -lean_dec(x_5); -x_84 = !lean_is_exclusive(x_83); -if (x_84 == 0) -{ -lean_object* x_85; -x_85 = lean_ctor_get(x_83, 0); -lean_dec(x_85); -lean_ctor_set_tag(x_83, 1); -lean_ctor_set(x_83, 0, x_74); -return x_83; -} -else -{ -lean_object* x_86; lean_object* x_87; -x_86 = lean_ctor_get(x_83, 1); -lean_inc(x_86); -lean_dec(x_83); -x_87 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_87, 0, x_74); -lean_ctor_set(x_87, 1, x_86); -return x_87; -} -} -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; -x_88 = lean_ctor_get(x_79, 1); -x_89 = lean_ctor_get(x_79, 2); -lean_inc(x_89); -lean_inc(x_88); +x_81 = lean_ctor_get(x_79, 1); +lean_inc(x_81); lean_dec(x_79); -x_90 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_90, 0, x_39); -lean_ctor_set(x_90, 1, x_88); -lean_ctor_set(x_90, 2, x_89); -x_91 = lean_st_ref_set(x_5, x_90, x_80); +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, 0); +lean_dec(x_83); +lean_ctor_set(x_80, 0, x_39); +x_84 = lean_st_ref_set(x_5, x_80, x_81); lean_dec(x_5); -x_92 = lean_ctor_get(x_91, 1); -lean_inc(x_92); -if (lean_is_exclusive(x_91)) { - lean_ctor_release(x_91, 0); - lean_ctor_release(x_91, 1); - x_93 = x_91; -} else { - lean_dec_ref(x_91); - x_93 = lean_box(0); +x_85 = !lean_is_exclusive(x_84); +if (x_85 == 0) +{ +lean_object* x_86; +x_86 = lean_ctor_get(x_84, 0); +lean_dec(x_86); +lean_ctor_set_tag(x_84, 1); +lean_ctor_set(x_84, 0, x_75); +return x_84; } -if (lean_is_scalar(x_93)) { - x_94 = lean_alloc_ctor(1, 2, 0); -} else { - x_94 = x_93; - lean_ctor_set_tag(x_94, 1); +else +{ +lean_object* x_87; lean_object* x_88; +x_87 = lean_ctor_get(x_84, 1); +lean_inc(x_87); +lean_dec(x_84); +x_88 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_88, 0, x_75); +lean_ctor_set(x_88, 1, x_87); +return x_88; } -lean_ctor_set(x_94, 0, x_74); -lean_ctor_set(x_94, 1, x_92); -return x_94; +} +else +{ +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; +x_89 = lean_ctor_get(x_80, 1); +x_90 = lean_ctor_get(x_80, 2); +x_91 = lean_ctor_get(x_80, 3); +lean_inc(x_91); +lean_inc(x_90); +lean_inc(x_89); +lean_dec(x_80); +x_92 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_92, 0, x_39); +lean_ctor_set(x_92, 1, x_89); +lean_ctor_set(x_92, 2, x_90); +lean_ctor_set(x_92, 3, x_91); +x_93 = lean_st_ref_set(x_5, x_92, x_81); +lean_dec(x_5); +x_94 = lean_ctor_get(x_93, 1); +lean_inc(x_94); +if (lean_is_exclusive(x_93)) { + lean_ctor_release(x_93, 0); + lean_ctor_release(x_93, 1); + x_95 = x_93; +} else { + lean_dec_ref(x_93); + x_95 = lean_box(0); +} +if (lean_is_scalar(x_95)) { + x_96 = lean_alloc_ctor(1, 2, 0); +} else { + x_96 = x_95; + lean_ctor_set_tag(x_96, 1); +} +lean_ctor_set(x_96, 0, x_75); +lean_ctor_set(x_96, 1, x_94); +return x_96; } } } else { -lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; -x_95 = lean_ctor_get(x_4, 0); -x_96 = lean_ctor_get(x_4, 2); -x_97 = lean_ctor_get(x_4, 3); -x_98 = lean_ctor_get(x_4, 4); +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_4, 0); +x_98 = lean_ctor_get(x_4, 2); +x_99 = lean_ctor_get(x_4, 3); +x_100 = lean_ctor_get(x_4, 4); +x_101 = lean_ctor_get(x_4, 5); +lean_inc(x_101); +lean_inc(x_100); +lean_inc(x_99); lean_inc(x_98); lean_inc(x_97); -lean_inc(x_96); -lean_inc(x_95); lean_dec(x_4); -x_99 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_99, 0, x_95); -lean_ctor_set(x_99, 1, x_33); -lean_ctor_set(x_99, 2, x_96); -lean_ctor_set(x_99, 3, x_97); -lean_ctor_set(x_99, 4, x_98); +x_102 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_102, 0, x_97); +lean_ctor_set(x_102, 1, x_33); +lean_ctor_set(x_102, 2, x_98); +lean_ctor_set(x_102, 3, x_99); +lean_ctor_set(x_102, 4, x_100); +lean_ctor_set(x_102, 5, x_101); lean_inc(x_9); lean_inc(x_5); -x_100 = lean_apply_8(x_2, x_3, x_99, x_5, x_6, x_7, x_8, x_9, x_49); -if (lean_obj_tag(x_100) == 0) +x_103 = lean_apply_8(x_2, x_3, x_102, x_5, x_6, x_7, x_8, x_9, x_49); +if (lean_obj_tag(x_103) == 0) { -lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_101 = lean_ctor_get(x_100, 0); -lean_inc(x_101); -x_102 = lean_ctor_get(x_100, 1); -lean_inc(x_102); -lean_dec(x_100); -x_103 = lean_st_ref_get(x_9, x_102); -lean_dec(x_9); -x_104 = lean_ctor_get(x_103, 1); +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; +x_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_105 = lean_st_ref_take(x_5, x_104); -x_106 = lean_ctor_get(x_105, 0); -lean_inc(x_106); -x_107 = lean_ctor_get(x_105, 1); +x_106 = lean_st_ref_get(x_9, x_105); +lean_dec(x_9); +x_107 = lean_ctor_get(x_106, 1); lean_inc(x_107); -lean_dec(x_105); -x_108 = lean_ctor_get(x_106, 1); -lean_inc(x_108); -x_109 = lean_ctor_get(x_106, 2); +lean_dec(x_106); +x_108 = lean_st_ref_take(x_5, x_107); +x_109 = lean_ctor_get(x_108, 0); lean_inc(x_109); -if (lean_is_exclusive(x_106)) { - lean_ctor_release(x_106, 0); - lean_ctor_release(x_106, 1); - lean_ctor_release(x_106, 2); - x_110 = x_106; -} else { - lean_dec_ref(x_106); - x_110 = lean_box(0); -} -if (lean_is_scalar(x_110)) { - x_111 = lean_alloc_ctor(0, 3, 0); -} else { - x_111 = x_110; -} -lean_ctor_set(x_111, 0, x_39); -lean_ctor_set(x_111, 1, x_108); -lean_ctor_set(x_111, 2, x_109); -x_112 = lean_st_ref_set(x_5, x_111, x_107); -lean_dec(x_5); -x_113 = lean_ctor_get(x_112, 1); +x_110 = lean_ctor_get(x_108, 1); +lean_inc(x_110); +lean_dec(x_108); +x_111 = lean_ctor_get(x_109, 1); +lean_inc(x_111); +x_112 = lean_ctor_get(x_109, 2); +lean_inc(x_112); +x_113 = lean_ctor_get(x_109, 3); lean_inc(x_113); -if (lean_is_exclusive(x_112)) { - lean_ctor_release(x_112, 0); - lean_ctor_release(x_112, 1); - x_114 = x_112; +if (lean_is_exclusive(x_109)) { + lean_ctor_release(x_109, 0); + lean_ctor_release(x_109, 1); + lean_ctor_release(x_109, 2); + lean_ctor_release(x_109, 3); + x_114 = x_109; } else { - lean_dec_ref(x_112); + lean_dec_ref(x_109); x_114 = lean_box(0); } if (lean_is_scalar(x_114)) { - x_115 = lean_alloc_ctor(0, 2, 0); + x_115 = lean_alloc_ctor(0, 4, 0); } else { x_115 = x_114; } -lean_ctor_set(x_115, 0, x_101); -lean_ctor_set(x_115, 1, x_113); -return x_115; -} -else -{ -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_129; lean_object* x_130; -x_116 = lean_ctor_get(x_100, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_100, 1); -lean_inc(x_117); -lean_dec(x_100); -x_118 = lean_st_ref_get(x_9, x_117); -lean_dec(x_9); -x_119 = lean_ctor_get(x_118, 1); -lean_inc(x_119); -lean_dec(x_118); -x_120 = lean_st_ref_take(x_5, x_119); -x_121 = lean_ctor_get(x_120, 0); -lean_inc(x_121); -x_122 = lean_ctor_get(x_120, 1); -lean_inc(x_122); -lean_dec(x_120); -x_123 = lean_ctor_get(x_121, 1); -lean_inc(x_123); -x_124 = lean_ctor_get(x_121, 2); -lean_inc(x_124); -if (lean_is_exclusive(x_121)) { - lean_ctor_release(x_121, 0); - lean_ctor_release(x_121, 1); - lean_ctor_release(x_121, 2); - x_125 = x_121; -} else { - lean_dec_ref(x_121); - x_125 = lean_box(0); -} -if (lean_is_scalar(x_125)) { - x_126 = lean_alloc_ctor(0, 3, 0); -} else { - x_126 = x_125; -} -lean_ctor_set(x_126, 0, x_39); -lean_ctor_set(x_126, 1, x_123); -lean_ctor_set(x_126, 2, x_124); -x_127 = lean_st_ref_set(x_5, x_126, x_122); +lean_ctor_set(x_115, 0, x_39); +lean_ctor_set(x_115, 1, x_111); +lean_ctor_set(x_115, 2, x_112); +lean_ctor_set(x_115, 3, x_113); +x_116 = lean_st_ref_set(x_5, x_115, x_110); lean_dec(x_5); -x_128 = lean_ctor_get(x_127, 1); +x_117 = lean_ctor_get(x_116, 1); +lean_inc(x_117); +if (lean_is_exclusive(x_116)) { + lean_ctor_release(x_116, 0); + lean_ctor_release(x_116, 1); + x_118 = x_116; +} else { + lean_dec_ref(x_116); + x_118 = lean_box(0); +} +if (lean_is_scalar(x_118)) { + x_119 = lean_alloc_ctor(0, 2, 0); +} else { + x_119 = x_118; +} +lean_ctor_set(x_119, 0, x_104); +lean_ctor_set(x_119, 1, x_117); +return x_119; +} +else +{ +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_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; +x_120 = lean_ctor_get(x_103, 0); +lean_inc(x_120); +x_121 = lean_ctor_get(x_103, 1); +lean_inc(x_121); +lean_dec(x_103); +x_122 = lean_st_ref_get(x_9, x_121); +lean_dec(x_9); +x_123 = lean_ctor_get(x_122, 1); +lean_inc(x_123); +lean_dec(x_122); +x_124 = lean_st_ref_take(x_5, 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); +x_127 = lean_ctor_get(x_125, 1); +lean_inc(x_127); +x_128 = lean_ctor_get(x_125, 2); lean_inc(x_128); -if (lean_is_exclusive(x_127)) { - lean_ctor_release(x_127, 0); - lean_ctor_release(x_127, 1); - x_129 = x_127; +x_129 = lean_ctor_get(x_125, 3); +lean_inc(x_129); +if (lean_is_exclusive(x_125)) { + lean_ctor_release(x_125, 0); + lean_ctor_release(x_125, 1); + lean_ctor_release(x_125, 2); + lean_ctor_release(x_125, 3); + x_130 = x_125; } else { - lean_dec_ref(x_127); - x_129 = lean_box(0); + lean_dec_ref(x_125); + x_130 = lean_box(0); } -if (lean_is_scalar(x_129)) { - x_130 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_130)) { + x_131 = lean_alloc_ctor(0, 4, 0); } else { - x_130 = x_129; - lean_ctor_set_tag(x_130, 1); + x_131 = x_130; } -lean_ctor_set(x_130, 0, x_116); -lean_ctor_set(x_130, 1, x_128); -return x_130; +lean_ctor_set(x_131, 0, x_39); +lean_ctor_set(x_131, 1, x_127); +lean_ctor_set(x_131, 2, x_128); +lean_ctor_set(x_131, 3, x_129); +x_132 = lean_st_ref_set(x_5, x_131, x_126); +lean_dec(x_5); +x_133 = lean_ctor_get(x_132, 1); +lean_inc(x_133); +if (lean_is_exclusive(x_132)) { + lean_ctor_release(x_132, 0); + lean_ctor_release(x_132, 1); + x_134 = x_132; +} else { + lean_dec_ref(x_132); + x_134 = lean_box(0); +} +if (lean_is_scalar(x_134)) { + x_135 = lean_alloc_ctor(1, 2, 0); +} else { + x_135 = x_134; + lean_ctor_set_tag(x_135, 1); +} +lean_ctor_set(x_135, 0, x_120); +lean_ctor_set(x_135, 1, x_133); +return x_135; } } } else { -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; -x_131 = lean_ctor_get(x_43, 1); -x_132 = lean_ctor_get(x_43, 2); -lean_inc(x_132); -lean_inc(x_131); -lean_dec(x_43); -x_133 = l_Lean_Meta_transform___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__1___closed__1; -x_134 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_134, 0, x_133); -lean_ctor_set(x_134, 1, x_131); -lean_ctor_set(x_134, 2, x_132); -x_135 = lean_st_ref_set(x_5, x_134, x_44); -x_136 = lean_ctor_get(x_135, 1); -lean_inc(x_136); -lean_dec(x_135); -x_137 = lean_ctor_get(x_4, 0); -lean_inc(x_137); -x_138 = lean_ctor_get(x_4, 2); +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_136 = lean_ctor_get(x_43, 1); +x_137 = lean_ctor_get(x_43, 2); +x_138 = lean_ctor_get(x_43, 3); lean_inc(x_138); -x_139 = lean_ctor_get(x_4, 3); -lean_inc(x_139); -x_140 = lean_ctor_get(x_4, 4); -lean_inc(x_140); +lean_inc(x_137); +lean_inc(x_136); +lean_dec(x_43); +x_139 = l_Lean_Meta_transform___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__1___closed__1; +x_140 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_140, 0, x_139); +lean_ctor_set(x_140, 1, x_136); +lean_ctor_set(x_140, 2, x_137); +lean_ctor_set(x_140, 3, x_138); +x_141 = lean_st_ref_set(x_5, x_140, x_44); +x_142 = lean_ctor_get(x_141, 1); +lean_inc(x_142); +lean_dec(x_141); +x_143 = lean_ctor_get(x_4, 0); +lean_inc(x_143); +x_144 = lean_ctor_get(x_4, 2); +lean_inc(x_144); +x_145 = lean_ctor_get(x_4, 3); +lean_inc(x_145); +x_146 = lean_ctor_get(x_4, 4); +lean_inc(x_146); +x_147 = lean_ctor_get(x_4, 5); +lean_inc(x_147); if (lean_is_exclusive(x_4)) { lean_ctor_release(x_4, 0); lean_ctor_release(x_4, 1); lean_ctor_release(x_4, 2); lean_ctor_release(x_4, 3); lean_ctor_release(x_4, 4); - x_141 = x_4; + lean_ctor_release(x_4, 5); + x_148 = x_4; } else { lean_dec_ref(x_4); - x_141 = lean_box(0); + x_148 = lean_box(0); } -if (lean_is_scalar(x_141)) { - x_142 = lean_alloc_ctor(0, 5, 0); +if (lean_is_scalar(x_148)) { + x_149 = lean_alloc_ctor(0, 6, 0); } else { - x_142 = x_141; + x_149 = x_148; } -lean_ctor_set(x_142, 0, x_137); -lean_ctor_set(x_142, 1, x_33); -lean_ctor_set(x_142, 2, x_138); -lean_ctor_set(x_142, 3, x_139); -lean_ctor_set(x_142, 4, x_140); +lean_ctor_set(x_149, 0, x_143); +lean_ctor_set(x_149, 1, x_33); +lean_ctor_set(x_149, 2, x_144); +lean_ctor_set(x_149, 3, x_145); +lean_ctor_set(x_149, 4, x_146); +lean_ctor_set(x_149, 5, x_147); lean_inc(x_9); lean_inc(x_5); -x_143 = lean_apply_8(x_2, x_3, x_142, x_5, x_6, x_7, x_8, x_9, x_136); -if (lean_obj_tag(x_143) == 0) +x_150 = lean_apply_8(x_2, x_3, x_149, x_5, x_6, x_7, x_8, x_9, x_142); +if (lean_obj_tag(x_150) == 0) { -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; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; -x_144 = lean_ctor_get(x_143, 0); -lean_inc(x_144); -x_145 = lean_ctor_get(x_143, 1); -lean_inc(x_145); -lean_dec(x_143); -x_146 = lean_st_ref_get(x_9, x_145); -lean_dec(x_9); -x_147 = lean_ctor_get(x_146, 1); -lean_inc(x_147); -lean_dec(x_146); -x_148 = lean_st_ref_take(x_5, x_147); -x_149 = lean_ctor_get(x_148, 0); -lean_inc(x_149); -x_150 = lean_ctor_get(x_148, 1); -lean_inc(x_150); -lean_dec(x_148); -x_151 = lean_ctor_get(x_149, 1); +lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; +x_151 = lean_ctor_get(x_150, 0); lean_inc(x_151); -x_152 = lean_ctor_get(x_149, 2); +x_152 = lean_ctor_get(x_150, 1); lean_inc(x_152); -if (lean_is_exclusive(x_149)) { - lean_ctor_release(x_149, 0); - lean_ctor_release(x_149, 1); - lean_ctor_release(x_149, 2); - x_153 = x_149; -} else { - lean_dec_ref(x_149); - x_153 = lean_box(0); -} -if (lean_is_scalar(x_153)) { - x_154 = lean_alloc_ctor(0, 3, 0); -} else { - x_154 = x_153; -} -lean_ctor_set(x_154, 0, x_39); -lean_ctor_set(x_154, 1, x_151); -lean_ctor_set(x_154, 2, x_152); -x_155 = lean_st_ref_set(x_5, x_154, x_150); -lean_dec(x_5); -x_156 = lean_ctor_get(x_155, 1); -lean_inc(x_156); -if (lean_is_exclusive(x_155)) { - lean_ctor_release(x_155, 0); - lean_ctor_release(x_155, 1); - x_157 = x_155; -} else { - lean_dec_ref(x_155); - x_157 = lean_box(0); -} -if (lean_is_scalar(x_157)) { - x_158 = lean_alloc_ctor(0, 2, 0); -} else { - x_158 = x_157; -} -lean_ctor_set(x_158, 0, x_144); -lean_ctor_set(x_158, 1, x_156); -return x_158; -} -else -{ -lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; -x_159 = lean_ctor_get(x_143, 0); -lean_inc(x_159); -x_160 = lean_ctor_get(x_143, 1); -lean_inc(x_160); -lean_dec(x_143); -x_161 = lean_st_ref_get(x_9, x_160); +lean_dec(x_150); +x_153 = lean_st_ref_get(x_9, x_152); lean_dec(x_9); -x_162 = lean_ctor_get(x_161, 1); -lean_inc(x_162); -lean_dec(x_161); -x_163 = lean_st_ref_take(x_5, x_162); -x_164 = lean_ctor_get(x_163, 0); -lean_inc(x_164); -x_165 = lean_ctor_get(x_163, 1); -lean_inc(x_165); -lean_dec(x_163); -x_166 = lean_ctor_get(x_164, 1); -lean_inc(x_166); -x_167 = lean_ctor_get(x_164, 2); -lean_inc(x_167); -if (lean_is_exclusive(x_164)) { - lean_ctor_release(x_164, 0); - lean_ctor_release(x_164, 1); - lean_ctor_release(x_164, 2); - x_168 = x_164; +x_154 = lean_ctor_get(x_153, 1); +lean_inc(x_154); +lean_dec(x_153); +x_155 = lean_st_ref_take(x_5, x_154); +x_156 = lean_ctor_get(x_155, 0); +lean_inc(x_156); +x_157 = lean_ctor_get(x_155, 1); +lean_inc(x_157); +lean_dec(x_155); +x_158 = lean_ctor_get(x_156, 1); +lean_inc(x_158); +x_159 = lean_ctor_get(x_156, 2); +lean_inc(x_159); +x_160 = lean_ctor_get(x_156, 3); +lean_inc(x_160); +if (lean_is_exclusive(x_156)) { + lean_ctor_release(x_156, 0); + lean_ctor_release(x_156, 1); + lean_ctor_release(x_156, 2); + lean_ctor_release(x_156, 3); + x_161 = x_156; } else { - lean_dec_ref(x_164); - x_168 = lean_box(0); + lean_dec_ref(x_156); + x_161 = lean_box(0); } -if (lean_is_scalar(x_168)) { - x_169 = lean_alloc_ctor(0, 3, 0); +if (lean_is_scalar(x_161)) { + x_162 = lean_alloc_ctor(0, 4, 0); } else { - x_169 = x_168; + x_162 = x_161; } -lean_ctor_set(x_169, 0, x_39); -lean_ctor_set(x_169, 1, x_166); -lean_ctor_set(x_169, 2, x_167); -x_170 = lean_st_ref_set(x_5, x_169, x_165); +lean_ctor_set(x_162, 0, x_39); +lean_ctor_set(x_162, 1, x_158); +lean_ctor_set(x_162, 2, x_159); +lean_ctor_set(x_162, 3, x_160); +x_163 = lean_st_ref_set(x_5, x_162, x_157); lean_dec(x_5); -x_171 = lean_ctor_get(x_170, 1); -lean_inc(x_171); -if (lean_is_exclusive(x_170)) { - lean_ctor_release(x_170, 0); - lean_ctor_release(x_170, 1); - x_172 = x_170; +x_164 = lean_ctor_get(x_163, 1); +lean_inc(x_164); +if (lean_is_exclusive(x_163)) { + lean_ctor_release(x_163, 0); + lean_ctor_release(x_163, 1); + x_165 = x_163; } else { - lean_dec_ref(x_170); - x_172 = lean_box(0); + lean_dec_ref(x_163); + x_165 = lean_box(0); } -if (lean_is_scalar(x_172)) { - x_173 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_165)) { + x_166 = lean_alloc_ctor(0, 2, 0); } else { - x_173 = x_172; - lean_ctor_set_tag(x_173, 1); + x_166 = x_165; } -lean_ctor_set(x_173, 0, x_159); -lean_ctor_set(x_173, 1, x_171); -return x_173; +lean_ctor_set(x_166, 0, x_151); +lean_ctor_set(x_166, 1, x_164); +return x_166; +} +else +{ +lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; +x_167 = lean_ctor_get(x_150, 0); +lean_inc(x_167); +x_168 = lean_ctor_get(x_150, 1); +lean_inc(x_168); +lean_dec(x_150); +x_169 = lean_st_ref_get(x_9, x_168); +lean_dec(x_9); +x_170 = lean_ctor_get(x_169, 1); +lean_inc(x_170); +lean_dec(x_169); +x_171 = lean_st_ref_take(x_5, x_170); +x_172 = lean_ctor_get(x_171, 0); +lean_inc(x_172); +x_173 = lean_ctor_get(x_171, 1); +lean_inc(x_173); +lean_dec(x_171); +x_174 = lean_ctor_get(x_172, 1); +lean_inc(x_174); +x_175 = lean_ctor_get(x_172, 2); +lean_inc(x_175); +x_176 = lean_ctor_get(x_172, 3); +lean_inc(x_176); +if (lean_is_exclusive(x_172)) { + lean_ctor_release(x_172, 0); + lean_ctor_release(x_172, 1); + lean_ctor_release(x_172, 2); + lean_ctor_release(x_172, 3); + x_177 = x_172; +} else { + lean_dec_ref(x_172); + x_177 = lean_box(0); +} +if (lean_is_scalar(x_177)) { + x_178 = lean_alloc_ctor(0, 4, 0); +} else { + x_178 = x_177; +} +lean_ctor_set(x_178, 0, x_39); +lean_ctor_set(x_178, 1, x_174); +lean_ctor_set(x_178, 2, x_175); +lean_ctor_set(x_178, 3, x_176); +x_179 = lean_st_ref_set(x_5, x_178, x_173); +lean_dec(x_5); +x_180 = lean_ctor_get(x_179, 1); +lean_inc(x_180); +if (lean_is_exclusive(x_179)) { + lean_ctor_release(x_179, 0); + lean_ctor_release(x_179, 1); + x_181 = x_179; +} else { + lean_dec_ref(x_179); + x_181 = lean_box(0); +} +if (lean_is_scalar(x_181)) { + x_182 = lean_alloc_ctor(1, 2, 0); +} else { + x_182 = x_181; + lean_ctor_set_tag(x_182, 1); +} +lean_ctor_set(x_182, 0, x_167); +lean_ctor_set(x_182, 1, x_180); +return x_182; } } } } else { -uint8_t x_174; +uint8_t x_183; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -11879,23 +11923,23 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_174 = !lean_is_exclusive(x_26); -if (x_174 == 0) +x_183 = !lean_is_exclusive(x_26); +if (x_183 == 0) { return x_26; } else { -lean_object* x_175; lean_object* x_176; lean_object* x_177; -x_175 = lean_ctor_get(x_26, 0); -x_176 = lean_ctor_get(x_26, 1); -lean_inc(x_176); -lean_inc(x_175); +lean_object* x_184; lean_object* x_185; lean_object* x_186; +x_184 = lean_ctor_get(x_26, 0); +x_185 = lean_ctor_get(x_26, 1); +lean_inc(x_185); +lean_inc(x_184); lean_dec(x_26); -x_177 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_177, 0, x_175); -lean_ctor_set(x_177, 1, x_176); -return x_177; +x_186 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_186, 0, x_184); +lean_ctor_set(x_186, 1, x_185); +return x_186; } } } @@ -12466,44 +12510,47 @@ return x_37; } else { -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_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; x_38 = lean_ctor_get(x_28, 0); x_39 = lean_ctor_get(x_28, 1); x_40 = lean_ctor_get(x_28, 2); +x_41 = lean_ctor_get(x_28, 3); +lean_inc(x_41); lean_inc(x_40); lean_inc(x_39); lean_inc(x_38); lean_dec(x_28); lean_inc(x_23); -x_41 = l_Std_HashMap_insert___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__3(x_39, x_1, x_23); -x_42 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_42, 0, x_38); -lean_ctor_set(x_42, 1, x_41); -lean_ctor_set(x_42, 2, x_40); -x_43 = lean_st_ref_set(x_7, x_42, x_29); -x_44 = lean_ctor_get(x_43, 1); -lean_inc(x_44); -if (lean_is_exclusive(x_43)) { - lean_ctor_release(x_43, 0); - lean_ctor_release(x_43, 1); - x_45 = x_43; +x_42 = l_Std_HashMap_insert___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__3(x_39, x_1, x_23); +x_43 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_43, 0, x_38); +lean_ctor_set(x_43, 1, x_42); +lean_ctor_set(x_43, 2, x_40); +lean_ctor_set(x_43, 3, x_41); +x_44 = lean_st_ref_set(x_7, x_43, x_29); +x_45 = lean_ctor_get(x_44, 1); +lean_inc(x_45); +if (lean_is_exclusive(x_44)) { + lean_ctor_release(x_44, 0); + lean_ctor_release(x_44, 1); + x_46 = x_44; } else { - lean_dec_ref(x_43); - x_45 = lean_box(0); + lean_dec_ref(x_44); + x_46 = lean_box(0); } -if (lean_is_scalar(x_45)) { - x_46 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_46)) { + x_47 = lean_alloc_ctor(0, 2, 0); } else { - x_46 = x_45; + x_47 = x_46; } -lean_ctor_set(x_46, 0, x_23); -lean_ctor_set(x_46, 1, x_44); -return x_46; +lean_ctor_set(x_47, 0, x_23); +lean_ctor_set(x_47, 1, x_45); +return x_47; } } else { -lean_object* x_47; +lean_object* x_48; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -12511,97 +12558,101 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_47 = lean_ctor_get(x_20, 0); -lean_inc(x_47); +x_48 = lean_ctor_get(x_20, 0); +lean_inc(x_48); lean_dec(x_20); -lean_ctor_set(x_15, 0, x_47); +lean_ctor_set(x_15, 0, x_48); return x_15; } } else { -lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_48 = lean_ctor_get(x_15, 0); -x_49 = lean_ctor_get(x_15, 1); -lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_15); -x_50 = lean_ctor_get(x_48, 1); +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_49 = lean_ctor_get(x_15, 0); +x_50 = lean_ctor_get(x_15, 1); lean_inc(x_50); -lean_dec(x_48); +lean_inc(x_49); +lean_dec(x_15); +x_51 = lean_ctor_get(x_49, 1); +lean_inc(x_51); +lean_dec(x_49); lean_inc(x_1); -x_51 = l_Std_HashMapImp_find_x3f___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__1(x_50, x_1); -if (lean_obj_tag(x_51) == 0) +x_52 = l_Std_HashMapImp_find_x3f___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__1(x_51, x_1); +if (lean_obj_tag(x_52) == 0) { -uint8_t 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; -x_52 = 1; +uint8_t 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; +x_53 = 1; lean_inc(x_11); lean_inc(x_1); -x_53 = l_Lean_Meta_mkCongrSimpCore_x3f(x_1, x_2, x_3, x_52, x_8, x_9, x_10, x_11, x_49); -x_54 = lean_ctor_get(x_53, 0); -lean_inc(x_54); -x_55 = lean_ctor_get(x_53, 1); +x_54 = l_Lean_Meta_mkCongrSimpCore_x3f(x_1, x_2, x_3, x_53, x_8, x_9, x_10, x_11, x_50); +x_55 = lean_ctor_get(x_54, 0); lean_inc(x_55); -lean_dec(x_53); -x_56 = lean_st_ref_get(x_11, x_55); +x_56 = lean_ctor_get(x_54, 1); +lean_inc(x_56); +lean_dec(x_54); +x_57 = lean_st_ref_get(x_11, x_56); lean_dec(x_11); -x_57 = lean_ctor_get(x_56, 1); -lean_inc(x_57); -lean_dec(x_56); -x_58 = lean_st_ref_take(x_7, x_57); -x_59 = lean_ctor_get(x_58, 0); -lean_inc(x_59); -x_60 = lean_ctor_get(x_58, 1); +x_58 = lean_ctor_get(x_57, 1); +lean_inc(x_58); +lean_dec(x_57); +x_59 = lean_st_ref_take(x_7, x_58); +x_60 = lean_ctor_get(x_59, 0); lean_inc(x_60); -lean_dec(x_58); -x_61 = lean_ctor_get(x_59, 0); +x_61 = lean_ctor_get(x_59, 1); lean_inc(x_61); -x_62 = lean_ctor_get(x_59, 1); +lean_dec(x_59); +x_62 = lean_ctor_get(x_60, 0); lean_inc(x_62); -x_63 = lean_ctor_get(x_59, 2); +x_63 = lean_ctor_get(x_60, 1); lean_inc(x_63); -if (lean_is_exclusive(x_59)) { - lean_ctor_release(x_59, 0); - lean_ctor_release(x_59, 1); - lean_ctor_release(x_59, 2); - x_64 = x_59; +x_64 = lean_ctor_get(x_60, 2); +lean_inc(x_64); +x_65 = lean_ctor_get(x_60, 3); +lean_inc(x_65); +if (lean_is_exclusive(x_60)) { + lean_ctor_release(x_60, 0); + lean_ctor_release(x_60, 1); + lean_ctor_release(x_60, 2); + lean_ctor_release(x_60, 3); + x_66 = x_60; } else { - lean_dec_ref(x_59); - x_64 = lean_box(0); + lean_dec_ref(x_60); + x_66 = lean_box(0); } -lean_inc(x_54); -x_65 = l_Std_HashMap_insert___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__3(x_62, x_1, x_54); -if (lean_is_scalar(x_64)) { - x_66 = lean_alloc_ctor(0, 3, 0); +lean_inc(x_55); +x_67 = l_Std_HashMap_insert___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__3(x_63, x_1, x_55); +if (lean_is_scalar(x_66)) { + x_68 = lean_alloc_ctor(0, 4, 0); } else { - x_66 = x_64; + x_68 = x_66; } -lean_ctor_set(x_66, 0, x_61); -lean_ctor_set(x_66, 1, x_65); -lean_ctor_set(x_66, 2, x_63); -x_67 = lean_st_ref_set(x_7, x_66, x_60); -x_68 = lean_ctor_get(x_67, 1); -lean_inc(x_68); -if (lean_is_exclusive(x_67)) { - lean_ctor_release(x_67, 0); - lean_ctor_release(x_67, 1); - x_69 = x_67; +lean_ctor_set(x_68, 0, x_62); +lean_ctor_set(x_68, 1, x_67); +lean_ctor_set(x_68, 2, x_64); +lean_ctor_set(x_68, 3, x_65); +x_69 = lean_st_ref_set(x_7, x_68, x_61); +x_70 = lean_ctor_get(x_69, 1); +lean_inc(x_70); +if (lean_is_exclusive(x_69)) { + lean_ctor_release(x_69, 0); + lean_ctor_release(x_69, 1); + x_71 = x_69; } else { - lean_dec_ref(x_67); - x_69 = lean_box(0); + lean_dec_ref(x_69); + x_71 = lean_box(0); } -if (lean_is_scalar(x_69)) { - x_70 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_71)) { + x_72 = lean_alloc_ctor(0, 2, 0); } else { - x_70 = x_69; + x_72 = x_71; } -lean_ctor_set(x_70, 0, x_54); -lean_ctor_set(x_70, 1, x_68); -return x_70; +lean_ctor_set(x_72, 0, x_55); +lean_ctor_set(x_72, 1, x_70); +return x_72; } else { -lean_object* x_71; lean_object* x_72; +lean_object* x_73; lean_object* x_74; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -12609,13 +12660,13 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_71 = lean_ctor_get(x_51, 0); -lean_inc(x_71); -lean_dec(x_51); -x_72 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_72, 0, x_71); -lean_ctor_set(x_72, 1, x_49); -return x_72; +x_73 = lean_ctor_get(x_52, 0); +lean_inc(x_73); +lean_dec(x_52); +x_74 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_74, 0, x_73); +lean_ctor_set(x_74, 1, x_50); +return x_74; } } } @@ -13329,7 +13380,7 @@ return x_13; else { lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; -x_14 = lean_ctor_get(x_5, 4); +x_14 = lean_ctor_get(x_5, 5); x_15 = lean_st_ref_get(x_10, x_11); x_16 = lean_ctor_get(x_15, 1); lean_inc(x_16); @@ -13380,47 +13431,50 @@ return x_30; } else { -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_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; x_31 = lean_ctor_get(x_18, 0); x_32 = lean_ctor_get(x_18, 1); x_33 = lean_ctor_get(x_18, 2); +x_34 = lean_ctor_get(x_18, 3); +lean_inc(x_34); lean_inc(x_33); lean_inc(x_32); lean_inc(x_31); lean_dec(x_18); -x_34 = lean_ctor_get(x_3, 0); -lean_inc(x_34); -x_35 = lean_ctor_get(x_3, 1); +x_35 = lean_ctor_get(x_3, 0); lean_inc(x_35); +x_36 = lean_ctor_get(x_3, 1); +lean_inc(x_36); lean_inc(x_14); -x_36 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_36, 0, x_34); -lean_ctor_set(x_36, 1, x_35); -lean_ctor_set(x_36, 2, x_14); -x_37 = l_Std_HashMap_insert___at_Lean_Meta_Simp_simp_cacheResult___spec__1(x_31, x_1, x_36); -x_38 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_32); -lean_ctor_set(x_38, 2, x_33); -x_39 = lean_st_ref_set(x_6, x_38, x_19); -x_40 = lean_ctor_get(x_39, 1); -lean_inc(x_40); -if (lean_is_exclusive(x_39)) { - lean_ctor_release(x_39, 0); - lean_ctor_release(x_39, 1); - x_41 = x_39; +x_37 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +lean_ctor_set(x_37, 2, x_14); +x_38 = l_Std_HashMap_insert___at_Lean_Meta_Simp_simp_cacheResult___spec__1(x_31, x_1, x_37); +x_39 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_32); +lean_ctor_set(x_39, 2, x_33); +lean_ctor_set(x_39, 3, x_34); +x_40 = lean_st_ref_set(x_6, x_39, x_19); +x_41 = lean_ctor_get(x_40, 1); +lean_inc(x_41); +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + x_42 = x_40; } else { - lean_dec_ref(x_39); - x_41 = lean_box(0); + lean_dec_ref(x_40); + x_42 = lean_box(0); } -if (lean_is_scalar(x_41)) { - x_42 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_42)) { + x_43 = lean_alloc_ctor(0, 2, 0); } else { - x_42 = x_41; + x_43 = x_42; } -lean_ctor_set(x_42, 0, x_3); -lean_ctor_set(x_42, 1, x_40); -return x_42; +lean_ctor_set(x_43, 0, x_3); +lean_ctor_set(x_43, 1, x_41); +return x_43; } } } @@ -13545,7 +13599,7 @@ lean_inc(x_18); lean_dec(x_16); x_19 = lean_ctor_get(x_12, 0); lean_inc(x_19); -x_20 = lean_ctor_get(x_17, 2); +x_20 = lean_ctor_get(x_17, 3); lean_inc(x_20); lean_dec(x_17); x_21 = lean_nat_dec_lt(x_19, x_20); @@ -13570,11 +13624,11 @@ x_28 = !lean_is_exclusive(x_26); if (x_28 == 0) { 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_29 = lean_ctor_get(x_26, 2); +x_29 = lean_ctor_get(x_26, 3); x_30 = lean_unsigned_to_nat(1u); x_31 = lean_nat_add(x_29, x_30); lean_dec(x_29); -lean_ctor_set(x_26, 2, x_31); +lean_ctor_set(x_26, 3, x_31); x_32 = lean_st_ref_set(x_5, x_26, x_27); x_33 = lean_ctor_get(x_32, 1); lean_inc(x_33); @@ -14072,25 +14126,28 @@ return x_107; } else { -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_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; x_108 = lean_ctor_get(x_26, 0); x_109 = lean_ctor_get(x_26, 1); x_110 = lean_ctor_get(x_26, 2); +x_111 = lean_ctor_get(x_26, 3); +lean_inc(x_111); lean_inc(x_110); lean_inc(x_109); lean_inc(x_108); lean_dec(x_26); -x_111 = lean_unsigned_to_nat(1u); -x_112 = lean_nat_add(x_110, x_111); -lean_dec(x_110); -x_113 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_113, 0, x_108); -lean_ctor_set(x_113, 1, x_109); -lean_ctor_set(x_113, 2, x_112); -x_114 = lean_st_ref_set(x_5, x_113, x_27); -x_115 = lean_ctor_get(x_114, 1); -lean_inc(x_115); -lean_dec(x_114); +x_112 = lean_unsigned_to_nat(1u); +x_113 = lean_nat_add(x_111, x_112); +lean_dec(x_111); +x_114 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_114, 0, x_108); +lean_ctor_set(x_114, 1, x_109); +lean_ctor_set(x_114, 2, x_110); +lean_ctor_set(x_114, 3, x_113); +x_115 = lean_st_ref_set(x_5, x_114, x_27); +x_116 = lean_ctor_get(x_115, 1); +lean_inc(x_116); +lean_dec(x_115); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); @@ -14099,36 +14156,36 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_22); -x_116 = l_Lean_Meta_Simp_pre(x_22, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_115); -if (lean_obj_tag(x_116) == 0) -{ -lean_object* x_117; -x_117 = lean_ctor_get(x_116, 0); -lean_inc(x_117); +x_117 = l_Lean_Meta_Simp_pre(x_22, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_116); if (lean_obj_tag(x_117) == 0) { -lean_object* x_118; lean_object* x_119; lean_object* x_120; -x_118 = lean_ctor_get(x_116, 1); +lean_object* x_118; +x_118 = lean_ctor_get(x_117, 0); lean_inc(x_118); -lean_dec(x_116); -x_119 = lean_ctor_get(x_117, 0); +if (lean_obj_tag(x_118) == 0) +{ +lean_object* x_119; lean_object* x_120; lean_object* x_121; +x_119 = lean_ctor_get(x_117, 1); lean_inc(x_119); lean_dec(x_117); +x_120 = lean_ctor_get(x_118, 0); +lean_inc(x_120); +lean_dec(x_118); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_120 = l_Lean_Meta_Simp_mkEqTrans(x_2, x_119, x_6, x_7, x_8, x_9, x_118); -if (lean_obj_tag(x_120) == 0) +x_121 = l_Lean_Meta_Simp_mkEqTrans(x_2, x_120, x_6, x_7, x_8, x_9, x_119); +if (lean_obj_tag(x_121) == 0) { -lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; -x_121 = lean_ctor_get(x_120, 0); -lean_inc(x_121); -x_122 = lean_ctor_get(x_120, 1); +lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; +x_122 = lean_ctor_get(x_121, 0); lean_inc(x_122); -lean_dec(x_120); -x_123 = lean_ctor_get(x_121, 0); +x_123 = lean_ctor_get(x_121, 1); lean_inc(x_123); +lean_dec(x_121); +x_124 = lean_ctor_get(x_122, 0); +lean_inc(x_124); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); @@ -14136,30 +14193,30 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_124 = l_Lean_Meta_Simp_simp_simpStep(x_123, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_122); -if (lean_obj_tag(x_124) == 0) +x_125 = l_Lean_Meta_Simp_simp_simpStep(x_124, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_123); +if (lean_obj_tag(x_125) == 0) { -lean_object* x_125; lean_object* x_126; lean_object* x_127; -x_125 = lean_ctor_get(x_124, 0); -lean_inc(x_125); -x_126 = lean_ctor_get(x_124, 1); +lean_object* x_126; lean_object* x_127; lean_object* x_128; +x_126 = lean_ctor_get(x_125, 0); lean_inc(x_126); -lean_dec(x_124); +x_127 = lean_ctor_get(x_125, 1); +lean_inc(x_127); +lean_dec(x_125); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_127 = l_Lean_Meta_Simp_mkEqTrans(x_121, x_125, x_6, x_7, x_8, x_9, x_126); -if (lean_obj_tag(x_127) == 0) +x_128 = l_Lean_Meta_Simp_mkEqTrans(x_122, x_126, x_6, x_7, x_8, x_9, x_127); +if (lean_obj_tag(x_128) == 0) { -lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; -x_128 = lean_ctor_get(x_127, 0); -lean_inc(x_128); -x_129 = lean_ctor_get(x_127, 1); +lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; +x_129 = lean_ctor_get(x_128, 0); lean_inc(x_129); -lean_dec(x_127); -x_130 = lean_ctor_get(x_128, 0); +x_130 = lean_ctor_get(x_128, 1); lean_inc(x_130); +lean_dec(x_128); +x_131 = lean_ctor_get(x_129, 0); +lean_inc(x_131); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); @@ -14167,54 +14224,54 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_131 = l_Lean_Meta_Simp_post(x_130, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_129); -if (lean_obj_tag(x_131) == 0) -{ -lean_object* x_132; -x_132 = lean_ctor_get(x_131, 0); -lean_inc(x_132); +x_132 = l_Lean_Meta_Simp_post(x_131, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_130); if (lean_obj_tag(x_132) == 0) { -lean_object* x_133; lean_object* x_134; lean_object* x_135; -x_133 = lean_ctor_get(x_131, 1); +lean_object* x_133; +x_133 = lean_ctor_get(x_132, 0); lean_inc(x_133); -lean_dec(x_131); -x_134 = lean_ctor_get(x_132, 0); +if (lean_obj_tag(x_133) == 0) +{ +lean_object* x_134; lean_object* x_135; lean_object* x_136; +x_134 = lean_ctor_get(x_132, 1); lean_inc(x_134); lean_dec(x_132); +x_135 = lean_ctor_get(x_133, 0); +lean_inc(x_135); +lean_dec(x_133); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_135 = l_Lean_Meta_Simp_mkEqTrans(x_128, x_134, x_6, x_7, x_8, x_9, x_133); -if (lean_obj_tag(x_135) == 0) +x_136 = l_Lean_Meta_Simp_mkEqTrans(x_129, x_135, x_6, x_7, x_8, x_9, x_134); +if (lean_obj_tag(x_136) == 0) { -uint8_t x_136; -x_136 = lean_ctor_get_uint8(x_12, sizeof(void*)*2 + 2); -if (x_136 == 0) +uint8_t x_137; +x_137 = lean_ctor_get_uint8(x_12, sizeof(void*)*2 + 2); +if (x_137 == 0) { -lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; -x_137 = lean_ctor_get(x_135, 0); -lean_inc(x_137); -x_138 = lean_ctor_get(x_135, 1); +lean_object* x_138; lean_object* x_139; lean_object* x_140; uint8_t x_141; +x_138 = lean_ctor_get(x_136, 0); lean_inc(x_138); -lean_dec(x_135); -x_139 = lean_ctor_get(x_137, 0); +x_139 = lean_ctor_get(x_136, 1); lean_inc(x_139); -x_140 = lean_expr_eqv(x_22, x_139); -lean_dec(x_139); +lean_dec(x_136); +x_140 = lean_ctor_get(x_138, 0); +lean_inc(x_140); +x_141 = lean_expr_eqv(x_22, x_140); +lean_dec(x_140); lean_dec(x_22); -if (x_140 == 0) +if (x_141 == 0) { lean_dec(x_12); -x_2 = x_137; -x_10 = x_138; +x_2 = x_138; +x_10 = x_139; goto _start; } else { -lean_object* x_142; -x_142 = l_Lean_Meta_Simp_simp_cacheResult(x_1, x_12, x_137, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_138); +lean_object* x_143; +x_143 = l_Lean_Meta_Simp_simp_cacheResult(x_1, x_12, x_138, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_139); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -14223,19 +14280,19 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_12); -return x_142; +return x_143; } } else { -lean_object* x_143; lean_object* x_144; lean_object* x_145; +lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_dec(x_22); -x_143 = lean_ctor_get(x_135, 0); -lean_inc(x_143); -x_144 = lean_ctor_get(x_135, 1); +x_144 = lean_ctor_get(x_136, 0); lean_inc(x_144); -lean_dec(x_135); -x_145 = l_Lean_Meta_Simp_simp_cacheResult(x_1, x_12, x_143, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_144); +x_145 = lean_ctor_get(x_136, 1); +lean_inc(x_145); +lean_dec(x_136); +x_146 = l_Lean_Meta_Simp_simp_cacheResult(x_1, x_12, x_144, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_145); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -14244,12 +14301,12 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_12); -return x_145; +return x_146; } } else { -lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; +lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_dec(x_22); lean_dec(x_12); lean_dec(x_9); @@ -14260,52 +14317,52 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_146 = lean_ctor_get(x_135, 0); -lean_inc(x_146); -x_147 = lean_ctor_get(x_135, 1); +x_147 = lean_ctor_get(x_136, 0); lean_inc(x_147); -if (lean_is_exclusive(x_135)) { - lean_ctor_release(x_135, 0); - lean_ctor_release(x_135, 1); - x_148 = x_135; +x_148 = lean_ctor_get(x_136, 1); +lean_inc(x_148); +if (lean_is_exclusive(x_136)) { + lean_ctor_release(x_136, 0); + lean_ctor_release(x_136, 1); + x_149 = x_136; } else { - lean_dec_ref(x_135); - x_148 = lean_box(0); + lean_dec_ref(x_136); + x_149 = lean_box(0); } -if (lean_is_scalar(x_148)) { - x_149 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_149)) { + x_150 = lean_alloc_ctor(1, 2, 0); } else { - x_149 = x_148; + x_150 = x_149; } -lean_ctor_set(x_149, 0, x_146); -lean_ctor_set(x_149, 1, x_147); -return x_149; +lean_ctor_set(x_150, 0, x_147); +lean_ctor_set(x_150, 1, x_148); +return x_150; } } else { -lean_object* x_150; lean_object* x_151; lean_object* x_152; +lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_dec(x_22); -x_150 = lean_ctor_get(x_131, 1); -lean_inc(x_150); -lean_dec(x_131); -x_151 = lean_ctor_get(x_132, 0); +x_151 = lean_ctor_get(x_132, 1); lean_inc(x_151); lean_dec(x_132); +x_152 = lean_ctor_get(x_133, 0); +lean_inc(x_152); +lean_dec(x_133); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_152 = l_Lean_Meta_Simp_mkEqTrans(x_128, x_151, x_6, x_7, x_8, x_9, x_150); -if (lean_obj_tag(x_152) == 0) +x_153 = l_Lean_Meta_Simp_mkEqTrans(x_129, x_152, x_6, x_7, x_8, x_9, x_151); +if (lean_obj_tag(x_153) == 0) { -lean_object* x_153; lean_object* x_154; lean_object* x_155; -x_153 = lean_ctor_get(x_152, 0); -lean_inc(x_153); -x_154 = lean_ctor_get(x_152, 1); +lean_object* x_154; lean_object* x_155; lean_object* x_156; +x_154 = lean_ctor_get(x_153, 0); lean_inc(x_154); -lean_dec(x_152); -x_155 = l_Lean_Meta_Simp_simp_cacheResult(x_1, x_12, x_153, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_154); +x_155 = lean_ctor_get(x_153, 1); +lean_inc(x_155); +lean_dec(x_153); +x_156 = l_Lean_Meta_Simp_simp_cacheResult(x_1, x_12, x_154, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_155); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -14314,11 +14371,11 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_12); -return x_155; +return x_156; } else { -lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; +lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_dec(x_12); lean_dec(x_9); lean_dec(x_8); @@ -14328,33 +14385,33 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_156 = lean_ctor_get(x_152, 0); -lean_inc(x_156); -x_157 = lean_ctor_get(x_152, 1); +x_157 = lean_ctor_get(x_153, 0); lean_inc(x_157); -if (lean_is_exclusive(x_152)) { - lean_ctor_release(x_152, 0); - lean_ctor_release(x_152, 1); - x_158 = x_152; +x_158 = lean_ctor_get(x_153, 1); +lean_inc(x_158); +if (lean_is_exclusive(x_153)) { + lean_ctor_release(x_153, 0); + lean_ctor_release(x_153, 1); + x_159 = x_153; } else { - lean_dec_ref(x_152); - x_158 = lean_box(0); + lean_dec_ref(x_153); + x_159 = lean_box(0); } -if (lean_is_scalar(x_158)) { - x_159 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_159)) { + x_160 = lean_alloc_ctor(1, 2, 0); } else { - x_159 = x_158; + x_160 = x_159; } -lean_ctor_set(x_159, 0, x_156); -lean_ctor_set(x_159, 1, x_157); -return x_159; +lean_ctor_set(x_160, 0, x_157); +lean_ctor_set(x_160, 1, x_158); +return x_160; } } } else { -lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; -lean_dec(x_128); +lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; +lean_dec(x_129); lean_dec(x_22); lean_dec(x_12); lean_dec(x_9); @@ -14365,31 +14422,31 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_160 = lean_ctor_get(x_131, 0); -lean_inc(x_160); -x_161 = lean_ctor_get(x_131, 1); +x_161 = lean_ctor_get(x_132, 0); lean_inc(x_161); -if (lean_is_exclusive(x_131)) { - lean_ctor_release(x_131, 0); - lean_ctor_release(x_131, 1); - x_162 = x_131; +x_162 = lean_ctor_get(x_132, 1); +lean_inc(x_162); +if (lean_is_exclusive(x_132)) { + lean_ctor_release(x_132, 0); + lean_ctor_release(x_132, 1); + x_163 = x_132; } else { - lean_dec_ref(x_131); - x_162 = lean_box(0); + lean_dec_ref(x_132); + x_163 = lean_box(0); } -if (lean_is_scalar(x_162)) { - x_163 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_163)) { + x_164 = lean_alloc_ctor(1, 2, 0); } else { - x_163 = x_162; + x_164 = x_163; } -lean_ctor_set(x_163, 0, x_160); -lean_ctor_set(x_163, 1, x_161); -return x_163; +lean_ctor_set(x_164, 0, x_161); +lean_ctor_set(x_164, 1, x_162); +return x_164; } } else { -lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; +lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_dec(x_22); lean_dec(x_12); lean_dec(x_9); @@ -14400,32 +14457,32 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_164 = lean_ctor_get(x_127, 0); -lean_inc(x_164); -x_165 = lean_ctor_get(x_127, 1); +x_165 = lean_ctor_get(x_128, 0); lean_inc(x_165); -if (lean_is_exclusive(x_127)) { - lean_ctor_release(x_127, 0); - lean_ctor_release(x_127, 1); - x_166 = x_127; +x_166 = lean_ctor_get(x_128, 1); +lean_inc(x_166); +if (lean_is_exclusive(x_128)) { + lean_ctor_release(x_128, 0); + lean_ctor_release(x_128, 1); + x_167 = x_128; } else { - lean_dec_ref(x_127); - x_166 = lean_box(0); + lean_dec_ref(x_128); + x_167 = lean_box(0); } -if (lean_is_scalar(x_166)) { - x_167 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_167)) { + x_168 = lean_alloc_ctor(1, 2, 0); } else { - x_167 = x_166; + x_168 = x_167; } -lean_ctor_set(x_167, 0, x_164); -lean_ctor_set(x_167, 1, x_165); -return x_167; +lean_ctor_set(x_168, 0, x_165); +lean_ctor_set(x_168, 1, x_166); +return x_168; } } else { -lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; -lean_dec(x_121); +lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; +lean_dec(x_122); lean_dec(x_22); lean_dec(x_12); lean_dec(x_9); @@ -14436,31 +14493,31 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_168 = lean_ctor_get(x_124, 0); -lean_inc(x_168); -x_169 = lean_ctor_get(x_124, 1); +x_169 = lean_ctor_get(x_125, 0); lean_inc(x_169); -if (lean_is_exclusive(x_124)) { - lean_ctor_release(x_124, 0); - lean_ctor_release(x_124, 1); - x_170 = x_124; +x_170 = lean_ctor_get(x_125, 1); +lean_inc(x_170); +if (lean_is_exclusive(x_125)) { + lean_ctor_release(x_125, 0); + lean_ctor_release(x_125, 1); + x_171 = x_125; } else { - lean_dec_ref(x_124); - x_170 = lean_box(0); + lean_dec_ref(x_125); + x_171 = lean_box(0); } -if (lean_is_scalar(x_170)) { - x_171 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_171)) { + x_172 = lean_alloc_ctor(1, 2, 0); } else { - x_171 = x_170; + x_172 = x_171; } -lean_ctor_set(x_171, 0, x_168); -lean_ctor_set(x_171, 1, x_169); -return x_171; +lean_ctor_set(x_172, 0, x_169); +lean_ctor_set(x_172, 1, x_170); +return x_172; } } else { -lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; +lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_dec(x_22); lean_dec(x_12); lean_dec(x_9); @@ -14471,52 +14528,52 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_172 = lean_ctor_get(x_120, 0); -lean_inc(x_172); -x_173 = lean_ctor_get(x_120, 1); +x_173 = lean_ctor_get(x_121, 0); lean_inc(x_173); -if (lean_is_exclusive(x_120)) { - lean_ctor_release(x_120, 0); - lean_ctor_release(x_120, 1); - x_174 = x_120; +x_174 = lean_ctor_get(x_121, 1); +lean_inc(x_174); +if (lean_is_exclusive(x_121)) { + lean_ctor_release(x_121, 0); + lean_ctor_release(x_121, 1); + x_175 = x_121; } else { - lean_dec_ref(x_120); - x_174 = lean_box(0); + lean_dec_ref(x_121); + x_175 = lean_box(0); } -if (lean_is_scalar(x_174)) { - x_175 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_175)) { + x_176 = lean_alloc_ctor(1, 2, 0); } else { - x_175 = x_174; + x_176 = x_175; } -lean_ctor_set(x_175, 0, x_172); -lean_ctor_set(x_175, 1, x_173); -return x_175; +lean_ctor_set(x_176, 0, x_173); +lean_ctor_set(x_176, 1, x_174); +return x_176; } } else { -lean_object* x_176; lean_object* x_177; lean_object* x_178; +lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_dec(x_22); -x_176 = lean_ctor_get(x_116, 1); -lean_inc(x_176); -lean_dec(x_116); -x_177 = lean_ctor_get(x_117, 0); +x_177 = lean_ctor_get(x_117, 1); lean_inc(x_177); lean_dec(x_117); +x_178 = lean_ctor_get(x_118, 0); +lean_inc(x_178); +lean_dec(x_118); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_178 = l_Lean_Meta_Simp_mkEqTrans(x_2, x_177, x_6, x_7, x_8, x_9, x_176); -if (lean_obj_tag(x_178) == 0) +x_179 = l_Lean_Meta_Simp_mkEqTrans(x_2, x_178, x_6, x_7, x_8, x_9, x_177); +if (lean_obj_tag(x_179) == 0) { -lean_object* x_179; lean_object* x_180; lean_object* x_181; -x_179 = lean_ctor_get(x_178, 0); -lean_inc(x_179); -x_180 = lean_ctor_get(x_178, 1); +lean_object* x_180; lean_object* x_181; lean_object* x_182; +x_180 = lean_ctor_get(x_179, 0); lean_inc(x_180); -lean_dec(x_178); -x_181 = l_Lean_Meta_Simp_simp_cacheResult(x_1, x_12, x_179, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_180); +x_181 = lean_ctor_get(x_179, 1); +lean_inc(x_181); +lean_dec(x_179); +x_182 = l_Lean_Meta_Simp_simp_cacheResult(x_1, x_12, x_180, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_181); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -14525,11 +14582,11 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_12); -return x_181; +return x_182; } else { -lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; +lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_dec(x_12); lean_dec(x_9); lean_dec(x_8); @@ -14539,32 +14596,32 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_182 = lean_ctor_get(x_178, 0); -lean_inc(x_182); -x_183 = lean_ctor_get(x_178, 1); +x_183 = lean_ctor_get(x_179, 0); lean_inc(x_183); -if (lean_is_exclusive(x_178)) { - lean_ctor_release(x_178, 0); - lean_ctor_release(x_178, 1); - x_184 = x_178; +x_184 = lean_ctor_get(x_179, 1); +lean_inc(x_184); +if (lean_is_exclusive(x_179)) { + lean_ctor_release(x_179, 0); + lean_ctor_release(x_179, 1); + x_185 = x_179; } else { - lean_dec_ref(x_178); - x_184 = lean_box(0); + lean_dec_ref(x_179); + x_185 = lean_box(0); } -if (lean_is_scalar(x_184)) { - x_185 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_185)) { + x_186 = lean_alloc_ctor(1, 2, 0); } else { - x_185 = x_184; + x_186 = x_185; } -lean_ctor_set(x_185, 0, x_182); -lean_ctor_set(x_185, 1, x_183); -return x_185; +lean_ctor_set(x_186, 0, x_183); +lean_ctor_set(x_186, 1, x_184); +return x_186; } } } else { -lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; +lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_dec(x_22); lean_dec(x_12); lean_dec(x_9); @@ -14576,37 +14633,37 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_186 = lean_ctor_get(x_116, 0); -lean_inc(x_186); -x_187 = lean_ctor_get(x_116, 1); +x_187 = lean_ctor_get(x_117, 0); lean_inc(x_187); -if (lean_is_exclusive(x_116)) { - lean_ctor_release(x_116, 0); - lean_ctor_release(x_116, 1); - x_188 = x_116; +x_188 = lean_ctor_get(x_117, 1); +lean_inc(x_188); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_189 = x_117; } else { - lean_dec_ref(x_116); - x_188 = lean_box(0); + lean_dec_ref(x_117); + x_189 = lean_box(0); } -if (lean_is_scalar(x_188)) { - x_189 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_189)) { + x_190 = lean_alloc_ctor(1, 2, 0); } else { - x_189 = x_188; + x_190 = x_189; } -lean_ctor_set(x_189, 0, x_186); -lean_ctor_set(x_189, 1, x_187); -return x_189; +lean_ctor_set(x_190, 0, x_187); +lean_ctor_set(x_190, 1, x_188); +return x_190; } } } else { -lean_object* x_190; lean_object* x_191; +lean_object* x_191; lean_object* x_192; lean_dec(x_12); lean_dec(x_2); lean_dec(x_1); -x_190 = l_Lean_Meta_Simp_simp_simpLoop___closed__2; -x_191 = l_Lean_throwError___at_Lean_Meta_Simp_simp_simpLoop___spec__1(x_190, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_18); +x_191 = l_Lean_Meta_Simp_simp_simpLoop___closed__2; +x_192 = l_Lean_throwError___at_Lean_Meta_Simp_simp_simpLoop___spec__1(x_191, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_18); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -14614,7 +14671,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_191; +return x_192; } } } @@ -14779,7 +14836,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Meta_Simp_simp_simpStep___closed__1; x_2 = l_Lean_Meta_Simp_simp_simpStep___closed__2; -x_3 = lean_unsigned_to_nat(289u); +x_3 = lean_unsigned_to_nat(291u); x_4 = lean_unsigned_to_nat(26u); x_5 = l_Lean_Meta_Simp_simp_simpStep___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -16963,7 +17020,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Meta_Simp_simp_simpStep___closed__1; x_2 = l_Lean_Meta_Simp_simp_simpLet___closed__1; -x_3 = lean_unsigned_to_nat(653u); +x_3 = lean_unsigned_to_nat(655u); x_4 = lean_unsigned_to_nat(35u); x_5 = l_Lean_Meta_Simp_simp_simpStep___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -17447,7 +17504,7 @@ lean_inc(x_25); lean_dec(x_22); x_26 = lean_ctor_get(x_25, 2); lean_inc(x_26); -x_27 = lean_ctor_get(x_5, 4); +x_27 = lean_ctor_get(x_5, 5); lean_inc(x_27); x_28 = lean_nat_dec_le(x_26, x_27); lean_dec(x_27); @@ -17504,7 +17561,7 @@ lean_inc(x_37); lean_dec(x_34); x_38 = lean_ctor_get(x_37, 2); lean_inc(x_38); -x_39 = lean_ctor_get(x_5, 4); +x_39 = lean_ctor_get(x_5, 5); lean_inc(x_39); x_40 = lean_nat_dec_le(x_38, x_39); lean_dec(x_39); @@ -18755,12 +18812,12 @@ x_11 = !lean_is_exclusive(x_3); if (x_11 == 0) { lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_12 = lean_ctor_get(x_3, 3); +x_12 = lean_ctor_get(x_3, 4); lean_dec(x_12); lean_inc(x_1); x_13 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_13, 0, x_1); -lean_ctor_set(x_3, 3, x_13); +lean_ctor_set(x_3, 4, x_13); x_14 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Simp_simp_simpForall___spec__1(x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); x_15 = lean_ctor_get(x_14, 0); lean_inc(x_15); @@ -18805,65 +18862,68 @@ return x_29; } else { -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; uint8_t x_38; +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; uint8_t x_39; x_30 = lean_ctor_get(x_3, 0); x_31 = lean_ctor_get(x_3, 1); x_32 = lean_ctor_get(x_3, 2); -x_33 = lean_ctor_get(x_3, 4); +x_33 = lean_ctor_get(x_3, 3); +x_34 = lean_ctor_get(x_3, 5); +lean_inc(x_34); lean_inc(x_33); lean_inc(x_32); lean_inc(x_31); lean_inc(x_30); lean_dec(x_3); lean_inc(x_1); -x_34 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_34, 0, x_1); -x_35 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_35, 0, x_30); -lean_ctor_set(x_35, 1, x_31); -lean_ctor_set(x_35, 2, x_32); -lean_ctor_set(x_35, 3, x_34); -lean_ctor_set(x_35, 4, x_33); -x_36 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Simp_simp_simpForall___spec__1(x_10, x_2, x_35, x_4, x_5, x_6, x_7, x_8, x_9); -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -x_38 = lean_unbox(x_37); -lean_dec(x_37); -if (x_38 == 0) +x_35 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_35, 0, x_1); +x_36 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_36, 0, x_30); +lean_ctor_set(x_36, 1, x_31); +lean_ctor_set(x_36, 2, x_32); +lean_ctor_set(x_36, 3, x_33); +lean_ctor_set(x_36, 4, x_35); +lean_ctor_set(x_36, 5, x_34); +x_37 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Simp_simp_simpForall___spec__1(x_10, x_2, x_36, x_4, x_5, x_6, x_7, x_8, x_9); +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_unbox(x_38); +lean_dec(x_38); +if (x_39 == 0) { -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_36, 1); -lean_inc(x_39); -lean_dec(x_36); -x_40 = lean_box(0); -x_41 = l_Lean_Meta_Simp_simp_simpForall___lambda__3(x_1, x_40, x_2, x_35, x_4, x_5, x_6, x_7, x_8, x_39); -return x_41; +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_37, 1); +lean_inc(x_40); +lean_dec(x_37); +x_41 = lean_box(0); +x_42 = l_Lean_Meta_Simp_simp_simpForall___lambda__3(x_1, x_41, x_2, x_36, x_4, x_5, x_6, x_7, x_8, x_40); +return x_42; } 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; -x_42 = lean_ctor_get(x_36, 1); -lean_inc(x_42); -lean_dec(x_36); +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; +x_43 = lean_ctor_get(x_37, 1); +lean_inc(x_43); +lean_dec(x_37); lean_inc(x_1); -x_43 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_43, 0, x_1); -x_44 = l_Lean_Meta_Simp_simp_simpForall___closed__9; -x_45 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_45, 0, x_44); -lean_ctor_set(x_45, 1, x_43); -x_46 = l_Lean_Meta_Simp_simp_simpForall___closed__11; -x_47 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -x_48 = l_Lean_addTrace___at_Lean_Meta_Simp_simp_simpForall___spec__3(x_10, x_47, x_2, x_35, x_4, x_5, x_6, x_7, x_8, x_42); -x_49 = lean_ctor_get(x_48, 0); -lean_inc(x_49); -x_50 = lean_ctor_get(x_48, 1); +x_44 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_44, 0, x_1); +x_45 = l_Lean_Meta_Simp_simp_simpForall___closed__9; +x_46 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_44); +x_47 = l_Lean_Meta_Simp_simp_simpForall___closed__11; +x_48 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +x_49 = l_Lean_addTrace___at_Lean_Meta_Simp_simp_simpForall___spec__3(x_10, x_48, x_2, x_36, x_4, x_5, x_6, x_7, x_8, x_43); +x_50 = lean_ctor_get(x_49, 0); lean_inc(x_50); -lean_dec(x_48); -x_51 = l_Lean_Meta_Simp_simp_simpForall___lambda__3(x_1, x_49, x_2, x_35, x_4, x_5, x_6, x_7, x_8, x_50); -return x_51; +x_51 = lean_ctor_get(x_49, 1); +lean_inc(x_51); +lean_dec(x_49); +x_52 = l_Lean_Meta_Simp_simp_simpForall___lambda__3(x_1, x_50, x_2, x_36, x_4, x_5, x_6, x_7, x_8, x_51); +return x_52; } } } @@ -18878,16 +18938,18 @@ lean_inc(x_15); x_16 = lean_ctor_get(x_14, 1); lean_inc(x_16); lean_dec(x_14); -x_17 = lean_box(0); +lean_inc(x_5); +x_17 = l_Lean_Expr_fvarId_x21(x_5); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_5); -x_18 = l_Lean_Meta_SimpTheoremsArray_addTheorem(x_15, x_5, x_17, x_9, x_10, x_11, x_12, x_16); +lean_inc(x_17); +x_18 = l_Lean_Meta_SimpTheoremsArray_addTheorem(x_15, x_17, x_5, x_9, x_10, x_11, x_12, x_16); if (lean_obj_tag(x_18) == 0) { -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_49; lean_object* x_50; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_t x_76; +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_50; lean_object* x_51; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; uint8_t x_78; x_19 = lean_ctor_get(x_18, 0); lean_inc(x_19); x_20 = lean_ctor_get(x_18, 1); @@ -18906,1016 +18968,1013 @@ lean_dec(x_23); x_26 = lean_ctor_get(x_24, 0); lean_inc(x_26); lean_dec(x_24); -x_71 = lean_st_ref_get(x_12, x_25); -x_72 = lean_ctor_get(x_71, 1); -lean_inc(x_72); -lean_dec(x_71); -x_73 = lean_st_ref_take(x_8, x_72); -x_74 = lean_ctor_get(x_73, 0); +x_73 = lean_st_ref_get(x_12, x_25); +x_74 = lean_ctor_get(x_73, 1); lean_inc(x_74); -x_75 = lean_ctor_get(x_73, 1); -lean_inc(x_75); lean_dec(x_73); -x_76 = !lean_is_exclusive(x_74); -if (x_76 == 0) +x_75 = lean_st_ref_take(x_8, x_74); +x_76 = lean_ctor_get(x_75, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_75, 1); +lean_inc(x_77); +lean_dec(x_75); +x_78 = !lean_is_exclusive(x_76); +if (x_78 == 0) { -lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; -x_77 = lean_ctor_get(x_74, 0); -lean_dec(x_77); -x_78 = l_Lean_Meta_transform___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__1___closed__1; -lean_ctor_set(x_74, 0, x_78); -x_79 = lean_st_ref_set(x_8, x_74, x_75); -x_80 = lean_ctor_get(x_79, 1); -lean_inc(x_80); +lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; +x_79 = lean_ctor_get(x_76, 0); lean_dec(x_79); -x_81 = !lean_is_exclusive(x_7); -if (x_81 == 0) +x_80 = l_Lean_Meta_transform___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__1___closed__1; +lean_ctor_set(x_76, 0, x_80); +x_81 = lean_st_ref_set(x_8, x_76, x_77); +x_82 = lean_ctor_get(x_81, 1); +lean_inc(x_82); +lean_dec(x_81); +x_83 = !lean_is_exclusive(x_7); +if (x_83 == 0) { -lean_object* x_82; lean_object* x_83; -x_82 = lean_ctor_get(x_7, 1); -lean_dec(x_82); +lean_object* x_84; lean_object* x_85; +x_84 = lean_ctor_get(x_7, 1); +lean_dec(x_84); lean_ctor_set(x_7, 1, x_19); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_83 = l_Lean_Meta_Simp_simp(x_1, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_80); -if (lean_obj_tag(x_83) == 0) -{ -lean_object* x_84; lean_object* x_85; -x_84 = lean_ctor_get(x_83, 0); -lean_inc(x_84); -x_85 = lean_ctor_get(x_84, 1); -lean_inc(x_85); +x_85 = l_Lean_Meta_Simp_simp(x_1, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_82); if (lean_obj_tag(x_85) == 0) { lean_object* x_86; lean_object* x_87; -lean_dec(x_5); -lean_dec(x_4); -x_86 = lean_ctor_get(x_83, 1); +x_86 = lean_ctor_get(x_85, 0); lean_inc(x_86); -lean_dec(x_83); -lean_inc(x_12); -x_87 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkImpCongr(x_2, x_3, x_84, x_9, x_10, x_11, x_12, x_86); +x_87 = lean_ctor_get(x_86, 1); +lean_inc(x_87); if (lean_obj_tag(x_87) == 0) { lean_object* x_88; lean_object* x_89; -x_88 = lean_ctor_get(x_87, 0); +lean_dec(x_17); +lean_dec(x_5); +lean_dec(x_4); +x_88 = lean_ctor_get(x_85, 1); lean_inc(x_88); -x_89 = lean_ctor_get(x_87, 1); -lean_inc(x_89); -lean_dec(x_87); -x_27 = x_88; -x_28 = x_89; -goto block_48; -} -else +lean_dec(x_85); +lean_inc(x_12); +x_89 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkImpCongr(x_2, x_3, x_86, x_9, x_10, x_11, x_12, x_88); +if (lean_obj_tag(x_89) == 0) { lean_object* x_90; lean_object* x_91; -x_90 = lean_ctor_get(x_87, 0); +x_90 = lean_ctor_get(x_89, 0); lean_inc(x_90); -x_91 = lean_ctor_get(x_87, 1); +x_91 = lean_ctor_get(x_89, 1); lean_inc(x_91); -lean_dec(x_87); -x_49 = x_90; -x_50 = x_91; -goto block_70; +lean_dec(x_89); +x_27 = x_90; +x_28 = x_91; +goto block_49; +} +else +{ +lean_object* x_92; lean_object* x_93; +x_92 = lean_ctor_get(x_89, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_89, 1); +lean_inc(x_93); +lean_dec(x_89); +x_50 = x_92; +x_51 = x_93; +goto block_72; } } else { -lean_object* x_92; uint8_t x_93; -x_92 = lean_ctor_get(x_83, 1); -lean_inc(x_92); -lean_dec(x_83); -x_93 = !lean_is_exclusive(x_85); -if (x_93 == 0) +lean_object* x_94; uint8_t x_95; +x_94 = lean_ctor_get(x_85, 1); +lean_inc(x_94); +lean_dec(x_85); +x_95 = !lean_is_exclusive(x_87); +if (x_95 == 0) { -lean_object* x_94; lean_object* x_95; lean_object* x_96; uint8_t x_97; uint8_t x_98; uint8_t x_99; lean_object* x_100; -x_94 = lean_ctor_get(x_85, 0); -x_95 = l_Lean_Meta_Simp_simp_simpLet___lambda__1___closed__1; -lean_inc(x_5); -x_96 = lean_array_push(x_95, x_5); -x_97 = 0; -x_98 = 1; -x_99 = 1; -lean_inc(x_96); -x_100 = l_Lean_Meta_mkLambdaFVars(x_96, x_94, x_97, x_98, x_99, x_9, x_10, x_11, x_12, x_92); -if (lean_obj_tag(x_100) == 0) +lean_object* x_96; lean_object* x_97; lean_object* x_98; uint8_t x_99; uint8_t x_100; uint8_t x_101; lean_object* x_102; +x_96 = lean_ctor_get(x_87, 0); +x_97 = l_Lean_Meta_Simp_simp_simpLet___lambda__1___closed__1; +x_98 = lean_array_push(x_97, x_5); +x_99 = 0; +x_100 = 1; +x_101 = 1; +lean_inc(x_98); +x_102 = l_Lean_Meta_mkLambdaFVars(x_98, x_96, x_99, x_100, x_101, x_9, x_10, x_11, x_12, x_94); +if (lean_obj_tag(x_102) == 0) { -lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; uint8_t x_105; -x_101 = lean_ctor_get(x_100, 0); -lean_inc(x_101); -x_102 = lean_ctor_get(x_100, 1); -lean_inc(x_102); -lean_dec(x_100); -x_103 = lean_ctor_get(x_84, 0); +lean_object* x_103; lean_object* x_104; lean_object* x_105; uint8_t x_106; +x_103 = lean_ctor_get(x_102, 0); lean_inc(x_103); -lean_dec(x_84); -x_104 = l_Lean_Expr_fvarId_x21(x_5); -x_105 = l_Lean_Expr_hasAnyFVar_visit___at_Lean_Expr_containsFVar___spec__1(x_104, x_103); -lean_dec(x_104); -if (x_105 == 0) +x_104 = lean_ctor_get(x_102, 1); +lean_inc(x_104); +lean_dec(x_102); +x_105 = lean_ctor_get(x_86, 0); +lean_inc(x_105); +lean_dec(x_86); +x_106 = l_Lean_Expr_hasAnyFVar_visit___at_Lean_Expr_containsFVar___spec__1(x_17, x_105); +lean_dec(x_17); +if (x_106 == 0) { -lean_object* x_106; -lean_dec(x_96); +lean_object* x_107; +lean_dec(x_98); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_106 = l_Lean_Meta_Simp_Result_getProof(x_3, x_9, x_10, x_11, x_12, x_102); -if (lean_obj_tag(x_106) == 0) +x_107 = l_Lean_Meta_Simp_Result_getProof(x_3, x_9, x_10, x_11, x_12, x_104); +if (lean_obj_tag(x_107) == 0) { -lean_object* x_107; lean_object* x_108; lean_object* x_109; uint8_t x_110; -x_107 = lean_ctor_get(x_9, 0); -lean_inc(x_107); -x_108 = lean_ctor_get(x_106, 0); +lean_object* x_108; lean_object* x_109; lean_object* x_110; uint8_t x_111; +x_108 = lean_ctor_get(x_9, 0); lean_inc(x_108); -x_109 = lean_ctor_get(x_106, 1); +x_109 = lean_ctor_get(x_107, 0); lean_inc(x_109); -lean_dec(x_106); -x_110 = !lean_is_exclusive(x_9); -if (x_110 == 0) -{ -lean_object* x_111; uint8_t x_112; -x_111 = lean_ctor_get(x_9, 0); -lean_dec(x_111); -x_112 = !lean_is_exclusive(x_107); -if (x_112 == 0) -{ -uint8_t x_113; lean_object* x_114; -x_113 = 1; -lean_ctor_set_uint8(x_107, 5, x_113); -lean_inc(x_12); -x_114 = l_Lean_Meta_mkImpCongrCtx(x_108, x_101, x_9, x_10, x_11, x_12, x_109); -if (lean_obj_tag(x_114) == 0) -{ -lean_object* x_115; lean_object* x_116; -x_115 = lean_ctor_get(x_114, 0); -lean_inc(x_115); -x_116 = lean_ctor_get(x_114, 1); -lean_inc(x_116); -lean_dec(x_114); -lean_ctor_set(x_85, 0, x_115); -if (lean_obj_tag(x_2) == 7) -{ -lean_object* x_117; lean_object* x_118; lean_object* x_119; uint8_t x_120; lean_object* x_121; size_t x_122; size_t x_123; uint8_t x_124; -x_117 = lean_ctor_get(x_2, 0); -lean_inc(x_117); -x_118 = lean_ctor_get(x_2, 1); -lean_inc(x_118); -x_119 = lean_ctor_get(x_2, 2); -lean_inc(x_119); -x_120 = lean_ctor_get_uint8(x_2, sizeof(void*)*3 + 8); -lean_dec(x_2); -lean_inc(x_119); -lean_inc(x_118); -lean_inc(x_117); -x_121 = l_Lean_Expr_forallE___override(x_117, x_118, x_119, x_120); -x_122 = lean_ptr_addr(x_118); -lean_dec(x_118); -x_123 = lean_ptr_addr(x_4); -x_124 = lean_usize_dec_eq(x_122, x_123); -if (x_124 == 0) -{ -lean_object* x_125; lean_object* x_126; lean_object* x_127; -lean_dec(x_121); -lean_dec(x_119); -x_125 = l_Lean_Expr_forallE___override(x_117, x_4, x_103, x_120); -x_126 = lean_unsigned_to_nat(0u); -x_127 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_127, 0, x_125); -lean_ctor_set(x_127, 1, x_85); -lean_ctor_set(x_127, 2, x_126); -x_27 = x_127; -x_28 = x_116; -goto block_48; -} -else -{ -size_t x_128; size_t x_129; uint8_t x_130; -x_128 = lean_ptr_addr(x_119); -lean_dec(x_119); -x_129 = lean_ptr_addr(x_103); -x_130 = lean_usize_dec_eq(x_128, x_129); -if (x_130 == 0) -{ -lean_object* x_131; lean_object* x_132; lean_object* x_133; -lean_dec(x_121); -x_131 = l_Lean_Expr_forallE___override(x_117, x_4, x_103, x_120); -x_132 = lean_unsigned_to_nat(0u); -x_133 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_133, 0, x_131); -lean_ctor_set(x_133, 1, x_85); -lean_ctor_set(x_133, 2, x_132); -x_27 = x_133; -x_28 = x_116; -goto block_48; -} -else -{ -uint8_t x_134; -x_134 = l___private_Lean_Expr_0__Lean_beqBinderInfo____x40_Lean_Expr___hyg_390_(x_120, x_120); -if (x_134 == 0) -{ -lean_object* x_135; lean_object* x_136; lean_object* x_137; -lean_dec(x_121); -x_135 = l_Lean_Expr_forallE___override(x_117, x_4, x_103, x_120); -x_136 = lean_unsigned_to_nat(0u); -x_137 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_137, 0, x_135); -lean_ctor_set(x_137, 1, x_85); -lean_ctor_set(x_137, 2, x_136); -x_27 = x_137; -x_28 = x_116; -goto block_48; -} -else -{ -lean_object* x_138; lean_object* x_139; -lean_dec(x_117); -lean_dec(x_103); -lean_dec(x_4); -x_138 = lean_unsigned_to_nat(0u); -x_139 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_139, 0, x_121); -lean_ctor_set(x_139, 1, x_85); -lean_ctor_set(x_139, 2, x_138); -x_27 = x_139; -x_28 = x_116; -goto block_48; -} -} -} -} -else -{ -lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; -lean_dec(x_103); -lean_dec(x_4); -lean_dec(x_2); -x_140 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkImpCongr___closed__4; -x_141 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_140); -x_142 = lean_unsigned_to_nat(0u); -x_143 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_143, 0, x_141); -lean_ctor_set(x_143, 1, x_85); -lean_ctor_set(x_143, 2, x_142); -x_27 = x_143; -x_28 = x_116; -goto block_48; -} -} -else -{ -lean_object* x_144; lean_object* x_145; -lean_dec(x_103); -lean_free_object(x_85); -lean_dec(x_4); -lean_dec(x_2); -x_144 = lean_ctor_get(x_114, 0); -lean_inc(x_144); -x_145 = lean_ctor_get(x_114, 1); -lean_inc(x_145); -lean_dec(x_114); -x_49 = x_144; -x_50 = x_145; -goto block_70; -} -} -else -{ -uint8_t x_146; uint8_t x_147; uint8_t x_148; uint8_t x_149; uint8_t x_150; uint8_t x_151; uint8_t x_152; uint8_t x_153; uint8_t x_154; uint8_t x_155; uint8_t x_156; uint8_t x_157; uint8_t x_158; uint8_t x_159; lean_object* x_160; lean_object* x_161; -x_146 = lean_ctor_get_uint8(x_107, 0); -x_147 = lean_ctor_get_uint8(x_107, 1); -x_148 = lean_ctor_get_uint8(x_107, 2); -x_149 = lean_ctor_get_uint8(x_107, 3); -x_150 = lean_ctor_get_uint8(x_107, 4); -x_151 = lean_ctor_get_uint8(x_107, 6); -x_152 = lean_ctor_get_uint8(x_107, 7); -x_153 = lean_ctor_get_uint8(x_107, 8); -x_154 = lean_ctor_get_uint8(x_107, 9); -x_155 = lean_ctor_get_uint8(x_107, 10); -x_156 = lean_ctor_get_uint8(x_107, 11); -x_157 = lean_ctor_get_uint8(x_107, 12); -x_158 = lean_ctor_get_uint8(x_107, 13); +x_110 = lean_ctor_get(x_107, 1); +lean_inc(x_110); lean_dec(x_107); -x_159 = 1; -x_160 = lean_alloc_ctor(0, 0, 14); -lean_ctor_set_uint8(x_160, 0, x_146); -lean_ctor_set_uint8(x_160, 1, x_147); -lean_ctor_set_uint8(x_160, 2, x_148); -lean_ctor_set_uint8(x_160, 3, x_149); -lean_ctor_set_uint8(x_160, 4, x_150); -lean_ctor_set_uint8(x_160, 5, x_159); -lean_ctor_set_uint8(x_160, 6, x_151); -lean_ctor_set_uint8(x_160, 7, x_152); -lean_ctor_set_uint8(x_160, 8, x_153); -lean_ctor_set_uint8(x_160, 9, x_154); -lean_ctor_set_uint8(x_160, 10, x_155); -lean_ctor_set_uint8(x_160, 11, x_156); -lean_ctor_set_uint8(x_160, 12, x_157); -lean_ctor_set_uint8(x_160, 13, x_158); -lean_ctor_set(x_9, 0, x_160); -lean_inc(x_12); -x_161 = l_Lean_Meta_mkImpCongrCtx(x_108, x_101, x_9, x_10, x_11, x_12, x_109); -if (lean_obj_tag(x_161) == 0) +x_111 = !lean_is_exclusive(x_9); +if (x_111 == 0) { -lean_object* x_162; lean_object* x_163; -x_162 = lean_ctor_get(x_161, 0); -lean_inc(x_162); -x_163 = lean_ctor_get(x_161, 1); -lean_inc(x_163); -lean_dec(x_161); -lean_ctor_set(x_85, 0, x_162); +lean_object* x_112; uint8_t x_113; +x_112 = lean_ctor_get(x_9, 0); +lean_dec(x_112); +x_113 = !lean_is_exclusive(x_108); +if (x_113 == 0) +{ +uint8_t x_114; lean_object* x_115; +x_114 = 1; +lean_ctor_set_uint8(x_108, 5, x_114); +lean_inc(x_12); +x_115 = l_Lean_Meta_mkImpCongrCtx(x_109, x_103, x_9, x_10, x_11, x_12, x_110); +if (lean_obj_tag(x_115) == 0) +{ +lean_object* x_116; lean_object* x_117; +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); +lean_ctor_set(x_87, 0, x_116); if (lean_obj_tag(x_2) == 7) { -lean_object* x_164; lean_object* x_165; lean_object* x_166; uint8_t x_167; lean_object* x_168; size_t x_169; size_t x_170; uint8_t x_171; -x_164 = lean_ctor_get(x_2, 0); -lean_inc(x_164); -x_165 = lean_ctor_get(x_2, 1); -lean_inc(x_165); -x_166 = lean_ctor_get(x_2, 2); -lean_inc(x_166); -x_167 = lean_ctor_get_uint8(x_2, sizeof(void*)*3 + 8); +lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_object* x_122; size_t x_123; size_t x_124; uint8_t x_125; +x_118 = lean_ctor_get(x_2, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_2, 1); +lean_inc(x_119); +x_120 = lean_ctor_get(x_2, 2); +lean_inc(x_120); +x_121 = lean_ctor_get_uint8(x_2, sizeof(void*)*3 + 8); lean_dec(x_2); +lean_inc(x_120); +lean_inc(x_119); +lean_inc(x_118); +x_122 = l_Lean_Expr_forallE___override(x_118, x_119, x_120, x_121); +x_123 = lean_ptr_addr(x_119); +lean_dec(x_119); +x_124 = lean_ptr_addr(x_4); +x_125 = lean_usize_dec_eq(x_123, x_124); +if (x_125 == 0) +{ +lean_object* x_126; lean_object* x_127; lean_object* x_128; +lean_dec(x_122); +lean_dec(x_120); +x_126 = l_Lean_Expr_forallE___override(x_118, x_4, x_105, x_121); +x_127 = lean_unsigned_to_nat(0u); +x_128 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_128, 0, x_126); +lean_ctor_set(x_128, 1, x_87); +lean_ctor_set(x_128, 2, x_127); +x_27 = x_128; +x_28 = x_117; +goto block_49; +} +else +{ +size_t x_129; size_t x_130; uint8_t x_131; +x_129 = lean_ptr_addr(x_120); +lean_dec(x_120); +x_130 = lean_ptr_addr(x_105); +x_131 = lean_usize_dec_eq(x_129, x_130); +if (x_131 == 0) +{ +lean_object* x_132; lean_object* x_133; lean_object* x_134; +lean_dec(x_122); +x_132 = l_Lean_Expr_forallE___override(x_118, x_4, x_105, x_121); +x_133 = lean_unsigned_to_nat(0u); +x_134 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_134, 0, x_132); +lean_ctor_set(x_134, 1, x_87); +lean_ctor_set(x_134, 2, x_133); +x_27 = x_134; +x_28 = x_117; +goto block_49; +} +else +{ +uint8_t x_135; +x_135 = l___private_Lean_Expr_0__Lean_beqBinderInfo____x40_Lean_Expr___hyg_390_(x_121, x_121); +if (x_135 == 0) +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; +lean_dec(x_122); +x_136 = l_Lean_Expr_forallE___override(x_118, x_4, x_105, x_121); +x_137 = lean_unsigned_to_nat(0u); +x_138 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_138, 0, x_136); +lean_ctor_set(x_138, 1, x_87); +lean_ctor_set(x_138, 2, x_137); +x_27 = x_138; +x_28 = x_117; +goto block_49; +} +else +{ +lean_object* x_139; lean_object* x_140; +lean_dec(x_118); +lean_dec(x_105); +lean_dec(x_4); +x_139 = lean_unsigned_to_nat(0u); +x_140 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_140, 0, x_122); +lean_ctor_set(x_140, 1, x_87); +lean_ctor_set(x_140, 2, x_139); +x_27 = x_140; +x_28 = x_117; +goto block_49; +} +} +} +} +else +{ +lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; +lean_dec(x_105); +lean_dec(x_4); +lean_dec(x_2); +x_141 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkImpCongr___closed__4; +x_142 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_141); +x_143 = lean_unsigned_to_nat(0u); +x_144 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_144, 0, x_142); +lean_ctor_set(x_144, 1, x_87); +lean_ctor_set(x_144, 2, x_143); +x_27 = x_144; +x_28 = x_117; +goto block_49; +} +} +else +{ +lean_object* x_145; lean_object* x_146; +lean_dec(x_105); +lean_free_object(x_87); +lean_dec(x_4); +lean_dec(x_2); +x_145 = lean_ctor_get(x_115, 0); +lean_inc(x_145); +x_146 = lean_ctor_get(x_115, 1); +lean_inc(x_146); +lean_dec(x_115); +x_50 = x_145; +x_51 = x_146; +goto block_72; +} +} +else +{ +uint8_t x_147; uint8_t x_148; uint8_t x_149; uint8_t x_150; uint8_t x_151; uint8_t x_152; uint8_t x_153; uint8_t x_154; uint8_t x_155; uint8_t x_156; uint8_t x_157; uint8_t x_158; uint8_t x_159; uint8_t x_160; lean_object* x_161; lean_object* x_162; +x_147 = lean_ctor_get_uint8(x_108, 0); +x_148 = lean_ctor_get_uint8(x_108, 1); +x_149 = lean_ctor_get_uint8(x_108, 2); +x_150 = lean_ctor_get_uint8(x_108, 3); +x_151 = lean_ctor_get_uint8(x_108, 4); +x_152 = lean_ctor_get_uint8(x_108, 6); +x_153 = lean_ctor_get_uint8(x_108, 7); +x_154 = lean_ctor_get_uint8(x_108, 8); +x_155 = lean_ctor_get_uint8(x_108, 9); +x_156 = lean_ctor_get_uint8(x_108, 10); +x_157 = lean_ctor_get_uint8(x_108, 11); +x_158 = lean_ctor_get_uint8(x_108, 12); +x_159 = lean_ctor_get_uint8(x_108, 13); +lean_dec(x_108); +x_160 = 1; +x_161 = lean_alloc_ctor(0, 0, 14); +lean_ctor_set_uint8(x_161, 0, x_147); +lean_ctor_set_uint8(x_161, 1, x_148); +lean_ctor_set_uint8(x_161, 2, x_149); +lean_ctor_set_uint8(x_161, 3, x_150); +lean_ctor_set_uint8(x_161, 4, x_151); +lean_ctor_set_uint8(x_161, 5, x_160); +lean_ctor_set_uint8(x_161, 6, x_152); +lean_ctor_set_uint8(x_161, 7, x_153); +lean_ctor_set_uint8(x_161, 8, x_154); +lean_ctor_set_uint8(x_161, 9, x_155); +lean_ctor_set_uint8(x_161, 10, x_156); +lean_ctor_set_uint8(x_161, 11, x_157); +lean_ctor_set_uint8(x_161, 12, x_158); +lean_ctor_set_uint8(x_161, 13, x_159); +lean_ctor_set(x_9, 0, x_161); +lean_inc(x_12); +x_162 = l_Lean_Meta_mkImpCongrCtx(x_109, x_103, x_9, x_10, x_11, x_12, x_110); +if (lean_obj_tag(x_162) == 0) +{ +lean_object* x_163; lean_object* x_164; +x_163 = lean_ctor_get(x_162, 0); +lean_inc(x_163); +x_164 = lean_ctor_get(x_162, 1); +lean_inc(x_164); +lean_dec(x_162); +lean_ctor_set(x_87, 0, x_163); +if (lean_obj_tag(x_2) == 7) +{ +lean_object* x_165; lean_object* x_166; lean_object* x_167; uint8_t x_168; lean_object* x_169; size_t x_170; size_t x_171; uint8_t x_172; +x_165 = lean_ctor_get(x_2, 0); +lean_inc(x_165); +x_166 = lean_ctor_get(x_2, 1); +lean_inc(x_166); +x_167 = lean_ctor_get(x_2, 2); +lean_inc(x_167); +x_168 = lean_ctor_get_uint8(x_2, sizeof(void*)*3 + 8); +lean_dec(x_2); +lean_inc(x_167); lean_inc(x_166); lean_inc(x_165); -lean_inc(x_164); -x_168 = l_Lean_Expr_forallE___override(x_164, x_165, x_166, x_167); -x_169 = lean_ptr_addr(x_165); +x_169 = l_Lean_Expr_forallE___override(x_165, x_166, x_167, x_168); +x_170 = lean_ptr_addr(x_166); +lean_dec(x_166); +x_171 = lean_ptr_addr(x_4); +x_172 = lean_usize_dec_eq(x_170, x_171); +if (x_172 == 0) +{ +lean_object* x_173; lean_object* x_174; lean_object* x_175; +lean_dec(x_169); +lean_dec(x_167); +x_173 = l_Lean_Expr_forallE___override(x_165, x_4, x_105, x_168); +x_174 = lean_unsigned_to_nat(0u); +x_175 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_175, 0, x_173); +lean_ctor_set(x_175, 1, x_87); +lean_ctor_set(x_175, 2, x_174); +x_27 = x_175; +x_28 = x_164; +goto block_49; +} +else +{ +size_t x_176; size_t x_177; uint8_t x_178; +x_176 = lean_ptr_addr(x_167); +lean_dec(x_167); +x_177 = lean_ptr_addr(x_105); +x_178 = lean_usize_dec_eq(x_176, x_177); +if (x_178 == 0) +{ +lean_object* x_179; lean_object* x_180; lean_object* x_181; +lean_dec(x_169); +x_179 = l_Lean_Expr_forallE___override(x_165, x_4, x_105, x_168); +x_180 = lean_unsigned_to_nat(0u); +x_181 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_181, 0, x_179); +lean_ctor_set(x_181, 1, x_87); +lean_ctor_set(x_181, 2, x_180); +x_27 = x_181; +x_28 = x_164; +goto block_49; +} +else +{ +uint8_t x_182; +x_182 = l___private_Lean_Expr_0__Lean_beqBinderInfo____x40_Lean_Expr___hyg_390_(x_168, x_168); +if (x_182 == 0) +{ +lean_object* x_183; lean_object* x_184; lean_object* x_185; +lean_dec(x_169); +x_183 = l_Lean_Expr_forallE___override(x_165, x_4, x_105, x_168); +x_184 = lean_unsigned_to_nat(0u); +x_185 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_185, 0, x_183); +lean_ctor_set(x_185, 1, x_87); +lean_ctor_set(x_185, 2, x_184); +x_27 = x_185; +x_28 = x_164; +goto block_49; +} +else +{ +lean_object* x_186; lean_object* x_187; lean_dec(x_165); -x_170 = lean_ptr_addr(x_4); -x_171 = lean_usize_dec_eq(x_169, x_170); -if (x_171 == 0) -{ -lean_object* x_172; lean_object* x_173; lean_object* x_174; -lean_dec(x_168); -lean_dec(x_166); -x_172 = l_Lean_Expr_forallE___override(x_164, x_4, x_103, x_167); -x_173 = lean_unsigned_to_nat(0u); -x_174 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_174, 0, x_172); -lean_ctor_set(x_174, 1, x_85); -lean_ctor_set(x_174, 2, x_173); -x_27 = x_174; -x_28 = x_163; -goto block_48; -} -else -{ -size_t x_175; size_t x_176; uint8_t x_177; -x_175 = lean_ptr_addr(x_166); -lean_dec(x_166); -x_176 = lean_ptr_addr(x_103); -x_177 = lean_usize_dec_eq(x_175, x_176); -if (x_177 == 0) -{ -lean_object* x_178; lean_object* x_179; lean_object* x_180; -lean_dec(x_168); -x_178 = l_Lean_Expr_forallE___override(x_164, x_4, x_103, x_167); -x_179 = lean_unsigned_to_nat(0u); -x_180 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_180, 0, x_178); -lean_ctor_set(x_180, 1, x_85); -lean_ctor_set(x_180, 2, x_179); -x_27 = x_180; -x_28 = x_163; -goto block_48; -} -else -{ -uint8_t x_181; -x_181 = l___private_Lean_Expr_0__Lean_beqBinderInfo____x40_Lean_Expr___hyg_390_(x_167, x_167); -if (x_181 == 0) -{ -lean_object* x_182; lean_object* x_183; lean_object* x_184; -lean_dec(x_168); -x_182 = l_Lean_Expr_forallE___override(x_164, x_4, x_103, x_167); -x_183 = lean_unsigned_to_nat(0u); -x_184 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_184, 0, x_182); -lean_ctor_set(x_184, 1, x_85); -lean_ctor_set(x_184, 2, x_183); -x_27 = x_184; -x_28 = x_163; -goto block_48; -} -else -{ -lean_object* x_185; lean_object* x_186; -lean_dec(x_164); -lean_dec(x_103); +lean_dec(x_105); lean_dec(x_4); -x_185 = lean_unsigned_to_nat(0u); -x_186 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_186, 0, x_168); -lean_ctor_set(x_186, 1, x_85); -lean_ctor_set(x_186, 2, x_185); -x_27 = x_186; -x_28 = x_163; -goto block_48; +x_186 = lean_unsigned_to_nat(0u); +x_187 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_187, 0, x_169); +lean_ctor_set(x_187, 1, x_87); +lean_ctor_set(x_187, 2, x_186); +x_27 = x_187; +x_28 = x_164; +goto block_49; } } } } else { -lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; -lean_dec(x_103); +lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; +lean_dec(x_105); lean_dec(x_4); lean_dec(x_2); -x_187 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkImpCongr___closed__4; -x_188 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_187); -x_189 = lean_unsigned_to_nat(0u); -x_190 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_190, 0, x_188); -lean_ctor_set(x_190, 1, x_85); -lean_ctor_set(x_190, 2, x_189); -x_27 = x_190; -x_28 = x_163; -goto block_48; +x_188 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkImpCongr___closed__4; +x_189 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_188); +x_190 = lean_unsigned_to_nat(0u); +x_191 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_191, 0, x_189); +lean_ctor_set(x_191, 1, x_87); +lean_ctor_set(x_191, 2, x_190); +x_27 = x_191; +x_28 = x_164; +goto block_49; } } else { -lean_object* x_191; lean_object* x_192; -lean_dec(x_103); -lean_free_object(x_85); +lean_object* x_192; lean_object* x_193; +lean_dec(x_105); +lean_free_object(x_87); lean_dec(x_4); lean_dec(x_2); -x_191 = lean_ctor_get(x_161, 0); -lean_inc(x_191); -x_192 = lean_ctor_get(x_161, 1); +x_192 = lean_ctor_get(x_162, 0); lean_inc(x_192); -lean_dec(x_161); -x_49 = x_191; +x_193 = lean_ctor_get(x_162, 1); +lean_inc(x_193); +lean_dec(x_162); x_50 = x_192; -goto block_70; +x_51 = x_193; +goto block_72; } } } else { -lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; uint8_t x_198; uint8_t x_199; uint8_t x_200; uint8_t x_201; uint8_t x_202; uint8_t x_203; uint8_t x_204; uint8_t x_205; uint8_t x_206; uint8_t x_207; uint8_t x_208; uint8_t x_209; uint8_t x_210; lean_object* x_211; uint8_t x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; -x_193 = lean_ctor_get(x_9, 1); -x_194 = lean_ctor_get(x_9, 2); -x_195 = lean_ctor_get(x_9, 3); -x_196 = lean_ctor_get(x_9, 4); -x_197 = lean_ctor_get(x_9, 5); +lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; uint8_t x_199; uint8_t x_200; uint8_t x_201; uint8_t x_202; uint8_t x_203; uint8_t x_204; uint8_t x_205; uint8_t x_206; uint8_t x_207; uint8_t x_208; uint8_t x_209; uint8_t x_210; uint8_t x_211; lean_object* x_212; uint8_t x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; +x_194 = lean_ctor_get(x_9, 1); +x_195 = lean_ctor_get(x_9, 2); +x_196 = lean_ctor_get(x_9, 3); +x_197 = lean_ctor_get(x_9, 4); +x_198 = lean_ctor_get(x_9, 5); +lean_inc(x_198); lean_inc(x_197); lean_inc(x_196); lean_inc(x_195); lean_inc(x_194); -lean_inc(x_193); lean_dec(x_9); -x_198 = lean_ctor_get_uint8(x_107, 0); -x_199 = lean_ctor_get_uint8(x_107, 1); -x_200 = lean_ctor_get_uint8(x_107, 2); -x_201 = lean_ctor_get_uint8(x_107, 3); -x_202 = lean_ctor_get_uint8(x_107, 4); -x_203 = lean_ctor_get_uint8(x_107, 6); -x_204 = lean_ctor_get_uint8(x_107, 7); -x_205 = lean_ctor_get_uint8(x_107, 8); -x_206 = lean_ctor_get_uint8(x_107, 9); -x_207 = lean_ctor_get_uint8(x_107, 10); -x_208 = lean_ctor_get_uint8(x_107, 11); -x_209 = lean_ctor_get_uint8(x_107, 12); -x_210 = lean_ctor_get_uint8(x_107, 13); -if (lean_is_exclusive(x_107)) { - x_211 = x_107; +x_199 = lean_ctor_get_uint8(x_108, 0); +x_200 = lean_ctor_get_uint8(x_108, 1); +x_201 = lean_ctor_get_uint8(x_108, 2); +x_202 = lean_ctor_get_uint8(x_108, 3); +x_203 = lean_ctor_get_uint8(x_108, 4); +x_204 = lean_ctor_get_uint8(x_108, 6); +x_205 = lean_ctor_get_uint8(x_108, 7); +x_206 = lean_ctor_get_uint8(x_108, 8); +x_207 = lean_ctor_get_uint8(x_108, 9); +x_208 = lean_ctor_get_uint8(x_108, 10); +x_209 = lean_ctor_get_uint8(x_108, 11); +x_210 = lean_ctor_get_uint8(x_108, 12); +x_211 = lean_ctor_get_uint8(x_108, 13); +if (lean_is_exclusive(x_108)) { + x_212 = x_108; } else { - lean_dec_ref(x_107); - x_211 = lean_box(0); + lean_dec_ref(x_108); + x_212 = lean_box(0); } -x_212 = 1; -if (lean_is_scalar(x_211)) { - x_213 = lean_alloc_ctor(0, 0, 14); +x_213 = 1; +if (lean_is_scalar(x_212)) { + x_214 = lean_alloc_ctor(0, 0, 14); } else { - x_213 = x_211; + x_214 = x_212; } -lean_ctor_set_uint8(x_213, 0, x_198); -lean_ctor_set_uint8(x_213, 1, x_199); -lean_ctor_set_uint8(x_213, 2, x_200); -lean_ctor_set_uint8(x_213, 3, x_201); -lean_ctor_set_uint8(x_213, 4, x_202); -lean_ctor_set_uint8(x_213, 5, x_212); -lean_ctor_set_uint8(x_213, 6, x_203); -lean_ctor_set_uint8(x_213, 7, x_204); -lean_ctor_set_uint8(x_213, 8, x_205); -lean_ctor_set_uint8(x_213, 9, x_206); -lean_ctor_set_uint8(x_213, 10, x_207); -lean_ctor_set_uint8(x_213, 11, x_208); -lean_ctor_set_uint8(x_213, 12, x_209); -lean_ctor_set_uint8(x_213, 13, x_210); -x_214 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_214, 0, x_213); -lean_ctor_set(x_214, 1, x_193); -lean_ctor_set(x_214, 2, x_194); -lean_ctor_set(x_214, 3, x_195); -lean_ctor_set(x_214, 4, x_196); -lean_ctor_set(x_214, 5, x_197); +lean_ctor_set_uint8(x_214, 0, x_199); +lean_ctor_set_uint8(x_214, 1, x_200); +lean_ctor_set_uint8(x_214, 2, x_201); +lean_ctor_set_uint8(x_214, 3, x_202); +lean_ctor_set_uint8(x_214, 4, x_203); +lean_ctor_set_uint8(x_214, 5, x_213); +lean_ctor_set_uint8(x_214, 6, x_204); +lean_ctor_set_uint8(x_214, 7, x_205); +lean_ctor_set_uint8(x_214, 8, x_206); +lean_ctor_set_uint8(x_214, 9, x_207); +lean_ctor_set_uint8(x_214, 10, x_208); +lean_ctor_set_uint8(x_214, 11, x_209); +lean_ctor_set_uint8(x_214, 12, x_210); +lean_ctor_set_uint8(x_214, 13, x_211); +x_215 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_215, 0, x_214); +lean_ctor_set(x_215, 1, x_194); +lean_ctor_set(x_215, 2, x_195); +lean_ctor_set(x_215, 3, x_196); +lean_ctor_set(x_215, 4, x_197); +lean_ctor_set(x_215, 5, x_198); lean_inc(x_12); -x_215 = l_Lean_Meta_mkImpCongrCtx(x_108, x_101, x_214, x_10, x_11, x_12, x_109); -if (lean_obj_tag(x_215) == 0) +x_216 = l_Lean_Meta_mkImpCongrCtx(x_109, x_103, x_215, x_10, x_11, x_12, x_110); +if (lean_obj_tag(x_216) == 0) { -lean_object* x_216; lean_object* x_217; -x_216 = lean_ctor_get(x_215, 0); -lean_inc(x_216); -x_217 = lean_ctor_get(x_215, 1); +lean_object* x_217; lean_object* x_218; +x_217 = lean_ctor_get(x_216, 0); lean_inc(x_217); -lean_dec(x_215); -lean_ctor_set(x_85, 0, x_216); +x_218 = lean_ctor_get(x_216, 1); +lean_inc(x_218); +lean_dec(x_216); +lean_ctor_set(x_87, 0, x_217); if (lean_obj_tag(x_2) == 7) { -lean_object* x_218; lean_object* x_219; lean_object* x_220; uint8_t x_221; lean_object* x_222; size_t x_223; size_t x_224; uint8_t x_225; -x_218 = lean_ctor_get(x_2, 0); -lean_inc(x_218); -x_219 = lean_ctor_get(x_2, 1); +lean_object* x_219; lean_object* x_220; lean_object* x_221; uint8_t x_222; lean_object* x_223; size_t x_224; size_t x_225; uint8_t x_226; +x_219 = lean_ctor_get(x_2, 0); lean_inc(x_219); -x_220 = lean_ctor_get(x_2, 2); +x_220 = lean_ctor_get(x_2, 1); lean_inc(x_220); -x_221 = lean_ctor_get_uint8(x_2, sizeof(void*)*3 + 8); +x_221 = lean_ctor_get(x_2, 2); +lean_inc(x_221); +x_222 = lean_ctor_get_uint8(x_2, sizeof(void*)*3 + 8); lean_dec(x_2); +lean_inc(x_221); lean_inc(x_220); lean_inc(x_219); -lean_inc(x_218); -x_222 = l_Lean_Expr_forallE___override(x_218, x_219, x_220, x_221); -x_223 = lean_ptr_addr(x_219); +x_223 = l_Lean_Expr_forallE___override(x_219, x_220, x_221, x_222); +x_224 = lean_ptr_addr(x_220); +lean_dec(x_220); +x_225 = lean_ptr_addr(x_4); +x_226 = lean_usize_dec_eq(x_224, x_225); +if (x_226 == 0) +{ +lean_object* x_227; lean_object* x_228; lean_object* x_229; +lean_dec(x_223); +lean_dec(x_221); +x_227 = l_Lean_Expr_forallE___override(x_219, x_4, x_105, x_222); +x_228 = lean_unsigned_to_nat(0u); +x_229 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_229, 0, x_227); +lean_ctor_set(x_229, 1, x_87); +lean_ctor_set(x_229, 2, x_228); +x_27 = x_229; +x_28 = x_218; +goto block_49; +} +else +{ +size_t x_230; size_t x_231; uint8_t x_232; +x_230 = lean_ptr_addr(x_221); +lean_dec(x_221); +x_231 = lean_ptr_addr(x_105); +x_232 = lean_usize_dec_eq(x_230, x_231); +if (x_232 == 0) +{ +lean_object* x_233; lean_object* x_234; lean_object* x_235; +lean_dec(x_223); +x_233 = l_Lean_Expr_forallE___override(x_219, x_4, x_105, x_222); +x_234 = lean_unsigned_to_nat(0u); +x_235 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_235, 0, x_233); +lean_ctor_set(x_235, 1, x_87); +lean_ctor_set(x_235, 2, x_234); +x_27 = x_235; +x_28 = x_218; +goto block_49; +} +else +{ +uint8_t x_236; +x_236 = l___private_Lean_Expr_0__Lean_beqBinderInfo____x40_Lean_Expr___hyg_390_(x_222, x_222); +if (x_236 == 0) +{ +lean_object* x_237; lean_object* x_238; lean_object* x_239; +lean_dec(x_223); +x_237 = l_Lean_Expr_forallE___override(x_219, x_4, x_105, x_222); +x_238 = lean_unsigned_to_nat(0u); +x_239 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_239, 0, x_237); +lean_ctor_set(x_239, 1, x_87); +lean_ctor_set(x_239, 2, x_238); +x_27 = x_239; +x_28 = x_218; +goto block_49; +} +else +{ +lean_object* x_240; lean_object* x_241; lean_dec(x_219); -x_224 = lean_ptr_addr(x_4); -x_225 = lean_usize_dec_eq(x_223, x_224); -if (x_225 == 0) -{ -lean_object* x_226; lean_object* x_227; lean_object* x_228; -lean_dec(x_222); -lean_dec(x_220); -x_226 = l_Lean_Expr_forallE___override(x_218, x_4, x_103, x_221); -x_227 = lean_unsigned_to_nat(0u); -x_228 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_228, 0, x_226); -lean_ctor_set(x_228, 1, x_85); -lean_ctor_set(x_228, 2, x_227); -x_27 = x_228; -x_28 = x_217; -goto block_48; -} -else -{ -size_t x_229; size_t x_230; uint8_t x_231; -x_229 = lean_ptr_addr(x_220); -lean_dec(x_220); -x_230 = lean_ptr_addr(x_103); -x_231 = lean_usize_dec_eq(x_229, x_230); -if (x_231 == 0) -{ -lean_object* x_232; lean_object* x_233; lean_object* x_234; -lean_dec(x_222); -x_232 = l_Lean_Expr_forallE___override(x_218, x_4, x_103, x_221); -x_233 = lean_unsigned_to_nat(0u); -x_234 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_234, 0, x_232); -lean_ctor_set(x_234, 1, x_85); -lean_ctor_set(x_234, 2, x_233); -x_27 = x_234; -x_28 = x_217; -goto block_48; -} -else -{ -uint8_t x_235; -x_235 = l___private_Lean_Expr_0__Lean_beqBinderInfo____x40_Lean_Expr___hyg_390_(x_221, x_221); -if (x_235 == 0) -{ -lean_object* x_236; lean_object* x_237; lean_object* x_238; -lean_dec(x_222); -x_236 = l_Lean_Expr_forallE___override(x_218, x_4, x_103, x_221); -x_237 = lean_unsigned_to_nat(0u); -x_238 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_238, 0, x_236); -lean_ctor_set(x_238, 1, x_85); -lean_ctor_set(x_238, 2, x_237); -x_27 = x_238; -x_28 = x_217; -goto block_48; -} -else -{ -lean_object* x_239; lean_object* x_240; -lean_dec(x_218); -lean_dec(x_103); +lean_dec(x_105); lean_dec(x_4); -x_239 = lean_unsigned_to_nat(0u); -x_240 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_240, 0, x_222); -lean_ctor_set(x_240, 1, x_85); -lean_ctor_set(x_240, 2, x_239); -x_27 = x_240; -x_28 = x_217; -goto block_48; +x_240 = lean_unsigned_to_nat(0u); +x_241 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_241, 0, x_223); +lean_ctor_set(x_241, 1, x_87); +lean_ctor_set(x_241, 2, x_240); +x_27 = x_241; +x_28 = x_218; +goto block_49; } } } } else { -lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; -lean_dec(x_103); +lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; +lean_dec(x_105); lean_dec(x_4); lean_dec(x_2); -x_241 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkImpCongr___closed__4; -x_242 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_241); -x_243 = lean_unsigned_to_nat(0u); -x_244 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_244, 0, x_242); -lean_ctor_set(x_244, 1, x_85); -lean_ctor_set(x_244, 2, x_243); -x_27 = x_244; -x_28 = x_217; -goto block_48; +x_242 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkImpCongr___closed__4; +x_243 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_242); +x_244 = lean_unsigned_to_nat(0u); +x_245 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_245, 0, x_243); +lean_ctor_set(x_245, 1, x_87); +lean_ctor_set(x_245, 2, x_244); +x_27 = x_245; +x_28 = x_218; +goto block_49; } } else { -lean_object* x_245; lean_object* x_246; -lean_dec(x_103); -lean_free_object(x_85); +lean_object* x_246; lean_object* x_247; +lean_dec(x_105); +lean_free_object(x_87); lean_dec(x_4); lean_dec(x_2); -x_245 = lean_ctor_get(x_215, 0); -lean_inc(x_245); -x_246 = lean_ctor_get(x_215, 1); +x_246 = lean_ctor_get(x_216, 0); lean_inc(x_246); -lean_dec(x_215); -x_49 = x_245; +x_247 = lean_ctor_get(x_216, 1); +lean_inc(x_247); +lean_dec(x_216); x_50 = x_246; -goto block_70; +x_51 = x_247; +goto block_72; } } } else { -lean_object* x_247; lean_object* x_248; +lean_object* x_248; lean_object* x_249; +lean_dec(x_105); lean_dec(x_103); -lean_dec(x_101); -lean_free_object(x_85); +lean_free_object(x_87); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_4); lean_dec(x_2); -x_247 = lean_ctor_get(x_106, 0); -lean_inc(x_247); -x_248 = lean_ctor_get(x_106, 1); +x_248 = lean_ctor_get(x_107, 0); lean_inc(x_248); -lean_dec(x_106); -x_49 = x_247; +x_249 = lean_ctor_get(x_107, 1); +lean_inc(x_249); +lean_dec(x_107); x_50 = x_248; -goto block_70; +x_51 = x_249; +goto block_72; } } else { -lean_object* x_249; +lean_object* x_250; lean_dec(x_4); lean_dec(x_2); -x_249 = l_Lean_Meta_mkForallFVars(x_96, x_103, x_97, x_98, x_99, x_9, x_10, x_11, x_12, x_102); -if (lean_obj_tag(x_249) == 0) +x_250 = l_Lean_Meta_mkForallFVars(x_98, x_105, x_99, x_100, x_101, x_9, x_10, x_11, x_12, x_104); +if (lean_obj_tag(x_250) == 0) { -lean_object* x_250; lean_object* x_251; lean_object* x_252; -x_250 = lean_ctor_get(x_249, 0); -lean_inc(x_250); -x_251 = lean_ctor_get(x_249, 1); +lean_object* x_251; lean_object* x_252; lean_object* x_253; +x_251 = lean_ctor_get(x_250, 0); lean_inc(x_251); -lean_dec(x_249); +x_252 = lean_ctor_get(x_250, 1); +lean_inc(x_252); +lean_dec(x_250); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_252 = l_Lean_Meta_Simp_Result_getProof(x_3, x_9, x_10, x_11, x_12, x_251); -if (lean_obj_tag(x_252) == 0) +x_253 = l_Lean_Meta_Simp_Result_getProof(x_3, x_9, x_10, x_11, x_12, x_252); +if (lean_obj_tag(x_253) == 0) { -lean_object* x_253; lean_object* x_254; lean_object* x_255; uint8_t x_256; -x_253 = lean_ctor_get(x_9, 0); -lean_inc(x_253); -x_254 = lean_ctor_get(x_252, 0); +lean_object* x_254; lean_object* x_255; lean_object* x_256; uint8_t x_257; +x_254 = lean_ctor_get(x_9, 0); lean_inc(x_254); -x_255 = lean_ctor_get(x_252, 1); +x_255 = lean_ctor_get(x_253, 0); lean_inc(x_255); -lean_dec(x_252); -x_256 = !lean_is_exclusive(x_9); -if (x_256 == 0) -{ -lean_object* x_257; uint8_t x_258; -x_257 = lean_ctor_get(x_9, 0); -lean_dec(x_257); -x_258 = !lean_is_exclusive(x_253); -if (x_258 == 0) -{ -uint8_t x_259; lean_object* x_260; -x_259 = 1; -lean_ctor_set_uint8(x_253, 5, x_259); -lean_inc(x_12); -x_260 = l_Lean_Meta_mkImpDepCongrCtx(x_254, x_101, x_9, x_10, x_11, x_12, x_255); -if (lean_obj_tag(x_260) == 0) -{ -lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; -x_261 = lean_ctor_get(x_260, 0); -lean_inc(x_261); -x_262 = lean_ctor_get(x_260, 1); -lean_inc(x_262); -lean_dec(x_260); -lean_ctor_set(x_85, 0, x_261); -x_263 = lean_unsigned_to_nat(0u); -x_264 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_264, 0, x_250); -lean_ctor_set(x_264, 1, x_85); -lean_ctor_set(x_264, 2, x_263); -x_27 = x_264; -x_28 = x_262; -goto block_48; -} -else -{ -lean_object* x_265; lean_object* x_266; -lean_dec(x_250); -lean_free_object(x_85); -x_265 = lean_ctor_get(x_260, 0); -lean_inc(x_265); -x_266 = lean_ctor_get(x_260, 1); -lean_inc(x_266); -lean_dec(x_260); -x_49 = x_265; -x_50 = x_266; -goto block_70; -} -} -else -{ -uint8_t x_267; uint8_t x_268; uint8_t x_269; uint8_t x_270; uint8_t x_271; uint8_t x_272; uint8_t x_273; uint8_t x_274; uint8_t x_275; uint8_t x_276; uint8_t x_277; uint8_t x_278; uint8_t x_279; uint8_t x_280; lean_object* x_281; lean_object* x_282; -x_267 = lean_ctor_get_uint8(x_253, 0); -x_268 = lean_ctor_get_uint8(x_253, 1); -x_269 = lean_ctor_get_uint8(x_253, 2); -x_270 = lean_ctor_get_uint8(x_253, 3); -x_271 = lean_ctor_get_uint8(x_253, 4); -x_272 = lean_ctor_get_uint8(x_253, 6); -x_273 = lean_ctor_get_uint8(x_253, 7); -x_274 = lean_ctor_get_uint8(x_253, 8); -x_275 = lean_ctor_get_uint8(x_253, 9); -x_276 = lean_ctor_get_uint8(x_253, 10); -x_277 = lean_ctor_get_uint8(x_253, 11); -x_278 = lean_ctor_get_uint8(x_253, 12); -x_279 = lean_ctor_get_uint8(x_253, 13); +x_256 = lean_ctor_get(x_253, 1); +lean_inc(x_256); lean_dec(x_253); -x_280 = 1; -x_281 = lean_alloc_ctor(0, 0, 14); -lean_ctor_set_uint8(x_281, 0, x_267); -lean_ctor_set_uint8(x_281, 1, x_268); -lean_ctor_set_uint8(x_281, 2, x_269); -lean_ctor_set_uint8(x_281, 3, x_270); -lean_ctor_set_uint8(x_281, 4, x_271); -lean_ctor_set_uint8(x_281, 5, x_280); -lean_ctor_set_uint8(x_281, 6, x_272); -lean_ctor_set_uint8(x_281, 7, x_273); -lean_ctor_set_uint8(x_281, 8, x_274); -lean_ctor_set_uint8(x_281, 9, x_275); -lean_ctor_set_uint8(x_281, 10, x_276); -lean_ctor_set_uint8(x_281, 11, x_277); -lean_ctor_set_uint8(x_281, 12, x_278); -lean_ctor_set_uint8(x_281, 13, x_279); -lean_ctor_set(x_9, 0, x_281); +x_257 = !lean_is_exclusive(x_9); +if (x_257 == 0) +{ +lean_object* x_258; uint8_t x_259; +x_258 = lean_ctor_get(x_9, 0); +lean_dec(x_258); +x_259 = !lean_is_exclusive(x_254); +if (x_259 == 0) +{ +uint8_t x_260; lean_object* x_261; +x_260 = 1; +lean_ctor_set_uint8(x_254, 5, x_260); lean_inc(x_12); -x_282 = l_Lean_Meta_mkImpDepCongrCtx(x_254, x_101, x_9, x_10, x_11, x_12, x_255); -if (lean_obj_tag(x_282) == 0) +x_261 = l_Lean_Meta_mkImpDepCongrCtx(x_255, x_103, x_9, x_10, x_11, x_12, x_256); +if (lean_obj_tag(x_261) == 0) { -lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; -x_283 = lean_ctor_get(x_282, 0); -lean_inc(x_283); -x_284 = lean_ctor_get(x_282, 1); +lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; +x_262 = lean_ctor_get(x_261, 0); +lean_inc(x_262); +x_263 = lean_ctor_get(x_261, 1); +lean_inc(x_263); +lean_dec(x_261); +lean_ctor_set(x_87, 0, x_262); +x_264 = lean_unsigned_to_nat(0u); +x_265 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_265, 0, x_251); +lean_ctor_set(x_265, 1, x_87); +lean_ctor_set(x_265, 2, x_264); +x_27 = x_265; +x_28 = x_263; +goto block_49; +} +else +{ +lean_object* x_266; lean_object* x_267; +lean_dec(x_251); +lean_free_object(x_87); +x_266 = lean_ctor_get(x_261, 0); +lean_inc(x_266); +x_267 = lean_ctor_get(x_261, 1); +lean_inc(x_267); +lean_dec(x_261); +x_50 = x_266; +x_51 = x_267; +goto block_72; +} +} +else +{ +uint8_t x_268; uint8_t x_269; uint8_t x_270; uint8_t x_271; uint8_t x_272; uint8_t x_273; uint8_t x_274; uint8_t x_275; uint8_t x_276; uint8_t x_277; uint8_t x_278; uint8_t x_279; uint8_t x_280; uint8_t x_281; lean_object* x_282; lean_object* x_283; +x_268 = lean_ctor_get_uint8(x_254, 0); +x_269 = lean_ctor_get_uint8(x_254, 1); +x_270 = lean_ctor_get_uint8(x_254, 2); +x_271 = lean_ctor_get_uint8(x_254, 3); +x_272 = lean_ctor_get_uint8(x_254, 4); +x_273 = lean_ctor_get_uint8(x_254, 6); +x_274 = lean_ctor_get_uint8(x_254, 7); +x_275 = lean_ctor_get_uint8(x_254, 8); +x_276 = lean_ctor_get_uint8(x_254, 9); +x_277 = lean_ctor_get_uint8(x_254, 10); +x_278 = lean_ctor_get_uint8(x_254, 11); +x_279 = lean_ctor_get_uint8(x_254, 12); +x_280 = lean_ctor_get_uint8(x_254, 13); +lean_dec(x_254); +x_281 = 1; +x_282 = lean_alloc_ctor(0, 0, 14); +lean_ctor_set_uint8(x_282, 0, x_268); +lean_ctor_set_uint8(x_282, 1, x_269); +lean_ctor_set_uint8(x_282, 2, x_270); +lean_ctor_set_uint8(x_282, 3, x_271); +lean_ctor_set_uint8(x_282, 4, x_272); +lean_ctor_set_uint8(x_282, 5, x_281); +lean_ctor_set_uint8(x_282, 6, x_273); +lean_ctor_set_uint8(x_282, 7, x_274); +lean_ctor_set_uint8(x_282, 8, x_275); +lean_ctor_set_uint8(x_282, 9, x_276); +lean_ctor_set_uint8(x_282, 10, x_277); +lean_ctor_set_uint8(x_282, 11, x_278); +lean_ctor_set_uint8(x_282, 12, x_279); +lean_ctor_set_uint8(x_282, 13, x_280); +lean_ctor_set(x_9, 0, x_282); +lean_inc(x_12); +x_283 = l_Lean_Meta_mkImpDepCongrCtx(x_255, x_103, x_9, x_10, x_11, x_12, x_256); +if (lean_obj_tag(x_283) == 0) +{ +lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; +x_284 = lean_ctor_get(x_283, 0); lean_inc(x_284); -lean_dec(x_282); -lean_ctor_set(x_85, 0, x_283); -x_285 = lean_unsigned_to_nat(0u); -x_286 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_286, 0, x_250); -lean_ctor_set(x_286, 1, x_85); -lean_ctor_set(x_286, 2, x_285); -x_27 = x_286; -x_28 = x_284; -goto block_48; +x_285 = lean_ctor_get(x_283, 1); +lean_inc(x_285); +lean_dec(x_283); +lean_ctor_set(x_87, 0, x_284); +x_286 = lean_unsigned_to_nat(0u); +x_287 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_287, 0, x_251); +lean_ctor_set(x_287, 1, x_87); +lean_ctor_set(x_287, 2, x_286); +x_27 = x_287; +x_28 = x_285; +goto block_49; } else { -lean_object* x_287; lean_object* x_288; -lean_dec(x_250); -lean_free_object(x_85); -x_287 = lean_ctor_get(x_282, 0); -lean_inc(x_287); -x_288 = lean_ctor_get(x_282, 1); +lean_object* x_288; lean_object* x_289; +lean_dec(x_251); +lean_free_object(x_87); +x_288 = lean_ctor_get(x_283, 0); lean_inc(x_288); -lean_dec(x_282); -x_49 = x_287; +x_289 = lean_ctor_get(x_283, 1); +lean_inc(x_289); +lean_dec(x_283); x_50 = x_288; -goto block_70; +x_51 = x_289; +goto block_72; } } } else { -lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; uint8_t x_294; uint8_t x_295; uint8_t x_296; uint8_t x_297; uint8_t x_298; uint8_t x_299; uint8_t x_300; uint8_t x_301; uint8_t x_302; uint8_t x_303; uint8_t x_304; uint8_t x_305; uint8_t x_306; lean_object* x_307; uint8_t x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; -x_289 = lean_ctor_get(x_9, 1); -x_290 = lean_ctor_get(x_9, 2); -x_291 = lean_ctor_get(x_9, 3); -x_292 = lean_ctor_get(x_9, 4); -x_293 = lean_ctor_get(x_9, 5); +lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; uint8_t x_295; uint8_t x_296; uint8_t x_297; uint8_t x_298; uint8_t x_299; uint8_t x_300; uint8_t x_301; uint8_t x_302; uint8_t x_303; uint8_t x_304; uint8_t x_305; uint8_t x_306; uint8_t x_307; lean_object* x_308; uint8_t x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; +x_290 = lean_ctor_get(x_9, 1); +x_291 = lean_ctor_get(x_9, 2); +x_292 = lean_ctor_get(x_9, 3); +x_293 = lean_ctor_get(x_9, 4); +x_294 = lean_ctor_get(x_9, 5); +lean_inc(x_294); lean_inc(x_293); lean_inc(x_292); lean_inc(x_291); lean_inc(x_290); -lean_inc(x_289); lean_dec(x_9); -x_294 = lean_ctor_get_uint8(x_253, 0); -x_295 = lean_ctor_get_uint8(x_253, 1); -x_296 = lean_ctor_get_uint8(x_253, 2); -x_297 = lean_ctor_get_uint8(x_253, 3); -x_298 = lean_ctor_get_uint8(x_253, 4); -x_299 = lean_ctor_get_uint8(x_253, 6); -x_300 = lean_ctor_get_uint8(x_253, 7); -x_301 = lean_ctor_get_uint8(x_253, 8); -x_302 = lean_ctor_get_uint8(x_253, 9); -x_303 = lean_ctor_get_uint8(x_253, 10); -x_304 = lean_ctor_get_uint8(x_253, 11); -x_305 = lean_ctor_get_uint8(x_253, 12); -x_306 = lean_ctor_get_uint8(x_253, 13); -if (lean_is_exclusive(x_253)) { - x_307 = x_253; +x_295 = lean_ctor_get_uint8(x_254, 0); +x_296 = lean_ctor_get_uint8(x_254, 1); +x_297 = lean_ctor_get_uint8(x_254, 2); +x_298 = lean_ctor_get_uint8(x_254, 3); +x_299 = lean_ctor_get_uint8(x_254, 4); +x_300 = lean_ctor_get_uint8(x_254, 6); +x_301 = lean_ctor_get_uint8(x_254, 7); +x_302 = lean_ctor_get_uint8(x_254, 8); +x_303 = lean_ctor_get_uint8(x_254, 9); +x_304 = lean_ctor_get_uint8(x_254, 10); +x_305 = lean_ctor_get_uint8(x_254, 11); +x_306 = lean_ctor_get_uint8(x_254, 12); +x_307 = lean_ctor_get_uint8(x_254, 13); +if (lean_is_exclusive(x_254)) { + x_308 = x_254; } else { - lean_dec_ref(x_253); - x_307 = lean_box(0); + lean_dec_ref(x_254); + x_308 = lean_box(0); } -x_308 = 1; -if (lean_is_scalar(x_307)) { - x_309 = lean_alloc_ctor(0, 0, 14); +x_309 = 1; +if (lean_is_scalar(x_308)) { + x_310 = lean_alloc_ctor(0, 0, 14); } else { - x_309 = x_307; + x_310 = x_308; } -lean_ctor_set_uint8(x_309, 0, x_294); -lean_ctor_set_uint8(x_309, 1, x_295); -lean_ctor_set_uint8(x_309, 2, x_296); -lean_ctor_set_uint8(x_309, 3, x_297); -lean_ctor_set_uint8(x_309, 4, x_298); -lean_ctor_set_uint8(x_309, 5, x_308); -lean_ctor_set_uint8(x_309, 6, x_299); -lean_ctor_set_uint8(x_309, 7, x_300); -lean_ctor_set_uint8(x_309, 8, x_301); -lean_ctor_set_uint8(x_309, 9, x_302); -lean_ctor_set_uint8(x_309, 10, x_303); -lean_ctor_set_uint8(x_309, 11, x_304); -lean_ctor_set_uint8(x_309, 12, x_305); -lean_ctor_set_uint8(x_309, 13, x_306); -x_310 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_310, 0, x_309); -lean_ctor_set(x_310, 1, x_289); -lean_ctor_set(x_310, 2, x_290); -lean_ctor_set(x_310, 3, x_291); -lean_ctor_set(x_310, 4, x_292); -lean_ctor_set(x_310, 5, x_293); +lean_ctor_set_uint8(x_310, 0, x_295); +lean_ctor_set_uint8(x_310, 1, x_296); +lean_ctor_set_uint8(x_310, 2, x_297); +lean_ctor_set_uint8(x_310, 3, x_298); +lean_ctor_set_uint8(x_310, 4, x_299); +lean_ctor_set_uint8(x_310, 5, x_309); +lean_ctor_set_uint8(x_310, 6, x_300); +lean_ctor_set_uint8(x_310, 7, x_301); +lean_ctor_set_uint8(x_310, 8, x_302); +lean_ctor_set_uint8(x_310, 9, x_303); +lean_ctor_set_uint8(x_310, 10, x_304); +lean_ctor_set_uint8(x_310, 11, x_305); +lean_ctor_set_uint8(x_310, 12, x_306); +lean_ctor_set_uint8(x_310, 13, x_307); +x_311 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_311, 0, x_310); +lean_ctor_set(x_311, 1, x_290); +lean_ctor_set(x_311, 2, x_291); +lean_ctor_set(x_311, 3, x_292); +lean_ctor_set(x_311, 4, x_293); +lean_ctor_set(x_311, 5, x_294); lean_inc(x_12); -x_311 = l_Lean_Meta_mkImpDepCongrCtx(x_254, x_101, x_310, x_10, x_11, x_12, x_255); -if (lean_obj_tag(x_311) == 0) +x_312 = l_Lean_Meta_mkImpDepCongrCtx(x_255, x_103, x_311, x_10, x_11, x_12, x_256); +if (lean_obj_tag(x_312) == 0) { -lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; -x_312 = lean_ctor_get(x_311, 0); -lean_inc(x_312); -x_313 = lean_ctor_get(x_311, 1); +lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; +x_313 = lean_ctor_get(x_312, 0); lean_inc(x_313); -lean_dec(x_311); -lean_ctor_set(x_85, 0, x_312); -x_314 = lean_unsigned_to_nat(0u); -x_315 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_315, 0, x_250); -lean_ctor_set(x_315, 1, x_85); -lean_ctor_set(x_315, 2, x_314); -x_27 = x_315; -x_28 = x_313; -goto block_48; +x_314 = lean_ctor_get(x_312, 1); +lean_inc(x_314); +lean_dec(x_312); +lean_ctor_set(x_87, 0, x_313); +x_315 = lean_unsigned_to_nat(0u); +x_316 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_316, 0, x_251); +lean_ctor_set(x_316, 1, x_87); +lean_ctor_set(x_316, 2, x_315); +x_27 = x_316; +x_28 = x_314; +goto block_49; } else { -lean_object* x_316; lean_object* x_317; -lean_dec(x_250); -lean_free_object(x_85); -x_316 = lean_ctor_get(x_311, 0); -lean_inc(x_316); -x_317 = lean_ctor_get(x_311, 1); +lean_object* x_317; lean_object* x_318; +lean_dec(x_251); +lean_free_object(x_87); +x_317 = lean_ctor_get(x_312, 0); lean_inc(x_317); -lean_dec(x_311); -x_49 = x_316; +x_318 = lean_ctor_get(x_312, 1); +lean_inc(x_318); +lean_dec(x_312); x_50 = x_317; -goto block_70; +x_51 = x_318; +goto block_72; } } } else { -lean_object* x_318; lean_object* x_319; -lean_dec(x_250); -lean_dec(x_101); -lean_free_object(x_85); +lean_object* x_319; lean_object* x_320; +lean_dec(x_251); +lean_dec(x_103); +lean_free_object(x_87); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_318 = lean_ctor_get(x_252, 0); -lean_inc(x_318); -x_319 = lean_ctor_get(x_252, 1); +x_319 = lean_ctor_get(x_253, 0); lean_inc(x_319); -lean_dec(x_252); -x_49 = x_318; +x_320 = lean_ctor_get(x_253, 1); +lean_inc(x_320); +lean_dec(x_253); x_50 = x_319; -goto block_70; +x_51 = x_320; +goto block_72; } } else { -lean_object* x_320; lean_object* x_321; -lean_dec(x_101); -lean_free_object(x_85); +lean_object* x_321; lean_object* x_322; +lean_dec(x_103); +lean_free_object(x_87); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_3); -x_320 = lean_ctor_get(x_249, 0); -lean_inc(x_320); -x_321 = lean_ctor_get(x_249, 1); +x_321 = lean_ctor_get(x_250, 0); lean_inc(x_321); -lean_dec(x_249); -x_49 = x_320; +x_322 = lean_ctor_get(x_250, 1); +lean_inc(x_322); +lean_dec(x_250); x_50 = x_321; -goto block_70; +x_51 = x_322; +goto block_72; } } } else { -lean_object* x_322; lean_object* x_323; -lean_dec(x_96); -lean_free_object(x_85); -lean_dec(x_84); +lean_object* x_323; lean_object* x_324; +lean_dec(x_98); +lean_free_object(x_87); +lean_dec(x_86); +lean_dec(x_17); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_322 = lean_ctor_get(x_100, 0); -lean_inc(x_322); -x_323 = lean_ctor_get(x_100, 1); +x_323 = lean_ctor_get(x_102, 0); lean_inc(x_323); -lean_dec(x_100); -x_49 = x_322; +x_324 = lean_ctor_get(x_102, 1); +lean_inc(x_324); +lean_dec(x_102); x_50 = x_323; -goto block_70; +x_51 = x_324; +goto block_72; } } else { -lean_object* x_324; lean_object* x_325; lean_object* x_326; uint8_t x_327; uint8_t x_328; uint8_t x_329; lean_object* x_330; -x_324 = lean_ctor_get(x_85, 0); -lean_inc(x_324); -lean_dec(x_85); -x_325 = l_Lean_Meta_Simp_simp_simpLet___lambda__1___closed__1; -lean_inc(x_5); -x_326 = lean_array_push(x_325, x_5); -x_327 = 0; -x_328 = 1; +lean_object* x_325; lean_object* x_326; lean_object* x_327; uint8_t x_328; uint8_t x_329; uint8_t x_330; lean_object* x_331; +x_325 = lean_ctor_get(x_87, 0); +lean_inc(x_325); +lean_dec(x_87); +x_326 = l_Lean_Meta_Simp_simp_simpLet___lambda__1___closed__1; +x_327 = lean_array_push(x_326, x_5); +x_328 = 0; x_329 = 1; -lean_inc(x_326); -x_330 = l_Lean_Meta_mkLambdaFVars(x_326, x_324, x_327, x_328, x_329, x_9, x_10, x_11, x_12, x_92); -if (lean_obj_tag(x_330) == 0) +x_330 = 1; +lean_inc(x_327); +x_331 = l_Lean_Meta_mkLambdaFVars(x_327, x_325, x_328, x_329, x_330, x_9, x_10, x_11, x_12, x_94); +if (lean_obj_tag(x_331) == 0) { -lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; uint8_t x_335; -x_331 = lean_ctor_get(x_330, 0); -lean_inc(x_331); -x_332 = lean_ctor_get(x_330, 1); +lean_object* x_332; lean_object* x_333; lean_object* x_334; uint8_t x_335; +x_332 = lean_ctor_get(x_331, 0); lean_inc(x_332); -lean_dec(x_330); -x_333 = lean_ctor_get(x_84, 0); +x_333 = lean_ctor_get(x_331, 1); lean_inc(x_333); -lean_dec(x_84); -x_334 = l_Lean_Expr_fvarId_x21(x_5); -x_335 = l_Lean_Expr_hasAnyFVar_visit___at_Lean_Expr_containsFVar___spec__1(x_334, x_333); -lean_dec(x_334); +lean_dec(x_331); +x_334 = lean_ctor_get(x_86, 0); +lean_inc(x_334); +lean_dec(x_86); +x_335 = l_Lean_Expr_hasAnyFVar_visit___at_Lean_Expr_containsFVar___spec__1(x_17, x_334); +lean_dec(x_17); if (x_335 == 0) { lean_object* x_336; -lean_dec(x_326); +lean_dec(x_327); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_336 = l_Lean_Meta_Simp_Result_getProof(x_3, x_9, x_10, x_11, x_12, x_332); +x_336 = l_Lean_Meta_Simp_Result_getProof(x_3, x_9, x_10, x_11, x_12, x_333); if (lean_obj_tag(x_336) == 0) { lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; uint8_t x_346; uint8_t x_347; uint8_t x_348; uint8_t x_349; uint8_t x_350; uint8_t x_351; uint8_t x_352; uint8_t x_353; uint8_t x_354; uint8_t x_355; uint8_t x_356; uint8_t x_357; uint8_t x_358; lean_object* x_359; uint8_t x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; @@ -19999,7 +20058,7 @@ lean_ctor_set(x_362, 3, x_342); lean_ctor_set(x_362, 4, x_343); lean_ctor_set(x_362, 5, x_344); lean_inc(x_12); -x_363 = l_Lean_Meta_mkImpCongrCtx(x_338, x_331, x_362, x_10, x_11, x_12, x_339); +x_363 = l_Lean_Meta_mkImpCongrCtx(x_338, x_332, x_362, x_10, x_11, x_12, x_339); if (lean_obj_tag(x_363) == 0) { lean_object* x_364; lean_object* x_365; lean_object* x_366; @@ -20034,7 +20093,7 @@ if (x_374 == 0) lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_dec(x_371); lean_dec(x_369); -x_375 = l_Lean_Expr_forallE___override(x_367, x_4, x_333, x_370); +x_375 = l_Lean_Expr_forallE___override(x_367, x_4, x_334, x_370); x_376 = lean_unsigned_to_nat(0u); x_377 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_377, 0, x_375); @@ -20042,20 +20101,20 @@ lean_ctor_set(x_377, 1, x_366); lean_ctor_set(x_377, 2, x_376); x_27 = x_377; x_28 = x_365; -goto block_48; +goto block_49; } else { size_t x_378; size_t x_379; uint8_t x_380; x_378 = lean_ptr_addr(x_369); lean_dec(x_369); -x_379 = lean_ptr_addr(x_333); +x_379 = lean_ptr_addr(x_334); x_380 = lean_usize_dec_eq(x_378, x_379); if (x_380 == 0) { lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_dec(x_371); -x_381 = l_Lean_Expr_forallE___override(x_367, x_4, x_333, x_370); +x_381 = l_Lean_Expr_forallE___override(x_367, x_4, x_334, x_370); x_382 = lean_unsigned_to_nat(0u); x_383 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_383, 0, x_381); @@ -20063,7 +20122,7 @@ lean_ctor_set(x_383, 1, x_366); lean_ctor_set(x_383, 2, x_382); x_27 = x_383; x_28 = x_365; -goto block_48; +goto block_49; } else { @@ -20073,7 +20132,7 @@ if (x_384 == 0) { lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_dec(x_371); -x_385 = l_Lean_Expr_forallE___override(x_367, x_4, x_333, x_370); +x_385 = l_Lean_Expr_forallE___override(x_367, x_4, x_334, x_370); x_386 = lean_unsigned_to_nat(0u); x_387 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_387, 0, x_385); @@ -20081,13 +20140,13 @@ lean_ctor_set(x_387, 1, x_366); lean_ctor_set(x_387, 2, x_386); x_27 = x_387; x_28 = x_365; -goto block_48; +goto block_49; } else { lean_object* x_388; lean_object* x_389; lean_dec(x_367); -lean_dec(x_333); +lean_dec(x_334); lean_dec(x_4); x_388 = lean_unsigned_to_nat(0u); x_389 = lean_alloc_ctor(0, 3, 0); @@ -20096,7 +20155,7 @@ lean_ctor_set(x_389, 1, x_366); lean_ctor_set(x_389, 2, x_388); x_27 = x_389; x_28 = x_365; -goto block_48; +goto block_49; } } } @@ -20104,7 +20163,7 @@ goto block_48; else { lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; -lean_dec(x_333); +lean_dec(x_334); lean_dec(x_4); lean_dec(x_2); x_390 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkImpCongr___closed__4; @@ -20116,13 +20175,13 @@ lean_ctor_set(x_393, 1, x_366); lean_ctor_set(x_393, 2, x_392); x_27 = x_393; x_28 = x_365; -goto block_48; +goto block_49; } } else { lean_object* x_394; lean_object* x_395; -lean_dec(x_333); +lean_dec(x_334); lean_dec(x_4); lean_dec(x_2); x_394 = lean_ctor_get(x_363, 0); @@ -20130,16 +20189,16 @@ lean_inc(x_394); x_395 = lean_ctor_get(x_363, 1); lean_inc(x_395); lean_dec(x_363); -x_49 = x_394; -x_50 = x_395; -goto block_70; +x_50 = x_394; +x_51 = x_395; +goto block_72; } } else { lean_object* x_396; lean_object* x_397; -lean_dec(x_333); -lean_dec(x_331); +lean_dec(x_334); +lean_dec(x_332); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -20150,9 +20209,9 @@ lean_inc(x_396); x_397 = lean_ctor_get(x_336, 1); lean_inc(x_397); lean_dec(x_336); -x_49 = x_396; -x_50 = x_397; -goto block_70; +x_50 = x_396; +x_51 = x_397; +goto block_72; } } else @@ -20160,7 +20219,7 @@ else lean_object* x_398; lean_dec(x_4); lean_dec(x_2); -x_398 = l_Lean_Meta_mkForallFVars(x_326, x_333, x_327, x_328, x_329, x_9, x_10, x_11, x_12, x_332); +x_398 = l_Lean_Meta_mkForallFVars(x_327, x_334, x_328, x_329, x_330, x_9, x_10, x_11, x_12, x_333); if (lean_obj_tag(x_398) == 0) { lean_object* x_399; lean_object* x_400; lean_object* x_401; @@ -20257,7 +20316,7 @@ lean_ctor_set(x_427, 3, x_407); lean_ctor_set(x_427, 4, x_408); lean_ctor_set(x_427, 5, x_409); lean_inc(x_12); -x_428 = l_Lean_Meta_mkImpDepCongrCtx(x_403, x_331, x_427, x_10, x_11, x_12, x_404); +x_428 = l_Lean_Meta_mkImpDepCongrCtx(x_403, x_332, x_427, x_10, x_11, x_12, x_404); if (lean_obj_tag(x_428) == 0) { lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; @@ -20275,7 +20334,7 @@ lean_ctor_set(x_433, 1, x_431); lean_ctor_set(x_433, 2, x_432); x_27 = x_433; x_28 = x_430; -goto block_48; +goto block_49; } else { @@ -20286,16 +20345,16 @@ lean_inc(x_434); x_435 = lean_ctor_get(x_428, 1); lean_inc(x_435); lean_dec(x_428); -x_49 = x_434; -x_50 = x_435; -goto block_70; +x_50 = x_434; +x_51 = x_435; +goto block_72; } } else { lean_object* x_436; lean_object* x_437; lean_dec(x_399); -lean_dec(x_331); +lean_dec(x_332); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -20304,15 +20363,15 @@ lean_inc(x_436); x_437 = lean_ctor_get(x_401, 1); lean_inc(x_437); lean_dec(x_401); -x_49 = x_436; -x_50 = x_437; -goto block_70; +x_50 = x_436; +x_51 = x_437; +goto block_72; } } else { lean_object* x_438; lean_object* x_439; -lean_dec(x_331); +lean_dec(x_332); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -20322,32 +20381,32 @@ lean_inc(x_438); x_439 = lean_ctor_get(x_398, 1); lean_inc(x_439); lean_dec(x_398); -x_49 = x_438; -x_50 = x_439; -goto block_70; +x_50 = x_438; +x_51 = x_439; +goto block_72; } } } else { lean_object* x_440; lean_object* x_441; -lean_dec(x_326); -lean_dec(x_84); +lean_dec(x_327); +lean_dec(x_86); +lean_dec(x_17); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_440 = lean_ctor_get(x_330, 0); +x_440 = lean_ctor_get(x_331, 0); lean_inc(x_440); -x_441 = lean_ctor_get(x_330, 1); +x_441 = lean_ctor_get(x_331, 1); lean_inc(x_441); -lean_dec(x_330); -x_49 = x_440; -x_50 = x_441; -goto block_70; +lean_dec(x_331); +x_50 = x_440; +x_51 = x_441; +goto block_72; } } } @@ -20355,6 +20414,7 @@ goto block_70; else { lean_object* x_442; lean_object* x_443; +lean_dec(x_17); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -20362,128 +20422,130 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_442 = lean_ctor_get(x_83, 0); +x_442 = lean_ctor_get(x_85, 0); lean_inc(x_442); -x_443 = lean_ctor_get(x_83, 1); +x_443 = lean_ctor_get(x_85, 1); lean_inc(x_443); -lean_dec(x_83); -x_49 = x_442; -x_50 = x_443; -goto block_70; +lean_dec(x_85); +x_50 = x_442; +x_51 = x_443; +goto block_72; } } else { -lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; +lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; x_444 = lean_ctor_get(x_7, 0); x_445 = lean_ctor_get(x_7, 2); x_446 = lean_ctor_get(x_7, 3); x_447 = lean_ctor_get(x_7, 4); +x_448 = lean_ctor_get(x_7, 5); +lean_inc(x_448); lean_inc(x_447); lean_inc(x_446); lean_inc(x_445); lean_inc(x_444); lean_dec(x_7); -x_448 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_448, 0, x_444); -lean_ctor_set(x_448, 1, x_19); -lean_ctor_set(x_448, 2, x_445); -lean_ctor_set(x_448, 3, x_446); -lean_ctor_set(x_448, 4, x_447); +x_449 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_449, 0, x_444); +lean_ctor_set(x_449, 1, x_19); +lean_ctor_set(x_449, 2, x_445); +lean_ctor_set(x_449, 3, x_446); +lean_ctor_set(x_449, 4, x_447); +lean_ctor_set(x_449, 5, x_448); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_449 = l_Lean_Meta_Simp_simp(x_1, x_6, x_448, x_8, x_9, x_10, x_11, x_12, x_80); -if (lean_obj_tag(x_449) == 0) +x_450 = l_Lean_Meta_Simp_simp(x_1, x_6, x_449, x_8, x_9, x_10, x_11, x_12, x_82); +if (lean_obj_tag(x_450) == 0) { -lean_object* x_450; lean_object* x_451; -x_450 = lean_ctor_get(x_449, 0); -lean_inc(x_450); -x_451 = lean_ctor_get(x_450, 1); +lean_object* x_451; lean_object* x_452; +x_451 = lean_ctor_get(x_450, 0); lean_inc(x_451); -if (lean_obj_tag(x_451) == 0) +x_452 = lean_ctor_get(x_451, 1); +lean_inc(x_452); +if (lean_obj_tag(x_452) == 0) { -lean_object* x_452; lean_object* x_453; +lean_object* x_453; lean_object* x_454; +lean_dec(x_17); lean_dec(x_5); lean_dec(x_4); -x_452 = lean_ctor_get(x_449, 1); -lean_inc(x_452); -lean_dec(x_449); -lean_inc(x_12); -x_453 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkImpCongr(x_2, x_3, x_450, x_9, x_10, x_11, x_12, x_452); -if (lean_obj_tag(x_453) == 0) -{ -lean_object* x_454; lean_object* x_455; -x_454 = lean_ctor_get(x_453, 0); -lean_inc(x_454); -x_455 = lean_ctor_get(x_453, 1); -lean_inc(x_455); -lean_dec(x_453); -x_27 = x_454; -x_28 = x_455; -goto block_48; -} -else -{ -lean_object* x_456; lean_object* x_457; -x_456 = lean_ctor_get(x_453, 0); -lean_inc(x_456); -x_457 = lean_ctor_get(x_453, 1); -lean_inc(x_457); -lean_dec(x_453); -x_49 = x_456; -x_50 = x_457; -goto block_70; -} -} -else -{ -lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; uint8_t x_463; uint8_t x_464; uint8_t x_465; lean_object* x_466; -x_458 = lean_ctor_get(x_449, 1); -lean_inc(x_458); -lean_dec(x_449); -x_459 = lean_ctor_get(x_451, 0); -lean_inc(x_459); -if (lean_is_exclusive(x_451)) { - lean_ctor_release(x_451, 0); - x_460 = x_451; -} else { - lean_dec_ref(x_451); - x_460 = lean_box(0); -} -x_461 = l_Lean_Meta_Simp_simp_simpLet___lambda__1___closed__1; -lean_inc(x_5); -x_462 = lean_array_push(x_461, x_5); -x_463 = 0; -x_464 = 1; -x_465 = 1; -lean_inc(x_462); -x_466 = l_Lean_Meta_mkLambdaFVars(x_462, x_459, x_463, x_464, x_465, x_9, x_10, x_11, x_12, x_458); -if (lean_obj_tag(x_466) == 0) -{ -lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; uint8_t x_471; -x_467 = lean_ctor_get(x_466, 0); -lean_inc(x_467); -x_468 = lean_ctor_get(x_466, 1); -lean_inc(x_468); -lean_dec(x_466); -x_469 = lean_ctor_get(x_450, 0); -lean_inc(x_469); +x_453 = lean_ctor_get(x_450, 1); +lean_inc(x_453); lean_dec(x_450); -x_470 = l_Lean_Expr_fvarId_x21(x_5); -x_471 = l_Lean_Expr_hasAnyFVar_visit___at_Lean_Expr_containsFVar___spec__1(x_470, x_469); -lean_dec(x_470); +lean_inc(x_12); +x_454 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkImpCongr(x_2, x_3, x_451, x_9, x_10, x_11, x_12, x_453); +if (lean_obj_tag(x_454) == 0) +{ +lean_object* x_455; lean_object* x_456; +x_455 = lean_ctor_get(x_454, 0); +lean_inc(x_455); +x_456 = lean_ctor_get(x_454, 1); +lean_inc(x_456); +lean_dec(x_454); +x_27 = x_455; +x_28 = x_456; +goto block_49; +} +else +{ +lean_object* x_457; lean_object* x_458; +x_457 = lean_ctor_get(x_454, 0); +lean_inc(x_457); +x_458 = lean_ctor_get(x_454, 1); +lean_inc(x_458); +lean_dec(x_454); +x_50 = x_457; +x_51 = x_458; +goto block_72; +} +} +else +{ +lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; uint8_t x_464; uint8_t x_465; uint8_t x_466; lean_object* x_467; +x_459 = lean_ctor_get(x_450, 1); +lean_inc(x_459); +lean_dec(x_450); +x_460 = lean_ctor_get(x_452, 0); +lean_inc(x_460); +if (lean_is_exclusive(x_452)) { + lean_ctor_release(x_452, 0); + x_461 = x_452; +} else { + lean_dec_ref(x_452); + x_461 = lean_box(0); +} +x_462 = l_Lean_Meta_Simp_simp_simpLet___lambda__1___closed__1; +x_463 = lean_array_push(x_462, x_5); +x_464 = 0; +x_465 = 1; +x_466 = 1; +lean_inc(x_463); +x_467 = l_Lean_Meta_mkLambdaFVars(x_463, x_460, x_464, x_465, x_466, x_9, x_10, x_11, x_12, x_459); +if (lean_obj_tag(x_467) == 0) +{ +lean_object* x_468; lean_object* x_469; lean_object* x_470; uint8_t x_471; +x_468 = lean_ctor_get(x_467, 0); +lean_inc(x_468); +x_469 = lean_ctor_get(x_467, 1); +lean_inc(x_469); +lean_dec(x_467); +x_470 = lean_ctor_get(x_451, 0); +lean_inc(x_470); +lean_dec(x_451); +x_471 = l_Lean_Expr_hasAnyFVar_visit___at_Lean_Expr_containsFVar___spec__1(x_17, x_470); +lean_dec(x_17); if (x_471 == 0) { lean_object* x_472; -lean_dec(x_462); +lean_dec(x_463); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_472 = l_Lean_Meta_Simp_Result_getProof(x_3, x_9, x_10, x_11, x_12, x_468); +x_472 = l_Lean_Meta_Simp_Result_getProof(x_3, x_9, x_10, x_11, x_12, x_469); if (lean_obj_tag(x_472) == 0) { lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; uint8_t x_482; uint8_t x_483; uint8_t x_484; uint8_t x_485; uint8_t x_486; uint8_t x_487; uint8_t x_488; uint8_t x_489; uint8_t x_490; uint8_t x_491; uint8_t x_492; uint8_t x_493; uint8_t x_494; lean_object* x_495; uint8_t x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; @@ -20567,7 +20629,7 @@ lean_ctor_set(x_498, 3, x_478); lean_ctor_set(x_498, 4, x_479); lean_ctor_set(x_498, 5, x_480); lean_inc(x_12); -x_499 = l_Lean_Meta_mkImpCongrCtx(x_474, x_467, x_498, x_10, x_11, x_12, x_475); +x_499 = l_Lean_Meta_mkImpCongrCtx(x_474, x_468, x_498, x_10, x_11, x_12, x_475); if (lean_obj_tag(x_499) == 0) { lean_object* x_500; lean_object* x_501; lean_object* x_502; @@ -20576,10 +20638,10 @@ lean_inc(x_500); x_501 = lean_ctor_get(x_499, 1); lean_inc(x_501); lean_dec(x_499); -if (lean_is_scalar(x_460)) { +if (lean_is_scalar(x_461)) { x_502 = lean_alloc_ctor(1, 1, 0); } else { - x_502 = x_460; + x_502 = x_461; } lean_ctor_set(x_502, 0, x_500); if (lean_obj_tag(x_2) == 7) @@ -20606,7 +20668,7 @@ if (x_510 == 0) lean_object* x_511; lean_object* x_512; lean_object* x_513; lean_dec(x_507); lean_dec(x_505); -x_511 = l_Lean_Expr_forallE___override(x_503, x_4, x_469, x_506); +x_511 = l_Lean_Expr_forallE___override(x_503, x_4, x_470, x_506); x_512 = lean_unsigned_to_nat(0u); x_513 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_513, 0, x_511); @@ -20614,20 +20676,20 @@ lean_ctor_set(x_513, 1, x_502); lean_ctor_set(x_513, 2, x_512); x_27 = x_513; x_28 = x_501; -goto block_48; +goto block_49; } else { size_t x_514; size_t x_515; uint8_t x_516; x_514 = lean_ptr_addr(x_505); lean_dec(x_505); -x_515 = lean_ptr_addr(x_469); +x_515 = lean_ptr_addr(x_470); x_516 = lean_usize_dec_eq(x_514, x_515); if (x_516 == 0) { lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_dec(x_507); -x_517 = l_Lean_Expr_forallE___override(x_503, x_4, x_469, x_506); +x_517 = l_Lean_Expr_forallE___override(x_503, x_4, x_470, x_506); x_518 = lean_unsigned_to_nat(0u); x_519 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_519, 0, x_517); @@ -20635,7 +20697,7 @@ lean_ctor_set(x_519, 1, x_502); lean_ctor_set(x_519, 2, x_518); x_27 = x_519; x_28 = x_501; -goto block_48; +goto block_49; } else { @@ -20645,7 +20707,7 @@ if (x_520 == 0) { lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_dec(x_507); -x_521 = l_Lean_Expr_forallE___override(x_503, x_4, x_469, x_506); +x_521 = l_Lean_Expr_forallE___override(x_503, x_4, x_470, x_506); x_522 = lean_unsigned_to_nat(0u); x_523 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_523, 0, x_521); @@ -20653,13 +20715,13 @@ lean_ctor_set(x_523, 1, x_502); lean_ctor_set(x_523, 2, x_522); x_27 = x_523; x_28 = x_501; -goto block_48; +goto block_49; } else { lean_object* x_524; lean_object* x_525; lean_dec(x_503); -lean_dec(x_469); +lean_dec(x_470); lean_dec(x_4); x_524 = lean_unsigned_to_nat(0u); x_525 = lean_alloc_ctor(0, 3, 0); @@ -20668,7 +20730,7 @@ lean_ctor_set(x_525, 1, x_502); lean_ctor_set(x_525, 2, x_524); x_27 = x_525; x_28 = x_501; -goto block_48; +goto block_49; } } } @@ -20676,7 +20738,7 @@ goto block_48; else { lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; -lean_dec(x_469); +lean_dec(x_470); lean_dec(x_4); lean_dec(x_2); x_526 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkImpCongr___closed__4; @@ -20688,14 +20750,14 @@ lean_ctor_set(x_529, 1, x_502); lean_ctor_set(x_529, 2, x_528); x_27 = x_529; x_28 = x_501; -goto block_48; +goto block_49; } } else { lean_object* x_530; lean_object* x_531; -lean_dec(x_469); -lean_dec(x_460); +lean_dec(x_470); +lean_dec(x_461); lean_dec(x_4); lean_dec(x_2); x_530 = lean_ctor_get(x_499, 0); @@ -20703,17 +20765,17 @@ lean_inc(x_530); x_531 = lean_ctor_get(x_499, 1); lean_inc(x_531); lean_dec(x_499); -x_49 = x_530; -x_50 = x_531; -goto block_70; +x_50 = x_530; +x_51 = x_531; +goto block_72; } } else { lean_object* x_532; lean_object* x_533; -lean_dec(x_469); -lean_dec(x_467); -lean_dec(x_460); +lean_dec(x_470); +lean_dec(x_468); +lean_dec(x_461); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -20724,9 +20786,9 @@ lean_inc(x_532); x_533 = lean_ctor_get(x_472, 1); lean_inc(x_533); lean_dec(x_472); -x_49 = x_532; -x_50 = x_533; -goto block_70; +x_50 = x_532; +x_51 = x_533; +goto block_72; } } else @@ -20734,7 +20796,7 @@ else lean_object* x_534; lean_dec(x_4); lean_dec(x_2); -x_534 = l_Lean_Meta_mkForallFVars(x_462, x_469, x_463, x_464, x_465, x_9, x_10, x_11, x_12, x_468); +x_534 = l_Lean_Meta_mkForallFVars(x_463, x_470, x_464, x_465, x_466, x_9, x_10, x_11, x_12, x_469); if (lean_obj_tag(x_534) == 0) { lean_object* x_535; lean_object* x_536; lean_object* x_537; @@ -20831,7 +20893,7 @@ lean_ctor_set(x_563, 3, x_543); lean_ctor_set(x_563, 4, x_544); lean_ctor_set(x_563, 5, x_545); lean_inc(x_12); -x_564 = l_Lean_Meta_mkImpDepCongrCtx(x_539, x_467, x_563, x_10, x_11, x_12, x_540); +x_564 = l_Lean_Meta_mkImpDepCongrCtx(x_539, x_468, x_563, x_10, x_11, x_12, x_540); if (lean_obj_tag(x_564) == 0) { lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; @@ -20840,10 +20902,10 @@ lean_inc(x_565); x_566 = lean_ctor_get(x_564, 1); lean_inc(x_566); lean_dec(x_564); -if (lean_is_scalar(x_460)) { +if (lean_is_scalar(x_461)) { x_567 = lean_alloc_ctor(1, 1, 0); } else { - x_567 = x_460; + x_567 = x_461; } lean_ctor_set(x_567, 0, x_565); x_568 = lean_unsigned_to_nat(0u); @@ -20853,29 +20915,29 @@ lean_ctor_set(x_569, 1, x_567); lean_ctor_set(x_569, 2, x_568); x_27 = x_569; x_28 = x_566; -goto block_48; +goto block_49; } else { lean_object* x_570; lean_object* x_571; lean_dec(x_535); -lean_dec(x_460); +lean_dec(x_461); x_570 = lean_ctor_get(x_564, 0); lean_inc(x_570); x_571 = lean_ctor_get(x_564, 1); lean_inc(x_571); lean_dec(x_564); -x_49 = x_570; -x_50 = x_571; -goto block_70; +x_50 = x_570; +x_51 = x_571; +goto block_72; } } else { lean_object* x_572; lean_object* x_573; lean_dec(x_535); -lean_dec(x_467); -lean_dec(x_460); +lean_dec(x_468); +lean_dec(x_461); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -20884,16 +20946,16 @@ lean_inc(x_572); x_573 = lean_ctor_get(x_537, 1); lean_inc(x_573); lean_dec(x_537); -x_49 = x_572; -x_50 = x_573; -goto block_70; +x_50 = x_572; +x_51 = x_573; +goto block_72; } } else { lean_object* x_574; lean_object* x_575; -lean_dec(x_467); -lean_dec(x_460); +lean_dec(x_468); +lean_dec(x_461); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -20903,39 +20965,40 @@ lean_inc(x_574); x_575 = lean_ctor_get(x_534, 1); lean_inc(x_575); lean_dec(x_534); -x_49 = x_574; -x_50 = x_575; -goto block_70; +x_50 = x_574; +x_51 = x_575; +goto block_72; } } } else { lean_object* x_576; lean_object* x_577; -lean_dec(x_462); -lean_dec(x_460); -lean_dec(x_450); +lean_dec(x_463); +lean_dec(x_461); +lean_dec(x_451); +lean_dec(x_17); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_576 = lean_ctor_get(x_466, 0); +x_576 = lean_ctor_get(x_467, 0); lean_inc(x_576); -x_577 = lean_ctor_get(x_466, 1); +x_577 = lean_ctor_get(x_467, 1); lean_inc(x_577); -lean_dec(x_466); -x_49 = x_576; -x_50 = x_577; -goto block_70; +lean_dec(x_467); +x_50 = x_576; +x_51 = x_577; +goto block_72; } } } else { lean_object* x_578; lean_object* x_579; +lean_dec(x_17); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -20943,177 +21006,183 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_578 = lean_ctor_get(x_449, 0); +x_578 = lean_ctor_get(x_450, 0); lean_inc(x_578); -x_579 = lean_ctor_get(x_449, 1); +x_579 = lean_ctor_get(x_450, 1); lean_inc(x_579); -lean_dec(x_449); -x_49 = x_578; -x_50 = x_579; -goto block_70; +lean_dec(x_450); +x_50 = x_578; +x_51 = x_579; +goto block_72; } } } else { -lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; -x_580 = lean_ctor_get(x_74, 1); -x_581 = lean_ctor_get(x_74, 2); +lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; +x_580 = lean_ctor_get(x_76, 1); +x_581 = lean_ctor_get(x_76, 2); +x_582 = lean_ctor_get(x_76, 3); +lean_inc(x_582); lean_inc(x_581); lean_inc(x_580); -lean_dec(x_74); -x_582 = l_Lean_Meta_transform___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__1___closed__1; -x_583 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_583, 0, x_582); -lean_ctor_set(x_583, 1, x_580); -lean_ctor_set(x_583, 2, x_581); -x_584 = lean_st_ref_set(x_8, x_583, x_75); -x_585 = lean_ctor_get(x_584, 1); -lean_inc(x_585); -lean_dec(x_584); -x_586 = lean_ctor_get(x_7, 0); +lean_dec(x_76); +x_583 = l_Lean_Meta_transform___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__1___closed__1; +x_584 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_584, 0, x_583); +lean_ctor_set(x_584, 1, x_580); +lean_ctor_set(x_584, 2, x_581); +lean_ctor_set(x_584, 3, x_582); +x_585 = lean_st_ref_set(x_8, x_584, x_77); +x_586 = lean_ctor_get(x_585, 1); lean_inc(x_586); -x_587 = lean_ctor_get(x_7, 2); +lean_dec(x_585); +x_587 = lean_ctor_get(x_7, 0); lean_inc(x_587); -x_588 = lean_ctor_get(x_7, 3); +x_588 = lean_ctor_get(x_7, 2); lean_inc(x_588); -x_589 = lean_ctor_get(x_7, 4); +x_589 = lean_ctor_get(x_7, 3); lean_inc(x_589); +x_590 = lean_ctor_get(x_7, 4); +lean_inc(x_590); +x_591 = lean_ctor_get(x_7, 5); +lean_inc(x_591); if (lean_is_exclusive(x_7)) { lean_ctor_release(x_7, 0); lean_ctor_release(x_7, 1); lean_ctor_release(x_7, 2); lean_ctor_release(x_7, 3); lean_ctor_release(x_7, 4); - x_590 = x_7; + lean_ctor_release(x_7, 5); + x_592 = x_7; } else { lean_dec_ref(x_7); - x_590 = lean_box(0); + x_592 = lean_box(0); } -if (lean_is_scalar(x_590)) { - x_591 = lean_alloc_ctor(0, 5, 0); +if (lean_is_scalar(x_592)) { + x_593 = lean_alloc_ctor(0, 6, 0); } else { - x_591 = x_590; + x_593 = x_592; } -lean_ctor_set(x_591, 0, x_586); -lean_ctor_set(x_591, 1, x_19); -lean_ctor_set(x_591, 2, x_587); -lean_ctor_set(x_591, 3, x_588); -lean_ctor_set(x_591, 4, x_589); +lean_ctor_set(x_593, 0, x_587); +lean_ctor_set(x_593, 1, x_19); +lean_ctor_set(x_593, 2, x_588); +lean_ctor_set(x_593, 3, x_589); +lean_ctor_set(x_593, 4, x_590); +lean_ctor_set(x_593, 5, x_591); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_592 = l_Lean_Meta_Simp_simp(x_1, x_6, x_591, x_8, x_9, x_10, x_11, x_12, x_585); -if (lean_obj_tag(x_592) == 0) -{ -lean_object* x_593; lean_object* x_594; -x_593 = lean_ctor_get(x_592, 0); -lean_inc(x_593); -x_594 = lean_ctor_get(x_593, 1); -lean_inc(x_594); +x_594 = l_Lean_Meta_Simp_simp(x_1, x_6, x_593, x_8, x_9, x_10, x_11, x_12, x_586); if (lean_obj_tag(x_594) == 0) { lean_object* x_595; lean_object* x_596; -lean_dec(x_5); -lean_dec(x_4); -x_595 = lean_ctor_get(x_592, 1); +x_595 = lean_ctor_get(x_594, 0); lean_inc(x_595); -lean_dec(x_592); -lean_inc(x_12); -x_596 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkImpCongr(x_2, x_3, x_593, x_9, x_10, x_11, x_12, x_595); +x_596 = lean_ctor_get(x_595, 1); +lean_inc(x_596); if (lean_obj_tag(x_596) == 0) { lean_object* x_597; lean_object* x_598; -x_597 = lean_ctor_get(x_596, 0); +lean_dec(x_17); +lean_dec(x_5); +lean_dec(x_4); +x_597 = lean_ctor_get(x_594, 1); lean_inc(x_597); -x_598 = lean_ctor_get(x_596, 1); -lean_inc(x_598); -lean_dec(x_596); -x_27 = x_597; -x_28 = x_598; -goto block_48; -} -else +lean_dec(x_594); +lean_inc(x_12); +x_598 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkImpCongr(x_2, x_3, x_595, x_9, x_10, x_11, x_12, x_597); +if (lean_obj_tag(x_598) == 0) { lean_object* x_599; lean_object* x_600; -x_599 = lean_ctor_get(x_596, 0); +x_599 = lean_ctor_get(x_598, 0); lean_inc(x_599); -x_600 = lean_ctor_get(x_596, 1); +x_600 = lean_ctor_get(x_598, 1); lean_inc(x_600); -lean_dec(x_596); -x_49 = x_599; -x_50 = x_600; -goto block_70; +lean_dec(x_598); +x_27 = x_599; +x_28 = x_600; +goto block_49; +} +else +{ +lean_object* x_601; lean_object* x_602; +x_601 = lean_ctor_get(x_598, 0); +lean_inc(x_601); +x_602 = lean_ctor_get(x_598, 1); +lean_inc(x_602); +lean_dec(x_598); +x_50 = x_601; +x_51 = x_602; +goto block_72; } } else { -lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; uint8_t x_606; uint8_t x_607; uint8_t x_608; lean_object* x_609; -x_601 = lean_ctor_get(x_592, 1); -lean_inc(x_601); -lean_dec(x_592); -x_602 = lean_ctor_get(x_594, 0); -lean_inc(x_602); -if (lean_is_exclusive(x_594)) { - lean_ctor_release(x_594, 0); - x_603 = x_594; +lean_object* x_603; lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; uint8_t x_608; uint8_t x_609; uint8_t x_610; lean_object* x_611; +x_603 = lean_ctor_get(x_594, 1); +lean_inc(x_603); +lean_dec(x_594); +x_604 = lean_ctor_get(x_596, 0); +lean_inc(x_604); +if (lean_is_exclusive(x_596)) { + lean_ctor_release(x_596, 0); + x_605 = x_596; } else { - lean_dec_ref(x_594); - x_603 = lean_box(0); + lean_dec_ref(x_596); + x_605 = lean_box(0); } -x_604 = l_Lean_Meta_Simp_simp_simpLet___lambda__1___closed__1; -lean_inc(x_5); -x_605 = lean_array_push(x_604, x_5); -x_606 = 0; -x_607 = 1; -x_608 = 1; -lean_inc(x_605); -x_609 = l_Lean_Meta_mkLambdaFVars(x_605, x_602, x_606, x_607, x_608, x_9, x_10, x_11, x_12, x_601); -if (lean_obj_tag(x_609) == 0) +x_606 = l_Lean_Meta_Simp_simp_simpLet___lambda__1___closed__1; +x_607 = lean_array_push(x_606, x_5); +x_608 = 0; +x_609 = 1; +x_610 = 1; +lean_inc(x_607); +x_611 = l_Lean_Meta_mkLambdaFVars(x_607, x_604, x_608, x_609, x_610, x_9, x_10, x_11, x_12, x_603); +if (lean_obj_tag(x_611) == 0) { -lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; uint8_t x_614; -x_610 = lean_ctor_get(x_609, 0); -lean_inc(x_610); -x_611 = lean_ctor_get(x_609, 1); -lean_inc(x_611); -lean_dec(x_609); -x_612 = lean_ctor_get(x_593, 0); +lean_object* x_612; lean_object* x_613; lean_object* x_614; uint8_t x_615; +x_612 = lean_ctor_get(x_611, 0); lean_inc(x_612); -lean_dec(x_593); -x_613 = l_Lean_Expr_fvarId_x21(x_5); -x_614 = l_Lean_Expr_hasAnyFVar_visit___at_Lean_Expr_containsFVar___spec__1(x_613, x_612); -lean_dec(x_613); -if (x_614 == 0) +x_613 = lean_ctor_get(x_611, 1); +lean_inc(x_613); +lean_dec(x_611); +x_614 = lean_ctor_get(x_595, 0); +lean_inc(x_614); +lean_dec(x_595); +x_615 = l_Lean_Expr_hasAnyFVar_visit___at_Lean_Expr_containsFVar___spec__1(x_17, x_614); +lean_dec(x_17); +if (x_615 == 0) { -lean_object* x_615; -lean_dec(x_605); +lean_object* x_616; +lean_dec(x_607); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_615 = l_Lean_Meta_Simp_Result_getProof(x_3, x_9, x_10, x_11, x_12, x_611); -if (lean_obj_tag(x_615) == 0) +x_616 = l_Lean_Meta_Simp_Result_getProof(x_3, x_9, x_10, x_11, x_12, x_613); +if (lean_obj_tag(x_616) == 0) { -lean_object* x_616; lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; uint8_t x_625; uint8_t x_626; uint8_t x_627; uint8_t x_628; uint8_t x_629; uint8_t x_630; uint8_t x_631; uint8_t x_632; uint8_t x_633; uint8_t x_634; uint8_t x_635; uint8_t x_636; uint8_t x_637; lean_object* x_638; uint8_t x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; -x_616 = lean_ctor_get(x_9, 0); -lean_inc(x_616); -x_617 = lean_ctor_get(x_615, 0); +lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; uint8_t x_626; uint8_t x_627; uint8_t x_628; uint8_t x_629; uint8_t x_630; uint8_t x_631; uint8_t x_632; uint8_t x_633; uint8_t x_634; uint8_t x_635; uint8_t x_636; uint8_t x_637; uint8_t x_638; lean_object* x_639; uint8_t x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; +x_617 = lean_ctor_get(x_9, 0); lean_inc(x_617); -x_618 = lean_ctor_get(x_615, 1); +x_618 = lean_ctor_get(x_616, 0); lean_inc(x_618); -lean_dec(x_615); -x_619 = lean_ctor_get(x_9, 1); +x_619 = lean_ctor_get(x_616, 1); lean_inc(x_619); -x_620 = lean_ctor_get(x_9, 2); +lean_dec(x_616); +x_620 = lean_ctor_get(x_9, 1); lean_inc(x_620); -x_621 = lean_ctor_get(x_9, 3); +x_621 = lean_ctor_get(x_9, 2); lean_inc(x_621); -x_622 = lean_ctor_get(x_9, 4); +x_622 = lean_ctor_get(x_9, 3); lean_inc(x_622); -x_623 = lean_ctor_get(x_9, 5); +x_623 = lean_ctor_get(x_9, 4); lean_inc(x_623); +x_624 = lean_ctor_get(x_9, 5); +lean_inc(x_624); if (lean_is_exclusive(x_9)) { lean_ctor_release(x_9, 0); lean_ctor_release(x_9, 1); @@ -21121,263 +21190,263 @@ if (lean_is_exclusive(x_9)) { lean_ctor_release(x_9, 3); lean_ctor_release(x_9, 4); lean_ctor_release(x_9, 5); - x_624 = x_9; + x_625 = x_9; } else { lean_dec_ref(x_9); - x_624 = lean_box(0); + x_625 = lean_box(0); } -x_625 = lean_ctor_get_uint8(x_616, 0); -x_626 = lean_ctor_get_uint8(x_616, 1); -x_627 = lean_ctor_get_uint8(x_616, 2); -x_628 = lean_ctor_get_uint8(x_616, 3); -x_629 = lean_ctor_get_uint8(x_616, 4); -x_630 = lean_ctor_get_uint8(x_616, 6); -x_631 = lean_ctor_get_uint8(x_616, 7); -x_632 = lean_ctor_get_uint8(x_616, 8); -x_633 = lean_ctor_get_uint8(x_616, 9); -x_634 = lean_ctor_get_uint8(x_616, 10); -x_635 = lean_ctor_get_uint8(x_616, 11); -x_636 = lean_ctor_get_uint8(x_616, 12); -x_637 = lean_ctor_get_uint8(x_616, 13); -if (lean_is_exclusive(x_616)) { - x_638 = x_616; +x_626 = lean_ctor_get_uint8(x_617, 0); +x_627 = lean_ctor_get_uint8(x_617, 1); +x_628 = lean_ctor_get_uint8(x_617, 2); +x_629 = lean_ctor_get_uint8(x_617, 3); +x_630 = lean_ctor_get_uint8(x_617, 4); +x_631 = lean_ctor_get_uint8(x_617, 6); +x_632 = lean_ctor_get_uint8(x_617, 7); +x_633 = lean_ctor_get_uint8(x_617, 8); +x_634 = lean_ctor_get_uint8(x_617, 9); +x_635 = lean_ctor_get_uint8(x_617, 10); +x_636 = lean_ctor_get_uint8(x_617, 11); +x_637 = lean_ctor_get_uint8(x_617, 12); +x_638 = lean_ctor_get_uint8(x_617, 13); +if (lean_is_exclusive(x_617)) { + x_639 = x_617; } else { - lean_dec_ref(x_616); - x_638 = lean_box(0); + lean_dec_ref(x_617); + x_639 = lean_box(0); } -x_639 = 1; -if (lean_is_scalar(x_638)) { - x_640 = lean_alloc_ctor(0, 0, 14); +x_640 = 1; +if (lean_is_scalar(x_639)) { + x_641 = lean_alloc_ctor(0, 0, 14); } else { - x_640 = x_638; + x_641 = x_639; } -lean_ctor_set_uint8(x_640, 0, x_625); -lean_ctor_set_uint8(x_640, 1, x_626); -lean_ctor_set_uint8(x_640, 2, x_627); -lean_ctor_set_uint8(x_640, 3, x_628); -lean_ctor_set_uint8(x_640, 4, x_629); -lean_ctor_set_uint8(x_640, 5, x_639); -lean_ctor_set_uint8(x_640, 6, x_630); -lean_ctor_set_uint8(x_640, 7, x_631); -lean_ctor_set_uint8(x_640, 8, x_632); -lean_ctor_set_uint8(x_640, 9, x_633); -lean_ctor_set_uint8(x_640, 10, x_634); -lean_ctor_set_uint8(x_640, 11, x_635); -lean_ctor_set_uint8(x_640, 12, x_636); -lean_ctor_set_uint8(x_640, 13, x_637); -if (lean_is_scalar(x_624)) { - x_641 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set_uint8(x_641, 0, x_626); +lean_ctor_set_uint8(x_641, 1, x_627); +lean_ctor_set_uint8(x_641, 2, x_628); +lean_ctor_set_uint8(x_641, 3, x_629); +lean_ctor_set_uint8(x_641, 4, x_630); +lean_ctor_set_uint8(x_641, 5, x_640); +lean_ctor_set_uint8(x_641, 6, x_631); +lean_ctor_set_uint8(x_641, 7, x_632); +lean_ctor_set_uint8(x_641, 8, x_633); +lean_ctor_set_uint8(x_641, 9, x_634); +lean_ctor_set_uint8(x_641, 10, x_635); +lean_ctor_set_uint8(x_641, 11, x_636); +lean_ctor_set_uint8(x_641, 12, x_637); +lean_ctor_set_uint8(x_641, 13, x_638); +if (lean_is_scalar(x_625)) { + x_642 = lean_alloc_ctor(0, 6, 0); } else { - x_641 = x_624; + x_642 = x_625; } -lean_ctor_set(x_641, 0, x_640); -lean_ctor_set(x_641, 1, x_619); -lean_ctor_set(x_641, 2, x_620); -lean_ctor_set(x_641, 3, x_621); -lean_ctor_set(x_641, 4, x_622); -lean_ctor_set(x_641, 5, x_623); +lean_ctor_set(x_642, 0, x_641); +lean_ctor_set(x_642, 1, x_620); +lean_ctor_set(x_642, 2, x_621); +lean_ctor_set(x_642, 3, x_622); +lean_ctor_set(x_642, 4, x_623); +lean_ctor_set(x_642, 5, x_624); lean_inc(x_12); -x_642 = l_Lean_Meta_mkImpCongrCtx(x_617, x_610, x_641, x_10, x_11, x_12, x_618); -if (lean_obj_tag(x_642) == 0) +x_643 = l_Lean_Meta_mkImpCongrCtx(x_618, x_612, x_642, x_10, x_11, x_12, x_619); +if (lean_obj_tag(x_643) == 0) { -lean_object* x_643; lean_object* x_644; lean_object* x_645; -x_643 = lean_ctor_get(x_642, 0); -lean_inc(x_643); -x_644 = lean_ctor_get(x_642, 1); +lean_object* x_644; lean_object* x_645; lean_object* x_646; +x_644 = lean_ctor_get(x_643, 0); lean_inc(x_644); -lean_dec(x_642); -if (lean_is_scalar(x_603)) { - x_645 = lean_alloc_ctor(1, 1, 0); +x_645 = lean_ctor_get(x_643, 1); +lean_inc(x_645); +lean_dec(x_643); +if (lean_is_scalar(x_605)) { + x_646 = lean_alloc_ctor(1, 1, 0); } else { - x_645 = x_603; + x_646 = x_605; } -lean_ctor_set(x_645, 0, x_643); +lean_ctor_set(x_646, 0, x_644); if (lean_obj_tag(x_2) == 7) { -lean_object* x_646; lean_object* x_647; lean_object* x_648; uint8_t x_649; lean_object* x_650; size_t x_651; size_t x_652; uint8_t x_653; -x_646 = lean_ctor_get(x_2, 0); -lean_inc(x_646); -x_647 = lean_ctor_get(x_2, 1); +lean_object* x_647; lean_object* x_648; lean_object* x_649; uint8_t x_650; lean_object* x_651; size_t x_652; size_t x_653; uint8_t x_654; +x_647 = lean_ctor_get(x_2, 0); lean_inc(x_647); -x_648 = lean_ctor_get(x_2, 2); +x_648 = lean_ctor_get(x_2, 1); lean_inc(x_648); -x_649 = lean_ctor_get_uint8(x_2, sizeof(void*)*3 + 8); +x_649 = lean_ctor_get(x_2, 2); +lean_inc(x_649); +x_650 = lean_ctor_get_uint8(x_2, sizeof(void*)*3 + 8); lean_dec(x_2); +lean_inc(x_649); lean_inc(x_648); lean_inc(x_647); -lean_inc(x_646); -x_650 = l_Lean_Expr_forallE___override(x_646, x_647, x_648, x_649); -x_651 = lean_ptr_addr(x_647); +x_651 = l_Lean_Expr_forallE___override(x_647, x_648, x_649, x_650); +x_652 = lean_ptr_addr(x_648); +lean_dec(x_648); +x_653 = lean_ptr_addr(x_4); +x_654 = lean_usize_dec_eq(x_652, x_653); +if (x_654 == 0) +{ +lean_object* x_655; lean_object* x_656; lean_object* x_657; +lean_dec(x_651); +lean_dec(x_649); +x_655 = l_Lean_Expr_forallE___override(x_647, x_4, x_614, x_650); +x_656 = lean_unsigned_to_nat(0u); +x_657 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_657, 0, x_655); +lean_ctor_set(x_657, 1, x_646); +lean_ctor_set(x_657, 2, x_656); +x_27 = x_657; +x_28 = x_645; +goto block_49; +} +else +{ +size_t x_658; size_t x_659; uint8_t x_660; +x_658 = lean_ptr_addr(x_649); +lean_dec(x_649); +x_659 = lean_ptr_addr(x_614); +x_660 = lean_usize_dec_eq(x_658, x_659); +if (x_660 == 0) +{ +lean_object* x_661; lean_object* x_662; lean_object* x_663; +lean_dec(x_651); +x_661 = l_Lean_Expr_forallE___override(x_647, x_4, x_614, x_650); +x_662 = lean_unsigned_to_nat(0u); +x_663 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_663, 0, x_661); +lean_ctor_set(x_663, 1, x_646); +lean_ctor_set(x_663, 2, x_662); +x_27 = x_663; +x_28 = x_645; +goto block_49; +} +else +{ +uint8_t x_664; +x_664 = l___private_Lean_Expr_0__Lean_beqBinderInfo____x40_Lean_Expr___hyg_390_(x_650, x_650); +if (x_664 == 0) +{ +lean_object* x_665; lean_object* x_666; lean_object* x_667; +lean_dec(x_651); +x_665 = l_Lean_Expr_forallE___override(x_647, x_4, x_614, x_650); +x_666 = lean_unsigned_to_nat(0u); +x_667 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_667, 0, x_665); +lean_ctor_set(x_667, 1, x_646); +lean_ctor_set(x_667, 2, x_666); +x_27 = x_667; +x_28 = x_645; +goto block_49; +} +else +{ +lean_object* x_668; lean_object* x_669; lean_dec(x_647); -x_652 = lean_ptr_addr(x_4); -x_653 = lean_usize_dec_eq(x_651, x_652); -if (x_653 == 0) -{ -lean_object* x_654; lean_object* x_655; lean_object* x_656; -lean_dec(x_650); -lean_dec(x_648); -x_654 = l_Lean_Expr_forallE___override(x_646, x_4, x_612, x_649); -x_655 = lean_unsigned_to_nat(0u); -x_656 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_656, 0, x_654); -lean_ctor_set(x_656, 1, x_645); -lean_ctor_set(x_656, 2, x_655); -x_27 = x_656; -x_28 = x_644; -goto block_48; -} -else -{ -size_t x_657; size_t x_658; uint8_t x_659; -x_657 = lean_ptr_addr(x_648); -lean_dec(x_648); -x_658 = lean_ptr_addr(x_612); -x_659 = lean_usize_dec_eq(x_657, x_658); -if (x_659 == 0) -{ -lean_object* x_660; lean_object* x_661; lean_object* x_662; -lean_dec(x_650); -x_660 = l_Lean_Expr_forallE___override(x_646, x_4, x_612, x_649); -x_661 = lean_unsigned_to_nat(0u); -x_662 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_662, 0, x_660); -lean_ctor_set(x_662, 1, x_645); -lean_ctor_set(x_662, 2, x_661); -x_27 = x_662; -x_28 = x_644; -goto block_48; -} -else -{ -uint8_t x_663; -x_663 = l___private_Lean_Expr_0__Lean_beqBinderInfo____x40_Lean_Expr___hyg_390_(x_649, x_649); -if (x_663 == 0) -{ -lean_object* x_664; lean_object* x_665; lean_object* x_666; -lean_dec(x_650); -x_664 = l_Lean_Expr_forallE___override(x_646, x_4, x_612, x_649); -x_665 = lean_unsigned_to_nat(0u); -x_666 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_666, 0, x_664); -lean_ctor_set(x_666, 1, x_645); -lean_ctor_set(x_666, 2, x_665); -x_27 = x_666; -x_28 = x_644; -goto block_48; -} -else -{ -lean_object* x_667; lean_object* x_668; -lean_dec(x_646); -lean_dec(x_612); +lean_dec(x_614); lean_dec(x_4); -x_667 = lean_unsigned_to_nat(0u); -x_668 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_668, 0, x_650); -lean_ctor_set(x_668, 1, x_645); -lean_ctor_set(x_668, 2, x_667); -x_27 = x_668; -x_28 = x_644; -goto block_48; +x_668 = lean_unsigned_to_nat(0u); +x_669 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_669, 0, x_651); +lean_ctor_set(x_669, 1, x_646); +lean_ctor_set(x_669, 2, x_668); +x_27 = x_669; +x_28 = x_645; +goto block_49; } } } } else { -lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; -lean_dec(x_612); +lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; +lean_dec(x_614); lean_dec(x_4); lean_dec(x_2); -x_669 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkImpCongr___closed__4; -x_670 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_669); -x_671 = lean_unsigned_to_nat(0u); -x_672 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_672, 0, x_670); -lean_ctor_set(x_672, 1, x_645); -lean_ctor_set(x_672, 2, x_671); -x_27 = x_672; -x_28 = x_644; -goto block_48; +x_670 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkImpCongr___closed__4; +x_671 = l_panic___at_Lean_Expr_getRevArg_x21___spec__1(x_670); +x_672 = lean_unsigned_to_nat(0u); +x_673 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_673, 0, x_671); +lean_ctor_set(x_673, 1, x_646); +lean_ctor_set(x_673, 2, x_672); +x_27 = x_673; +x_28 = x_645; +goto block_49; } } else { -lean_object* x_673; lean_object* x_674; -lean_dec(x_612); -lean_dec(x_603); +lean_object* x_674; lean_object* x_675; +lean_dec(x_614); +lean_dec(x_605); lean_dec(x_4); lean_dec(x_2); -x_673 = lean_ctor_get(x_642, 0); -lean_inc(x_673); -x_674 = lean_ctor_get(x_642, 1); +x_674 = lean_ctor_get(x_643, 0); lean_inc(x_674); -lean_dec(x_642); -x_49 = x_673; +x_675 = lean_ctor_get(x_643, 1); +lean_inc(x_675); +lean_dec(x_643); x_50 = x_674; -goto block_70; +x_51 = x_675; +goto block_72; } } else { -lean_object* x_675; lean_object* x_676; +lean_object* x_676; lean_object* x_677; +lean_dec(x_614); lean_dec(x_612); -lean_dec(x_610); -lean_dec(x_603); +lean_dec(x_605); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_4); lean_dec(x_2); -x_675 = lean_ctor_get(x_615, 0); -lean_inc(x_675); -x_676 = lean_ctor_get(x_615, 1); +x_676 = lean_ctor_get(x_616, 0); lean_inc(x_676); -lean_dec(x_615); -x_49 = x_675; +x_677 = lean_ctor_get(x_616, 1); +lean_inc(x_677); +lean_dec(x_616); x_50 = x_676; -goto block_70; +x_51 = x_677; +goto block_72; } } else { -lean_object* x_677; +lean_object* x_678; lean_dec(x_4); lean_dec(x_2); -x_677 = l_Lean_Meta_mkForallFVars(x_605, x_612, x_606, x_607, x_608, x_9, x_10, x_11, x_12, x_611); -if (lean_obj_tag(x_677) == 0) +x_678 = l_Lean_Meta_mkForallFVars(x_607, x_614, x_608, x_609, x_610, x_9, x_10, x_11, x_12, x_613); +if (lean_obj_tag(x_678) == 0) { -lean_object* x_678; lean_object* x_679; lean_object* x_680; -x_678 = lean_ctor_get(x_677, 0); -lean_inc(x_678); -x_679 = lean_ctor_get(x_677, 1); +lean_object* x_679; lean_object* x_680; lean_object* x_681; +x_679 = lean_ctor_get(x_678, 0); lean_inc(x_679); -lean_dec(x_677); +x_680 = lean_ctor_get(x_678, 1); +lean_inc(x_680); +lean_dec(x_678); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_680 = l_Lean_Meta_Simp_Result_getProof(x_3, x_9, x_10, x_11, x_12, x_679); -if (lean_obj_tag(x_680) == 0) +x_681 = l_Lean_Meta_Simp_Result_getProof(x_3, x_9, x_10, x_11, x_12, x_680); +if (lean_obj_tag(x_681) == 0) { -lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; uint8_t x_690; uint8_t x_691; uint8_t x_692; uint8_t x_693; uint8_t x_694; uint8_t x_695; uint8_t x_696; uint8_t x_697; uint8_t x_698; uint8_t x_699; uint8_t x_700; uint8_t x_701; uint8_t x_702; lean_object* x_703; uint8_t x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; -x_681 = lean_ctor_get(x_9, 0); -lean_inc(x_681); -x_682 = lean_ctor_get(x_680, 0); +lean_object* x_682; lean_object* x_683; lean_object* x_684; lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; uint8_t x_691; uint8_t x_692; uint8_t x_693; uint8_t x_694; uint8_t x_695; uint8_t x_696; uint8_t x_697; uint8_t x_698; uint8_t x_699; uint8_t x_700; uint8_t x_701; uint8_t x_702; uint8_t x_703; lean_object* x_704; uint8_t x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; +x_682 = lean_ctor_get(x_9, 0); lean_inc(x_682); -x_683 = lean_ctor_get(x_680, 1); +x_683 = lean_ctor_get(x_681, 0); lean_inc(x_683); -lean_dec(x_680); -x_684 = lean_ctor_get(x_9, 1); +x_684 = lean_ctor_get(x_681, 1); lean_inc(x_684); -x_685 = lean_ctor_get(x_9, 2); +lean_dec(x_681); +x_685 = lean_ctor_get(x_9, 1); lean_inc(x_685); -x_686 = lean_ctor_get(x_9, 3); +x_686 = lean_ctor_get(x_9, 2); lean_inc(x_686); -x_687 = lean_ctor_get(x_9, 4); +x_687 = lean_ctor_get(x_9, 3); lean_inc(x_687); -x_688 = lean_ctor_get(x_9, 5); +x_688 = lean_ctor_get(x_9, 4); lean_inc(x_688); +x_689 = lean_ctor_get(x_9, 5); +lean_inc(x_689); if (lean_is_exclusive(x_9)) { lean_ctor_release(x_9, 0); lean_ctor_release(x_9, 1); @@ -21385,167 +21454,168 @@ if (lean_is_exclusive(x_9)) { lean_ctor_release(x_9, 3); lean_ctor_release(x_9, 4); lean_ctor_release(x_9, 5); - x_689 = x_9; + x_690 = x_9; } else { lean_dec_ref(x_9); - x_689 = lean_box(0); + x_690 = lean_box(0); } -x_690 = lean_ctor_get_uint8(x_681, 0); -x_691 = lean_ctor_get_uint8(x_681, 1); -x_692 = lean_ctor_get_uint8(x_681, 2); -x_693 = lean_ctor_get_uint8(x_681, 3); -x_694 = lean_ctor_get_uint8(x_681, 4); -x_695 = lean_ctor_get_uint8(x_681, 6); -x_696 = lean_ctor_get_uint8(x_681, 7); -x_697 = lean_ctor_get_uint8(x_681, 8); -x_698 = lean_ctor_get_uint8(x_681, 9); -x_699 = lean_ctor_get_uint8(x_681, 10); -x_700 = lean_ctor_get_uint8(x_681, 11); -x_701 = lean_ctor_get_uint8(x_681, 12); -x_702 = lean_ctor_get_uint8(x_681, 13); -if (lean_is_exclusive(x_681)) { - x_703 = x_681; +x_691 = lean_ctor_get_uint8(x_682, 0); +x_692 = lean_ctor_get_uint8(x_682, 1); +x_693 = lean_ctor_get_uint8(x_682, 2); +x_694 = lean_ctor_get_uint8(x_682, 3); +x_695 = lean_ctor_get_uint8(x_682, 4); +x_696 = lean_ctor_get_uint8(x_682, 6); +x_697 = lean_ctor_get_uint8(x_682, 7); +x_698 = lean_ctor_get_uint8(x_682, 8); +x_699 = lean_ctor_get_uint8(x_682, 9); +x_700 = lean_ctor_get_uint8(x_682, 10); +x_701 = lean_ctor_get_uint8(x_682, 11); +x_702 = lean_ctor_get_uint8(x_682, 12); +x_703 = lean_ctor_get_uint8(x_682, 13); +if (lean_is_exclusive(x_682)) { + x_704 = x_682; } else { - lean_dec_ref(x_681); - x_703 = lean_box(0); + lean_dec_ref(x_682); + x_704 = lean_box(0); } -x_704 = 1; -if (lean_is_scalar(x_703)) { - x_705 = lean_alloc_ctor(0, 0, 14); +x_705 = 1; +if (lean_is_scalar(x_704)) { + x_706 = lean_alloc_ctor(0, 0, 14); } else { - x_705 = x_703; + x_706 = x_704; } -lean_ctor_set_uint8(x_705, 0, x_690); -lean_ctor_set_uint8(x_705, 1, x_691); -lean_ctor_set_uint8(x_705, 2, x_692); -lean_ctor_set_uint8(x_705, 3, x_693); -lean_ctor_set_uint8(x_705, 4, x_694); -lean_ctor_set_uint8(x_705, 5, x_704); -lean_ctor_set_uint8(x_705, 6, x_695); -lean_ctor_set_uint8(x_705, 7, x_696); -lean_ctor_set_uint8(x_705, 8, x_697); -lean_ctor_set_uint8(x_705, 9, x_698); -lean_ctor_set_uint8(x_705, 10, x_699); -lean_ctor_set_uint8(x_705, 11, x_700); -lean_ctor_set_uint8(x_705, 12, x_701); -lean_ctor_set_uint8(x_705, 13, x_702); -if (lean_is_scalar(x_689)) { - x_706 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set_uint8(x_706, 0, x_691); +lean_ctor_set_uint8(x_706, 1, x_692); +lean_ctor_set_uint8(x_706, 2, x_693); +lean_ctor_set_uint8(x_706, 3, x_694); +lean_ctor_set_uint8(x_706, 4, x_695); +lean_ctor_set_uint8(x_706, 5, x_705); +lean_ctor_set_uint8(x_706, 6, x_696); +lean_ctor_set_uint8(x_706, 7, x_697); +lean_ctor_set_uint8(x_706, 8, x_698); +lean_ctor_set_uint8(x_706, 9, x_699); +lean_ctor_set_uint8(x_706, 10, x_700); +lean_ctor_set_uint8(x_706, 11, x_701); +lean_ctor_set_uint8(x_706, 12, x_702); +lean_ctor_set_uint8(x_706, 13, x_703); +if (lean_is_scalar(x_690)) { + x_707 = lean_alloc_ctor(0, 6, 0); } else { - x_706 = x_689; + x_707 = x_690; } -lean_ctor_set(x_706, 0, x_705); -lean_ctor_set(x_706, 1, x_684); -lean_ctor_set(x_706, 2, x_685); -lean_ctor_set(x_706, 3, x_686); -lean_ctor_set(x_706, 4, x_687); -lean_ctor_set(x_706, 5, x_688); +lean_ctor_set(x_707, 0, x_706); +lean_ctor_set(x_707, 1, x_685); +lean_ctor_set(x_707, 2, x_686); +lean_ctor_set(x_707, 3, x_687); +lean_ctor_set(x_707, 4, x_688); +lean_ctor_set(x_707, 5, x_689); lean_inc(x_12); -x_707 = l_Lean_Meta_mkImpDepCongrCtx(x_682, x_610, x_706, x_10, x_11, x_12, x_683); -if (lean_obj_tag(x_707) == 0) +x_708 = l_Lean_Meta_mkImpDepCongrCtx(x_683, x_612, x_707, x_10, x_11, x_12, x_684); +if (lean_obj_tag(x_708) == 0) { -lean_object* x_708; lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; -x_708 = lean_ctor_get(x_707, 0); -lean_inc(x_708); -x_709 = lean_ctor_get(x_707, 1); +lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; lean_object* x_713; +x_709 = lean_ctor_get(x_708, 0); lean_inc(x_709); -lean_dec(x_707); -if (lean_is_scalar(x_603)) { - x_710 = lean_alloc_ctor(1, 1, 0); +x_710 = lean_ctor_get(x_708, 1); +lean_inc(x_710); +lean_dec(x_708); +if (lean_is_scalar(x_605)) { + x_711 = lean_alloc_ctor(1, 1, 0); } else { - x_710 = x_603; + x_711 = x_605; } -lean_ctor_set(x_710, 0, x_708); -x_711 = lean_unsigned_to_nat(0u); -x_712 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_712, 0, x_678); -lean_ctor_set(x_712, 1, x_710); -lean_ctor_set(x_712, 2, x_711); -x_27 = x_712; -x_28 = x_709; -goto block_48; +lean_ctor_set(x_711, 0, x_709); +x_712 = lean_unsigned_to_nat(0u); +x_713 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_713, 0, x_679); +lean_ctor_set(x_713, 1, x_711); +lean_ctor_set(x_713, 2, x_712); +x_27 = x_713; +x_28 = x_710; +goto block_49; } else { -lean_object* x_713; lean_object* x_714; -lean_dec(x_678); -lean_dec(x_603); -x_713 = lean_ctor_get(x_707, 0); -lean_inc(x_713); -x_714 = lean_ctor_get(x_707, 1); -lean_inc(x_714); -lean_dec(x_707); -x_49 = x_713; -x_50 = x_714; -goto block_70; -} -} -else -{ -lean_object* x_715; lean_object* x_716; -lean_dec(x_678); -lean_dec(x_610); -lean_dec(x_603); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_715 = lean_ctor_get(x_680, 0); -lean_inc(x_715); -x_716 = lean_ctor_get(x_680, 1); -lean_inc(x_716); -lean_dec(x_680); -x_49 = x_715; -x_50 = x_716; -goto block_70; -} -} -else -{ -lean_object* x_717; lean_object* x_718; -lean_dec(x_610); -lean_dec(x_603); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_3); -x_717 = lean_ctor_get(x_677, 0); -lean_inc(x_717); -x_718 = lean_ctor_get(x_677, 1); -lean_inc(x_718); -lean_dec(x_677); -x_49 = x_717; -x_50 = x_718; -goto block_70; -} -} -} -else -{ -lean_object* x_719; lean_object* x_720; +lean_object* x_714; lean_object* x_715; +lean_dec(x_679); +lean_dec(x_605); +x_714 = lean_ctor_get(x_708, 0); +lean_inc(x_714); +x_715 = lean_ctor_get(x_708, 1); +lean_inc(x_715); +lean_dec(x_708); +x_50 = x_714; +x_51 = x_715; +goto block_72; +} +} +else +{ +lean_object* x_716; lean_object* x_717; +lean_dec(x_679); +lean_dec(x_612); +lean_dec(x_605); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_716 = lean_ctor_get(x_681, 0); +lean_inc(x_716); +x_717 = lean_ctor_get(x_681, 1); +lean_inc(x_717); +lean_dec(x_681); +x_50 = x_716; +x_51 = x_717; +goto block_72; +} +} +else +{ +lean_object* x_718; lean_object* x_719; +lean_dec(x_612); lean_dec(x_605); -lean_dec(x_603); -lean_dec(x_593); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_4); lean_dec(x_3); -lean_dec(x_2); -x_719 = lean_ctor_get(x_609, 0); +x_718 = lean_ctor_get(x_678, 0); +lean_inc(x_718); +x_719 = lean_ctor_get(x_678, 1); lean_inc(x_719); -x_720 = lean_ctor_get(x_609, 1); -lean_inc(x_720); -lean_dec(x_609); -x_49 = x_719; -x_50 = x_720; -goto block_70; +lean_dec(x_678); +x_50 = x_718; +x_51 = x_719; +goto block_72; } } } else { -lean_object* x_721; lean_object* x_722; +lean_object* x_720; lean_object* x_721; +lean_dec(x_607); +lean_dec(x_605); +lean_dec(x_595); +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_720 = lean_ctor_get(x_611, 0); +lean_inc(x_720); +x_721 = lean_ctor_get(x_611, 1); +lean_inc(x_721); +lean_dec(x_611); +x_50 = x_720; +x_51 = x_721; +goto block_72; +} +} +} +else +{ +lean_object* x_722; lean_object* x_723; +lean_dec(x_17); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -21553,17 +21623,17 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_721 = lean_ctor_get(x_592, 0); -lean_inc(x_721); -x_722 = lean_ctor_get(x_592, 1); +x_722 = lean_ctor_get(x_594, 0); lean_inc(x_722); -lean_dec(x_592); -x_49 = x_721; +x_723 = lean_ctor_get(x_594, 1); +lean_inc(x_723); +lean_dec(x_594); x_50 = x_722; -goto block_70; +x_51 = x_723; +goto block_72; } } -block_48: +block_49: { 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_29 = lean_st_ref_get(x_12, x_28); @@ -21609,122 +21679,129 @@ return x_40; } else { -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_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_41 = lean_ctor_get(x_32, 1); x_42 = lean_ctor_get(x_32, 2); +x_43 = lean_ctor_get(x_32, 3); +lean_inc(x_43); lean_inc(x_42); lean_inc(x_41); lean_dec(x_32); -x_43 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_43, 0, x_26); -lean_ctor_set(x_43, 1, x_41); -lean_ctor_set(x_43, 2, x_42); -x_44 = lean_st_ref_set(x_8, x_43, x_33); +x_44 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_44, 0, x_26); +lean_ctor_set(x_44, 1, x_41); +lean_ctor_set(x_44, 2, x_42); +lean_ctor_set(x_44, 3, x_43); +x_45 = lean_st_ref_set(x_8, x_44, x_33); lean_dec(x_8); -x_45 = lean_ctor_get(x_44, 1); -lean_inc(x_45); -if (lean_is_exclusive(x_44)) { - lean_ctor_release(x_44, 0); - lean_ctor_release(x_44, 1); - x_46 = x_44; +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_44); - x_46 = lean_box(0); + lean_dec_ref(x_45); + x_47 = lean_box(0); } -if (lean_is_scalar(x_46)) { - x_47 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_47)) { + x_48 = lean_alloc_ctor(0, 2, 0); } else { - x_47 = x_46; + x_48 = x_47; } -lean_ctor_set(x_47, 0, x_27); -lean_ctor_set(x_47, 1, x_45); -return x_47; +lean_ctor_set(x_48, 0, x_27); +lean_ctor_set(x_48, 1, x_46); +return x_48; } } -block_70: +block_72: { -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; -x_51 = lean_st_ref_get(x_12, x_50); +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; +x_52 = lean_st_ref_get(x_12, x_51); lean_dec(x_12); -x_52 = lean_ctor_get(x_51, 1); -lean_inc(x_52); -lean_dec(x_51); -x_53 = lean_st_ref_take(x_8, x_52); -x_54 = lean_ctor_get(x_53, 0); -lean_inc(x_54); -x_55 = lean_ctor_get(x_53, 1); +x_53 = lean_ctor_get(x_52, 1); +lean_inc(x_53); +lean_dec(x_52); +x_54 = lean_st_ref_take(x_8, x_53); +x_55 = lean_ctor_get(x_54, 0); lean_inc(x_55); -lean_dec(x_53); -x_56 = !lean_is_exclusive(x_54); -if (x_56 == 0) -{ -lean_object* x_57; lean_object* x_58; uint8_t x_59; -x_57 = lean_ctor_get(x_54, 0); -lean_dec(x_57); -lean_ctor_set(x_54, 0, x_26); -x_58 = lean_st_ref_set(x_8, x_54, x_55); -lean_dec(x_8); -x_59 = !lean_is_exclusive(x_58); -if (x_59 == 0) -{ -lean_object* x_60; -x_60 = lean_ctor_get(x_58, 0); -lean_dec(x_60); -lean_ctor_set_tag(x_58, 1); -lean_ctor_set(x_58, 0, x_49); -return x_58; -} -else -{ -lean_object* x_61; lean_object* x_62; -x_61 = lean_ctor_get(x_58, 1); -lean_inc(x_61); -lean_dec(x_58); -x_62 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_62, 0, x_49); -lean_ctor_set(x_62, 1, x_61); -return x_62; -} -} -else -{ -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; -x_63 = lean_ctor_get(x_54, 1); -x_64 = lean_ctor_get(x_54, 2); -lean_inc(x_64); -lean_inc(x_63); +x_56 = lean_ctor_get(x_54, 1); +lean_inc(x_56); lean_dec(x_54); -x_65 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_65, 0, x_26); -lean_ctor_set(x_65, 1, x_63); -lean_ctor_set(x_65, 2, x_64); -x_66 = lean_st_ref_set(x_8, x_65, x_55); +x_57 = !lean_is_exclusive(x_55); +if (x_57 == 0) +{ +lean_object* x_58; lean_object* x_59; uint8_t x_60; +x_58 = lean_ctor_get(x_55, 0); +lean_dec(x_58); +lean_ctor_set(x_55, 0, x_26); +x_59 = lean_st_ref_set(x_8, x_55, x_56); lean_dec(x_8); -x_67 = lean_ctor_get(x_66, 1); -lean_inc(x_67); -if (lean_is_exclusive(x_66)) { - lean_ctor_release(x_66, 0); - lean_ctor_release(x_66, 1); - x_68 = x_66; -} else { - lean_dec_ref(x_66); - x_68 = lean_box(0); +x_60 = !lean_is_exclusive(x_59); +if (x_60 == 0) +{ +lean_object* x_61; +x_61 = lean_ctor_get(x_59, 0); +lean_dec(x_61); +lean_ctor_set_tag(x_59, 1); +lean_ctor_set(x_59, 0, x_50); +return x_59; } -if (lean_is_scalar(x_68)) { - x_69 = lean_alloc_ctor(1, 2, 0); -} else { - x_69 = x_68; - lean_ctor_set_tag(x_69, 1); +else +{ +lean_object* x_62; lean_object* x_63; +x_62 = lean_ctor_get(x_59, 1); +lean_inc(x_62); +lean_dec(x_59); +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_50); +lean_ctor_set(x_63, 1, x_62); +return x_63; } -lean_ctor_set(x_69, 0, x_49); -lean_ctor_set(x_69, 1, x_67); -return x_69; +} +else +{ +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_64 = lean_ctor_get(x_55, 1); +x_65 = lean_ctor_get(x_55, 2); +x_66 = lean_ctor_get(x_55, 3); +lean_inc(x_66); +lean_inc(x_65); +lean_inc(x_64); +lean_dec(x_55); +x_67 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_67, 0, x_26); +lean_ctor_set(x_67, 1, x_64); +lean_ctor_set(x_67, 2, x_65); +lean_ctor_set(x_67, 3, x_66); +x_68 = lean_st_ref_set(x_8, x_67, x_56); +lean_dec(x_8); +x_69 = lean_ctor_get(x_68, 1); +lean_inc(x_69); +if (lean_is_exclusive(x_68)) { + lean_ctor_release(x_68, 0); + lean_ctor_release(x_68, 1); + x_70 = x_68; +} else { + lean_dec_ref(x_68); + x_70 = lean_box(0); +} +if (lean_is_scalar(x_70)) { + x_71 = lean_alloc_ctor(1, 2, 0); +} else { + x_71 = x_70; + lean_ctor_set_tag(x_71, 1); +} +lean_ctor_set(x_71, 0, x_50); +lean_ctor_set(x_71, 1, x_69); +return x_71; } } } else { -uint8_t x_723; +uint8_t x_724; +lean_dec(x_17); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -21737,23 +21814,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_723 = !lean_is_exclusive(x_18); -if (x_723 == 0) +x_724 = !lean_is_exclusive(x_18); +if (x_724 == 0) { return x_18; } else { -lean_object* x_724; lean_object* x_725; lean_object* x_726; -x_724 = lean_ctor_get(x_18, 0); -x_725 = lean_ctor_get(x_18, 1); +lean_object* x_725; lean_object* x_726; lean_object* x_727; +x_725 = lean_ctor_get(x_18, 0); +x_726 = lean_ctor_get(x_18, 1); +lean_inc(x_726); lean_inc(x_725); -lean_inc(x_724); lean_dec(x_18); -x_726 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_726, 0, x_724); -lean_ctor_set(x_726, 1, x_725); -return x_726; +x_727 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_727, 0, x_725); +lean_ctor_set(x_727, 1, x_726); +return x_727; } } } @@ -23135,40 +23212,43 @@ x_10 = !lean_is_exclusive(x_3); if (x_10 == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_11 = lean_ctor_get(x_3, 3); +x_11 = lean_ctor_get(x_3, 4); lean_dec(x_11); lean_inc(x_1); x_12 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_12, 0, x_1); -lean_ctor_set(x_3, 3, x_12); +lean_ctor_set(x_3, 4, x_12); x_13 = l_Lean_Meta_Simp_simp_simpLambda___closed__1; x_14 = l_Lean_Meta_Simp_lambdaTelescopeDSimp___rarg(x_1, x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_14; } else { -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_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; x_15 = lean_ctor_get(x_3, 0); x_16 = lean_ctor_get(x_3, 1); x_17 = lean_ctor_get(x_3, 2); -x_18 = lean_ctor_get(x_3, 4); +x_18 = lean_ctor_get(x_3, 3); +x_19 = lean_ctor_get(x_3, 5); +lean_inc(x_19); lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); lean_inc(x_15); lean_dec(x_3); lean_inc(x_1); -x_19 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_19, 0, x_1); -x_20 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_20, 0, x_15); -lean_ctor_set(x_20, 1, x_16); -lean_ctor_set(x_20, 2, x_17); -lean_ctor_set(x_20, 3, x_19); -lean_ctor_set(x_20, 4, x_18); -x_21 = l_Lean_Meta_Simp_simp_simpLambda___closed__1; -x_22 = l_Lean_Meta_Simp_lambdaTelescopeDSimp___rarg(x_1, x_21, x_2, x_20, x_4, x_5, x_6, x_7, x_8, x_9); -return x_22; +x_20 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_20, 0, x_1); +x_21 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_21, 0, x_15); +lean_ctor_set(x_21, 1, x_16); +lean_ctor_set(x_21, 2, x_17); +lean_ctor_set(x_21, 3, x_18); +lean_ctor_set(x_21, 4, x_20); +lean_ctor_set(x_21, 5, x_19); +x_22 = l_Lean_Meta_Simp_simp_simpLambda___closed__1; +x_23 = l_Lean_Meta_Simp_lambdaTelescopeDSimp___rarg(x_1, x_22, x_2, x_21, x_4, x_5, x_6, x_7, x_8, x_9); +return x_23; } } } @@ -23743,100 +23823,103 @@ x_19 = !lean_is_exclusive(x_3); if (x_19 == 0) { lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_3, 3); +x_20 = lean_ctor_get(x_3, 4); lean_dec(x_20); lean_inc(x_1); x_21 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_21, 0, x_1); -lean_ctor_set(x_3, 3, x_21); +lean_ctor_set(x_3, 4, x_21); x_22 = l_Lean_Expr_withAppAux___at_Lean_Meta_Simp_simp_congrDefault___spec__1(x_1, x_16, x_18, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_12); return x_22; } else { -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_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; x_23 = lean_ctor_get(x_3, 0); x_24 = lean_ctor_get(x_3, 1); x_25 = lean_ctor_get(x_3, 2); -x_26 = lean_ctor_get(x_3, 4); +x_26 = lean_ctor_get(x_3, 3); +x_27 = lean_ctor_get(x_3, 5); +lean_inc(x_27); lean_inc(x_26); lean_inc(x_25); lean_inc(x_24); lean_inc(x_23); lean_dec(x_3); lean_inc(x_1); -x_27 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_27, 0, x_1); -x_28 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_28, 0, x_23); -lean_ctor_set(x_28, 1, x_24); -lean_ctor_set(x_28, 2, x_25); -lean_ctor_set(x_28, 3, x_27); -lean_ctor_set(x_28, 4, x_26); -x_29 = l_Lean_Expr_withAppAux___at_Lean_Meta_Simp_simp_congrDefault___spec__1(x_1, x_16, x_18, x_2, x_28, x_4, x_5, x_6, x_7, x_8, x_12); -return x_29; +x_28 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_28, 0, x_1); +x_29 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_29, 0, x_23); +lean_ctor_set(x_29, 1, x_24); +lean_ctor_set(x_29, 2, x_25); +lean_ctor_set(x_29, 3, x_26); +lean_ctor_set(x_29, 4, x_28); +lean_ctor_set(x_29, 5, x_27); +x_30 = l_Lean_Expr_withAppAux___at_Lean_Meta_Simp_simp_congrDefault___spec__1(x_1, x_16, x_18, x_2, x_29, x_4, x_5, x_6, x_7, x_8, x_12); +return x_30; } } else { -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_dec(x_1); -x_30 = lean_ctor_get(x_10, 1); -lean_inc(x_30); -lean_dec(x_10); -x_31 = lean_ctor_get(x_11, 0); +x_31 = lean_ctor_get(x_10, 1); lean_inc(x_31); -lean_dec(x_11); -x_32 = lean_ctor_get(x_31, 0); +lean_dec(x_10); +x_32 = lean_ctor_get(x_11, 0); lean_inc(x_32); +lean_dec(x_11); +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_33 = l_Lean_Meta_Simp_simp_visitFn(x_32, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_30); -if (lean_obj_tag(x_33) == 0) +x_34 = l_Lean_Meta_Simp_simp_visitFn(x_33, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_31); +if (lean_obj_tag(x_34) == 0) { -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_33, 0); -lean_inc(x_34); -x_35 = lean_ctor_get(x_33, 1); +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_34, 0); lean_inc(x_35); -lean_dec(x_33); -x_36 = l_Lean_Meta_Simp_mkEqTrans(x_31, x_34, x_5, x_6, x_7, x_8, x_35); -return x_36; +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +lean_dec(x_34); +x_37 = l_Lean_Meta_Simp_mkEqTrans(x_32, x_35, x_5, x_6, x_7, x_8, x_36); +return x_37; } else { -uint8_t x_37; -lean_dec(x_31); +uint8_t x_38; +lean_dec(x_32); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_37 = !lean_is_exclusive(x_33); -if (x_37 == 0) +x_38 = !lean_is_exclusive(x_34); +if (x_38 == 0) { -return x_33; +return x_34; } else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_33, 0); -x_39 = lean_ctor_get(x_33, 1); +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_inc(x_38); -lean_dec(x_33); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -return x_40; +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 { -uint8_t x_41; +uint8_t x_42; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -23845,23 +23928,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_41 = !lean_is_exclusive(x_10); -if (x_41 == 0) +x_42 = !lean_is_exclusive(x_10); +if (x_42 == 0) { return x_10; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_10, 0); -x_43 = lean_ctor_get(x_10, 1); +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_10, 0); +x_44 = lean_ctor_get(x_10, 1); +lean_inc(x_44); lean_inc(x_43); -lean_inc(x_42); lean_dec(x_10); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -return x_44; +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +return x_45; } } } @@ -25464,7 +25547,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Meta_Simp_simp_simpStep___closed__1; x_2 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___closed__1; -x_3 = lean_unsigned_to_nat(404u); +x_3 = lean_unsigned_to_nat(406u); x_4 = lean_unsigned_to_nat(13u); x_5 = l_Lean_Meta_Simp_simp_simpStep___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -28503,7 +28586,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Meta_Simp_simp_simpStep___closed__1; x_2 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___closed__1; -x_3 = lean_unsigned_to_nat(462u); +x_3 = lean_unsigned_to_nat(464u); x_4 = lean_unsigned_to_nat(13u); x_5 = l_Lean_Meta_Simp_simp_simpStep___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -33221,7 +33304,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Meta_Simp_simp_simpStep___closed__1; x_2 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___closed__1; -x_3 = lean_unsigned_to_nat(463u); +x_3 = lean_unsigned_to_nat(465u); x_4 = lean_unsigned_to_nat(63u); x_5 = l_Lean_Meta_Simp_simp_simpStep___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -39729,754 +39812,791 @@ static lean_object* _init_l_Lean_Meta_Simp_main___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_transform___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__1___closed__1; -x_2 = lean_unsigned_to_nat(0u); -x_3 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_1); -lean_ctor_set(x_3, 2, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Meta_Simp_main___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_Simp_simp___closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Simp_main(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_EXPORT lean_object* l_Lean_Meta_Simp_main(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: { -uint8_t x_9; -x_9 = !lean_is_exclusive(x_2); -if (x_9 == 0) +uint8_t x_10; +x_10 = !lean_is_exclusive(x_2); +if (x_10 == 0) { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_10 = lean_ctor_get(x_2, 0); -x_11 = l_Lean_Meta_Simp_Config_updateArith(x_10, x_6, x_7, x_8); -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_11, 1); +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; uint8_t x_18; +x_11 = lean_ctor_get(x_2, 0); +x_12 = l_Lean_Meta_Simp_Config_updateArith(x_11, x_7, x_8, x_9); +x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); -lean_dec(x_11); -lean_inc(x_12); -lean_ctor_set(x_2, 0, x_12); -x_14 = !lean_is_exclusive(x_4); -if (x_14 == 0) -{ -lean_object* x_15; uint8_t x_16; -x_15 = lean_ctor_get(x_4, 0); -x_16 = !lean_is_exclusive(x_15); -if (x_16 == 0) -{ -uint8_t x_17; uint8_t 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_17 = lean_ctor_get_uint8(x_12, sizeof(void*)*2 + 6); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); lean_dec(x_12); -x_18 = 2; -lean_ctor_set_uint8(x_15, 5, x_18); -lean_ctor_set_uint8(x_15, 13, x_17); -x_19 = lean_st_ref_get(x_7, x_13); -x_20 = lean_ctor_get(x_19, 1); -lean_inc(x_20); -lean_dec(x_19); -x_21 = l_Lean_Meta_Simp_main___closed__1; -x_22 = lean_st_mk_ref(x_21, x_20); -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_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_23); -x_25 = l_Lean_Meta_Simp_simp(x_1, x_3, x_2, x_23, x_4, x_5, x_6, x_7, x_24); -if (lean_obj_tag(x_25) == 0) +lean_inc(x_13); +lean_ctor_set(x_2, 0, x_13); +x_15 = l_Lean_Meta_transform___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__1___closed__1; +x_16 = lean_unsigned_to_nat(0u); +x_17 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_15); +lean_ctor_set(x_17, 2, x_3); +lean_ctor_set(x_17, 3, x_16); +x_18 = !lean_is_exclusive(x_5); +if (x_18 == 0) { -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; -lean_dec(x_4); -lean_dec(x_6); -lean_dec(x_5); +lean_object* x_19; uint8_t x_20; +x_19 = lean_ctor_get(x_5, 0); +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) +{ +uint8_t x_21; uint8_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; +x_21 = lean_ctor_get_uint8(x_13, sizeof(void*)*2 + 6); +lean_dec(x_13); +x_22 = 2; +lean_ctor_set_uint8(x_19, 5, x_22); +lean_ctor_set_uint8(x_19, 13, x_21); +x_23 = lean_st_ref_get(x_8, x_14); +x_24 = lean_ctor_get(x_23, 1); +lean_inc(x_24); +lean_dec(x_23); +x_25 = lean_st_mk_ref(x_17, x_24); 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 = lean_st_ref_get(x_7, x_27); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_26); +x_28 = l_Lean_Meta_Simp_simp(x_1, x_4, x_2, x_26, x_5, x_6, x_7, x_8, x_27); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; +lean_dec(x_5); lean_dec(x_7); -x_29 = lean_ctor_get(x_28, 1); +lean_dec(x_6); +x_29 = lean_ctor_get(x_28, 0); lean_inc(x_29); +x_30 = lean_ctor_get(x_28, 1); +lean_inc(x_30); lean_dec(x_28); -x_30 = lean_st_ref_get(x_23, x_29); -lean_dec(x_23); -x_31 = !lean_is_exclusive(x_30); -if (x_31 == 0) +x_31 = lean_st_ref_get(x_8, x_30); +lean_dec(x_8); +x_32 = lean_ctor_get(x_31, 1); +lean_inc(x_32); +lean_dec(x_31); +x_33 = lean_st_ref_get(x_26, x_32); +lean_dec(x_26); +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 0) { -lean_object* x_32; -x_32 = lean_ctor_get(x_30, 0); -lean_dec(x_32); -lean_ctor_set(x_30, 0, x_26); -return x_30; +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_33, 0); +x_36 = lean_ctor_get(x_35, 2); +lean_inc(x_36); +lean_dec(x_35); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_29); +lean_ctor_set(x_37, 1, x_36); +lean_ctor_set(x_33, 0, x_37); +return x_33; } else { -lean_object* x_33; lean_object* x_34; -x_33 = lean_ctor_get(x_30, 1); -lean_inc(x_33); -lean_dec(x_30); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_26); -lean_ctor_set(x_34, 1, x_33); -return x_34; +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_38 = lean_ctor_get(x_33, 0); +x_39 = lean_ctor_get(x_33, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_33); +x_40 = lean_ctor_get(x_38, 2); +lean_inc(x_40); +lean_dec(x_38); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_29); +lean_ctor_set(x_41, 1, x_40); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_39); +return x_42; } } else { -uint8_t x_35; -lean_dec(x_23); -x_35 = !lean_is_exclusive(x_25); -if (x_35 == 0) +uint8_t x_43; +lean_dec(x_26); +x_43 = !lean_is_exclusive(x_28); +if (x_43 == 0) { -lean_object* x_36; lean_object* x_37; uint8_t x_38; -x_36 = lean_ctor_get(x_25, 0); -x_37 = lean_ctor_get(x_25, 1); -x_38 = l_Lean_Exception_isMaxHeartbeat(x_36); -if (x_38 == 0) +lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_44 = lean_ctor_get(x_28, 0); +x_45 = lean_ctor_get(x_28, 1); +x_46 = l_Lean_Exception_isMaxHeartbeat(x_44); +if (x_46 == 0) { -lean_dec(x_4); +lean_dec(x_5); +lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_5); -return x_25; +return x_28; } else { -lean_object* x_39; lean_object* x_40; uint8_t x_41; -lean_free_object(x_25); -x_39 = l_Lean_Meta_Simp_main___closed__2; -x_40 = l_Lean_Meta_throwNestedTacticEx___rarg(x_39, x_36, x_4, x_5, x_6, x_7, x_37); -x_41 = !lean_is_exclusive(x_40); -if (x_41 == 0) +lean_object* x_47; lean_object* x_48; uint8_t x_49; +lean_free_object(x_28); +x_47 = l_Lean_Meta_Simp_main___closed__1; +x_48 = l_Lean_Meta_throwNestedTacticEx___rarg(x_47, x_44, x_5, x_6, x_7, x_8, x_45); +x_49 = !lean_is_exclusive(x_48); +if (x_49 == 0) { -return x_40; -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_40, 0); -x_43 = lean_ctor_get(x_40, 1); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_40); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -return x_44; -} -} -} -else -{ -lean_object* x_45; lean_object* x_46; uint8_t x_47; -x_45 = lean_ctor_get(x_25, 0); -x_46 = lean_ctor_get(x_25, 1); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_25); -x_47 = l_Lean_Exception_isMaxHeartbeat(x_45); -if (x_47 == 0) -{ -lean_object* x_48; -lean_dec(x_4); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_45); -lean_ctor_set(x_48, 1, x_46); return x_48; } else { -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_49 = l_Lean_Meta_Simp_main___closed__2; -x_50 = l_Lean_Meta_throwNestedTacticEx___rarg(x_49, x_45, x_4, x_5, x_6, x_7, x_46); -x_51 = lean_ctor_get(x_50, 0); +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_48, 0); +x_51 = lean_ctor_get(x_48, 1); lean_inc(x_51); -x_52 = lean_ctor_get(x_50, 1); -lean_inc(x_52); -if (lean_is_exclusive(x_50)) { - lean_ctor_release(x_50, 0); - lean_ctor_release(x_50, 1); - x_53 = x_50; -} else { - lean_dec_ref(x_50); - x_53 = lean_box(0); +lean_inc(x_50); +lean_dec(x_48); +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +return x_52; } -if (lean_is_scalar(x_53)) { - x_54 = lean_alloc_ctor(1, 2, 0); -} else { - x_54 = x_53; } -lean_ctor_set(x_54, 0, x_51); -lean_ctor_set(x_54, 1, x_52); -return x_54; +} +else +{ +lean_object* x_53; lean_object* x_54; uint8_t x_55; +x_53 = lean_ctor_get(x_28, 0); +x_54 = lean_ctor_get(x_28, 1); +lean_inc(x_54); +lean_inc(x_53); +lean_dec(x_28); +x_55 = l_Lean_Exception_isMaxHeartbeat(x_53); +if (x_55 == 0) +{ +lean_object* x_56; +lean_dec(x_5); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_56 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_56, 0, x_53); +lean_ctor_set(x_56, 1, x_54); +return x_56; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_57 = l_Lean_Meta_Simp_main___closed__1; +x_58 = l_Lean_Meta_throwNestedTacticEx___rarg(x_57, x_53, x_5, x_6, x_7, x_8, x_54); +x_59 = lean_ctor_get(x_58, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_58, 1); +lean_inc(x_60); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_61 = x_58; +} else { + lean_dec_ref(x_58); + x_61 = lean_box(0); +} +if (lean_is_scalar(x_61)) { + x_62 = lean_alloc_ctor(1, 2, 0); +} else { + x_62 = x_61; +} +lean_ctor_set(x_62, 0, x_59); +lean_ctor_set(x_62, 1, x_60); +return x_62; } } } } else { -uint8_t x_55; uint8_t x_56; uint8_t x_57; uint8_t x_58; uint8_t x_59; uint8_t x_60; uint8_t x_61; uint8_t x_62; uint8_t x_63; uint8_t x_64; uint8_t x_65; uint8_t x_66; uint8_t x_67; uint8_t 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; -x_55 = lean_ctor_get_uint8(x_15, 0); -x_56 = lean_ctor_get_uint8(x_15, 1); -x_57 = lean_ctor_get_uint8(x_15, 2); -x_58 = lean_ctor_get_uint8(x_15, 3); -x_59 = lean_ctor_get_uint8(x_15, 4); -x_60 = lean_ctor_get_uint8(x_15, 6); -x_61 = lean_ctor_get_uint8(x_15, 7); -x_62 = lean_ctor_get_uint8(x_15, 8); -x_63 = lean_ctor_get_uint8(x_15, 9); -x_64 = lean_ctor_get_uint8(x_15, 10); -x_65 = lean_ctor_get_uint8(x_15, 11); -x_66 = lean_ctor_get_uint8(x_15, 12); -lean_dec(x_15); -x_67 = lean_ctor_get_uint8(x_12, sizeof(void*)*2 + 6); -lean_dec(x_12); -x_68 = 2; -x_69 = lean_alloc_ctor(0, 0, 14); -lean_ctor_set_uint8(x_69, 0, x_55); -lean_ctor_set_uint8(x_69, 1, x_56); -lean_ctor_set_uint8(x_69, 2, x_57); -lean_ctor_set_uint8(x_69, 3, x_58); -lean_ctor_set_uint8(x_69, 4, x_59); -lean_ctor_set_uint8(x_69, 5, x_68); -lean_ctor_set_uint8(x_69, 6, x_60); -lean_ctor_set_uint8(x_69, 7, x_61); -lean_ctor_set_uint8(x_69, 8, x_62); -lean_ctor_set_uint8(x_69, 9, x_63); -lean_ctor_set_uint8(x_69, 10, x_64); -lean_ctor_set_uint8(x_69, 11, x_65); -lean_ctor_set_uint8(x_69, 12, x_66); -lean_ctor_set_uint8(x_69, 13, x_67); -lean_ctor_set(x_4, 0, x_69); -x_70 = lean_st_ref_get(x_7, x_13); -x_71 = lean_ctor_get(x_70, 1); -lean_inc(x_71); -lean_dec(x_70); -x_72 = l_Lean_Meta_Simp_main___closed__1; -x_73 = lean_st_mk_ref(x_72, x_71); -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_dec(x_73); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_74); -x_76 = l_Lean_Meta_Simp_simp(x_1, x_3, x_2, x_74, x_4, x_5, x_6, x_7, x_75); -if (lean_obj_tag(x_76) == 0) -{ -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_dec(x_4); -lean_dec(x_6); -lean_dec(x_5); -x_77 = lean_ctor_get(x_76, 0); -lean_inc(x_77); -x_78 = lean_ctor_get(x_76, 1); -lean_inc(x_78); -lean_dec(x_76); -x_79 = lean_st_ref_get(x_7, x_78); -lean_dec(x_7); -x_80 = lean_ctor_get(x_79, 1); -lean_inc(x_80); -lean_dec(x_79); -x_81 = lean_st_ref_get(x_74, x_80); -lean_dec(x_74); -x_82 = lean_ctor_get(x_81, 1); +uint8_t x_63; uint8_t x_64; uint8_t x_65; uint8_t x_66; uint8_t x_67; uint8_t x_68; uint8_t x_69; uint8_t x_70; uint8_t x_71; uint8_t x_72; uint8_t x_73; uint8_t x_74; uint8_t x_75; uint8_t 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; +x_63 = lean_ctor_get_uint8(x_19, 0); +x_64 = lean_ctor_get_uint8(x_19, 1); +x_65 = lean_ctor_get_uint8(x_19, 2); +x_66 = lean_ctor_get_uint8(x_19, 3); +x_67 = lean_ctor_get_uint8(x_19, 4); +x_68 = lean_ctor_get_uint8(x_19, 6); +x_69 = lean_ctor_get_uint8(x_19, 7); +x_70 = lean_ctor_get_uint8(x_19, 8); +x_71 = lean_ctor_get_uint8(x_19, 9); +x_72 = lean_ctor_get_uint8(x_19, 10); +x_73 = lean_ctor_get_uint8(x_19, 11); +x_74 = lean_ctor_get_uint8(x_19, 12); +lean_dec(x_19); +x_75 = lean_ctor_get_uint8(x_13, sizeof(void*)*2 + 6); +lean_dec(x_13); +x_76 = 2; +x_77 = lean_alloc_ctor(0, 0, 14); +lean_ctor_set_uint8(x_77, 0, x_63); +lean_ctor_set_uint8(x_77, 1, x_64); +lean_ctor_set_uint8(x_77, 2, x_65); +lean_ctor_set_uint8(x_77, 3, x_66); +lean_ctor_set_uint8(x_77, 4, x_67); +lean_ctor_set_uint8(x_77, 5, x_76); +lean_ctor_set_uint8(x_77, 6, x_68); +lean_ctor_set_uint8(x_77, 7, x_69); +lean_ctor_set_uint8(x_77, 8, x_70); +lean_ctor_set_uint8(x_77, 9, x_71); +lean_ctor_set_uint8(x_77, 10, x_72); +lean_ctor_set_uint8(x_77, 11, x_73); +lean_ctor_set_uint8(x_77, 12, x_74); +lean_ctor_set_uint8(x_77, 13, x_75); +lean_ctor_set(x_5, 0, x_77); +x_78 = lean_st_ref_get(x_8, x_14); +x_79 = lean_ctor_get(x_78, 1); +lean_inc(x_79); +lean_dec(x_78); +x_80 = lean_st_mk_ref(x_17, x_79); +x_81 = lean_ctor_get(x_80, 0); +lean_inc(x_81); +x_82 = lean_ctor_get(x_80, 1); lean_inc(x_82); -if (lean_is_exclusive(x_81)) { - lean_ctor_release(x_81, 0); - lean_ctor_release(x_81, 1); - x_83 = x_81; -} else { - lean_dec_ref(x_81); - x_83 = lean_box(0); -} -if (lean_is_scalar(x_83)) { - x_84 = lean_alloc_ctor(0, 2, 0); -} else { - x_84 = x_83; -} -lean_ctor_set(x_84, 0, x_77); -lean_ctor_set(x_84, 1, x_82); -return x_84; -} -else +lean_dec(x_80); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_81); +x_83 = l_Lean_Meta_Simp_simp(x_1, x_4, x_2, x_81, x_5, x_6, x_7, x_8, x_82); +if (lean_obj_tag(x_83) == 0) { -lean_object* x_85; lean_object* x_86; lean_object* x_87; uint8_t x_88; -lean_dec(x_74); -x_85 = lean_ctor_get(x_76, 0); +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; lean_object* x_93; lean_object* x_94; +lean_dec(x_5); +lean_dec(x_7); +lean_dec(x_6); +x_84 = lean_ctor_get(x_83, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_83, 1); lean_inc(x_85); -x_86 = lean_ctor_get(x_76, 1); -lean_inc(x_86); -if (lean_is_exclusive(x_76)) { - lean_ctor_release(x_76, 0); - lean_ctor_release(x_76, 1); - x_87 = x_76; +lean_dec(x_83); +x_86 = lean_st_ref_get(x_8, x_85); +lean_dec(x_8); +x_87 = lean_ctor_get(x_86, 1); +lean_inc(x_87); +lean_dec(x_86); +x_88 = lean_st_ref_get(x_81, x_87); +lean_dec(x_81); +x_89 = lean_ctor_get(x_88, 0); +lean_inc(x_89); +x_90 = lean_ctor_get(x_88, 1); +lean_inc(x_90); +if (lean_is_exclusive(x_88)) { + lean_ctor_release(x_88, 0); + lean_ctor_release(x_88, 1); + x_91 = x_88; } else { - lean_dec_ref(x_76); - x_87 = lean_box(0); + lean_dec_ref(x_88); + x_91 = lean_box(0); } -x_88 = l_Lean_Exception_isMaxHeartbeat(x_85); -if (x_88 == 0) -{ -lean_object* x_89; -lean_dec(x_4); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -if (lean_is_scalar(x_87)) { - x_89 = lean_alloc_ctor(1, 2, 0); -} else { - x_89 = x_87; -} -lean_ctor_set(x_89, 0, x_85); -lean_ctor_set(x_89, 1, x_86); -return x_89; -} -else -{ -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_dec(x_87); -x_90 = l_Lean_Meta_Simp_main___closed__2; -x_91 = l_Lean_Meta_throwNestedTacticEx___rarg(x_90, x_85, x_4, x_5, x_6, x_7, x_86); -x_92 = lean_ctor_get(x_91, 0); +x_92 = lean_ctor_get(x_89, 2); lean_inc(x_92); -x_93 = lean_ctor_get(x_91, 1); -lean_inc(x_93); -if (lean_is_exclusive(x_91)) { - lean_ctor_release(x_91, 0); - lean_ctor_release(x_91, 1); +lean_dec(x_89); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_84); +lean_ctor_set(x_93, 1, x_92); +if (lean_is_scalar(x_91)) { + x_94 = lean_alloc_ctor(0, 2, 0); +} else { x_94 = x_91; -} else { - lean_dec_ref(x_91); - x_94 = lean_box(0); -} -if (lean_is_scalar(x_94)) { - x_95 = lean_alloc_ctor(1, 2, 0); -} else { - x_95 = x_94; -} -lean_ctor_set(x_95, 0, x_92); -lean_ctor_set(x_95, 1, x_93); -return x_95; -} -} } +lean_ctor_set(x_94, 0, x_93); +lean_ctor_set(x_94, 1, x_90); +return x_94; } else { -lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; uint8_t x_102; uint8_t x_103; uint8_t x_104; uint8_t x_105; uint8_t x_106; uint8_t x_107; uint8_t x_108; uint8_t x_109; uint8_t x_110; uint8_t x_111; uint8_t x_112; uint8_t x_113; lean_object* x_114; uint8_t x_115; uint8_t 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; -x_96 = lean_ctor_get(x_4, 0); -x_97 = lean_ctor_get(x_4, 1); -x_98 = lean_ctor_get(x_4, 2); -x_99 = lean_ctor_get(x_4, 3); -x_100 = lean_ctor_get(x_4, 4); -x_101 = lean_ctor_get(x_4, 5); -lean_inc(x_101); -lean_inc(x_100); -lean_inc(x_99); -lean_inc(x_98); -lean_inc(x_97); +lean_object* x_95; lean_object* x_96; lean_object* x_97; uint8_t x_98; +lean_dec(x_81); +x_95 = lean_ctor_get(x_83, 0); +lean_inc(x_95); +x_96 = lean_ctor_get(x_83, 1); lean_inc(x_96); -lean_dec(x_4); -x_102 = lean_ctor_get_uint8(x_96, 0); -x_103 = lean_ctor_get_uint8(x_96, 1); -x_104 = lean_ctor_get_uint8(x_96, 2); -x_105 = lean_ctor_get_uint8(x_96, 3); -x_106 = lean_ctor_get_uint8(x_96, 4); -x_107 = lean_ctor_get_uint8(x_96, 6); -x_108 = lean_ctor_get_uint8(x_96, 7); -x_109 = lean_ctor_get_uint8(x_96, 8); -x_110 = lean_ctor_get_uint8(x_96, 9); -x_111 = lean_ctor_get_uint8(x_96, 10); -x_112 = lean_ctor_get_uint8(x_96, 11); -x_113 = lean_ctor_get_uint8(x_96, 12); -if (lean_is_exclusive(x_96)) { - x_114 = x_96; +if (lean_is_exclusive(x_83)) { + lean_ctor_release(x_83, 0); + lean_ctor_release(x_83, 1); + x_97 = x_83; } else { - lean_dec_ref(x_96); - x_114 = lean_box(0); + lean_dec_ref(x_83); + x_97 = lean_box(0); } -x_115 = lean_ctor_get_uint8(x_12, sizeof(void*)*2 + 6); -lean_dec(x_12); -x_116 = 2; -if (lean_is_scalar(x_114)) { - x_117 = lean_alloc_ctor(0, 0, 14); +x_98 = l_Lean_Exception_isMaxHeartbeat(x_95); +if (x_98 == 0) +{ +lean_object* x_99; +lean_dec(x_5); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_97)) { + x_99 = lean_alloc_ctor(1, 2, 0); } else { - x_117 = x_114; + x_99 = x_97; } -lean_ctor_set_uint8(x_117, 0, x_102); -lean_ctor_set_uint8(x_117, 1, x_103); -lean_ctor_set_uint8(x_117, 2, x_104); -lean_ctor_set_uint8(x_117, 3, x_105); -lean_ctor_set_uint8(x_117, 4, x_106); -lean_ctor_set_uint8(x_117, 5, x_116); -lean_ctor_set_uint8(x_117, 6, x_107); -lean_ctor_set_uint8(x_117, 7, x_108); -lean_ctor_set_uint8(x_117, 8, x_109); -lean_ctor_set_uint8(x_117, 9, x_110); -lean_ctor_set_uint8(x_117, 10, x_111); -lean_ctor_set_uint8(x_117, 11, x_112); -lean_ctor_set_uint8(x_117, 12, x_113); -lean_ctor_set_uint8(x_117, 13, x_115); -x_118 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_118, 0, x_117); -lean_ctor_set(x_118, 1, x_97); -lean_ctor_set(x_118, 2, x_98); -lean_ctor_set(x_118, 3, x_99); -lean_ctor_set(x_118, 4, x_100); -lean_ctor_set(x_118, 5, x_101); -x_119 = lean_st_ref_get(x_7, x_13); -x_120 = lean_ctor_get(x_119, 1); -lean_inc(x_120); -lean_dec(x_119); -x_121 = l_Lean_Meta_Simp_main___closed__1; -x_122 = lean_st_mk_ref(x_121, x_120); -x_123 = lean_ctor_get(x_122, 0); -lean_inc(x_123); -x_124 = lean_ctor_get(x_122, 1); -lean_inc(x_124); -lean_dec(x_122); +lean_ctor_set(x_99, 0, x_95); +lean_ctor_set(x_99, 1, x_96); +return x_99; +} +else +{ +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_dec(x_97); +x_100 = l_Lean_Meta_Simp_main___closed__1; +x_101 = l_Lean_Meta_throwNestedTacticEx___rarg(x_100, x_95, x_5, x_6, x_7, x_8, x_96); +x_102 = lean_ctor_get(x_101, 0); +lean_inc(x_102); +x_103 = lean_ctor_get(x_101, 1); +lean_inc(x_103); +if (lean_is_exclusive(x_101)) { + lean_ctor_release(x_101, 0); + lean_ctor_release(x_101, 1); + x_104 = x_101; +} else { + lean_dec_ref(x_101); + x_104 = lean_box(0); +} +if (lean_is_scalar(x_104)) { + x_105 = lean_alloc_ctor(1, 2, 0); +} else { + x_105 = x_104; +} +lean_ctor_set(x_105, 0, x_102); +lean_ctor_set(x_105, 1, x_103); +return x_105; +} +} +} +} +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; uint8_t x_112; uint8_t x_113; uint8_t x_114; uint8_t x_115; uint8_t x_116; uint8_t x_117; uint8_t x_118; uint8_t x_119; uint8_t x_120; uint8_t x_121; uint8_t x_122; uint8_t x_123; lean_object* x_124; uint8_t x_125; uint8_t x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_106 = lean_ctor_get(x_5, 0); +x_107 = lean_ctor_get(x_5, 1); +x_108 = lean_ctor_get(x_5, 2); +x_109 = lean_ctor_get(x_5, 3); +x_110 = lean_ctor_get(x_5, 4); +x_111 = lean_ctor_get(x_5, 5); +lean_inc(x_111); +lean_inc(x_110); +lean_inc(x_109); +lean_inc(x_108); +lean_inc(x_107); +lean_inc(x_106); +lean_dec(x_5); +x_112 = lean_ctor_get_uint8(x_106, 0); +x_113 = lean_ctor_get_uint8(x_106, 1); +x_114 = lean_ctor_get_uint8(x_106, 2); +x_115 = lean_ctor_get_uint8(x_106, 3); +x_116 = lean_ctor_get_uint8(x_106, 4); +x_117 = lean_ctor_get_uint8(x_106, 6); +x_118 = lean_ctor_get_uint8(x_106, 7); +x_119 = lean_ctor_get_uint8(x_106, 8); +x_120 = lean_ctor_get_uint8(x_106, 9); +x_121 = lean_ctor_get_uint8(x_106, 10); +x_122 = lean_ctor_get_uint8(x_106, 11); +x_123 = lean_ctor_get_uint8(x_106, 12); +if (lean_is_exclusive(x_106)) { + x_124 = x_106; +} else { + lean_dec_ref(x_106); + x_124 = lean_box(0); +} +x_125 = lean_ctor_get_uint8(x_13, sizeof(void*)*2 + 6); +lean_dec(x_13); +x_126 = 2; +if (lean_is_scalar(x_124)) { + x_127 = lean_alloc_ctor(0, 0, 14); +} else { + x_127 = x_124; +} +lean_ctor_set_uint8(x_127, 0, x_112); +lean_ctor_set_uint8(x_127, 1, x_113); +lean_ctor_set_uint8(x_127, 2, x_114); +lean_ctor_set_uint8(x_127, 3, x_115); +lean_ctor_set_uint8(x_127, 4, x_116); +lean_ctor_set_uint8(x_127, 5, x_126); +lean_ctor_set_uint8(x_127, 6, x_117); +lean_ctor_set_uint8(x_127, 7, x_118); +lean_ctor_set_uint8(x_127, 8, x_119); +lean_ctor_set_uint8(x_127, 9, x_120); +lean_ctor_set_uint8(x_127, 10, x_121); +lean_ctor_set_uint8(x_127, 11, x_122); +lean_ctor_set_uint8(x_127, 12, x_123); +lean_ctor_set_uint8(x_127, 13, x_125); +x_128 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_107); +lean_ctor_set(x_128, 2, x_108); +lean_ctor_set(x_128, 3, x_109); +lean_ctor_set(x_128, 4, x_110); +lean_ctor_set(x_128, 5, x_111); +x_129 = lean_st_ref_get(x_8, x_14); +x_130 = lean_ctor_get(x_129, 1); +lean_inc(x_130); +lean_dec(x_129); +x_131 = lean_st_mk_ref(x_17, x_130); +x_132 = lean_ctor_get(x_131, 0); +lean_inc(x_132); +x_133 = lean_ctor_get(x_131, 1); +lean_inc(x_133); +lean_dec(x_131); +lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_118); -lean_inc(x_123); -x_125 = l_Lean_Meta_Simp_simp(x_1, x_3, x_2, x_123, x_118, x_5, x_6, x_7, x_124); -if (lean_obj_tag(x_125) == 0) +lean_inc(x_128); +lean_inc(x_132); +x_134 = l_Lean_Meta_Simp_simp(x_1, x_4, x_2, x_132, x_128, x_6, x_7, x_8, x_133); +if (lean_obj_tag(x_134) == 0) { -lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; -lean_dec(x_118); -lean_dec(x_6); -lean_dec(x_5); -x_126 = lean_ctor_get(x_125, 0); -lean_inc(x_126); -x_127 = lean_ctor_get(x_125, 1); -lean_inc(x_127); -lean_dec(x_125); -x_128 = lean_st_ref_get(x_7, x_127); -lean_dec(x_7); -x_129 = lean_ctor_get(x_128, 1); -lean_inc(x_129); +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_dec(x_128); -x_130 = lean_st_ref_get(x_123, x_129); -lean_dec(x_123); -x_131 = lean_ctor_get(x_130, 1); -lean_inc(x_131); -if (lean_is_exclusive(x_130)) { - lean_ctor_release(x_130, 0); - lean_ctor_release(x_130, 1); - x_132 = x_130; -} else { - lean_dec_ref(x_130); - x_132 = lean_box(0); -} -if (lean_is_scalar(x_132)) { - x_133 = lean_alloc_ctor(0, 2, 0); -} else { - x_133 = x_132; -} -lean_ctor_set(x_133, 0, x_126); -lean_ctor_set(x_133, 1, x_131); -return x_133; -} -else -{ -lean_object* x_134; lean_object* x_135; lean_object* x_136; uint8_t x_137; -lean_dec(x_123); -x_134 = lean_ctor_get(x_125, 0); -lean_inc(x_134); -x_135 = lean_ctor_get(x_125, 1); -lean_inc(x_135); -if (lean_is_exclusive(x_125)) { - lean_ctor_release(x_125, 0); - lean_ctor_release(x_125, 1); - x_136 = x_125; -} else { - lean_dec_ref(x_125); - x_136 = lean_box(0); -} -x_137 = l_Lean_Exception_isMaxHeartbeat(x_134); -if (x_137 == 0) -{ -lean_object* x_138; -lean_dec(x_118); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_5); -if (lean_is_scalar(x_136)) { - x_138 = lean_alloc_ctor(1, 2, 0); -} else { - x_138 = x_136; -} -lean_ctor_set(x_138, 0, x_134); -lean_ctor_set(x_138, 1, x_135); -return x_138; -} -else -{ -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_dec(x_136); -x_139 = l_Lean_Meta_Simp_main___closed__2; -x_140 = l_Lean_Meta_throwNestedTacticEx___rarg(x_139, x_134, x_118, x_5, x_6, x_7, x_135); -x_141 = lean_ctor_get(x_140, 0); +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_st_ref_get(x_8, x_136); +lean_dec(x_8); +x_138 = lean_ctor_get(x_137, 1); +lean_inc(x_138); +lean_dec(x_137); +x_139 = lean_st_ref_get(x_132, x_138); +lean_dec(x_132); +x_140 = lean_ctor_get(x_139, 0); +lean_inc(x_140); +x_141 = lean_ctor_get(x_139, 1); lean_inc(x_141); -x_142 = lean_ctor_get(x_140, 1); -lean_inc(x_142); -if (lean_is_exclusive(x_140)) { - lean_ctor_release(x_140, 0); - lean_ctor_release(x_140, 1); - x_143 = x_140; +if (lean_is_exclusive(x_139)) { + lean_ctor_release(x_139, 0); + lean_ctor_release(x_139, 1); + x_142 = x_139; } else { - lean_dec_ref(x_140); - x_143 = lean_box(0); + lean_dec_ref(x_139); + x_142 = lean_box(0); } -if (lean_is_scalar(x_143)) { - x_144 = lean_alloc_ctor(1, 2, 0); +x_143 = lean_ctor_get(x_140, 2); +lean_inc(x_143); +lean_dec(x_140); +x_144 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_144, 0, x_135); +lean_ctor_set(x_144, 1, x_143); +if (lean_is_scalar(x_142)) { + x_145 = lean_alloc_ctor(0, 2, 0); } else { - x_144 = x_143; + x_145 = x_142; } -lean_ctor_set(x_144, 0, x_141); -lean_ctor_set(x_144, 1, x_142); -return x_144; +lean_ctor_set(x_145, 0, x_144); +lean_ctor_set(x_145, 1, x_141); +return x_145; +} +else +{ +lean_object* x_146; lean_object* x_147; lean_object* x_148; uint8_t x_149; +lean_dec(x_132); +x_146 = lean_ctor_get(x_134, 0); +lean_inc(x_146); +x_147 = lean_ctor_get(x_134, 1); +lean_inc(x_147); +if (lean_is_exclusive(x_134)) { + lean_ctor_release(x_134, 0); + lean_ctor_release(x_134, 1); + x_148 = x_134; +} else { + lean_dec_ref(x_134); + x_148 = lean_box(0); +} +x_149 = l_Lean_Exception_isMaxHeartbeat(x_146); +if (x_149 == 0) +{ +lean_object* x_150; +lean_dec(x_128); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_148)) { + x_150 = lean_alloc_ctor(1, 2, 0); +} else { + x_150 = x_148; +} +lean_ctor_set(x_150, 0, x_146); +lean_ctor_set(x_150, 1, x_147); +return x_150; +} +else +{ +lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; +lean_dec(x_148); +x_151 = l_Lean_Meta_Simp_main___closed__1; +x_152 = l_Lean_Meta_throwNestedTacticEx___rarg(x_151, x_146, x_128, x_6, x_7, x_8, x_147); +x_153 = lean_ctor_get(x_152, 0); +lean_inc(x_153); +x_154 = lean_ctor_get(x_152, 1); +lean_inc(x_154); +if (lean_is_exclusive(x_152)) { + lean_ctor_release(x_152, 0); + lean_ctor_release(x_152, 1); + x_155 = x_152; +} else { + lean_dec_ref(x_152); + x_155 = lean_box(0); +} +if (lean_is_scalar(x_155)) { + x_156 = lean_alloc_ctor(1, 2, 0); +} else { + x_156 = x_155; +} +lean_ctor_set(x_156, 0, x_153); +lean_ctor_set(x_156, 1, x_154); +return x_156; } } } } else { -lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; uint8_t x_161; uint8_t x_162; uint8_t x_163; uint8_t x_164; uint8_t x_165; uint8_t x_166; uint8_t x_167; uint8_t x_168; uint8_t x_169; uint8_t x_170; uint8_t x_171; uint8_t x_172; lean_object* x_173; uint8_t x_174; uint8_t x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; -x_145 = lean_ctor_get(x_2, 0); -x_146 = lean_ctor_get(x_2, 1); -x_147 = lean_ctor_get(x_2, 2); -x_148 = lean_ctor_get(x_2, 3); -x_149 = lean_ctor_get(x_2, 4); -lean_inc(x_149); -lean_inc(x_148); -lean_inc(x_147); -lean_inc(x_146); -lean_inc(x_145); -lean_dec(x_2); -x_150 = l_Lean_Meta_Simp_Config_updateArith(x_145, x_6, x_7, x_8); -x_151 = lean_ctor_get(x_150, 0); -lean_inc(x_151); -x_152 = lean_ctor_get(x_150, 1); -lean_inc(x_152); -lean_dec(x_150); -lean_inc(x_151); -x_153 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_153, 0, x_151); -lean_ctor_set(x_153, 1, x_146); -lean_ctor_set(x_153, 2, x_147); -lean_ctor_set(x_153, 3, x_148); -lean_ctor_set(x_153, 4, x_149); -x_154 = lean_ctor_get(x_4, 0); -lean_inc(x_154); -x_155 = lean_ctor_get(x_4, 1); -lean_inc(x_155); -x_156 = lean_ctor_get(x_4, 2); -lean_inc(x_156); -x_157 = lean_ctor_get(x_4, 3); -lean_inc(x_157); -x_158 = lean_ctor_get(x_4, 4); -lean_inc(x_158); -x_159 = lean_ctor_get(x_4, 5); +lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; uint8_t x_177; uint8_t x_178; uint8_t x_179; uint8_t x_180; uint8_t x_181; uint8_t x_182; uint8_t x_183; uint8_t x_184; uint8_t x_185; uint8_t x_186; uint8_t x_187; uint8_t x_188; lean_object* x_189; uint8_t x_190; uint8_t x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; +x_157 = lean_ctor_get(x_2, 0); +x_158 = lean_ctor_get(x_2, 1); +x_159 = lean_ctor_get(x_2, 2); +x_160 = lean_ctor_get(x_2, 3); +x_161 = lean_ctor_get(x_2, 4); +x_162 = lean_ctor_get(x_2, 5); +lean_inc(x_162); +lean_inc(x_161); +lean_inc(x_160); lean_inc(x_159); -if (lean_is_exclusive(x_4)) { - lean_ctor_release(x_4, 0); - lean_ctor_release(x_4, 1); - lean_ctor_release(x_4, 2); - lean_ctor_release(x_4, 3); - lean_ctor_release(x_4, 4); - lean_ctor_release(x_4, 5); - x_160 = x_4; +lean_inc(x_158); +lean_inc(x_157); +lean_dec(x_2); +x_163 = l_Lean_Meta_Simp_Config_updateArith(x_157, x_7, x_8, x_9); +x_164 = lean_ctor_get(x_163, 0); +lean_inc(x_164); +x_165 = lean_ctor_get(x_163, 1); +lean_inc(x_165); +lean_dec(x_163); +lean_inc(x_164); +x_166 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_166, 0, x_164); +lean_ctor_set(x_166, 1, x_158); +lean_ctor_set(x_166, 2, x_159); +lean_ctor_set(x_166, 3, x_160); +lean_ctor_set(x_166, 4, x_161); +lean_ctor_set(x_166, 5, x_162); +x_167 = l_Lean_Meta_transform___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__1___closed__1; +x_168 = lean_unsigned_to_nat(0u); +x_169 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_169, 0, x_167); +lean_ctor_set(x_169, 1, x_167); +lean_ctor_set(x_169, 2, x_3); +lean_ctor_set(x_169, 3, x_168); +x_170 = lean_ctor_get(x_5, 0); +lean_inc(x_170); +x_171 = lean_ctor_get(x_5, 1); +lean_inc(x_171); +x_172 = lean_ctor_get(x_5, 2); +lean_inc(x_172); +x_173 = lean_ctor_get(x_5, 3); +lean_inc(x_173); +x_174 = lean_ctor_get(x_5, 4); +lean_inc(x_174); +x_175 = lean_ctor_get(x_5, 5); +lean_inc(x_175); +if (lean_is_exclusive(x_5)) { + lean_ctor_release(x_5, 0); + lean_ctor_release(x_5, 1); + lean_ctor_release(x_5, 2); + lean_ctor_release(x_5, 3); + lean_ctor_release(x_5, 4); + lean_ctor_release(x_5, 5); + x_176 = x_5; } else { - lean_dec_ref(x_4); - x_160 = lean_box(0); + lean_dec_ref(x_5); + x_176 = lean_box(0); } -x_161 = lean_ctor_get_uint8(x_154, 0); -x_162 = lean_ctor_get_uint8(x_154, 1); -x_163 = lean_ctor_get_uint8(x_154, 2); -x_164 = lean_ctor_get_uint8(x_154, 3); -x_165 = lean_ctor_get_uint8(x_154, 4); -x_166 = lean_ctor_get_uint8(x_154, 6); -x_167 = lean_ctor_get_uint8(x_154, 7); -x_168 = lean_ctor_get_uint8(x_154, 8); -x_169 = lean_ctor_get_uint8(x_154, 9); -x_170 = lean_ctor_get_uint8(x_154, 10); -x_171 = lean_ctor_get_uint8(x_154, 11); -x_172 = lean_ctor_get_uint8(x_154, 12); -if (lean_is_exclusive(x_154)) { - x_173 = x_154; +x_177 = lean_ctor_get_uint8(x_170, 0); +x_178 = lean_ctor_get_uint8(x_170, 1); +x_179 = lean_ctor_get_uint8(x_170, 2); +x_180 = lean_ctor_get_uint8(x_170, 3); +x_181 = lean_ctor_get_uint8(x_170, 4); +x_182 = lean_ctor_get_uint8(x_170, 6); +x_183 = lean_ctor_get_uint8(x_170, 7); +x_184 = lean_ctor_get_uint8(x_170, 8); +x_185 = lean_ctor_get_uint8(x_170, 9); +x_186 = lean_ctor_get_uint8(x_170, 10); +x_187 = lean_ctor_get_uint8(x_170, 11); +x_188 = lean_ctor_get_uint8(x_170, 12); +if (lean_is_exclusive(x_170)) { + x_189 = x_170; } else { - lean_dec_ref(x_154); - x_173 = lean_box(0); + lean_dec_ref(x_170); + x_189 = lean_box(0); } -x_174 = lean_ctor_get_uint8(x_151, sizeof(void*)*2 + 6); -lean_dec(x_151); -x_175 = 2; -if (lean_is_scalar(x_173)) { - x_176 = lean_alloc_ctor(0, 0, 14); +x_190 = lean_ctor_get_uint8(x_164, sizeof(void*)*2 + 6); +lean_dec(x_164); +x_191 = 2; +if (lean_is_scalar(x_189)) { + x_192 = lean_alloc_ctor(0, 0, 14); } else { - x_176 = x_173; + x_192 = x_189; } -lean_ctor_set_uint8(x_176, 0, x_161); -lean_ctor_set_uint8(x_176, 1, x_162); -lean_ctor_set_uint8(x_176, 2, x_163); -lean_ctor_set_uint8(x_176, 3, x_164); -lean_ctor_set_uint8(x_176, 4, x_165); -lean_ctor_set_uint8(x_176, 5, x_175); -lean_ctor_set_uint8(x_176, 6, x_166); -lean_ctor_set_uint8(x_176, 7, x_167); -lean_ctor_set_uint8(x_176, 8, x_168); -lean_ctor_set_uint8(x_176, 9, x_169); -lean_ctor_set_uint8(x_176, 10, x_170); -lean_ctor_set_uint8(x_176, 11, x_171); -lean_ctor_set_uint8(x_176, 12, x_172); -lean_ctor_set_uint8(x_176, 13, x_174); -if (lean_is_scalar(x_160)) { - x_177 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set_uint8(x_192, 0, x_177); +lean_ctor_set_uint8(x_192, 1, x_178); +lean_ctor_set_uint8(x_192, 2, x_179); +lean_ctor_set_uint8(x_192, 3, x_180); +lean_ctor_set_uint8(x_192, 4, x_181); +lean_ctor_set_uint8(x_192, 5, x_191); +lean_ctor_set_uint8(x_192, 6, x_182); +lean_ctor_set_uint8(x_192, 7, x_183); +lean_ctor_set_uint8(x_192, 8, x_184); +lean_ctor_set_uint8(x_192, 9, x_185); +lean_ctor_set_uint8(x_192, 10, x_186); +lean_ctor_set_uint8(x_192, 11, x_187); +lean_ctor_set_uint8(x_192, 12, x_188); +lean_ctor_set_uint8(x_192, 13, x_190); +if (lean_is_scalar(x_176)) { + x_193 = lean_alloc_ctor(0, 6, 0); } else { - x_177 = x_160; + x_193 = x_176; } -lean_ctor_set(x_177, 0, x_176); -lean_ctor_set(x_177, 1, x_155); -lean_ctor_set(x_177, 2, x_156); -lean_ctor_set(x_177, 3, x_157); -lean_ctor_set(x_177, 4, x_158); -lean_ctor_set(x_177, 5, x_159); -x_178 = lean_st_ref_get(x_7, x_152); -x_179 = lean_ctor_get(x_178, 1); -lean_inc(x_179); -lean_dec(x_178); -x_180 = l_Lean_Meta_Simp_main___closed__1; -x_181 = lean_st_mk_ref(x_180, x_179); -x_182 = lean_ctor_get(x_181, 0); -lean_inc(x_182); -x_183 = lean_ctor_get(x_181, 1); -lean_inc(x_183); -lean_dec(x_181); +lean_ctor_set(x_193, 0, x_192); +lean_ctor_set(x_193, 1, x_171); +lean_ctor_set(x_193, 2, x_172); +lean_ctor_set(x_193, 3, x_173); +lean_ctor_set(x_193, 4, x_174); +lean_ctor_set(x_193, 5, x_175); +x_194 = lean_st_ref_get(x_8, x_165); +x_195 = lean_ctor_get(x_194, 1); +lean_inc(x_195); +lean_dec(x_194); +x_196 = lean_st_mk_ref(x_169, x_195); +x_197 = lean_ctor_get(x_196, 0); +lean_inc(x_197); +x_198 = lean_ctor_get(x_196, 1); +lean_inc(x_198); +lean_dec(x_196); +lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_177); -lean_inc(x_182); -x_184 = l_Lean_Meta_Simp_simp(x_1, x_3, x_153, x_182, x_177, x_5, x_6, x_7, x_183); -if (lean_obj_tag(x_184) == 0) -{ -lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; -lean_dec(x_177); -lean_dec(x_6); -lean_dec(x_5); -x_185 = lean_ctor_get(x_184, 0); -lean_inc(x_185); -x_186 = lean_ctor_get(x_184, 1); -lean_inc(x_186); -lean_dec(x_184); -x_187 = lean_st_ref_get(x_7, x_186); -lean_dec(x_7); -x_188 = lean_ctor_get(x_187, 1); -lean_inc(x_188); -lean_dec(x_187); -x_189 = lean_st_ref_get(x_182, x_188); -lean_dec(x_182); -x_190 = lean_ctor_get(x_189, 1); -lean_inc(x_190); -if (lean_is_exclusive(x_189)) { - lean_ctor_release(x_189, 0); - lean_ctor_release(x_189, 1); - x_191 = x_189; -} else { - lean_dec_ref(x_189); - x_191 = lean_box(0); -} -if (lean_is_scalar(x_191)) { - x_192 = lean_alloc_ctor(0, 2, 0); -} else { - x_192 = x_191; -} -lean_ctor_set(x_192, 0, x_185); -lean_ctor_set(x_192, 1, x_190); -return x_192; -} -else -{ -lean_object* x_193; lean_object* x_194; lean_object* x_195; uint8_t x_196; -lean_dec(x_182); -x_193 = lean_ctor_get(x_184, 0); lean_inc(x_193); -x_194 = lean_ctor_get(x_184, 1); -lean_inc(x_194); -if (lean_is_exclusive(x_184)) { - lean_ctor_release(x_184, 0); - lean_ctor_release(x_184, 1); - x_195 = x_184; -} else { - lean_dec_ref(x_184); - x_195 = lean_box(0); -} -x_196 = l_Lean_Exception_isMaxHeartbeat(x_193); -if (x_196 == 0) +lean_inc(x_197); +x_199 = l_Lean_Meta_Simp_simp(x_1, x_4, x_166, x_197, x_193, x_6, x_7, x_8, x_198); +if (lean_obj_tag(x_199) == 0) { -lean_object* x_197; -lean_dec(x_177); +lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; +lean_dec(x_193); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_5); -if (lean_is_scalar(x_195)) { - x_197 = lean_alloc_ctor(1, 2, 0); -} else { - x_197 = x_195; -} -lean_ctor_set(x_197, 0, x_193); -lean_ctor_set(x_197, 1, x_194); -return x_197; -} -else -{ -lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; -lean_dec(x_195); -x_198 = l_Lean_Meta_Simp_main___closed__2; -x_199 = l_Lean_Meta_throwNestedTacticEx___rarg(x_198, x_193, x_177, x_5, x_6, x_7, x_194); x_200 = lean_ctor_get(x_199, 0); lean_inc(x_200); x_201 = lean_ctor_get(x_199, 1); lean_inc(x_201); +lean_dec(x_199); +x_202 = lean_st_ref_get(x_8, x_201); +lean_dec(x_8); +x_203 = lean_ctor_get(x_202, 1); +lean_inc(x_203); +lean_dec(x_202); +x_204 = lean_st_ref_get(x_197, x_203); +lean_dec(x_197); +x_205 = lean_ctor_get(x_204, 0); +lean_inc(x_205); +x_206 = lean_ctor_get(x_204, 1); +lean_inc(x_206); +if (lean_is_exclusive(x_204)) { + lean_ctor_release(x_204, 0); + lean_ctor_release(x_204, 1); + x_207 = x_204; +} else { + lean_dec_ref(x_204); + x_207 = lean_box(0); +} +x_208 = lean_ctor_get(x_205, 2); +lean_inc(x_208); +lean_dec(x_205); +x_209 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_209, 0, x_200); +lean_ctor_set(x_209, 1, x_208); +if (lean_is_scalar(x_207)) { + x_210 = lean_alloc_ctor(0, 2, 0); +} else { + x_210 = x_207; +} +lean_ctor_set(x_210, 0, x_209); +lean_ctor_set(x_210, 1, x_206); +return x_210; +} +else +{ +lean_object* x_211; lean_object* x_212; lean_object* x_213; uint8_t x_214; +lean_dec(x_197); +x_211 = lean_ctor_get(x_199, 0); +lean_inc(x_211); +x_212 = lean_ctor_get(x_199, 1); +lean_inc(x_212); if (lean_is_exclusive(x_199)) { lean_ctor_release(x_199, 0); lean_ctor_release(x_199, 1); - x_202 = x_199; + x_213 = x_199; } else { lean_dec_ref(x_199); - x_202 = lean_box(0); + x_213 = lean_box(0); } -if (lean_is_scalar(x_202)) { - x_203 = lean_alloc_ctor(1, 2, 0); +x_214 = l_Lean_Exception_isMaxHeartbeat(x_211); +if (x_214 == 0) +{ +lean_object* x_215; +lean_dec(x_193); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_213)) { + x_215 = lean_alloc_ctor(1, 2, 0); } else { - x_203 = x_202; + x_215 = x_213; } -lean_ctor_set(x_203, 0, x_200); -lean_ctor_set(x_203, 1, x_201); -return x_203; +lean_ctor_set(x_215, 0, x_211); +lean_ctor_set(x_215, 1, x_212); +return x_215; +} +else +{ +lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; +lean_dec(x_213); +x_216 = l_Lean_Meta_Simp_main___closed__1; +x_217 = l_Lean_Meta_throwNestedTacticEx___rarg(x_216, x_211, x_193, x_6, x_7, x_8, x_212); +x_218 = lean_ctor_get(x_217, 0); +lean_inc(x_218); +x_219 = lean_ctor_get(x_217, 1); +lean_inc(x_219); +if (lean_is_exclusive(x_217)) { + lean_ctor_release(x_217, 0); + lean_ctor_release(x_217, 1); + x_220 = x_217; +} else { + lean_dec_ref(x_217); + x_220 = lean_box(0); +} +if (lean_is_scalar(x_220)) { + x_221 = lean_alloc_ctor(1, 2, 0); +} else { + x_221 = x_220; +} +lean_ctor_set(x_221, 0, x_218); +lean_ctor_set(x_221, 1, x_219); +return x_221; } } } @@ -40500,509 +40620,542 @@ x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Simp_dsimpMain(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_EXPORT lean_object* l_Lean_Meta_Simp_dsimpMain(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: { -uint8_t x_9; -x_9 = !lean_is_exclusive(x_4); -if (x_9 == 0) +lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_10 = l_Lean_Meta_transform___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__1___closed__1; +x_11 = lean_unsigned_to_nat(0u); +x_12 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_10); +lean_ctor_set(x_12, 2, x_3); +lean_ctor_set(x_12, 3, x_11); +x_13 = !lean_is_exclusive(x_5); +if (x_13 == 0) { -lean_object* x_10; uint8_t x_11; -x_10 = lean_ctor_get(x_4, 0); -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) +lean_object* x_14; uint8_t x_15; +x_14 = lean_ctor_get(x_5, 0); +x_15 = !lean_is_exclusive(x_14); +if (x_15 == 0) { -lean_object* x_12; uint8_t x_13; uint8_t 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; -x_12 = lean_ctor_get(x_2, 0); -lean_inc(x_12); -x_13 = lean_ctor_get_uint8(x_12, sizeof(void*)*2 + 6); -lean_dec(x_12); -x_14 = 2; -lean_ctor_set_uint8(x_10, 5, x_14); -lean_ctor_set_uint8(x_10, 13, x_13); -x_15 = lean_st_ref_get(x_7, x_8); -x_16 = lean_ctor_get(x_15, 1); +lean_object* x_16; uint8_t x_17; uint8_t 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; +x_16 = lean_ctor_get(x_2, 0); lean_inc(x_16); -lean_dec(x_15); -x_17 = l_Lean_Meta_Simp_main___closed__1; -x_18 = lean_st_mk_ref(x_17, x_16); -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); +x_17 = lean_ctor_get_uint8(x_16, sizeof(void*)*2 + 6); +lean_dec(x_16); +x_18 = 2; +lean_ctor_set_uint8(x_14, 5, x_18); +lean_ctor_set_uint8(x_14, 13, x_17); +x_19 = lean_st_ref_get(x_8, x_9); +x_20 = lean_ctor_get(x_19, 1); lean_inc(x_20); -lean_dec(x_18); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_19); -x_21 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp(x_1, x_3, x_2, x_19, x_4, x_5, x_6, x_7, x_20); -if (lean_obj_tag(x_21) == 0) -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; -lean_dec(x_4); -lean_dec(x_6); -lean_dec(x_5); +lean_dec(x_19); +x_21 = lean_st_mk_ref(x_12, x_20); x_22 = lean_ctor_get(x_21, 0); lean_inc(x_22); x_23 = lean_ctor_get(x_21, 1); lean_inc(x_23); lean_dec(x_21); -x_24 = lean_st_ref_get(x_7, x_23); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_22); +x_24 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp(x_1, x_4, x_2, x_22, x_5, x_6, x_7, x_8, x_23); +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; +lean_dec(x_5); lean_dec(x_7); -x_25 = lean_ctor_get(x_24, 1); +lean_dec(x_6); +x_25 = lean_ctor_get(x_24, 0); lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); lean_dec(x_24); -x_26 = lean_st_ref_get(x_19, x_25); -lean_dec(x_19); -x_27 = !lean_is_exclusive(x_26); -if (x_27 == 0) +x_27 = lean_st_ref_get(x_8, x_26); +lean_dec(x_8); +x_28 = lean_ctor_get(x_27, 1); +lean_inc(x_28); +lean_dec(x_27); +x_29 = lean_st_ref_get(x_22, x_28); +lean_dec(x_22); +x_30 = !lean_is_exclusive(x_29); +if (x_30 == 0) { -lean_object* x_28; -x_28 = lean_ctor_get(x_26, 0); -lean_dec(x_28); -lean_ctor_set(x_26, 0, x_22); -return x_26; +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_29, 0); +x_32 = lean_ctor_get(x_31, 2); +lean_inc(x_32); +lean_dec(x_31); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_25); +lean_ctor_set(x_33, 1, x_32); +lean_ctor_set(x_29, 0, x_33); +return x_29; } else { -lean_object* x_29; lean_object* x_30; -x_29 = lean_ctor_get(x_26, 1); -lean_inc(x_29); -lean_dec(x_26); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_22); -lean_ctor_set(x_30, 1, x_29); -return x_30; +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_34 = lean_ctor_get(x_29, 0); +x_35 = lean_ctor_get(x_29, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_29); +x_36 = lean_ctor_get(x_34, 2); +lean_inc(x_36); +lean_dec(x_34); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_25); +lean_ctor_set(x_37, 1, x_36); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_35); +return x_38; } } else { -uint8_t x_31; -lean_dec(x_19); -x_31 = !lean_is_exclusive(x_21); -if (x_31 == 0) +uint8_t x_39; +lean_dec(x_22); +x_39 = !lean_is_exclusive(x_24); +if (x_39 == 0) { -lean_object* x_32; lean_object* x_33; uint8_t x_34; -x_32 = lean_ctor_get(x_21, 0); -x_33 = lean_ctor_get(x_21, 1); -x_34 = l_Lean_Exception_isMaxHeartbeat(x_32); -if (x_34 == 0) +lean_object* x_40; lean_object* x_41; uint8_t x_42; +x_40 = lean_ctor_get(x_24, 0); +x_41 = lean_ctor_get(x_24, 1); +x_42 = l_Lean_Exception_isMaxHeartbeat(x_40); +if (x_42 == 0) { -lean_dec(x_4); +lean_dec(x_5); +lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_5); -return x_21; +return x_24; } else { -lean_object* x_35; lean_object* x_36; uint8_t x_37; -lean_free_object(x_21); -x_35 = l_Lean_Meta_Simp_dsimpMain___closed__2; -x_36 = l_Lean_Meta_throwNestedTacticEx___rarg(x_35, x_32, x_4, x_5, x_6, x_7, x_33); -x_37 = !lean_is_exclusive(x_36); -if (x_37 == 0) +lean_object* x_43; lean_object* x_44; uint8_t x_45; +lean_free_object(x_24); +x_43 = l_Lean_Meta_Simp_dsimpMain___closed__2; +x_44 = l_Lean_Meta_throwNestedTacticEx___rarg(x_43, x_40, x_5, x_6, x_7, x_8, x_41); +x_45 = !lean_is_exclusive(x_44); +if (x_45 == 0) { -return x_36; -} -else -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_36, 0); -x_39 = lean_ctor_get(x_36, 1); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_36); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -return x_40; -} -} -} -else -{ -lean_object* x_41; lean_object* x_42; uint8_t x_43; -x_41 = lean_ctor_get(x_21, 0); -x_42 = lean_ctor_get(x_21, 1); -lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_21); -x_43 = l_Lean_Exception_isMaxHeartbeat(x_41); -if (x_43 == 0) -{ -lean_object* x_44; -lean_dec(x_4); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_41); -lean_ctor_set(x_44, 1, x_42); return x_44; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_45 = l_Lean_Meta_Simp_dsimpMain___closed__2; -x_46 = l_Lean_Meta_throwNestedTacticEx___rarg(x_45, x_41, x_4, x_5, x_6, x_7, x_42); -x_47 = lean_ctor_get(x_46, 0); +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_44, 0); +x_47 = lean_ctor_get(x_44, 1); lean_inc(x_47); -x_48 = lean_ctor_get(x_46, 1); -lean_inc(x_48); -if (lean_is_exclusive(x_46)) { - lean_ctor_release(x_46, 0); - lean_ctor_release(x_46, 1); - x_49 = x_46; -} else { - lean_dec_ref(x_46); - x_49 = lean_box(0); +lean_inc(x_46); +lean_dec(x_44); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; } -if (lean_is_scalar(x_49)) { - x_50 = lean_alloc_ctor(1, 2, 0); -} else { - x_50 = x_49; } -lean_ctor_set(x_50, 0, x_47); -lean_ctor_set(x_50, 1, x_48); -return x_50; +} +else +{ +lean_object* x_49; lean_object* x_50; uint8_t x_51; +x_49 = lean_ctor_get(x_24, 0); +x_50 = lean_ctor_get(x_24, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_24); +x_51 = l_Lean_Exception_isMaxHeartbeat(x_49); +if (x_51 == 0) +{ +lean_object* x_52; +lean_dec(x_5); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_49); +lean_ctor_set(x_52, 1, x_50); +return x_52; +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_53 = l_Lean_Meta_Simp_dsimpMain___closed__2; +x_54 = l_Lean_Meta_throwNestedTacticEx___rarg(x_53, x_49, x_5, x_6, x_7, x_8, x_50); +x_55 = lean_ctor_get(x_54, 0); +lean_inc(x_55); +x_56 = lean_ctor_get(x_54, 1); +lean_inc(x_56); +if (lean_is_exclusive(x_54)) { + lean_ctor_release(x_54, 0); + lean_ctor_release(x_54, 1); + x_57 = x_54; +} else { + lean_dec_ref(x_54); + x_57 = lean_box(0); +} +if (lean_is_scalar(x_57)) { + x_58 = lean_alloc_ctor(1, 2, 0); +} else { + x_58 = x_57; +} +lean_ctor_set(x_58, 0, x_55); +lean_ctor_set(x_58, 1, x_56); +return x_58; } } } } else { -uint8_t x_51; uint8_t x_52; uint8_t x_53; uint8_t x_54; uint8_t x_55; uint8_t x_56; uint8_t x_57; uint8_t x_58; uint8_t x_59; uint8_t x_60; uint8_t x_61; uint8_t x_62; lean_object* x_63; uint8_t x_64; uint8_t 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_51 = lean_ctor_get_uint8(x_10, 0); -x_52 = lean_ctor_get_uint8(x_10, 1); -x_53 = lean_ctor_get_uint8(x_10, 2); -x_54 = lean_ctor_get_uint8(x_10, 3); -x_55 = lean_ctor_get_uint8(x_10, 4); -x_56 = lean_ctor_get_uint8(x_10, 6); -x_57 = lean_ctor_get_uint8(x_10, 7); -x_58 = lean_ctor_get_uint8(x_10, 8); -x_59 = lean_ctor_get_uint8(x_10, 9); -x_60 = lean_ctor_get_uint8(x_10, 10); -x_61 = lean_ctor_get_uint8(x_10, 11); -x_62 = lean_ctor_get_uint8(x_10, 12); -lean_dec(x_10); -x_63 = lean_ctor_get(x_2, 0); -lean_inc(x_63); -x_64 = lean_ctor_get_uint8(x_63, sizeof(void*)*2 + 6); -lean_dec(x_63); -x_65 = 2; -x_66 = lean_alloc_ctor(0, 0, 14); -lean_ctor_set_uint8(x_66, 0, x_51); -lean_ctor_set_uint8(x_66, 1, x_52); -lean_ctor_set_uint8(x_66, 2, x_53); -lean_ctor_set_uint8(x_66, 3, x_54); -lean_ctor_set_uint8(x_66, 4, x_55); -lean_ctor_set_uint8(x_66, 5, x_65); -lean_ctor_set_uint8(x_66, 6, x_56); -lean_ctor_set_uint8(x_66, 7, x_57); -lean_ctor_set_uint8(x_66, 8, x_58); -lean_ctor_set_uint8(x_66, 9, x_59); -lean_ctor_set_uint8(x_66, 10, x_60); -lean_ctor_set_uint8(x_66, 11, x_61); -lean_ctor_set_uint8(x_66, 12, x_62); -lean_ctor_set_uint8(x_66, 13, x_64); -lean_ctor_set(x_4, 0, x_66); -x_67 = lean_st_ref_get(x_7, x_8); -x_68 = lean_ctor_get(x_67, 1); -lean_inc(x_68); -lean_dec(x_67); -x_69 = l_Lean_Meta_Simp_main___closed__1; -x_70 = lean_st_mk_ref(x_69, x_68); -x_71 = lean_ctor_get(x_70, 0); +uint8_t x_59; uint8_t x_60; uint8_t x_61; uint8_t x_62; uint8_t x_63; uint8_t x_64; uint8_t x_65; uint8_t x_66; uint8_t x_67; uint8_t x_68; uint8_t x_69; uint8_t x_70; lean_object* x_71; uint8_t x_72; uint8_t 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; +x_59 = lean_ctor_get_uint8(x_14, 0); +x_60 = lean_ctor_get_uint8(x_14, 1); +x_61 = lean_ctor_get_uint8(x_14, 2); +x_62 = lean_ctor_get_uint8(x_14, 3); +x_63 = lean_ctor_get_uint8(x_14, 4); +x_64 = lean_ctor_get_uint8(x_14, 6); +x_65 = lean_ctor_get_uint8(x_14, 7); +x_66 = lean_ctor_get_uint8(x_14, 8); +x_67 = lean_ctor_get_uint8(x_14, 9); +x_68 = lean_ctor_get_uint8(x_14, 10); +x_69 = lean_ctor_get_uint8(x_14, 11); +x_70 = lean_ctor_get_uint8(x_14, 12); +lean_dec(x_14); +x_71 = lean_ctor_get(x_2, 0); lean_inc(x_71); -x_72 = lean_ctor_get(x_70, 1); -lean_inc(x_72); -lean_dec(x_70); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_71); -x_73 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp(x_1, x_3, x_2, x_71, x_4, x_5, x_6, x_7, x_72); -if (lean_obj_tag(x_73) == 0) -{ -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_dec(x_4); -lean_dec(x_6); -lean_dec(x_5); -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_dec(x_73); -x_76 = lean_st_ref_get(x_7, x_75); -lean_dec(x_7); -x_77 = lean_ctor_get(x_76, 1); -lean_inc(x_77); -lean_dec(x_76); -x_78 = lean_st_ref_get(x_71, x_77); +x_72 = lean_ctor_get_uint8(x_71, sizeof(void*)*2 + 6); lean_dec(x_71); -x_79 = lean_ctor_get(x_78, 1); +x_73 = 2; +x_74 = lean_alloc_ctor(0, 0, 14); +lean_ctor_set_uint8(x_74, 0, x_59); +lean_ctor_set_uint8(x_74, 1, x_60); +lean_ctor_set_uint8(x_74, 2, x_61); +lean_ctor_set_uint8(x_74, 3, x_62); +lean_ctor_set_uint8(x_74, 4, x_63); +lean_ctor_set_uint8(x_74, 5, x_73); +lean_ctor_set_uint8(x_74, 6, x_64); +lean_ctor_set_uint8(x_74, 7, x_65); +lean_ctor_set_uint8(x_74, 8, x_66); +lean_ctor_set_uint8(x_74, 9, x_67); +lean_ctor_set_uint8(x_74, 10, x_68); +lean_ctor_set_uint8(x_74, 11, x_69); +lean_ctor_set_uint8(x_74, 12, x_70); +lean_ctor_set_uint8(x_74, 13, x_72); +lean_ctor_set(x_5, 0, x_74); +x_75 = lean_st_ref_get(x_8, x_9); +x_76 = lean_ctor_get(x_75, 1); +lean_inc(x_76); +lean_dec(x_75); +x_77 = lean_st_mk_ref(x_12, x_76); +x_78 = lean_ctor_get(x_77, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_77, 1); lean_inc(x_79); -if (lean_is_exclusive(x_78)) { - lean_ctor_release(x_78, 0); - lean_ctor_release(x_78, 1); - x_80 = x_78; -} else { - lean_dec_ref(x_78); - x_80 = lean_box(0); -} -if (lean_is_scalar(x_80)) { - x_81 = lean_alloc_ctor(0, 2, 0); -} else { - x_81 = x_80; -} -lean_ctor_set(x_81, 0, x_74); -lean_ctor_set(x_81, 1, x_79); -return x_81; -} -else -{ -lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; -lean_dec(x_71); -x_82 = lean_ctor_get(x_73, 0); -lean_inc(x_82); -x_83 = lean_ctor_get(x_73, 1); -lean_inc(x_83); -if (lean_is_exclusive(x_73)) { - lean_ctor_release(x_73, 0); - lean_ctor_release(x_73, 1); - x_84 = x_73; -} else { - lean_dec_ref(x_73); - x_84 = lean_box(0); -} -x_85 = l_Lean_Exception_isMaxHeartbeat(x_82); -if (x_85 == 0) -{ -lean_object* x_86; -lean_dec(x_4); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -if (lean_is_scalar(x_84)) { - x_86 = lean_alloc_ctor(1, 2, 0); -} else { - x_86 = x_84; -} -lean_ctor_set(x_86, 0, x_82); -lean_ctor_set(x_86, 1, x_83); -return x_86; -} -else -{ -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_dec(x_84); -x_87 = l_Lean_Meta_Simp_dsimpMain___closed__2; -x_88 = l_Lean_Meta_throwNestedTacticEx___rarg(x_87, x_82, x_4, x_5, x_6, x_7, x_83); -x_89 = lean_ctor_get(x_88, 0); -lean_inc(x_89); -x_90 = lean_ctor_get(x_88, 1); -lean_inc(x_90); -if (lean_is_exclusive(x_88)) { - lean_ctor_release(x_88, 0); - lean_ctor_release(x_88, 1); - x_91 = x_88; -} else { - lean_dec_ref(x_88); - x_91 = lean_box(0); -} -if (lean_is_scalar(x_91)) { - x_92 = lean_alloc_ctor(1, 2, 0); -} else { - x_92 = x_91; -} -lean_ctor_set(x_92, 0, x_89); -lean_ctor_set(x_92, 1, x_90); -return x_92; -} -} -} -} -else -{ -lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; uint8_t x_99; uint8_t x_100; uint8_t x_101; uint8_t x_102; uint8_t x_103; uint8_t x_104; uint8_t x_105; uint8_t x_106; uint8_t x_107; uint8_t x_108; uint8_t x_109; uint8_t x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; uint8_t 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; -x_93 = lean_ctor_get(x_4, 0); -x_94 = lean_ctor_get(x_4, 1); -x_95 = lean_ctor_get(x_4, 2); -x_96 = lean_ctor_get(x_4, 3); -x_97 = lean_ctor_get(x_4, 4); -x_98 = lean_ctor_get(x_4, 5); -lean_inc(x_98); -lean_inc(x_97); -lean_inc(x_96); -lean_inc(x_95); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_4); -x_99 = lean_ctor_get_uint8(x_93, 0); -x_100 = lean_ctor_get_uint8(x_93, 1); -x_101 = lean_ctor_get_uint8(x_93, 2); -x_102 = lean_ctor_get_uint8(x_93, 3); -x_103 = lean_ctor_get_uint8(x_93, 4); -x_104 = lean_ctor_get_uint8(x_93, 6); -x_105 = lean_ctor_get_uint8(x_93, 7); -x_106 = lean_ctor_get_uint8(x_93, 8); -x_107 = lean_ctor_get_uint8(x_93, 9); -x_108 = lean_ctor_get_uint8(x_93, 10); -x_109 = lean_ctor_get_uint8(x_93, 11); -x_110 = lean_ctor_get_uint8(x_93, 12); -if (lean_is_exclusive(x_93)) { - x_111 = x_93; -} else { - lean_dec_ref(x_93); - x_111 = lean_box(0); -} -x_112 = lean_ctor_get(x_2, 0); -lean_inc(x_112); -x_113 = lean_ctor_get_uint8(x_112, sizeof(void*)*2 + 6); -lean_dec(x_112); -x_114 = 2; -if (lean_is_scalar(x_111)) { - x_115 = lean_alloc_ctor(0, 0, 14); -} else { - x_115 = x_111; -} -lean_ctor_set_uint8(x_115, 0, x_99); -lean_ctor_set_uint8(x_115, 1, x_100); -lean_ctor_set_uint8(x_115, 2, x_101); -lean_ctor_set_uint8(x_115, 3, x_102); -lean_ctor_set_uint8(x_115, 4, x_103); -lean_ctor_set_uint8(x_115, 5, x_114); -lean_ctor_set_uint8(x_115, 6, x_104); -lean_ctor_set_uint8(x_115, 7, x_105); -lean_ctor_set_uint8(x_115, 8, x_106); -lean_ctor_set_uint8(x_115, 9, x_107); -lean_ctor_set_uint8(x_115, 10, x_108); -lean_ctor_set_uint8(x_115, 11, x_109); -lean_ctor_set_uint8(x_115, 12, x_110); -lean_ctor_set_uint8(x_115, 13, x_113); -x_116 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_116, 0, x_115); -lean_ctor_set(x_116, 1, x_94); -lean_ctor_set(x_116, 2, x_95); -lean_ctor_set(x_116, 3, x_96); -lean_ctor_set(x_116, 4, x_97); -lean_ctor_set(x_116, 5, x_98); -x_117 = lean_st_ref_get(x_7, x_8); -x_118 = lean_ctor_get(x_117, 1); -lean_inc(x_118); -lean_dec(x_117); -x_119 = l_Lean_Meta_Simp_main___closed__1; -x_120 = lean_st_mk_ref(x_119, x_118); -x_121 = lean_ctor_get(x_120, 0); -lean_inc(x_121); -x_122 = lean_ctor_get(x_120, 1); -lean_inc(x_122); -lean_dec(x_120); +lean_dec(x_77); +lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_116); -lean_inc(x_121); -x_123 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp(x_1, x_3, x_2, x_121, x_116, x_5, x_6, x_7, x_122); -if (lean_obj_tag(x_123) == 0) +lean_inc(x_78); +x_80 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp(x_1, x_4, x_2, x_78, x_5, x_6, x_7, x_8, x_79); +if (lean_obj_tag(x_80) == 0) { -lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; -lean_dec(x_116); -lean_dec(x_6); +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_dec(x_5); -x_124 = lean_ctor_get(x_123, 0); -lean_inc(x_124); -x_125 = lean_ctor_get(x_123, 1); -lean_inc(x_125); -lean_dec(x_123); -x_126 = lean_st_ref_get(x_7, x_125); lean_dec(x_7); -x_127 = lean_ctor_get(x_126, 1); -lean_inc(x_127); +lean_dec(x_6); +x_81 = lean_ctor_get(x_80, 0); +lean_inc(x_81); +x_82 = lean_ctor_get(x_80, 1); +lean_inc(x_82); +lean_dec(x_80); +x_83 = lean_st_ref_get(x_8, x_82); +lean_dec(x_8); +x_84 = lean_ctor_get(x_83, 1); +lean_inc(x_84); +lean_dec(x_83); +x_85 = lean_st_ref_get(x_78, x_84); +lean_dec(x_78); +x_86 = lean_ctor_get(x_85, 0); +lean_inc(x_86); +x_87 = lean_ctor_get(x_85, 1); +lean_inc(x_87); +if (lean_is_exclusive(x_85)) { + lean_ctor_release(x_85, 0); + lean_ctor_release(x_85, 1); + x_88 = x_85; +} else { + lean_dec_ref(x_85); + x_88 = lean_box(0); +} +x_89 = lean_ctor_get(x_86, 2); +lean_inc(x_89); +lean_dec(x_86); +x_90 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_90, 0, x_81); +lean_ctor_set(x_90, 1, x_89); +if (lean_is_scalar(x_88)) { + x_91 = lean_alloc_ctor(0, 2, 0); +} else { + x_91 = x_88; +} +lean_ctor_set(x_91, 0, x_90); +lean_ctor_set(x_91, 1, x_87); +return x_91; +} +else +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; uint8_t x_95; +lean_dec(x_78); +x_92 = lean_ctor_get(x_80, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_80, 1); +lean_inc(x_93); +if (lean_is_exclusive(x_80)) { + lean_ctor_release(x_80, 0); + lean_ctor_release(x_80, 1); + x_94 = x_80; +} else { + lean_dec_ref(x_80); + x_94 = lean_box(0); +} +x_95 = l_Lean_Exception_isMaxHeartbeat(x_92); +if (x_95 == 0) +{ +lean_object* x_96; +lean_dec(x_5); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_94)) { + x_96 = lean_alloc_ctor(1, 2, 0); +} else { + x_96 = x_94; +} +lean_ctor_set(x_96, 0, x_92); +lean_ctor_set(x_96, 1, x_93); +return x_96; +} +else +{ +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_dec(x_94); +x_97 = l_Lean_Meta_Simp_dsimpMain___closed__2; +x_98 = l_Lean_Meta_throwNestedTacticEx___rarg(x_97, x_92, x_5, x_6, x_7, x_8, x_93); +x_99 = lean_ctor_get(x_98, 0); +lean_inc(x_99); +x_100 = lean_ctor_get(x_98, 1); +lean_inc(x_100); +if (lean_is_exclusive(x_98)) { + lean_ctor_release(x_98, 0); + lean_ctor_release(x_98, 1); + x_101 = x_98; +} else { + lean_dec_ref(x_98); + x_101 = lean_box(0); +} +if (lean_is_scalar(x_101)) { + x_102 = lean_alloc_ctor(1, 2, 0); +} else { + x_102 = x_101; +} +lean_ctor_set(x_102, 0, x_99); +lean_ctor_set(x_102, 1, x_100); +return x_102; +} +} +} +} +else +{ +lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; uint8_t x_109; uint8_t x_110; uint8_t x_111; uint8_t x_112; uint8_t x_113; uint8_t x_114; uint8_t x_115; uint8_t x_116; uint8_t x_117; uint8_t x_118; uint8_t x_119; uint8_t x_120; lean_object* x_121; lean_object* x_122; uint8_t x_123; uint8_t x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; +x_103 = lean_ctor_get(x_5, 0); +x_104 = lean_ctor_get(x_5, 1); +x_105 = lean_ctor_get(x_5, 2); +x_106 = lean_ctor_get(x_5, 3); +x_107 = lean_ctor_get(x_5, 4); +x_108 = lean_ctor_get(x_5, 5); +lean_inc(x_108); +lean_inc(x_107); +lean_inc(x_106); +lean_inc(x_105); +lean_inc(x_104); +lean_inc(x_103); +lean_dec(x_5); +x_109 = lean_ctor_get_uint8(x_103, 0); +x_110 = lean_ctor_get_uint8(x_103, 1); +x_111 = lean_ctor_get_uint8(x_103, 2); +x_112 = lean_ctor_get_uint8(x_103, 3); +x_113 = lean_ctor_get_uint8(x_103, 4); +x_114 = lean_ctor_get_uint8(x_103, 6); +x_115 = lean_ctor_get_uint8(x_103, 7); +x_116 = lean_ctor_get_uint8(x_103, 8); +x_117 = lean_ctor_get_uint8(x_103, 9); +x_118 = lean_ctor_get_uint8(x_103, 10); +x_119 = lean_ctor_get_uint8(x_103, 11); +x_120 = lean_ctor_get_uint8(x_103, 12); +if (lean_is_exclusive(x_103)) { + x_121 = x_103; +} else { + lean_dec_ref(x_103); + x_121 = lean_box(0); +} +x_122 = lean_ctor_get(x_2, 0); +lean_inc(x_122); +x_123 = lean_ctor_get_uint8(x_122, sizeof(void*)*2 + 6); +lean_dec(x_122); +x_124 = 2; +if (lean_is_scalar(x_121)) { + x_125 = lean_alloc_ctor(0, 0, 14); +} else { + x_125 = x_121; +} +lean_ctor_set_uint8(x_125, 0, x_109); +lean_ctor_set_uint8(x_125, 1, x_110); +lean_ctor_set_uint8(x_125, 2, x_111); +lean_ctor_set_uint8(x_125, 3, x_112); +lean_ctor_set_uint8(x_125, 4, x_113); +lean_ctor_set_uint8(x_125, 5, x_124); +lean_ctor_set_uint8(x_125, 6, x_114); +lean_ctor_set_uint8(x_125, 7, x_115); +lean_ctor_set_uint8(x_125, 8, x_116); +lean_ctor_set_uint8(x_125, 9, x_117); +lean_ctor_set_uint8(x_125, 10, x_118); +lean_ctor_set_uint8(x_125, 11, x_119); +lean_ctor_set_uint8(x_125, 12, x_120); +lean_ctor_set_uint8(x_125, 13, x_123); +x_126 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_126, 0, x_125); +lean_ctor_set(x_126, 1, x_104); +lean_ctor_set(x_126, 2, x_105); +lean_ctor_set(x_126, 3, x_106); +lean_ctor_set(x_126, 4, x_107); +lean_ctor_set(x_126, 5, x_108); +x_127 = lean_st_ref_get(x_8, x_9); +x_128 = lean_ctor_get(x_127, 1); +lean_inc(x_128); +lean_dec(x_127); +x_129 = lean_st_mk_ref(x_12, x_128); +x_130 = lean_ctor_get(x_129, 0); +lean_inc(x_130); +x_131 = lean_ctor_get(x_129, 1); +lean_inc(x_131); +lean_dec(x_129); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_126); +lean_inc(x_130); +x_132 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp(x_1, x_4, x_2, x_130, x_126, x_6, x_7, x_8, x_131); +if (lean_obj_tag(x_132) == 0) +{ +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_dec(x_126); -x_128 = lean_st_ref_get(x_121, x_127); -lean_dec(x_121); -x_129 = lean_ctor_get(x_128, 1); -lean_inc(x_129); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_130 = x_128; -} else { - lean_dec_ref(x_128); - x_130 = lean_box(0); -} -if (lean_is_scalar(x_130)) { - x_131 = lean_alloc_ctor(0, 2, 0); -} else { - x_131 = x_130; -} -lean_ctor_set(x_131, 0, x_124); -lean_ctor_set(x_131, 1, x_129); -return x_131; -} -else -{ -lean_object* x_132; lean_object* x_133; lean_object* x_134; uint8_t x_135; -lean_dec(x_121); -x_132 = lean_ctor_get(x_123, 0); -lean_inc(x_132); -x_133 = lean_ctor_get(x_123, 1); -lean_inc(x_133); -if (lean_is_exclusive(x_123)) { - lean_ctor_release(x_123, 0); - lean_ctor_release(x_123, 1); - x_134 = x_123; -} else { - lean_dec_ref(x_123); - x_134 = lean_box(0); -} -x_135 = l_Lean_Exception_isMaxHeartbeat(x_132); -if (x_135 == 0) -{ -lean_object* x_136; -lean_dec(x_116); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_5); -if (lean_is_scalar(x_134)) { - x_136 = lean_alloc_ctor(1, 2, 0); +x_133 = lean_ctor_get(x_132, 0); +lean_inc(x_133); +x_134 = lean_ctor_get(x_132, 1); +lean_inc(x_134); +lean_dec(x_132); +x_135 = lean_st_ref_get(x_8, x_134); +lean_dec(x_8); +x_136 = lean_ctor_get(x_135, 1); +lean_inc(x_136); +lean_dec(x_135); +x_137 = lean_st_ref_get(x_130, x_136); +lean_dec(x_130); +x_138 = lean_ctor_get(x_137, 0); +lean_inc(x_138); +x_139 = lean_ctor_get(x_137, 1); +lean_inc(x_139); +if (lean_is_exclusive(x_137)) { + lean_ctor_release(x_137, 0); + lean_ctor_release(x_137, 1); + x_140 = x_137; } else { - x_136 = x_134; + lean_dec_ref(x_137); + x_140 = lean_box(0); } -lean_ctor_set(x_136, 0, x_132); -lean_ctor_set(x_136, 1, x_133); -return x_136; +x_141 = lean_ctor_get(x_138, 2); +lean_inc(x_141); +lean_dec(x_138); +x_142 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_142, 0, x_133); +lean_ctor_set(x_142, 1, x_141); +if (lean_is_scalar(x_140)) { + x_143 = lean_alloc_ctor(0, 2, 0); +} else { + x_143 = x_140; +} +lean_ctor_set(x_143, 0, x_142); +lean_ctor_set(x_143, 1, x_139); +return x_143; } else { -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_dec(x_134); -x_137 = l_Lean_Meta_Simp_dsimpMain___closed__2; -x_138 = l_Lean_Meta_throwNestedTacticEx___rarg(x_137, x_132, x_116, x_5, x_6, x_7, x_133); -x_139 = lean_ctor_get(x_138, 0); -lean_inc(x_139); -x_140 = lean_ctor_get(x_138, 1); -lean_inc(x_140); -if (lean_is_exclusive(x_138)) { - lean_ctor_release(x_138, 0); - lean_ctor_release(x_138, 1); - x_141 = x_138; +lean_object* x_144; lean_object* x_145; lean_object* x_146; uint8_t x_147; +lean_dec(x_130); +x_144 = lean_ctor_get(x_132, 0); +lean_inc(x_144); +x_145 = lean_ctor_get(x_132, 1); +lean_inc(x_145); +if (lean_is_exclusive(x_132)) { + lean_ctor_release(x_132, 0); + lean_ctor_release(x_132, 1); + x_146 = x_132; } else { - lean_dec_ref(x_138); - x_141 = lean_box(0); + lean_dec_ref(x_132); + x_146 = lean_box(0); } -if (lean_is_scalar(x_141)) { - x_142 = lean_alloc_ctor(1, 2, 0); +x_147 = l_Lean_Exception_isMaxHeartbeat(x_144); +if (x_147 == 0) +{ +lean_object* x_148; +lean_dec(x_126); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_146)) { + x_148 = lean_alloc_ctor(1, 2, 0); } else { - x_142 = x_141; + x_148 = x_146; } -lean_ctor_set(x_142, 0, x_139); -lean_ctor_set(x_142, 1, x_140); -return x_142; +lean_ctor_set(x_148, 0, x_144); +lean_ctor_set(x_148, 1, x_145); +return x_148; +} +else +{ +lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; +lean_dec(x_146); +x_149 = l_Lean_Meta_Simp_dsimpMain___closed__2; +x_150 = l_Lean_Meta_throwNestedTacticEx___rarg(x_149, x_144, x_126, x_6, x_7, x_8, x_145); +x_151 = lean_ctor_get(x_150, 0); +lean_inc(x_151); +x_152 = lean_ctor_get(x_150, 1); +lean_inc(x_152); +if (lean_is_exclusive(x_150)) { + lean_ctor_release(x_150, 0); + lean_ctor_release(x_150, 1); + x_153 = x_150; +} else { + lean_dec_ref(x_150); + x_153 = lean_box(0); +} +if (lean_is_scalar(x_153)) { + x_154 = lean_alloc_ctor(1, 2, 0); +} else { + x_154 = x_153; +} +lean_ctor_set(x_154, 0, x_151); +lean_ctor_set(x_154, 1, x_152); +return x_154; } } } @@ -42529,7 +42682,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Meta_Simp_simp_simpStep___closed__1; x_2 = l_Lean_Meta_Simp_dischargeEqnThmHypothesis_x3f___closed__4; -x_3 = lean_unsigned_to_nat(748u); +x_3 = lean_unsigned_to_nat(752u); x_4 = lean_unsigned_to_nat(2u); x_5 = l_Lean_Meta_Simp_dischargeEqnThmHypothesis_x3f___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -42852,7 +43005,7 @@ _start: lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; x_12 = lean_ctor_get(x_1, 0); x_13 = lean_ctor_get(x_12, 1); -x_14 = lean_ctor_get(x_1, 4); +x_14 = lean_ctor_get(x_1, 5); x_15 = lean_nat_dec_le(x_13, x_14); if (x_15 == 0) { @@ -42862,11 +43015,11 @@ x_16 = !lean_is_exclusive(x_5); if (x_16 == 0) { 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_5, 4); +x_17 = lean_ctor_get(x_5, 5); x_18 = lean_unsigned_to_nat(1u); x_19 = lean_nat_add(x_17, x_18); lean_dec(x_17); -lean_ctor_set(x_5, 4, x_19); +lean_ctor_set(x_5, 5, x_19); x_20 = l_Lean_Meta_Simp_DefaultMethods_discharge_x3f___lambda__1___closed__4; lean_inc(x_10); lean_inc(x_9); @@ -43162,234 +43315,237 @@ return x_79; } else { -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_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; x_80 = lean_ctor_get(x_5, 0); x_81 = lean_ctor_get(x_5, 1); x_82 = lean_ctor_get(x_5, 2); x_83 = lean_ctor_get(x_5, 3); x_84 = lean_ctor_get(x_5, 4); +x_85 = lean_ctor_get(x_5, 5); +lean_inc(x_85); lean_inc(x_84); lean_inc(x_83); lean_inc(x_82); lean_inc(x_81); lean_inc(x_80); lean_dec(x_5); -x_85 = lean_unsigned_to_nat(1u); -x_86 = lean_nat_add(x_84, x_85); -lean_dec(x_84); -x_87 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_87, 0, x_80); -lean_ctor_set(x_87, 1, x_81); -lean_ctor_set(x_87, 2, x_82); -lean_ctor_set(x_87, 3, x_83); -lean_ctor_set(x_87, 4, x_86); -x_88 = l_Lean_Meta_Simp_DefaultMethods_discharge_x3f___lambda__1___closed__4; +x_86 = lean_unsigned_to_nat(1u); +x_87 = lean_nat_add(x_85, x_86); +lean_dec(x_85); +x_88 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_88, 0, x_80); +lean_ctor_set(x_88, 1, x_81); +lean_ctor_set(x_88, 2, x_82); +lean_ctor_set(x_88, 3, x_83); +lean_ctor_set(x_88, 4, x_84); +lean_ctor_set(x_88, 5, x_87); +x_89 = l_Lean_Meta_Simp_DefaultMethods_discharge_x3f___lambda__1___closed__4; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_89 = l_Lean_Meta_Simp_simp(x_2, x_88, x_87, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_89) == 0) +x_90 = l_Lean_Meta_Simp_simp(x_2, x_89, x_88, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_90) == 0) { -lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; uint8_t x_95; -x_90 = lean_ctor_get(x_89, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_89, 1); +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_96; +x_91 = lean_ctor_get(x_90, 0); lean_inc(x_91); -if (lean_is_exclusive(x_89)) { - lean_ctor_release(x_89, 0); - lean_ctor_release(x_89, 1); - x_92 = x_89; +x_92 = lean_ctor_get(x_90, 1); +lean_inc(x_92); +if (lean_is_exclusive(x_90)) { + lean_ctor_release(x_90, 0); + lean_ctor_release(x_90, 1); + x_93 = x_90; } else { - lean_dec_ref(x_89); - x_92 = lean_box(0); + lean_dec_ref(x_90); + x_93 = lean_box(0); } -x_93 = lean_ctor_get(x_90, 0); -lean_inc(x_93); -x_94 = l_Lean_Meta_Simp_DefaultMethods_discharge_x3f___lambda__1___closed__6; -x_95 = l_Lean_Expr_isConstOf(x_93, x_94); -lean_dec(x_93); -if (x_95 == 0) +x_94 = lean_ctor_get(x_91, 0); +lean_inc(x_94); +x_95 = l_Lean_Meta_Simp_DefaultMethods_discharge_x3f___lambda__1___closed__6; +x_96 = l_Lean_Expr_isConstOf(x_94, x_95); +lean_dec(x_94); +if (x_96 == 0) { -lean_object* x_96; lean_object* x_97; -lean_dec(x_90); +lean_object* x_97; lean_object* x_98; +lean_dec(x_91); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -x_96 = lean_box(0); -if (lean_is_scalar(x_92)) { - x_97 = lean_alloc_ctor(0, 2, 0); +x_97 = lean_box(0); +if (lean_is_scalar(x_93)) { + x_98 = lean_alloc_ctor(0, 2, 0); } else { - x_97 = x_92; + x_98 = x_93; } -lean_ctor_set(x_97, 0, x_96); -lean_ctor_set(x_97, 1, x_91); -return x_97; +lean_ctor_set(x_98, 0, x_97); +lean_ctor_set(x_98, 1, x_92); +return x_98; } else { -lean_object* x_98; -lean_dec(x_92); +lean_object* x_99; +lean_dec(x_93); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_98 = l_Lean_Meta_Simp_Result_getProof(x_90, x_7, x_8, x_9, x_10, x_91); -if (lean_obj_tag(x_98) == 0) +x_99 = l_Lean_Meta_Simp_Result_getProof(x_91, x_7, x_8, x_9, x_10, x_92); +if (lean_obj_tag(x_99) == 0) { -lean_object* x_99; lean_object* x_100; lean_object* x_101; -x_99 = lean_ctor_get(x_98, 0); -lean_inc(x_99); -x_100 = lean_ctor_get(x_98, 1); +lean_object* x_100; lean_object* x_101; lean_object* x_102; +x_100 = lean_ctor_get(x_99, 0); lean_inc(x_100); -lean_dec(x_98); -x_101 = l_Lean_Meta_mkOfEqTrue(x_99, x_7, x_8, x_9, x_10, x_100); -if (lean_obj_tag(x_101) == 0) +x_101 = lean_ctor_get(x_99, 1); +lean_inc(x_101); +lean_dec(x_99); +x_102 = l_Lean_Meta_mkOfEqTrue(x_100, x_7, x_8, x_9, x_10, x_101); +if (lean_obj_tag(x_102) == 0) { -lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; -x_102 = lean_ctor_get(x_101, 0); -lean_inc(x_102); -x_103 = lean_ctor_get(x_101, 1); +lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; +x_103 = lean_ctor_get(x_102, 0); lean_inc(x_103); -if (lean_is_exclusive(x_101)) { - lean_ctor_release(x_101, 0); - lean_ctor_release(x_101, 1); - x_104 = x_101; +x_104 = lean_ctor_get(x_102, 1); +lean_inc(x_104); +if (lean_is_exclusive(x_102)) { + lean_ctor_release(x_102, 0); + lean_ctor_release(x_102, 1); + x_105 = x_102; } else { - lean_dec_ref(x_101); - x_104 = lean_box(0); + lean_dec_ref(x_102); + x_105 = lean_box(0); } -x_105 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_105, 0, x_102); -if (lean_is_scalar(x_104)) { - x_106 = lean_alloc_ctor(0, 2, 0); +x_106 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_106, 0, x_103); +if (lean_is_scalar(x_105)) { + x_107 = lean_alloc_ctor(0, 2, 0); } else { - x_106 = x_104; + x_107 = x_105; } -lean_ctor_set(x_106, 0, x_105); -lean_ctor_set(x_106, 1, x_103); -return x_106; +lean_ctor_set(x_107, 0, x_106); +lean_ctor_set(x_107, 1, x_104); +return x_107; } else { -lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; -x_107 = lean_ctor_get(x_101, 1); -lean_inc(x_107); -if (lean_is_exclusive(x_101)) { - lean_ctor_release(x_101, 0); - lean_ctor_release(x_101, 1); - x_108 = x_101; +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_108 = lean_ctor_get(x_102, 1); +lean_inc(x_108); +if (lean_is_exclusive(x_102)) { + lean_ctor_release(x_102, 0); + lean_ctor_release(x_102, 1); + x_109 = x_102; } else { - lean_dec_ref(x_101); - x_108 = lean_box(0); + lean_dec_ref(x_102); + x_109 = lean_box(0); } -x_109 = lean_box(0); -if (lean_is_scalar(x_108)) { - x_110 = lean_alloc_ctor(0, 2, 0); +x_110 = lean_box(0); +if (lean_is_scalar(x_109)) { + x_111 = lean_alloc_ctor(0, 2, 0); } else { - x_110 = x_108; - lean_ctor_set_tag(x_110, 0); + x_111 = x_109; + lean_ctor_set_tag(x_111, 0); } -lean_ctor_set(x_110, 0, x_109); -lean_ctor_set(x_110, 1, x_107); -return x_110; +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_108); +return x_111; } } else { -lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; +lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -x_111 = lean_ctor_get(x_98, 1); -lean_inc(x_111); -if (lean_is_exclusive(x_98)) { - lean_ctor_release(x_98, 0); - lean_ctor_release(x_98, 1); - x_112 = x_98; +x_112 = lean_ctor_get(x_99, 1); +lean_inc(x_112); +if (lean_is_exclusive(x_99)) { + lean_ctor_release(x_99, 0); + lean_ctor_release(x_99, 1); + x_113 = x_99; } else { - lean_dec_ref(x_98); - x_112 = lean_box(0); + lean_dec_ref(x_99); + x_113 = lean_box(0); } -x_113 = lean_box(0); -if (lean_is_scalar(x_112)) { - x_114 = lean_alloc_ctor(0, 2, 0); +x_114 = lean_box(0); +if (lean_is_scalar(x_113)) { + x_115 = lean_alloc_ctor(0, 2, 0); } else { - x_114 = x_112; - lean_ctor_set_tag(x_114, 0); + x_115 = x_113; + lean_ctor_set_tag(x_115, 0); } -lean_ctor_set(x_114, 0, x_113); -lean_ctor_set(x_114, 1, x_111); -return x_114; +lean_ctor_set(x_115, 0, x_114); +lean_ctor_set(x_115, 1, x_112); +return x_115; } } } else { -lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; +lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -x_115 = lean_ctor_get(x_89, 0); -lean_inc(x_115); -x_116 = lean_ctor_get(x_89, 1); +x_116 = lean_ctor_get(x_90, 0); lean_inc(x_116); -if (lean_is_exclusive(x_89)) { - lean_ctor_release(x_89, 0); - lean_ctor_release(x_89, 1); - x_117 = x_89; +x_117 = lean_ctor_get(x_90, 1); +lean_inc(x_117); +if (lean_is_exclusive(x_90)) { + lean_ctor_release(x_90, 0); + lean_ctor_release(x_90, 1); + x_118 = x_90; } else { - lean_dec_ref(x_89); - x_117 = lean_box(0); + lean_dec_ref(x_90); + x_118 = lean_box(0); } -if (lean_is_scalar(x_117)) { - x_118 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_118)) { + x_119 = lean_alloc_ctor(1, 2, 0); } else { - x_118 = x_117; + x_119 = x_118; } -lean_ctor_set(x_118, 0, x_115); -lean_ctor_set(x_118, 1, x_116); -return x_118; +lean_ctor_set(x_119, 0, x_116); +lean_ctor_set(x_119, 1, x_117); +return x_119; } } } else { -lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; uint8_t x_123; +lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; uint8_t x_124; lean_dec(x_2); lean_inc(x_3); -x_119 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1(x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -x_120 = lean_ctor_get(x_119, 0); -lean_inc(x_120); -x_121 = lean_ctor_get(x_119, 1); +x_120 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1(x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_121 = lean_ctor_get(x_120, 0); lean_inc(x_121); -lean_dec(x_119); -x_122 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___lambda__3___closed__1; -x_123 = lean_unbox(x_120); +x_122 = lean_ctor_get(x_120, 1); +lean_inc(x_122); lean_dec(x_120); -if (x_123 == 0) +x_123 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___lambda__3___closed__1; +x_124 = lean_unbox(x_121); +lean_dec(x_121); +if (x_124 == 0) { -lean_object* x_124; lean_object* x_125; +lean_object* x_125; lean_object* x_126; lean_dec(x_3); -x_124 = lean_box(0); -x_125 = lean_apply_8(x_122, x_124, x_5, x_6, x_7, x_8, x_9, x_10, x_121); -return x_125; +x_125 = lean_box(0); +x_126 = lean_apply_8(x_123, x_125, x_5, x_6, x_7, x_8, x_9, x_10, x_122); +return x_126; } else { -lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; -x_126 = l_Lean_Meta_Simp_DefaultMethods_discharge_x3f___lambda__1___closed__8; -x_127 = l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__2(x_3, x_126, x_5, x_6, x_7, x_8, x_9, x_10, x_121); -x_128 = lean_ctor_get(x_127, 0); -lean_inc(x_128); -x_129 = lean_ctor_get(x_127, 1); +lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; +x_127 = l_Lean_Meta_Simp_DefaultMethods_discharge_x3f___lambda__1___closed__8; +x_128 = l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__2(x_3, x_127, x_5, x_6, x_7, x_8, x_9, x_10, x_122); +x_129 = lean_ctor_get(x_128, 0); lean_inc(x_129); -lean_dec(x_127); -x_130 = lean_apply_8(x_122, x_128, x_5, x_6, x_7, x_8, x_9, x_10, x_129); -return x_130; +x_130 = lean_ctor_get(x_128, 1); +lean_inc(x_130); +lean_dec(x_128); +x_131 = lean_apply_8(x_123, x_129, x_5, x_6, x_7, x_8, x_9, x_10, x_130); +return x_131; } } } @@ -43797,69 +43953,72 @@ x_10 = l_Lean_Meta_Simp_postDefault(x_2, x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9) return x_10; } } -LEAN_EXPORT lean_object* l_Lean_Meta_simp(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_EXPORT lean_object* l_Lean_Meta_simp(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: { if (lean_obj_tag(x_3) == 0) { +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_10 = lean_ctor_get(x_7, 2); +lean_inc(x_10); +x_11 = l_Lean_Meta_Simp_DefaultMethods_methods; +x_12 = lean_alloc_closure((void*)(l_Lean_Meta_Simp_main), 9, 4); +lean_closure_set(x_12, 0, x_1); +lean_closure_set(x_12, 1, x_2); +lean_closure_set(x_12, 2, x_4); +lean_closure_set(x_12, 3, x_11); +x_13 = l_Lean_Meta_Simp_simp___closed__1; +x_14 = l_Lean_profileitM___at_Lean_Meta_synthInstance_x3f___spec__10___rarg(x_13, x_10, x_12, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_10); +return x_14; +} +else +{ +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; +x_15 = lean_ctor_get(x_7, 2); +lean_inc(x_15); +x_16 = lean_ctor_get(x_3, 0); +lean_inc(x_16); +lean_dec(x_3); +lean_inc(x_16); +x_17 = lean_alloc_closure((void*)(l_Lean_Meta_simp___lambda__1), 9, 1); +lean_closure_set(x_17, 0, x_16); +lean_inc(x_16); +x_18 = lean_alloc_closure((void*)(l_Lean_Meta_simp___lambda__2), 9, 1); +lean_closure_set(x_18, 0, x_16); +x_19 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +lean_ctor_set(x_19, 2, x_16); +x_20 = lean_alloc_closure((void*)(l_Lean_Meta_Simp_main), 9, 4); +lean_closure_set(x_20, 0, x_1); +lean_closure_set(x_20, 1, x_2); +lean_closure_set(x_20, 2, x_4); +lean_closure_set(x_20, 3, x_19); +x_21 = l_Lean_Meta_Simp_simp___closed__1; +x_22 = l_Lean_profileitM___at_Lean_Meta_synthInstance_x3f___spec__10___rarg(x_21, x_15, x_20, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_15); +return x_22; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_dsimp(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; lean_object* x_12; lean_object* x_13; x_9 = lean_ctor_get(x_6, 2); lean_inc(x_9); x_10 = l_Lean_Meta_Simp_DefaultMethods_methods; -x_11 = lean_alloc_closure((void*)(l_Lean_Meta_Simp_main), 8, 3); +x_11 = lean_alloc_closure((void*)(l_Lean_Meta_Simp_dsimpMain), 9, 4); lean_closure_set(x_11, 0, x_1); lean_closure_set(x_11, 1, x_2); -lean_closure_set(x_11, 2, x_10); -x_12 = l_Lean_Meta_Simp_simp___closed__1; +lean_closure_set(x_11, 2, x_3); +lean_closure_set(x_11, 3, x_10); +x_12 = l_Lean_Meta_Simp_dsimpMain___closed__1; x_13 = l_Lean_profileitM___at_Lean_Meta_synthInstance_x3f___spec__10___rarg(x_12, x_9, x_11, x_4, x_5, x_6, x_7, x_8); lean_dec(x_9); return x_13; } -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_14 = lean_ctor_get(x_6, 2); -lean_inc(x_14); -x_15 = lean_ctor_get(x_3, 0); -lean_inc(x_15); -lean_dec(x_3); -lean_inc(x_15); -x_16 = lean_alloc_closure((void*)(l_Lean_Meta_simp___lambda__1), 9, 1); -lean_closure_set(x_16, 0, x_15); -lean_inc(x_15); -x_17 = lean_alloc_closure((void*)(l_Lean_Meta_simp___lambda__2), 9, 1); -lean_closure_set(x_17, 0, x_15); -x_18 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_18, 0, x_16); -lean_ctor_set(x_18, 1, x_17); -lean_ctor_set(x_18, 2, x_15); -x_19 = lean_alloc_closure((void*)(l_Lean_Meta_Simp_main), 8, 3); -lean_closure_set(x_19, 0, x_1); -lean_closure_set(x_19, 1, x_2); -lean_closure_set(x_19, 2, x_18); -x_20 = l_Lean_Meta_Simp_simp___closed__1; -x_21 = l_Lean_profileitM___at_Lean_Meta_synthInstance_x3f___spec__10___rarg(x_20, x_14, x_19, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_14); -return x_21; -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_dsimp(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; lean_object* x_11; lean_object* x_12; -x_8 = lean_ctor_get(x_5, 2); -lean_inc(x_8); -x_9 = l_Lean_Meta_Simp_DefaultMethods_methods; -x_10 = lean_alloc_closure((void*)(l_Lean_Meta_Simp_dsimpMain), 8, 3); -lean_closure_set(x_10, 0, x_1); -lean_closure_set(x_10, 1, x_2); -lean_closure_set(x_10, 2, x_9); -x_11 = l_Lean_Meta_Simp_dsimpMain___closed__1; -x_12 = l_Lean_profileitM___at_Lean_Meta_synthInstance_x3f___spec__10___rarg(x_11, x_8, x_10, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_8); -return x_12; -} } LEAN_EXPORT lean_object* l_Lean_Meta_applySimpResultToTarget(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: @@ -43917,7 +44076,723 @@ lean_dec(x_2); return x_9; } } -LEAN_EXPORT lean_object* l_Lean_Meta_simpTargetCore___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_EXPORT lean_object* l_Lean_Meta_simpTargetCore___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_8 = lean_box(0); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_1); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_7); +return x_10; +} +} +static lean_object* _init_l_Lean_Meta_simpTargetCore___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("intro", 5); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_simpTargetCore___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Simp_DefaultMethods_discharge_x3f___lambda__1___closed__6; +x_2 = l_Lean_Meta_simpTargetCore___closed__1; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_simpTargetCore___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_simpTargetCore___closed__2; +x_3 = l_Lean_Expr_const___override(x_2, x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_simpTargetCore(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +lean_inc(x_1); +x_11 = l_Lean_MVarId_getType(x_1, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(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; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__2(x_12, x_6, x_7, x_8, x_9, x_13); +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_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_15); +x_17 = l_Lean_Meta_simp(x_15, x_2, x_3, x_5, x_6, x_7, x_8, x_9, x_16); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +if (x_4 == 0) +{ +lean_object* x_19; uint8_t x_20; +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = !lean_is_exclusive(x_18); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_18, 0); +x_22 = lean_ctor_get(x_18, 1); +x_23 = l_Lean_Meta_applySimpResultToTarget(x_1, x_15, x_21, x_6, x_7, x_8, x_9, x_19); +lean_dec(x_15); +if (lean_obj_tag(x_23) == 0) +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_23); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_23, 0); +x_26 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_18, 0, x_26); +lean_ctor_set(x_23, 0, x_18); +return x_23; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_27 = lean_ctor_get(x_23, 0); +x_28 = lean_ctor_get(x_23, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_23); +x_29 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_18, 0, x_29); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_18); +lean_ctor_set(x_30, 1, x_28); +return x_30; +} +} +else +{ +uint8_t x_31; +lean_free_object(x_18); +lean_dec(x_22); +x_31 = !lean_is_exclusive(x_23); +if (x_31 == 0) +{ +return x_23; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_23, 0); +x_33 = lean_ctor_get(x_23, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_23); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +return x_34; +} +} +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_18, 0); +x_36 = lean_ctor_get(x_18, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_18); +x_37 = l_Lean_Meta_applySimpResultToTarget(x_1, x_15, x_35, x_6, x_7, x_8, x_9, x_19); +lean_dec(x_15); +if (lean_obj_tag(x_37) == 0) +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_40 = x_37; +} else { + lean_dec_ref(x_37); + x_40 = lean_box(0); +} +x_41 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_41, 0, x_38); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_36); +if (lean_is_scalar(x_40)) { + x_43 = lean_alloc_ctor(0, 2, 0); +} else { + x_43 = x_40; +} +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_39); +return x_43; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +lean_dec(x_36); +x_44 = lean_ctor_get(x_37, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_37, 1); +lean_inc(x_45); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_46 = x_37; +} else { + lean_dec_ref(x_37); + x_46 = lean_box(0); +} +if (lean_is_scalar(x_46)) { + x_47 = lean_alloc_ctor(1, 2, 0); +} else { + x_47 = x_46; +} +lean_ctor_set(x_47, 0, x_44); +lean_ctor_set(x_47, 1, x_45); +return x_47; +} +} +} +else +{ +lean_object* x_48; uint8_t x_49; +x_48 = lean_ctor_get(x_17, 1); +lean_inc(x_48); +lean_dec(x_17); +x_49 = !lean_is_exclusive(x_18); +if (x_49 == 0) +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; +x_50 = lean_ctor_get(x_18, 0); +x_51 = lean_ctor_get(x_18, 1); +x_52 = lean_ctor_get(x_50, 0); +lean_inc(x_52); +x_53 = l_Lean_Meta_Simp_DefaultMethods_discharge_x3f___lambda__1___closed__6; +x_54 = l_Lean_Expr_isConstOf(x_52, x_53); +lean_dec(x_52); +if (x_54 == 0) +{ +lean_object* x_55; +x_55 = l_Lean_Meta_applySimpResultToTarget(x_1, x_15, x_50, x_6, x_7, x_8, x_9, x_48); +lean_dec(x_15); +if (lean_obj_tag(x_55) == 0) +{ +uint8_t x_56; +x_56 = !lean_is_exclusive(x_55); +if (x_56 == 0) +{ +lean_object* x_57; lean_object* x_58; +x_57 = lean_ctor_get(x_55, 0); +x_58 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set(x_18, 0, x_58); +lean_ctor_set(x_55, 0, x_18); +return x_55; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_59 = lean_ctor_get(x_55, 0); +x_60 = lean_ctor_get(x_55, 1); +lean_inc(x_60); +lean_inc(x_59); +lean_dec(x_55); +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_18, 0, x_61); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_18); +lean_ctor_set(x_62, 1, x_60); +return x_62; +} +} +else +{ +uint8_t x_63; +lean_free_object(x_18); +lean_dec(x_51); +x_63 = !lean_is_exclusive(x_55); +if (x_63 == 0) +{ +return x_55; +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_55, 0); +x_65 = lean_ctor_get(x_55, 1); +lean_inc(x_65); +lean_inc(x_64); +lean_dec(x_55); +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; +} +} +} +else +{ +lean_object* x_67; +lean_free_object(x_18); +lean_dec(x_15); +x_67 = lean_ctor_get(x_50, 1); +lean_inc(x_67); +lean_dec(x_50); +if (lean_obj_tag(x_67) == 0) +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_68 = l_Lean_Meta_simpTargetCore___closed__3; +x_69 = l_Lean_MVarId_assign___at_Lean_Meta_getLevel___spec__1(x_1, x_68, x_6, x_7, x_8, x_9, x_48); +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 = l_Lean_Meta_simpTargetCore___lambda__1(x_51, x_70, x_6, x_7, x_8, x_9, x_71); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_70); +return x_72; +} +else +{ +lean_object* x_73; lean_object* x_74; +x_73 = lean_ctor_get(x_67, 0); +lean_inc(x_73); +lean_dec(x_67); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_74 = l_Lean_Meta_mkOfEqTrue(x_73, x_6, x_7, x_8, x_9, x_48); +if (lean_obj_tag(x_74) == 0) +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; +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 = l_Lean_MVarId_assign___at_Lean_Meta_getLevel___spec__1(x_1, x_75, x_6, x_7, x_8, x_9, x_76); +x_78 = lean_ctor_get(x_77, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_77, 1); +lean_inc(x_79); +lean_dec(x_77); +x_80 = l_Lean_Meta_simpTargetCore___lambda__1(x_51, x_78, x_6, x_7, x_8, x_9, x_79); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_78); +return x_80; +} +else +{ +uint8_t x_81; +lean_dec(x_51); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_81 = !lean_is_exclusive(x_74); +if (x_81 == 0) +{ +return x_74; +} +else +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_82 = lean_ctor_get(x_74, 0); +x_83 = lean_ctor_get(x_74, 1); +lean_inc(x_83); +lean_inc(x_82); +lean_dec(x_74); +x_84 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_84, 0, x_82); +lean_ctor_set(x_84, 1, x_83); +return x_84; +} +} +} +} +} +else +{ +lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; uint8_t x_89; +x_85 = lean_ctor_get(x_18, 0); +x_86 = lean_ctor_get(x_18, 1); +lean_inc(x_86); +lean_inc(x_85); +lean_dec(x_18); +x_87 = lean_ctor_get(x_85, 0); +lean_inc(x_87); +x_88 = l_Lean_Meta_Simp_DefaultMethods_discharge_x3f___lambda__1___closed__6; +x_89 = l_Lean_Expr_isConstOf(x_87, x_88); +lean_dec(x_87); +if (x_89 == 0) +{ +lean_object* x_90; +x_90 = l_Lean_Meta_applySimpResultToTarget(x_1, x_15, x_85, x_6, x_7, x_8, x_9, x_48); +lean_dec(x_15); +if (lean_obj_tag(x_90) == 0) +{ +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_91 = lean_ctor_get(x_90, 0); +lean_inc(x_91); +x_92 = lean_ctor_get(x_90, 1); +lean_inc(x_92); +if (lean_is_exclusive(x_90)) { + lean_ctor_release(x_90, 0); + lean_ctor_release(x_90, 1); + x_93 = x_90; +} else { + lean_dec_ref(x_90); + x_93 = lean_box(0); +} +x_94 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_94, 0, x_91); +x_95 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_95, 0, x_94); +lean_ctor_set(x_95, 1, x_86); +if (lean_is_scalar(x_93)) { + x_96 = lean_alloc_ctor(0, 2, 0); +} else { + x_96 = x_93; +} +lean_ctor_set(x_96, 0, x_95); +lean_ctor_set(x_96, 1, x_92); +return x_96; +} +else +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; +lean_dec(x_86); +x_97 = lean_ctor_get(x_90, 0); +lean_inc(x_97); +x_98 = lean_ctor_get(x_90, 1); +lean_inc(x_98); +if (lean_is_exclusive(x_90)) { + lean_ctor_release(x_90, 0); + lean_ctor_release(x_90, 1); + x_99 = x_90; +} else { + lean_dec_ref(x_90); + x_99 = lean_box(0); +} +if (lean_is_scalar(x_99)) { + x_100 = lean_alloc_ctor(1, 2, 0); +} else { + x_100 = x_99; +} +lean_ctor_set(x_100, 0, x_97); +lean_ctor_set(x_100, 1, x_98); +return x_100; +} +} +else +{ +lean_object* x_101; +lean_dec(x_15); +x_101 = lean_ctor_get(x_85, 1); +lean_inc(x_101); +lean_dec(x_85); +if (lean_obj_tag(x_101) == 0) +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_102 = l_Lean_Meta_simpTargetCore___closed__3; +x_103 = l_Lean_MVarId_assign___at_Lean_Meta_getLevel___spec__1(x_1, x_102, x_6, x_7, x_8, x_9, x_48); +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_106 = l_Lean_Meta_simpTargetCore___lambda__1(x_86, x_104, x_6, x_7, x_8, x_9, x_105); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_104); +return x_106; +} +else +{ +lean_object* x_107; lean_object* x_108; +x_107 = lean_ctor_get(x_101, 0); +lean_inc(x_107); +lean_dec(x_101); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_108 = l_Lean_Meta_mkOfEqTrue(x_107, x_6, x_7, x_8, x_9, x_48); +if (lean_obj_tag(x_108) == 0) +{ +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_109 = lean_ctor_get(x_108, 0); +lean_inc(x_109); +x_110 = lean_ctor_get(x_108, 1); +lean_inc(x_110); +lean_dec(x_108); +x_111 = l_Lean_MVarId_assign___at_Lean_Meta_getLevel___spec__1(x_1, x_109, x_6, x_7, x_8, x_9, x_110); +x_112 = lean_ctor_get(x_111, 0); +lean_inc(x_112); +x_113 = lean_ctor_get(x_111, 1); +lean_inc(x_113); +lean_dec(x_111); +x_114 = l_Lean_Meta_simpTargetCore___lambda__1(x_86, x_112, x_6, x_7, x_8, x_9, x_113); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_112); +return x_114; +} +else +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; +lean_dec(x_86); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_115 = lean_ctor_get(x_108, 0); +lean_inc(x_115); +x_116 = lean_ctor_get(x_108, 1); +lean_inc(x_116); +if (lean_is_exclusive(x_108)) { + lean_ctor_release(x_108, 0); + lean_ctor_release(x_108, 1); + x_117 = x_108; +} else { + lean_dec_ref(x_108); + x_117 = lean_box(0); +} +if (lean_is_scalar(x_117)) { + x_118 = lean_alloc_ctor(1, 2, 0); +} else { + x_118 = x_117; +} +lean_ctor_set(x_118, 0, x_115); +lean_ctor_set(x_118, 1, x_116); +return x_118; +} +} +} +} +} +} +else +{ +uint8_t x_119; +lean_dec(x_15); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_119 = !lean_is_exclusive(x_17); +if (x_119 == 0) +{ +return x_17; +} +else +{ +lean_object* x_120; lean_object* x_121; lean_object* x_122; +x_120 = lean_ctor_get(x_17, 0); +x_121 = lean_ctor_get(x_17, 1); +lean_inc(x_121); +lean_inc(x_120); +lean_dec(x_17); +x_122 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_122, 0, x_120); +lean_ctor_set(x_122, 1, x_121); +return x_122; +} +} +} +else +{ +uint8_t x_123; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_123 = !lean_is_exclusive(x_11); +if (x_123 == 0) +{ +return x_11; +} +else +{ +lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_124 = lean_ctor_get(x_11, 0); +x_125 = lean_ctor_get(x_11, 1); +lean_inc(x_125); +lean_inc(x_124); +lean_dec(x_11); +x_126 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +return x_126; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_simpTargetCore___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_Meta_simpTargetCore___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_4); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_simpTargetCore___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: +{ +uint8_t x_11; lean_object* x_12; +x_11 = lean_unbox(x_4); +lean_dec(x_4); +x_12 = l_Lean_Meta_simpTargetCore(x_1, x_2, x_3, x_11, x_5, x_6, x_7, x_8, x_9, x_10); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_simpTarget___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t 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_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_1); +x_12 = l_Lean_MVarId_checkNotAssigned(x_1, x_2, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_14 = l_Lean_Meta_simpTargetCore(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_13); +return x_14; +} +else +{ +uint8_t 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_4); +lean_dec(x_3); +lean_dec(x_1); +x_15 = !lean_is_exclusive(x_12); +if (x_15 == 0) +{ +return x_12; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_12, 0); +x_17 = lean_ctor_get(x_12, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_12); +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +return x_18; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_simpTarget(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = l_Lean_Meta_Simp_main___closed__1; +x_12 = lean_box(x_4); +lean_inc(x_1); +x_13 = lean_alloc_closure((void*)(l_Lean_Meta_simpTarget___lambda__1___boxed), 11, 6); +lean_closure_set(x_13, 0, x_1); +lean_closure_set(x_13, 1, x_11); +lean_closure_set(x_13, 2, x_2); +lean_closure_set(x_13, 3, x_3); +lean_closure_set(x_13, 4, x_12); +lean_closure_set(x_13, 5, x_5); +x_14 = l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(x_1, x_13, x_6, x_7, x_8, x_9, x_10); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_simpTarget___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: +{ +uint8_t x_12; lean_object* x_13; +x_12 = lean_unbox(x_5); +lean_dec(x_5); +x_13 = l_Lean_Meta_simpTarget___lambda__1(x_1, x_2, x_3, x_4, x_12, x_6, x_7, x_8, x_9, x_10, x_11); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_simpTarget___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: +{ +uint8_t x_11; lean_object* x_12; +x_11 = lean_unbox(x_4); +lean_dec(x_4); +x_12 = l_Lean_Meta_simpTarget(x_1, x_2, x_3, x_11, x_5, x_6, x_7, x_8, x_9, x_10); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_applySimpResultToProp___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) { _start: { lean_object* x_7; lean_object* x_8; @@ -43928,452 +44803,14 @@ lean_ctor_set(x_8, 1, x_6); return x_8; } } -static lean_object* _init_l_Lean_Meta_simpTargetCore___closed__1() { +static lean_object* _init_l_Lean_Meta_applySimpResultToProp___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Meta_simpTargetCore___lambda__1___boxed), 6, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_applySimpResultToProp___lambda__1___boxed), 6, 0); return x_1; } } -static lean_object* _init_l_Lean_Meta_simpTargetCore___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("intro", 5); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_simpTargetCore___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_Simp_DefaultMethods_discharge_x3f___lambda__1___closed__6; -x_2 = l_Lean_Meta_simpTargetCore___closed__2; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Meta_simpTargetCore___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Meta_simpTargetCore___closed__3; -x_3 = l_Lean_Expr_const___override(x_2, x_1); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_simpTargetCore(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -lean_inc(x_1); -x_10 = l_Lean_MVarId_getType(x_1, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_10) == 0) -{ -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_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 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__2(x_11, x_5, x_6, x_7, x_8, 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_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_14); -x_16 = l_Lean_Meta_simp(x_14, x_2, x_3, x_5, x_6, x_7, x_8, x_15); -if (lean_obj_tag(x_16) == 0) -{ -if (x_4 == 0) -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; -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_Meta_applySimpResultToTarget(x_1, x_14, x_17, x_5, x_6, x_7, x_8, x_18); -lean_dec(x_14); -if (lean_obj_tag(x_19) == 0) -{ -uint8_t x_20; -x_20 = !lean_is_exclusive(x_19); -if (x_20 == 0) -{ -lean_object* x_21; lean_object* x_22; -x_21 = lean_ctor_get(x_19, 0); -x_22 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_19, 0, x_22); -return x_19; -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_23 = lean_ctor_get(x_19, 0); -x_24 = lean_ctor_get(x_19, 1); -lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_19); -x_25 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_25, 0, x_23); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, x_24); -return x_26; -} -} -else -{ -uint8_t x_27; -x_27 = !lean_is_exclusive(x_19); -if (x_27 == 0) -{ -return x_19; -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_19, 0); -x_29 = lean_ctor_get(x_19, 1); -lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_19); -x_30 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_30, 0, x_28); -lean_ctor_set(x_30, 1, x_29); -return x_30; -} -} -} -else -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; -x_31 = lean_ctor_get(x_16, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_16, 1); -lean_inc(x_32); -lean_dec(x_16); -x_33 = lean_ctor_get(x_31, 0); -lean_inc(x_33); -x_34 = l_Lean_Meta_Simp_DefaultMethods_discharge_x3f___lambda__1___closed__6; -x_35 = l_Lean_Expr_isConstOf(x_33, x_34); -lean_dec(x_33); -if (x_35 == 0) -{ -lean_object* x_36; -x_36 = l_Lean_Meta_applySimpResultToTarget(x_1, x_14, x_31, x_5, x_6, x_7, x_8, x_32); -lean_dec(x_14); -if (lean_obj_tag(x_36) == 0) -{ -uint8_t x_37; -x_37 = !lean_is_exclusive(x_36); -if (x_37 == 0) -{ -lean_object* x_38; lean_object* x_39; -x_38 = lean_ctor_get(x_36, 0); -x_39 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_39, 0, x_38); -lean_ctor_set(x_36, 0, x_39); -return x_36; -} -else -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_40 = lean_ctor_get(x_36, 0); -x_41 = lean_ctor_get(x_36, 1); -lean_inc(x_41); -lean_inc(x_40); -lean_dec(x_36); -x_42 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_42, 0, x_40); -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_41); -return x_43; -} -} -else -{ -uint8_t x_44; -x_44 = !lean_is_exclusive(x_36); -if (x_44 == 0) -{ -return x_36; -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_36, 0); -x_46 = lean_ctor_get(x_36, 1); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_36); -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -return x_47; -} -} -} -else -{ -lean_object* x_48; lean_object* x_49; -lean_dec(x_14); -x_48 = l_Lean_Meta_simpTargetCore___closed__1; -x_49 = lean_ctor_get(x_31, 1); -lean_inc(x_49); -lean_dec(x_31); -if (lean_obj_tag(x_49) == 0) -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_50 = l_Lean_Meta_simpTargetCore___closed__4; -x_51 = l_Lean_MVarId_assign___at_Lean_Meta_getLevel___spec__1(x_1, x_50, x_5, x_6, x_7, x_8, x_32); -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -x_53 = lean_ctor_get(x_51, 1); -lean_inc(x_53); -lean_dec(x_51); -x_54 = lean_apply_6(x_48, x_52, x_5, x_6, x_7, x_8, x_53); -return x_54; -} -else -{ -lean_object* x_55; lean_object* x_56; -x_55 = lean_ctor_get(x_49, 0); -lean_inc(x_55); -lean_dec(x_49); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_56 = l_Lean_Meta_mkOfEqTrue(x_55, x_5, x_6, x_7, x_8, x_32); -if (lean_obj_tag(x_56) == 0) -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_57 = lean_ctor_get(x_56, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_56, 1); -lean_inc(x_58); -lean_dec(x_56); -x_59 = l_Lean_MVarId_assign___at_Lean_Meta_getLevel___spec__1(x_1, x_57, x_5, x_6, x_7, x_8, x_58); -x_60 = lean_ctor_get(x_59, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_59, 1); -lean_inc(x_61); -lean_dec(x_59); -x_62 = lean_apply_6(x_48, x_60, x_5, x_6, x_7, x_8, x_61); -return x_62; -} -else -{ -uint8_t x_63; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_1); -x_63 = !lean_is_exclusive(x_56); -if (x_63 == 0) -{ -return x_56; -} -else -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_56, 0); -x_65 = lean_ctor_get(x_56, 1); -lean_inc(x_65); -lean_inc(x_64); -lean_dec(x_56); -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; -} -} -} -} -} -} -else -{ -uint8_t x_67; -lean_dec(x_14); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_1); -x_67 = !lean_is_exclusive(x_16); -if (x_67 == 0) -{ -return x_16; -} -else -{ -lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_68 = lean_ctor_get(x_16, 0); -x_69 = lean_ctor_get(x_16, 1); -lean_inc(x_69); -lean_inc(x_68); -lean_dec(x_16); -x_70 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_70, 0, x_68); -lean_ctor_set(x_70, 1, x_69); -return x_70; -} -} -} -else -{ -uint8_t x_71; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_71 = !lean_is_exclusive(x_10); -if (x_71 == 0) -{ -return x_10; -} -else -{ -lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_72 = lean_ctor_get(x_10, 0); -x_73 = lean_ctor_get(x_10, 1); -lean_inc(x_73); -lean_inc(x_72); -lean_dec(x_10); -x_74 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_74, 0, x_72); -lean_ctor_set(x_74, 1, x_73); -return x_74; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_simpTargetCore___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) { -_start: -{ -lean_object* x_7; -x_7 = l_Lean_Meta_simpTargetCore___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_7; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_simpTargetCore___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: -{ -uint8_t x_10; lean_object* x_11; -x_10 = lean_unbox(x_4); -lean_dec(x_4); -x_11 = l_Lean_Meta_simpTargetCore(x_1, x_2, x_3, x_10, x_5, x_6, x_7, x_8, x_9); -return x_11; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_simpTarget___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t 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_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_1); -x_11 = l_Lean_MVarId_checkNotAssigned(x_1, x_2, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_11) == 0) -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_11, 1); -lean_inc(x_12); -lean_dec(x_11); -x_13 = l_Lean_Meta_simpTargetCore(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_12); -return x_13; -} -else -{ -uint8_t x_14; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_14 = !lean_is_exclusive(x_11); -if (x_14 == 0) -{ -return x_11; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -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_alloc_ctor(1, 2, 0); -lean_ctor_set(x_17, 0, x_15); -lean_ctor_set(x_17, 1, x_16); -return x_17; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_simpTarget(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_10 = l_Lean_Meta_Simp_main___closed__2; -x_11 = lean_box(x_4); -lean_inc(x_1); -x_12 = lean_alloc_closure((void*)(l_Lean_Meta_simpTarget___lambda__1___boxed), 10, 5); -lean_closure_set(x_12, 0, x_1); -lean_closure_set(x_12, 1, x_10); -lean_closure_set(x_12, 2, x_2); -lean_closure_set(x_12, 3, x_3); -lean_closure_set(x_12, 4, x_11); -x_13 = l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(x_1, x_12, x_5, x_6, x_7, x_8, x_9); -return x_13; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_simpTarget___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: -{ -uint8_t x_11; lean_object* x_12; -x_11 = lean_unbox(x_5); -lean_dec(x_5); -x_12 = l_Lean_Meta_simpTarget___lambda__1(x_1, x_2, x_3, x_4, x_11, x_6, x_7, x_8, x_9, x_10); -return x_12; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_simpTarget___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: -{ -uint8_t x_10; lean_object* x_11; -x_10 = lean_unbox(x_4); -lean_dec(x_4); -x_11 = l_Lean_Meta_simpTarget(x_1, x_2, x_3, x_10, x_5, x_6, x_7, x_8, x_9); -return x_11; -} -} LEAN_EXPORT lean_object* l_Lean_Meta_applySimpResultToProp(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { @@ -44405,7 +44842,7 @@ goto block_61; else { lean_object* x_67; lean_object* x_68; -x_67 = l_Lean_Meta_simpTargetCore___closed__1; +x_67 = l_Lean_Meta_applySimpResultToProp___closed__1; x_68 = lean_ctor_get(x_4, 1); lean_inc(x_68); lean_dec(x_4); @@ -44878,6 +45315,19 @@ return x_60; } } } +LEAN_EXPORT lean_object* l_Lean_Meta_applySimpResultToProp___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) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Meta_applySimpResultToProp___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_7; +} +} LEAN_EXPORT lean_object* l_Lean_Meta_applySimpResultToProp___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: { @@ -44952,67 +45402,187 @@ x_11 = l_Lean_Meta_applySimpResultToFVarId(x_1, x_2, x_3, x_10, x_5, x_6, x_7, x return x_11; } } -LEAN_EXPORT lean_object* l_Lean_Meta_simpStep(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +LEAN_EXPORT lean_object* l_Lean_Meta_simpStep(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t 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); -lean_inc(x_7); lean_inc(x_3); -x_12 = l_Lean_Meta_simp(x_3, x_4, x_5, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_12) == 0) +x_13 = l_Lean_Meta_simp(x_3, x_4, x_5, 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; lean_object* x_15; -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; uint8_t x_16; +x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); -lean_dec(x_12); -x_15 = l_Lean_Meta_applySimpResultToProp(x_1, x_2, x_3, x_13, 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 = !lean_is_exclusive(x_14); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_14, 0); +x_18 = lean_ctor_get(x_14, 1); +x_19 = l_Lean_Meta_applySimpResultToProp(x_1, x_2, x_3, x_17, x_6, x_8, x_9, x_10, x_11, x_15); lean_dec(x_3); -return x_15; +if (lean_obj_tag(x_19) == 0) +{ +uint8_t x_20; +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) +{ +lean_object* x_21; +x_21 = lean_ctor_get(x_19, 0); +lean_ctor_set(x_14, 0, x_21); +lean_ctor_set(x_19, 0, x_14); +return x_19; } else { -uint8_t x_16; +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_19, 0); +x_23 = lean_ctor_get(x_19, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_19); +lean_ctor_set(x_14, 0, x_22); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_14); +lean_ctor_set(x_24, 1, x_23); +return x_24; +} +} +else +{ +uint8_t x_25; +lean_free_object(x_14); +lean_dec(x_18); +x_25 = !lean_is_exclusive(x_19); +if (x_25 == 0) +{ +return x_19; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_19, 0); +x_27 = lean_ctor_get(x_19, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_19); +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 +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_14, 0); +x_30 = lean_ctor_get(x_14, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_14); +x_31 = l_Lean_Meta_applySimpResultToProp(x_1, x_2, x_3, x_29, x_6, x_8, x_9, x_10, x_11, x_15); +lean_dec(x_3); +if (lean_obj_tag(x_31) == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_31, 1); +lean_inc(x_33); +if (lean_is_exclusive(x_31)) { + lean_ctor_release(x_31, 0); + lean_ctor_release(x_31, 1); + x_34 = x_31; +} else { + lean_dec_ref(x_31); + x_34 = lean_box(0); +} +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_32); +lean_ctor_set(x_35, 1, x_30); +if (lean_is_scalar(x_34)) { + x_36 = lean_alloc_ctor(0, 2, 0); +} else { + x_36 = x_34; +} +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_33); +return x_36; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +lean_dec(x_30); +x_37 = lean_ctor_get(x_31, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_31, 1); +lean_inc(x_38); +if (lean_is_exclusive(x_31)) { + lean_ctor_release(x_31, 0); + lean_ctor_release(x_31, 1); + x_39 = x_31; +} else { + lean_dec_ref(x_31); + x_39 = lean_box(0); +} +if (lean_is_scalar(x_39)) { + x_40 = lean_alloc_ctor(1, 2, 0); +} else { + x_40 = x_39; +} +lean_ctor_set(x_40, 0, x_37); +lean_ctor_set(x_40, 1, x_38); +return x_40; +} +} +} +else +{ +uint8_t x_41; +lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -lean_dec(x_7); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_16 = !lean_is_exclusive(x_12); -if (x_16 == 0) +x_41 = !lean_is_exclusive(x_13); +if (x_41 == 0) { -return x_12; +return x_13; } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_12, 0); -x_18 = lean_ctor_get(x_12, 1); -lean_inc(x_18); -lean_inc(x_17); -lean_dec(x_12); -x_19 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_19, 0, x_17); -lean_ctor_set(x_19, 1, x_18); -return x_19; +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_13, 0); +x_43 = lean_ctor_get(x_13, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_13); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_42); +lean_ctor_set(x_44, 1, x_43); +return x_44; } } } } -LEAN_EXPORT lean_object* l_Lean_Meta_simpStep___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_EXPORT lean_object* l_Lean_Meta_simpStep___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_12; lean_object* x_13; -x_12 = lean_unbox(x_6); +uint8_t x_13; lean_object* x_14; +x_13 = lean_unbox(x_6); lean_dec(x_6); -x_13 = l_Lean_Meta_simpStep(x_1, x_2, x_3, x_4, x_5, x_12, x_7, x_8, x_9, x_10, x_11); -return x_13; +x_14 = l_Lean_Meta_simpStep(x_1, x_2, x_3, x_4, x_5, x_13, x_7, x_8, x_9, x_10, x_11, x_12); +return x_14; } } LEAN_EXPORT lean_object* l_Lean_Meta_applySimpResultToLocalDeclCore(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) { @@ -46454,121 +47024,210 @@ x_11 = l_Lean_Meta_applySimpResultToLocalDecl(x_1, x_2, x_3, x_10, x_5, x_6, x_7 return x_11; } } -LEAN_EXPORT lean_object* l_Lean_Meta_simpLocalDecl___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +LEAN_EXPORT lean_object* l_Lean_Meta_simpLocalDecl___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t 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); -lean_inc(x_7); lean_inc(x_1); -x_12 = l_Lean_MVarId_checkNotAssigned(x_1, x_2, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_12) == 0) +x_13 = l_Lean_MVarId_checkNotAssigned(x_1, x_2, 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; -x_13 = lean_ctor_get(x_12, 1); -lean_inc(x_13); -lean_dec(x_12); -lean_inc(x_7); +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +lean_dec(x_13); +lean_inc(x_8); lean_inc(x_3); -x_14 = l_Lean_FVarId_getType(x_3, x_7, x_8, x_9, x_10, x_13); -if (lean_obj_tag(x_14) == 0) +x_15 = l_Lean_FVarId_getType(x_3, x_8, x_9, x_10, x_11, x_14); +if (lean_obj_tag(x_15) == 0) { -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; -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -x_16 = lean_ctor_get(x_14, 1); +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; +x_16 = lean_ctor_get(x_15, 0); lean_inc(x_16); -lean_dec(x_14); -x_17 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__2(x_15, x_7, x_8, x_9, x_10, x_16); -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); -x_19 = lean_ctor_get(x_17, 1); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__2(x_16, x_8, x_9, x_10, x_11, x_17); +x_19 = lean_ctor_get(x_18, 0); lean_inc(x_19); -lean_dec(x_17); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); lean_inc(x_3); -x_20 = l_Lean_Expr_fvar___override(x_3); +x_21 = l_Lean_Expr_fvar___override(x_3); +lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_7); lean_inc(x_1); -x_21 = l_Lean_Meta_simpStep(x_1, x_20, x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_19); -if (lean_obj_tag(x_21) == 0) +x_22 = l_Lean_Meta_simpStep(x_1, x_21, x_19, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_20); +if (lean_obj_tag(x_22) == 0) { -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -x_23 = lean_ctor_get(x_21, 1); +lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_23 = lean_ctor_get(x_22, 0); lean_inc(x_23); -lean_dec(x_21); -x_24 = l_Lean_Meta_applySimpResultToLocalDeclCore(x_1, x_3, x_22, x_7, x_8, x_9, x_10, x_23); -return x_24; -} -else -{ -uint8_t x_25; -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_3); -lean_dec(x_1); -x_25 = !lean_is_exclusive(x_21); +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +x_25 = !lean_is_exclusive(x_23); if (x_25 == 0) { -return x_21; -} -else -{ lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_21, 0); -x_27 = lean_ctor_get(x_21, 1); -lean_inc(x_27); -lean_inc(x_26); -lean_dec(x_21); -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 +x_26 = lean_ctor_get(x_23, 0); +x_27 = lean_ctor_get(x_23, 1); +x_28 = l_Lean_Meta_applySimpResultToLocalDeclCore(x_1, x_3, x_26, x_8, x_9, x_10, x_11, x_24); +if (lean_obj_tag(x_28) == 0) { uint8_t x_29; -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_29 = !lean_is_exclusive(x_14); +x_29 = !lean_is_exclusive(x_28); if (x_29 == 0) { -return x_14; +lean_object* x_30; +x_30 = lean_ctor_get(x_28, 0); +lean_ctor_set(x_23, 0, x_30); +lean_ctor_set(x_28, 0, x_23); +return x_28; } else { -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_14, 0); -x_31 = lean_ctor_get(x_14, 1); +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_28, 0); +x_32 = lean_ctor_get(x_28, 1); +lean_inc(x_32); lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_14); -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_dec(x_28); +lean_ctor_set(x_23, 0, x_31); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_23); +lean_ctor_set(x_33, 1, x_32); +return x_33; +} +} +else +{ +uint8_t x_34; +lean_free_object(x_23); +lean_dec(x_27); +x_34 = !lean_is_exclusive(x_28); +if (x_34 == 0) +{ +return x_28; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_28, 0); +x_36 = lean_ctor_get(x_28, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_28); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; } } } else { -uint8_t x_33; +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_23, 0); +x_39 = lean_ctor_get(x_23, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_23); +x_40 = l_Lean_Meta_applySimpResultToLocalDeclCore(x_1, x_3, x_38, x_8, x_9, x_10, x_11, x_24); +if (lean_obj_tag(x_40) == 0) +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + x_43 = x_40; +} else { + lean_dec_ref(x_40); + x_43 = lean_box(0); +} +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_41); +lean_ctor_set(x_44, 1, x_39); +if (lean_is_scalar(x_43)) { + x_45 = lean_alloc_ctor(0, 2, 0); +} else { + x_45 = x_43; +} +lean_ctor_set(x_45, 0, x_44); +lean_ctor_set(x_45, 1, x_42); +return x_45; +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +lean_dec(x_39); +x_46 = lean_ctor_get(x_40, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_40, 1); +lean_inc(x_47); +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + x_48 = x_40; +} else { + lean_dec_ref(x_40); + x_48 = lean_box(0); +} +if (lean_is_scalar(x_48)) { + x_49 = lean_alloc_ctor(1, 2, 0); +} else { + x_49 = x_48; +} +lean_ctor_set(x_49, 0, x_46); +lean_ctor_set(x_49, 1, x_47); +return x_49; +} +} +} +else +{ +uint8_t x_50; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_1); +x_50 = !lean_is_exclusive(x_22); +if (x_50 == 0) +{ +return x_22; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_22, 0); +x_52 = lean_ctor_get(x_22, 1); +lean_inc(x_52); +lean_inc(x_51); +lean_dec(x_22); +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +return x_53; +} +} +} +else +{ +uint8_t x_54; +lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -46577,63 +47236,96 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_33 = !lean_is_exclusive(x_12); -if (x_33 == 0) +x_54 = !lean_is_exclusive(x_15); +if (x_54 == 0) { -return x_12; +return x_15; } else { -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_12, 0); -x_35 = lean_ctor_get(x_12, 1); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_12); -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* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_15, 0); +x_56 = lean_ctor_get(x_15, 1); +lean_inc(x_56); +lean_inc(x_55); +lean_dec(x_15); +x_57 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_56); +return x_57; +} +} +} +else +{ +uint8_t x_58; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_58 = !lean_is_exclusive(x_13); +if (x_58 == 0) +{ +return x_13; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_13, 0); +x_60 = lean_ctor_get(x_13, 1); +lean_inc(x_60); +lean_inc(x_59); +lean_dec(x_13); +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; } } } } -LEAN_EXPORT lean_object* l_Lean_Meta_simpLocalDecl(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +LEAN_EXPORT lean_object* l_Lean_Meta_simpLocalDecl(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t 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 = l_Lean_Meta_Simp_main___closed__2; -x_12 = lean_box(x_5); +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_12 = l_Lean_Meta_Simp_main___closed__1; +x_13 = lean_box(x_5); lean_inc(x_1); -x_13 = lean_alloc_closure((void*)(l_Lean_Meta_simpLocalDecl___lambda__1___boxed), 11, 6); -lean_closure_set(x_13, 0, x_1); -lean_closure_set(x_13, 1, x_11); -lean_closure_set(x_13, 2, x_2); -lean_closure_set(x_13, 3, x_3); -lean_closure_set(x_13, 4, x_4); -lean_closure_set(x_13, 5, x_12); -x_14 = l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(x_1, x_13, x_6, x_7, x_8, x_9, x_10); +x_14 = lean_alloc_closure((void*)(l_Lean_Meta_simpLocalDecl___lambda__1___boxed), 12, 7); +lean_closure_set(x_14, 0, x_1); +lean_closure_set(x_14, 1, x_12); +lean_closure_set(x_14, 2, x_2); +lean_closure_set(x_14, 3, x_3); +lean_closure_set(x_14, 4, x_4); +lean_closure_set(x_14, 5, x_13); +lean_closure_set(x_14, 6, x_6); +x_15 = l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(x_1, x_14, x_7, x_8, x_9, x_10, x_11); +return x_15; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_simpLocalDecl___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_6); +lean_dec(x_6); +x_14 = l_Lean_Meta_simpLocalDecl___lambda__1(x_1, x_2, x_3, x_4, x_5, x_13, x_7, x_8, x_9, x_10, x_11, x_12); return x_14; } } -LEAN_EXPORT lean_object* l_Lean_Meta_simpLocalDecl___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_EXPORT lean_object* l_Lean_Meta_simpLocalDecl___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_6); -lean_dec(x_6); -x_13 = l_Lean_Meta_simpLocalDecl___lambda__1(x_1, x_2, x_3, x_4, x_5, x_12, x_7, x_8, x_9, x_10, x_11); -return x_13; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_simpLocalDecl___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: -{ -uint8_t x_11; lean_object* x_12; -x_11 = lean_unbox(x_5); +x_12 = lean_unbox(x_5); lean_dec(x_5); -x_12 = l_Lean_Meta_simpLocalDecl(x_1, x_2, x_3, x_4, x_11, x_6, x_7, x_8, x_9, x_10); -return x_12; +x_13 = l_Lean_Meta_simpLocalDecl(x_1, x_2, x_3, x_4, x_12, x_6, x_7, x_8, x_9, x_10, x_11); +return x_13; } } LEAN_EXPORT lean_object* l_Std_RBNode_find___at_Lean_Meta_simpGoal___spec__1(lean_object* x_1, lean_object* x_2) { @@ -46676,458 +47368,988 @@ goto _start; } } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___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* x_13) { _start: { -lean_object* x_13; lean_object* x_14; -x_13 = lean_ctor_get(x_1, 0); -lean_inc(x_13); +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_1, 0); +lean_inc(x_14); lean_dec(x_1); lean_inc(x_2); -x_14 = l_Lean_MVarId_replaceLocalDeclDefEq(x_5, x_2, x_13, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_14) == 0) +x_15 = l_Lean_MVarId_replaceLocalDeclDefEq(x_6, x_2, x_14, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_15) == 0) { -uint8_t x_15; -x_15 = !lean_is_exclusive(x_14); -if (x_15 == 0) +uint8_t x_16; +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_16 = lean_ctor_get(x_14, 0); -x_17 = lean_array_push(x_6, x_2); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_3); +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; +x_17 = lean_ctor_get(x_15, 0); +x_18 = lean_array_push(x_7, x_2); x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_16); -lean_ctor_set(x_19, 1, x_18); +lean_ctor_set(x_19, 0, x_3); +lean_ctor_set(x_19, 1, x_4); x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_4); +lean_ctor_set(x_20, 0, x_18); lean_ctor_set(x_20, 1, x_19); -x_21 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_14, 0, x_21); -return x_14; +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_17); +lean_ctor_set(x_21, 1, x_20); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_5); +lean_ctor_set(x_22, 1, x_21); +x_23 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_15, 0, x_23); +return x_15; } 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; lean_object* x_28; lean_object* x_29; -x_22 = lean_ctor_get(x_14, 0); -x_23 = lean_ctor_get(x_14, 1); -lean_inc(x_23); -lean_inc(x_22); -lean_dec(x_14); -x_24 = lean_array_push(x_6, x_2); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, x_3); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_22); -lean_ctor_set(x_26, 1, x_25); +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_24 = lean_ctor_get(x_15, 0); +x_25 = lean_ctor_get(x_15, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_15); +x_26 = lean_array_push(x_7, x_2); x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_4); -lean_ctor_set(x_27, 1, x_26); -x_28 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_27, 0, x_3); +lean_ctor_set(x_27, 1, x_4); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_28); -lean_ctor_set(x_29, 1, x_23); -return x_29; +lean_ctor_set(x_29, 0, x_24); +lean_ctor_set(x_29, 1, x_28); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_5); +lean_ctor_set(x_30, 1, x_29); +x_31 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_31, 0, x_30); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_32, 1, x_25); +return x_32; } } else { -uint8_t x_30; -lean_dec(x_6); +uint8_t x_33; +lean_dec(x_7); +lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_30 = !lean_is_exclusive(x_14); -if (x_30 == 0) +x_33 = !lean_is_exclusive(x_15); +if (x_33 == 0) { -return x_14; +return x_15; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_14, 0); -x_32 = lean_ctor_get(x_14, 1); -lean_inc(x_32); -lean_inc(x_31); -lean_dec(x_14); -x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_31); -lean_ctor_set(x_33, 1, x_32); -return x_33; +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_15, 0); +x_35 = lean_ctor_get(x_15, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_15); +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; } } } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___lambda__2___closed__1() { +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___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, lean_object* x_14, lean_object* x_15) { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = lean_box(0); -x_2 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___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, lean_object* x_14) { -_start: -{ -lean_object* x_15; +lean_object* x_16; +lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); -lean_inc(x_10); lean_inc(x_1); -x_15 = l_Lean_Meta_simp(x_1, x_9, x_2, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_15) == 0) +x_16 = l_Lean_Meta_simp(x_1, x_10, x_2, x_9, x_11, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_16) == 0) { -lean_object* x_16; lean_object* x_17; -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_16, 1); +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); -if (lean_obj_tag(x_17) == 0) +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_18, 1); +lean_inc(x_19); +if (lean_obj_tag(x_19) == 0) { -lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; +lean_object* x_20; uint8_t x_21; lean_dec(x_5); lean_dec(x_1); -x_18 = lean_ctor_get(x_15, 1); -lean_inc(x_18); -lean_dec(x_15); -x_19 = lean_ctor_get(x_16, 0); -lean_inc(x_19); -x_20 = l_Lean_Meta_Simp_isEqnThmHypothesis_go___closed__2; -x_21 = l_Lean_Expr_isConstOf(x_19, x_20); -lean_dec(x_19); +x_20 = lean_ctor_get(x_16, 1); +lean_inc(x_20); +lean_dec(x_16); +x_21 = !lean_is_exclusive(x_17); if (x_21 == 0) { -lean_object* x_22; lean_object* x_23; -x_22 = lean_box(0); -x_23 = l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___lambda__1(x_16, x_3, x_8, x_4, x_6, x_7, x_22, x_10, x_11, x_12, x_13, x_18); -return x_23; -} -else -{ -lean_object* x_24; -lean_dec(x_16); -lean_dec(x_4); -lean_inc(x_6); -x_24 = l_Lean_MVarId_getType(x_6, x_10, x_11, x_12, x_13, x_18); -if (lean_obj_tag(x_24) == 0) -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_22 = lean_ctor_get(x_17, 1); +x_23 = lean_ctor_get(x_17, 0); +lean_dec(x_23); +x_24 = lean_ctor_get(x_18, 0); +lean_inc(x_24); +x_25 = l_Lean_Meta_Simp_isEqnThmHypothesis_go___closed__2; +x_26 = l_Lean_Expr_isConstOf(x_24, x_25); lean_dec(x_24); -x_27 = l_Lean_Expr_fvar___override(x_3); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -x_28 = l_Lean_Meta_mkFalseElim(x_25, x_27, x_10, x_11, x_12, x_13, x_26); -if (lean_obj_tag(x_28) == 0) -{ -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); -lean_dec(x_28); -lean_inc(x_6); -x_31 = l_Lean_MVarId_assign___at_Lean_Meta_getLevel___spec__1(x_6, x_29, x_10, x_11, x_12, x_13, x_30); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -x_32 = !lean_is_exclusive(x_31); -if (x_32 == 0) -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_33 = lean_ctor_get(x_31, 0); -lean_dec(x_33); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_7); -lean_ctor_set(x_34, 1, x_8); -x_35 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_35, 0, x_6); -lean_ctor_set(x_35, 1, x_34); -x_36 = l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___lambda__2___closed__1; -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_35); -x_38 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_31, 0, x_38); -return x_31; -} -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; -x_39 = lean_ctor_get(x_31, 1); -lean_inc(x_39); -lean_dec(x_31); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_7); -lean_ctor_set(x_40, 1, x_8); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_6); -lean_ctor_set(x_41, 1, x_40); -x_42 = l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___lambda__2___closed__1; -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_41); -x_44 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_44, 0, x_43); -x_45 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_45, 0, x_44); -lean_ctor_set(x_45, 1, x_39); -return x_45; -} -} -else -{ -uint8_t x_46; -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_46 = !lean_is_exclusive(x_28); -if (x_46 == 0) +if (x_26 == 0) { +lean_object* x_27; lean_object* x_28; +lean_free_object(x_17); +x_27 = lean_box(0); +x_28 = l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___lambda__1(x_18, x_3, x_8, x_22, x_4, x_6, x_7, x_27, x_11, x_12, x_13, x_14, x_20); return x_28; } else { -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = lean_ctor_get(x_28, 0); -x_48 = lean_ctor_get(x_28, 1); -lean_inc(x_48); -lean_inc(x_47); -lean_dec(x_28); -x_49 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -return x_49; +lean_object* x_29; +lean_dec(x_18); +lean_dec(x_4); +lean_inc(x_6); +x_29 = l_Lean_MVarId_getType(x_6, x_11, x_12, x_13, x_14, x_20); +if (lean_obj_tag(x_29) == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +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 = l_Lean_Expr_fvar___override(x_3); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +x_33 = l_Lean_Meta_mkFalseElim(x_30, x_32, x_11, x_12, x_13, x_14, x_31); +if (lean_obj_tag(x_33) == 0) +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_33, 1); +lean_inc(x_35); +lean_dec(x_33); +lean_inc(x_6); +x_36 = l_Lean_MVarId_assign___at_Lean_Meta_getLevel___spec__1(x_6, x_34, x_11, x_12, x_13, x_14, x_35); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +x_37 = !lean_is_exclusive(x_36); +if (x_37 == 0) +{ +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; +x_38 = lean_ctor_get(x_36, 0); +lean_dec(x_38); +x_39 = lean_box(0); +lean_inc(x_22); +lean_ctor_set(x_17, 0, x_39); +x_40 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_40, 0, x_17); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_8); +lean_ctor_set(x_41, 1, x_22); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_7); +lean_ctor_set(x_42, 1, x_41); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_6); +lean_ctor_set(x_43, 1, x_42); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_40); +lean_ctor_set(x_44, 1, x_43); +x_45 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_45, 0, x_44); +lean_ctor_set(x_36, 0, x_45); +return x_36; +} +else +{ +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; +x_46 = lean_ctor_get(x_36, 1); +lean_inc(x_46); +lean_dec(x_36); +x_47 = lean_box(0); +lean_inc(x_22); +lean_ctor_set(x_17, 0, x_47); +x_48 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_48, 0, x_17); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_8); +lean_ctor_set(x_49, 1, x_22); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_7); +lean_ctor_set(x_50, 1, x_49); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_6); +lean_ctor_set(x_51, 1, x_50); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_48); +lean_ctor_set(x_52, 1, x_51); +x_53 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_53, 0, x_52); +x_54 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_46); +return x_54; +} +} +else +{ +uint8_t x_55; +lean_free_object(x_17); +lean_dec(x_22); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_55 = !lean_is_exclusive(x_33); +if (x_55 == 0) +{ +return x_33; +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_33, 0); +x_57 = lean_ctor_get(x_33, 1); +lean_inc(x_57); +lean_inc(x_56); +lean_dec(x_33); +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_50; +uint8_t x_59; +lean_free_object(x_17); +lean_dec(x_22); +lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); -lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_3); -x_50 = !lean_is_exclusive(x_24); -if (x_50 == 0) -{ -return x_24; -} -else -{ -lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_24, 0); -x_52 = lean_ctor_get(x_24, 1); -lean_inc(x_52); -lean_inc(x_51); -lean_dec(x_24); -x_53 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_53, 0, x_51); -lean_ctor_set(x_53, 1, x_52); -return x_53; -} -} -} -} -else -{ -lean_object* x_54; lean_object* x_55; uint8_t x_56; lean_object* x_57; -lean_dec(x_17); -x_54 = lean_ctor_get(x_15, 1); -lean_inc(x_54); -lean_dec(x_15); -x_55 = l_Lean_Expr_fvar___override(x_3); -x_56 = 1; -lean_inc(x_6); -x_57 = l_Lean_Meta_applySimpResultToProp(x_6, x_55, x_1, x_16, x_56, x_10, x_11, x_12, x_13, x_54); -lean_dec(x_1); -if (lean_obj_tag(x_57) == 0) -{ -lean_object* x_58; -x_58 = lean_ctor_get(x_57, 0); -lean_inc(x_58); -if (lean_obj_tag(x_58) == 0) -{ -uint8_t x_59; -lean_dec(x_5); -lean_dec(x_4); -x_59 = !lean_is_exclusive(x_57); +x_59 = !lean_is_exclusive(x_29); if (x_59 == 0) { -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_60 = lean_ctor_get(x_57, 0); -lean_dec(x_60); -x_61 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_61, 0, x_7); -lean_ctor_set(x_61, 1, x_8); -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_6); +return x_29; +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_29, 0); +x_61 = lean_ctor_get(x_29, 1); +lean_inc(x_61); +lean_inc(x_60); +lean_dec(x_29); +x_62 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_62, 0, x_60); lean_ctor_set(x_62, 1, x_61); -x_63 = l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___lambda__2___closed__1; -x_64 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_64, 0, x_63); -lean_ctor_set(x_64, 1, x_62); -x_65 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_65, 0, x_64); -lean_ctor_set(x_57, 0, x_65); -return x_57; +return x_62; +} } -else -{ -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; -x_66 = lean_ctor_get(x_57, 1); -lean_inc(x_66); -lean_dec(x_57); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_7); -lean_ctor_set(x_67, 1, x_8); -x_68 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_68, 0, x_6); -lean_ctor_set(x_68, 1, x_67); -x_69 = l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___lambda__2___closed__1; -x_70 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_70, 0, x_69); -lean_ctor_set(x_70, 1, x_68); -x_71 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_71, 0, x_70); -x_72 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_72, 0, x_71); -lean_ctor_set(x_72, 1, x_66); -return x_72; } } else { -lean_object* x_73; uint8_t x_74; -x_73 = lean_ctor_get(x_58, 0); -lean_inc(x_73); -lean_dec(x_58); -x_74 = !lean_is_exclusive(x_57); -if (x_74 == 0) +lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t x_66; +x_63 = lean_ctor_get(x_17, 1); +lean_inc(x_63); +lean_dec(x_17); +x_64 = lean_ctor_get(x_18, 0); +lean_inc(x_64); +x_65 = l_Lean_Meta_Simp_isEqnThmHypothesis_go___closed__2; +x_66 = l_Lean_Expr_isConstOf(x_64, x_65); +lean_dec(x_64); +if (x_66 == 0) { -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; -x_75 = lean_ctor_get(x_57, 0); -lean_dec(x_75); -x_76 = lean_ctor_get(x_73, 0); -lean_inc(x_76); -x_77 = lean_ctor_get(x_73, 1); +lean_object* x_67; lean_object* x_68; +x_67 = lean_box(0); +x_68 = l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___lambda__1(x_18, x_3, x_8, x_63, x_4, x_6, x_7, x_67, x_11, x_12, x_13, x_14, x_20); +return x_68; +} +else +{ +lean_object* x_69; +lean_dec(x_18); +lean_dec(x_4); +lean_inc(x_6); +x_69 = l_Lean_MVarId_getType(x_6, x_11, x_12, x_13, x_14, x_20); +if (lean_obj_tag(x_69) == 0) +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +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 = l_Lean_Expr_fvar___override(x_3); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +x_73 = l_Lean_Meta_mkFalseElim(x_70, x_72, x_11, x_12, x_13, x_14, x_71); +if (lean_obj_tag(x_73) == 0) +{ +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; +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_dec(x_73); +lean_inc(x_6); +x_76 = l_Lean_MVarId_assign___at_Lean_Meta_getLevel___spec__1(x_6, x_74, x_11, x_12, x_13, x_14, x_75); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +x_77 = lean_ctor_get(x_76, 1); lean_inc(x_77); -lean_dec(x_73); -x_78 = l_Lean_LocalDecl_userName(x_5); -lean_dec(x_5); -x_79 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_79, 0, x_78); -lean_ctor_set(x_79, 1, x_77); -lean_ctor_set(x_79, 2, x_76); -x_80 = lean_array_push(x_8, x_79); -x_81 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_81, 0, x_7); -lean_ctor_set(x_81, 1, x_80); +if (lean_is_exclusive(x_76)) { + lean_ctor_release(x_76, 0); + lean_ctor_release(x_76, 1); + x_78 = x_76; +} else { + lean_dec_ref(x_76); + x_78 = lean_box(0); +} +x_79 = lean_box(0); +lean_inc(x_63); +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_79); +lean_ctor_set(x_80, 1, x_63); +x_81 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_81, 0, x_80); x_82 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_82, 0, x_6); -lean_ctor_set(x_82, 1, x_81); +lean_ctor_set(x_82, 0, x_8); +lean_ctor_set(x_82, 1, x_63); x_83 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_83, 0, x_4); +lean_ctor_set(x_83, 0, x_7); lean_ctor_set(x_83, 1, x_82); -x_84 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_57, 0, x_84); -return x_57; +x_84 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_84, 0, x_6); +lean_ctor_set(x_84, 1, x_83); +x_85 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_85, 0, x_81); +lean_ctor_set(x_85, 1, x_84); +x_86 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_86, 0, x_85); +if (lean_is_scalar(x_78)) { + x_87 = lean_alloc_ctor(0, 2, 0); +} else { + x_87 = x_78; +} +lean_ctor_set(x_87, 0, x_86); +lean_ctor_set(x_87, 1, x_77); +return x_87; } 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; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; -x_85 = lean_ctor_get(x_57, 1); -lean_inc(x_85); -lean_dec(x_57); -x_86 = lean_ctor_get(x_73, 0); -lean_inc(x_86); -x_87 = lean_ctor_get(x_73, 1); -lean_inc(x_87); -lean_dec(x_73); -x_88 = l_Lean_LocalDecl_userName(x_5); -lean_dec(x_5); -x_89 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_89, 0, x_88); -lean_ctor_set(x_89, 1, x_87); -lean_ctor_set(x_89, 2, x_86); -x_90 = lean_array_push(x_8, x_89); -x_91 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_91, 0, x_7); -lean_ctor_set(x_91, 1, x_90); -x_92 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_92, 0, x_6); -lean_ctor_set(x_92, 1, x_91); -x_93 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_93, 0, x_4); -lean_ctor_set(x_93, 1, x_92); -x_94 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_94, 0, x_93); -x_95 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_95, 0, x_94); -lean_ctor_set(x_95, 1, x_85); +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; +lean_dec(x_63); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_88 = lean_ctor_get(x_73, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_73, 1); +lean_inc(x_89); +if (lean_is_exclusive(x_73)) { + lean_ctor_release(x_73, 0); + lean_ctor_release(x_73, 1); + x_90 = x_73; +} else { + lean_dec_ref(x_73); + x_90 = lean_box(0); +} +if (lean_is_scalar(x_90)) { + x_91 = lean_alloc_ctor(1, 2, 0); +} else { + x_91 = x_90; +} +lean_ctor_set(x_91, 0, x_88); +lean_ctor_set(x_91, 1, x_89); +return x_91; +} +} +else +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +lean_dec(x_63); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +x_92 = lean_ctor_get(x_69, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_69, 1); +lean_inc(x_93); +if (lean_is_exclusive(x_69)) { + lean_ctor_release(x_69, 0); + lean_ctor_release(x_69, 1); + x_94 = x_69; +} else { + lean_dec_ref(x_69); + x_94 = lean_box(0); +} +if (lean_is_scalar(x_94)) { + x_95 = lean_alloc_ctor(1, 2, 0); +} else { + x_95 = x_94; +} +lean_ctor_set(x_95, 0, x_92); +lean_ctor_set(x_95, 1, x_93); return x_95; } } } +} else { uint8_t x_96; +x_96 = !lean_is_exclusive(x_19); +if (x_96 == 0) +{ +lean_object* x_97; lean_object* x_98; uint8_t x_99; +x_97 = lean_ctor_get(x_19, 0); +lean_dec(x_97); +x_98 = lean_ctor_get(x_16, 1); +lean_inc(x_98); +lean_dec(x_16); +x_99 = !lean_is_exclusive(x_17); +if (x_99 == 0) +{ +lean_object* x_100; lean_object* x_101; lean_object* x_102; uint8_t x_103; lean_object* x_104; +x_100 = lean_ctor_get(x_17, 1); +x_101 = lean_ctor_get(x_17, 0); +lean_dec(x_101); +x_102 = l_Lean_Expr_fvar___override(x_3); +x_103 = 1; +lean_inc(x_6); +x_104 = l_Lean_Meta_applySimpResultToProp(x_6, x_102, x_1, x_18, x_103, x_11, x_12, x_13, x_14, x_98); +lean_dec(x_1); +if (lean_obj_tag(x_104) == 0) +{ +lean_object* x_105; +x_105 = lean_ctor_get(x_104, 0); +lean_inc(x_105); +if (lean_obj_tag(x_105) == 0) +{ +uint8_t x_106; +lean_dec(x_5); +lean_dec(x_4); +x_106 = !lean_is_exclusive(x_104); +if (x_106 == 0) +{ +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; +x_107 = lean_ctor_get(x_104, 0); +lean_dec(x_107); +x_108 = lean_box(0); +lean_inc(x_100); +lean_ctor_set(x_17, 0, x_108); +lean_ctor_set(x_19, 0, x_17); +x_109 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_109, 0, x_8); +lean_ctor_set(x_109, 1, x_100); +x_110 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_110, 0, x_7); +lean_ctor_set(x_110, 1, x_109); +x_111 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_111, 0, x_6); +lean_ctor_set(x_111, 1, x_110); +x_112 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_112, 0, x_19); +lean_ctor_set(x_112, 1, x_111); +x_113 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_113, 0, x_112); +lean_ctor_set(x_104, 0, x_113); +return x_104; +} +else +{ +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_114 = lean_ctor_get(x_104, 1); +lean_inc(x_114); +lean_dec(x_104); +x_115 = lean_box(0); +lean_inc(x_100); +lean_ctor_set(x_17, 0, x_115); +lean_ctor_set(x_19, 0, x_17); +x_116 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_116, 0, x_8); +lean_ctor_set(x_116, 1, x_100); +x_117 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_117, 0, x_7); +lean_ctor_set(x_117, 1, x_116); +x_118 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_118, 0, x_6); +lean_ctor_set(x_118, 1, x_117); +x_119 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_119, 0, x_19); +lean_ctor_set(x_119, 1, x_118); +x_120 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_120, 0, x_119); +x_121 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_121, 0, x_120); +lean_ctor_set(x_121, 1, x_114); +return x_121; +} +} +else +{ +lean_object* x_122; uint8_t x_123; +lean_free_object(x_17); +lean_free_object(x_19); +x_122 = lean_ctor_get(x_105, 0); +lean_inc(x_122); +lean_dec(x_105); +x_123 = !lean_is_exclusive(x_104); +if (x_123 == 0) +{ +lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_124 = lean_ctor_get(x_104, 0); +lean_dec(x_124); +x_125 = lean_ctor_get(x_122, 0); +lean_inc(x_125); +x_126 = lean_ctor_get(x_122, 1); +lean_inc(x_126); +lean_dec(x_122); +x_127 = l_Lean_LocalDecl_userName(x_5); +lean_dec(x_5); +x_128 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_126); +lean_ctor_set(x_128, 2, x_125); +x_129 = lean_array_push(x_8, x_128); +x_130 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_130, 0, x_129); +lean_ctor_set(x_130, 1, x_100); +x_131 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_131, 0, x_7); +lean_ctor_set(x_131, 1, x_130); +x_132 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_132, 0, x_6); +lean_ctor_set(x_132, 1, x_131); +x_133 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_133, 0, x_4); +lean_ctor_set(x_133, 1, x_132); +x_134 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_104, 0, x_134); +return x_104; +} +else +{ +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; +x_135 = lean_ctor_get(x_104, 1); +lean_inc(x_135); +lean_dec(x_104); +x_136 = lean_ctor_get(x_122, 0); +lean_inc(x_136); +x_137 = lean_ctor_get(x_122, 1); +lean_inc(x_137); +lean_dec(x_122); +x_138 = l_Lean_LocalDecl_userName(x_5); +lean_dec(x_5); +x_139 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_139, 0, x_138); +lean_ctor_set(x_139, 1, x_137); +lean_ctor_set(x_139, 2, x_136); +x_140 = lean_array_push(x_8, x_139); +x_141 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_141, 0, x_140); +lean_ctor_set(x_141, 1, x_100); +x_142 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_142, 0, x_7); +lean_ctor_set(x_142, 1, x_141); +x_143 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_143, 0, x_6); +lean_ctor_set(x_143, 1, x_142); +x_144 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_144, 0, x_4); +lean_ctor_set(x_144, 1, x_143); +x_145 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_145, 0, x_144); +x_146 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_146, 0, x_145); +lean_ctor_set(x_146, 1, x_135); +return x_146; +} +} +} +else +{ +uint8_t x_147; +lean_free_object(x_17); +lean_dec(x_100); +lean_free_object(x_19); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_96 = !lean_is_exclusive(x_57); -if (x_96 == 0) +x_147 = !lean_is_exclusive(x_104); +if (x_147 == 0) { -return x_57; +return x_104; } else { -lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_97 = lean_ctor_get(x_57, 0); -x_98 = lean_ctor_get(x_57, 1); -lean_inc(x_98); -lean_inc(x_97); -lean_dec(x_57); -x_99 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_99, 0, x_97); -lean_ctor_set(x_99, 1, x_98); -return x_99; +lean_object* x_148; lean_object* x_149; lean_object* x_150; +x_148 = lean_ctor_get(x_104, 0); +x_149 = lean_ctor_get(x_104, 1); +lean_inc(x_149); +lean_inc(x_148); +lean_dec(x_104); +x_150 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_150, 0, x_148); +lean_ctor_set(x_150, 1, x_149); +return x_150; +} +} +} +else +{ +lean_object* x_151; lean_object* x_152; uint8_t x_153; lean_object* x_154; +x_151 = lean_ctor_get(x_17, 1); +lean_inc(x_151); +lean_dec(x_17); +x_152 = l_Lean_Expr_fvar___override(x_3); +x_153 = 1; +lean_inc(x_6); +x_154 = l_Lean_Meta_applySimpResultToProp(x_6, x_152, x_1, x_18, x_153, x_11, x_12, x_13, x_14, x_98); +lean_dec(x_1); +if (lean_obj_tag(x_154) == 0) +{ +lean_object* x_155; +x_155 = lean_ctor_get(x_154, 0); +lean_inc(x_155); +if (lean_obj_tag(x_155) == 0) +{ +lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; +lean_dec(x_5); +lean_dec(x_4); +x_156 = lean_ctor_get(x_154, 1); +lean_inc(x_156); +if (lean_is_exclusive(x_154)) { + lean_ctor_release(x_154, 0); + lean_ctor_release(x_154, 1); + x_157 = x_154; +} else { + lean_dec_ref(x_154); + x_157 = lean_box(0); +} +x_158 = lean_box(0); +lean_inc(x_151); +x_159 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_159, 0, x_158); +lean_ctor_set(x_159, 1, x_151); +lean_ctor_set(x_19, 0, x_159); +x_160 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_160, 0, x_8); +lean_ctor_set(x_160, 1, x_151); +x_161 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_161, 0, x_7); +lean_ctor_set(x_161, 1, x_160); +x_162 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_162, 0, x_6); +lean_ctor_set(x_162, 1, x_161); +x_163 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_163, 0, x_19); +lean_ctor_set(x_163, 1, x_162); +x_164 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_164, 0, x_163); +if (lean_is_scalar(x_157)) { + x_165 = lean_alloc_ctor(0, 2, 0); +} else { + x_165 = x_157; +} +lean_ctor_set(x_165, 0, x_164); +lean_ctor_set(x_165, 1, x_156); +return x_165; +} +else +{ +lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; +lean_free_object(x_19); +x_166 = lean_ctor_get(x_155, 0); +lean_inc(x_166); +lean_dec(x_155); +x_167 = lean_ctor_get(x_154, 1); +lean_inc(x_167); +if (lean_is_exclusive(x_154)) { + lean_ctor_release(x_154, 0); + lean_ctor_release(x_154, 1); + x_168 = x_154; +} else { + lean_dec_ref(x_154); + x_168 = lean_box(0); +} +x_169 = lean_ctor_get(x_166, 0); +lean_inc(x_169); +x_170 = lean_ctor_get(x_166, 1); +lean_inc(x_170); +lean_dec(x_166); +x_171 = l_Lean_LocalDecl_userName(x_5); +lean_dec(x_5); +x_172 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_172, 0, x_171); +lean_ctor_set(x_172, 1, x_170); +lean_ctor_set(x_172, 2, x_169); +x_173 = lean_array_push(x_8, x_172); +x_174 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_174, 0, x_173); +lean_ctor_set(x_174, 1, x_151); +x_175 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_175, 0, x_7); +lean_ctor_set(x_175, 1, x_174); +x_176 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_176, 0, x_6); +lean_ctor_set(x_176, 1, x_175); +x_177 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_177, 0, x_4); +lean_ctor_set(x_177, 1, x_176); +x_178 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_178, 0, x_177); +if (lean_is_scalar(x_168)) { + x_179 = lean_alloc_ctor(0, 2, 0); +} else { + x_179 = x_168; +} +lean_ctor_set(x_179, 0, x_178); +lean_ctor_set(x_179, 1, x_167); +return x_179; +} +} +else +{ +lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; +lean_dec(x_151); +lean_free_object(x_19); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_180 = lean_ctor_get(x_154, 0); +lean_inc(x_180); +x_181 = lean_ctor_get(x_154, 1); +lean_inc(x_181); +if (lean_is_exclusive(x_154)) { + lean_ctor_release(x_154, 0); + lean_ctor_release(x_154, 1); + x_182 = x_154; +} else { + lean_dec_ref(x_154); + x_182 = lean_box(0); +} +if (lean_is_scalar(x_182)) { + x_183 = lean_alloc_ctor(1, 2, 0); +} else { + x_183 = x_182; +} +lean_ctor_set(x_183, 0, x_180); +lean_ctor_set(x_183, 1, x_181); +return x_183; +} +} +} +else +{ +lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; uint8_t x_188; lean_object* x_189; +lean_dec(x_19); +x_184 = lean_ctor_get(x_16, 1); +lean_inc(x_184); +lean_dec(x_16); +x_185 = lean_ctor_get(x_17, 1); +lean_inc(x_185); +if (lean_is_exclusive(x_17)) { + lean_ctor_release(x_17, 0); + lean_ctor_release(x_17, 1); + x_186 = x_17; +} else { + lean_dec_ref(x_17); + x_186 = lean_box(0); +} +x_187 = l_Lean_Expr_fvar___override(x_3); +x_188 = 1; +lean_inc(x_6); +x_189 = l_Lean_Meta_applySimpResultToProp(x_6, x_187, x_1, x_18, x_188, x_11, x_12, x_13, x_14, x_184); +lean_dec(x_1); +if (lean_obj_tag(x_189) == 0) +{ +lean_object* x_190; +x_190 = lean_ctor_get(x_189, 0); +lean_inc(x_190); +if (lean_obj_tag(x_190) == 0) +{ +lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; +lean_dec(x_5); +lean_dec(x_4); +x_191 = lean_ctor_get(x_189, 1); +lean_inc(x_191); +if (lean_is_exclusive(x_189)) { + lean_ctor_release(x_189, 0); + lean_ctor_release(x_189, 1); + x_192 = x_189; +} else { + lean_dec_ref(x_189); + x_192 = lean_box(0); +} +x_193 = lean_box(0); +lean_inc(x_185); +if (lean_is_scalar(x_186)) { + x_194 = lean_alloc_ctor(0, 2, 0); +} else { + x_194 = x_186; +} +lean_ctor_set(x_194, 0, x_193); +lean_ctor_set(x_194, 1, x_185); +x_195 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_195, 0, x_194); +x_196 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_196, 0, x_8); +lean_ctor_set(x_196, 1, x_185); +x_197 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_197, 0, x_7); +lean_ctor_set(x_197, 1, x_196); +x_198 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_198, 0, x_6); +lean_ctor_set(x_198, 1, x_197); +x_199 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_199, 0, x_195); +lean_ctor_set(x_199, 1, x_198); +x_200 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_200, 0, x_199); +if (lean_is_scalar(x_192)) { + x_201 = lean_alloc_ctor(0, 2, 0); +} else { + x_201 = x_192; +} +lean_ctor_set(x_201, 0, x_200); +lean_ctor_set(x_201, 1, x_191); +return x_201; +} +else +{ +lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; +lean_dec(x_186); +x_202 = lean_ctor_get(x_190, 0); +lean_inc(x_202); +lean_dec(x_190); +x_203 = lean_ctor_get(x_189, 1); +lean_inc(x_203); +if (lean_is_exclusive(x_189)) { + lean_ctor_release(x_189, 0); + lean_ctor_release(x_189, 1); + x_204 = x_189; +} else { + lean_dec_ref(x_189); + x_204 = lean_box(0); +} +x_205 = lean_ctor_get(x_202, 0); +lean_inc(x_205); +x_206 = lean_ctor_get(x_202, 1); +lean_inc(x_206); +lean_dec(x_202); +x_207 = l_Lean_LocalDecl_userName(x_5); +lean_dec(x_5); +x_208 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_208, 0, x_207); +lean_ctor_set(x_208, 1, x_206); +lean_ctor_set(x_208, 2, x_205); +x_209 = lean_array_push(x_8, x_208); +x_210 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_210, 0, x_209); +lean_ctor_set(x_210, 1, x_185); +x_211 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_211, 0, x_7); +lean_ctor_set(x_211, 1, x_210); +x_212 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_212, 0, x_6); +lean_ctor_set(x_212, 1, x_211); +x_213 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_213, 0, x_4); +lean_ctor_set(x_213, 1, x_212); +x_214 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_214, 0, x_213); +if (lean_is_scalar(x_204)) { + x_215 = lean_alloc_ctor(0, 2, 0); +} else { + x_215 = x_204; +} +lean_ctor_set(x_215, 0, x_214); +lean_ctor_set(x_215, 1, x_203); +return x_215; +} +} +else +{ +lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; +lean_dec(x_186); +lean_dec(x_185); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_216 = lean_ctor_get(x_189, 0); +lean_inc(x_216); +x_217 = lean_ctor_get(x_189, 1); +lean_inc(x_217); +if (lean_is_exclusive(x_189)) { + lean_ctor_release(x_189, 0); + lean_ctor_release(x_189, 1); + x_218 = x_189; +} else { + lean_dec_ref(x_189); + x_218 = lean_box(0); +} +if (lean_is_scalar(x_218)) { + x_219 = lean_alloc_ctor(1, 2, 0); +} else { + x_219 = x_218; +} +lean_ctor_set(x_219, 0, x_216); +lean_ctor_set(x_219, 1, x_217); +return x_219; } } } } else { -uint8_t x_100; +uint8_t x_220; +lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); -lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -47135,23 +48357,23 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_100 = !lean_is_exclusive(x_15); -if (x_100 == 0) +x_220 = !lean_is_exclusive(x_16); +if (x_220 == 0) { -return x_15; +return x_16; } else { -lean_object* x_101; lean_object* x_102; lean_object* x_103; -x_101 = lean_ctor_get(x_15, 0); -x_102 = lean_ctor_get(x_15, 1); -lean_inc(x_102); -lean_inc(x_101); -lean_dec(x_15); -x_103 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_103, 0, x_101); -lean_ctor_set(x_103, 1, x_102); -return x_103; +lean_object* x_221; lean_object* x_222; lean_object* x_223; +x_221 = lean_ctor_get(x_16, 0); +x_222 = lean_ctor_get(x_16, 1); +lean_inc(x_222); +lean_inc(x_221); +lean_dec(x_16); +x_223 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_223, 0, x_221); +lean_ctor_set(x_223, 1, x_222); +return x_223; } } } @@ -47178,7 +48400,7 @@ return x_15; } else { -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_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; x_16 = lean_array_uget(x_5, x_7); x_17 = lean_ctor_get(x_8, 1); lean_inc(x_17); @@ -47193,30 +48415,35 @@ lean_inc(x_20); x_21 = lean_ctor_get(x_19, 1); lean_inc(x_21); lean_dec(x_19); +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_21, 1); +lean_inc(x_23); +lean_dec(x_21); lean_inc(x_9); lean_inc(x_16); -x_22 = l_Lean_FVarId_getDecl(x_16, x_9, x_10, x_11, x_12, x_13); -if (lean_obj_tag(x_22) == 0) +x_24 = l_Lean_FVarId_getDecl(x_16, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_24) == 0) { -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; -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); -x_25 = l_Lean_LocalDecl_type(x_23); -x_26 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__2(x_25, x_9, x_10, x_11, x_12, x_24); -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -x_28 = lean_ctor_get(x_26, 1); -lean_inc(x_28); -lean_dec(x_26); -x_29 = l_Lean_LocalDecl_fvarId(x_23); -x_30 = l_Std_RBNode_find___at_Lean_Meta_simpGoal___spec__1(x_3, x_29); -lean_dec(x_29); -if (lean_obj_tag(x_30) == 0) +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +x_27 = l_Lean_LocalDecl_type(x_25); +x_28 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__2(x_27, x_9, x_10, x_11, x_12, x_26); +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_28, 1); +lean_inc(x_30); +lean_dec(x_28); +x_31 = l_Lean_LocalDecl_fvarId(x_25); +x_32 = l_Std_RBNode_find___at_Lean_Meta_simpGoal___spec__1(x_3, x_31); +lean_dec(x_31); +if (lean_obj_tag(x_32) == 0) { -lean_object* x_31; +lean_object* x_33; lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); @@ -47224,15 +48451,15 @@ lean_inc(x_9); lean_inc(x_1); lean_inc(x_4); lean_inc(x_2); -x_31 = l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___lambda__2(x_27, x_2, x_16, x_4, x_23, x_18, x_20, x_21, x_1, x_9, x_10, x_11, x_12, x_28); -if (lean_obj_tag(x_31) == 0) +x_33 = l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___lambda__2(x_29, x_2, x_16, x_4, x_25, x_18, x_20, x_22, x_23, x_1, x_9, x_10, x_11, x_12, x_30); +if (lean_obj_tag(x_33) == 0) { -lean_object* x_32; -x_32 = lean_ctor_get(x_31, 0); -lean_inc(x_32); -if (lean_obj_tag(x_32) == 0) +lean_object* x_34; +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +if (lean_obj_tag(x_34) == 0) { -uint8_t x_33; +uint8_t x_35; lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -47240,53 +48467,53 @@ lean_dec(x_9); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_33 = !lean_is_exclusive(x_31); -if (x_33 == 0) +x_35 = !lean_is_exclusive(x_33); +if (x_35 == 0) { -lean_object* x_34; lean_object* x_35; -x_34 = lean_ctor_get(x_31, 0); -lean_dec(x_34); -x_35 = lean_ctor_get(x_32, 0); -lean_inc(x_35); -lean_dec(x_32); -lean_ctor_set(x_31, 0, x_35); -return x_31; -} -else -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_31, 1); -lean_inc(x_36); -lean_dec(x_31); -x_37 = lean_ctor_get(x_32, 0); +lean_object* x_36; lean_object* x_37; +x_36 = lean_ctor_get(x_33, 0); +lean_dec(x_36); +x_37 = lean_ctor_get(x_34, 0); lean_inc(x_37); -lean_dec(x_32); -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_36); -return x_38; +lean_dec(x_34); +lean_ctor_set(x_33, 0, x_37); +return x_33; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_33, 1); +lean_inc(x_38); +lean_dec(x_33); +x_39 = lean_ctor_get(x_34, 0); +lean_inc(x_39); +lean_dec(x_34); +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_38); +return x_40; } } else { -lean_object* x_39; lean_object* x_40; size_t x_41; size_t x_42; -x_39 = lean_ctor_get(x_31, 1); -lean_inc(x_39); -lean_dec(x_31); -x_40 = lean_ctor_get(x_32, 0); -lean_inc(x_40); -lean_dec(x_32); -x_41 = 1; -x_42 = lean_usize_add(x_7, x_41); -x_7 = x_42; -x_8 = x_40; -x_13 = x_39; +lean_object* x_41; lean_object* x_42; size_t x_43; size_t x_44; +x_41 = lean_ctor_get(x_33, 1); +lean_inc(x_41); +lean_dec(x_33); +x_42 = lean_ctor_get(x_34, 0); +lean_inc(x_42); +lean_dec(x_34); +x_43 = 1; +x_44 = lean_usize_add(x_7, x_43); +x_7 = x_44; +x_8 = x_42; +x_13 = x_41; goto _start; } } else { -uint8_t x_44; +uint8_t x_46; lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -47294,64 +48521,67 @@ lean_dec(x_9); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_44 = !lean_is_exclusive(x_31); -if (x_44 == 0) +x_46 = !lean_is_exclusive(x_33); +if (x_46 == 0) { -return x_31; +return x_33; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_31, 0); -x_46 = lean_ctor_get(x_31, 1); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_31); -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -return x_47; -} -} -} -else -{ -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; -x_48 = lean_ctor_get(x_30, 0); +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_33, 0); +x_48 = lean_ctor_get(x_33, 1); lean_inc(x_48); -lean_dec(x_30); -x_49 = lean_ctor_get(x_1, 0); -lean_inc(x_49); -x_50 = lean_ctor_get(x_1, 1); +lean_inc(x_47); +lean_dec(x_33); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +return x_49; +} +} +} +else +{ +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; +x_50 = lean_ctor_get(x_32, 0); lean_inc(x_50); -x_51 = lean_ctor_get(x_1, 2); +lean_dec(x_32); +x_51 = lean_ctor_get(x_1, 0); lean_inc(x_51); -x_52 = lean_ctor_get(x_1, 3); +x_52 = lean_ctor_get(x_1, 1); lean_inc(x_52); -x_53 = lean_ctor_get(x_1, 4); +x_53 = lean_ctor_get(x_1, 2); lean_inc(x_53); -x_54 = l_Lean_Meta_SimpTheoremsArray_eraseTheorem(x_50, x_48); -x_55 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_55, 0, x_49); -lean_ctor_set(x_55, 1, x_54); -lean_ctor_set(x_55, 2, x_51); -lean_ctor_set(x_55, 3, x_52); -lean_ctor_set(x_55, 4, x_53); +x_54 = lean_ctor_get(x_1, 3); +lean_inc(x_54); +x_55 = lean_ctor_get(x_1, 4); +lean_inc(x_55); +x_56 = lean_ctor_get(x_1, 5); +lean_inc(x_56); +x_57 = l_Lean_Meta_SimpTheoremsArray_eraseTheorem(x_52, x_50); +x_58 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_58, 0, x_51); +lean_ctor_set(x_58, 1, x_57); +lean_ctor_set(x_58, 2, x_53); +lean_ctor_set(x_58, 3, x_54); +lean_ctor_set(x_58, 4, x_55); +lean_ctor_set(x_58, 5, x_56); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_4); lean_inc(x_2); -x_56 = l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___lambda__2(x_27, x_2, x_16, x_4, x_23, x_18, x_20, x_21, x_55, x_9, x_10, x_11, x_12, x_28); -if (lean_obj_tag(x_56) == 0) +x_59 = l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___lambda__2(x_29, x_2, x_16, x_4, x_25, x_18, x_20, x_22, x_23, x_58, x_9, x_10, x_11, x_12, x_30); +if (lean_obj_tag(x_59) == 0) { -lean_object* x_57; -x_57 = lean_ctor_get(x_56, 0); -lean_inc(x_57); -if (lean_obj_tag(x_57) == 0) +lean_object* x_60; +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +if (lean_obj_tag(x_60) == 0) { -uint8_t x_58; +uint8_t x_61; lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -47359,53 +48589,53 @@ lean_dec(x_9); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_58 = !lean_is_exclusive(x_56); -if (x_58 == 0) +x_61 = !lean_is_exclusive(x_59); +if (x_61 == 0) { -lean_object* x_59; lean_object* x_60; -x_59 = lean_ctor_get(x_56, 0); -lean_dec(x_59); -x_60 = lean_ctor_get(x_57, 0); -lean_inc(x_60); -lean_dec(x_57); -lean_ctor_set(x_56, 0, x_60); -return x_56; +lean_object* x_62; lean_object* x_63; +x_62 = lean_ctor_get(x_59, 0); +lean_dec(x_62); +x_63 = lean_ctor_get(x_60, 0); +lean_inc(x_63); +lean_dec(x_60); +lean_ctor_set(x_59, 0, x_63); +return x_59; } else { -lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_61 = lean_ctor_get(x_56, 1); -lean_inc(x_61); -lean_dec(x_56); -x_62 = lean_ctor_get(x_57, 0); -lean_inc(x_62); -lean_dec(x_57); -x_63 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_63, 0, x_62); -lean_ctor_set(x_63, 1, x_61); -return x_63; -} -} -else -{ -lean_object* x_64; lean_object* x_65; size_t x_66; size_t x_67; -x_64 = lean_ctor_get(x_56, 1); +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_59, 1); lean_inc(x_64); -lean_dec(x_56); -x_65 = lean_ctor_get(x_57, 0); +lean_dec(x_59); +x_65 = lean_ctor_get(x_60, 0); lean_inc(x_65); -lean_dec(x_57); -x_66 = 1; -x_67 = lean_usize_add(x_7, x_66); -x_7 = x_67; -x_8 = x_65; -x_13 = x_64; +lean_dec(x_60); +x_66 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_64); +return x_66; +} +} +else +{ +lean_object* x_67; lean_object* x_68; size_t x_69; size_t x_70; +x_67 = lean_ctor_get(x_59, 1); +lean_inc(x_67); +lean_dec(x_59); +x_68 = lean_ctor_get(x_60, 0); +lean_inc(x_68); +lean_dec(x_60); +x_69 = 1; +x_70 = lean_usize_add(x_7, x_69); +x_7 = x_70; +x_8 = x_68; +x_13 = x_67; goto _start; } } else { -uint8_t x_69; +uint8_t x_72; lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -47413,31 +48643,32 @@ lean_dec(x_9); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_69 = !lean_is_exclusive(x_56); -if (x_69 == 0) +x_72 = !lean_is_exclusive(x_59); +if (x_72 == 0) { -return x_56; +return x_59; } else { -lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_70 = lean_ctor_get(x_56, 0); -x_71 = lean_ctor_get(x_56, 1); -lean_inc(x_71); -lean_inc(x_70); -lean_dec(x_56); -x_72 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_72, 0, x_70); -lean_ctor_set(x_72, 1, x_71); -return x_72; +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_59, 0); +x_74 = lean_ctor_get(x_59, 1); +lean_inc(x_74); +lean_inc(x_73); +lean_dec(x_59); +x_75 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_75, 0, x_73); +lean_ctor_set(x_75, 1, x_74); +return x_75; } } } } else { -uint8_t x_73; -lean_dec(x_21); +uint8_t x_76; +lean_dec(x_23); +lean_dec(x_22); lean_dec(x_20); lean_dec(x_18); lean_dec(x_16); @@ -47448,23 +48679,23 @@ lean_dec(x_9); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_73 = !lean_is_exclusive(x_22); -if (x_73 == 0) +x_76 = !lean_is_exclusive(x_24); +if (x_76 == 0) { -return x_22; +return x_24; } else { -lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_74 = lean_ctor_get(x_22, 0); -x_75 = lean_ctor_get(x_22, 1); -lean_inc(x_75); -lean_inc(x_74); -lean_dec(x_22); -x_76 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_76, 0, x_74); -lean_ctor_set(x_76, 1, x_75); -return x_76; +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_24, 0); +x_78 = lean_ctor_get(x_24, 1); +lean_inc(x_78); +lean_inc(x_77); +lean_dec(x_24); +x_79 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_79, 0, x_77); +lean_ctor_set(x_79, 1, x_78); +return x_79; } } } @@ -47503,724 +48734,769 @@ return x_5; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_simpGoal___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, size_t x_6, size_t 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_EXPORT lean_object* l_Lean_Meta_simpGoal___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, size_t x_6, size_t 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) { _start: { -lean_object* x_15; +lean_object* x_16; +lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); -lean_inc(x_10); -x_15 = l_Lean_MVarId_assertHypotheses(x_8, x_1, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_15) == 0) +x_16 = l_Lean_MVarId_assertHypotheses(x_8, x_1, x_11, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_16) == 0) { -lean_object* x_16; lean_object* x_17; uint8_t x_18; -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); +lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); -lean_dec(x_15); -x_18 = !lean_is_exclusive(x_16); -if (x_18 == 0) +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +x_19 = !lean_is_exclusive(x_17); +if (x_19 == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; -x_19 = lean_ctor_get(x_16, 0); -x_20 = lean_ctor_get(x_16, 1); -x_21 = lean_unsigned_to_nat(0u); -x_22 = lean_nat_dec_lt(x_21, x_2); -if (x_22 == 0) +lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_20 = lean_ctor_get(x_17, 0); +x_21 = lean_ctor_get(x_17, 1); +x_22 = lean_unsigned_to_nat(0u); +x_23 = lean_nat_dec_lt(x_22, x_2); +if (x_23 == 0) { -lean_object* x_23; -x_23 = l_Lean_MVarId_tryClearMany(x_20, x_3, x_10, x_11, x_12, x_13, x_17); -if (lean_obj_tag(x_23) == 0) +lean_object* x_24; +x_24 = l_Lean_MVarId_tryClearMany(x_21, x_3, x_11, x_12, x_13, x_14, x_18); +if (lean_obj_tag(x_24) == 0) { -uint8_t x_24; -x_24 = !lean_is_exclusive(x_23); -if (x_24 == 0) +uint8_t x_25; +x_25 = !lean_is_exclusive(x_24); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_24, 0); +lean_ctor_set(x_17, 1, x_26); +x_27 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_27, 0, x_17); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_9); +lean_ctor_set(x_24, 0, x_28); +return x_24; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_29 = lean_ctor_get(x_24, 0); +x_30 = lean_ctor_get(x_24, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_24); +lean_ctor_set(x_17, 1, x_29); +x_31 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_31, 0, x_17); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_32, 1, x_9); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_30); +return x_33; +} +} +else +{ +uint8_t x_34; +lean_free_object(x_17); +lean_dec(x_20); +lean_dec(x_9); +x_34 = !lean_is_exclusive(x_24); +if (x_34 == 0) +{ +return x_24; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_24, 0); +x_36 = lean_ctor_get(x_24, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_24); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +} +else +{ +uint8_t x_38; +x_38 = lean_nat_dec_le(x_2, x_2); +if (x_38 == 0) +{ +lean_object* x_39; +x_39 = l_Lean_MVarId_tryClearMany(x_21, x_3, x_11, x_12, x_13, x_14, x_18); +if (lean_obj_tag(x_39) == 0) +{ +uint8_t x_40; +x_40 = !lean_is_exclusive(x_39); +if (x_40 == 0) +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_39, 0); +lean_ctor_set(x_17, 1, x_41); +x_42 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_42, 0, x_17); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_9); +lean_ctor_set(x_39, 0, x_43); +return x_39; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_44 = lean_ctor_get(x_39, 0); +x_45 = lean_ctor_get(x_39, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_39); +lean_ctor_set(x_17, 1, x_44); +x_46 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_46, 0, x_17); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_9); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_45); +return x_48; +} +} +else +{ +uint8_t x_49; +lean_free_object(x_17); +lean_dec(x_20); +lean_dec(x_9); +x_49 = !lean_is_exclusive(x_39); +if (x_49 == 0) +{ +return x_39; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_39, 0); +x_51 = lean_ctor_get(x_39, 1); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_39); +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +return x_52; +} +} +} +else +{ +lean_object* x_53; lean_object* x_54; +x_53 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_simpGoal___spec__3(x_4, x_5, x_6, x_7, x_3); +x_54 = l_Lean_MVarId_tryClearMany(x_21, x_53, x_11, x_12, x_13, x_14, x_18); +if (lean_obj_tag(x_54) == 0) +{ +uint8_t x_55; +x_55 = !lean_is_exclusive(x_54); +if (x_55 == 0) +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_54, 0); +lean_ctor_set(x_17, 1, x_56); +x_57 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_57, 0, x_17); +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set(x_58, 1, x_9); +lean_ctor_set(x_54, 0, x_58); +return x_54; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +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); +lean_ctor_set(x_17, 1, x_59); +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_17); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_9); +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_60); +return x_63; +} +} +else +{ +uint8_t x_64; +lean_free_object(x_17); +lean_dec(x_20); +lean_dec(x_9); +x_64 = !lean_is_exclusive(x_54); +if (x_64 == 0) +{ +return x_54; +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_54, 0); +x_66 = lean_ctor_get(x_54, 1); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_54); +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_65); +lean_ctor_set(x_67, 1, x_66); +return x_67; +} +} +} +} +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; +x_68 = lean_ctor_get(x_17, 0); +x_69 = lean_ctor_get(x_17, 1); +lean_inc(x_69); +lean_inc(x_68); +lean_dec(x_17); +x_70 = lean_unsigned_to_nat(0u); +x_71 = lean_nat_dec_lt(x_70, x_2); +if (x_71 == 0) +{ +lean_object* x_72; +x_72 = l_Lean_MVarId_tryClearMany(x_69, x_3, x_11, x_12, x_13, x_14, x_18); +if (lean_obj_tag(x_72) == 0) +{ +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; +x_73 = lean_ctor_get(x_72, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_72, 1); +lean_inc(x_74); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_75 = x_72; +} else { + lean_dec_ref(x_72); + x_75 = lean_box(0); +} +x_76 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_76, 0, x_68); +lean_ctor_set(x_76, 1, x_73); +x_77 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_77, 0, x_76); +x_78 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_78, 0, x_77); +lean_ctor_set(x_78, 1, x_9); +if (lean_is_scalar(x_75)) { + x_79 = lean_alloc_ctor(0, 2, 0); +} else { + x_79 = x_75; +} +lean_ctor_set(x_79, 0, x_78); +lean_ctor_set(x_79, 1, x_74); +return x_79; +} +else +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; +lean_dec(x_68); +lean_dec(x_9); +x_80 = lean_ctor_get(x_72, 0); +lean_inc(x_80); +x_81 = lean_ctor_get(x_72, 1); +lean_inc(x_81); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_82 = x_72; +} else { + lean_dec_ref(x_72); + x_82 = lean_box(0); +} +if (lean_is_scalar(x_82)) { + x_83 = lean_alloc_ctor(1, 2, 0); +} else { + x_83 = x_82; +} +lean_ctor_set(x_83, 0, x_80); +lean_ctor_set(x_83, 1, x_81); +return x_83; +} +} +else +{ +uint8_t x_84; +x_84 = lean_nat_dec_le(x_2, x_2); +if (x_84 == 0) +{ +lean_object* x_85; +x_85 = l_Lean_MVarId_tryClearMany(x_69, x_3, x_11, x_12, x_13, x_14, x_18); +if (lean_obj_tag(x_85) == 0) +{ +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_86 = lean_ctor_get(x_85, 0); +lean_inc(x_86); +x_87 = lean_ctor_get(x_85, 1); +lean_inc(x_87); +if (lean_is_exclusive(x_85)) { + lean_ctor_release(x_85, 0); + lean_ctor_release(x_85, 1); + x_88 = x_85; +} else { + lean_dec_ref(x_85); + x_88 = lean_box(0); +} +x_89 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_89, 0, x_68); +lean_ctor_set(x_89, 1, x_86); +x_90 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_90, 0, x_89); +x_91 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_91, 0, x_90); +lean_ctor_set(x_91, 1, x_9); +if (lean_is_scalar(x_88)) { + x_92 = lean_alloc_ctor(0, 2, 0); +} else { + x_92 = x_88; +} +lean_ctor_set(x_92, 0, x_91); +lean_ctor_set(x_92, 1, x_87); +return x_92; +} +else +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; +lean_dec(x_68); +lean_dec(x_9); +x_93 = lean_ctor_get(x_85, 0); +lean_inc(x_93); +x_94 = lean_ctor_get(x_85, 1); +lean_inc(x_94); +if (lean_is_exclusive(x_85)) { + lean_ctor_release(x_85, 0); + lean_ctor_release(x_85, 1); + x_95 = x_85; +} else { + lean_dec_ref(x_85); + x_95 = lean_box(0); +} +if (lean_is_scalar(x_95)) { + x_96 = lean_alloc_ctor(1, 2, 0); +} else { + x_96 = x_95; +} +lean_ctor_set(x_96, 0, x_93); +lean_ctor_set(x_96, 1, x_94); +return x_96; +} +} +else +{ +lean_object* x_97; lean_object* x_98; +x_97 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_simpGoal___spec__3(x_4, x_5, x_6, x_7, x_3); +x_98 = l_Lean_MVarId_tryClearMany(x_69, x_97, x_11, x_12, x_13, x_14, x_18); +if (lean_obj_tag(x_98) == 0) +{ +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; +x_99 = lean_ctor_get(x_98, 0); +lean_inc(x_99); +x_100 = lean_ctor_get(x_98, 1); +lean_inc(x_100); +if (lean_is_exclusive(x_98)) { + lean_ctor_release(x_98, 0); + lean_ctor_release(x_98, 1); + x_101 = x_98; +} else { + lean_dec_ref(x_98); + x_101 = lean_box(0); +} +x_102 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_102, 0, x_68); +lean_ctor_set(x_102, 1, x_99); +x_103 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_103, 0, x_102); +x_104 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_104, 0, x_103); +lean_ctor_set(x_104, 1, x_9); +if (lean_is_scalar(x_101)) { + x_105 = lean_alloc_ctor(0, 2, 0); +} else { + x_105 = x_101; +} +lean_ctor_set(x_105, 0, x_104); +lean_ctor_set(x_105, 1, x_100); +return x_105; +} +else +{ +lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; +lean_dec(x_68); +lean_dec(x_9); +x_106 = lean_ctor_get(x_98, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_98, 1); +lean_inc(x_107); +if (lean_is_exclusive(x_98)) { + lean_ctor_release(x_98, 0); + lean_ctor_release(x_98, 1); + x_108 = x_98; +} else { + lean_dec_ref(x_98); + x_108 = lean_box(0); +} +if (lean_is_scalar(x_108)) { + x_109 = lean_alloc_ctor(1, 2, 0); +} else { + x_109 = x_108; +} +lean_ctor_set(x_109, 0, x_106); +lean_ctor_set(x_109, 1, x_107); +return x_109; +} +} +} +} +} +else +{ +uint8_t x_110; +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_3); +x_110 = !lean_is_exclusive(x_16); +if (x_110 == 0) +{ +return x_16; +} +else +{ +lean_object* x_111; lean_object* x_112; lean_object* x_113; +x_111 = lean_ctor_get(x_16, 0); +x_112 = lean_ctor_get(x_16, 1); +lean_inc(x_112); +lean_inc(x_111); +lean_dec(x_16); +x_113 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_113, 0, x_111); +lean_ctor_set(x_113, 1, x_112); +return x_113; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_simpGoal___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, size_t x_6, size_t x_7, uint8_t 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) { +_start: +{ +lean_dec(x_14); +if (x_8 == 0) +{ +lean_object* x_20; lean_object* x_21; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_20 = lean_box(0); +x_21 = l_Lean_Meta_simpGoal___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_12, x_13, x_20, x_15, x_16, x_17, x_18, x_19); +return x_21; +} +else +{ +uint8_t x_22; lean_object* x_23; lean_object* x_24; +lean_dec(x_13); +x_22 = 1; +x_23 = l_Lean_NameSet_empty; +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +x_24 = l_Lean_Meta_simpTarget(x_12, x_9, x_10, x_22, x_23, x_15, x_16, x_17, x_18, x_19); +if (lean_obj_tag(x_24) == 0) { lean_object* x_25; lean_object* x_26; -x_25 = lean_ctor_get(x_23, 0); -lean_ctor_set(x_16, 1, x_25); -x_26 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_26, 0, x_16); -lean_ctor_set(x_23, 0, x_26); -return x_23; +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +if (lean_obj_tag(x_26) == 0) +{ +uint8_t x_27; +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_3); +lean_dec(x_1); +x_27 = !lean_is_exclusive(x_24); +if (x_27 == 0) +{ +lean_object* x_28; uint8_t x_29; +x_28 = lean_ctor_get(x_24, 0); +lean_dec(x_28); +x_29 = !lean_is_exclusive(x_25); +if (x_29 == 0) +{ +lean_object* x_30; +x_30 = lean_ctor_get(x_25, 0); +lean_dec(x_30); +lean_ctor_set(x_25, 0, x_11); +return x_24; } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_27 = lean_ctor_get(x_23, 0); -x_28 = lean_ctor_get(x_23, 1); -lean_inc(x_28); -lean_inc(x_27); -lean_dec(x_23); -lean_ctor_set(x_16, 1, x_27); -x_29 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_29, 0, x_16); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_28); -return x_30; +lean_object* x_31; lean_object* x_32; +x_31 = lean_ctor_get(x_25, 1); +lean_inc(x_31); +lean_dec(x_25); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_11); +lean_ctor_set(x_32, 1, x_31); +lean_ctor_set(x_24, 0, x_32); +return x_24; } } else { -uint8_t x_31; -lean_free_object(x_16); -lean_dec(x_19); -x_31 = !lean_is_exclusive(x_23); -if (x_31 == 0) -{ -return x_23; -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_23, 0); -x_33 = lean_ctor_get(x_23, 1); +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_33 = lean_ctor_get(x_24, 1); lean_inc(x_33); -lean_inc(x_32); -lean_dec(x_23); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_32); -lean_ctor_set(x_34, 1, x_33); -return x_34; +lean_dec(x_24); +x_34 = lean_ctor_get(x_25, 1); +lean_inc(x_34); +if (lean_is_exclusive(x_25)) { + lean_ctor_release(x_25, 0); + lean_ctor_release(x_25, 1); + x_35 = x_25; +} else { + lean_dec_ref(x_25); + x_35 = lean_box(0); } +if (lean_is_scalar(x_35)) { + x_36 = lean_alloc_ctor(0, 2, 0); +} else { + x_36 = x_35; +} +lean_ctor_set(x_36, 0, x_11); +lean_ctor_set(x_36, 1, x_34); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_33); +return x_37; } } else { -uint8_t x_35; -x_35 = lean_nat_dec_le(x_2, x_2); -if (x_35 == 0) -{ -lean_object* x_36; -x_36 = l_Lean_MVarId_tryClearMany(x_20, x_3, x_10, x_11, x_12, x_13, x_17); -if (lean_obj_tag(x_36) == 0) -{ -uint8_t x_37; -x_37 = !lean_is_exclusive(x_36); -if (x_37 == 0) -{ -lean_object* x_38; lean_object* x_39; -x_38 = lean_ctor_get(x_36, 0); -lean_ctor_set(x_16, 1, x_38); -x_39 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_39, 0, x_16); -lean_ctor_set(x_36, 0, x_39); -return x_36; -} -else -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_40 = lean_ctor_get(x_36, 0); -x_41 = lean_ctor_get(x_36, 1); -lean_inc(x_41); +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +lean_dec(x_11); +x_38 = lean_ctor_get(x_24, 1); +lean_inc(x_38); +lean_dec(x_24); +x_39 = lean_ctor_get(x_25, 1); +lean_inc(x_39); +lean_dec(x_25); +x_40 = lean_ctor_get(x_26, 0); lean_inc(x_40); -lean_dec(x_36); -lean_ctor_set(x_16, 1, x_40); -x_42 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_42, 0, x_16); +lean_dec(x_26); +x_41 = lean_box(0); +x_42 = l_Lean_Meta_simpGoal___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_40, x_39, x_41, x_15, x_16, x_17, x_18, x_38); +return x_42; +} +} +else +{ +uint8_t x_43; +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_11); +lean_dec(x_3); +lean_dec(x_1); +x_43 = !lean_is_exclusive(x_24); +if (x_43 == 0) +{ +return x_24; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_24, 0); +x_45 = lean_ctor_get(x_24, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_24); +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_44); +lean_ctor_set(x_46, 1, x_45); +return x_46; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_simpGoal___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, uint8_t 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_14; +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_1); +x_14 = l_Lean_MVarId_checkNotAssigned(x_1, x_2, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_14) == 0) +{ +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; size_t x_23; size_t x_24; lean_object* x_25; +x_15 = lean_ctor_get(x_14, 1); +lean_inc(x_15); +lean_dec(x_14); +x_16 = lean_box(0); +x_17 = l_Lean_Meta_transform_visit___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__2___lambda__1___closed__1; +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_3); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_1); +lean_ctor_set(x_20, 1, x_19); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_16); +lean_ctor_set(x_21, 1, x_20); +x_22 = lean_array_get_size(x_4); +x_23 = lean_usize_of_nat(x_22); +x_24 = 0; +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_6); +lean_inc(x_5); +x_25 = l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2(x_5, x_6, x_7, x_16, x_4, x_23, x_24, x_21, x_9, x_10, x_11, x_12, x_15); +lean_dec(x_7); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_26, 1); +lean_inc(x_27); +x_28 = lean_ctor_get(x_27, 1); +lean_inc(x_28); +x_29 = lean_ctor_get(x_28, 1); +lean_inc(x_29); +x_30 = lean_ctor_get(x_26, 0); +lean_inc(x_30); +lean_dec(x_26); +if (lean_obj_tag(x_30) == 0) +{ +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; +x_31 = lean_ctor_get(x_25, 1); +lean_inc(x_31); +lean_dec(x_25); +x_32 = lean_ctor_get(x_27, 0); +lean_inc(x_32); +lean_dec(x_27); +x_33 = lean_ctor_get(x_28, 0); +lean_inc(x_33); +lean_dec(x_28); +x_34 = lean_ctor_get(x_29, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_29, 1); +lean_inc(x_35); +lean_dec(x_29); +x_36 = lean_box(0); +x_37 = l_Lean_Meta_simpGoal___lambda__2(x_34, x_22, x_17, x_33, x_4, x_24, x_23, x_8, x_5, x_6, x_16, x_32, x_35, x_36, x_9, x_10, x_11, x_12, x_31); +lean_dec(x_4); +lean_dec(x_33); +lean_dec(x_22); +return x_37; +} +else +{ +uint8_t x_38; +lean_dec(x_29); +lean_dec(x_28); +lean_dec(x_27); +lean_dec(x_22); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_38 = !lean_is_exclusive(x_25); +if (x_38 == 0) +{ +lean_object* x_39; lean_object* x_40; +x_39 = lean_ctor_get(x_25, 0); +lean_dec(x_39); +x_40 = lean_ctor_get(x_30, 0); +lean_inc(x_40); +lean_dec(x_30); +lean_ctor_set(x_25, 0, x_40); +return x_25; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_25, 1); +lean_inc(x_41); +lean_dec(x_25); +x_42 = lean_ctor_get(x_30, 0); +lean_inc(x_42); +lean_dec(x_30); x_43 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_43, 0, x_42); lean_ctor_set(x_43, 1, x_41); return x_43; } } +} else { uint8_t x_44; -lean_free_object(x_16); -lean_dec(x_19); -x_44 = !lean_is_exclusive(x_36); -if (x_44 == 0) -{ -return x_36; -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_36, 0); -x_46 = lean_ctor_get(x_36, 1); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_36); -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -return x_47; -} -} -} -else -{ -lean_object* x_48; lean_object* x_49; -x_48 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_simpGoal___spec__3(x_4, x_5, x_6, x_7, x_3); -x_49 = l_Lean_MVarId_tryClearMany(x_20, x_48, x_10, x_11, x_12, x_13, x_17); -if (lean_obj_tag(x_49) == 0) -{ -uint8_t x_50; -x_50 = !lean_is_exclusive(x_49); -if (x_50 == 0) -{ -lean_object* x_51; lean_object* x_52; -x_51 = lean_ctor_get(x_49, 0); -lean_ctor_set(x_16, 1, x_51); -x_52 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_52, 0, x_16); -lean_ctor_set(x_49, 0, x_52); -return x_49; -} -else -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_53 = lean_ctor_get(x_49, 0); -x_54 = lean_ctor_get(x_49, 1); -lean_inc(x_54); -lean_inc(x_53); -lean_dec(x_49); -lean_ctor_set(x_16, 1, x_53); -x_55 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_55, 0, x_16); -x_56 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_56, 0, x_55); -lean_ctor_set(x_56, 1, x_54); -return x_56; -} -} -else -{ -uint8_t x_57; -lean_free_object(x_16); -lean_dec(x_19); -x_57 = !lean_is_exclusive(x_49); -if (x_57 == 0) -{ -return x_49; -} -else -{ -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_49, 0); -x_59 = lean_ctor_get(x_49, 1); -lean_inc(x_59); -lean_inc(x_58); -lean_dec(x_49); -x_60 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_60, 0, x_58); -lean_ctor_set(x_60, 1, x_59); -return x_60; -} -} -} -} -} -else -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; -x_61 = lean_ctor_get(x_16, 0); -x_62 = lean_ctor_get(x_16, 1); -lean_inc(x_62); -lean_inc(x_61); -lean_dec(x_16); -x_63 = lean_unsigned_to_nat(0u); -x_64 = lean_nat_dec_lt(x_63, x_2); -if (x_64 == 0) -{ -lean_object* x_65; -x_65 = l_Lean_MVarId_tryClearMany(x_62, x_3, x_10, x_11, x_12, x_13, x_17); -if (lean_obj_tag(x_65) == 0) -{ -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_66 = lean_ctor_get(x_65, 0); -lean_inc(x_66); -x_67 = lean_ctor_get(x_65, 1); -lean_inc(x_67); -if (lean_is_exclusive(x_65)) { - lean_ctor_release(x_65, 0); - lean_ctor_release(x_65, 1); - x_68 = x_65; -} else { - lean_dec_ref(x_65); - x_68 = lean_box(0); -} -x_69 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_69, 0, x_61); -lean_ctor_set(x_69, 1, x_66); -x_70 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_70, 0, x_69); -if (lean_is_scalar(x_68)) { - x_71 = lean_alloc_ctor(0, 2, 0); -} else { - x_71 = x_68; -} -lean_ctor_set(x_71, 0, x_70); -lean_ctor_set(x_71, 1, x_67); -return x_71; -} -else -{ -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -lean_dec(x_61); -x_72 = lean_ctor_get(x_65, 0); -lean_inc(x_72); -x_73 = lean_ctor_get(x_65, 1); -lean_inc(x_73); -if (lean_is_exclusive(x_65)) { - lean_ctor_release(x_65, 0); - lean_ctor_release(x_65, 1); - x_74 = x_65; -} else { - lean_dec_ref(x_65); - x_74 = lean_box(0); -} -if (lean_is_scalar(x_74)) { - x_75 = lean_alloc_ctor(1, 2, 0); -} else { - x_75 = x_74; -} -lean_ctor_set(x_75, 0, x_72); -lean_ctor_set(x_75, 1, x_73); -return x_75; -} -} -else -{ -uint8_t x_76; -x_76 = lean_nat_dec_le(x_2, x_2); -if (x_76 == 0) -{ -lean_object* x_77; -x_77 = l_Lean_MVarId_tryClearMany(x_62, x_3, x_10, x_11, x_12, x_13, x_17); -if (lean_obj_tag(x_77) == 0) -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_78 = lean_ctor_get(x_77, 0); -lean_inc(x_78); -x_79 = lean_ctor_get(x_77, 1); -lean_inc(x_79); -if (lean_is_exclusive(x_77)) { - lean_ctor_release(x_77, 0); - lean_ctor_release(x_77, 1); - x_80 = x_77; -} else { - lean_dec_ref(x_77); - x_80 = lean_box(0); -} -x_81 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_81, 0, x_61); -lean_ctor_set(x_81, 1, x_78); -x_82 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_82, 0, x_81); -if (lean_is_scalar(x_80)) { - x_83 = lean_alloc_ctor(0, 2, 0); -} else { - x_83 = x_80; -} -lean_ctor_set(x_83, 0, x_82); -lean_ctor_set(x_83, 1, x_79); -return x_83; -} -else -{ -lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; -lean_dec(x_61); -x_84 = lean_ctor_get(x_77, 0); -lean_inc(x_84); -x_85 = lean_ctor_get(x_77, 1); -lean_inc(x_85); -if (lean_is_exclusive(x_77)) { - lean_ctor_release(x_77, 0); - lean_ctor_release(x_77, 1); - x_86 = x_77; -} else { - lean_dec_ref(x_77); - x_86 = lean_box(0); -} -if (lean_is_scalar(x_86)) { - x_87 = lean_alloc_ctor(1, 2, 0); -} else { - x_87 = x_86; -} -lean_ctor_set(x_87, 0, x_84); -lean_ctor_set(x_87, 1, x_85); -return x_87; -} -} -else -{ -lean_object* x_88; lean_object* x_89; -x_88 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_simpGoal___spec__3(x_4, x_5, x_6, x_7, x_3); -x_89 = l_Lean_MVarId_tryClearMany(x_62, x_88, x_10, x_11, x_12, x_13, x_17); -if (lean_obj_tag(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; -x_90 = lean_ctor_get(x_89, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_89, 1); -lean_inc(x_91); -if (lean_is_exclusive(x_89)) { - lean_ctor_release(x_89, 0); - lean_ctor_release(x_89, 1); - x_92 = x_89; -} else { - lean_dec_ref(x_89); - x_92 = lean_box(0); -} -x_93 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_93, 0, x_61); -lean_ctor_set(x_93, 1, x_90); -x_94 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_94, 0, x_93); -if (lean_is_scalar(x_92)) { - x_95 = lean_alloc_ctor(0, 2, 0); -} else { - x_95 = x_92; -} -lean_ctor_set(x_95, 0, x_94); -lean_ctor_set(x_95, 1, x_91); -return x_95; -} -else -{ -lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; -lean_dec(x_61); -x_96 = lean_ctor_get(x_89, 0); -lean_inc(x_96); -x_97 = lean_ctor_get(x_89, 1); -lean_inc(x_97); -if (lean_is_exclusive(x_89)) { - lean_ctor_release(x_89, 0); - lean_ctor_release(x_89, 1); - x_98 = x_89; -} else { - lean_dec_ref(x_89); - x_98 = lean_box(0); -} -if (lean_is_scalar(x_98)) { - x_99 = lean_alloc_ctor(1, 2, 0); -} else { - x_99 = x_98; -} -lean_ctor_set(x_99, 0, x_96); -lean_ctor_set(x_99, 1, x_97); -return x_99; -} -} -} -} -} -else -{ -uint8_t x_100; -lean_dec(x_13); +lean_dec(x_22); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); -lean_dec(x_3); -x_100 = !lean_is_exclusive(x_15); -if (x_100 == 0) -{ -return x_15; -} -else -{ -lean_object* x_101; lean_object* x_102; lean_object* x_103; -x_101 = lean_ctor_get(x_15, 0); -x_102 = lean_ctor_get(x_15, 1); -lean_inc(x_102); -lean_inc(x_101); -lean_dec(x_15); -x_103 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_103, 0, x_101); -lean_ctor_set(x_103, 1, x_102); -return x_103; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_simpGoal___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, size_t x_6, size_t x_7, uint8_t 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) { -_start: -{ -lean_dec(x_13); -if (x_8 == 0) -{ -lean_object* x_19; lean_object* x_20; -lean_dec(x_11); -lean_dec(x_10); lean_dec(x_9); -x_19 = lean_box(0); -x_20 = l_Lean_Meta_simpGoal___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_12, x_19, x_14, x_15, x_16, x_17, x_18); -return x_20; -} -else -{ -uint8_t x_21; lean_object* x_22; -x_21 = 1; -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); -x_22 = l_Lean_Meta_simpTarget(x_12, x_9, x_10, x_21, x_14, x_15, x_16, x_17, x_18); -if (lean_obj_tag(x_22) == 0) -{ -lean_object* x_23; -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -if (lean_obj_tag(x_23) == 0) -{ -uint8_t x_24; -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_3); -lean_dec(x_1); -x_24 = !lean_is_exclusive(x_22); -if (x_24 == 0) -{ -lean_object* x_25; -x_25 = lean_ctor_get(x_22, 0); -lean_dec(x_25); -lean_ctor_set(x_22, 0, x_11); -return x_22; -} -else -{ -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(0, 2, 0); -lean_ctor_set(x_27, 0, x_11); -lean_ctor_set(x_27, 1, x_26); -return x_27; -} -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; -lean_dec(x_11); -x_28 = lean_ctor_get(x_22, 1); -lean_inc(x_28); -lean_dec(x_22); -x_29 = lean_ctor_get(x_23, 0); -lean_inc(x_29); -lean_dec(x_23); -x_30 = lean_box(0); -x_31 = l_Lean_Meta_simpGoal___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_29, x_30, x_14, x_15, x_16, x_17, x_28); -return x_31; -} -} -else -{ -uint8_t x_32; -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_11); -lean_dec(x_3); -lean_dec(x_1); -x_32 = !lean_is_exclusive(x_22); -if (x_32 == 0) -{ -return x_22; -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_22, 0); -x_34 = lean_ctor_get(x_22, 1); -lean_inc(x_34); -lean_inc(x_33); -lean_dec(x_22); -x_35 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_35, 0, x_33); -lean_ctor_set(x_35, 1, x_34); -return x_35; -} -} -} -} -} -static lean_object* _init_l_Lean_Meta_simpGoal___lambda__3___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_transform_visit___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__2___lambda__1___closed__1; -x_2 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2, 0, x_1); -lean_ctor_set(x_2, 1, x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_simpGoal___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, uint8_t 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_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_1); -x_13 = l_Lean_MVarId_checkNotAssigned(x_1, x_2, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_13) == 0) -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; size_t x_20; size_t x_21; lean_object* x_22; -x_14 = lean_ctor_get(x_13, 1); -lean_inc(x_14); -lean_dec(x_13); -x_15 = lean_box(0); -x_16 = l_Lean_Meta_simpGoal___lambda__3___closed__1; -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_1); -lean_ctor_set(x_17, 1, x_16); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_15); -lean_ctor_set(x_18, 1, x_17); -x_19 = lean_array_get_size(x_3); -x_20 = lean_usize_of_nat(x_19); -x_21 = 0; -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_5); -lean_inc(x_4); -x_22 = l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2(x_4, x_5, x_6, x_15, x_3, x_20, x_21, x_18, x_8, x_9, x_10, x_11, x_14); -lean_dec(x_6); -if (lean_obj_tag(x_22) == 0) -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -x_24 = lean_ctor_get(x_23, 1); -lean_inc(x_24); -x_25 = lean_ctor_get(x_24, 1); -lean_inc(x_25); -x_26 = lean_ctor_get(x_23, 0); -lean_inc(x_26); -lean_dec(x_23); -if (lean_obj_tag(x_26) == 0) -{ -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; -x_27 = lean_ctor_get(x_22, 1); -lean_inc(x_27); -lean_dec(x_22); -x_28 = lean_ctor_get(x_24, 0); -lean_inc(x_28); -lean_dec(x_24); -x_29 = lean_ctor_get(x_25, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_25, 1); -lean_inc(x_30); -lean_dec(x_25); -x_31 = l_Lean_Meta_transform_visit___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__2___lambda__1___closed__1; -x_32 = lean_box(0); -x_33 = l_Lean_Meta_simpGoal___lambda__2(x_30, x_19, x_31, x_29, x_3, x_21, x_20, x_7, x_4, x_5, x_15, x_28, x_32, x_8, x_9, x_10, x_11, x_27); -lean_dec(x_3); -lean_dec(x_29); -lean_dec(x_19); -return x_33; -} -else -{ -uint8_t x_34; -lean_dec(x_25); -lean_dec(x_24); -lean_dec(x_19); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_34 = !lean_is_exclusive(x_22); -if (x_34 == 0) -{ -lean_object* x_35; lean_object* x_36; -x_35 = lean_ctor_get(x_22, 0); -lean_dec(x_35); -x_36 = lean_ctor_get(x_26, 0); -lean_inc(x_36); -lean_dec(x_26); -lean_ctor_set(x_22, 0, x_36); -return x_22; -} -else -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_22, 1); -lean_inc(x_37); -lean_dec(x_22); -x_38 = lean_ctor_get(x_26, 0); -lean_inc(x_38); -lean_dec(x_26); -x_39 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_39, 0, x_38); -lean_ctor_set(x_39, 1, x_37); -return x_39; -} -} -} -else -{ -uint8_t x_40; -lean_dec(x_19); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_40 = !lean_is_exclusive(x_22); -if (x_40 == 0) -{ -return x_22; -} -else -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_22, 0); -x_42 = lean_ctor_get(x_22, 1); -lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_22); -x_43 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_43, 0, x_41); -lean_ctor_set(x_43, 1, x_42); -return x_43; -} -} -} -else -{ -uint8_t x_44; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_44 = !lean_is_exclusive(x_13); +x_44 = !lean_is_exclusive(x_25); if (x_44 == 0) { -return x_13; +return x_25; } else { lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_13, 0); -x_46 = lean_ctor_get(x_13, 1); +x_45 = lean_ctor_get(x_25, 0); +x_46 = lean_ctor_get(x_25, 1); lean_inc(x_46); lean_inc(x_45); -lean_dec(x_13); +lean_dec(x_25); x_47 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_47, 0, x_45); lean_ctor_set(x_47, 1, x_46); @@ -48228,24 +49504,58 @@ return x_47; } } } +else +{ +uint8_t x_48; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +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_48 = !lean_is_exclusive(x_14); +if (x_48 == 0) +{ +return x_14; } -LEAN_EXPORT lean_object* l_Lean_Meta_simpGoal(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_14, 0); +x_50 = lean_ctor_get(x_14, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_14); +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +return x_51; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_simpGoal(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_12 = l_Lean_Meta_Simp_main___closed__2; -x_13 = lean_box(x_4); +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_13 = l_Lean_Meta_Simp_main___closed__1; +x_14 = lean_box(x_4); lean_inc(x_1); -x_14 = lean_alloc_closure((void*)(l_Lean_Meta_simpGoal___lambda__3___boxed), 12, 7); -lean_closure_set(x_14, 0, x_1); -lean_closure_set(x_14, 1, x_12); -lean_closure_set(x_14, 2, x_5); -lean_closure_set(x_14, 3, x_2); -lean_closure_set(x_14, 4, x_3); -lean_closure_set(x_14, 5, x_6); -lean_closure_set(x_14, 6, x_13); -x_15 = l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(x_1, x_14, x_7, x_8, x_9, x_10, x_11); -return x_15; +x_15 = lean_alloc_closure((void*)(l_Lean_Meta_simpGoal___lambda__3___boxed), 13, 8); +lean_closure_set(x_15, 0, x_1); +lean_closure_set(x_15, 1, x_13); +lean_closure_set(x_15, 2, x_7); +lean_closure_set(x_15, 3, x_5); +lean_closure_set(x_15, 4, x_2); +lean_closure_set(x_15, 5, x_3); +lean_closure_set(x_15, 6, x_6); +lean_closure_set(x_15, 7, x_14); +x_16 = l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(x_1, x_15, x_8, x_9, x_10, x_11, x_12); +return x_16; } } LEAN_EXPORT lean_object* l_Std_RBNode_find___at_Lean_Meta_simpGoal___spec__1___boxed(lean_object* x_1, lean_object* x_2) { @@ -48258,13 +49568,13 @@ lean_dec(x_1); return x_3; } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___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* x_13) { _start: { -lean_object* x_13; -x_13 = l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___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); -lean_dec(x_7); -return x_13; +lean_object* x_14; +x_14 = l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___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); +lean_dec(x_8); +return x_14; } } LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__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* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { @@ -48295,20 +49605,20 @@ lean_dec(x_1); return x_8; } } -LEAN_EXPORT lean_object* l_Lean_Meta_simpGoal___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* x_13, lean_object* x_14) { +LEAN_EXPORT lean_object* l_Lean_Meta_simpGoal___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* x_13, lean_object* x_14, lean_object* x_15) { _start: { -size_t x_15; size_t x_16; lean_object* x_17; -x_15 = lean_unbox_usize(x_6); +size_t x_16; size_t x_17; lean_object* x_18; +x_16 = lean_unbox_usize(x_6); lean_dec(x_6); -x_16 = lean_unbox_usize(x_7); +x_17 = lean_unbox_usize(x_7); lean_dec(x_7); -x_17 = l_Lean_Meta_simpGoal___lambda__1(x_1, x_2, x_3, x_4, x_5, x_15, x_16, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -lean_dec(x_9); +x_18 = l_Lean_Meta_simpGoal___lambda__1(x_1, x_2, x_3, x_4, x_5, x_16, x_17, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +lean_dec(x_10); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -return x_17; +return x_18; } } LEAN_EXPORT lean_object* l_Lean_Meta_simpGoal___lambda__2___boxed(lean_object** _args) { @@ -48330,40 +49640,41 @@ lean_object* x_15 = _args[14]; lean_object* x_16 = _args[15]; lean_object* x_17 = _args[16]; lean_object* x_18 = _args[17]; +lean_object* x_19 = _args[18]; _start: { -size_t x_19; size_t x_20; uint8_t x_21; lean_object* x_22; -x_19 = lean_unbox_usize(x_6); +size_t x_20; size_t x_21; uint8_t x_22; lean_object* x_23; +x_20 = lean_unbox_usize(x_6); lean_dec(x_6); -x_20 = lean_unbox_usize(x_7); +x_21 = lean_unbox_usize(x_7); lean_dec(x_7); -x_21 = lean_unbox(x_8); +x_22 = lean_unbox(x_8); lean_dec(x_8); -x_22 = l_Lean_Meta_simpGoal___lambda__2(x_1, x_2, x_3, x_4, x_5, x_19, x_20, x_21, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18); +x_23 = l_Lean_Meta_simpGoal___lambda__2(x_1, x_2, x_3, x_4, x_5, x_20, x_21, x_22, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -return x_22; +return x_23; } } -LEAN_EXPORT lean_object* l_Lean_Meta_simpGoal___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* x_12) { +LEAN_EXPORT lean_object* l_Lean_Meta_simpGoal___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* x_12, lean_object* x_13) { +_start: +{ +uint8_t x_14; lean_object* x_15; +x_14 = lean_unbox(x_8); +lean_dec(x_8); +x_15 = l_Lean_Meta_simpGoal___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_14, x_9, x_10, x_11, x_12, x_13); +return x_15; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_simpGoal___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_7); -lean_dec(x_7); -x_14 = l_Lean_Meta_simpGoal___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_13, x_8, x_9, x_10, x_11, x_12); -return x_14; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_simpGoal___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_4); +x_13 = lean_unbox(x_4); lean_dec(x_4); -x_13 = l_Lean_Meta_simpGoal(x_1, x_2, x_3, x_12, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -return x_13; +x_14 = l_Lean_Meta_simpGoal(x_1, x_2, x_3, x_13, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_14; } } LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpTargetStar___spec__1(lean_object* x_1, size_t x_2, size_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) { @@ -48398,41 +49709,43 @@ x_15 = lean_ctor_get(x_13, 1); lean_inc(x_15); lean_dec(x_13); x_16 = l_Lean_LocalDecl_toExpr(x_14); -lean_dec(x_14); x_17 = !lean_is_exclusive(x_4); if (x_17 == 0) { -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_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_18 = lean_ctor_get(x_4, 0); x_19 = lean_ctor_get(x_4, 1); x_20 = lean_ctor_get(x_4, 2); x_21 = lean_ctor_get(x_4, 3); x_22 = lean_ctor_get(x_4, 4); -x_23 = lean_box(0); +x_23 = lean_ctor_get(x_4, 5); +x_24 = l_Lean_LocalDecl_fvarId(x_14); +lean_dec(x_14); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_24 = l_Lean_Meta_SimpTheoremsArray_addTheorem(x_19, x_16, x_23, x_5, x_6, x_7, x_8, x_15); -if (lean_obj_tag(x_24) == 0) +x_25 = l_Lean_Meta_SimpTheoremsArray_addTheorem(x_19, x_24, x_16, x_5, x_6, x_7, x_8, x_15); +if (lean_obj_tag(x_25) == 0) { -lean_object* x_25; lean_object* x_26; size_t x_27; size_t x_28; -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); +lean_object* x_26; lean_object* x_27; size_t x_28; size_t x_29; +x_26 = lean_ctor_get(x_25, 0); lean_inc(x_26); -lean_dec(x_24); -lean_ctor_set(x_4, 1, x_25); -x_27 = 1; -x_28 = lean_usize_add(x_3, x_27); -x_3 = x_28; -x_9 = x_26; +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +lean_ctor_set(x_4, 1, x_26); +x_28 = 1; +x_29 = lean_usize_add(x_3, x_28); +x_3 = x_29; +x_9 = x_27; goto _start; } else { -uint8_t x_30; +uint8_t x_31; lean_free_object(x_4); +lean_dec(x_23); lean_dec(x_22); lean_dec(x_21); lean_dec(x_20); @@ -48441,369 +49754,127 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_30 = !lean_is_exclusive(x_24); -if (x_30 == 0) +x_31 = !lean_is_exclusive(x_25); +if (x_31 == 0) { -return x_24; +return x_25; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_24, 0); -x_32 = lean_ctor_get(x_24, 1); +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_25, 0); +x_33 = lean_ctor_get(x_25, 1); +lean_inc(x_33); lean_inc(x_32); -lean_inc(x_31); -lean_dec(x_24); -x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_31); -lean_ctor_set(x_33, 1, x_32); -return x_33; +lean_dec(x_25); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +return x_34; } } } else { -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; -x_34 = lean_ctor_get(x_4, 0); -x_35 = lean_ctor_get(x_4, 1); -x_36 = lean_ctor_get(x_4, 2); -x_37 = lean_ctor_get(x_4, 3); -x_38 = lean_ctor_get(x_4, 4); +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; +x_35 = lean_ctor_get(x_4, 0); +x_36 = lean_ctor_get(x_4, 1); +x_37 = lean_ctor_get(x_4, 2); +x_38 = lean_ctor_get(x_4, 3); +x_39 = lean_ctor_get(x_4, 4); +x_40 = lean_ctor_get(x_4, 5); +lean_inc(x_40); +lean_inc(x_39); lean_inc(x_38); lean_inc(x_37); lean_inc(x_36); lean_inc(x_35); -lean_inc(x_34); lean_dec(x_4); -x_39 = lean_box(0); +x_41 = l_Lean_LocalDecl_fvarId(x_14); +lean_dec(x_14); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_40 = l_Lean_Meta_SimpTheoremsArray_addTheorem(x_35, x_16, x_39, x_5, x_6, x_7, x_8, x_15); -if (lean_obj_tag(x_40) == 0) +x_42 = l_Lean_Meta_SimpTheoremsArray_addTheorem(x_36, x_41, x_16, x_5, x_6, x_7, x_8, x_15); +if (lean_obj_tag(x_42) == 0) { -lean_object* x_41; lean_object* x_42; lean_object* x_43; size_t x_44; size_t x_45; -x_41 = lean_ctor_get(x_40, 0); -lean_inc(x_41); -x_42 = lean_ctor_get(x_40, 1); -lean_inc(x_42); -lean_dec(x_40); -x_43 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_43, 0, x_34); -lean_ctor_set(x_43, 1, x_41); -lean_ctor_set(x_43, 2, x_36); -lean_ctor_set(x_43, 3, x_37); -lean_ctor_set(x_43, 4, x_38); -x_44 = 1; -x_45 = lean_usize_add(x_3, x_44); -x_3 = x_45; -x_4 = x_43; -x_9 = x_42; +lean_object* x_43; lean_object* x_44; lean_object* x_45; size_t x_46; size_t x_47; +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_42, 1); +lean_inc(x_44); +lean_dec(x_42); +x_45 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_45, 0, x_35); +lean_ctor_set(x_45, 1, x_43); +lean_ctor_set(x_45, 2, x_37); +lean_ctor_set(x_45, 3, x_38); +lean_ctor_set(x_45, 4, x_39); +lean_ctor_set(x_45, 5, x_40); +x_46 = 1; +x_47 = lean_usize_add(x_3, x_46); +x_3 = x_47; +x_4 = x_45; +x_9 = x_44; goto _start; } else { -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +lean_dec(x_40); +lean_dec(x_39); lean_dec(x_38); lean_dec(x_37); -lean_dec(x_36); -lean_dec(x_34); +lean_dec(x_35); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_47 = lean_ctor_get(x_40, 0); -lean_inc(x_47); -x_48 = lean_ctor_get(x_40, 1); -lean_inc(x_48); -if (lean_is_exclusive(x_40)) { - lean_ctor_release(x_40, 0); - lean_ctor_release(x_40, 1); - x_49 = x_40; -} else { - lean_dec_ref(x_40); - x_49 = lean_box(0); -} -if (lean_is_scalar(x_49)) { - x_50 = lean_alloc_ctor(1, 2, 0); -} else { - x_50 = x_49; -} -lean_ctor_set(x_50, 0, x_47); -lean_ctor_set(x_50, 1, x_48); -return x_50; -} -} -} -else -{ -uint8_t x_51; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_51 = !lean_is_exclusive(x_13); -if (x_51 == 0) -{ -return x_13; -} -else -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_13, 0); -x_53 = lean_ctor_get(x_13, 1); -lean_inc(x_53); -lean_inc(x_52); -lean_dec(x_13); -x_54 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_54, 0, x_52); -lean_ctor_set(x_54, 1, x_53); -return x_54; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_simpTargetStar___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) { -_start: -{ -lean_object* x_9; -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_9 = l_Lean_Meta_getPropHyps(x_4, x_5, x_6, x_7, x_8); -if (lean_obj_tag(x_9) == 0) -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; size_t x_13; size_t x_14; lean_object* x_15; -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_9, 1); -lean_inc(x_11); -lean_dec(x_9); -x_12 = lean_array_get_size(x_10); -x_13 = lean_usize_of_nat(x_12); -lean_dec(x_12); -x_14 = 0; -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_15 = l_Array_forInUnsafe_loop___at_Lean_Meta_simpTargetStar___spec__1(x_10, x_13, x_14, x_1, x_4, x_5, x_6, x_7, x_11); -lean_dec(x_10); -if (lean_obj_tag(x_15) == 0) -{ -lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; -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 = 1; -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_2); -x_19 = l_Lean_Meta_simpTarget(x_2, x_16, x_3, x_18, x_4, x_5, x_6, x_7, x_17); -if (lean_obj_tag(x_19) == 0) -{ -lean_object* x_20; -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -if (lean_obj_tag(x_20) == 0) -{ -uint8_t x_21; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_21 = !lean_is_exclusive(x_19); -if (x_21 == 0) -{ -lean_object* x_22; lean_object* x_23; -x_22 = lean_ctor_get(x_19, 0); -lean_dec(x_22); -x_23 = lean_box(0); -lean_ctor_set(x_19, 0, x_23); -return x_19; -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_19, 1); -lean_inc(x_24); -lean_dec(x_19); -x_25 = lean_box(0); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, x_24); -return x_26; -} -} -else -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_19, 1); -lean_inc(x_27); -lean_dec(x_19); -x_28 = lean_ctor_get(x_20, 0); -lean_inc(x_28); -lean_dec(x_20); -x_29 = l_Lean_MVarId_getType(x_2, x_4, x_5, x_6, x_7, x_27); -if (lean_obj_tag(x_29) == 0) -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; -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); -lean_inc(x_28); -x_32 = l_Lean_MVarId_getType(x_28, x_4, x_5, x_6, x_7, x_31); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -if (lean_obj_tag(x_32) == 0) -{ -uint8_t x_33; -x_33 = !lean_is_exclusive(x_32); -if (x_33 == 0) -{ -lean_object* x_34; uint8_t x_35; -x_34 = lean_ctor_get(x_32, 0); -x_35 = lean_expr_eqv(x_30, x_34); -lean_dec(x_34); -lean_dec(x_30); -if (x_35 == 0) -{ -lean_object* x_36; -x_36 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_36, 0, x_28); -lean_ctor_set(x_32, 0, x_36); -return x_32; -} -else -{ -lean_object* x_37; -lean_dec(x_28); -x_37 = lean_box(1); -lean_ctor_set(x_32, 0, x_37); -return x_32; -} -} -else -{ -lean_object* x_38; lean_object* x_39; uint8_t x_40; -x_38 = lean_ctor_get(x_32, 0); -x_39 = lean_ctor_get(x_32, 1); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_32); -x_40 = lean_expr_eqv(x_30, x_38); -lean_dec(x_38); -lean_dec(x_30); -if (x_40 == 0) -{ -lean_object* x_41; lean_object* x_42; -x_41 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_41, 0, x_28); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_39); -return x_42; -} -else -{ -lean_object* x_43; lean_object* x_44; -lean_dec(x_28); -x_43 = lean_box(1); -x_44 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_44, 0, x_43); -lean_ctor_set(x_44, 1, x_39); -return x_44; -} -} -} -else -{ -uint8_t x_45; -lean_dec(x_30); -lean_dec(x_28); -x_45 = !lean_is_exclusive(x_32); -if (x_45 == 0) -{ -return x_32; -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_32, 0); -x_47 = lean_ctor_get(x_32, 1); -lean_inc(x_47); -lean_inc(x_46); -lean_dec(x_32); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; -} -} -} -else -{ -uint8_t x_49; -lean_dec(x_28); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_49 = !lean_is_exclusive(x_29); -if (x_49 == 0) -{ -return x_29; -} -else -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_29, 0); -x_51 = lean_ctor_get(x_29, 1); -lean_inc(x_51); +x_49 = lean_ctor_get(x_42, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_42, 1); lean_inc(x_50); -lean_dec(x_29); -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_50); -lean_ctor_set(x_52, 1, x_51); -return x_52; +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + x_51 = x_42; +} else { + lean_dec_ref(x_42); + x_51 = lean_box(0); } +if (lean_is_scalar(x_51)) { + x_52 = lean_alloc_ctor(1, 2, 0); +} else { + x_52 = x_51; +} +lean_ctor_set(x_52, 0, x_49); +lean_ctor_set(x_52, 1, x_50); +return x_52; } } } else { uint8_t x_53; +lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_2); -x_53 = !lean_is_exclusive(x_19); +x_53 = !lean_is_exclusive(x_13); if (x_53 == 0) { -return x_19; +return x_13; } else { lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_54 = lean_ctor_get(x_19, 0); -x_55 = lean_ctor_get(x_19, 1); +x_54 = lean_ctor_get(x_13, 0); +x_55 = lean_ctor_get(x_13, 1); lean_inc(x_55); lean_inc(x_54); -lean_dec(x_19); +lean_dec(x_13); x_56 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_56, 0, x_54); lean_ctor_set(x_56, 1, x_55); @@ -48811,38 +49882,493 @@ return x_56; } } } +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_simpTargetStar___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) { +_start: +{ +lean_object* x_10; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_10 = l_Lean_Meta_getPropHyps(x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; size_t x_14; size_t x_15; lean_object* x_16; +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_array_get_size(x_11); +x_14 = lean_usize_of_nat(x_13); +lean_dec(x_13); +x_15 = 0; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_16 = l_Array_forInUnsafe_loop___at_Lean_Meta_simpTargetStar___spec__1(x_11, x_14, x_15, x_1, x_5, x_6, x_7, x_8, x_12); +lean_dec(x_11); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; +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 = 1; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_2); +x_20 = l_Lean_Meta_simpTarget(x_2, x_17, x_3, x_19, x_4, x_5, x_6, x_7, x_8, x_18); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +if (lean_obj_tag(x_22) == 0) +{ +uint8_t x_23; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_23 = !lean_is_exclusive(x_20); +if (x_23 == 0) +{ +lean_object* x_24; uint8_t x_25; +x_24 = lean_ctor_get(x_20, 0); +lean_dec(x_24); +x_25 = !lean_is_exclusive(x_21); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; +x_26 = lean_ctor_get(x_21, 0); +lean_dec(x_26); +x_27 = lean_box(0); +lean_ctor_set(x_21, 0, x_27); +return x_20; +} else { -uint8_t x_57; +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_21, 1); +lean_inc(x_28); +lean_dec(x_21); +x_29 = lean_box(0); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_28); +lean_ctor_set(x_20, 0, x_30); +return x_20; +} +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_31 = lean_ctor_get(x_20, 1); +lean_inc(x_31); +lean_dec(x_20); +x_32 = lean_ctor_get(x_21, 1); +lean_inc(x_32); +if (lean_is_exclusive(x_21)) { + lean_ctor_release(x_21, 0); + lean_ctor_release(x_21, 1); + x_33 = x_21; +} else { + lean_dec_ref(x_21); + x_33 = lean_box(0); +} +x_34 = lean_box(0); +if (lean_is_scalar(x_33)) { + x_35 = lean_alloc_ctor(0, 2, 0); +} else { + x_35 = x_33; +} +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_32); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_31); +return x_36; +} +} +else +{ +lean_object* x_37; uint8_t x_38; +x_37 = lean_ctor_get(x_20, 1); +lean_inc(x_37); +lean_dec(x_20); +x_38 = !lean_is_exclusive(x_21); +if (x_38 == 0) +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_39 = lean_ctor_get(x_21, 1); +x_40 = lean_ctor_get(x_21, 0); +lean_dec(x_40); +x_41 = lean_ctor_get(x_22, 0); +lean_inc(x_41); +lean_dec(x_22); +x_42 = l_Lean_MVarId_getType(x_2, x_5, x_6, x_7, x_8, x_37); +if (lean_obj_tag(x_42) == 0) +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_42, 1); +lean_inc(x_44); +lean_dec(x_42); +lean_inc(x_41); +x_45 = l_Lean_MVarId_getType(x_41, x_5, x_6, x_7, x_8, x_44); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +if (lean_obj_tag(x_45) == 0) +{ +uint8_t x_46; +x_46 = !lean_is_exclusive(x_45); +if (x_46 == 0) +{ +lean_object* x_47; uint8_t x_48; +x_47 = lean_ctor_get(x_45, 0); +x_48 = lean_expr_eqv(x_43, x_47); +lean_dec(x_47); +lean_dec(x_43); +if (x_48 == 0) +{ +lean_object* x_49; +lean_dec(x_4); +x_49 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_49, 0, x_41); +lean_ctor_set(x_21, 0, x_49); +lean_ctor_set(x_45, 0, x_21); +return x_45; +} +else +{ +lean_object* x_50; +lean_dec(x_41); +lean_dec(x_39); +x_50 = lean_box(1); +lean_ctor_set(x_21, 1, x_4); +lean_ctor_set(x_21, 0, x_50); +lean_ctor_set(x_45, 0, x_21); +return x_45; +} +} +else +{ +lean_object* x_51; lean_object* x_52; uint8_t x_53; +x_51 = lean_ctor_get(x_45, 0); +x_52 = lean_ctor_get(x_45, 1); +lean_inc(x_52); +lean_inc(x_51); +lean_dec(x_45); +x_53 = lean_expr_eqv(x_43, x_51); +lean_dec(x_51); +lean_dec(x_43); +if (x_53 == 0) +{ +lean_object* x_54; lean_object* x_55; +lean_dec(x_4); +x_54 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_54, 0, x_41); +lean_ctor_set(x_21, 0, x_54); +x_55 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_55, 0, x_21); +lean_ctor_set(x_55, 1, x_52); +return x_55; +} +else +{ +lean_object* x_56; lean_object* x_57; +lean_dec(x_41); +lean_dec(x_39); +x_56 = lean_box(1); +lean_ctor_set(x_21, 1, x_4); +lean_ctor_set(x_21, 0, x_56); +x_57 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_57, 0, x_21); +lean_ctor_set(x_57, 1, x_52); +return x_57; +} +} +} +else +{ +uint8_t x_58; +lean_dec(x_43); +lean_dec(x_41); +lean_free_object(x_21); +lean_dec(x_39); +lean_dec(x_4); +x_58 = !lean_is_exclusive(x_45); +if (x_58 == 0) +{ +return x_45; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_45, 0); +x_60 = lean_ctor_get(x_45, 1); +lean_inc(x_60); +lean_inc(x_59); +lean_dec(x_45); +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_41); +lean_free_object(x_21); +lean_dec(x_39); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_62 = !lean_is_exclusive(x_42); +if (x_62 == 0) +{ +return x_42; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_42, 0); +x_64 = lean_ctor_get(x_42, 1); +lean_inc(x_64); +lean_inc(x_63); +lean_dec(x_42); +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; +} +} +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_21, 1); +lean_inc(x_66); +lean_dec(x_21); +x_67 = lean_ctor_get(x_22, 0); +lean_inc(x_67); +lean_dec(x_22); +x_68 = l_Lean_MVarId_getType(x_2, x_5, x_6, x_7, x_8, x_37); +if (lean_obj_tag(x_68) == 0) +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_68, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_68, 1); +lean_inc(x_70); +lean_dec(x_68); +lean_inc(x_67); +x_71 = l_Lean_MVarId_getType(x_67, x_5, x_6, x_7, x_8, x_70); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +if (lean_obj_tag(x_71) == 0) +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; uint8_t x_75; +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_71, 1); +lean_inc(x_73); +if (lean_is_exclusive(x_71)) { + lean_ctor_release(x_71, 0); + lean_ctor_release(x_71, 1); + x_74 = x_71; +} else { + lean_dec_ref(x_71); + x_74 = lean_box(0); +} +x_75 = lean_expr_eqv(x_69, x_72); +lean_dec(x_72); +lean_dec(x_69); +if (x_75 == 0) +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; +lean_dec(x_4); +x_76 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_76, 0, x_67); +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_66); +if (lean_is_scalar(x_74)) { + x_78 = lean_alloc_ctor(0, 2, 0); +} else { + x_78 = x_74; +} +lean_ctor_set(x_78, 0, x_77); +lean_ctor_set(x_78, 1, x_73); +return x_78; +} +else +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; +lean_dec(x_67); +lean_dec(x_66); +x_79 = lean_box(1); +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_79); +lean_ctor_set(x_80, 1, x_4); +if (lean_is_scalar(x_74)) { + x_81 = lean_alloc_ctor(0, 2, 0); +} else { + x_81 = x_74; +} +lean_ctor_set(x_81, 0, x_80); +lean_ctor_set(x_81, 1, x_73); +return x_81; +} +} +else +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; +lean_dec(x_69); +lean_dec(x_67); +lean_dec(x_66); +lean_dec(x_4); +x_82 = lean_ctor_get(x_71, 0); +lean_inc(x_82); +x_83 = lean_ctor_get(x_71, 1); +lean_inc(x_83); +if (lean_is_exclusive(x_71)) { + lean_ctor_release(x_71, 0); + lean_ctor_release(x_71, 1); + x_84 = x_71; +} else { + lean_dec_ref(x_71); + x_84 = lean_box(0); +} +if (lean_is_scalar(x_84)) { + x_85 = lean_alloc_ctor(1, 2, 0); +} else { + x_85 = x_84; +} +lean_ctor_set(x_85, 0, x_82); +lean_ctor_set(x_85, 1, x_83); +return x_85; +} +} +else +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +lean_dec(x_67); +lean_dec(x_66); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_86 = lean_ctor_get(x_68, 0); +lean_inc(x_86); +x_87 = lean_ctor_get(x_68, 1); +lean_inc(x_87); +if (lean_is_exclusive(x_68)) { + lean_ctor_release(x_68, 0); + lean_ctor_release(x_68, 1); + x_88 = x_68; +} else { + lean_dec_ref(x_68); + x_88 = lean_box(0); +} +if (lean_is_scalar(x_88)) { + x_89 = lean_alloc_ctor(1, 2, 0); +} else { + x_89 = x_88; +} +lean_ctor_set(x_89, 0, x_86); +lean_ctor_set(x_89, 1, x_87); +return x_89; +} +} +} +} +else +{ +uint8_t x_90; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_90 = !lean_is_exclusive(x_20); +if (x_90 == 0) +{ +return x_20; +} +else +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_20, 0); +x_92 = lean_ctor_get(x_20, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_20); +x_93 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_92); +return x_93; +} +} +} +else +{ +uint8_t x_94; +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); -x_57 = !lean_is_exclusive(x_15); -if (x_57 == 0) +x_94 = !lean_is_exclusive(x_16); +if (x_94 == 0) { -return x_15; +return x_16; } else { -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_15, 0); -x_59 = lean_ctor_get(x_15, 1); -lean_inc(x_59); -lean_inc(x_58); -lean_dec(x_15); -x_60 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_60, 0, x_58); -lean_ctor_set(x_60, 1, x_59); -return x_60; +lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_95 = lean_ctor_get(x_16, 0); +x_96 = lean_ctor_get(x_16, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_16); +x_97 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_97, 0, x_95); +lean_ctor_set(x_97, 1, x_96); +return x_97; } } } else { -uint8_t x_61; +uint8_t x_98; +lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -48850,38 +50376,39 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_61 = !lean_is_exclusive(x_9); -if (x_61 == 0) +x_98 = !lean_is_exclusive(x_10); +if (x_98 == 0) { -return x_9; +return x_10; } else { -lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_62 = lean_ctor_get(x_9, 0); -x_63 = lean_ctor_get(x_9, 1); -lean_inc(x_63); -lean_inc(x_62); -lean_dec(x_9); -x_64 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_64, 0, x_62); -lean_ctor_set(x_64, 1, x_63); -return x_64; +lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_99 = lean_ctor_get(x_10, 0); +x_100 = lean_ctor_get(x_10, 1); +lean_inc(x_100); +lean_inc(x_99); +lean_dec(x_10); +x_101 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_101, 0, x_99); +lean_ctor_set(x_101, 1, x_100); +return x_101; } } } } -LEAN_EXPORT lean_object* l_Lean_Meta_simpTargetStar(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_EXPORT lean_object* l_Lean_Meta_simpTargetStar(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_9; lean_object* x_10; +lean_object* x_10; lean_object* x_11; lean_inc(x_1); -x_9 = lean_alloc_closure((void*)(l_Lean_Meta_simpTargetStar___lambda__1), 8, 3); -lean_closure_set(x_9, 0, x_2); -lean_closure_set(x_9, 1, x_1); -lean_closure_set(x_9, 2, x_3); -x_10 = l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(x_1, x_9, x_4, x_5, x_6, x_7, x_8); -return x_10; +x_10 = lean_alloc_closure((void*)(l_Lean_Meta_simpTargetStar___lambda__1), 9, 4); +lean_closure_set(x_10, 0, x_2); +lean_closure_set(x_10, 1, x_1); +lean_closure_set(x_10, 2, x_3); +lean_closure_set(x_10, 3, x_4); +x_11 = l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(x_1, x_10, x_5, x_6, x_7, x_8, x_9); +return x_11; } } LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpTargetStar___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) { @@ -48897,92 +50424,102 @@ lean_dec(x_1); return x_12; } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_dsimpGoal___spec__1___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_dsimpGoal___spec__1___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) { _start: { -uint8_t x_12; -x_12 = lean_expr_eqv(x_1, x_2); -if (x_12 == 0) +uint8_t x_13; +x_13 = lean_expr_eqv(x_1, x_2); +if (x_13 == 0) { -lean_object* x_13; -x_13 = l_Lean_MVarId_replaceLocalDeclDefEq(x_5, x_3, x_1, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_13) == 0) +lean_object* x_14; +x_14 = l_Lean_MVarId_replaceLocalDeclDefEq(x_6, x_3, x_1, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_14) == 0) { -uint8_t x_14; -x_14 = !lean_is_exclusive(x_13); -if (x_14 == 0) +uint8_t x_15; +x_15 = !lean_is_exclusive(x_14); +if (x_15 == 0) { -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_13, 0); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_4); -lean_ctor_set(x_16, 1, x_15); -x_17 = lean_alloc_ctor(1, 1, 0); +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_16 = lean_ctor_get(x_14, 0); +x_17 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_13, 0, x_17); -return x_13; +lean_ctor_set(x_17, 1, x_4); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_5); +lean_ctor_set(x_18, 1, x_17); +x_19 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_14, 0, x_19); +return x_14; } else { -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -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_13); -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_4); -lean_ctor_set(x_20, 1, x_18); -x_21 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_21, 0, x_20); +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_20 = lean_ctor_get(x_14, 0); +x_21 = lean_ctor_get(x_14, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_14); x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_19); -return x_22; +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_4); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_5); +lean_ctor_set(x_23, 1, x_22); +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_23); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_21); +return x_25; } } else { -uint8_t x_23; +uint8_t x_26; +lean_dec(x_5); lean_dec(x_4); -x_23 = !lean_is_exclusive(x_13); -if (x_23 == 0) +x_26 = !lean_is_exclusive(x_14); +if (x_26 == 0) { -return x_13; -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_13, 0); -x_25 = lean_ctor_get(x_13, 1); -lean_inc(x_25); -lean_inc(x_24); -lean_dec(x_13); -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; -} -} +return x_14; } else { lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_14, 0); +x_28 = lean_ctor_get(x_14, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_14); +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; +} +} +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -lean_dec(x_7); lean_dec(x_3); lean_dec(x_1); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_4); -lean_ctor_set(x_27, 1, x_5); -x_28 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_28, 0, x_27); -x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_28); -lean_ctor_set(x_29, 1, x_11); -return x_29; +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_6); +lean_ctor_set(x_30, 1, x_4); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_5); +lean_ctor_set(x_31, 1, x_30); +x_32 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_32, 0, x_31); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_12); +return x_33; } } } @@ -49007,246 +50544,202 @@ return x_13; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_24; +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_24; uint8_t x_25; x_14 = lean_array_uget(x_3, x_5); -x_24 = !lean_is_exclusive(x_6); -if (x_24 == 0) +x_24 = lean_ctor_get(x_6, 1); +lean_inc(x_24); +lean_dec(x_6); +x_25 = !lean_is_exclusive(x_24); +if (x_25 == 0) { -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_6, 1); -x_26 = lean_ctor_get(x_6, 0); -lean_dec(x_26); +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_24, 0); +x_27 = lean_ctor_get(x_24, 1); +lean_dec(x_27); lean_inc(x_7); lean_inc(x_14); -x_27 = l_Lean_FVarId_getType(x_14, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_27) == 0) +x_28 = l_Lean_FVarId_getType(x_14, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_28) == 0) { -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); -x_29 = lean_ctor_get(x_27, 1); +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; +x_29 = lean_ctor_get(x_28, 0); lean_inc(x_29); -lean_dec(x_27); -x_30 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__2(x_28, x_7, x_8, x_9, x_10, x_29); -x_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_30, 1); +x_30 = lean_ctor_get(x_28, 1); +lean_inc(x_30); +lean_dec(x_28); +x_31 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__2(x_29, x_7, x_8, x_9, x_10, x_30); +x_32 = lean_ctor_get(x_31, 0); lean_inc(x_32); -lean_dec(x_30); +x_33 = lean_ctor_get(x_31, 1); +lean_inc(x_33); +lean_dec(x_31); +x_34 = l_Lean_NameSet_empty; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_1); -lean_inc(x_31); -x_33 = l_Lean_Meta_dsimp(x_31, x_1, x_7, x_8, x_9, x_10, x_32); -if (lean_obj_tag(x_33) == 0) +lean_inc(x_32); +x_35 = l_Lean_Meta_dsimp(x_32, x_1, x_34, x_7, x_8, x_9, x_10, x_33); +if (lean_obj_tag(x_35) == 0) { -lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_34 = lean_ctor_get(x_33, 0); -lean_inc(x_34); -x_35 = lean_ctor_get(x_33, 1); -lean_inc(x_35); -lean_dec(x_33); -x_36 = l_Lean_Meta_Simp_isEqnThmHypothesis_go___closed__2; -x_37 = l_Lean_Expr_isConstOf(x_34, x_36); -if (x_37 == 0) +lean_object* x_36; lean_object* x_37; uint8_t x_38; +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_35, 1); +lean_inc(x_37); +lean_dec(x_35); +x_38 = !lean_is_exclusive(x_36); +if (x_38 == 0) { -lean_object* x_38; lean_object* x_39; -lean_free_object(x_6); -x_38 = lean_box(0); +lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; +x_39 = lean_ctor_get(x_36, 0); +x_40 = lean_ctor_get(x_36, 1); +x_41 = l_Lean_Meta_Simp_isEqnThmHypothesis_go___closed__2; +x_42 = l_Lean_Expr_isConstOf(x_39, x_41); +if (x_42 == 0) +{ +lean_object* x_43; lean_object* x_44; +lean_free_object(x_36); +lean_free_object(x_24); +x_43 = lean_box(0); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); -x_39 = l_Array_forInUnsafe_loop___at_Lean_Meta_dsimpGoal___spec__1___lambda__1(x_34, x_31, x_14, x_2, x_25, x_38, x_7, x_8, x_9, x_10, x_35); -lean_dec(x_31); -if (lean_obj_tag(x_39) == 0) +x_44 = l_Array_forInUnsafe_loop___at_Lean_Meta_dsimpGoal___spec__1___lambda__1(x_39, x_32, x_14, x_40, x_2, x_26, x_43, x_7, x_8, x_9, x_10, x_37); +lean_dec(x_32); +if (lean_obj_tag(x_44) == 0) { -lean_object* x_40; lean_object* x_41; -x_40 = lean_ctor_get(x_39, 0); -lean_inc(x_40); -x_41 = lean_ctor_get(x_39, 1); -lean_inc(x_41); -lean_dec(x_39); -x_15 = x_40; -x_16 = x_41; +lean_object* x_45; lean_object* x_46; +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_15 = x_45; +x_16 = x_46; goto block_23; } else { -uint8_t x_42; +uint8_t x_47; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_2); lean_dec(x_1); -x_42 = !lean_is_exclusive(x_39); -if (x_42 == 0) +x_47 = !lean_is_exclusive(x_44); +if (x_47 == 0) { -return x_39; +return x_44; } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_39, 0); -x_44 = lean_ctor_get(x_39, 1); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_39); -x_45 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_44); -return x_45; -} -} -} -else -{ -lean_object* x_46; -lean_dec(x_34); -lean_dec(x_31); -lean_inc(x_25); -x_46 = l_Lean_MVarId_getType(x_25, x_7, x_8, x_9, x_10, x_35); -if (lean_obj_tag(x_46) == 0) -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_47 = lean_ctor_get(x_46, 0); -lean_inc(x_47); -x_48 = lean_ctor_get(x_46, 1); +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_44, 0); +x_49 = lean_ctor_get(x_44, 1); +lean_inc(x_49); lean_inc(x_48); -lean_dec(x_46); -x_49 = l_Lean_Expr_fvar___override(x_14); +lean_dec(x_44); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +return x_50; +} +} +} +else +{ +lean_object* x_51; +lean_dec(x_39); +lean_dec(x_32); +lean_inc(x_26); +x_51 = l_Lean_MVarId_getType(x_26, x_7, x_8, x_9, x_10, x_37); +if (lean_obj_tag(x_51) == 0) +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_52 = lean_ctor_get(x_51, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_51, 1); +lean_inc(x_53); +lean_dec(x_51); +x_54 = l_Lean_Expr_fvar___override(x_14); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_50 = l_Lean_Meta_mkFalseElim(x_47, x_49, x_7, x_8, x_9, x_10, x_48); -if (lean_obj_tag(x_50) == 0) +x_55 = l_Lean_Meta_mkFalseElim(x_52, x_54, x_7, x_8, x_9, x_10, x_53); +if (lean_obj_tag(x_55) == 0) { -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; -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); -lean_inc(x_25); -x_53 = l_Lean_MVarId_assign___at_Lean_Meta_getLevel___spec__1(x_25, x_51, x_7, x_8, x_9, x_10, x_52); -x_54 = lean_ctor_get(x_53, 1); -lean_inc(x_54); -lean_dec(x_53); -x_55 = l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___lambda__2___closed__1; -lean_ctor_set(x_6, 0, x_55); -x_56 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_56, 0, x_6); -x_15 = x_56; -x_16 = x_54; +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; +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_55, 1); +lean_inc(x_57); +lean_dec(x_55); +lean_inc(x_26); +x_58 = l_Lean_MVarId_assign___at_Lean_Meta_getLevel___spec__1(x_26, x_56, x_7, x_8, x_9, x_10, x_57); +x_59 = lean_ctor_get(x_58, 1); +lean_inc(x_59); +lean_dec(x_58); +x_60 = lean_box(0); +lean_inc(x_40); +lean_ctor_set(x_36, 0, x_60); +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_36); +lean_ctor_set(x_24, 1, x_40); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_24); +x_63 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_63, 0, x_62); +x_15 = x_63; +x_16 = x_59; goto block_23; } else { -uint8_t x_57; -lean_free_object(x_6); -lean_dec(x_25); +uint8_t x_64; +lean_free_object(x_36); +lean_dec(x_40); +lean_free_object(x_24); +lean_dec(x_26); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_2); lean_dec(x_1); -x_57 = !lean_is_exclusive(x_50); -if (x_57 == 0) +x_64 = !lean_is_exclusive(x_55); +if (x_64 == 0) { -return x_50; +return x_55; } else { -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_50, 0); -x_59 = lean_ctor_get(x_50, 1); -lean_inc(x_59); -lean_inc(x_58); -lean_dec(x_50); -x_60 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_60, 0, x_58); -lean_ctor_set(x_60, 1, x_59); -return x_60; -} -} -} -else -{ -uint8_t x_61; -lean_free_object(x_6); -lean_dec(x_25); -lean_dec(x_14); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_2); -lean_dec(x_1); -x_61 = !lean_is_exclusive(x_46); -if (x_61 == 0) -{ -return x_46; -} -else -{ -lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_62 = lean_ctor_get(x_46, 0); -x_63 = lean_ctor_get(x_46, 1); -lean_inc(x_63); -lean_inc(x_62); -lean_dec(x_46); -x_64 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_64, 0, x_62); -lean_ctor_set(x_64, 1, x_63); -return x_64; -} -} -} -} -else -{ -uint8_t x_65; -lean_dec(x_31); -lean_free_object(x_6); -lean_dec(x_25); -lean_dec(x_14); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_2); -lean_dec(x_1); -x_65 = !lean_is_exclusive(x_33); -if (x_65 == 0) -{ -return x_33; -} -else -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_66 = lean_ctor_get(x_33, 0); -x_67 = lean_ctor_get(x_33, 1); -lean_inc(x_67); +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_55, 0); +x_66 = lean_ctor_get(x_55, 1); lean_inc(x_66); -lean_dec(x_33); -x_68 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_68, 0, x_66); -lean_ctor_set(x_68, 1, x_67); -return x_68; +lean_inc(x_65); +lean_dec(x_55); +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_65); +lean_ctor_set(x_67, 1, x_66); +return x_67; } } } else { -uint8_t x_69; -lean_free_object(x_6); -lean_dec(x_25); +uint8_t x_68; +lean_free_object(x_36); +lean_dec(x_40); +lean_free_object(x_24); +lean_dec(x_26); lean_dec(x_14); lean_dec(x_10); lean_dec(x_9); @@ -49254,200 +50747,484 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_2); lean_dec(x_1); -x_69 = !lean_is_exclusive(x_27); -if (x_69 == 0) +x_68 = !lean_is_exclusive(x_51); +if (x_68 == 0) { -return x_27; +return x_51; } else { -lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_70 = lean_ctor_get(x_27, 0); -x_71 = lean_ctor_get(x_27, 1); -lean_inc(x_71); +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_51, 0); +x_70 = lean_ctor_get(x_51, 1); lean_inc(x_70); -lean_dec(x_27); -x_72 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_72, 0, x_70); -lean_ctor_set(x_72, 1, x_71); -return x_72; +lean_inc(x_69); +lean_dec(x_51); +x_71 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_71, 0, x_69); +lean_ctor_set(x_71, 1, x_70); +return x_71; +} } } } else { -lean_object* x_73; lean_object* x_74; -x_73 = lean_ctor_get(x_6, 1); +lean_object* x_72; lean_object* x_73; lean_object* x_74; uint8_t x_75; +x_72 = lean_ctor_get(x_36, 0); +x_73 = lean_ctor_get(x_36, 1); lean_inc(x_73); -lean_dec(x_6); -lean_inc(x_7); -lean_inc(x_14); -x_74 = l_Lean_FVarId_getType(x_14, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_74) == 0) +lean_inc(x_72); +lean_dec(x_36); +x_74 = l_Lean_Meta_Simp_isEqnThmHypothesis_go___closed__2; +x_75 = l_Lean_Expr_isConstOf(x_72, x_74); +if (x_75 == 0) { -lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; -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 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__2(x_75, x_7, x_8, x_9, x_10, x_76); +lean_object* x_76; lean_object* x_77; +lean_free_object(x_24); +x_76 = lean_box(0); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_2); +x_77 = l_Array_forInUnsafe_loop___at_Lean_Meta_dsimpGoal___spec__1___lambda__1(x_72, x_32, x_14, x_73, x_2, x_26, x_76, x_7, x_8, x_9, x_10, x_37); +lean_dec(x_32); +if (lean_obj_tag(x_77) == 0) +{ +lean_object* x_78; lean_object* x_79; x_78 = lean_ctor_get(x_77, 0); lean_inc(x_78); x_79 = lean_ctor_get(x_77, 1); lean_inc(x_79); lean_dec(x_77); +x_15 = x_78; +x_16 = x_79; +goto block_23; +} +else +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_2); +lean_dec(x_1); +x_80 = lean_ctor_get(x_77, 0); +lean_inc(x_80); +x_81 = lean_ctor_get(x_77, 1); +lean_inc(x_81); +if (lean_is_exclusive(x_77)) { + lean_ctor_release(x_77, 0); + lean_ctor_release(x_77, 1); + x_82 = x_77; +} else { + lean_dec_ref(x_77); + x_82 = lean_box(0); +} +if (lean_is_scalar(x_82)) { + x_83 = lean_alloc_ctor(1, 2, 0); +} else { + x_83 = x_82; +} +lean_ctor_set(x_83, 0, x_80); +lean_ctor_set(x_83, 1, x_81); +return x_83; +} +} +else +{ +lean_object* x_84; +lean_dec(x_72); +lean_dec(x_32); +lean_inc(x_26); +x_84 = l_Lean_MVarId_getType(x_26, x_7, x_8, x_9, x_10, x_37); +if (lean_obj_tag(x_84) == 0) +{ +lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_85 = lean_ctor_get(x_84, 0); +lean_inc(x_85); +x_86 = lean_ctor_get(x_84, 1); +lean_inc(x_86); +lean_dec(x_84); +x_87 = l_Lean_Expr_fvar___override(x_14); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_88 = l_Lean_Meta_mkFalseElim(x_85, x_87, x_7, x_8, x_9, x_10, x_86); +if (lean_obj_tag(x_88) == 0) +{ +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; +x_89 = lean_ctor_get(x_88, 0); +lean_inc(x_89); +x_90 = lean_ctor_get(x_88, 1); +lean_inc(x_90); +lean_dec(x_88); +lean_inc(x_26); +x_91 = l_Lean_MVarId_assign___at_Lean_Meta_getLevel___spec__1(x_26, x_89, x_7, x_8, x_9, x_10, x_90); +x_92 = lean_ctor_get(x_91, 1); +lean_inc(x_92); +lean_dec(x_91); +x_93 = lean_box(0); +lean_inc(x_73); +x_94 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_94, 0, x_93); +lean_ctor_set(x_94, 1, x_73); +x_95 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_95, 0, x_94); +lean_ctor_set(x_24, 1, x_73); +x_96 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_96, 0, x_95); +lean_ctor_set(x_96, 1, x_24); +x_97 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_97, 0, x_96); +x_15 = x_97; +x_16 = x_92; +goto block_23; +} +else +{ +lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; +lean_dec(x_73); +lean_free_object(x_24); +lean_dec(x_26); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_2); +lean_dec(x_1); +x_98 = lean_ctor_get(x_88, 0); +lean_inc(x_98); +x_99 = lean_ctor_get(x_88, 1); +lean_inc(x_99); +if (lean_is_exclusive(x_88)) { + lean_ctor_release(x_88, 0); + lean_ctor_release(x_88, 1); + x_100 = x_88; +} else { + lean_dec_ref(x_88); + x_100 = lean_box(0); +} +if (lean_is_scalar(x_100)) { + x_101 = lean_alloc_ctor(1, 2, 0); +} else { + x_101 = x_100; +} +lean_ctor_set(x_101, 0, x_98); +lean_ctor_set(x_101, 1, x_99); +return x_101; +} +} +else +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +lean_dec(x_73); +lean_free_object(x_24); +lean_dec(x_26); +lean_dec(x_14); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_2); +lean_dec(x_1); +x_102 = lean_ctor_get(x_84, 0); +lean_inc(x_102); +x_103 = lean_ctor_get(x_84, 1); +lean_inc(x_103); +if (lean_is_exclusive(x_84)) { + lean_ctor_release(x_84, 0); + lean_ctor_release(x_84, 1); + x_104 = x_84; +} else { + lean_dec_ref(x_84); + x_104 = lean_box(0); +} +if (lean_is_scalar(x_104)) { + x_105 = lean_alloc_ctor(1, 2, 0); +} else { + x_105 = x_104; +} +lean_ctor_set(x_105, 0, x_102); +lean_ctor_set(x_105, 1, x_103); +return x_105; +} +} +} +} +else +{ +uint8_t x_106; +lean_dec(x_32); +lean_free_object(x_24); +lean_dec(x_26); +lean_dec(x_14); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_2); +lean_dec(x_1); +x_106 = !lean_is_exclusive(x_35); +if (x_106 == 0) +{ +return x_35; +} +else +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_107 = lean_ctor_get(x_35, 0); +x_108 = lean_ctor_get(x_35, 1); +lean_inc(x_108); +lean_inc(x_107); +lean_dec(x_35); +x_109 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_109, 0, x_107); +lean_ctor_set(x_109, 1, x_108); +return x_109; +} +} +} +else +{ +uint8_t x_110; +lean_free_object(x_24); +lean_dec(x_26); +lean_dec(x_14); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_2); +lean_dec(x_1); +x_110 = !lean_is_exclusive(x_28); +if (x_110 == 0) +{ +return x_28; +} +else +{ +lean_object* x_111; lean_object* x_112; lean_object* x_113; +x_111 = lean_ctor_get(x_28, 0); +x_112 = lean_ctor_get(x_28, 1); +lean_inc(x_112); +lean_inc(x_111); +lean_dec(x_28); +x_113 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_113, 0, x_111); +lean_ctor_set(x_113, 1, x_112); +return x_113; +} +} +} +else +{ +lean_object* x_114; lean_object* x_115; +x_114 = lean_ctor_get(x_24, 0); +lean_inc(x_114); +lean_dec(x_24); +lean_inc(x_7); +lean_inc(x_14); +x_115 = l_Lean_FVarId_getType(x_14, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_115) == 0) +{ +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; +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_118 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__2(x_116, x_7, x_8, x_9, x_10, 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); +x_121 = l_Lean_NameSet_empty; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_1); -lean_inc(x_78); -x_80 = l_Lean_Meta_dsimp(x_78, x_1, x_7, x_8, x_9, x_10, x_79); -if (lean_obj_tag(x_80) == 0) +lean_inc(x_119); +x_122 = l_Lean_Meta_dsimp(x_119, x_1, x_121, x_7, x_8, x_9, x_10, x_120); +if (lean_obj_tag(x_122) == 0) { -lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; -x_81 = lean_ctor_get(x_80, 0); -lean_inc(x_81); -x_82 = lean_ctor_get(x_80, 1); -lean_inc(x_82); -lean_dec(x_80); -x_83 = l_Lean_Meta_Simp_isEqnThmHypothesis_go___closed__2; -x_84 = l_Lean_Expr_isConstOf(x_81, x_83); -if (x_84 == 0) +lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; uint8_t x_129; +x_123 = lean_ctor_get(x_122, 0); +lean_inc(x_123); +x_124 = lean_ctor_get(x_122, 1); +lean_inc(x_124); +lean_dec(x_122); +x_125 = lean_ctor_get(x_123, 0); +lean_inc(x_125); +x_126 = lean_ctor_get(x_123, 1); +lean_inc(x_126); +if (lean_is_exclusive(x_123)) { + lean_ctor_release(x_123, 0); + lean_ctor_release(x_123, 1); + x_127 = x_123; +} else { + lean_dec_ref(x_123); + x_127 = lean_box(0); +} +x_128 = l_Lean_Meta_Simp_isEqnThmHypothesis_go___closed__2; +x_129 = l_Lean_Expr_isConstOf(x_125, x_128); +if (x_129 == 0) { -lean_object* x_85; lean_object* x_86; -x_85 = lean_box(0); +lean_object* x_130; lean_object* x_131; +lean_dec(x_127); +x_130 = lean_box(0); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); -x_86 = l_Array_forInUnsafe_loop___at_Lean_Meta_dsimpGoal___spec__1___lambda__1(x_81, x_78, x_14, x_2, x_73, x_85, x_7, x_8, x_9, x_10, x_82); -lean_dec(x_78); -if (lean_obj_tag(x_86) == 0) +x_131 = l_Array_forInUnsafe_loop___at_Lean_Meta_dsimpGoal___spec__1___lambda__1(x_125, x_119, x_14, x_126, x_2, x_114, x_130, x_7, x_8, x_9, x_10, x_124); +lean_dec(x_119); +if (lean_obj_tag(x_131) == 0) { -lean_object* x_87; lean_object* x_88; -x_87 = lean_ctor_get(x_86, 0); -lean_inc(x_87); -x_88 = lean_ctor_get(x_86, 1); -lean_inc(x_88); -lean_dec(x_86); -x_15 = x_87; -x_16 = x_88; +lean_object* x_132; lean_object* x_133; +x_132 = lean_ctor_get(x_131, 0); +lean_inc(x_132); +x_133 = lean_ctor_get(x_131, 1); +lean_inc(x_133); +lean_dec(x_131); +x_15 = x_132; +x_16 = x_133; goto block_23; } else { -lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; +lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_2); lean_dec(x_1); -x_89 = lean_ctor_get(x_86, 0); -lean_inc(x_89); -x_90 = lean_ctor_get(x_86, 1); -lean_inc(x_90); -if (lean_is_exclusive(x_86)) { - lean_ctor_release(x_86, 0); - lean_ctor_release(x_86, 1); - x_91 = x_86; +x_134 = lean_ctor_get(x_131, 0); +lean_inc(x_134); +x_135 = lean_ctor_get(x_131, 1); +lean_inc(x_135); +if (lean_is_exclusive(x_131)) { + lean_ctor_release(x_131, 0); + lean_ctor_release(x_131, 1); + x_136 = x_131; } else { - lean_dec_ref(x_86); - x_91 = lean_box(0); + lean_dec_ref(x_131); + x_136 = lean_box(0); } -if (lean_is_scalar(x_91)) { - x_92 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_136)) { + x_137 = lean_alloc_ctor(1, 2, 0); } else { - x_92 = x_91; + x_137 = x_136; } -lean_ctor_set(x_92, 0, x_89); -lean_ctor_set(x_92, 1, x_90); -return x_92; +lean_ctor_set(x_137, 0, x_134); +lean_ctor_set(x_137, 1, x_135); +return x_137; } } else { -lean_object* x_93; -lean_dec(x_81); -lean_dec(x_78); -lean_inc(x_73); -x_93 = l_Lean_MVarId_getType(x_73, x_7, x_8, x_9, x_10, x_82); -if (lean_obj_tag(x_93) == 0) +lean_object* x_138; +lean_dec(x_125); +lean_dec(x_119); +lean_inc(x_114); +x_138 = l_Lean_MVarId_getType(x_114, x_7, x_8, x_9, x_10, x_124); +if (lean_obj_tag(x_138) == 0) { -lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_94 = lean_ctor_get(x_93, 0); -lean_inc(x_94); -x_95 = lean_ctor_get(x_93, 1); -lean_inc(x_95); -lean_dec(x_93); -x_96 = l_Lean_Expr_fvar___override(x_14); +lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; +x_139 = lean_ctor_get(x_138, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_138, 1); +lean_inc(x_140); +lean_dec(x_138); +x_141 = l_Lean_Expr_fvar___override(x_14); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_97 = l_Lean_Meta_mkFalseElim(x_94, x_96, x_7, x_8, x_9, x_10, x_95); -if (lean_obj_tag(x_97) == 0) +x_142 = l_Lean_Meta_mkFalseElim(x_139, x_141, x_7, x_8, x_9, x_10, x_140); +if (lean_obj_tag(x_142) == 0) { -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; -x_98 = lean_ctor_get(x_97, 0); -lean_inc(x_98); -x_99 = lean_ctor_get(x_97, 1); -lean_inc(x_99); -lean_dec(x_97); -lean_inc(x_73); -x_100 = l_Lean_MVarId_assign___at_Lean_Meta_getLevel___spec__1(x_73, x_98, x_7, x_8, x_9, x_10, x_99); -x_101 = lean_ctor_get(x_100, 1); -lean_inc(x_101); -lean_dec(x_100); -x_102 = l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___lambda__2___closed__1; -x_103 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_103, 0, x_102); -lean_ctor_set(x_103, 1, x_73); -x_104 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_104, 0, x_103); -x_15 = x_104; -x_16 = x_101; +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; lean_object* x_151; lean_object* x_152; +x_143 = lean_ctor_get(x_142, 0); +lean_inc(x_143); +x_144 = lean_ctor_get(x_142, 1); +lean_inc(x_144); +lean_dec(x_142); +lean_inc(x_114); +x_145 = l_Lean_MVarId_assign___at_Lean_Meta_getLevel___spec__1(x_114, x_143, x_7, x_8, x_9, x_10, x_144); +x_146 = lean_ctor_get(x_145, 1); +lean_inc(x_146); +lean_dec(x_145); +x_147 = lean_box(0); +lean_inc(x_126); +if (lean_is_scalar(x_127)) { + x_148 = lean_alloc_ctor(0, 2, 0); +} else { + x_148 = x_127; +} +lean_ctor_set(x_148, 0, x_147); +lean_ctor_set(x_148, 1, x_126); +x_149 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_149, 0, x_148); +x_150 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_150, 0, x_114); +lean_ctor_set(x_150, 1, x_126); +x_151 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_151, 0, x_149); +lean_ctor_set(x_151, 1, x_150); +x_152 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_152, 0, x_151); +x_15 = x_152; +x_16 = x_146; goto block_23; } else { -lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; -lean_dec(x_73); +lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; +lean_dec(x_127); +lean_dec(x_126); +lean_dec(x_114); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_2); lean_dec(x_1); -x_105 = lean_ctor_get(x_97, 0); -lean_inc(x_105); -x_106 = lean_ctor_get(x_97, 1); -lean_inc(x_106); -if (lean_is_exclusive(x_97)) { - lean_ctor_release(x_97, 0); - lean_ctor_release(x_97, 1); - x_107 = x_97; +x_153 = lean_ctor_get(x_142, 0); +lean_inc(x_153); +x_154 = lean_ctor_get(x_142, 1); +lean_inc(x_154); +if (lean_is_exclusive(x_142)) { + lean_ctor_release(x_142, 0); + lean_ctor_release(x_142, 1); + x_155 = x_142; } else { - lean_dec_ref(x_97); - x_107 = lean_box(0); + lean_dec_ref(x_142); + x_155 = lean_box(0); } -if (lean_is_scalar(x_107)) { - x_108 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_155)) { + x_156 = lean_alloc_ctor(1, 2, 0); } else { - x_108 = x_107; + x_156 = x_155; } -lean_ctor_set(x_108, 0, x_105); -lean_ctor_set(x_108, 1, x_106); -return x_108; +lean_ctor_set(x_156, 0, x_153); +lean_ctor_set(x_156, 1, x_154); +return x_156; } } else { -lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; -lean_dec(x_73); +lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; +lean_dec(x_127); +lean_dec(x_126); +lean_dec(x_114); lean_dec(x_14); lean_dec(x_10); lean_dec(x_9); @@ -49455,34 +51232,34 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_2); lean_dec(x_1); -x_109 = lean_ctor_get(x_93, 0); -lean_inc(x_109); -x_110 = lean_ctor_get(x_93, 1); -lean_inc(x_110); -if (lean_is_exclusive(x_93)) { - lean_ctor_release(x_93, 0); - lean_ctor_release(x_93, 1); - x_111 = x_93; +x_157 = lean_ctor_get(x_138, 0); +lean_inc(x_157); +x_158 = lean_ctor_get(x_138, 1); +lean_inc(x_158); +if (lean_is_exclusive(x_138)) { + lean_ctor_release(x_138, 0); + lean_ctor_release(x_138, 1); + x_159 = x_138; } else { - lean_dec_ref(x_93); - x_111 = lean_box(0); + lean_dec_ref(x_138); + x_159 = lean_box(0); } -if (lean_is_scalar(x_111)) { - x_112 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_159)) { + x_160 = lean_alloc_ctor(1, 2, 0); } else { - x_112 = x_111; + x_160 = x_159; } -lean_ctor_set(x_112, 0, x_109); -lean_ctor_set(x_112, 1, x_110); -return x_112; +lean_ctor_set(x_160, 0, x_157); +lean_ctor_set(x_160, 1, x_158); +return x_160; } } } else { -lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; -lean_dec(x_78); -lean_dec(x_73); +lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; +lean_dec(x_119); +lean_dec(x_114); lean_dec(x_14); lean_dec(x_10); lean_dec(x_9); @@ -49490,32 +51267,32 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_2); lean_dec(x_1); -x_113 = lean_ctor_get(x_80, 0); -lean_inc(x_113); -x_114 = lean_ctor_get(x_80, 1); -lean_inc(x_114); -if (lean_is_exclusive(x_80)) { - lean_ctor_release(x_80, 0); - lean_ctor_release(x_80, 1); - x_115 = x_80; +x_161 = lean_ctor_get(x_122, 0); +lean_inc(x_161); +x_162 = lean_ctor_get(x_122, 1); +lean_inc(x_162); +if (lean_is_exclusive(x_122)) { + lean_ctor_release(x_122, 0); + lean_ctor_release(x_122, 1); + x_163 = x_122; } else { - lean_dec_ref(x_80); - x_115 = lean_box(0); + lean_dec_ref(x_122); + x_163 = lean_box(0); } -if (lean_is_scalar(x_115)) { - x_116 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_163)) { + x_164 = lean_alloc_ctor(1, 2, 0); } else { - x_116 = x_115; + x_164 = x_163; } -lean_ctor_set(x_116, 0, x_113); -lean_ctor_set(x_116, 1, x_114); -return x_116; +lean_ctor_set(x_164, 0, x_161); +lean_ctor_set(x_164, 1, x_162); +return x_164; } } else { -lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; -lean_dec(x_73); +lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; +lean_dec(x_114); lean_dec(x_14); lean_dec(x_10); lean_dec(x_9); @@ -49523,26 +51300,26 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_2); lean_dec(x_1); -x_117 = lean_ctor_get(x_74, 0); -lean_inc(x_117); -x_118 = lean_ctor_get(x_74, 1); -lean_inc(x_118); -if (lean_is_exclusive(x_74)) { - lean_ctor_release(x_74, 0); - lean_ctor_release(x_74, 1); - x_119 = x_74; +x_165 = lean_ctor_get(x_115, 0); +lean_inc(x_165); +x_166 = lean_ctor_get(x_115, 1); +lean_inc(x_166); +if (lean_is_exclusive(x_115)) { + lean_ctor_release(x_115, 0); + lean_ctor_release(x_115, 1); + x_167 = x_115; } else { - lean_dec_ref(x_74); - x_119 = lean_box(0); + lean_dec_ref(x_115); + x_167 = lean_box(0); } -if (lean_is_scalar(x_119)) { - x_120 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_167)) { + x_168 = lean_alloc_ctor(1, 2, 0); } else { - x_120 = x_119; + x_168 = x_167; } -lean_ctor_set(x_120, 0, x_117); -lean_ctor_set(x_120, 1, x_118); -return x_120; +lean_ctor_set(x_168, 0, x_165); +lean_ctor_set(x_168, 1, x_166); +return x_168; } } block_23: @@ -49581,425 +51358,415 @@ goto _start; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal___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_EXPORT lean_object* l_Lean_Meta_dsimpGoal___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) { _start: { -lean_object* x_8; lean_object* x_9; -x_8 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_8, 0, x_1); -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_8); -lean_ctor_set(x_9, 1, x_7); -return x_9; +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_9, 0, x_1); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_2); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_8); +return x_11; } } -LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal___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_EXPORT lean_object* l_Lean_Meta_dsimpGoal___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) { _start: { -uint8_t x_11; -x_11 = lean_expr_eqv(x_1, x_2); -if (x_11 == 0) -{ -lean_object* x_12; -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_12 = l_Lean_MVarId_replaceTargetDefEq(x_4, x_2, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_12) == 0) -{ -lean_object* x_13; lean_object* x_14; lean_object* 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_inc(x_14); -lean_dec(x_12); -x_15 = lean_box(0); -x_16 = lean_apply_7(x_3, x_13, x_15, x_6, x_7, x_8, x_9, x_14); -return x_16; -} -else -{ -uint8_t x_17; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_3); -x_17 = !lean_is_exclusive(x_12); -if (x_17 == 0) -{ -return x_12; -} -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); -lean_inc(x_19); -lean_inc(x_18); -lean_dec(x_12); -x_20 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_20, 0, x_18); -lean_ctor_set(x_20, 1, x_19); -return x_20; -} -} -} -else -{ -lean_object* x_21; lean_object* x_22; -lean_dec(x_2); -x_21 = lean_box(0); -x_22 = lean_apply_7(x_3, x_4, x_21, x_6, x_7, x_8, x_9, x_10); -return x_22; -} +lean_object* x_10; lean_object* x_11; +x_10 = lean_box(0); +x_11 = lean_apply_8(x_1, x_3, x_2, x_10, x_5, x_6, x_7, x_8, x_9); +return x_11; } } LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal___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) { _start: { -lean_object* x_12; lean_object* x_13; uint8_t x_14; -lean_dec(x_6); -x_12 = l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__2; -x_13 = lean_unsigned_to_nat(3u); -x_14 = l_Lean_Expr_isAppOfArity(x_2, x_12, x_13); -if (x_14 == 0) +uint8_t x_12; +x_12 = lean_expr_eqv(x_3, x_4); +if (x_12 == 0) { -lean_object* x_15; lean_object* x_16; -lean_dec(x_4); -x_15 = lean_box(0); -x_16 = l_Lean_Meta_dsimpGoal___lambda__2(x_1, x_2, x_3, x_5, x_15, x_7, x_8, x_9, x_10, x_11); -return x_16; -} -else -{ -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_17 = l_Lean_Expr_appFn_x21(x_2); -x_18 = l_Lean_Expr_appArg_x21(x_17); -lean_dec(x_17); -x_19 = l_Lean_Expr_appArg_x21(x_2); -x_20 = lean_ctor_get(x_7, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_7, 1); -lean_inc(x_21); -x_22 = lean_ctor_get(x_7, 2); -lean_inc(x_22); -x_23 = lean_ctor_get(x_7, 3); -lean_inc(x_23); -x_24 = lean_ctor_get(x_7, 4); -lean_inc(x_24); -x_25 = lean_ctor_get(x_7, 5); -lean_inc(x_25); -x_26 = !lean_is_exclusive(x_20); -if (x_26 == 0) -{ -uint8_t x_27; lean_object* x_28; lean_object* x_29; -x_27 = 2; -lean_ctor_set_uint8(x_20, 5, x_27); -x_28 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_28, 0, x_20); -lean_ctor_set(x_28, 1, x_21); -lean_ctor_set(x_28, 2, x_22); -lean_ctor_set(x_28, 3, x_23); -lean_ctor_set(x_28, 4, x_24); -lean_ctor_set(x_28, 5, x_25); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_18); -x_29 = l_Lean_Meta_isExprDefEq(x_18, x_19, x_28, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_29) == 0) -{ -lean_object* x_30; uint8_t x_31; -x_30 = lean_ctor_get(x_29, 0); -lean_inc(x_30); -x_31 = lean_unbox(x_30); -lean_dec(x_30); -if (x_31 == 0) -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; -lean_dec(x_18); -lean_dec(x_4); -x_32 = lean_ctor_get(x_29, 1); -lean_inc(x_32); -lean_dec(x_29); -x_33 = lean_box(0); -x_34 = l_Lean_Meta_dsimpGoal___lambda__2(x_1, x_2, x_3, x_5, x_33, x_7, x_8, x_9, x_10, x_32); -return x_34; -} -else -{ -lean_object* x_35; lean_object* x_36; -lean_dec(x_3); -lean_dec(x_2); -x_35 = lean_ctor_get(x_29, 1); -lean_inc(x_35); -lean_dec(x_29); +lean_object* x_13; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_36 = l_Lean_Meta_mkEqRefl(x_18, x_7, x_8, x_9, x_10, x_35); -if (lean_obj_tag(x_36) == 0) +x_13 = l_Lean_MVarId_replaceTargetDefEq(x_5, x_4, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_13) == 0) { -lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -x_38 = lean_ctor_get(x_36, 1); -lean_inc(x_38); -lean_dec(x_36); -x_39 = l_Lean_MVarId_assign___at_Lean_Meta_getLevel___spec__1(x_5, x_37, x_7, x_8, x_9, x_10, x_38); +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +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); +x_16 = lean_box(0); +x_17 = lean_apply_8(x_1, x_14, x_2, x_16, x_7, x_8, x_9, x_10, x_15); +return x_17; +} +else +{ +uint8_t x_18; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -x_40 = !lean_is_exclusive(x_39); -if (x_40 == 0) +lean_dec(x_2); +lean_dec(x_1); +x_18 = !lean_is_exclusive(x_13); +if (x_18 == 0) { -lean_object* x_41; -x_41 = lean_ctor_get(x_39, 0); -lean_dec(x_41); -lean_ctor_set(x_39, 0, x_4); -return x_39; +return x_13; } else { +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_13, 0); +x_20 = lean_ctor_get(x_13, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_13); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_20); +return x_21; +} +} +} +else +{ +lean_object* x_22; lean_object* x_23; +lean_dec(x_4); +x_22 = lean_box(0); +x_23 = lean_apply_8(x_1, x_5, x_2, x_22, x_7, x_8, x_9, x_10, x_11); +return x_23; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal___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; uint8_t x_15; +lean_dec(x_7); +x_13 = l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__2; +x_14 = lean_unsigned_to_nat(3u); +x_15 = l_Lean_Expr_isAppOfArity(x_4, x_13, x_14); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; +lean_dec(x_5); +x_16 = lean_box(0); +x_17 = l_Lean_Meta_dsimpGoal___lambda__3(x_1, x_2, x_3, x_4, x_6, x_16, x_8, x_9, x_10, x_11, x_12); +return x_17; +} +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; uint8_t x_27; +x_18 = l_Lean_Expr_appFn_x21(x_4); +x_19 = l_Lean_Expr_appArg_x21(x_18); +lean_dec(x_18); +x_20 = l_Lean_Expr_appArg_x21(x_4); +x_21 = lean_ctor_get(x_8, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_8, 1); +lean_inc(x_22); +x_23 = lean_ctor_get(x_8, 2); +lean_inc(x_23); +x_24 = lean_ctor_get(x_8, 3); +lean_inc(x_24); +x_25 = lean_ctor_get(x_8, 4); +lean_inc(x_25); +x_26 = lean_ctor_get(x_8, 5); +lean_inc(x_26); +x_27 = !lean_is_exclusive(x_21); +if (x_27 == 0) +{ +uint8_t x_28; lean_object* x_29; lean_object* x_30; +x_28 = 2; +lean_ctor_set_uint8(x_21, 5, x_28); +x_29 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_29, 0, x_21); +lean_ctor_set(x_29, 1, x_22); +lean_ctor_set(x_29, 2, x_23); +lean_ctor_set(x_29, 3, x_24); +lean_ctor_set(x_29, 4, x_25); +lean_ctor_set(x_29, 5, x_26); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_19); +x_30 = l_Lean_Meta_isExprDefEq(x_19, x_20, x_29, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_30) == 0) +{ +lean_object* x_31; uint8_t x_32; +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +x_32 = lean_unbox(x_31); +lean_dec(x_31); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +lean_dec(x_19); +lean_dec(x_5); +x_33 = lean_ctor_get(x_30, 1); +lean_inc(x_33); +lean_dec(x_30); +x_34 = lean_box(0); +x_35 = l_Lean_Meta_dsimpGoal___lambda__3(x_1, x_2, x_3, x_4, x_6, x_34, x_8, x_9, x_10, x_11, x_33); +return x_35; +} +else +{ +lean_object* x_36; lean_object* x_37; +lean_dec(x_4); +lean_dec(x_1); +x_36 = lean_ctor_get(x_30, 1); +lean_inc(x_36); +lean_dec(x_30); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_37 = l_Lean_Meta_mkEqRefl(x_19, x_8, x_9, x_10, x_11, x_36); +if (lean_obj_tag(x_37) == 0) +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +lean_dec(x_37); +x_40 = l_Lean_MVarId_assign___at_Lean_Meta_getLevel___spec__1(x_6, x_38, x_8, x_9, x_10, x_11, x_39); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_41 = !lean_is_exclusive(x_40); +if (x_41 == 0) +{ lean_object* x_42; lean_object* x_43; -x_42 = lean_ctor_get(x_39, 1); -lean_inc(x_42); -lean_dec(x_39); +x_42 = lean_ctor_get(x_40, 0); +lean_dec(x_42); x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_4); -lean_ctor_set(x_43, 1, x_42); -return x_43; +lean_ctor_set(x_43, 0, x_5); +lean_ctor_set(x_43, 1, x_2); +lean_ctor_set(x_40, 0, x_43); +return x_40; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_40, 1); +lean_inc(x_44); +lean_dec(x_40); +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_5); +lean_ctor_set(x_45, 1, x_2); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_44); +return x_46; } } else { -uint8_t x_44; +uint8_t x_47; +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); -x_44 = !lean_is_exclusive(x_36); -if (x_44 == 0) -{ -return x_36; -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_36, 0); -x_46 = lean_ctor_get(x_36, 1); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_36); -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -return x_47; -} -} -} -} -else -{ -uint8_t x_48; -lean_dec(x_18); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); lean_dec(x_2); -x_48 = !lean_is_exclusive(x_29); -if (x_48 == 0) +x_47 = !lean_is_exclusive(x_37); +if (x_47 == 0) { -return x_29; +return x_37; } else { -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_29, 0); -x_50 = lean_ctor_get(x_29, 1); -lean_inc(x_50); +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_37, 0); +x_49 = lean_ctor_get(x_37, 1); lean_inc(x_49); -lean_dec(x_29); -x_51 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_51, 0, x_49); -lean_ctor_set(x_51, 1, x_50); -return x_51; +lean_inc(x_48); +lean_dec(x_37); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +return x_50; +} } } } else { -uint8_t x_52; uint8_t x_53; uint8_t x_54; uint8_t x_55; uint8_t x_56; uint8_t x_57; uint8_t x_58; uint8_t x_59; uint8_t x_60; uint8_t x_61; uint8_t x_62; uint8_t x_63; uint8_t x_64; uint8_t x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_52 = lean_ctor_get_uint8(x_20, 0); -x_53 = lean_ctor_get_uint8(x_20, 1); -x_54 = lean_ctor_get_uint8(x_20, 2); -x_55 = lean_ctor_get_uint8(x_20, 3); -x_56 = lean_ctor_get_uint8(x_20, 4); -x_57 = lean_ctor_get_uint8(x_20, 6); -x_58 = lean_ctor_get_uint8(x_20, 7); -x_59 = lean_ctor_get_uint8(x_20, 8); -x_60 = lean_ctor_get_uint8(x_20, 9); -x_61 = lean_ctor_get_uint8(x_20, 10); -x_62 = lean_ctor_get_uint8(x_20, 11); -x_63 = lean_ctor_get_uint8(x_20, 12); -x_64 = lean_ctor_get_uint8(x_20, 13); -lean_dec(x_20); -x_65 = 2; -x_66 = lean_alloc_ctor(0, 0, 14); -lean_ctor_set_uint8(x_66, 0, x_52); -lean_ctor_set_uint8(x_66, 1, x_53); -lean_ctor_set_uint8(x_66, 2, x_54); -lean_ctor_set_uint8(x_66, 3, x_55); -lean_ctor_set_uint8(x_66, 4, x_56); -lean_ctor_set_uint8(x_66, 5, x_65); -lean_ctor_set_uint8(x_66, 6, x_57); -lean_ctor_set_uint8(x_66, 7, x_58); -lean_ctor_set_uint8(x_66, 8, x_59); -lean_ctor_set_uint8(x_66, 9, x_60); -lean_ctor_set_uint8(x_66, 10, x_61); -lean_ctor_set_uint8(x_66, 11, x_62); -lean_ctor_set_uint8(x_66, 12, x_63); -lean_ctor_set_uint8(x_66, 13, x_64); -x_67 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_21); -lean_ctor_set(x_67, 2, x_22); -lean_ctor_set(x_67, 3, x_23); -lean_ctor_set(x_67, 4, x_24); -lean_ctor_set(x_67, 5, x_25); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_18); -x_68 = l_Lean_Meta_isExprDefEq(x_18, x_19, x_67, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_68) == 0) -{ -lean_object* x_69; uint8_t x_70; -x_69 = lean_ctor_get(x_68, 0); -lean_inc(x_69); -x_70 = lean_unbox(x_69); -lean_dec(x_69); -if (x_70 == 0) -{ -lean_object* x_71; lean_object* x_72; lean_object* x_73; -lean_dec(x_18); -lean_dec(x_4); -x_71 = lean_ctor_get(x_68, 1); -lean_inc(x_71); -lean_dec(x_68); -x_72 = lean_box(0); -x_73 = l_Lean_Meta_dsimpGoal___lambda__2(x_1, x_2, x_3, x_5, x_72, x_7, x_8, x_9, x_10, x_71); -return x_73; -} -else -{ -lean_object* x_74; lean_object* x_75; -lean_dec(x_3); -lean_dec(x_2); -x_74 = lean_ctor_get(x_68, 1); -lean_inc(x_74); -lean_dec(x_68); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -x_75 = l_Lean_Meta_mkEqRefl(x_18, x_7, x_8, x_9, x_10, x_74); -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; -x_76 = lean_ctor_get(x_75, 0); -lean_inc(x_76); -x_77 = lean_ctor_get(x_75, 1); -lean_inc(x_77); -lean_dec(x_75); -x_78 = l_Lean_MVarId_assign___at_Lean_Meta_getLevel___spec__1(x_5, x_76, x_7, x_8, x_9, x_10, x_77); +uint8_t x_51; +lean_dec(x_19); +lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -lean_dec(x_7); -x_79 = lean_ctor_get(x_78, 1); -lean_inc(x_79); -if (lean_is_exclusive(x_78)) { - lean_ctor_release(x_78, 0); - lean_ctor_release(x_78, 1); - x_80 = x_78; -} else { - lean_dec_ref(x_78); - x_80 = lean_box(0); -} -if (lean_is_scalar(x_80)) { - x_81 = lean_alloc_ctor(0, 2, 0); -} else { - x_81 = x_80; -} -lean_ctor_set(x_81, 0, x_4); -lean_ctor_set(x_81, 1, x_79); -return x_81; -} -else -{ -lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; -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); -x_82 = lean_ctor_get(x_75, 0); +lean_dec(x_2); +lean_dec(x_1); +x_51 = !lean_is_exclusive(x_30); +if (x_51 == 0) +{ +return x_30; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_30, 0); +x_53 = lean_ctor_get(x_30, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_30); +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +return x_54; +} +} +} +else +{ +uint8_t x_55; uint8_t x_56; uint8_t x_57; uint8_t x_58; uint8_t x_59; uint8_t x_60; uint8_t x_61; uint8_t x_62; uint8_t x_63; uint8_t x_64; uint8_t x_65; uint8_t x_66; uint8_t x_67; uint8_t x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_55 = lean_ctor_get_uint8(x_21, 0); +x_56 = lean_ctor_get_uint8(x_21, 1); +x_57 = lean_ctor_get_uint8(x_21, 2); +x_58 = lean_ctor_get_uint8(x_21, 3); +x_59 = lean_ctor_get_uint8(x_21, 4); +x_60 = lean_ctor_get_uint8(x_21, 6); +x_61 = lean_ctor_get_uint8(x_21, 7); +x_62 = lean_ctor_get_uint8(x_21, 8); +x_63 = lean_ctor_get_uint8(x_21, 9); +x_64 = lean_ctor_get_uint8(x_21, 10); +x_65 = lean_ctor_get_uint8(x_21, 11); +x_66 = lean_ctor_get_uint8(x_21, 12); +x_67 = lean_ctor_get_uint8(x_21, 13); +lean_dec(x_21); +x_68 = 2; +x_69 = lean_alloc_ctor(0, 0, 14); +lean_ctor_set_uint8(x_69, 0, x_55); +lean_ctor_set_uint8(x_69, 1, x_56); +lean_ctor_set_uint8(x_69, 2, x_57); +lean_ctor_set_uint8(x_69, 3, x_58); +lean_ctor_set_uint8(x_69, 4, x_59); +lean_ctor_set_uint8(x_69, 5, x_68); +lean_ctor_set_uint8(x_69, 6, x_60); +lean_ctor_set_uint8(x_69, 7, x_61); +lean_ctor_set_uint8(x_69, 8, x_62); +lean_ctor_set_uint8(x_69, 9, x_63); +lean_ctor_set_uint8(x_69, 10, x_64); +lean_ctor_set_uint8(x_69, 11, x_65); +lean_ctor_set_uint8(x_69, 12, x_66); +lean_ctor_set_uint8(x_69, 13, x_67); +x_70 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_70, 0, x_69); +lean_ctor_set(x_70, 1, x_22); +lean_ctor_set(x_70, 2, x_23); +lean_ctor_set(x_70, 3, x_24); +lean_ctor_set(x_70, 4, x_25); +lean_ctor_set(x_70, 5, x_26); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_19); +x_71 = l_Lean_Meta_isExprDefEq(x_19, x_20, x_70, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_71) == 0) +{ +lean_object* x_72; uint8_t x_73; +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +x_73 = lean_unbox(x_72); +lean_dec(x_72); +if (x_73 == 0) +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; +lean_dec(x_19); +lean_dec(x_5); +x_74 = lean_ctor_get(x_71, 1); +lean_inc(x_74); +lean_dec(x_71); +x_75 = lean_box(0); +x_76 = l_Lean_Meta_dsimpGoal___lambda__3(x_1, x_2, x_3, x_4, x_6, x_75, x_8, x_9, x_10, x_11, x_74); +return x_76; +} +else +{ +lean_object* x_77; lean_object* x_78; +lean_dec(x_4); +lean_dec(x_1); +x_77 = lean_ctor_get(x_71, 1); +lean_inc(x_77); +lean_dec(x_71); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_78 = l_Lean_Meta_mkEqRefl(x_19, x_8, x_9, x_10, x_11, x_77); +if (lean_obj_tag(x_78) == 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_78, 0); +lean_inc(x_79); +x_80 = lean_ctor_get(x_78, 1); +lean_inc(x_80); +lean_dec(x_78); +x_81 = l_Lean_MVarId_assign___at_Lean_Meta_getLevel___spec__1(x_6, x_79, x_8, x_9, x_10, x_11, x_80); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_82 = lean_ctor_get(x_81, 1); lean_inc(x_82); -x_83 = lean_ctor_get(x_75, 1); -lean_inc(x_83); -if (lean_is_exclusive(x_75)) { - lean_ctor_release(x_75, 0); - lean_ctor_release(x_75, 1); - x_84 = x_75; +if (lean_is_exclusive(x_81)) { + lean_ctor_release(x_81, 0); + lean_ctor_release(x_81, 1); + x_83 = x_81; } else { - lean_dec_ref(x_75); - x_84 = lean_box(0); + lean_dec_ref(x_81); + x_83 = lean_box(0); } -if (lean_is_scalar(x_84)) { - x_85 = lean_alloc_ctor(1, 2, 0); +x_84 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_84, 0, x_5); +lean_ctor_set(x_84, 1, x_2); +if (lean_is_scalar(x_83)) { + x_85 = lean_alloc_ctor(0, 2, 0); } else { - x_85 = x_84; + x_85 = x_83; } -lean_ctor_set(x_85, 0, x_82); -lean_ctor_set(x_85, 1, x_83); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_82); return x_85; } -} -} else { lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; -lean_dec(x_18); +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); lean_dec(x_2); -x_86 = lean_ctor_get(x_68, 0); +x_86 = lean_ctor_get(x_78, 0); lean_inc(x_86); -x_87 = lean_ctor_get(x_68, 1); +x_87 = lean_ctor_get(x_78, 1); lean_inc(x_87); -if (lean_is_exclusive(x_68)) { - lean_ctor_release(x_68, 0); - lean_ctor_release(x_68, 1); - x_88 = x_68; +if (lean_is_exclusive(x_78)) { + lean_ctor_release(x_78, 0); + lean_ctor_release(x_78, 1); + x_88 = x_78; } else { - lean_dec_ref(x_68); + lean_dec_ref(x_78); x_88 = lean_box(0); } if (lean_is_scalar(x_88)) { @@ -50013,126 +51780,141 @@ return x_89; } } } +else +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; +lean_dec(x_19); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_90 = lean_ctor_get(x_71, 0); +lean_inc(x_90); +x_91 = lean_ctor_get(x_71, 1); +lean_inc(x_91); +if (lean_is_exclusive(x_71)) { + lean_ctor_release(x_71, 0); + lean_ctor_release(x_71, 1); + x_92 = x_71; +} else { + lean_dec_ref(x_71); + x_92 = lean_box(0); +} +if (lean_is_scalar(x_92)) { + x_93 = lean_alloc_ctor(1, 2, 0); +} else { + x_93 = x_92; +} +lean_ctor_set(x_93, 0, x_90); +lean_ctor_set(x_93, 1, x_91); +return x_93; } } -static lean_object* _init_l_Lean_Meta_dsimpGoal___lambda__4___closed__1() { +} +} +} +static lean_object* _init_l_Lean_Meta_dsimpGoal___lambda__5___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Meta_dsimpGoal___lambda__1___boxed), 7, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_dsimpGoal___lambda__1___boxed), 8, 0); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal___lambda__4(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, lean_object* x_9, lean_object* x_10) { +LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal___lambda__5(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, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { -lean_object* x_11; -lean_dec(x_5); -x_11 = l_Lean_Meta_dsimpGoal___lambda__4___closed__1; +lean_object* x_12; +lean_dec(x_6); +x_12 = l_Lean_Meta_dsimpGoal___lambda__5___closed__1; if (x_1 == 0) { -lean_object* x_12; lean_object* x_13; +lean_object* x_13; lean_object* x_14; lean_dec(x_3); lean_dec(x_2); -x_12 = lean_box(0); -x_13 = lean_apply_7(x_11, x_4, x_12, x_6, x_7, x_8, x_9, x_10); -return x_13; +x_13 = lean_box(0); +x_14 = lean_apply_8(x_12, x_4, x_5, x_13, x_7, x_8, x_9, x_10, x_11); +return x_14; } else { -lean_object* x_14; +lean_object* x_15; lean_inc(x_4); -x_14 = l_Lean_MVarId_getType(x_4, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_14) == 0) +x_15 = l_Lean_MVarId_getType(x_4, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_15) == 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_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_15, 0); lean_inc(x_16); -lean_dec(x_14); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_15); -x_17 = l_Lean_Meta_dsimp(x_15, x_2, x_6, x_7, x_8, x_9, x_16); -if (lean_obj_tag(x_17) == 0) +lean_inc(x_16); +x_18 = l_Lean_Meta_dsimp(x_16, x_2, x_5, x_7, x_8, x_9, x_10, x_17); +if (lean_obj_tag(x_18) == 0) { -lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); -x_19 = lean_ctor_get(x_17, 1); +lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_19 = lean_ctor_get(x_18, 0); lean_inc(x_19); -lean_dec(x_17); -x_20 = l_Lean_Meta_Simp_DefaultMethods_discharge_x3f___lambda__1___closed__6; -x_21 = l_Lean_Expr_isConstOf(x_18, x_20); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +x_21 = !lean_is_exclusive(x_19); if (x_21 == 0) { -lean_object* x_22; lean_object* x_23; -x_22 = lean_box(0); -x_23 = l_Lean_Meta_dsimpGoal___lambda__3(x_15, x_18, x_11, x_3, x_4, x_22, x_6, x_7, x_8, x_9, x_19); -lean_dec(x_15); -return x_23; +lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_22 = lean_ctor_get(x_19, 0); +x_23 = lean_ctor_get(x_19, 1); +x_24 = l_Lean_Meta_Simp_DefaultMethods_discharge_x3f___lambda__1___closed__6; +x_25 = l_Lean_Expr_isConstOf(x_22, x_24); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; +lean_free_object(x_19); +x_26 = lean_box(0); +x_27 = l_Lean_Meta_dsimpGoal___lambda__4(x_12, x_23, x_16, x_22, x_3, x_4, x_26, x_7, x_8, x_9, x_10, x_20); +lean_dec(x_16); +return x_27; } else { -lean_object* x_24; lean_object* x_25; uint8_t x_26; -lean_dec(x_18); -lean_dec(x_15); -x_24 = l_Lean_Meta_simpTargetCore___closed__4; -x_25 = l_Lean_MVarId_assign___at_Lean_Meta_getLevel___spec__1(x_4, x_24, x_6, x_7, x_8, x_9, x_19); +lean_object* x_28; lean_object* x_29; uint8_t x_30; +lean_dec(x_22); +lean_dec(x_16); +x_28 = l_Lean_Meta_simpTargetCore___closed__3; +x_29 = l_Lean_MVarId_assign___at_Lean_Meta_getLevel___spec__1(x_4, x_28, x_7, x_8, x_9, x_10, x_20); +lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -lean_dec(x_6); -x_26 = !lean_is_exclusive(x_25); -if (x_26 == 0) -{ -lean_object* x_27; -x_27 = lean_ctor_get(x_25, 0); -lean_dec(x_27); -lean_ctor_set(x_25, 0, x_3); -return x_25; -} -else -{ -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(0, 2, 0); -lean_ctor_set(x_29, 0, x_3); -lean_ctor_set(x_29, 1, x_28); -return x_29; -} -} -} -else -{ -uint8_t x_30; -lean_dec(x_15); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_3); -x_30 = !lean_is_exclusive(x_17); +x_30 = !lean_is_exclusive(x_29); if (x_30 == 0) { -return x_17; +lean_object* x_31; +x_31 = lean_ctor_get(x_29, 0); +lean_dec(x_31); +lean_ctor_set(x_19, 0, x_3); +lean_ctor_set(x_29, 0, x_19); +return x_29; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_17, 0); -x_32 = lean_ctor_get(x_17, 1); +lean_object* x_32; lean_object* x_33; +x_32 = lean_ctor_get(x_29, 1); lean_inc(x_32); -lean_inc(x_31); -lean_dec(x_17); -x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_31); +lean_dec(x_29); +lean_ctor_set(x_19, 0, x_3); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_19); lean_ctor_set(x_33, 1, x_32); return x_33; } @@ -50140,148 +51922,212 @@ return x_33; } else { -uint8_t x_34; +lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_34 = lean_ctor_get(x_19, 0); +x_35 = lean_ctor_get(x_19, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_19); +x_36 = l_Lean_Meta_Simp_DefaultMethods_discharge_x3f___lambda__1___closed__6; +x_37 = l_Lean_Expr_isConstOf(x_34, x_36); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; +x_38 = lean_box(0); +x_39 = l_Lean_Meta_dsimpGoal___lambda__4(x_12, x_35, x_16, x_34, x_3, x_4, x_38, x_7, x_8, x_9, x_10, x_20); +lean_dec(x_16); +return x_39; +} +else +{ +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_dec(x_34); +lean_dec(x_16); +x_40 = l_Lean_Meta_simpTargetCore___closed__3; +x_41 = l_Lean_MVarId_assign___at_Lean_Meta_getLevel___spec__1(x_4, x_40, x_7, x_8, x_9, x_10, x_20); +lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -lean_dec(x_6); +x_42 = lean_ctor_get(x_41, 1); +lean_inc(x_42); +if (lean_is_exclusive(x_41)) { + lean_ctor_release(x_41, 0); + lean_ctor_release(x_41, 1); + x_43 = x_41; +} else { + lean_dec_ref(x_41); + x_43 = lean_box(0); +} +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_3); +lean_ctor_set(x_44, 1, x_35); +if (lean_is_scalar(x_43)) { + x_45 = lean_alloc_ctor(0, 2, 0); +} else { + x_45 = x_43; +} +lean_ctor_set(x_45, 0, x_44); +lean_ctor_set(x_45, 1, x_42); +return x_45; +} +} +} +else +{ +uint8_t x_46; +lean_dec(x_16); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +x_46 = !lean_is_exclusive(x_18); +if (x_46 == 0) +{ +return x_18; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_18, 0); +x_48 = lean_ctor_get(x_18, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_18); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +return x_49; +} +} +} +else +{ +uint8_t x_50; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_34 = !lean_is_exclusive(x_14); -if (x_34 == 0) +x_50 = !lean_is_exclusive(x_15); +if (x_50 == 0) { -return x_14; +return x_15; } else { -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_14, 0); -x_36 = lean_ctor_get(x_14, 1); -lean_inc(x_36); -lean_inc(x_35); -lean_dec(x_14); -x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_35); -lean_ctor_set(x_37, 1, x_36); -return x_37; +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_15, 0); +x_52 = lean_ctor_get(x_15, 1); +lean_inc(x_52); +lean_inc(x_51); +lean_dec(x_15); +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +return x_53; } } } } } -LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal___lambda__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t 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_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -lean_inc(x_6); lean_inc(x_1); -x_11 = l_Lean_MVarId_checkNotAssigned(x_1, x_2, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_11) == 0) +x_12 = l_Lean_MVarId_checkNotAssigned(x_1, x_2, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_12) == 0) { -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; size_t x_16; size_t x_17; lean_object* x_18; -x_12 = lean_ctor_get(x_11, 1); -lean_inc(x_12); -lean_dec(x_11); -x_13 = lean_box(0); -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_13); -lean_ctor_set(x_14, 1, x_1); -x_15 = lean_array_get_size(x_3); -x_16 = lean_usize_of_nat(x_15); -lean_dec(x_15); -x_17 = 0; +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; size_t x_18; size_t x_19; lean_object* x_20; +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_box(0); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_1); +lean_ctor_set(x_15, 1, x_3); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_16, 1, x_15); +x_17 = lean_array_get_size(x_4); +x_18 = lean_usize_of_nat(x_17); +lean_dec(x_17); +x_19 = 0; +lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_18 = l_Array_forInUnsafe_loop___at_Lean_Meta_dsimpGoal___spec__1(x_4, x_13, x_3, x_16, x_17, x_14, x_6, x_7, x_8, x_9, x_12); -lean_dec(x_3); -if (lean_obj_tag(x_18) == 0) -{ -lean_object* x_19; lean_object* x_20; -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); +lean_inc(x_5); +x_20 = l_Array_forInUnsafe_loop___at_Lean_Meta_dsimpGoal___spec__1(x_5, x_14, x_4, x_18, x_19, x_16, x_7, x_8, x_9, x_10, x_13); +lean_dec(x_4); if (lean_obj_tag(x_20) == 0) { -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_21 = lean_ctor_get(x_18, 1); +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_20, 0); lean_inc(x_21); -lean_dec(x_18); -x_22 = lean_ctor_get(x_19, 1); +x_22 = lean_ctor_get(x_21, 1); lean_inc(x_22); -lean_dec(x_19); -x_23 = lean_box(0); -x_24 = l_Lean_Meta_dsimpGoal___lambda__4(x_5, x_4, x_13, x_22, x_23, x_6, x_7, x_8, x_9, x_21); -return x_24; +x_23 = lean_ctor_get(x_21, 0); +lean_inc(x_23); +lean_dec(x_21); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_24 = lean_ctor_get(x_20, 1); +lean_inc(x_24); +lean_dec(x_20); +x_25 = lean_ctor_get(x_22, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_22, 1); +lean_inc(x_26); +lean_dec(x_22); +x_27 = lean_box(0); +x_28 = l_Lean_Meta_dsimpGoal___lambda__5(x_6, x_5, x_14, x_25, x_26, x_27, x_7, x_8, x_9, x_10, x_24); +return x_28; } else { -uint8_t x_25; -lean_dec(x_19); +uint8_t x_29; +lean_dec(x_22); +lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -x_25 = !lean_is_exclusive(x_18); -if (x_25 == 0) +lean_dec(x_5); +x_29 = !lean_is_exclusive(x_20); +if (x_29 == 0) { -lean_object* x_26; lean_object* x_27; -x_26 = lean_ctor_get(x_18, 0); -lean_dec(x_26); -x_27 = lean_ctor_get(x_20, 0); -lean_inc(x_27); -lean_dec(x_20); -lean_ctor_set(x_18, 0, x_27); -return x_18; -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_18, 1); -lean_inc(x_28); -lean_dec(x_18); -x_29 = lean_ctor_get(x_20, 0); -lean_inc(x_29); -lean_dec(x_20); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_28); -return x_30; -} -} -} -else -{ -uint8_t x_31; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -x_31 = !lean_is_exclusive(x_18); -if (x_31 == 0) -{ -return x_18; +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_20, 0); +lean_dec(x_30); +x_31 = lean_ctor_get(x_23, 0); +lean_inc(x_31); +lean_dec(x_23); +lean_ctor_set(x_20, 0, x_31); +return x_20; } else { lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_18, 0); -x_33 = lean_ctor_get(x_18, 1); -lean_inc(x_33); +x_32 = lean_ctor_get(x_20, 1); lean_inc(x_32); -lean_dec(x_18); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_32); -lean_ctor_set(x_34, 1, x_33); +lean_dec(x_20); +x_33 = lean_ctor_get(x_23, 0); +lean_inc(x_33); +lean_dec(x_23); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_32); return x_34; } } @@ -50289,26 +52135,24 @@ return x_34; else { uint8_t x_35; +lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_35 = !lean_is_exclusive(x_11); +lean_dec(x_5); +x_35 = !lean_is_exclusive(x_20); if (x_35 == 0) { -return x_11; +return x_20; } else { lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_11, 0); -x_37 = lean_ctor_get(x_11, 1); +x_36 = lean_ctor_get(x_20, 0); +x_37 = lean_ctor_get(x_20, 1); lean_inc(x_37); lean_inc(x_36); -lean_dec(x_11); +lean_dec(x_20); x_38 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_38, 0, x_36); lean_ctor_set(x_38, 1, x_37); @@ -50316,33 +52160,65 @@ return x_38; } } } -} -LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal(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) { -_start: +else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_10 = l_Lean_Meta_Simp_main___closed__2; -x_11 = lean_box(x_3); -lean_inc(x_1); -x_12 = lean_alloc_closure((void*)(l_Lean_Meta_dsimpGoal___lambda__5___boxed), 10, 5); -lean_closure_set(x_12, 0, x_1); -lean_closure_set(x_12, 1, x_10); -lean_closure_set(x_12, 2, x_4); -lean_closure_set(x_12, 3, x_2); -lean_closure_set(x_12, 4, x_11); -x_13 = l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(x_1, x_12, x_5, x_6, x_7, x_8, x_9); -return x_13; -} -} -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_dsimpGoal___spec__1___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: +uint8_t x_39; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_39 = !lean_is_exclusive(x_12); +if (x_39 == 0) { -lean_object* x_12; -x_12 = l_Array_forInUnsafe_loop___at_Lean_Meta_dsimpGoal___spec__1___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_6); -lean_dec(x_2); return x_12; } +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_12, 0); +x_41 = lean_ctor_get(x_12, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_12); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal(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) { +_start: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = l_Lean_Meta_Simp_main___closed__1; +x_12 = lean_box(x_3); +lean_inc(x_1); +x_13 = lean_alloc_closure((void*)(l_Lean_Meta_dsimpGoal___lambda__6___boxed), 11, 6); +lean_closure_set(x_13, 0, x_1); +lean_closure_set(x_13, 1, x_11); +lean_closure_set(x_13, 2, x_5); +lean_closure_set(x_13, 3, x_4); +lean_closure_set(x_13, 4, x_2); +lean_closure_set(x_13, 5, x_12); +x_14 = l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(x_1, x_13, x_6, x_7, x_8, x_9, x_10); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_dsimpGoal___spec__1___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: +{ +lean_object* x_13; +x_13 = l_Array_forInUnsafe_loop___at_Lean_Meta_dsimpGoal___spec__1___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); +lean_dec(x_7); +lean_dec(x_2); +return x_13; +} } LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_dsimpGoal___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: @@ -50357,27 +52233,26 @@ lean_dec(x_3); return x_14; } } -LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal___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_EXPORT lean_object* l_Lean_Meta_dsimpGoal___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) { _start: { -lean_object* x_8; -x_8 = l_Lean_Meta_dsimpGoal___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_object* x_9; +x_9 = l_Lean_Meta_dsimpGoal___lambda__1(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); -return x_8; +return x_9; } } -LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal___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* x_10) { +LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal___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) { _start: { -lean_object* x_11; -x_11 = l_Lean_Meta_dsimpGoal___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_5); -lean_dec(x_1); -return x_11; +lean_object* x_10; +x_10 = l_Lean_Meta_dsimpGoal___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_4); +return x_10; } } LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal___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) { @@ -50385,38 +52260,48 @@ _start: { lean_object* x_12; x_12 = l_Lean_Meta_dsimpGoal___lambda__3(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_1); -return x_12; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal___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) { -_start: -{ -uint8_t x_11; lean_object* x_12; -x_11 = lean_unbox(x_1); -lean_dec(x_1); -x_12 = l_Lean_Meta_dsimpGoal___lambda__4(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_12; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal___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, lean_object* x_10) { -_start: -{ -uint8_t x_11; lean_object* x_12; -x_11 = lean_unbox(x_5); -lean_dec(x_5); -x_12 = l_Lean_Meta_dsimpGoal___lambda__5(x_1, x_2, x_3, x_4, x_11, x_6, x_7, x_8, x_9, x_10); -return x_12; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal___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: -{ -uint8_t x_10; lean_object* x_11; -x_10 = lean_unbox(x_3); +lean_dec(x_6); lean_dec(x_3); -x_11 = l_Lean_Meta_dsimpGoal(x_1, x_2, x_10, x_4, x_5, x_6, x_7, x_8, x_9); -return x_11; +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal___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_Meta_dsimpGoal___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_3); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal___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, lean_object* x_10, lean_object* x_11) { +_start: +{ +uint8_t x_12; lean_object* x_13; +x_12 = lean_unbox(x_1); +lean_dec(x_1); +x_13 = l_Lean_Meta_dsimpGoal___lambda__5(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal___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) { +_start: +{ +uint8_t x_12; lean_object* x_13; +x_12 = lean_unbox(x_6); +lean_dec(x_6); +x_13 = l_Lean_Meta_dsimpGoal___lambda__6(x_1, x_2, x_3, x_4, x_5, x_12, x_7, x_8, x_9, x_10, x_11); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal___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: +{ +uint8_t x_11; lean_object* x_12; +x_11 = lean_unbox(x_3); +lean_dec(x_3); +x_12 = l_Lean_Meta_dsimpGoal(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_12; } } lean_object* initialize_Init(uint8_t builtin, lean_object*); @@ -50719,8 +52604,6 @@ l_Lean_Meta_Simp_simp_simpProj___closed__2 = _init_l_Lean_Meta_Simp_simp_simpPro lean_mark_persistent(l_Lean_Meta_Simp_simp_simpProj___closed__2); l_Lean_Meta_Simp_main___closed__1 = _init_l_Lean_Meta_Simp_main___closed__1(); lean_mark_persistent(l_Lean_Meta_Simp_main___closed__1); -l_Lean_Meta_Simp_main___closed__2 = _init_l_Lean_Meta_Simp_main___closed__2(); -lean_mark_persistent(l_Lean_Meta_Simp_main___closed__2); l_Lean_Meta_Simp_dsimpMain___closed__1 = _init_l_Lean_Meta_Simp_dsimpMain___closed__1(); lean_mark_persistent(l_Lean_Meta_Simp_dsimpMain___closed__1); l_Lean_Meta_Simp_dsimpMain___closed__2 = _init_l_Lean_Meta_Simp_dsimpMain___closed__2(); @@ -50777,14 +52660,10 @@ l_Lean_Meta_simpTargetCore___closed__2 = _init_l_Lean_Meta_simpTargetCore___clos lean_mark_persistent(l_Lean_Meta_simpTargetCore___closed__2); l_Lean_Meta_simpTargetCore___closed__3 = _init_l_Lean_Meta_simpTargetCore___closed__3(); lean_mark_persistent(l_Lean_Meta_simpTargetCore___closed__3); -l_Lean_Meta_simpTargetCore___closed__4 = _init_l_Lean_Meta_simpTargetCore___closed__4(); -lean_mark_persistent(l_Lean_Meta_simpTargetCore___closed__4); -l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___lambda__2___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___lambda__2___closed__1(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___lambda__2___closed__1); -l_Lean_Meta_simpGoal___lambda__3___closed__1 = _init_l_Lean_Meta_simpGoal___lambda__3___closed__1(); -lean_mark_persistent(l_Lean_Meta_simpGoal___lambda__3___closed__1); -l_Lean_Meta_dsimpGoal___lambda__4___closed__1 = _init_l_Lean_Meta_dsimpGoal___lambda__4___closed__1(); -lean_mark_persistent(l_Lean_Meta_dsimpGoal___lambda__4___closed__1); +l_Lean_Meta_applySimpResultToProp___closed__1 = _init_l_Lean_Meta_applySimpResultToProp___closed__1(); +lean_mark_persistent(l_Lean_Meta_applySimpResultToProp___closed__1); +l_Lean_Meta_dsimpGoal___lambda__5___closed__1 = _init_l_Lean_Meta_dsimpGoal___lambda__5___closed__1(); +lean_mark_persistent(l_Lean_Meta_dsimpGoal___lambda__5___closed__1); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Meta/Tactic/Simp/Rewrite.c b/stage0/stdlib/Lean/Meta/Tactic/Simp/Rewrite.c index 7ce6ba26b4..43cd4e759a 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Simp/Rewrite.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Simp/Rewrite.c @@ -14,7 +14,7 @@ extern "C" { #endif static lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3___closed__6; -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_isLevelMVarAssignable___at___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___spec__4___closed__4; static lean_object* l_Lean_Meta_Simp_rewriteCtorEq_x3f___lambda__1___closed__2; static lean_object* l_Lean_Meta_Simp_rewrite_x3f___closed__5; @@ -49,7 +49,6 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Simp_rewrite_x3f___lambda__1___boxed(lean_o lean_object* lean_array_fswap(lean_object*, lean_object*, lean_object*); lean_object* l_Array_extract___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_panic___at___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___spec__5___closed__2; -lean_object* l_Lean_Meta_SimpTheorem_getName(lean_object*); static lean_object* l_Lean_Meta_Simp_rewrite_x3f___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_Simp_tryTheoremWithExtraArgs_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -197,7 +196,7 @@ static lean_object* l_Lean_Meta_Simp_rewriteUsingDecide_x3f___closed__12; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_rewritePre___spec__1___closed__1; LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at_Lean_Meta_Simp_synthesizeArgs___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___closed__6; -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_rewrite_x3f___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_andThen(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_rewriteCtorEq_x3f___closed__1; @@ -269,6 +268,7 @@ lean_object* lean_mk_array(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MVarId_isAssignable___at___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simpMatchCore_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3___closed__2; +lean_object* l_Lean_Meta_Simp_recordSimpTheorem(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_instMonadReaderT___rarg(lean_object*); lean_object* l_Lean_Meta_Simp_Step_updateResult(lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_rewrite_x3f___spec__3___closed__5; @@ -5930,21 +5930,45 @@ lean_ctor_set(x_10, 1, x_8); return x_10; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___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) { _start: { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_11 = lean_unsigned_to_nat(0u); -x_12 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_12, 0, x_1); -lean_ctor_set(x_12, 1, x_2); -lean_ctor_set(x_12, 2, x_11); -x_13 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_13, 0, x_12); -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_13); -lean_ctor_set(x_14, 1, x_10); -return x_14; +lean_object* x_12; uint8_t x_13; +x_12 = l_Lean_Meta_Simp_recordSimpTheorem(x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_14 = lean_ctor_get(x_12, 0); +lean_dec(x_14); +x_15 = lean_unsigned_to_nat(0u); +x_16 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_16, 0, x_2); +lean_ctor_set(x_16, 1, x_3); +lean_ctor_set(x_16, 2, x_15); +x_17 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_12, 0, x_17); +return x_12; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_18 = lean_ctor_get(x_12, 1); +lean_inc(x_18); +lean_dec(x_12); +x_19 = lean_unsigned_to_nat(0u); +x_20 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_20, 0, x_2); +lean_ctor_set(x_20, 1, x_3); +lean_ctor_set(x_20, 2, x_19); +x_21 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_21, 0, x_20); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_18); +return x_22; +} } } static lean_object* _init_l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3___closed__1() { @@ -6060,13 +6084,13 @@ if (x_17 == 0) lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); x_18 = lean_ctor_get(x_15, 1); lean_inc(x_18); lean_dec(x_15); x_19 = lean_box(0); -x_20 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__2(x_1, x_2, x_19, x_7, x_8, x_9, x_10, x_11, x_12, x_18); -lean_dec(x_10); +x_20 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__2(x_1, x_2, x_3, x_19, x_7, x_8, x_9, x_10, x_11, x_12, x_18); +lean_dec(x_11); +lean_dec(x_9); lean_dec(x_7); return x_20; } @@ -6076,14 +6100,15 @@ lean_object* x_21; uint8_t x_22; uint8_t x_23; lean_object* x_24; lean_object* x x_21 = lean_ctor_get(x_15, 1); lean_inc(x_21); lean_dec(x_15); -x_22 = lean_ctor_get_uint8(x_3, sizeof(void*)*5 + 1); +x_22 = lean_ctor_get_uint8(x_4, sizeof(void*)*5 + 1); x_23 = 1; -x_24 = l_Lean_Name_toString(x_4, x_23); +lean_inc(x_1); +x_24 = l_Lean_Name_toString(x_1, x_23); x_25 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_25, 0, x_24); -x_26 = lean_ctor_get(x_3, 3); +x_26 = lean_ctor_get(x_4, 3); lean_inc(x_26); -lean_dec(x_3); +lean_dec(x_4); x_27 = l_Nat_repr(x_26); x_28 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_28, 0, x_27); @@ -6100,9 +6125,9 @@ lean_ctor_set(x_33, 0, x_25); lean_ctor_set(x_33, 1, x_32); x_34 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_34, 0, x_5); -lean_inc(x_1); +lean_inc(x_2); x_35 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_35, 0, x_1); +lean_ctor_set(x_35, 0, x_2); if (x_22 == 0) { 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; @@ -6138,8 +6163,9 @@ lean_inc(x_48); x_49 = lean_ctor_get(x_47, 1); lean_inc(x_49); lean_dec(x_47); -x_50 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__2(x_1, x_2, x_48, x_7, x_8, x_9, x_10, x_11, x_12, x_49); -lean_dec(x_10); +x_50 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__2(x_1, x_2, x_3, x_48, x_7, x_8, x_9, x_10, x_11, x_12, x_49); +lean_dec(x_11); +lean_dec(x_9); lean_dec(x_7); lean_dec(x_48); return x_50; @@ -6180,8 +6206,9 @@ lean_inc(x_64); x_65 = lean_ctor_get(x_63, 1); lean_inc(x_65); lean_dec(x_63); -x_66 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__2(x_1, x_2, x_64, x_7, x_8, x_9, x_10, x_11, x_12, x_65); -lean_dec(x_10); +x_66 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__2(x_1, x_2, x_3, x_64, x_7, x_8, x_9, x_10, x_11, x_12, x_65); +lean_dec(x_11); +lean_dec(x_9); lean_dec(x_7); lean_dec(x_64); return x_66; @@ -6219,15 +6246,14 @@ _start: { uint8_t x_14; lean_dec(x_6); -x_14 = lean_ctor_get_uint8(x_3, sizeof(void*)*5 + 1); +x_14 = lean_ctor_get_uint8(x_4, sizeof(void*)*5 + 1); if (x_14 == 0) { lean_object* x_15; lean_object* x_16; x_15 = lean_box(0); x_16 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3(x_1, x_2, x_3, x_4, x_5, x_15, x_7, x_8, x_9, x_10, x_11, x_12, x_13); lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_9); +lean_dec(x_10); lean_dec(x_8); return x_16; } @@ -6239,8 +6265,8 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_5); -lean_inc(x_1); -x_17 = l_Lean_Meta_ACLt_lt(x_1, x_5, x_9, x_10, x_11, x_12, x_13); +lean_inc(x_2); +x_17 = l_Lean_Meta_ACLt_lt(x_2, x_5, x_9, x_10, x_11, x_12, x_13); if (lean_obj_tag(x_17) == 0) { lean_object* x_18; uint8_t x_19; @@ -6251,7 +6277,7 @@ lean_dec(x_18); if (x_19 == 0) { 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; -lean_dec(x_2); +lean_dec(x_3); x_20 = lean_ctor_get(x_17, 1); lean_inc(x_20); lean_dec(x_17); @@ -6270,7 +6296,7 @@ if (x_26 == 0) lean_object* x_27; lean_object* x_28; lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); +lean_dec(x_2); lean_dec(x_1); x_27 = lean_box(0); x_28 = lean_apply_8(x_25, x_27, x_7, x_8, x_9, x_10, x_11, x_12, x_24); @@ -6280,12 +6306,12 @@ else { uint8_t 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; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; x_29 = 1; -x_30 = l_Lean_Name_toString(x_4, x_29); +x_30 = l_Lean_Name_toString(x_1, x_29); x_31 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_31, 0, x_30); -x_32 = lean_ctor_get(x_3, 3); +x_32 = lean_ctor_get(x_4, 3); lean_inc(x_32); -lean_dec(x_3); +lean_dec(x_4); x_33 = l_Nat_repr(x_32); x_34 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_34, 0, x_33); @@ -6303,7 +6329,7 @@ lean_ctor_set(x_39, 1, x_38); x_40 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_40, 0, x_5); x_41 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_41, 0, x_1); +lean_ctor_set(x_41, 0, x_2); x_42 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3___closed__11; x_43 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_43, 0, x_39); @@ -6350,8 +6376,7 @@ lean_dec(x_17); x_59 = lean_box(0); x_60 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3(x_1, x_2, x_3, x_4, x_5, x_59, x_7, x_8, x_9, x_10, x_11, x_12, x_58); lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_9); +lean_dec(x_10); lean_dec(x_8); return x_60; } @@ -6411,7 +6436,7 @@ if (x_18 == 0) lean_object* x_19; lean_object* x_20; lean_free_object(x_13); x_19 = lean_box(0); -x_20 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4(x_17, x_5, x_2, x_3, x_4, x_19, x_6, x_7, x_8, x_9, x_10, x_11, x_16); +x_20 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4(x_2, x_17, x_5, x_3, x_4, x_19, x_6, x_7, x_8, x_9, x_10, x_11, x_16); return x_20; } else @@ -6448,7 +6473,7 @@ if (x_25 == 0) { lean_object* x_26; lean_object* x_27; x_26 = lean_box(0); -x_27 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4(x_24, x_5, x_2, x_3, x_4, x_26, x_6, x_7, x_8, x_9, x_10, x_11, x_23); +x_27 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4(x_2, x_24, x_5, x_3, x_4, x_26, x_6, x_7, x_8, x_9, x_10, x_11, x_23); return x_27; } else @@ -6506,7 +6531,7 @@ _start: { uint8_t x_15; lean_dec(x_7); -x_15 = lean_ctor_get_uint8(x_2, sizeof(void*)*5 + 2); +x_15 = lean_ctor_get_uint8(x_3, sizeof(void*)*5 + 2); if (x_15 == 0) { lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; @@ -6581,14 +6606,14 @@ return x_35; else { uint8_t x_36; uint8_t 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; -x_36 = lean_ctor_get_uint8(x_2, sizeof(void*)*5 + 1); +x_36 = lean_ctor_get_uint8(x_3, sizeof(void*)*5 + 1); x_37 = 1; -x_38 = l_Lean_Name_toString(x_3, x_37); +x_38 = l_Lean_Name_toString(x_2, x_37); x_39 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_39, 0, x_38); -x_40 = lean_ctor_get(x_2, 3); +x_40 = lean_ctor_get(x_3, 3); lean_inc(x_40); -lean_dec(x_2); +lean_dec(x_3); x_41 = l_Nat_repr(x_40); x_42 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_42, 0, x_41); @@ -6813,7 +6838,8 @@ x_29 = lean_ctor_get(x_23, 1); lean_inc(x_29); lean_dec(x_23); x_30 = lean_ctor_get_uint8(x_6, sizeof(void*)*5 + 1); -x_31 = l_Lean_Meta_SimpTheorem_getName(x_6); +x_31 = lean_ctor_get(x_6, 4); +lean_inc(x_31); x_32 = 1; x_33 = l_Lean_Name_toString(x_31, x_32); x_34 = lean_alloc_ctor(2, 1, 0); @@ -6934,7 +6960,8 @@ lean_dec(x_1); x_78 = lean_ctor_get(x_16, 1); lean_inc(x_78); lean_dec(x_16); -x_79 = l_Lean_Meta_SimpTheorem_getName(x_6); +x_79 = lean_ctor_get(x_6, 4); +lean_inc(x_79); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -6995,7 +7022,7 @@ x_89 = lean_ctor_get(x_80, 1); lean_inc(x_89); lean_dec(x_80); x_90 = lean_box(0); -x_91 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__7(x_5, x_6, x_79, x_8, x_4, x_2, x_90, x_9, x_10, x_11, x_12, x_13, x_14, x_89); +x_91 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__7(x_5, x_79, x_6, x_8, x_4, x_2, x_90, x_9, x_10, x_11, x_12, x_13, x_14, x_89); return x_91; } } @@ -7102,19 +7129,19 @@ lean_dec(x_1); return x_9; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___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* x_10) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___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* x_10, lean_object* x_11) { _start: { -lean_object* x_11; -x_11 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_object* x_12; +x_12 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__2(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_11; +return x_12; } } LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___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* x_12, lean_object* x_13) { @@ -7123,8 +7150,7 @@ _start: lean_object* x_14; x_14 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3(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); lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_9); +lean_dec(x_10); lean_dec(x_8); lean_dec(x_6); return x_14; @@ -8644,27 +8670,13 @@ return x_14; LEAN_EXPORT uint8_t l_Lean_Meta_Simp_rewrite_x3f_inErasedSet(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_3; +lean_object* x_3; uint8_t x_4; x_3 = lean_ctor_get(x_2, 4); lean_inc(x_3); lean_dec(x_2); -if (lean_obj_tag(x_3) == 0) -{ -uint8_t x_4; -lean_dec(x_1); -x_4 = 0; +x_4 = l_Std_PersistentHashMap_contains___at_Lean_NameSSet_contains___spec__3(x_1, x_3); return x_4; } -else -{ -lean_object* x_5; uint8_t x_6; -x_5 = lean_ctor_get(x_3, 0); -lean_inc(x_5); -lean_dec(x_3); -x_6 = l_Std_PersistentHashMap_contains___at_Lean_NameSSet_contains___spec__3(x_1, x_5); -return x_6; -} -} } LEAN_EXPORT lean_object* l_Lean_Meta_Simp_rewrite_x3f_inErasedSet___boxed(lean_object* x_1, lean_object* x_2) { _start: @@ -12677,7 +12689,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simpArith_x3f___lambda__1(lean_object* _start: { lean_object* x_10; lean_object* x_11; -x_10 = lean_ctor_get(x_3, 3); +x_10 = lean_ctor_get(x_3, 4); lean_inc(x_10); lean_dec(x_3); x_11 = l_Lean_Meta_Linear_simp_x3f(x_1, x_10, x_5, x_6, x_7, x_8, x_9); @@ -12916,7 +12928,7 @@ lean_inc(x_17); x_18 = l_Lean_Meta_isRflTheorem(x_17, x_12, x_13, x_14); if (lean_obj_tag(x_18) == 0) { -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; uint8_t x_27; lean_object* x_28; uint8_t 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; uint8_t x_36; +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; uint8_t x_26; lean_object* x_27; uint8_t 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; uint8_t x_35; x_19 = lean_ctor_get(x_18, 0); lean_inc(x_19); x_20 = lean_ctor_get(x_18, 1); @@ -12925,48 +12937,46 @@ lean_dec(x_18); x_21 = lean_box(0); lean_inc(x_17); x_22 = l_Lean_Expr_const___override(x_17, x_21); -x_23 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_23, 0, x_17); -x_24 = l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__2___closed__1; -x_25 = lean_unsigned_to_nat(1000u); -x_26 = 1; -x_27 = 0; -x_28 = lean_alloc_ctor(0, 5, 3); -lean_ctor_set(x_28, 0, x_24); -lean_ctor_set(x_28, 1, x_24); -lean_ctor_set(x_28, 2, x_22); -lean_ctor_set(x_28, 3, x_25); -lean_ctor_set(x_28, 4, x_23); -lean_ctor_set_uint8(x_28, sizeof(void*)*5, x_26); -lean_ctor_set_uint8(x_28, sizeof(void*)*5 + 1, x_27); -x_29 = lean_unbox(x_19); +x_23 = l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__2___closed__1; +x_24 = lean_unsigned_to_nat(1000u); +x_25 = 1; +x_26 = 0; +x_27 = lean_alloc_ctor(0, 5, 3); +lean_ctor_set(x_27, 0, x_23); +lean_ctor_set(x_27, 1, x_23); +lean_ctor_set(x_27, 2, x_22); +lean_ctor_set(x_27, 3, x_24); +lean_ctor_set(x_27, 4, x_17); +lean_ctor_set_uint8(x_27, sizeof(void*)*5, x_25); +lean_ctor_set_uint8(x_27, sizeof(void*)*5 + 1, x_26); +x_28 = lean_unbox(x_19); lean_dec(x_19); -lean_ctor_set_uint8(x_28, sizeof(void*)*5 + 2, x_29); -x_30 = lean_ctor_get(x_10, 0); +lean_ctor_set_uint8(x_27, sizeof(void*)*5 + 2, x_28); +x_29 = lean_ctor_get(x_10, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_10, 1); lean_inc(x_30); -x_31 = lean_ctor_get(x_10, 1); +x_31 = lean_ctor_get(x_10, 2); lean_inc(x_31); -x_32 = lean_ctor_get(x_10, 2); +x_32 = lean_ctor_get(x_10, 3); lean_inc(x_32); -x_33 = lean_ctor_get(x_10, 3); +x_33 = lean_ctor_get(x_10, 4); lean_inc(x_33); -x_34 = lean_ctor_get(x_10, 4); +x_34 = lean_ctor_get(x_10, 5); lean_inc(x_34); -x_35 = lean_ctor_get(x_10, 5); -lean_inc(x_35); -x_36 = !lean_is_exclusive(x_30); -if (x_36 == 0) +x_35 = !lean_is_exclusive(x_29); +if (x_35 == 0) { -uint8_t x_37; lean_object* x_38; lean_object* x_39; -x_37 = 2; -lean_ctor_set_uint8(x_30, 5, x_37); -x_38 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_38, 0, x_30); -lean_ctor_set(x_38, 1, x_31); -lean_ctor_set(x_38, 2, x_32); -lean_ctor_set(x_38, 3, x_33); -lean_ctor_set(x_38, 4, x_34); -lean_ctor_set(x_38, 5, x_35); +uint8_t x_36; lean_object* x_37; lean_object* x_38; +x_36 = 2; +lean_ctor_set_uint8(x_29, 5, x_36); +x_37 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_37, 0, x_29); +lean_ctor_set(x_37, 1, x_30); +lean_ctor_set(x_37, 2, x_31); +lean_ctor_set(x_37, 3, x_32); +lean_ctor_set(x_37, 4, x_33); +lean_ctor_set(x_37, 5, x_34); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); @@ -12974,25 +12984,25 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_2); lean_inc(x_1); -x_39 = l_Lean_Meta_Simp_tryTheorem_x3f(x_1, x_28, x_2, x_8, x_9, x_38, x_11, x_12, x_13, x_20); +x_38 = l_Lean_Meta_Simp_tryTheorem_x3f(x_1, x_27, x_2, x_8, x_9, x_37, x_11, x_12, x_13, x_20); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); if (lean_obj_tag(x_39) == 0) { -lean_object* x_40; -x_40 = lean_ctor_get(x_39, 0); +lean_object* x_40; size_t x_41; size_t x_42; +x_40 = lean_ctor_get(x_38, 1); lean_inc(x_40); -if (lean_obj_tag(x_40) == 0) -{ -lean_object* x_41; size_t x_42; size_t x_43; -x_41 = lean_ctor_get(x_39, 1); -lean_inc(x_41); -lean_dec(x_39); -x_42 = 1; -x_43 = lean_usize_add(x_6, x_42); +lean_dec(x_38); +x_41 = 1; +x_42 = lean_usize_add(x_6, x_41); lean_inc(x_3); { -size_t _tmp_5 = x_43; +size_t _tmp_5 = x_42; lean_object* _tmp_6 = x_3; -lean_object* _tmp_13 = x_41; +lean_object* _tmp_13 = x_40; x_6 = _tmp_5; x_7 = _tmp_6; x_14 = _tmp_13; @@ -13001,7 +13011,7 @@ goto _start; } else { -uint8_t x_45; +uint8_t x_44; lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -13011,88 +13021,88 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_45 = !lean_is_exclusive(x_39); -if (x_45 == 0) +x_44 = !lean_is_exclusive(x_38); +if (x_44 == 0) { -lean_object* x_46; uint8_t x_47; -x_46 = lean_ctor_get(x_39, 0); -lean_dec(x_46); -x_47 = !lean_is_exclusive(x_40); -if (x_47 == 0) +lean_object* x_45; uint8_t x_46; +x_45 = lean_ctor_get(x_38, 0); +lean_dec(x_45); +x_46 = !lean_is_exclusive(x_39); +if (x_46 == 0) { -lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_48 = lean_ctor_get(x_40, 0); +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_47 = lean_ctor_get(x_39, 0); +x_48 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_39, 0, x_48); x_49 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_40, 0, x_49); -x_50 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_50, 0, x_40); -x_51 = lean_box(0); -x_52 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_52, 0, x_50); -lean_ctor_set(x_52, 1, x_51); -lean_ctor_set(x_39, 0, x_52); -return x_39; +lean_ctor_set(x_49, 0, x_39); +x_50 = lean_box(0); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +lean_ctor_set(x_38, 0, x_51); +return x_38; } else { -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_53 = lean_ctor_get(x_40, 0); -lean_inc(x_53); -lean_dec(x_40); +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_52 = lean_ctor_get(x_39, 0); +lean_inc(x_52); +lean_dec(x_39); +x_53 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_53, 0, x_52); x_54 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_54, 0, x_53); x_55 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_55, 0, x_54); -x_56 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_56, 0, x_55); -x_57 = lean_box(0); -x_58 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_58, 0, x_56); -lean_ctor_set(x_58, 1, x_57); -lean_ctor_set(x_39, 0, x_58); -return x_39; +x_56 = lean_box(0); +x_57 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_56); +lean_ctor_set(x_38, 0, x_57); +return x_38; } } else { -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; -x_59 = lean_ctor_get(x_39, 1); +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_58 = lean_ctor_get(x_38, 1); +lean_inc(x_58); +lean_dec(x_38); +x_59 = lean_ctor_get(x_39, 0); lean_inc(x_59); -lean_dec(x_39); -x_60 = lean_ctor_get(x_40, 0); -lean_inc(x_60); -if (lean_is_exclusive(x_40)) { - lean_ctor_release(x_40, 0); - x_61 = x_40; +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + x_60 = x_39; } else { - lean_dec_ref(x_40); - x_61 = lean_box(0); + lean_dec_ref(x_39); + x_60 = lean_box(0); } -x_62 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_62, 0, x_60); -if (lean_is_scalar(x_61)) { - x_63 = lean_alloc_ctor(1, 1, 0); +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_59); +if (lean_is_scalar(x_60)) { + x_62 = lean_alloc_ctor(1, 1, 0); } else { - x_63 = x_61; + x_62 = x_60; } +lean_ctor_set(x_62, 0, x_61); +x_63 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_63, 0, x_62); -x_64 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_64, 0, x_63); -x_65 = lean_box(0); +x_64 = lean_box(0); +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_63); +lean_ctor_set(x_65, 1, x_64); x_66 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_66, 0, x_64); -lean_ctor_set(x_66, 1, x_65); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_59); -return x_67; +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_58); +return x_66; } } } else { -uint8_t x_68; +uint8_t x_67; lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -13102,66 +13112,66 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_68 = !lean_is_exclusive(x_39); -if (x_68 == 0) +x_67 = !lean_is_exclusive(x_38); +if (x_67 == 0) { -return x_39; +return x_38; } else { -lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_69 = lean_ctor_get(x_39, 0); -x_70 = lean_ctor_get(x_39, 1); -lean_inc(x_70); +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_38, 0); +x_69 = lean_ctor_get(x_38, 1); lean_inc(x_69); -lean_dec(x_39); -x_71 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_71, 0, x_69); -lean_ctor_set(x_71, 1, x_70); -return x_71; +lean_inc(x_68); +lean_dec(x_38); +x_70 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_70, 0, x_68); +lean_ctor_set(x_70, 1, x_69); +return x_70; } } } else { -uint8_t x_72; uint8_t x_73; uint8_t x_74; uint8_t x_75; uint8_t x_76; uint8_t x_77; uint8_t x_78; uint8_t x_79; uint8_t x_80; uint8_t x_81; uint8_t x_82; uint8_t x_83; uint8_t x_84; uint8_t x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_72 = lean_ctor_get_uint8(x_30, 0); -x_73 = lean_ctor_get_uint8(x_30, 1); -x_74 = lean_ctor_get_uint8(x_30, 2); -x_75 = lean_ctor_get_uint8(x_30, 3); -x_76 = lean_ctor_get_uint8(x_30, 4); -x_77 = lean_ctor_get_uint8(x_30, 6); -x_78 = lean_ctor_get_uint8(x_30, 7); -x_79 = lean_ctor_get_uint8(x_30, 8); -x_80 = lean_ctor_get_uint8(x_30, 9); -x_81 = lean_ctor_get_uint8(x_30, 10); -x_82 = lean_ctor_get_uint8(x_30, 11); -x_83 = lean_ctor_get_uint8(x_30, 12); -x_84 = lean_ctor_get_uint8(x_30, 13); -lean_dec(x_30); -x_85 = 2; -x_86 = lean_alloc_ctor(0, 0, 14); -lean_ctor_set_uint8(x_86, 0, x_72); -lean_ctor_set_uint8(x_86, 1, x_73); -lean_ctor_set_uint8(x_86, 2, x_74); -lean_ctor_set_uint8(x_86, 3, x_75); -lean_ctor_set_uint8(x_86, 4, x_76); -lean_ctor_set_uint8(x_86, 5, x_85); -lean_ctor_set_uint8(x_86, 6, x_77); -lean_ctor_set_uint8(x_86, 7, x_78); -lean_ctor_set_uint8(x_86, 8, x_79); -lean_ctor_set_uint8(x_86, 9, x_80); -lean_ctor_set_uint8(x_86, 10, x_81); -lean_ctor_set_uint8(x_86, 11, x_82); -lean_ctor_set_uint8(x_86, 12, x_83); -lean_ctor_set_uint8(x_86, 13, x_84); -x_87 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_87, 0, x_86); -lean_ctor_set(x_87, 1, x_31); -lean_ctor_set(x_87, 2, x_32); -lean_ctor_set(x_87, 3, x_33); -lean_ctor_set(x_87, 4, x_34); -lean_ctor_set(x_87, 5, x_35); +uint8_t x_71; uint8_t x_72; uint8_t x_73; uint8_t x_74; uint8_t x_75; uint8_t x_76; uint8_t x_77; uint8_t x_78; uint8_t x_79; uint8_t x_80; uint8_t x_81; uint8_t x_82; uint8_t x_83; uint8_t x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_71 = lean_ctor_get_uint8(x_29, 0); +x_72 = lean_ctor_get_uint8(x_29, 1); +x_73 = lean_ctor_get_uint8(x_29, 2); +x_74 = lean_ctor_get_uint8(x_29, 3); +x_75 = lean_ctor_get_uint8(x_29, 4); +x_76 = lean_ctor_get_uint8(x_29, 6); +x_77 = lean_ctor_get_uint8(x_29, 7); +x_78 = lean_ctor_get_uint8(x_29, 8); +x_79 = lean_ctor_get_uint8(x_29, 9); +x_80 = lean_ctor_get_uint8(x_29, 10); +x_81 = lean_ctor_get_uint8(x_29, 11); +x_82 = lean_ctor_get_uint8(x_29, 12); +x_83 = lean_ctor_get_uint8(x_29, 13); +lean_dec(x_29); +x_84 = 2; +x_85 = lean_alloc_ctor(0, 0, 14); +lean_ctor_set_uint8(x_85, 0, x_71); +lean_ctor_set_uint8(x_85, 1, x_72); +lean_ctor_set_uint8(x_85, 2, x_73); +lean_ctor_set_uint8(x_85, 3, x_74); +lean_ctor_set_uint8(x_85, 4, x_75); +lean_ctor_set_uint8(x_85, 5, x_84); +lean_ctor_set_uint8(x_85, 6, x_76); +lean_ctor_set_uint8(x_85, 7, x_77); +lean_ctor_set_uint8(x_85, 8, x_78); +lean_ctor_set_uint8(x_85, 9, x_79); +lean_ctor_set_uint8(x_85, 10, x_80); +lean_ctor_set_uint8(x_85, 11, x_81); +lean_ctor_set_uint8(x_85, 12, x_82); +lean_ctor_set_uint8(x_85, 13, x_83); +x_86 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_30); +lean_ctor_set(x_86, 2, x_31); +lean_ctor_set(x_86, 3, x_32); +lean_ctor_set(x_86, 4, x_33); +lean_ctor_set(x_86, 5, x_34); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); @@ -13169,25 +13179,25 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_2); lean_inc(x_1); -x_88 = l_Lean_Meta_Simp_tryTheorem_x3f(x_1, x_28, x_2, x_8, x_9, x_87, x_11, x_12, x_13, x_20); +x_87 = l_Lean_Meta_Simp_tryTheorem_x3f(x_1, x_27, x_2, x_8, x_9, x_86, x_11, x_12, x_13, x_20); +if (lean_obj_tag(x_87) == 0) +{ +lean_object* x_88; +x_88 = lean_ctor_get(x_87, 0); +lean_inc(x_88); if (lean_obj_tag(x_88) == 0) { -lean_object* x_89; -x_89 = lean_ctor_get(x_88, 0); +lean_object* x_89; size_t x_90; size_t x_91; +x_89 = lean_ctor_get(x_87, 1); lean_inc(x_89); -if (lean_obj_tag(x_89) == 0) -{ -lean_object* x_90; size_t x_91; size_t x_92; -x_90 = lean_ctor_get(x_88, 1); -lean_inc(x_90); -lean_dec(x_88); -x_91 = 1; -x_92 = lean_usize_add(x_6, x_91); +lean_dec(x_87); +x_90 = 1; +x_91 = lean_usize_add(x_6, x_90); lean_inc(x_3); { -size_t _tmp_5 = x_92; +size_t _tmp_5 = x_91; lean_object* _tmp_6 = x_3; -lean_object* _tmp_13 = x_90; +lean_object* _tmp_13 = x_89; x_6 = _tmp_5; x_7 = _tmp_6; x_14 = _tmp_13; @@ -13196,7 +13206,7 @@ goto _start; } else { -lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; +lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -13206,52 +13216,52 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_94 = lean_ctor_get(x_88, 1); -lean_inc(x_94); +x_93 = lean_ctor_get(x_87, 1); +lean_inc(x_93); +if (lean_is_exclusive(x_87)) { + lean_ctor_release(x_87, 0); + lean_ctor_release(x_87, 1); + x_94 = x_87; +} else { + lean_dec_ref(x_87); + x_94 = lean_box(0); +} +x_95 = lean_ctor_get(x_88, 0); +lean_inc(x_95); if (lean_is_exclusive(x_88)) { lean_ctor_release(x_88, 0); - lean_ctor_release(x_88, 1); - x_95 = x_88; + x_96 = x_88; } else { lean_dec_ref(x_88); - x_95 = lean_box(0); + x_96 = lean_box(0); } -x_96 = lean_ctor_get(x_89, 0); -lean_inc(x_96); -if (lean_is_exclusive(x_89)) { - lean_ctor_release(x_89, 0); - x_97 = x_89; +x_97 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_97, 0, x_95); +if (lean_is_scalar(x_96)) { + x_98 = lean_alloc_ctor(1, 1, 0); } else { - lean_dec_ref(x_89); - x_97 = lean_box(0); -} -x_98 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_98, 0, x_96); -if (lean_is_scalar(x_97)) { - x_99 = lean_alloc_ctor(1, 1, 0); -} else { - x_99 = x_97; + x_98 = x_96; } +lean_ctor_set(x_98, 0, x_97); +x_99 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_99, 0, x_98); -x_100 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_100, 0, x_99); -x_101 = lean_box(0); -x_102 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_102, 0, x_100); -lean_ctor_set(x_102, 1, x_101); -if (lean_is_scalar(x_95)) { - x_103 = lean_alloc_ctor(0, 2, 0); +x_100 = lean_box(0); +x_101 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_101, 0, x_99); +lean_ctor_set(x_101, 1, x_100); +if (lean_is_scalar(x_94)) { + x_102 = lean_alloc_ctor(0, 2, 0); } else { - x_103 = x_95; + x_102 = x_94; } -lean_ctor_set(x_103, 0, x_102); -lean_ctor_set(x_103, 1, x_94); -return x_103; +lean_ctor_set(x_102, 0, x_101); +lean_ctor_set(x_102, 1, x_93); +return x_102; } } else { -lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; +lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -13261,32 +13271,32 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_104 = lean_ctor_get(x_88, 0); +x_103 = lean_ctor_get(x_87, 0); +lean_inc(x_103); +x_104 = lean_ctor_get(x_87, 1); lean_inc(x_104); -x_105 = lean_ctor_get(x_88, 1); -lean_inc(x_105); -if (lean_is_exclusive(x_88)) { - lean_ctor_release(x_88, 0); - lean_ctor_release(x_88, 1); - x_106 = x_88; +if (lean_is_exclusive(x_87)) { + lean_ctor_release(x_87, 0); + lean_ctor_release(x_87, 1); + x_105 = x_87; } else { - lean_dec_ref(x_88); - x_106 = lean_box(0); + lean_dec_ref(x_87); + x_105 = lean_box(0); } -if (lean_is_scalar(x_106)) { - x_107 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_105)) { + x_106 = lean_alloc_ctor(1, 2, 0); } else { - x_107 = x_106; + x_106 = x_105; } -lean_ctor_set(x_107, 0, x_104); -lean_ctor_set(x_107, 1, x_105); -return x_107; +lean_ctor_set(x_106, 0, x_103); +lean_ctor_set(x_106, 1, x_104); +return x_106; } } } else { -uint8_t x_108; +uint8_t x_107; lean_dec(x_17); lean_dec(x_13); lean_dec(x_12); @@ -13297,23 +13307,23 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_108 = !lean_is_exclusive(x_18); -if (x_108 == 0) +x_107 = !lean_is_exclusive(x_18); +if (x_107 == 0) { return x_18; } else { -lean_object* x_109; lean_object* x_110; lean_object* x_111; -x_109 = lean_ctor_get(x_18, 0); -x_110 = lean_ctor_get(x_18, 1); -lean_inc(x_110); +lean_object* x_108; lean_object* x_109; lean_object* x_110; +x_108 = lean_ctor_get(x_18, 0); +x_109 = lean_ctor_get(x_18, 1); lean_inc(x_109); +lean_inc(x_108); lean_dec(x_18); -x_111 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_111, 0, x_109); -lean_ctor_set(x_111, 1, x_110); -return x_111; +x_110 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_110, 0, x_108); +lean_ctor_set(x_110, 1, x_109); +return x_110; } } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Simp/SimpAll.c b/stage0/stdlib/Lean/Meta/Tactic/Simp/SimpAll.c index 6f9dfd518b..04fe33b4c4 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Simp/SimpAll.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Simp/SimpAll.c @@ -13,72 +13,77 @@ #ifdef __cplusplus extern "C" { #endif -lean_object* l_Lean_Meta_simpTarget(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_simpTarget(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_add(size_t, size_t); lean_object* l_Lean_stringToMessageData(lean_object*); +LEAN_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_userName(lean_object*); +static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__6; uint8_t lean_usize_dec_eq(size_t, size_t); +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5(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_array_uget(lean_object*, size_t); -static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__7; +static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__4; +LEAN_EXPORT lean_object* l_Lean_mkFreshId___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__9; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___closed__1; static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_SimpAll_main___spec__2___closed__1; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_SimpAll_main___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__19; static lean_object* l_Lean_Meta_SimpAll_instInhabitedEntry___closed__2; lean_object* lean_st_ref_get(lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); -lean_object* l_Lean_Meta_simpStep(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_simpStep(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MVarId_getNondepPropHyps(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__11; +static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__22; lean_object* l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_initEntries___closed__1; +static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__21; +LEAN_EXPORT lean_object* l_panic___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_initEntries(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___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*); static lean_object* l_Lean_Meta_SimpAll_instInhabitedEntry___closed__1; -static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__22; uint8_t lean_usize_dec_lt(size_t, size_t); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_SimpAll_main___spec__3(size_t, size_t, lean_object*); +static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__8; static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_SimpAll_main___spec__2___closed__2; +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___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_nat_add(lean_object*, lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_initEntries___spec__3___closed__2; -static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__2; -LEAN_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__1; +static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__17; +static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__1; static lean_object* l_Lean_Meta_SimpAll_State_entries___default___closed__1; -static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__4; lean_object* l_StateRefT_x27_lift___rarg___boxed(lean_object*, lean_object*); -static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__8; extern lean_object* l_Lean_inheritedTraceOptions; -static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__17; lean_object* lean_array_fget(lean_object*, lean_object*); -lean_object* l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); -static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__6; +static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__12; +LEAN_EXPORT lean_object* l_Lean_Meta_SimpAll_State_usedSimps___default; lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_getSimpTheorems___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_mkFreshId___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__2___rarg___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MVarId_tryClearMany(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_SimpAll_main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_mkFreshId___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__2___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Name_num___override(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Array_filterMapM___at_Lean_Meta_SimpAll_main___spec__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_initEntries___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); -static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__3; -static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__18; -static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__15; LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___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*); +static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__2; lean_object* lean_st_mk_ref(lean_object*, lean_object*); static lean_object* l_Lean_isTracingEnabledFor___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__1___closed__1; -static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_initEntries___spec__3___closed__1; +static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__11; LEAN_EXPORT lean_object* l_Lean_MVarId_withContext___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_initEntries___spec__1(lean_object*); -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_initEntries___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*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_initEntries___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -87,53 +92,52 @@ lean_object* l_Lean_LocalDecl_toExpr(lean_object*); uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*); lean_object* l_Lean_Expr_bvar___override(lean_object*); size_t lean_usize_of_nat(lean_object*); +extern lean_object* l_Lean_NameSet_empty; lean_object* l_Lean_LocalDecl_fvarId(lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withMVarContextImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MVarId_withContext___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_initEntries___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__9; -LEAN_EXPORT lean_object* l_panic___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__3(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_getSimpTheorems(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_type(lean_object*); LEAN_EXPORT uint8_t l_Lean_Meta_SimpAll_State_modified___default; +static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__3; lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_initEntries___spec__3(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_SimpTheoremsArray_eraseTheorem(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_SimpAll_instInhabitedEntry; -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___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_EXPORT lean_object* l_Lean_mkFreshId___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); -static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__13; uint8_t l_Lean_Expr_hasMVar(lean_object*); -static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__23; uint8_t l___private_Lean_Util_Trace_0__Lean_checkTraceOption(lean_object*, lean_object*, lean_object*); -static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__14; -LEAN_EXPORT lean_object* l_Lean_Meta_simpAll(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__5; +LEAN_EXPORT lean_object* l_Lean_Meta_simpAll(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_contains___at___private_Lean_Class_0__Lean_checkOutParam___spec__1(lean_object*, lean_object*); lean_object* l_Lean_MVarId_assertHypotheses(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_instantiateMVarsCore(lean_object*, lean_object*); +static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__16; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__20; +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___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_st_ref_set(lean_object*, lean_object*, 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_Lean_FVarId_getDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__16; lean_object* lean_panic_fn(lean_object*, lean_object*); +static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__7; lean_object* l_Lean_Meta_getPropHyps(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_initEntries___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_SimpAll_State_entries___default; -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__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*); -static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__12; lean_object* l_Lean_Meta_mkExpectedTypeHint(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_filterMapM___at_Lean_Meta_SimpAll_main___spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_SimpAll_main___spec__2(lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Meta_SimpTheoremsArray_addTheorem(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__23; +static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__13; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_SimpAll_main___spec__3___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Meta_SimpTheoremsArray_isErased(lean_object*, lean_object*); -static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__19; -static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__21; -static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__10; +static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__10; +static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__20; +static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__15; +static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__18; +static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__14; +static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__5; LEAN_EXPORT lean_object* l_Lean_Meta_simpAll___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); static lean_object* _init_l_Lean_Meta_SimpAll_instInhabitedEntry___closed__1() { @@ -193,6 +197,14 @@ x_1 = l_Lean_Meta_SimpAll_State_entries___default___closed__1; return x_1; } } +static lean_object* _init_l_Lean_Meta_SimpAll_State_usedSimps___default() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_NameSet_empty; +return x_1; +} +} LEAN_EXPORT lean_object* l_Lean_MVarId_withContext___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_initEntries___spec__1___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: { @@ -365,24 +377,6 @@ return x_38; } } } -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_initEntries___spec__3___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("h", 1); -return x_1; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_initEntries___spec__3___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_initEntries___spec__3___closed__1; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; -} -} LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_initEntries___spec__3(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { @@ -421,302 +415,310 @@ lean_inc(x_5); x_26 = l_Lean_Meta_SimpTheoremsArray_isErased(x_5, x_25); if (x_26 == 0) { -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_27; lean_object* x_28; lean_object* x_29; x_27 = l_Lean_LocalDecl_fvarId(x_23); x_28 = l_Lean_LocalDecl_toExpr(x_23); -x_29 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_initEntries___spec__3___closed__2; -x_30 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_29, x_9, x_10, x_24); -x_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_30, 1); -lean_inc(x_32); -lean_dec(x_30); -lean_inc(x_31); -x_33 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_33, 0, x_31); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_28); -x_34 = l_Lean_Meta_SimpTheoremsArray_addTheorem(x_5, x_28, x_33, x_7, x_8, x_9, x_10, x_32); -if (lean_obj_tag(x_34) == 0) +lean_inc(x_27); +x_29 = l_Lean_Meta_SimpTheoremsArray_addTheorem(x_5, x_27, x_28, x_7, x_8, x_9, x_10, x_24); +if (lean_obj_tag(x_29) == 0) { -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; uint8_t x_43; +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; uint8_t x_38; +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_st_ref_get(x_10, x_31); +x_33 = lean_ctor_get(x_32, 1); +lean_inc(x_33); +lean_dec(x_32); +x_34 = lean_st_ref_take(x_6, x_33); x_35 = lean_ctor_get(x_34, 0); lean_inc(x_35); -x_36 = lean_ctor_get(x_34, 1); +x_36 = lean_ctor_get(x_35, 2); lean_inc(x_36); +x_37 = lean_ctor_get(x_34, 1); +lean_inc(x_37); lean_dec(x_34); -x_37 = lean_st_ref_get(x_10, x_36); -x_38 = lean_ctor_get(x_37, 1); -lean_inc(x_38); -lean_dec(x_37); -x_39 = lean_st_ref_take(x_6, x_38); -x_40 = lean_ctor_get(x_39, 0); -lean_inc(x_40); -x_41 = lean_ctor_get(x_40, 2); -lean_inc(x_41); -x_42 = lean_ctor_get(x_39, 1); -lean_inc(x_42); +x_38 = !lean_is_exclusive(x_35); +if (x_38 == 0) +{ +lean_object* x_39; uint8_t x_40; +x_39 = lean_ctor_get(x_35, 2); lean_dec(x_39); -x_43 = !lean_is_exclusive(x_40); -if (x_43 == 0) +x_40 = !lean_is_exclusive(x_36); +if (x_40 == 0) { -lean_object* x_44; uint8_t x_45; -x_44 = lean_ctor_get(x_40, 2); -lean_dec(x_44); -x_45 = !lean_is_exclusive(x_41); -if (x_45 == 0) -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; -x_46 = lean_ctor_get(x_41, 1); -lean_dec(x_46); -lean_inc(x_35); -lean_ctor_set(x_41, 1, x_35); -x_47 = lean_st_ref_set(x_6, x_40, x_42); -x_48 = lean_ctor_get(x_47, 1); -lean_inc(x_48); -lean_dec(x_47); -x_49 = l_Array_contains___at___private_Lean_Class_0__Lean_checkOutParam___spec__1(x_1, x_14); -lean_dec(x_14); -if (x_49 == 0) -{ -lean_object* x_50; -lean_dec(x_31); -lean_dec(x_28); -lean_dec(x_27); -lean_dec(x_25); -lean_dec(x_23); -x_50 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_50, 0, x_35); -x_15 = x_50; -x_16 = x_48; -goto block_21; -} -else -{ -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; uint8_t x_61; -x_51 = l_Lean_LocalDecl_type(x_23); -lean_dec(x_23); -x_52 = l_Lean_instantiateMVars___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_initEntries___spec__2(x_51, x_6, x_7, x_8, x_9, x_10, x_48); -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_alloc_ctor(0, 5, 0); -lean_ctor_set(x_55, 0, x_27); -lean_ctor_set(x_55, 1, x_25); -lean_ctor_set(x_55, 2, x_31); -lean_ctor_set(x_55, 3, x_53); -lean_ctor_set(x_55, 4, x_28); -x_56 = lean_st_ref_get(x_10, x_54); -x_57 = lean_ctor_get(x_56, 1); -lean_inc(x_57); -lean_dec(x_56); -x_58 = lean_st_ref_take(x_6, x_57); -x_59 = lean_ctor_get(x_58, 0); -lean_inc(x_59); -x_60 = lean_ctor_get(x_58, 1); -lean_inc(x_60); -lean_dec(x_58); -x_61 = !lean_is_exclusive(x_59); -if (x_61 == 0) -{ -lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_62 = lean_ctor_get(x_59, 1); -x_63 = lean_array_push(x_62, x_55); -lean_ctor_set(x_59, 1, x_63); -x_64 = lean_st_ref_set(x_6, x_59, x_60); -x_65 = lean_ctor_get(x_64, 1); -lean_inc(x_65); -lean_dec(x_64); -x_66 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_66, 0, x_35); -x_15 = x_66; -x_16 = x_65; -goto block_21; -} -else -{ -uint8_t 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; -x_67 = lean_ctor_get_uint8(x_59, sizeof(void*)*3); -x_68 = lean_ctor_get(x_59, 0); -x_69 = lean_ctor_get(x_59, 1); -x_70 = lean_ctor_get(x_59, 2); -lean_inc(x_70); -lean_inc(x_69); -lean_inc(x_68); -lean_dec(x_59); -x_71 = lean_array_push(x_69, x_55); -x_72 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_72, 0, x_68); -lean_ctor_set(x_72, 1, x_71); -lean_ctor_set(x_72, 2, x_70); -lean_ctor_set_uint8(x_72, sizeof(void*)*3, x_67); -x_73 = lean_st_ref_set(x_6, x_72, x_60); -x_74 = lean_ctor_get(x_73, 1); -lean_inc(x_74); -lean_dec(x_73); -x_75 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_75, 0, x_35); -x_15 = x_75; -x_16 = x_74; -goto block_21; -} -} -} -else -{ -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; uint8_t x_83; -x_76 = lean_ctor_get(x_41, 0); -x_77 = lean_ctor_get(x_41, 2); -x_78 = lean_ctor_get(x_41, 3); -x_79 = lean_ctor_get(x_41, 4); -lean_inc(x_79); -lean_inc(x_78); -lean_inc(x_77); -lean_inc(x_76); +lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_41 = lean_ctor_get(x_36, 1); lean_dec(x_41); -lean_inc(x_35); -x_80 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_80, 0, x_76); -lean_ctor_set(x_80, 1, x_35); -lean_ctor_set(x_80, 2, x_77); -lean_ctor_set(x_80, 3, x_78); -lean_ctor_set(x_80, 4, x_79); -lean_ctor_set(x_40, 2, x_80); -x_81 = lean_st_ref_set(x_6, x_40, x_42); -x_82 = lean_ctor_get(x_81, 1); -lean_inc(x_82); -lean_dec(x_81); -x_83 = l_Array_contains___at___private_Lean_Class_0__Lean_checkOutParam___spec__1(x_1, x_14); +lean_inc(x_30); +lean_ctor_set(x_36, 1, x_30); +x_42 = lean_st_ref_set(x_6, x_35, x_37); +x_43 = lean_ctor_get(x_42, 1); +lean_inc(x_43); +lean_dec(x_42); +x_44 = l_Array_contains___at___private_Lean_Class_0__Lean_checkOutParam___spec__1(x_1, x_14); lean_dec(x_14); -if (x_83 == 0) +if (x_44 == 0) { -lean_object* x_84; -lean_dec(x_31); +lean_object* x_45; lean_dec(x_28); lean_dec(x_27); lean_dec(x_25); lean_dec(x_23); -x_84 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_84, 0, x_35); -x_15 = x_84; -x_16 = x_82; +x_45 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_45, 0, x_30); +x_15 = x_45; +x_16 = x_43; goto block_21; } 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; lean_object* x_92; lean_object* x_93; lean_object* x_94; uint8_t x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_85 = l_Lean_LocalDecl_type(x_23); +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; uint8_t x_56; +x_46 = l_Lean_LocalDecl_type(x_23); lean_dec(x_23); -x_86 = l_Lean_instantiateMVars___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_initEntries___spec__2(x_85, x_6, x_7, x_8, x_9, x_10, x_82); -x_87 = lean_ctor_get(x_86, 0); -lean_inc(x_87); -x_88 = lean_ctor_get(x_86, 1); -lean_inc(x_88); -lean_dec(x_86); -x_89 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_89, 0, x_27); -lean_ctor_set(x_89, 1, x_25); -lean_ctor_set(x_89, 2, x_31); -lean_ctor_set(x_89, 3, x_87); -lean_ctor_set(x_89, 4, x_28); -x_90 = lean_st_ref_get(x_10, x_88); -x_91 = lean_ctor_get(x_90, 1); -lean_inc(x_91); -lean_dec(x_90); -x_92 = lean_st_ref_take(x_6, x_91); -x_93 = lean_ctor_get(x_92, 0); -lean_inc(x_93); -x_94 = lean_ctor_get(x_92, 1); -lean_inc(x_94); -lean_dec(x_92); -x_95 = lean_ctor_get_uint8(x_93, sizeof(void*)*3); -x_96 = lean_ctor_get(x_93, 0); -lean_inc(x_96); -x_97 = lean_ctor_get(x_93, 1); -lean_inc(x_97); -x_98 = lean_ctor_get(x_93, 2); -lean_inc(x_98); -if (lean_is_exclusive(x_93)) { - lean_ctor_release(x_93, 0); - lean_ctor_release(x_93, 1); - lean_ctor_release(x_93, 2); - x_99 = x_93; -} else { - lean_dec_ref(x_93); - x_99 = lean_box(0); +x_47 = l_Lean_instantiateMVars___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_initEntries___spec__2(x_46, x_6, x_7, x_8, x_9, x_10, x_43); +x_48 = lean_ctor_get(x_47, 0); +lean_inc(x_48); +x_49 = lean_ctor_get(x_47, 1); +lean_inc(x_49); +lean_dec(x_47); +lean_inc(x_27); +x_50 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_50, 0, x_27); +lean_ctor_set(x_50, 1, x_25); +lean_ctor_set(x_50, 2, x_27); +lean_ctor_set(x_50, 3, x_48); +lean_ctor_set(x_50, 4, x_28); +x_51 = lean_st_ref_get(x_10, x_49); +x_52 = lean_ctor_get(x_51, 1); +lean_inc(x_52); +lean_dec(x_51); +x_53 = lean_st_ref_take(x_6, x_52); +x_54 = lean_ctor_get(x_53, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_53, 1); +lean_inc(x_55); +lean_dec(x_53); +x_56 = !lean_is_exclusive(x_54); +if (x_56 == 0) +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_57 = lean_ctor_get(x_54, 1); +x_58 = lean_array_push(x_57, x_50); +lean_ctor_set(x_54, 1, x_58); +x_59 = lean_st_ref_set(x_6, x_54, x_55); +x_60 = lean_ctor_get(x_59, 1); +lean_inc(x_60); +lean_dec(x_59); +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_30); +x_15 = x_61; +x_16 = x_60; +goto block_21; } -x_100 = lean_array_push(x_97, x_89); -if (lean_is_scalar(x_99)) { - x_101 = lean_alloc_ctor(0, 3, 1); -} else { - x_101 = x_99; -} -lean_ctor_set(x_101, 0, x_96); -lean_ctor_set(x_101, 1, x_100); -lean_ctor_set(x_101, 2, x_98); -lean_ctor_set_uint8(x_101, sizeof(void*)*3, x_95); -x_102 = lean_st_ref_set(x_6, x_101, x_94); -x_103 = lean_ctor_get(x_102, 1); -lean_inc(x_103); -lean_dec(x_102); -x_104 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_104, 0, x_35); -x_15 = x_104; -x_16 = x_103; +else +{ +uint8_t 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_62 = lean_ctor_get_uint8(x_54, sizeof(void*)*4); +x_63 = lean_ctor_get(x_54, 0); +x_64 = lean_ctor_get(x_54, 1); +x_65 = lean_ctor_get(x_54, 2); +x_66 = lean_ctor_get(x_54, 3); +lean_inc(x_66); +lean_inc(x_65); +lean_inc(x_64); +lean_inc(x_63); +lean_dec(x_54); +x_67 = lean_array_push(x_64, x_50); +x_68 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_68, 0, x_63); +lean_ctor_set(x_68, 1, x_67); +lean_ctor_set(x_68, 2, x_65); +lean_ctor_set(x_68, 3, x_66); +lean_ctor_set_uint8(x_68, sizeof(void*)*4, x_62); +x_69 = lean_st_ref_set(x_6, x_68, x_55); +x_70 = lean_ctor_get(x_69, 1); +lean_inc(x_70); +lean_dec(x_69); +x_71 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_71, 0, x_30); +x_15 = x_71; +x_16 = x_70; goto block_21; } } } else { -uint8_t x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; uint8_t x_117; -x_105 = lean_ctor_get_uint8(x_40, sizeof(void*)*3); -x_106 = lean_ctor_get(x_40, 0); -x_107 = lean_ctor_get(x_40, 1); -lean_inc(x_107); -lean_inc(x_106); -lean_dec(x_40); -x_108 = lean_ctor_get(x_41, 0); -lean_inc(x_108); -x_109 = lean_ctor_get(x_41, 2); -lean_inc(x_109); -x_110 = lean_ctor_get(x_41, 3); -lean_inc(x_110); -x_111 = lean_ctor_get(x_41, 4); -lean_inc(x_111); -if (lean_is_exclusive(x_41)) { - lean_ctor_release(x_41, 0); - lean_ctor_release(x_41, 1); - lean_ctor_release(x_41, 2); - lean_ctor_release(x_41, 3); - lean_ctor_release(x_41, 4); - x_112 = x_41; +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; uint8_t x_80; +x_72 = lean_ctor_get(x_36, 0); +x_73 = lean_ctor_get(x_36, 2); +x_74 = lean_ctor_get(x_36, 3); +x_75 = lean_ctor_get(x_36, 4); +x_76 = lean_ctor_get(x_36, 5); +lean_inc(x_76); +lean_inc(x_75); +lean_inc(x_74); +lean_inc(x_73); +lean_inc(x_72); +lean_dec(x_36); +lean_inc(x_30); +x_77 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_77, 0, x_72); +lean_ctor_set(x_77, 1, x_30); +lean_ctor_set(x_77, 2, x_73); +lean_ctor_set(x_77, 3, x_74); +lean_ctor_set(x_77, 4, x_75); +lean_ctor_set(x_77, 5, x_76); +lean_ctor_set(x_35, 2, x_77); +x_78 = lean_st_ref_set(x_6, x_35, x_37); +x_79 = lean_ctor_get(x_78, 1); +lean_inc(x_79); +lean_dec(x_78); +x_80 = l_Array_contains___at___private_Lean_Class_0__Lean_checkOutParam___spec__1(x_1, x_14); +lean_dec(x_14); +if (x_80 == 0) +{ +lean_object* x_81; +lean_dec(x_28); +lean_dec(x_27); +lean_dec(x_25); +lean_dec(x_23); +x_81 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_81, 0, x_30); +x_15 = x_81; +x_16 = x_79; +goto block_21; +} +else +{ +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; uint8_t x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; +x_82 = l_Lean_LocalDecl_type(x_23); +lean_dec(x_23); +x_83 = l_Lean_instantiateMVars___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_initEntries___spec__2(x_82, x_6, x_7, x_8, x_9, x_10, x_79); +x_84 = lean_ctor_get(x_83, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_83, 1); +lean_inc(x_85); +lean_dec(x_83); +lean_inc(x_27); +x_86 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_86, 0, x_27); +lean_ctor_set(x_86, 1, x_25); +lean_ctor_set(x_86, 2, x_27); +lean_ctor_set(x_86, 3, x_84); +lean_ctor_set(x_86, 4, x_28); +x_87 = lean_st_ref_get(x_10, x_85); +x_88 = lean_ctor_get(x_87, 1); +lean_inc(x_88); +lean_dec(x_87); +x_89 = lean_st_ref_take(x_6, x_88); +x_90 = lean_ctor_get(x_89, 0); +lean_inc(x_90); +x_91 = lean_ctor_get(x_89, 1); +lean_inc(x_91); +lean_dec(x_89); +x_92 = lean_ctor_get_uint8(x_90, sizeof(void*)*4); +x_93 = lean_ctor_get(x_90, 0); +lean_inc(x_93); +x_94 = lean_ctor_get(x_90, 1); +lean_inc(x_94); +x_95 = lean_ctor_get(x_90, 2); +lean_inc(x_95); +x_96 = lean_ctor_get(x_90, 3); +lean_inc(x_96); +if (lean_is_exclusive(x_90)) { + lean_ctor_release(x_90, 0); + lean_ctor_release(x_90, 1); + lean_ctor_release(x_90, 2); + lean_ctor_release(x_90, 3); + x_97 = x_90; } else { - lean_dec_ref(x_41); + lean_dec_ref(x_90); + x_97 = lean_box(0); +} +x_98 = lean_array_push(x_94, x_86); +if (lean_is_scalar(x_97)) { + x_99 = lean_alloc_ctor(0, 4, 1); +} else { + x_99 = x_97; +} +lean_ctor_set(x_99, 0, x_93); +lean_ctor_set(x_99, 1, x_98); +lean_ctor_set(x_99, 2, x_95); +lean_ctor_set(x_99, 3, x_96); +lean_ctor_set_uint8(x_99, sizeof(void*)*4, x_92); +x_100 = lean_st_ref_set(x_6, x_99, x_91); +x_101 = lean_ctor_get(x_100, 1); +lean_inc(x_101); +lean_dec(x_100); +x_102 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_102, 0, x_30); +x_15 = x_102; +x_16 = x_101; +goto block_21; +} +} +} +else +{ +uint8_t x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; uint8_t x_117; +x_103 = lean_ctor_get_uint8(x_35, sizeof(void*)*4); +x_104 = lean_ctor_get(x_35, 0); +x_105 = lean_ctor_get(x_35, 1); +x_106 = lean_ctor_get(x_35, 3); +lean_inc(x_106); +lean_inc(x_105); +lean_inc(x_104); +lean_dec(x_35); +x_107 = lean_ctor_get(x_36, 0); +lean_inc(x_107); +x_108 = lean_ctor_get(x_36, 2); +lean_inc(x_108); +x_109 = lean_ctor_get(x_36, 3); +lean_inc(x_109); +x_110 = lean_ctor_get(x_36, 4); +lean_inc(x_110); +x_111 = lean_ctor_get(x_36, 5); +lean_inc(x_111); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + lean_ctor_release(x_36, 2); + lean_ctor_release(x_36, 3); + lean_ctor_release(x_36, 4); + lean_ctor_release(x_36, 5); + x_112 = x_36; +} else { + lean_dec_ref(x_36); x_112 = lean_box(0); } -lean_inc(x_35); +lean_inc(x_30); if (lean_is_scalar(x_112)) { - x_113 = lean_alloc_ctor(0, 5, 0); + x_113 = lean_alloc_ctor(0, 6, 0); } else { x_113 = x_112; } -lean_ctor_set(x_113, 0, x_108); -lean_ctor_set(x_113, 1, x_35); -lean_ctor_set(x_113, 2, x_109); -lean_ctor_set(x_113, 3, x_110); -lean_ctor_set(x_113, 4, x_111); -x_114 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_114, 0, x_106); -lean_ctor_set(x_114, 1, x_107); +lean_ctor_set(x_113, 0, x_107); +lean_ctor_set(x_113, 1, x_30); +lean_ctor_set(x_113, 2, x_108); +lean_ctor_set(x_113, 3, x_109); +lean_ctor_set(x_113, 4, x_110); +lean_ctor_set(x_113, 5, x_111); +x_114 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_114, 0, x_104); +lean_ctor_set(x_114, 1, x_105); lean_ctor_set(x_114, 2, x_113); -lean_ctor_set_uint8(x_114, sizeof(void*)*3, x_105); -x_115 = lean_st_ref_set(x_6, x_114, x_42); +lean_ctor_set(x_114, 3, x_106); +lean_ctor_set_uint8(x_114, sizeof(void*)*4, x_103); +x_115 = lean_st_ref_set(x_6, x_114, x_37); x_116 = lean_ctor_get(x_115, 1); lean_inc(x_116); lean_dec(x_115); @@ -725,20 +727,19 @@ lean_dec(x_14); if (x_117 == 0) { lean_object* x_118; -lean_dec(x_31); lean_dec(x_28); lean_dec(x_27); lean_dec(x_25); lean_dec(x_23); x_118 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_118, 0, x_35); +lean_ctor_set(x_118, 0, x_30); x_15 = x_118; x_16 = x_116; goto block_21; } else { -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; uint8_t 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_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; uint8_t 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; x_119 = l_Lean_LocalDecl_type(x_23); lean_dec(x_23); x_120 = l_Lean_instantiateMVars___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_initEntries___spec__2(x_119, x_6, x_7, x_8, x_9, x_10, x_116); @@ -747,10 +748,11 @@ lean_inc(x_121); x_122 = lean_ctor_get(x_120, 1); lean_inc(x_122); lean_dec(x_120); +lean_inc(x_27); x_123 = lean_alloc_ctor(0, 5, 0); lean_ctor_set(x_123, 0, x_27); lean_ctor_set(x_123, 1, x_25); -lean_ctor_set(x_123, 2, x_31); +lean_ctor_set(x_123, 2, x_27); lean_ctor_set(x_123, 3, x_121); lean_ctor_set(x_123, 4, x_28); x_124 = lean_st_ref_get(x_10, x_122); @@ -763,48 +765,51 @@ lean_inc(x_127); x_128 = lean_ctor_get(x_126, 1); lean_inc(x_128); lean_dec(x_126); -x_129 = lean_ctor_get_uint8(x_127, sizeof(void*)*3); +x_129 = lean_ctor_get_uint8(x_127, sizeof(void*)*4); x_130 = lean_ctor_get(x_127, 0); lean_inc(x_130); x_131 = lean_ctor_get(x_127, 1); lean_inc(x_131); x_132 = lean_ctor_get(x_127, 2); lean_inc(x_132); +x_133 = lean_ctor_get(x_127, 3); +lean_inc(x_133); if (lean_is_exclusive(x_127)) { lean_ctor_release(x_127, 0); lean_ctor_release(x_127, 1); lean_ctor_release(x_127, 2); - x_133 = x_127; + lean_ctor_release(x_127, 3); + x_134 = x_127; } else { lean_dec_ref(x_127); - x_133 = lean_box(0); + x_134 = lean_box(0); } -x_134 = lean_array_push(x_131, x_123); -if (lean_is_scalar(x_133)) { - x_135 = lean_alloc_ctor(0, 3, 1); +x_135 = lean_array_push(x_131, x_123); +if (lean_is_scalar(x_134)) { + x_136 = lean_alloc_ctor(0, 4, 1); } else { - x_135 = x_133; + x_136 = x_134; } -lean_ctor_set(x_135, 0, x_130); -lean_ctor_set(x_135, 1, x_134); -lean_ctor_set(x_135, 2, x_132); -lean_ctor_set_uint8(x_135, sizeof(void*)*3, x_129); -x_136 = lean_st_ref_set(x_6, x_135, x_128); -x_137 = lean_ctor_get(x_136, 1); -lean_inc(x_137); -lean_dec(x_136); -x_138 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_138, 0, x_35); -x_15 = x_138; -x_16 = x_137; +lean_ctor_set(x_136, 0, x_130); +lean_ctor_set(x_136, 1, x_135); +lean_ctor_set(x_136, 2, x_132); +lean_ctor_set(x_136, 3, x_133); +lean_ctor_set_uint8(x_136, sizeof(void*)*4, x_129); +x_137 = lean_st_ref_set(x_6, x_136, x_128); +x_138 = lean_ctor_get(x_137, 1); +lean_inc(x_138); +lean_dec(x_137); +x_139 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_139, 0, x_30); +x_15 = x_139; +x_16 = x_138; goto block_21; } } } else { -uint8_t x_139; -lean_dec(x_31); +uint8_t x_140; lean_dec(x_28); lean_dec(x_27); lean_dec(x_25); @@ -814,65 +819,65 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -x_139 = !lean_is_exclusive(x_34); -if (x_139 == 0) +x_140 = !lean_is_exclusive(x_29); +if (x_140 == 0) { -return x_34; +return x_29; } else { -lean_object* x_140; lean_object* x_141; lean_object* x_142; -x_140 = lean_ctor_get(x_34, 0); -x_141 = lean_ctor_get(x_34, 1); +lean_object* x_141; lean_object* x_142; lean_object* x_143; +x_141 = lean_ctor_get(x_29, 0); +x_142 = lean_ctor_get(x_29, 1); +lean_inc(x_142); lean_inc(x_141); -lean_inc(x_140); -lean_dec(x_34); -x_142 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_142, 0, x_140); -lean_ctor_set(x_142, 1, x_141); -return x_142; +lean_dec(x_29); +x_143 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_143, 0, x_141); +lean_ctor_set(x_143, 1, x_142); +return x_143; } } } else { -lean_object* x_143; +lean_object* x_144; lean_dec(x_25); lean_dec(x_23); lean_dec(x_14); -x_143 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_143, 0, x_5); -x_15 = x_143; +x_144 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_144, 0, x_5); +x_15 = x_144; x_16 = x_24; goto block_21; } } else { -uint8_t x_144; +uint8_t x_145; lean_dec(x_14); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_5); -x_144 = !lean_is_exclusive(x_22); -if (x_144 == 0) +x_145 = !lean_is_exclusive(x_22); +if (x_145 == 0) { return x_22; } else { -lean_object* x_145; lean_object* x_146; lean_object* x_147; -x_145 = lean_ctor_get(x_22, 0); -x_146 = lean_ctor_get(x_22, 1); +lean_object* x_146; lean_object* x_147; lean_object* x_148; +x_146 = lean_ctor_get(x_22, 0); +x_147 = lean_ctor_get(x_22, 1); +lean_inc(x_147); lean_inc(x_146); -lean_inc(x_145); lean_dec(x_22); -x_147 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_147, 0, x_145); -lean_ctor_set(x_147, 1, x_146); -return x_147; +x_148 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_148, 0, x_146); +lean_ctor_set(x_148, 1, x_147); +return x_148; } } block_21: @@ -1232,7 +1237,203 @@ return x_22; } } } -LEAN_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__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_EXPORT lean_object* l_Lean_mkFreshId___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__2___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_3 = lean_st_ref_get(x_1, x_2); +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_4, 2); +lean_inc(x_5); +lean_dec(x_4); +x_6 = lean_ctor_get(x_3, 1); +lean_inc(x_6); +lean_dec(x_3); +x_7 = !lean_is_exclusive(x_5); +if (x_7 == 0) +{ +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; uint8_t x_16; +x_8 = lean_ctor_get(x_5, 0); +x_9 = lean_ctor_get(x_5, 1); +lean_inc(x_9); +lean_inc(x_8); +x_10 = l_Lean_Name_num___override(x_8, x_9); +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_add(x_9, x_11); +lean_dec(x_9); +lean_ctor_set(x_5, 1, x_12); +x_13 = lean_st_ref_take(x_1, x_6); +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); +x_16 = !lean_is_exclusive(x_14); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_17 = lean_ctor_get(x_14, 2); +lean_dec(x_17); +lean_ctor_set(x_14, 2, x_5); +x_18 = lean_st_ref_set(x_1, x_14, x_15); +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) +{ +lean_object* x_20; +x_20 = lean_ctor_get(x_18, 0); +lean_dec(x_20); +lean_ctor_set(x_18, 0, x_10); +return x_18; +} +else +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_18, 1); +lean_inc(x_21); +lean_dec(x_18); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_10); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +else +{ +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; +x_23 = lean_ctor_get(x_14, 0); +x_24 = lean_ctor_get(x_14, 1); +x_25 = lean_ctor_get(x_14, 3); +x_26 = lean_ctor_get(x_14, 4); +x_27 = lean_ctor_get(x_14, 5); +x_28 = lean_ctor_get(x_14, 6); +lean_inc(x_28); +lean_inc(x_27); +lean_inc(x_26); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_14); +x_29 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_29, 0, x_23); +lean_ctor_set(x_29, 1, x_24); +lean_ctor_set(x_29, 2, x_5); +lean_ctor_set(x_29, 3, x_25); +lean_ctor_set(x_29, 4, x_26); +lean_ctor_set(x_29, 5, x_27); +lean_ctor_set(x_29, 6, x_28); +x_30 = lean_st_ref_set(x_1, x_29, x_15); +x_31 = lean_ctor_get(x_30, 1); +lean_inc(x_31); +if (lean_is_exclusive(x_30)) { + lean_ctor_release(x_30, 0); + lean_ctor_release(x_30, 1); + x_32 = x_30; +} else { + lean_dec_ref(x_30); + x_32 = lean_box(0); +} +if (lean_is_scalar(x_32)) { + x_33 = lean_alloc_ctor(0, 2, 0); +} else { + x_33 = x_32; +} +lean_ctor_set(x_33, 0, x_10); +lean_ctor_set(x_33, 1, x_31); +return x_33; +} +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_34 = lean_ctor_get(x_5, 0); +x_35 = lean_ctor_get(x_5, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_5); +lean_inc(x_35); +lean_inc(x_34); +x_36 = l_Lean_Name_num___override(x_34, x_35); +x_37 = lean_unsigned_to_nat(1u); +x_38 = lean_nat_add(x_35, x_37); +lean_dec(x_35); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_34); +lean_ctor_set(x_39, 1, x_38); +x_40 = lean_st_ref_take(x_1, x_6); +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); +lean_dec(x_40); +x_43 = lean_ctor_get(x_41, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_41, 1); +lean_inc(x_44); +x_45 = lean_ctor_get(x_41, 3); +lean_inc(x_45); +x_46 = lean_ctor_get(x_41, 4); +lean_inc(x_46); +x_47 = lean_ctor_get(x_41, 5); +lean_inc(x_47); +x_48 = lean_ctor_get(x_41, 6); +lean_inc(x_48); +if (lean_is_exclusive(x_41)) { + lean_ctor_release(x_41, 0); + lean_ctor_release(x_41, 1); + lean_ctor_release(x_41, 2); + lean_ctor_release(x_41, 3); + lean_ctor_release(x_41, 4); + lean_ctor_release(x_41, 5); + lean_ctor_release(x_41, 6); + x_49 = x_41; +} else { + lean_dec_ref(x_41); + x_49 = lean_box(0); +} +if (lean_is_scalar(x_49)) { + x_50 = lean_alloc_ctor(0, 7, 0); +} else { + x_50 = x_49; +} +lean_ctor_set(x_50, 0, x_43); +lean_ctor_set(x_50, 1, x_44); +lean_ctor_set(x_50, 2, x_39); +lean_ctor_set(x_50, 3, x_45); +lean_ctor_set(x_50, 4, x_46); +lean_ctor_set(x_50, 5, x_47); +lean_ctor_set(x_50, 6, x_48); +x_51 = lean_st_ref_set(x_1, x_50, x_42); +x_52 = lean_ctor_get(x_51, 1); +lean_inc(x_52); +if (lean_is_exclusive(x_51)) { + lean_ctor_release(x_51, 0); + lean_ctor_release(x_51, 1); + x_53 = x_51; +} else { + lean_dec_ref(x_51); + x_53 = lean_box(0); +} +if (lean_is_scalar(x_53)) { + x_54 = lean_alloc_ctor(0, 2, 0); +} else { + x_54 = x_53; +} +lean_ctor_set(x_54, 0, x_36); +lean_ctor_set(x_54, 1, x_52); +return x_54; +} +} +} +LEAN_EXPORT lean_object* l_Lean_mkFreshId___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = lean_alloc_closure((void*)(l_Lean_mkFreshId___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__2___rarg___boxed), 2, 0); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__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; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; @@ -1352,7 +1553,7 @@ return x_47; } } } -LEAN_EXPORT lean_object* l_panic___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__3(lean_object* x_1) { +LEAN_EXPORT lean_object* l_panic___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -1361,10 +1562,10 @@ x_3 = lean_panic_fn(x_2, x_1); return x_3; } } -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___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* x_13, lean_object* x_14) { +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___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* x_13, lean_object* x_14) { _start: { -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_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_15 = lean_st_ref_get(x_13, x_14); x_16 = lean_ctor_get(x_15, 1); lean_inc(x_16); @@ -1382,391 +1583,399 @@ x_21 = lean_ctor_get(x_20, 1); lean_inc(x_21); lean_dec(x_20); x_22 = l_Lean_Meta_SimpTheoremsArray_eraseTheorem(x_21, x_1); -x_23 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_initEntries___spec__3___closed__2; -x_24 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_23, x_12, x_13, x_19); -x_25 = lean_ctor_get(x_24, 0); +x_23 = l_Lean_mkFreshId___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__2___rarg(x_13, x_19); +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); -lean_dec(x_24); +lean_dec(x_23); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_3); lean_inc(x_2); -x_27 = l_Lean_Meta_mkExpectedTypeHint(x_2, x_3, x_10, x_11, x_12, x_13, x_26); -if (lean_obj_tag(x_27) == 0) +x_26 = l_Lean_Meta_mkExpectedTypeHint(x_2, x_3, x_10, x_11, x_12, x_13, x_25); +if (lean_obj_tag(x_26) == 0) { -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_28 = lean_ctor_get(x_27, 0); +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_26, 1); lean_inc(x_28); -x_29 = lean_ctor_get(x_27, 1); -lean_inc(x_29); -lean_dec(x_27); -lean_inc(x_25); -x_30 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_30, 0, x_25); +lean_dec(x_26); lean_inc(x_13); -x_31 = l_Lean_Meta_SimpTheoremsArray_addTheorem(x_22, x_28, x_30, x_10, x_11, x_12, x_13, x_29); -if (lean_obj_tag(x_31) == 0) +lean_inc(x_24); +x_29 = l_Lean_Meta_SimpTheoremsArray_addTheorem(x_22, x_24, x_27, x_10, x_11, x_12, x_13, x_28); +if (lean_obj_tag(x_29) == 0) { -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; uint8_t x_39; -x_32 = lean_ctor_get(x_31, 0); -lean_inc(x_32); -x_33 = lean_ctor_get(x_31, 1); -lean_inc(x_33); -lean_dec(x_31); -x_34 = lean_st_ref_get(x_13, x_33); +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; uint8_t x_37; +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_st_ref_get(x_13, x_31); lean_dec(x_13); -x_35 = lean_ctor_get(x_34, 1); +x_33 = lean_ctor_get(x_32, 1); +lean_inc(x_33); +lean_dec(x_32); +x_34 = lean_st_ref_take(x_9, x_33); +x_35 = lean_ctor_get(x_34, 0); lean_inc(x_35); +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); lean_dec(x_34); -x_36 = lean_st_ref_take(x_9, x_35); -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -x_38 = lean_ctor_get(x_36, 1); -lean_inc(x_38); -lean_dec(x_36); -x_39 = !lean_is_exclusive(x_37); -if (x_39 == 0) +x_37 = !lean_is_exclusive(x_35); +if (x_37 == 0) { -lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; uint8_t x_44; -x_40 = lean_ctor_get(x_37, 1); -x_41 = lean_ctor_get(x_37, 2); -x_42 = lean_array_get_size(x_40); -x_43 = lean_nat_dec_lt(x_4, x_42); -lean_dec(x_42); -x_44 = !lean_is_exclusive(x_41); -if (x_44 == 0) +lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; uint8_t x_42; +x_38 = lean_ctor_get(x_35, 1); +x_39 = lean_ctor_get(x_35, 2); +x_40 = lean_array_get_size(x_38); +x_41 = lean_nat_dec_lt(x_4, x_40); +lean_dec(x_40); +x_42 = !lean_is_exclusive(x_39); +if (x_42 == 0) { -lean_object* x_45; -x_45 = lean_ctor_get(x_41, 1); -lean_dec(x_45); -lean_ctor_set(x_41, 1, x_32); -if (x_43 == 0) +lean_object* x_43; +x_43 = lean_ctor_get(x_39, 1); +lean_dec(x_43); +lean_ctor_set(x_39, 1, x_30); +if (x_41 == 0) { -uint8_t x_46; lean_object* x_47; uint8_t x_48; -lean_dec(x_25); +uint8_t x_44; lean_object* x_45; uint8_t x_46; +lean_dec(x_24); lean_dec(x_7); lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); -x_46 = 1; -lean_ctor_set_uint8(x_37, sizeof(void*)*3, x_46); -x_47 = lean_st_ref_set(x_9, x_37, x_38); -x_48 = !lean_is_exclusive(x_47); -if (x_48 == 0) +x_44 = 1; +lean_ctor_set_uint8(x_35, sizeof(void*)*4, x_44); +x_45 = lean_st_ref_set(x_9, x_35, x_36); +x_46 = !lean_is_exclusive(x_45); +if (x_46 == 0) { -lean_object* x_49; lean_object* x_50; -x_49 = lean_ctor_get(x_47, 0); -lean_dec(x_49); +lean_object* x_47; lean_object* x_48; +x_47 = lean_ctor_get(x_45, 0); +lean_dec(x_47); +x_48 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_48, 0, x_5); +lean_ctor_set(x_45, 0, x_48); +return x_45; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_45, 1); +lean_inc(x_49); +lean_dec(x_45); x_50 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_50, 0, x_5); -lean_ctor_set(x_47, 0, x_50); -return x_47; -} -else -{ -lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_47, 1); -lean_inc(x_51); -lean_dec(x_47); -x_52 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_52, 0, x_5); -x_53 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_51); -return x_53; +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_49); +return x_51; } } else { -lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; lean_object* x_59; uint8_t x_60; -x_54 = lean_box(0); -x_55 = lean_array_fset(x_40, x_4, x_54); -x_56 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_56, 0, x_6); -lean_ctor_set(x_56, 1, x_7); -lean_ctor_set(x_56, 2, x_25); -lean_ctor_set(x_56, 3, x_3); -lean_ctor_set(x_56, 4, x_2); -x_57 = lean_array_fset(x_55, x_4, x_56); -x_58 = 1; -lean_ctor_set(x_37, 1, x_57); -lean_ctor_set_uint8(x_37, sizeof(void*)*3, x_58); -x_59 = lean_st_ref_set(x_9, x_37, x_38); -x_60 = !lean_is_exclusive(x_59); -if (x_60 == 0) +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; lean_object* x_57; uint8_t x_58; +x_52 = lean_box(0); +x_53 = lean_array_fset(x_38, x_4, x_52); +x_54 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_54, 0, x_6); +lean_ctor_set(x_54, 1, x_7); +lean_ctor_set(x_54, 2, x_24); +lean_ctor_set(x_54, 3, x_3); +lean_ctor_set(x_54, 4, x_2); +x_55 = lean_array_fset(x_53, x_4, x_54); +x_56 = 1; +lean_ctor_set(x_35, 1, x_55); +lean_ctor_set_uint8(x_35, sizeof(void*)*4, x_56); +x_57 = lean_st_ref_set(x_9, x_35, x_36); +x_58 = !lean_is_exclusive(x_57); +if (x_58 == 0) { -lean_object* x_61; lean_object* x_62; -x_61 = lean_ctor_get(x_59, 0); -lean_dec(x_61); +lean_object* x_59; lean_object* x_60; +x_59 = lean_ctor_get(x_57, 0); +lean_dec(x_59); +x_60 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_60, 0, x_5); +lean_ctor_set(x_57, 0, x_60); +return x_57; +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_57, 1); +lean_inc(x_61); +lean_dec(x_57); x_62 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_62, 0, x_5); -lean_ctor_set(x_59, 0, x_62); -return x_59; -} -else -{ -lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_63 = lean_ctor_get(x_59, 1); -lean_inc(x_63); -lean_dec(x_59); -x_64 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_64, 0, x_5); -x_65 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_65, 0, x_64); -lean_ctor_set(x_65, 1, x_63); -return x_65; +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_61); +return x_63; } } } else { -lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_66 = lean_ctor_get(x_41, 0); -x_67 = lean_ctor_get(x_41, 2); -x_68 = lean_ctor_get(x_41, 3); -x_69 = lean_ctor_get(x_41, 4); -lean_inc(x_69); +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_64 = lean_ctor_get(x_39, 0); +x_65 = lean_ctor_get(x_39, 2); +x_66 = lean_ctor_get(x_39, 3); +x_67 = lean_ctor_get(x_39, 4); +x_68 = lean_ctor_get(x_39, 5); lean_inc(x_68); lean_inc(x_67); lean_inc(x_66); -lean_dec(x_41); -x_70 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_70, 0, x_66); -lean_ctor_set(x_70, 1, x_32); -lean_ctor_set(x_70, 2, x_67); -lean_ctor_set(x_70, 3, x_68); -lean_ctor_set(x_70, 4, x_69); -if (x_43 == 0) +lean_inc(x_65); +lean_inc(x_64); +lean_dec(x_39); +x_69 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_69, 0, x_64); +lean_ctor_set(x_69, 1, x_30); +lean_ctor_set(x_69, 2, x_65); +lean_ctor_set(x_69, 3, x_66); +lean_ctor_set(x_69, 4, x_67); +lean_ctor_set(x_69, 5, x_68); +if (x_41 == 0) { -uint8_t x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; -lean_dec(x_25); +uint8_t x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; +lean_dec(x_24); lean_dec(x_7); lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); -x_71 = 1; -lean_ctor_set(x_37, 2, x_70); -lean_ctor_set_uint8(x_37, sizeof(void*)*3, x_71); -x_72 = lean_st_ref_set(x_9, x_37, x_38); -x_73 = lean_ctor_get(x_72, 1); -lean_inc(x_73); -if (lean_is_exclusive(x_72)) { - lean_ctor_release(x_72, 0); - lean_ctor_release(x_72, 1); - x_74 = x_72; +x_70 = 1; +lean_ctor_set(x_35, 2, x_69); +lean_ctor_set_uint8(x_35, sizeof(void*)*4, x_70); +x_71 = lean_st_ref_set(x_9, x_35, x_36); +x_72 = lean_ctor_get(x_71, 1); +lean_inc(x_72); +if (lean_is_exclusive(x_71)) { + lean_ctor_release(x_71, 0); + lean_ctor_release(x_71, 1); + x_73 = x_71; } else { - lean_dec_ref(x_72); - x_74 = lean_box(0); + lean_dec_ref(x_71); + x_73 = lean_box(0); } -x_75 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_75, 0, x_5); -if (lean_is_scalar(x_74)) { - x_76 = lean_alloc_ctor(0, 2, 0); +x_74 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_74, 0, x_5); +if (lean_is_scalar(x_73)) { + x_75 = lean_alloc_ctor(0, 2, 0); } else { - x_76 = x_74; + x_75 = x_73; } -lean_ctor_set(x_76, 0, x_75); -lean_ctor_set(x_76, 1, x_73); -return x_76; +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_75, 1, x_72); +return x_75; } else { -lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_77 = lean_box(0); -x_78 = lean_array_fset(x_40, x_4, x_77); -x_79 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_79, 0, x_6); -lean_ctor_set(x_79, 1, x_7); -lean_ctor_set(x_79, 2, x_25); -lean_ctor_set(x_79, 3, x_3); -lean_ctor_set(x_79, 4, x_2); -x_80 = lean_array_fset(x_78, x_4, x_79); -x_81 = 1; -lean_ctor_set(x_37, 2, x_70); -lean_ctor_set(x_37, 1, x_80); -lean_ctor_set_uint8(x_37, sizeof(void*)*3, x_81); -x_82 = lean_st_ref_set(x_9, x_37, x_38); -x_83 = lean_ctor_get(x_82, 1); -lean_inc(x_83); -if (lean_is_exclusive(x_82)) { - lean_ctor_release(x_82, 0); - lean_ctor_release(x_82, 1); - x_84 = x_82; +lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; uint8_t x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_76 = lean_box(0); +x_77 = lean_array_fset(x_38, x_4, x_76); +x_78 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_78, 0, x_6); +lean_ctor_set(x_78, 1, x_7); +lean_ctor_set(x_78, 2, x_24); +lean_ctor_set(x_78, 3, x_3); +lean_ctor_set(x_78, 4, x_2); +x_79 = lean_array_fset(x_77, x_4, x_78); +x_80 = 1; +lean_ctor_set(x_35, 2, x_69); +lean_ctor_set(x_35, 1, x_79); +lean_ctor_set_uint8(x_35, sizeof(void*)*4, x_80); +x_81 = lean_st_ref_set(x_9, x_35, x_36); +x_82 = lean_ctor_get(x_81, 1); +lean_inc(x_82); +if (lean_is_exclusive(x_81)) { + lean_ctor_release(x_81, 0); + lean_ctor_release(x_81, 1); + x_83 = x_81; } else { - lean_dec_ref(x_82); - x_84 = lean_box(0); + lean_dec_ref(x_81); + x_83 = lean_box(0); } -x_85 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_85, 0, x_5); -if (lean_is_scalar(x_84)) { - x_86 = lean_alloc_ctor(0, 2, 0); +x_84 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_84, 0, x_5); +if (lean_is_scalar(x_83)) { + x_85 = lean_alloc_ctor(0, 2, 0); } else { - x_86 = x_84; + x_85 = x_83; } -lean_ctor_set(x_86, 0, x_85); -lean_ctor_set(x_86, 1, x_83); -return x_86; +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_82); +return x_85; } } } else { -lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; uint8_t 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; -x_87 = lean_ctor_get(x_37, 0); -x_88 = lean_ctor_get(x_37, 1); -x_89 = lean_ctor_get(x_37, 2); +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; uint8_t 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; +x_86 = lean_ctor_get(x_35, 0); +x_87 = lean_ctor_get(x_35, 1); +x_88 = lean_ctor_get(x_35, 2); +x_89 = lean_ctor_get(x_35, 3); lean_inc(x_89); lean_inc(x_88); lean_inc(x_87); -lean_dec(x_37); -x_90 = lean_array_get_size(x_88); +lean_inc(x_86); +lean_dec(x_35); +x_90 = lean_array_get_size(x_87); x_91 = lean_nat_dec_lt(x_4, x_90); lean_dec(x_90); -x_92 = lean_ctor_get(x_89, 0); +x_92 = lean_ctor_get(x_88, 0); lean_inc(x_92); -x_93 = lean_ctor_get(x_89, 2); +x_93 = lean_ctor_get(x_88, 2); lean_inc(x_93); -x_94 = lean_ctor_get(x_89, 3); +x_94 = lean_ctor_get(x_88, 3); lean_inc(x_94); -x_95 = lean_ctor_get(x_89, 4); +x_95 = lean_ctor_get(x_88, 4); lean_inc(x_95); -if (lean_is_exclusive(x_89)) { - lean_ctor_release(x_89, 0); - lean_ctor_release(x_89, 1); - lean_ctor_release(x_89, 2); - lean_ctor_release(x_89, 3); - lean_ctor_release(x_89, 4); - x_96 = x_89; +x_96 = lean_ctor_get(x_88, 5); +lean_inc(x_96); +if (lean_is_exclusive(x_88)) { + lean_ctor_release(x_88, 0); + lean_ctor_release(x_88, 1); + lean_ctor_release(x_88, 2); + lean_ctor_release(x_88, 3); + lean_ctor_release(x_88, 4); + lean_ctor_release(x_88, 5); + x_97 = x_88; } else { - lean_dec_ref(x_89); - x_96 = lean_box(0); + lean_dec_ref(x_88); + x_97 = lean_box(0); } -if (lean_is_scalar(x_96)) { - x_97 = lean_alloc_ctor(0, 5, 0); +if (lean_is_scalar(x_97)) { + x_98 = lean_alloc_ctor(0, 6, 0); } else { - x_97 = x_96; + x_98 = x_97; } -lean_ctor_set(x_97, 0, x_92); -lean_ctor_set(x_97, 1, x_32); -lean_ctor_set(x_97, 2, x_93); -lean_ctor_set(x_97, 3, x_94); -lean_ctor_set(x_97, 4, x_95); +lean_ctor_set(x_98, 0, x_92); +lean_ctor_set(x_98, 1, x_30); +lean_ctor_set(x_98, 2, x_93); +lean_ctor_set(x_98, 3, x_94); +lean_ctor_set(x_98, 4, x_95); +lean_ctor_set(x_98, 5, x_96); if (x_91 == 0) { -uint8_t 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_dec(x_25); +uint8_t 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_dec(x_24); lean_dec(x_7); lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); -x_98 = 1; -x_99 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_99, 0, x_87); -lean_ctor_set(x_99, 1, x_88); -lean_ctor_set(x_99, 2, x_97); -lean_ctor_set_uint8(x_99, sizeof(void*)*3, x_98); -x_100 = lean_st_ref_set(x_9, x_99, x_38); -x_101 = lean_ctor_get(x_100, 1); -lean_inc(x_101); -if (lean_is_exclusive(x_100)) { - lean_ctor_release(x_100, 0); - lean_ctor_release(x_100, 1); - x_102 = x_100; +x_99 = 1; +x_100 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_100, 0, x_86); +lean_ctor_set(x_100, 1, x_87); +lean_ctor_set(x_100, 2, x_98); +lean_ctor_set(x_100, 3, x_89); +lean_ctor_set_uint8(x_100, sizeof(void*)*4, x_99); +x_101 = lean_st_ref_set(x_9, x_100, x_36); +x_102 = lean_ctor_get(x_101, 1); +lean_inc(x_102); +if (lean_is_exclusive(x_101)) { + lean_ctor_release(x_101, 0); + lean_ctor_release(x_101, 1); + x_103 = x_101; } else { - lean_dec_ref(x_100); - x_102 = lean_box(0); + lean_dec_ref(x_101); + x_103 = lean_box(0); } -x_103 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_103, 0, x_5); -if (lean_is_scalar(x_102)) { - x_104 = lean_alloc_ctor(0, 2, 0); +x_104 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_104, 0, x_5); +if (lean_is_scalar(x_103)) { + x_105 = lean_alloc_ctor(0, 2, 0); } else { - x_104 = x_102; + x_105 = x_103; } -lean_ctor_set(x_104, 0, x_103); -lean_ctor_set(x_104, 1, x_101); -return x_104; +lean_ctor_set(x_105, 0, x_104); +lean_ctor_set(x_105, 1, x_102); +return x_105; } else { -lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; uint8_t 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; -x_105 = lean_box(0); -x_106 = lean_array_fset(x_88, x_4, x_105); -x_107 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_107, 0, x_6); -lean_ctor_set(x_107, 1, x_7); -lean_ctor_set(x_107, 2, x_25); -lean_ctor_set(x_107, 3, x_3); -lean_ctor_set(x_107, 4, x_2); -x_108 = lean_array_fset(x_106, x_4, x_107); -x_109 = 1; -x_110 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_110, 0, x_87); -lean_ctor_set(x_110, 1, x_108); -lean_ctor_set(x_110, 2, x_97); -lean_ctor_set_uint8(x_110, sizeof(void*)*3, x_109); -x_111 = lean_st_ref_set(x_9, x_110, x_38); -x_112 = lean_ctor_get(x_111, 1); -lean_inc(x_112); -if (lean_is_exclusive(x_111)) { - lean_ctor_release(x_111, 0); - lean_ctor_release(x_111, 1); - x_113 = x_111; +lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; uint8_t 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; +x_106 = lean_box(0); +x_107 = lean_array_fset(x_87, x_4, x_106); +x_108 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_108, 0, x_6); +lean_ctor_set(x_108, 1, x_7); +lean_ctor_set(x_108, 2, x_24); +lean_ctor_set(x_108, 3, x_3); +lean_ctor_set(x_108, 4, x_2); +x_109 = lean_array_fset(x_107, x_4, x_108); +x_110 = 1; +x_111 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_111, 0, x_86); +lean_ctor_set(x_111, 1, x_109); +lean_ctor_set(x_111, 2, x_98); +lean_ctor_set(x_111, 3, x_89); +lean_ctor_set_uint8(x_111, sizeof(void*)*4, x_110); +x_112 = lean_st_ref_set(x_9, x_111, x_36); +x_113 = lean_ctor_get(x_112, 1); +lean_inc(x_113); +if (lean_is_exclusive(x_112)) { + lean_ctor_release(x_112, 0); + lean_ctor_release(x_112, 1); + x_114 = x_112; } else { - lean_dec_ref(x_111); - x_113 = lean_box(0); + lean_dec_ref(x_112); + x_114 = lean_box(0); } -x_114 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_114, 0, x_5); -if (lean_is_scalar(x_113)) { - x_115 = lean_alloc_ctor(0, 2, 0); +x_115 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_115, 0, x_5); +if (lean_is_scalar(x_114)) { + x_116 = lean_alloc_ctor(0, 2, 0); } else { - x_115 = x_113; + x_116 = x_114; } -lean_ctor_set(x_115, 0, x_114); -lean_ctor_set(x_115, 1, x_112); -return x_115; +lean_ctor_set(x_116, 0, x_115); +lean_ctor_set(x_116, 1, x_113); +return x_116; } } } else { -uint8_t x_116; -lean_dec(x_25); +uint8_t x_117; +lean_dec(x_24); lean_dec(x_13); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_116 = !lean_is_exclusive(x_31); -if (x_116 == 0) +x_117 = !lean_is_exclusive(x_29); +if (x_117 == 0) { -return x_31; +return x_29; } else { -lean_object* x_117; lean_object* x_118; lean_object* x_119; -x_117 = lean_ctor_get(x_31, 0); -x_118 = lean_ctor_get(x_31, 1); +lean_object* x_118; lean_object* x_119; lean_object* x_120; +x_118 = lean_ctor_get(x_29, 0); +x_119 = lean_ctor_get(x_29, 1); +lean_inc(x_119); lean_inc(x_118); -lean_inc(x_117); -lean_dec(x_31); -x_119 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_119, 0, x_117); -lean_ctor_set(x_119, 1, x_118); -return x_119; +lean_dec(x_29); +x_120 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_120, 0, x_118); +lean_ctor_set(x_120, 1, x_119); +return x_120; } } } else { -uint8_t x_120; -lean_dec(x_25); +uint8_t x_121; +lean_dec(x_24); lean_dec(x_22); lean_dec(x_13); lean_dec(x_12); @@ -1777,28 +1986,28 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_120 = !lean_is_exclusive(x_27); -if (x_120 == 0) +x_121 = !lean_is_exclusive(x_26); +if (x_121 == 0) { -return x_27; +return x_26; } else { -lean_object* x_121; lean_object* x_122; lean_object* x_123; -x_121 = lean_ctor_get(x_27, 0); -x_122 = lean_ctor_get(x_27, 1); +lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_122 = lean_ctor_get(x_26, 0); +x_123 = lean_ctor_get(x_26, 1); +lean_inc(x_123); lean_inc(x_122); -lean_inc(x_121); -lean_dec(x_27); -x_123 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_123, 0, x_121); -lean_ctor_set(x_123, 1, x_122); -return x_123; +lean_dec(x_26); +x_124 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_124, 0, x_122); +lean_ctor_set(x_124, 1, x_123); +return x_124; } } } } -static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__1() { +static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__1() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; @@ -1809,11 +2018,11 @@ lean_ctor_set(x_3, 0, x_2); return x_3; } } -static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__2() { +static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__1; +x_1 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__1; x_2 = lean_box(0); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -1821,17 +2030,17 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__3() { +static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__2; +x_1 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__4() { +static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__4() { _start: { lean_object* x_1; @@ -1839,17 +2048,17 @@ x_1 = lean_mk_string_from_bytes("Meta", 4); return x_1; } } -static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__5() { +static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__4; +x_2 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__4; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__6() { +static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__6() { _start: { lean_object* x_1; @@ -1857,17 +2066,17 @@ x_1 = lean_mk_string_from_bytes("Tactic", 6); return x_1; } } -static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__7() { +static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__5; -x_2 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__6; +x_1 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__5; +x_2 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__6; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__8() { +static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__8() { _start: { lean_object* x_1; @@ -1875,17 +2084,17 @@ x_1 = lean_mk_string_from_bytes("simp", 4); return x_1; } } -static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__9() { +static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__7; -x_2 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__8; +x_1 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__7; +x_2 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__8; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__10() { +static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__10() { _start: { lean_object* x_1; @@ -1893,17 +2102,17 @@ x_1 = lean_mk_string_from_bytes("all", 3); return x_1; } } -static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__11() { +static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__9; -x_2 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__10; +x_1 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__9; +x_2 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__10; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__12() { +static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__12() { _start: { lean_object* x_1; @@ -1911,16 +2120,16 @@ x_1 = lean_mk_string_from_bytes("entry.id: ", 10); return x_1; } } -static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__13() { +static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__13() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__12; +x_1 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__12; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__14() { +static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__14() { _start: { lean_object* x_1; @@ -1928,16 +2137,16 @@ x_1 = lean_mk_string_from_bytes(", ", 2); return x_1; } } -static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__15() { +static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__15() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__14; +x_1 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__14; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__16() { +static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__16() { _start: { lean_object* x_1; @@ -1945,16 +2154,16 @@ x_1 = lean_mk_string_from_bytes(" => ", 4); return x_1; } } -static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__17() { +static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__17() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__16; +x_1 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__16; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__18() { +static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__18() { _start: { lean_object* x_1; @@ -1962,16 +2171,16 @@ x_1 = lean_mk_string_from_bytes("", 0); return x_1; } } -static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__19() { +static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__19() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__18; +x_1 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__18; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__20() { +static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__20() { _start: { lean_object* x_1; @@ -1979,7 +2188,7 @@ x_1 = lean_mk_string_from_bytes("Init.Util", 9); return x_1; } } -static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__21() { +static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__21() { _start: { lean_object* x_1; @@ -1987,7 +2196,7 @@ x_1 = lean_mk_string_from_bytes("getElem!", 8); return x_1; } } -static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__22() { +static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__22() { _start: { lean_object* x_1; @@ -1995,20 +2204,20 @@ x_1 = lean_mk_string_from_bytes("index out of bounds", 19); return x_1; } } -static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__23() { +static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__23() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_1 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__20; -x_2 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__21; +x_1 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__20; +x_2 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__21; x_3 = lean_unsigned_to_nat(77u); x_4 = lean_unsigned_to_nat(36u); -x_5 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__22; +x_5 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__22; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); return x_6; } } -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__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) { +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__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, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { uint8_t x_13; @@ -2044,20 +2253,20 @@ lean_dec(x_41); x_43 = lean_st_ref_get(x_11, x_39); if (x_42 == 0) { -lean_object* x_206; lean_object* x_207; +lean_object* x_288; lean_object* x_289; lean_dec(x_40); -x_206 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__23; -x_207 = l_panic___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__3(x_206); -x_44 = x_207; -goto block_205; +x_288 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__23; +x_289 = l_panic___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4(x_288); +x_44 = x_289; +goto block_287; } else { -lean_object* x_208; -x_208 = lean_array_fget(x_40, x_3); +lean_object* x_290; +x_290 = lean_array_fget(x_40, x_3); lean_dec(x_40); -x_44 = x_208; -goto block_205; +x_44 = x_290; +goto block_287; } block_34: { @@ -2151,7 +2360,7 @@ return x_33; } } } -block_205: +block_287: { 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; uint8_t x_63; x_45 = lean_ctor_get(x_43, 1); @@ -2198,7 +2407,7 @@ x_62 = l_Lean_Meta_SimpTheoremsArray_eraseTheorem(x_56, x_59); x_63 = !lean_is_exclusive(x_49); if (x_63 == 0) { -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; uint8_t x_72; lean_object* x_73; +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; uint8_t x_78; lean_object* x_79; x_64 = lean_ctor_get(x_49, 1); lean_dec(x_64); lean_ctor_set(x_49, 1, x_62); @@ -2212,535 +2421,488 @@ lean_inc(x_68); x_69 = lean_ctor_get(x_67, 1); lean_inc(x_69); lean_dec(x_67); -x_70 = lean_ctor_get(x_68, 0); -lean_inc(x_70); +x_70 = lean_st_ref_get(x_11, x_69); +x_71 = lean_ctor_get(x_70, 1); +lean_inc(x_71); +lean_dec(x_70); +x_72 = lean_st_ref_get(x_7, x_71); +x_73 = lean_ctor_get(x_72, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_72, 1); +lean_inc(x_74); +lean_dec(x_72); +x_75 = lean_ctor_get(x_68, 0); +lean_inc(x_75); lean_dec(x_68); -x_71 = lean_box(0); -x_72 = 1; +x_76 = lean_box(0); +x_77 = lean_ctor_get(x_73, 3); +lean_inc(x_77); +lean_dec(x_73); +x_78 = 1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_60); -x_73 = l_Lean_Meta_simpStep(x_70, x_61, x_60, x_49, x_71, x_72, x_8, x_9, x_10, x_11, x_69); -if (lean_obj_tag(x_73) == 0) +x_79 = l_Lean_Meta_simpStep(x_75, x_61, x_60, x_49, x_76, x_78, x_77, x_8, x_9, x_10, x_11, x_74); +if (lean_obj_tag(x_79) == 0) { -lean_object* x_74; -x_74 = lean_ctor_get(x_73, 0); -lean_inc(x_74); -if (lean_obj_tag(x_74) == 0) -{ -uint8_t x_75; -lean_dec(x_60); -lean_dec(x_59); -lean_dec(x_58); -lean_dec(x_57); -x_75 = !lean_is_exclusive(x_73); -if (x_75 == 0) -{ -lean_object* x_76; lean_object* x_77; -x_76 = lean_ctor_get(x_73, 0); -lean_dec(x_76); -x_77 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__3; -lean_ctor_set(x_73, 0, x_77); -x_18 = x_73; -goto block_34; -} -else -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_78 = lean_ctor_get(x_73, 1); -lean_inc(x_78); -lean_dec(x_73); -x_79 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__3; -x_80 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_80, 0, x_79); -lean_ctor_set(x_80, 1, x_78); -x_18 = x_80; -goto block_34; -} -} -else -{ -lean_object* x_81; uint8_t x_82; -x_81 = lean_ctor_get(x_74, 0); +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; uint8_t x_89; +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_74); -x_82 = !lean_is_exclusive(x_73); -if (x_82 == 0) -{ -lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; -x_83 = lean_ctor_get(x_73, 1); -x_84 = lean_ctor_get(x_73, 0); -lean_dec(x_84); -x_85 = lean_ctor_get(x_81, 0); +lean_dec(x_79); +x_82 = lean_ctor_get(x_80, 0); +lean_inc(x_82); +x_83 = lean_ctor_get(x_80, 1); +lean_inc(x_83); +lean_dec(x_80); +x_84 = lean_st_ref_get(x_11, x_81); +x_85 = lean_ctor_get(x_84, 1); lean_inc(x_85); -x_86 = lean_ctor_get(x_81, 1); -lean_inc(x_86); -lean_dec(x_81); -x_87 = lean_expr_eqv(x_86, x_60); -if (x_87 == 0) -{ -lean_object* x_88; lean_object* x_89; lean_object* x_90; uint8_t x_91; -lean_free_object(x_73); -x_88 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__11; -x_89 = l_Lean_isTracingEnabledFor___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__1(x_88, x_7, x_8, x_9, x_10, x_11, x_83); -x_90 = lean_ctor_get(x_89, 0); -lean_inc(x_90); -x_91 = lean_unbox(x_90); -lean_dec(x_90); -if (x_91 == 0) -{ -lean_object* x_92; lean_object* x_93; lean_object* x_94; -lean_dec(x_60); -x_92 = lean_ctor_get(x_89, 1); -lean_inc(x_92); -lean_dec(x_89); -x_93 = lean_box(0); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_1); -x_94 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___lambda__1(x_59, x_85, x_86, x_3, x_1, x_57, x_58, x_93, x_7, x_8, x_9, x_10, x_11, x_92); -x_18 = x_94; -goto block_34; -} -else -{ -lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; -x_95 = lean_ctor_get(x_89, 1); -lean_inc(x_95); -lean_dec(x_89); -lean_inc(x_59); -x_96 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_96, 0, x_59); -x_97 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__13; -x_98 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_96); -x_99 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__15; -x_100 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_100, 0, x_98); -lean_ctor_set(x_100, 1, x_99); -x_101 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_101, 0, x_60); -x_102 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_102, 0, x_100); -lean_ctor_set(x_102, 1, x_101); -x_103 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__17; -x_104 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_104, 0, x_102); -lean_ctor_set(x_104, 1, x_103); -lean_inc(x_86); -x_105 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_105, 0, x_86); -x_106 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_106, 0, x_104); -lean_ctor_set(x_106, 1, x_105); -x_107 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__19; -x_108 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_108, 0, x_106); -lean_ctor_set(x_108, 1, x_107); -x_109 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__2(x_88, x_108, x_7, x_8, x_9, x_10, x_11, x_95); -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); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_1); -x_112 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___lambda__1(x_59, x_85, x_86, x_3, x_1, x_57, x_58, x_110, x_7, x_8, x_9, x_10, x_11, x_111); -lean_dec(x_110); -x_18 = x_112; -goto block_34; -} -} -else -{ -lean_object* x_113; +lean_dec(x_84); +x_86 = lean_st_ref_take(x_7, x_85); +x_87 = lean_ctor_get(x_86, 0); +lean_inc(x_87); +x_88 = lean_ctor_get(x_86, 1); +lean_inc(x_88); lean_dec(x_86); -lean_dec(x_85); +x_89 = !lean_is_exclusive(x_87); +if (x_89 == 0) +{ +lean_object* x_90; lean_object* x_91; +x_90 = lean_ctor_get(x_87, 3); +lean_dec(x_90); +lean_ctor_set(x_87, 3, x_83); +x_91 = lean_st_ref_set(x_7, x_87, x_88); +if (lean_obj_tag(x_82) == 0) +{ +uint8_t x_92; lean_dec(x_60); lean_dec(x_59); lean_dec(x_58); lean_dec(x_57); -lean_inc(x_1); -x_113 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_113, 0, x_1); -lean_ctor_set(x_73, 0, x_113); -x_18 = x_73; +x_92 = !lean_is_exclusive(x_91); +if (x_92 == 0) +{ +lean_object* x_93; lean_object* x_94; +x_93 = lean_ctor_get(x_91, 0); +lean_dec(x_93); +x_94 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__3; +lean_ctor_set(x_91, 0, x_94); +x_18 = x_91; +goto block_34; +} +else +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_95 = lean_ctor_get(x_91, 1); +lean_inc(x_95); +lean_dec(x_91); +x_96 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__3; +x_97 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_97, 0, x_96); +lean_ctor_set(x_97, 1, x_95); +x_18 = x_97; goto block_34; } } else { -lean_object* x_114; lean_object* x_115; lean_object* x_116; uint8_t x_117; -x_114 = lean_ctor_get(x_73, 1); -lean_inc(x_114); -lean_dec(x_73); -x_115 = lean_ctor_get(x_81, 0); -lean_inc(x_115); -x_116 = lean_ctor_get(x_81, 1); -lean_inc(x_116); -lean_dec(x_81); -x_117 = lean_expr_eqv(x_116, x_60); -if (x_117 == 0) +lean_object* x_98; uint8_t x_99; +x_98 = lean_ctor_get(x_82, 0); +lean_inc(x_98); +lean_dec(x_82); +x_99 = !lean_is_exclusive(x_91); +if (x_99 == 0) { -lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; -x_118 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__11; -x_119 = l_Lean_isTracingEnabledFor___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__1(x_118, x_7, x_8, x_9, x_10, x_11, x_114); -x_120 = lean_ctor_get(x_119, 0); -lean_inc(x_120); -x_121 = lean_unbox(x_120); -lean_dec(x_120); -if (x_121 == 0) +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; uint8_t x_104; +x_100 = lean_ctor_get(x_91, 1); +x_101 = lean_ctor_get(x_91, 0); +lean_dec(x_101); +x_102 = lean_ctor_get(x_98, 0); +lean_inc(x_102); +x_103 = lean_ctor_get(x_98, 1); +lean_inc(x_103); +lean_dec(x_98); +x_104 = lean_expr_eqv(x_103, x_60); +if (x_104 == 0) { -lean_object* x_122; lean_object* x_123; lean_object* x_124; +lean_object* x_105; lean_object* x_106; lean_object* x_107; uint8_t x_108; +lean_free_object(x_91); +x_105 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__11; +x_106 = l_Lean_isTracingEnabledFor___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__1(x_105, x_7, x_8, x_9, x_10, x_11, x_100); +x_107 = lean_ctor_get(x_106, 0); +lean_inc(x_107); +x_108 = lean_unbox(x_107); +lean_dec(x_107); +if (x_108 == 0) +{ +lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_dec(x_60); -x_122 = lean_ctor_get(x_119, 1); -lean_inc(x_122); -lean_dec(x_119); -x_123 = lean_box(0); +x_109 = lean_ctor_get(x_106, 1); +lean_inc(x_109); +lean_dec(x_106); +x_110 = lean_box(0); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_124 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___lambda__1(x_59, x_115, x_116, x_3, x_1, x_57, x_58, x_123, x_7, x_8, x_9, x_10, x_11, x_122); -x_18 = x_124; +x_111 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___lambda__1(x_59, x_102, x_103, x_3, x_1, x_57, x_58, x_110, x_7, x_8, x_9, x_10, x_11, x_109); +x_18 = x_111; goto block_34; } else { -lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; 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; -x_125 = lean_ctor_get(x_119, 1); -lean_inc(x_125); -lean_dec(x_119); +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_129; +x_112 = lean_ctor_get(x_106, 1); +lean_inc(x_112); +lean_dec(x_106); lean_inc(x_59); -x_126 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_126, 0, x_59); -x_127 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__13; -x_128 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_128, 0, x_127); -lean_ctor_set(x_128, 1, x_126); -x_129 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__15; -x_130 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_130, 0, x_128); -lean_ctor_set(x_130, 1, x_129); -x_131 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_131, 0, x_60); -x_132 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_132, 0, x_130); -lean_ctor_set(x_132, 1, x_131); -x_133 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__17; -x_134 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_134, 0, x_132); -lean_ctor_set(x_134, 1, x_133); -lean_inc(x_116); -x_135 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_135, 0, x_116); -x_136 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_136, 0, x_134); -lean_ctor_set(x_136, 1, x_135); -x_137 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__19; -x_138 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_138, 0, x_136); -lean_ctor_set(x_138, 1, x_137); -x_139 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__2(x_118, x_138, x_7, x_8, x_9, x_10, x_11, x_125); -x_140 = lean_ctor_get(x_139, 0); -lean_inc(x_140); -x_141 = lean_ctor_get(x_139, 1); -lean_inc(x_141); -lean_dec(x_139); +x_113 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_113, 0, x_59); +x_114 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__13; +x_115 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_115, 0, x_114); +lean_ctor_set(x_115, 1, x_113); +x_116 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__15; +x_117 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_117, 0, x_115); +lean_ctor_set(x_117, 1, x_116); +x_118 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_118, 0, x_60); +x_119 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_119, 0, x_117); +lean_ctor_set(x_119, 1, x_118); +x_120 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__17; +x_121 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_121, 0, x_119); +lean_ctor_set(x_121, 1, x_120); +lean_inc(x_103); +x_122 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_122, 0, x_103); +x_123 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_123, 0, x_121); +lean_ctor_set(x_123, 1, x_122); +x_124 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__19; +x_125 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_125, 0, x_123); +lean_ctor_set(x_125, 1, x_124); +x_126 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__3(x_105, x_125, x_7, x_8, x_9, x_10, x_11, x_112); +x_127 = lean_ctor_get(x_126, 0); +lean_inc(x_127); +x_128 = lean_ctor_get(x_126, 1); +lean_inc(x_128); +lean_dec(x_126); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_142 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___lambda__1(x_59, x_115, x_116, x_3, x_1, x_57, x_58, x_140, x_7, x_8, x_9, x_10, x_11, x_141); -lean_dec(x_140); -x_18 = x_142; +x_129 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___lambda__1(x_59, x_102, x_103, x_3, x_1, x_57, x_58, x_127, x_7, x_8, x_9, x_10, x_11, x_128); +lean_dec(x_127); +x_18 = x_129; goto block_34; } } else { -lean_object* x_143; lean_object* x_144; -lean_dec(x_116); -lean_dec(x_115); +lean_object* x_130; +lean_dec(x_103); +lean_dec(x_102); lean_dec(x_60); lean_dec(x_59); lean_dec(x_58); lean_dec(x_57); lean_inc(x_1); -x_143 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_143, 0, x_1); -x_144 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_144, 0, x_143); -lean_ctor_set(x_144, 1, x_114); -x_18 = x_144; +x_130 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_130, 0, x_1); +lean_ctor_set(x_91, 0, x_130); +x_18 = x_91; goto block_34; } } -} -} else { -uint8_t x_145; +lean_object* x_131; lean_object* x_132; lean_object* x_133; uint8_t x_134; +x_131 = lean_ctor_get(x_91, 1); +lean_inc(x_131); +lean_dec(x_91); +x_132 = lean_ctor_get(x_98, 0); +lean_inc(x_132); +x_133 = lean_ctor_get(x_98, 1); +lean_inc(x_133); +lean_dec(x_98); +x_134 = lean_expr_eqv(x_133, x_60); +if (x_134 == 0) +{ +lean_object* x_135; lean_object* x_136; lean_object* x_137; uint8_t x_138; +x_135 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__11; +x_136 = l_Lean_isTracingEnabledFor___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__1(x_135, x_7, x_8, x_9, x_10, x_11, x_131); +x_137 = lean_ctor_get(x_136, 0); +lean_inc(x_137); +x_138 = lean_unbox(x_137); +lean_dec(x_137); +if (x_138 == 0) +{ +lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_dec(x_60); -lean_dec(x_59); -lean_dec(x_58); -lean_dec(x_57); -x_145 = !lean_is_exclusive(x_73); -if (x_145 == 0) -{ -x_18 = x_73; +x_139 = lean_ctor_get(x_136, 1); +lean_inc(x_139); +lean_dec(x_136); +x_140 = lean_box(0); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_1); +x_141 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___lambda__1(x_59, x_132, x_133, x_3, x_1, x_57, x_58, x_140, x_7, x_8, x_9, x_10, x_11, x_139); +x_18 = x_141; goto block_34; } else { -lean_object* x_146; lean_object* x_147; lean_object* x_148; -x_146 = lean_ctor_get(x_73, 0); -x_147 = lean_ctor_get(x_73, 1); -lean_inc(x_147); -lean_inc(x_146); -lean_dec(x_73); -x_148 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_148, 0, x_146); -lean_ctor_set(x_148, 1, x_147); -x_18 = x_148; -goto block_34; -} -} -} -else -{ -lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; uint8_t x_161; lean_object* x_162; -x_149 = lean_ctor_get(x_49, 0); -x_150 = lean_ctor_get(x_49, 2); -x_151 = lean_ctor_get(x_49, 3); -x_152 = lean_ctor_get(x_49, 4); -lean_inc(x_152); -lean_inc(x_151); -lean_inc(x_150); -lean_inc(x_149); -lean_dec(x_49); -x_153 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_153, 0, x_149); -lean_ctor_set(x_153, 1, x_62); -lean_ctor_set(x_153, 2, x_150); -lean_ctor_set(x_153, 3, x_151); -lean_ctor_set(x_153, 4, x_152); -x_154 = lean_st_ref_get(x_11, x_54); -x_155 = lean_ctor_get(x_154, 1); -lean_inc(x_155); -lean_dec(x_154); -x_156 = lean_st_ref_get(x_7, x_155); +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; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; +x_142 = lean_ctor_get(x_136, 1); +lean_inc(x_142); +lean_dec(x_136); +lean_inc(x_59); +x_143 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_143, 0, x_59); +x_144 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__13; +x_145 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_145, 0, x_144); +lean_ctor_set(x_145, 1, x_143); +x_146 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__15; +x_147 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_147, 0, x_145); +lean_ctor_set(x_147, 1, x_146); +x_148 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_148, 0, x_60); +x_149 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_149, 0, x_147); +lean_ctor_set(x_149, 1, x_148); +x_150 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__17; +x_151 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_151, 0, x_149); +lean_ctor_set(x_151, 1, x_150); +lean_inc(x_133); +x_152 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_152, 0, x_133); +x_153 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_153, 0, x_151); +lean_ctor_set(x_153, 1, x_152); +x_154 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__19; +x_155 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_155, 0, x_153); +lean_ctor_set(x_155, 1, x_154); +x_156 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__3(x_135, x_155, x_7, x_8, x_9, x_10, x_11, x_142); x_157 = lean_ctor_get(x_156, 0); lean_inc(x_157); x_158 = lean_ctor_get(x_156, 1); lean_inc(x_158); lean_dec(x_156); -x_159 = lean_ctor_get(x_157, 0); -lean_inc(x_159); -lean_dec(x_157); -x_160 = lean_box(0); -x_161 = 1; -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_60); -x_162 = l_Lean_Meta_simpStep(x_159, x_61, x_60, x_153, x_160, x_161, x_8, x_9, x_10, x_11, x_158); -if (lean_obj_tag(x_162) == 0) -{ -lean_object* x_163; -x_163 = lean_ctor_get(x_162, 0); -lean_inc(x_163); -if (lean_obj_tag(x_163) == 0) -{ -lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; -lean_dec(x_60); -lean_dec(x_59); -lean_dec(x_58); -lean_dec(x_57); -x_164 = lean_ctor_get(x_162, 1); -lean_inc(x_164); -if (lean_is_exclusive(x_162)) { - lean_ctor_release(x_162, 0); - lean_ctor_release(x_162, 1); - x_165 = x_162; -} else { - lean_dec_ref(x_162); - x_165 = lean_box(0); -} -x_166 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__3; -if (lean_is_scalar(x_165)) { - x_167 = lean_alloc_ctor(0, 2, 0); -} else { - x_167 = x_165; -} -lean_ctor_set(x_167, 0, x_166); -lean_ctor_set(x_167, 1, x_164); -x_18 = x_167; -goto block_34; -} -else -{ -lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; uint8_t x_173; -x_168 = lean_ctor_get(x_163, 0); -lean_inc(x_168); -lean_dec(x_163); -x_169 = lean_ctor_get(x_162, 1); -lean_inc(x_169); -if (lean_is_exclusive(x_162)) { - lean_ctor_release(x_162, 0); - lean_ctor_release(x_162, 1); - x_170 = x_162; -} else { - lean_dec_ref(x_162); - x_170 = lean_box(0); -} -x_171 = lean_ctor_get(x_168, 0); -lean_inc(x_171); -x_172 = lean_ctor_get(x_168, 1); -lean_inc(x_172); -lean_dec(x_168); -x_173 = lean_expr_eqv(x_172, x_60); -if (x_173 == 0) -{ -lean_object* x_174; lean_object* x_175; lean_object* x_176; uint8_t x_177; -lean_dec(x_170); -x_174 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__11; -x_175 = l_Lean_isTracingEnabledFor___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__1(x_174, x_7, x_8, x_9, x_10, x_11, x_169); -x_176 = lean_ctor_get(x_175, 0); -lean_inc(x_176); -x_177 = lean_unbox(x_176); -lean_dec(x_176); -if (x_177 == 0) -{ -lean_object* x_178; lean_object* x_179; lean_object* x_180; -lean_dec(x_60); -x_178 = lean_ctor_get(x_175, 1); -lean_inc(x_178); -lean_dec(x_175); -x_179 = lean_box(0); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_180 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___lambda__1(x_59, x_171, x_172, x_3, x_1, x_57, x_58, x_179, x_7, x_8, x_9, x_10, x_11, x_178); -x_18 = x_180; +x_159 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___lambda__1(x_59, x_132, x_133, x_3, x_1, x_57, x_58, x_157, x_7, x_8, x_9, x_10, x_11, x_158); +lean_dec(x_157); +x_18 = x_159; +goto block_34; +} +} +else +{ +lean_object* x_160; lean_object* x_161; +lean_dec(x_133); +lean_dec(x_132); +lean_dec(x_60); +lean_dec(x_59); +lean_dec(x_58); +lean_dec(x_57); +lean_inc(x_1); +x_160 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_160, 0, x_1); +x_161 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_161, 0, x_160); +lean_ctor_set(x_161, 1, x_131); +x_18 = x_161; +goto block_34; +} +} +} +} +else +{ +uint8_t x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; +x_162 = lean_ctor_get_uint8(x_87, sizeof(void*)*4); +x_163 = lean_ctor_get(x_87, 0); +x_164 = lean_ctor_get(x_87, 1); +x_165 = lean_ctor_get(x_87, 2); +lean_inc(x_165); +lean_inc(x_164); +lean_inc(x_163); +lean_dec(x_87); +x_166 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_166, 0, x_163); +lean_ctor_set(x_166, 1, x_164); +lean_ctor_set(x_166, 2, x_165); +lean_ctor_set(x_166, 3, x_83); +lean_ctor_set_uint8(x_166, sizeof(void*)*4, x_162); +x_167 = lean_st_ref_set(x_7, x_166, x_88); +if (lean_obj_tag(x_82) == 0) +{ +lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; +lean_dec(x_60); +lean_dec(x_59); +lean_dec(x_58); +lean_dec(x_57); +x_168 = lean_ctor_get(x_167, 1); +lean_inc(x_168); +if (lean_is_exclusive(x_167)) { + lean_ctor_release(x_167, 0); + lean_ctor_release(x_167, 1); + x_169 = x_167; +} else { + lean_dec_ref(x_167); + x_169 = lean_box(0); +} +x_170 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__3; +if (lean_is_scalar(x_169)) { + x_171 = lean_alloc_ctor(0, 2, 0); +} else { + x_171 = x_169; +} +lean_ctor_set(x_171, 0, x_170); +lean_ctor_set(x_171, 1, x_168); +x_18 = x_171; goto block_34; } else { -lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; -x_181 = lean_ctor_get(x_175, 1); -lean_inc(x_181); -lean_dec(x_175); +lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; uint8_t x_177; +x_172 = lean_ctor_get(x_82, 0); +lean_inc(x_172); +lean_dec(x_82); +x_173 = lean_ctor_get(x_167, 1); +lean_inc(x_173); +if (lean_is_exclusive(x_167)) { + lean_ctor_release(x_167, 0); + lean_ctor_release(x_167, 1); + x_174 = x_167; +} else { + lean_dec_ref(x_167); + x_174 = lean_box(0); +} +x_175 = lean_ctor_get(x_172, 0); +lean_inc(x_175); +x_176 = lean_ctor_get(x_172, 1); +lean_inc(x_176); +lean_dec(x_172); +x_177 = lean_expr_eqv(x_176, x_60); +if (x_177 == 0) +{ +lean_object* x_178; lean_object* x_179; lean_object* x_180; uint8_t x_181; +lean_dec(x_174); +x_178 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__11; +x_179 = l_Lean_isTracingEnabledFor___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__1(x_178, x_7, x_8, x_9, x_10, x_11, x_173); +x_180 = lean_ctor_get(x_179, 0); +lean_inc(x_180); +x_181 = lean_unbox(x_180); +lean_dec(x_180); +if (x_181 == 0) +{ +lean_object* x_182; lean_object* x_183; lean_object* x_184; +lean_dec(x_60); +x_182 = lean_ctor_get(x_179, 1); +lean_inc(x_182); +lean_dec(x_179); +x_183 = lean_box(0); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_1); +x_184 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___lambda__1(x_59, x_175, x_176, x_3, x_1, x_57, x_58, x_183, x_7, x_8, x_9, x_10, x_11, x_182); +x_18 = x_184; +goto block_34; +} +else +{ +lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; +x_185 = lean_ctor_get(x_179, 1); +lean_inc(x_185); +lean_dec(x_179); lean_inc(x_59); -x_182 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_182, 0, x_59); -x_183 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__13; -x_184 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_184, 0, x_183); -lean_ctor_set(x_184, 1, x_182); -x_185 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__15; -x_186 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_186, 0, x_184); -lean_ctor_set(x_186, 1, x_185); -x_187 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_187, 0, x_60); +x_186 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_186, 0, x_59); +x_187 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__13; x_188 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_188, 0, x_186); -lean_ctor_set(x_188, 1, x_187); -x_189 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__17; +lean_ctor_set(x_188, 0, x_187); +lean_ctor_set(x_188, 1, x_186); +x_189 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__15; x_190 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_190, 0, x_188); lean_ctor_set(x_190, 1, x_189); -lean_inc(x_172); x_191 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_191, 0, x_172); +lean_ctor_set(x_191, 0, x_60); x_192 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_192, 0, x_190); lean_ctor_set(x_192, 1, x_191); -x_193 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__19; +x_193 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__17; x_194 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_194, 0, x_192); lean_ctor_set(x_194, 1, x_193); -x_195 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__2(x_174, x_194, x_7, x_8, x_9, x_10, x_11, x_181); -x_196 = lean_ctor_get(x_195, 0); -lean_inc(x_196); -x_197 = lean_ctor_get(x_195, 1); -lean_inc(x_197); -lean_dec(x_195); +lean_inc(x_176); +x_195 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_195, 0, x_176); +x_196 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_196, 0, x_194); +lean_ctor_set(x_196, 1, x_195); +x_197 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__19; +x_198 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_198, 0, x_196); +lean_ctor_set(x_198, 1, x_197); +x_199 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__3(x_178, x_198, x_7, x_8, x_9, x_10, x_11, x_185); +x_200 = lean_ctor_get(x_199, 0); +lean_inc(x_200); +x_201 = lean_ctor_get(x_199, 1); +lean_inc(x_201); +lean_dec(x_199); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_198 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___lambda__1(x_59, x_171, x_172, x_3, x_1, x_57, x_58, x_196, x_7, x_8, x_9, x_10, x_11, x_197); -lean_dec(x_196); -x_18 = x_198; +x_202 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___lambda__1(x_59, x_175, x_176, x_3, x_1, x_57, x_58, x_200, x_7, x_8, x_9, x_10, x_11, x_201); +lean_dec(x_200); +x_18 = x_202; goto block_34; } } else { -lean_object* x_199; lean_object* x_200; -lean_dec(x_172); -lean_dec(x_171); +lean_object* x_203; lean_object* x_204; +lean_dec(x_176); +lean_dec(x_175); lean_dec(x_60); lean_dec(x_59); lean_dec(x_58); lean_dec(x_57); lean_inc(x_1); -x_199 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_199, 0, x_1); -if (lean_is_scalar(x_170)) { - x_200 = lean_alloc_ctor(0, 2, 0); +x_203 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_203, 0, x_1); +if (lean_is_scalar(x_174)) { + x_204 = lean_alloc_ctor(0, 2, 0); } else { - x_200 = x_170; + x_204 = x_174; } -lean_ctor_set(x_200, 0, x_199); -lean_ctor_set(x_200, 1, x_169); -x_18 = x_200; -goto block_34; -} -} -} -else -{ -lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; -lean_dec(x_60); -lean_dec(x_59); -lean_dec(x_58); -lean_dec(x_57); -x_201 = lean_ctor_get(x_162, 0); -lean_inc(x_201); -x_202 = lean_ctor_get(x_162, 1); -lean_inc(x_202); -if (lean_is_exclusive(x_162)) { - lean_ctor_release(x_162, 0); - lean_ctor_release(x_162, 1); - x_203 = x_162; -} else { - lean_dec_ref(x_162); - x_203 = lean_box(0); -} -if (lean_is_scalar(x_203)) { - x_204 = lean_alloc_ctor(1, 2, 0); -} else { - x_204 = x_203; -} -lean_ctor_set(x_204, 0, x_201); -lean_ctor_set(x_204, 1, x_202); +lean_ctor_set(x_204, 0, x_203); +lean_ctor_set(x_204, 1, x_173); x_18 = x_204; goto block_34; } @@ -2749,23 +2911,328 @@ goto block_34; } else { -lean_object* x_209; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_209 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_209, 0, x_6); -lean_ctor_set(x_209, 1, x_12); -return x_209; +uint8_t x_205; +lean_dec(x_60); +lean_dec(x_59); +lean_dec(x_58); +lean_dec(x_57); +x_205 = !lean_is_exclusive(x_79); +if (x_205 == 0) +{ +x_18 = x_79; +goto block_34; +} +else +{ +lean_object* x_206; lean_object* x_207; lean_object* x_208; +x_206 = lean_ctor_get(x_79, 0); +x_207 = lean_ctor_get(x_79, 1); +lean_inc(x_207); +lean_inc(x_206); +lean_dec(x_79); +x_208 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_208, 0, x_206); +lean_ctor_set(x_208, 1, x_207); +x_18 = x_208; +goto block_34; +} } } else { -lean_object* x_210; +lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; uint8_t x_228; lean_object* x_229; +x_209 = lean_ctor_get(x_49, 0); +x_210 = lean_ctor_get(x_49, 2); +x_211 = lean_ctor_get(x_49, 3); +x_212 = lean_ctor_get(x_49, 4); +x_213 = lean_ctor_get(x_49, 5); +lean_inc(x_213); +lean_inc(x_212); +lean_inc(x_211); +lean_inc(x_210); +lean_inc(x_209); +lean_dec(x_49); +x_214 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_214, 0, x_209); +lean_ctor_set(x_214, 1, x_62); +lean_ctor_set(x_214, 2, x_210); +lean_ctor_set(x_214, 3, x_211); +lean_ctor_set(x_214, 4, x_212); +lean_ctor_set(x_214, 5, x_213); +x_215 = lean_st_ref_get(x_11, x_54); +x_216 = lean_ctor_get(x_215, 1); +lean_inc(x_216); +lean_dec(x_215); +x_217 = lean_st_ref_get(x_7, x_216); +x_218 = lean_ctor_get(x_217, 0); +lean_inc(x_218); +x_219 = lean_ctor_get(x_217, 1); +lean_inc(x_219); +lean_dec(x_217); +x_220 = lean_st_ref_get(x_11, x_219); +x_221 = lean_ctor_get(x_220, 1); +lean_inc(x_221); +lean_dec(x_220); +x_222 = lean_st_ref_get(x_7, x_221); +x_223 = lean_ctor_get(x_222, 0); +lean_inc(x_223); +x_224 = lean_ctor_get(x_222, 1); +lean_inc(x_224); +lean_dec(x_222); +x_225 = lean_ctor_get(x_218, 0); +lean_inc(x_225); +lean_dec(x_218); +x_226 = lean_box(0); +x_227 = lean_ctor_get(x_223, 3); +lean_inc(x_227); +lean_dec(x_223); +x_228 = 1; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_60); +x_229 = l_Lean_Meta_simpStep(x_225, x_61, x_60, x_214, x_226, x_228, x_227, x_8, x_9, x_10, x_11, x_224); +if (lean_obj_tag(x_229) == 0) +{ +lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; uint8_t x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; +x_230 = lean_ctor_get(x_229, 0); +lean_inc(x_230); +x_231 = lean_ctor_get(x_229, 1); +lean_inc(x_231); +lean_dec(x_229); +x_232 = lean_ctor_get(x_230, 0); +lean_inc(x_232); +x_233 = lean_ctor_get(x_230, 1); +lean_inc(x_233); +lean_dec(x_230); +x_234 = lean_st_ref_get(x_11, x_231); +x_235 = lean_ctor_get(x_234, 1); +lean_inc(x_235); +lean_dec(x_234); +x_236 = lean_st_ref_take(x_7, x_235); +x_237 = lean_ctor_get(x_236, 0); +lean_inc(x_237); +x_238 = lean_ctor_get(x_236, 1); +lean_inc(x_238); +lean_dec(x_236); +x_239 = lean_ctor_get_uint8(x_237, sizeof(void*)*4); +x_240 = lean_ctor_get(x_237, 0); +lean_inc(x_240); +x_241 = lean_ctor_get(x_237, 1); +lean_inc(x_241); +x_242 = lean_ctor_get(x_237, 2); +lean_inc(x_242); +if (lean_is_exclusive(x_237)) { + lean_ctor_release(x_237, 0); + lean_ctor_release(x_237, 1); + lean_ctor_release(x_237, 2); + lean_ctor_release(x_237, 3); + x_243 = x_237; +} else { + lean_dec_ref(x_237); + x_243 = lean_box(0); +} +if (lean_is_scalar(x_243)) { + x_244 = lean_alloc_ctor(0, 4, 1); +} else { + x_244 = x_243; +} +lean_ctor_set(x_244, 0, x_240); +lean_ctor_set(x_244, 1, x_241); +lean_ctor_set(x_244, 2, x_242); +lean_ctor_set(x_244, 3, x_233); +lean_ctor_set_uint8(x_244, sizeof(void*)*4, x_239); +x_245 = lean_st_ref_set(x_7, x_244, x_238); +if (lean_obj_tag(x_232) == 0) +{ +lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; +lean_dec(x_60); +lean_dec(x_59); +lean_dec(x_58); +lean_dec(x_57); +x_246 = lean_ctor_get(x_245, 1); +lean_inc(x_246); +if (lean_is_exclusive(x_245)) { + lean_ctor_release(x_245, 0); + lean_ctor_release(x_245, 1); + x_247 = x_245; +} else { + lean_dec_ref(x_245); + x_247 = lean_box(0); +} +x_248 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__3; +if (lean_is_scalar(x_247)) { + x_249 = lean_alloc_ctor(0, 2, 0); +} else { + x_249 = x_247; +} +lean_ctor_set(x_249, 0, x_248); +lean_ctor_set(x_249, 1, x_246); +x_18 = x_249; +goto block_34; +} +else +{ +lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; uint8_t x_255; +x_250 = lean_ctor_get(x_232, 0); +lean_inc(x_250); +lean_dec(x_232); +x_251 = lean_ctor_get(x_245, 1); +lean_inc(x_251); +if (lean_is_exclusive(x_245)) { + lean_ctor_release(x_245, 0); + lean_ctor_release(x_245, 1); + x_252 = x_245; +} else { + lean_dec_ref(x_245); + x_252 = lean_box(0); +} +x_253 = lean_ctor_get(x_250, 0); +lean_inc(x_253); +x_254 = lean_ctor_get(x_250, 1); +lean_inc(x_254); +lean_dec(x_250); +x_255 = lean_expr_eqv(x_254, x_60); +if (x_255 == 0) +{ +lean_object* x_256; lean_object* x_257; lean_object* x_258; uint8_t x_259; +lean_dec(x_252); +x_256 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__11; +x_257 = l_Lean_isTracingEnabledFor___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__1(x_256, x_7, x_8, x_9, x_10, x_11, x_251); +x_258 = lean_ctor_get(x_257, 0); +lean_inc(x_258); +x_259 = lean_unbox(x_258); +lean_dec(x_258); +if (x_259 == 0) +{ +lean_object* x_260; lean_object* x_261; lean_object* x_262; +lean_dec(x_60); +x_260 = lean_ctor_get(x_257, 1); +lean_inc(x_260); +lean_dec(x_257); +x_261 = lean_box(0); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_1); +x_262 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___lambda__1(x_59, x_253, x_254, x_3, x_1, x_57, x_58, x_261, x_7, x_8, x_9, x_10, x_11, x_260); +x_18 = x_262; +goto block_34; +} +else +{ +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; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; +x_263 = lean_ctor_get(x_257, 1); +lean_inc(x_263); +lean_dec(x_257); +lean_inc(x_59); +x_264 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_264, 0, x_59); +x_265 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__13; +x_266 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_266, 0, x_265); +lean_ctor_set(x_266, 1, x_264); +x_267 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__15; +x_268 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_268, 0, x_266); +lean_ctor_set(x_268, 1, x_267); +x_269 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_269, 0, x_60); +x_270 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_270, 0, x_268); +lean_ctor_set(x_270, 1, x_269); +x_271 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__17; +x_272 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_272, 0, x_270); +lean_ctor_set(x_272, 1, x_271); +lean_inc(x_254); +x_273 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_273, 0, x_254); +x_274 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_274, 0, x_272); +lean_ctor_set(x_274, 1, x_273); +x_275 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__19; +x_276 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_276, 0, x_274); +lean_ctor_set(x_276, 1, x_275); +x_277 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__3(x_256, x_276, x_7, x_8, x_9, x_10, x_11, x_263); +x_278 = lean_ctor_get(x_277, 0); +lean_inc(x_278); +x_279 = lean_ctor_get(x_277, 1); +lean_inc(x_279); +lean_dec(x_277); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_1); +x_280 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___lambda__1(x_59, x_253, x_254, x_3, x_1, x_57, x_58, x_278, x_7, x_8, x_9, x_10, x_11, x_279); +lean_dec(x_278); +x_18 = x_280; +goto block_34; +} +} +else +{ +lean_object* x_281; lean_object* x_282; +lean_dec(x_254); +lean_dec(x_253); +lean_dec(x_60); +lean_dec(x_59); +lean_dec(x_58); +lean_dec(x_57); +lean_inc(x_1); +x_281 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_281, 0, x_1); +if (lean_is_scalar(x_252)) { + x_282 = lean_alloc_ctor(0, 2, 0); +} else { + x_282 = x_252; +} +lean_ctor_set(x_282, 0, x_281); +lean_ctor_set(x_282, 1, x_251); +x_18 = x_282; +goto block_34; +} +} +} +else +{ +lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; +lean_dec(x_60); +lean_dec(x_59); +lean_dec(x_58); +lean_dec(x_57); +x_283 = lean_ctor_get(x_229, 0); +lean_inc(x_283); +x_284 = lean_ctor_get(x_229, 1); +lean_inc(x_284); +if (lean_is_exclusive(x_229)) { + lean_ctor_release(x_229, 0); + lean_ctor_release(x_229, 1); + x_285 = x_229; +} else { + lean_dec_ref(x_229); + x_285 = lean_box(0); +} +if (lean_is_scalar(x_285)) { + x_286 = lean_alloc_ctor(1, 2, 0); +} else { + x_286 = x_285; +} +lean_ctor_set(x_286, 0, x_283); +lean_ctor_set(x_286, 1, x_284); +x_18 = x_286; +goto block_34; +} +} +} +} +else +{ +lean_object* x_291; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -2773,10 +3240,26 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_210 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_210, 0, x_6); -lean_ctor_set(x_210, 1, x_12); -return x_210; +x_291 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_291, 0, x_6); +lean_ctor_set(x_291, 1, x_12); +return x_291; +} +} +else +{ +lean_object* x_292; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_292 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_292, 0, x_6); +lean_ctor_set(x_292, 1, x_12); +return x_292; } } } @@ -2792,7 +3275,7 @@ lean_dec(x_8); x_10 = lean_st_ref_get(x_2, x_9); x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); -x_12 = lean_ctor_get_uint8(x_11, sizeof(void*)*3); +x_12 = lean_ctor_get_uint8(x_11, sizeof(void*)*4); lean_dec(x_11); if (x_12 == 0) { @@ -2849,7 +3332,7 @@ return x_1; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___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) { _start: { -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; uint8_t x_21; lean_object* x_22; +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; lean_object* x_26; uint8_t x_27; lean_object* x_28; x_9 = lean_st_ref_get(x_7, x_8); x_10 = lean_ctor_get(x_9, 1); lean_inc(x_10); @@ -2873,152 +3356,311 @@ lean_inc(x_18); x_19 = lean_ctor_get(x_17, 1); lean_inc(x_19); lean_dec(x_17); -x_20 = lean_ctor_get(x_18, 2); -lean_inc(x_20); +x_20 = lean_st_ref_get(x_7, x_19); +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec(x_20); +x_22 = lean_st_ref_get(x_3, x_21); +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); +x_25 = lean_ctor_get(x_18, 2); +lean_inc(x_25); lean_dec(x_18); -x_21 = 1; +x_26 = lean_ctor_get(x_23, 3); +lean_inc(x_26); +lean_dec(x_23); +x_27 = 1; lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_14); -x_22 = l_Lean_Meta_simpTarget(x_14, x_20, x_1, x_21, x_4, x_5, x_6, x_7, x_19); -if (lean_obj_tag(x_22) == 0) +x_28 = l_Lean_Meta_simpTarget(x_14, x_25, x_1, x_27, x_26, x_4, x_5, x_6, x_7, x_24); +if (lean_obj_tag(x_28) == 0) { -lean_object* x_23; -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -if (lean_obj_tag(x_23) == 0) -{ -uint8_t x_24; -lean_dec(x_14); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_24 = !lean_is_exclusive(x_22); -if (x_24 == 0) -{ -lean_object* x_25; lean_object* x_26; -x_25 = lean_ctor_get(x_22, 0); -lean_dec(x_25); -x_26 = lean_box(x_21); -lean_ctor_set(x_22, 0, x_26); -return x_22; -} -else -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_22, 1); -lean_inc(x_27); -lean_dec(x_22); -x_28 = lean_box(x_21); -x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_28); -lean_ctor_set(x_29, 1, x_27); -return x_29; -} -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_30 = lean_ctor_get(x_22, 1); +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; uint8_t x_38; +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_28, 1); lean_inc(x_30); -lean_dec(x_22); -x_31 = lean_ctor_get(x_23, 0); +lean_dec(x_28); +x_31 = lean_ctor_get(x_29, 0); lean_inc(x_31); -lean_dec(x_23); -x_32 = l___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___lambda__2___closed__1; -x_33 = lean_name_eq(x_14, x_31); -lean_dec(x_14); -if (x_33 == 0) -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; -x_34 = lean_st_ref_get(x_7, x_30); -x_35 = lean_ctor_get(x_34, 1); -lean_inc(x_35); -lean_dec(x_34); -x_36 = lean_st_ref_take(x_3, x_35); -x_37 = lean_ctor_get(x_36, 0); +x_32 = lean_ctor_get(x_29, 1); +lean_inc(x_32); +lean_dec(x_29); +x_33 = lean_st_ref_get(x_7, x_30); +x_34 = lean_ctor_get(x_33, 1); +lean_inc(x_34); +lean_dec(x_33); +x_35 = lean_st_ref_take(x_3, x_34); +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_35, 1); lean_inc(x_37); -x_38 = lean_ctor_get(x_36, 1); -lean_inc(x_38); -lean_dec(x_36); -x_39 = !lean_is_exclusive(x_37); -if (x_39 == 0) +lean_dec(x_35); +x_38 = !lean_is_exclusive(x_36); +if (x_38 == 0) { -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_40 = lean_ctor_get(x_37, 0); -lean_dec(x_40); -lean_ctor_set(x_37, 0, x_31); -lean_ctor_set_uint8(x_37, sizeof(void*)*3, x_21); -x_41 = lean_st_ref_set(x_3, x_37, x_38); -x_42 = lean_ctor_get(x_41, 1); -lean_inc(x_42); -lean_dec(x_41); -x_43 = lean_box(0); -x_44 = lean_apply_7(x_32, x_43, x_3, x_4, x_5, x_6, x_7, x_42); -return x_44; -} -else +lean_object* x_39; lean_object* x_40; +x_39 = lean_ctor_get(x_36, 3); +lean_dec(x_39); +lean_ctor_set(x_36, 3, x_32); +x_40 = lean_st_ref_set(x_3, x_36, x_37); +if (lean_obj_tag(x_31) == 0) { -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_45 = lean_ctor_get(x_37, 1); -x_46 = lean_ctor_get(x_37, 2); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_37); -x_47 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_47, 0, x_31); -lean_ctor_set(x_47, 1, x_45); -lean_ctor_set(x_47, 2, x_46); -lean_ctor_set_uint8(x_47, sizeof(void*)*3, x_21); -x_48 = lean_st_ref_set(x_3, x_47, x_38); -x_49 = lean_ctor_get(x_48, 1); -lean_inc(x_49); -lean_dec(x_48); -x_50 = lean_box(0); -x_51 = lean_apply_7(x_32, x_50, x_3, x_4, x_5, x_6, x_7, x_49); -return x_51; -} -} -else -{ -lean_object* x_52; lean_object* x_53; -lean_dec(x_31); -x_52 = lean_box(0); -x_53 = lean_apply_7(x_32, x_52, x_3, x_4, x_5, x_6, x_7, x_30); -return x_53; -} -} -} -else -{ -uint8_t x_54; +uint8_t x_41; lean_dec(x_14); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_54 = !lean_is_exclusive(x_22); -if (x_54 == 0) +x_41 = !lean_is_exclusive(x_40); +if (x_41 == 0) { -return x_22; +lean_object* x_42; lean_object* x_43; +x_42 = lean_ctor_get(x_40, 0); +lean_dec(x_42); +x_43 = lean_box(x_27); +lean_ctor_set(x_40, 0, x_43); +return x_40; } else { -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_22, 0); -x_56 = lean_ctor_get(x_22, 1); -lean_inc(x_56); +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_40, 1); +lean_inc(x_44); +lean_dec(x_40); +x_45 = lean_box(x_27); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_44); +return x_46; +} +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; +x_47 = lean_ctor_get(x_40, 1); +lean_inc(x_47); +lean_dec(x_40); +x_48 = lean_ctor_get(x_31, 0); +lean_inc(x_48); +lean_dec(x_31); +x_49 = l___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___lambda__2___closed__1; +x_50 = lean_name_eq(x_14, x_48); +lean_dec(x_14); +if (x_50 == 0) +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; +x_51 = lean_st_ref_get(x_7, x_47); +x_52 = lean_ctor_get(x_51, 1); +lean_inc(x_52); +lean_dec(x_51); +x_53 = lean_st_ref_take(x_3, x_52); +x_54 = lean_ctor_get(x_53, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_53, 1); lean_inc(x_55); -lean_dec(x_22); -x_57 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_57, 0, x_55); -lean_ctor_set(x_57, 1, x_56); -return x_57; +lean_dec(x_53); +x_56 = !lean_is_exclusive(x_54); +if (x_56 == 0) +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_57 = lean_ctor_get(x_54, 0); +lean_dec(x_57); +lean_ctor_set(x_54, 0, x_48); +lean_ctor_set_uint8(x_54, sizeof(void*)*4, x_27); +x_58 = lean_st_ref_set(x_3, x_54, x_55); +x_59 = lean_ctor_get(x_58, 1); +lean_inc(x_59); +lean_dec(x_58); +x_60 = lean_box(0); +x_61 = lean_apply_7(x_49, x_60, x_3, x_4, x_5, x_6, x_7, x_59); +return x_61; +} +else +{ +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; +x_62 = lean_ctor_get(x_54, 1); +x_63 = lean_ctor_get(x_54, 2); +x_64 = lean_ctor_get(x_54, 3); +lean_inc(x_64); +lean_inc(x_63); +lean_inc(x_62); +lean_dec(x_54); +x_65 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_65, 0, x_48); +lean_ctor_set(x_65, 1, x_62); +lean_ctor_set(x_65, 2, x_63); +lean_ctor_set(x_65, 3, x_64); +lean_ctor_set_uint8(x_65, sizeof(void*)*4, x_27); +x_66 = lean_st_ref_set(x_3, x_65, x_55); +x_67 = lean_ctor_get(x_66, 1); +lean_inc(x_67); +lean_dec(x_66); +x_68 = lean_box(0); +x_69 = lean_apply_7(x_49, x_68, x_3, x_4, x_5, x_6, x_7, x_67); +return x_69; +} +} +else +{ +lean_object* x_70; lean_object* x_71; +lean_dec(x_48); +x_70 = lean_box(0); +x_71 = lean_apply_7(x_49, x_70, x_3, x_4, x_5, x_6, x_7, x_47); +return x_71; +} +} +} +else +{ +uint8_t x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_72 = lean_ctor_get_uint8(x_36, sizeof(void*)*4); +x_73 = lean_ctor_get(x_36, 0); +x_74 = lean_ctor_get(x_36, 1); +x_75 = lean_ctor_get(x_36, 2); +lean_inc(x_75); +lean_inc(x_74); +lean_inc(x_73); +lean_dec(x_36); +x_76 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_76, 0, x_73); +lean_ctor_set(x_76, 1, x_74); +lean_ctor_set(x_76, 2, x_75); +lean_ctor_set(x_76, 3, x_32); +lean_ctor_set_uint8(x_76, sizeof(void*)*4, x_72); +x_77 = lean_st_ref_set(x_3, x_76, x_37); +if (lean_obj_tag(x_31) == 0) +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +lean_dec(x_14); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_78 = lean_ctor_get(x_77, 1); +lean_inc(x_78); +if (lean_is_exclusive(x_77)) { + lean_ctor_release(x_77, 0); + lean_ctor_release(x_77, 1); + x_79 = x_77; +} else { + lean_dec_ref(x_77); + x_79 = lean_box(0); +} +x_80 = lean_box(x_27); +if (lean_is_scalar(x_79)) { + x_81 = lean_alloc_ctor(0, 2, 0); +} else { + x_81 = x_79; +} +lean_ctor_set(x_81, 0, x_80); +lean_ctor_set(x_81, 1, x_78); +return x_81; +} +else +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; +x_82 = lean_ctor_get(x_77, 1); +lean_inc(x_82); +lean_dec(x_77); +x_83 = lean_ctor_get(x_31, 0); +lean_inc(x_83); +lean_dec(x_31); +x_84 = l___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___lambda__2___closed__1; +x_85 = lean_name_eq(x_14, x_83); +lean_dec(x_14); +if (x_85 == 0) +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_86 = lean_st_ref_get(x_7, x_82); +x_87 = lean_ctor_get(x_86, 1); +lean_inc(x_87); +lean_dec(x_86); +x_88 = lean_st_ref_take(x_3, x_87); +x_89 = lean_ctor_get(x_88, 0); +lean_inc(x_89); +x_90 = lean_ctor_get(x_88, 1); +lean_inc(x_90); +lean_dec(x_88); +x_91 = lean_ctor_get(x_89, 1); +lean_inc(x_91); +x_92 = lean_ctor_get(x_89, 2); +lean_inc(x_92); +x_93 = lean_ctor_get(x_89, 3); +lean_inc(x_93); +if (lean_is_exclusive(x_89)) { + lean_ctor_release(x_89, 0); + lean_ctor_release(x_89, 1); + lean_ctor_release(x_89, 2); + lean_ctor_release(x_89, 3); + x_94 = x_89; +} else { + lean_dec_ref(x_89); + x_94 = lean_box(0); +} +if (lean_is_scalar(x_94)) { + x_95 = lean_alloc_ctor(0, 4, 1); +} else { + x_95 = x_94; +} +lean_ctor_set(x_95, 0, x_83); +lean_ctor_set(x_95, 1, x_91); +lean_ctor_set(x_95, 2, x_92); +lean_ctor_set(x_95, 3, x_93); +lean_ctor_set_uint8(x_95, sizeof(void*)*4, x_27); +x_96 = lean_st_ref_set(x_3, x_95, x_90); +x_97 = lean_ctor_get(x_96, 1); +lean_inc(x_97); +lean_dec(x_96); +x_98 = lean_box(0); +x_99 = lean_apply_7(x_84, x_98, x_3, x_4, x_5, x_6, x_7, x_97); +return x_99; +} +else +{ +lean_object* x_100; lean_object* x_101; +lean_dec(x_83); +x_100 = lean_box(0); +x_101 = lean_apply_7(x_84, x_100, x_3, x_4, x_5, x_6, x_7, x_82); +return x_101; +} +} +} +} +else +{ +uint8_t x_102; +lean_dec(x_14); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_102 = !lean_is_exclusive(x_28); +if (x_102 == 0) +{ +return x_28; +} +else +{ +lean_object* x_103; lean_object* x_104; lean_object* x_105; +x_103 = lean_ctor_get(x_28, 0); +x_104 = lean_ctor_get(x_28, 1); +lean_inc(x_104); +lean_inc(x_103); +lean_dec(x_28); +x_105 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_105, 0, x_103); +lean_ctor_set(x_105, 1, x_104); +return x_105; } } } @@ -3054,7 +3696,7 @@ if (x_12 == 0) { uint8_t x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; x_13 = 0; -lean_ctor_set_uint8(x_10, sizeof(void*)*3, x_13); +lean_ctor_set_uint8(x_10, sizeof(void*)*4, x_13); x_14 = lean_st_ref_set(x_1, x_10, x_11); x_15 = lean_ctor_get(x_14, 1); lean_inc(x_15); @@ -3083,7 +3725,7 @@ lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); lean_inc(x_22); -x_27 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4(x_24, x_22, x_25, x_22, x_26, x_24, x_1, x_2, x_3, x_4, x_5, x_20); +x_27 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5(x_24, x_22, x_25, x_22, x_26, x_24, x_1, x_2, x_3, x_4, x_5, x_20); lean_dec(x_22); if (lean_obj_tag(x_27) == 0) { @@ -3169,127 +3811,130 @@ return x_42; } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t 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_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t 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; x_43 = lean_ctor_get(x_10, 0); x_44 = lean_ctor_get(x_10, 1); x_45 = lean_ctor_get(x_10, 2); +x_46 = lean_ctor_get(x_10, 3); +lean_inc(x_46); lean_inc(x_45); lean_inc(x_44); lean_inc(x_43); lean_dec(x_10); -x_46 = 0; -x_47 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_47, 0, x_43); -lean_ctor_set(x_47, 1, x_44); -lean_ctor_set(x_47, 2, x_45); -lean_ctor_set_uint8(x_47, sizeof(void*)*3, x_46); -x_48 = lean_st_ref_set(x_1, x_47, x_11); -x_49 = lean_ctor_get(x_48, 1); -lean_inc(x_49); -lean_dec(x_48); -x_50 = lean_st_ref_get(x_5, x_49); -x_51 = lean_ctor_get(x_50, 1); -lean_inc(x_51); -lean_dec(x_50); -x_52 = lean_st_ref_get(x_1, x_51); -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -x_54 = lean_ctor_get(x_52, 1); +x_47 = 0; +x_48 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_48, 0, x_43); +lean_ctor_set(x_48, 1, x_44); +lean_ctor_set(x_48, 2, x_45); +lean_ctor_set(x_48, 3, x_46); +lean_ctor_set_uint8(x_48, sizeof(void*)*4, x_47); +x_49 = lean_st_ref_set(x_1, x_48, x_11); +x_50 = lean_ctor_get(x_49, 1); +lean_inc(x_50); +lean_dec(x_49); +x_51 = lean_st_ref_get(x_5, x_50); +x_52 = lean_ctor_get(x_51, 1); +lean_inc(x_52); +lean_dec(x_51); +x_53 = lean_st_ref_get(x_1, x_52); +x_54 = lean_ctor_get(x_53, 0); lean_inc(x_54); -lean_dec(x_52); x_55 = lean_ctor_get(x_53, 1); lean_inc(x_55); lean_dec(x_53); -x_56 = lean_array_get_size(x_55); -lean_dec(x_55); -x_57 = lean_box(0); -x_58 = l___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___closed__1; -x_59 = lean_unsigned_to_nat(0u); -x_60 = lean_unsigned_to_nat(1u); +x_56 = lean_ctor_get(x_54, 1); +lean_inc(x_56); +lean_dec(x_54); +x_57 = lean_array_get_size(x_56); +lean_dec(x_56); +x_58 = lean_box(0); +x_59 = l___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___closed__1; +x_60 = lean_unsigned_to_nat(0u); +x_61 = lean_unsigned_to_nat(1u); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -lean_inc(x_56); -x_61 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4(x_58, x_56, x_59, x_56, x_60, x_58, x_1, x_2, x_3, x_4, x_5, x_54); -lean_dec(x_56); -if (lean_obj_tag(x_61) == 0) +lean_inc(x_57); +x_62 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5(x_59, x_57, x_60, x_57, x_61, x_59, x_1, x_2, x_3, x_4, x_5, x_55); +lean_dec(x_57); +if (lean_obj_tag(x_62) == 0) { -lean_object* x_62; lean_object* x_63; -x_62 = lean_ctor_get(x_61, 0); -lean_inc(x_62); +lean_object* x_63; lean_object* x_64; x_63 = lean_ctor_get(x_62, 0); lean_inc(x_63); -lean_dec(x_62); -if (lean_obj_tag(x_63) == 0) -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_61, 1); +x_64 = lean_ctor_get(x_63, 0); lean_inc(x_64); -lean_dec(x_61); -x_65 = lean_box(0); -x_66 = l___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___lambda__2(x_57, x_65, x_1, x_2, x_3, x_4, x_5, x_64); -return x_66; -} -else -{ -lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_67 = lean_ctor_get(x_61, 1); -lean_inc(x_67); -if (lean_is_exclusive(x_61)) { - lean_ctor_release(x_61, 0); - lean_ctor_release(x_61, 1); - x_68 = x_61; -} else { - lean_dec_ref(x_61); - x_68 = lean_box(0); -} -x_69 = lean_ctor_get(x_63, 0); -lean_inc(x_69); lean_dec(x_63); -if (lean_is_scalar(x_68)) { - x_70 = lean_alloc_ctor(0, 2, 0); -} else { - x_70 = x_68; -} -lean_ctor_set(x_70, 0, x_69); -lean_ctor_set(x_70, 1, x_67); -return x_70; -} +if (lean_obj_tag(x_64) == 0) +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_62, 1); +lean_inc(x_65); +lean_dec(x_62); +x_66 = lean_box(0); +x_67 = l___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___lambda__2(x_58, x_66, x_1, x_2, x_3, x_4, x_5, x_65); +return x_67; } else { -lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_71 = lean_ctor_get(x_61, 0); -lean_inc(x_71); -x_72 = lean_ctor_get(x_61, 1); +x_68 = lean_ctor_get(x_62, 1); +lean_inc(x_68); +if (lean_is_exclusive(x_62)) { + lean_ctor_release(x_62, 0); + lean_ctor_release(x_62, 1); + x_69 = x_62; +} else { + lean_dec_ref(x_62); + x_69 = lean_box(0); +} +x_70 = lean_ctor_get(x_64, 0); +lean_inc(x_70); +lean_dec(x_64); +if (lean_is_scalar(x_69)) { + x_71 = lean_alloc_ctor(0, 2, 0); +} else { + x_71 = x_69; +} +lean_ctor_set(x_71, 0, x_70); +lean_ctor_set(x_71, 1, x_68); +return x_71; +} +} +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_72 = lean_ctor_get(x_62, 0); lean_inc(x_72); -if (lean_is_exclusive(x_61)) { - lean_ctor_release(x_61, 0); - lean_ctor_release(x_61, 1); - x_73 = x_61; +x_73 = lean_ctor_get(x_62, 1); +lean_inc(x_73); +if (lean_is_exclusive(x_62)) { + lean_ctor_release(x_62, 0); + lean_ctor_release(x_62, 1); + x_74 = x_62; } else { - lean_dec_ref(x_61); - x_73 = lean_box(0); + lean_dec_ref(x_62); + x_74 = lean_box(0); } -if (lean_is_scalar(x_73)) { - x_74 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_74)) { + x_75 = lean_alloc_ctor(1, 2, 0); } else { - x_74 = x_73; + x_75 = x_74; } -lean_ctor_set(x_74, 0, x_71); -lean_ctor_set(x_74, 1, x_72); -return x_74; +lean_ctor_set(x_75, 0, x_72); +lean_ctor_set(x_75, 1, x_73); +return x_75; } } } @@ -3307,11 +3952,32 @@ lean_dec(x_2); return x_8; } } -LEAN_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__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_EXPORT lean_object* l_Lean_mkFreshId___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_mkFreshId___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__2___rarg(x_1, x_2); +lean_dec(x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_mkFreshId___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_mkFreshId___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__2(x_1, x_2, x_3, x_4); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__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_addTrace___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__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_5); @@ -3320,22 +3986,22 @@ lean_dec(x_3); return x_9; } } -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___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* x_13, lean_object* x_14) { +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___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* x_13, lean_object* x_14) { _start: { lean_object* x_15; -x_15 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___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, x_14); +x_15 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___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, x_14); lean_dec(x_9); lean_dec(x_8); lean_dec(x_4); return x_15; } } -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__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) { +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__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, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; -x_13 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__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); +x_13 = l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5(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_7); lean_dec(x_5); lean_dec(x_4); @@ -3809,66 +4475,80 @@ lean_dec(x_10); x_18 = !lean_is_exclusive(x_17); if (x_18 == 0) { -lean_object* x_19; +lean_object* x_19; lean_object* x_20; lean_object* x_21; x_19 = lean_ctor_get(x_17, 0); +x_20 = lean_ctor_get(x_19, 3); +lean_inc(x_20); lean_dec(x_19); -lean_ctor_set(x_17, 0, x_13); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_13); +lean_ctor_set(x_21, 1, x_20); +lean_ctor_set(x_17, 0, x_21); return x_17; } else { -lean_object* x_20; lean_object* x_21; -x_20 = lean_ctor_get(x_17, 1); -lean_inc(x_20); +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_22 = lean_ctor_get(x_17, 0); +x_23 = lean_ctor_get(x_17, 1); +lean_inc(x_23); +lean_inc(x_22); lean_dec(x_17); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_13); -lean_ctor_set(x_21, 1, x_20); -return x_21; +x_24 = lean_ctor_get(x_22, 3); +lean_inc(x_24); +lean_dec(x_22); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_13); +lean_ctor_set(x_25, 1, x_24); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_23); +return x_26; } } else { -uint8_t x_22; +uint8_t x_27; lean_dec(x_10); lean_dec(x_5); -x_22 = !lean_is_exclusive(x_12); -if (x_22 == 0) +x_27 = !lean_is_exclusive(x_12); +if (x_27 == 0) { return x_12; } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_12, 0); -x_24 = lean_ctor_get(x_12, 1); -lean_inc(x_24); -lean_inc(x_23); +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_12, 0); +x_29 = lean_ctor_get(x_12, 1); +lean_inc(x_29); +lean_inc(x_28); lean_dec(x_12); -x_25 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_25, 0, x_23); -lean_ctor_set(x_25, 1, x_24); -return x_25; +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +return x_30; } } } } -LEAN_EXPORT lean_object* l_Lean_Meta_simpAll(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_EXPORT lean_object* l_Lean_Meta_simpAll(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: { -uint8_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_8 = 0; -x_9 = l_Lean_Meta_SimpAll_State_entries___default___closed__1; +uint8_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_9 = 0; +x_10 = l_Lean_Meta_SimpAll_State_entries___default___closed__1; lean_inc(x_1); -x_10 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_10, 0, x_1); -lean_ctor_set(x_10, 1, x_9); -lean_ctor_set(x_10, 2, x_2); -lean_ctor_set_uint8(x_10, sizeof(void*)*3, x_8); -x_11 = lean_alloc_closure((void*)(l_Lean_Meta_simpAll___lambda__1), 6, 1); -lean_closure_set(x_11, 0, x_10); -x_12 = l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(x_1, x_11, x_3, x_4, x_5, x_6, x_7); -return x_12; +x_11 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_11, 0, x_1); +lean_ctor_set(x_11, 1, x_10); +lean_ctor_set(x_11, 2, x_2); +lean_ctor_set(x_11, 3, x_3); +lean_ctor_set_uint8(x_11, sizeof(void*)*4, x_9); +x_12 = lean_alloc_closure((void*)(l_Lean_Meta_simpAll___lambda__1), 6, 1); +lean_closure_set(x_12, 0, x_11); +x_13 = l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(x_1, x_12, x_4, x_5, x_6, x_7, x_8); +return x_13; } } lean_object* initialize_Init(uint8_t builtin, lean_object*); @@ -3903,62 +4583,60 @@ l_Lean_Meta_SimpAll_State_entries___default___closed__1 = _init_l_Lean_Meta_Simp lean_mark_persistent(l_Lean_Meta_SimpAll_State_entries___default___closed__1); l_Lean_Meta_SimpAll_State_entries___default = _init_l_Lean_Meta_SimpAll_State_entries___default(); lean_mark_persistent(l_Lean_Meta_SimpAll_State_entries___default); -l_Array_forInUnsafe_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_initEntries___spec__3___closed__1 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_initEntries___spec__3___closed__1(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_initEntries___spec__3___closed__1); -l_Array_forInUnsafe_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_initEntries___spec__3___closed__2 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_initEntries___spec__3___closed__2(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_initEntries___spec__3___closed__2); +l_Lean_Meta_SimpAll_State_usedSimps___default = _init_l_Lean_Meta_SimpAll_State_usedSimps___default(); +lean_mark_persistent(l_Lean_Meta_SimpAll_State_usedSimps___default); l___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_initEntries___closed__1 = _init_l___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_initEntries___closed__1(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_initEntries___closed__1); l___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_initEntries___closed__2 = _init_l___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_initEntries___closed__2(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_initEntries___closed__2); l_Lean_isTracingEnabledFor___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__1___closed__1 = _init_l_Lean_isTracingEnabledFor___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__1___closed__1(); lean_mark_persistent(l_Lean_isTracingEnabledFor___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__1___closed__1); -l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__1 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__1(); -lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__1); -l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__2 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__2(); -lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__2); -l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__3 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__3(); -lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__3); -l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__4 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__4(); -lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__4); -l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__5 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__5(); -lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__5); -l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__6 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__6(); -lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__6); -l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__7 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__7(); -lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__7); -l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__8 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__8(); -lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__8); -l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__9 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__9(); -lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__9); -l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__10 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__10(); -lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__10); -l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__11 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__11(); -lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__11); -l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__12 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__12(); -lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__12); -l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__13 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__13(); -lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__13); -l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__14 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__14(); -lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__14); -l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__15 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__15(); -lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__15); -l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__16 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__16(); -lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__16); -l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__17 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__17(); -lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__17); -l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__18 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__18(); -lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__18); -l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__19 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__19(); -lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__19); -l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__20 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__20(); -lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__20); -l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__21 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__21(); -lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__21); -l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__22 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__22(); -lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__22); -l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__23 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__23(); -lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__4___closed__23); +l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__1 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__1(); +lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__1); +l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__2 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__2(); +lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__2); +l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__3 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__3(); +lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__3); +l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__4 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__4(); +lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__4); +l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__5 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__5(); +lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__5); +l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__6 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__6(); +lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__6); +l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__7 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__7(); +lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__7); +l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__8 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__8(); +lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__8); +l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__9 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__9(); +lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__9); +l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__10 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__10(); +lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__10); +l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__11 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__11(); +lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__11); +l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__12 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__12(); +lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__12); +l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__13 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__13(); +lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__13); +l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__14 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__14(); +lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__14); +l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__15 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__15(); +lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__15); +l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__16 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__16(); +lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__16); +l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__17 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__17(); +lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__17); +l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__18 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__18(); +lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__18); +l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__19 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__19(); +lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__19); +l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__20 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__20(); +lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__20); +l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__21 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__21(); +lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__21); +l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__22 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__22(); +lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__22); +l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__23 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__23(); +lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__5___closed__23); l___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___lambda__2___closed__1 = _init_l___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___lambda__2___closed__1(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___lambda__2___closed__1); l___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___closed__1 = _init_l___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___closed__1(); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Simp/SimpTheorems.c b/stage0/stdlib/Lean/Meta/Tactic/Simp/SimpTheorems.c index efd0b2cdae..6dbf1edf4a 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Simp/SimpTheorems.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Simp/SimpTheorems.c @@ -13,20 +13,17 @@ #ifdef __cplusplus extern "C" { #endif -LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorem_getName___boxed(lean_object*); lean_object* l_List_reverse___rarg(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_SimpTheorems_addDeclToUnfold___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_SimpTheorems_erase___rarg___closed__2; static lean_object* l_Lean_Meta_mkSimpAttr___lambda__1___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_pre___default; static lean_object* l_Lean_Parser_Command_registerSimpAttr___closed__12; -LEAN_EXPORT lean_object* l_Std_mkHashMap___at_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4730____spec__1___boxed(lean_object*); lean_object* l_Lean_ScopedEnvExtension_modifyState___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__28; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__14; lean_object* l_Lean_Meta_mkPropExt(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_SimpTheorems_toUnfoldThms___default___closed__2; -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__16; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__5; LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_erase___at_Lean_Meta_mkSimpAttr___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_add(size_t, size_t); @@ -34,6 +31,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_isLemma___boxed(lean_object*, LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_erase___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentHashMap_insert___at_Lean_Meta_addSimpTheoremEntry___spec__5(lean_object*, lean_object*, lean_object*); lean_object* l_panic___at_Lean_Meta_DiscrTree_insertCore___spec__1(lean_object*); +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__13; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__78; LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheoremsArray_isDeclToUnfold___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_getSimpTheorems(lean_object*, lean_object*, lean_object*); @@ -42,6 +40,7 @@ lean_object* l_Lean_stringToMessageData(lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__29; LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_addDeclToUnfold___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_SimpTheorems_eraseCore___spec__1(lean_object*, size_t, size_t, lean_object*); +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__23; LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_erase___at_Lean_Meta_mkSimpAttr___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_SimpTheorems_eraseCore___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -50,8 +49,6 @@ lean_object* lean_nat_div(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkForallFVars(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__25; static lean_object* l_Lean_Meta_SimpTheorems_erase___rarg___closed__4; -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__7; -lean_object* l_Lean_LocalDecl_userName(lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__86; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__97; lean_object* l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -63,15 +60,14 @@ LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Simp_ static lean_object* l_Lean_Meta_mkSimpAttr___lambda__1___closed__13; LEAN_EXPORT lean_object* l_Lean_Meta_SimpExtension_getTheorems(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__42; -LEAN_EXPORT lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4766_; -LEAN_EXPORT lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154_; +LEAN_EXPORT lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4717_; +LEAN_EXPORT lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105_; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__53; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__100; static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___closed__6; LEAN_EXPORT lean_object* l_Lean_Meta_addSimpTheoremEntry_updateLemmaNames(lean_object*, lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__91; lean_object* l_Lean_Meta_mkAppM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__12; static lean_object* l_Lean_Meta_SimpTheorems_erase___rarg___closed__1; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__103; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); @@ -84,7 +80,6 @@ static lean_object* l_Lean_Meta_mkSimpAttr___lambda__1___closed__6; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__93; LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_erase___at_Lean_Meta_mkSimpAttr___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addSimpTheorem___spec__1___closed__4; -LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorem_getName(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertVal___at_Lean_Meta_addSimpTheoremEntry___spec__10(lean_object*, lean_object*); size_t lean_usize_sub(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Meta_addSimpTheorem(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -94,14 +89,12 @@ LEAN_EXPORT uint8_t l_Lean_Meta_instBEqSimpTheorem(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Meta_SimpTheoremsArray_isDeclToUnfold(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorem_priority___default; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__8; lean_object* l___private_Lean_Data_HashMap_0__Std_numBucketsForCapacity(lean_object*); lean_object* l_Lean_Meta_DiscrTree_whnfDT(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_id___rarg___boxed(lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__68; LEAN_EXPORT lean_object* l_Std_AssocList_replace___at_Lean_Meta_registerSimpAttr___spec__6(lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__4; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__90; static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addSimpTheorem___spec__1___closed__8; LEAN_EXPORT uint8_t l_Lean_Meta_SimpTheorems_isDeclToUnfold(lean_object*, lean_object*); @@ -111,14 +104,15 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_ static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__102; uint8_t lean_name_eq(lean_object*, lean_object*); uint8_t l_Lean_Expr_isApp(lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__9; +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__8; LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_addSimpTheoremEntry___spec__12(lean_object*, lean_object*, size_t, size_t); lean_object* l_Lean_mkIdentFrom(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___closed__2; lean_object* l_Lean_Expr_appFn_x21(lean_object*); +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__17; lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___aux__Init__Notation______macroRules__precMax__1___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Meta_mkSimpAttr___lambda__1___closed__8; -LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_add(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_add(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentHashMap_findAtAux___at_Lean_Meta_addSimpTheoremEntry___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DiscrTree_instInhabitedDiscrTree(lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__3___closed__5; @@ -136,13 +130,12 @@ static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems___ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_SimpTheoremsArray_eraseTheorem___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getConstInfo___at___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__52; +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__27; uint8_t l_ptrEqList___rarg(lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__20; static lean_object* l_Lean_Meta_mkSimpAttr___lambda__1___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__9; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__62; -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__10; -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__32; LEAN_EXPORT lean_object* l_Lean_Meta_mkSimpAttr___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__54; LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_SimpTheoremsArray_isDeclToUnfold___spec__1(lean_object*, lean_object*, size_t, size_t); @@ -159,15 +152,14 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkSimpAttr___sp lean_object* lean_string_utf8_byte_size(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_isRflProof(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_shouldPreprocess___closed__1; -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__5; LEAN_EXPORT lean_object* l_Std_AssocList_contains___at_Lean_Meta_registerSimpAttr___spec__2___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__87; +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__2; static lean_object* l_Lean_Meta_instInhabitedSimpTheorems___closed__2; uint8_t lean_usize_dec_lt(size_t, size_t); -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__28; -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__14; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_checkTypeIsProp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_addDeclToUnfoldCore(lean_object*, lean_object*); +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__21; static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___closed__4; lean_object* lean_nat_add(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___closed__1; @@ -178,19 +170,14 @@ static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems___ LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_erase(lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__95; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__79; -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__30; -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__15; LEAN_EXPORT uint8_t l_Array_contains___at_Lean_Meta_addSimpTheoremEntry___spec__11(lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__18; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__3; lean_object* l_Lean_mkAppN(lean_object*, lean_object*); lean_object* l_List_mapM_loop___at___private_Lean_Meta_AppBuilder_0__Lean_Meta_mkFun___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_uint64_to_usize(uint64_t); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__5; uint8_t l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_90_(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Std_PersistentHashMap_contains___at_Lean_Meta_SimpTheorems_erase___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__16; -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__29; +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__19; static lean_object* l_Lean_Parser_Command_registerSimpAttr___closed__16; LEAN_EXPORT lean_object* l_Std_HashMap_insert___at_Lean_Meta_registerSimpAttr___spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_mkSimpAttr___spec__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -209,10 +196,10 @@ lean_object* lean_array_fget(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_addSimpTheoremEntry___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkEqFalse(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Std_PersistentHashMap_containsAtAux___at_Lean_Meta_SimpTheorems_erase___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__11; static lean_object* l_Lean_Meta_instToFormatSimpTheorem___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_toUnfoldThms___default; LEAN_EXPORT lean_object* l_Lean_Meta_instBEqSimpTheorem___boxed(lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__25; static lean_object* l_Lean_Meta_SimpTheorems_toUnfoldThms___default___closed__3; static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___closed__7; lean_object* l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(lean_object*, lean_object*); @@ -226,7 +213,6 @@ lean_object* l_Std_PersistentHashMap_insert___at_Lean_NameSSet_insert___spec__2( static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__10; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__32; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__98; -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__24; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__73; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocessProof(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__20; @@ -235,10 +221,9 @@ LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_addDeclToUnfold___lambda__1___ lean_object* l_Array_insertAt_x21___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_addSimpTheoremEntry___spec__8(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__6; -LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_add_getName_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__84; static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___closed__3; +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__4; static lean_object* l_Lean_Meta_SimpTheorems_addDeclToUnfold___closed__1; LEAN_EXPORT uint8_t l_Lean_Meta_SimpTheorems_isLemma(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -249,7 +234,6 @@ LEAN_EXPORT lean_object* l_Std_PersistentHashMap_find_x3f___at_Lean_Meta_addSimp LEAN_EXPORT lean_object* l_Lean_Meta_simpExtension; static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore___lambda__2___closed__1; static size_t l_Std_PersistentHashMap_findAux___at_Lean_Meta_addSimpTheoremEntry___spec__3___closed__1; -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__3; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__40; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__67; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__45; @@ -257,11 +241,12 @@ static lean_object* l_Lean_Meta_instToFormatSimpTheorem___closed__6; static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore___lambda__2___closed__2; lean_object* l_Lean_Name_toString(lean_object*, uint8_t); static lean_object* l_Lean_Parser_Command_registerSimpAttr___closed__3; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_mkSimpTheorems___spec__1(lean_object*, uint8_t, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_mkSimpTheorems___spec__1(lean_object*, lean_object*, uint8_t, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_AssocList_find_x3f___at_Lean_Meta_getSimpExtension_x3f___spec__2___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addSimpTheoremEntry___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__26; static size_t l_Std_PersistentHashMap_findAux___at_Lean_Meta_addSimpTheoremEntry___spec__3___closed__2; lean_object* l_Lean_throwError___at_Lean_registerTagAttribute___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); @@ -269,7 +254,6 @@ lean_object* l_Std_mkHashMapImp___rarg(lean_object*); LEAN_EXPORT lean_object* l_Std_AssocList_find_x3f___at_Lean_Meta_getSimpExtension_x3f___spec__2(lean_object*, lean_object*); lean_object* l_panic___at_Lean_Expr_getRevArg_x21___spec__1(lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentHashMap_contains___at_Lean_Meta_SimpTheorems_erase___spec__1___boxed(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__6; LEAN_EXPORT lean_object* l_Lean_Meta_getSimpTheorems___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__51; static lean_object* l_Lean_Meta_mkSimpExt___closed__1; @@ -278,17 +262,15 @@ static lean_object* l_Lean_Meta_isRflProofCore___closed__6; static lean_object* l_Lean_Parser_Command_registerSimpAttr___closed__5; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__69; static lean_object* l_Lean_Meta_getSimpTheorems___closed__1; +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__12; lean_object* l_Nat_repr(lean_object*); static lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addSimpTheoremEntry___spec__1___closed__7; -static lean_object* l_Lean_Meta_SimpTheorem_getName___closed__1; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__77; -static lean_object* l_Lean_Meta_SimpTheorem_getName___closed__2; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__85; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__66; lean_object* lean_st_mk_ref(lean_object*, lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__56; LEAN_EXPORT lean_object* l_Lean_Meta_mkSimpExt___lambda__1(lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__22; lean_object* l_Lean_Syntax_getId(lean_object*); extern lean_object* l_Lean_Expr_instHashableExpr; static lean_object* l_Lean_Meta_mkSimpAttr___lambda__1___closed__11; @@ -306,15 +288,15 @@ size_t lean_usize_shift_left(size_t, size_t); lean_object* l_Lean_Meta_mkAuxLemma(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_InfoCacheKey_instHashableInfoCacheKey___boxed(lean_object*); static lean_object* l_Lean_Parser_Command_registerSimpAttr___closed__10; +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__31; LEAN_EXPORT uint8_t l_Std_PersistentHashMap_containsAux___at_Lean_Meta_SimpTheorems_erase___spec__2(lean_object*, size_t, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__7; lean_object* l_Lean_Syntax_mkStrLit(lean_object*, lean_object*); uint8_t l_Lean_Expr_isAppOfArity(lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__8; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__82; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__11; static lean_object* l_Lean_Meta_isRflProofCore___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_isPerm___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__17; static lean_object* l_Lean_Meta_isRflProofCore___closed__2; static lean_object* l_Lean_Parser_Command_registerSimpAttr___closed__6; static lean_object* l_Lean_Meta_SimpTheorem_getValue___closed__4; @@ -326,13 +308,11 @@ lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_ uint8_t l_Lean_Expr_isConst(lean_object*); uint8_t l_Array_isEmpty___rarg(lean_object*); static lean_object* l_Lean_Meta_instToFormatSimpTheorem___closed__5; -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__21; LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_isDeclToUnfold___boxed(lean_object*, lean_object*); uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_SimpExtension_getTheorems___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__1; -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4730_(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4681_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821_(lean_object*); size_t lean_usize_mul(size_t, size_t); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__75; lean_object* l_Lean_Expr_bvar___override(lean_object*); @@ -390,11 +370,10 @@ LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_erased___default; static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_checkTypeIsProp___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__3___closed__4; -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__13; LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorem_getValue(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__6; lean_object* l_String_intercalate(lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__23; +LEAN_EXPORT lean_object* l_Std_mkHashMap___at_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4681____spec__1___boxed(lean_object*); lean_object* l_List_redLength___rarg(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore___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*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__46; @@ -406,6 +385,7 @@ static lean_object* l_Lean_Meta_mkSimpAttr___lambda__1___closed__9; static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__3___closed__8; static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__1___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheoremsArray_eraseTheorem(lean_object*, lean_object*); +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__7; LEAN_EXPORT lean_object* l_Lean_Parser_Command_registerSimpAttr; LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_SimpTheoremsArray_isErased___spec__1(lean_object*, lean_object*, size_t, size_t); lean_object* l_Lean_Meta_whnfR(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -419,9 +399,9 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_ static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__72; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__88; +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__16; uint8_t lean_nat_dec_le(lean_object*, lean_object*); uint8_t lean_usize_dec_le(size_t, size_t); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__7; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__38; static lean_object* l_Lean_Meta_isRflProofCore___closed__7; static lean_object* l_Lean_Meta_mkSimpAttr___lambda__1___closed__10; @@ -430,15 +410,14 @@ LEAN_EXPORT lean_object* l_Lean_Meta_registerSimpAttr(lean_object*, lean_object* static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___closed__10; LEAN_EXPORT lean_object* l_Lean_Meta_withLetDecl___at___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_isPerm___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_append(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorem_name_x3f___default; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__36; -LEAN_EXPORT lean_object* l_Std_mkHashMap___at_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4730____spec__1(lean_object*); lean_object* l_Lean_Syntax_getKind(lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__2___closed__3; -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__2; static lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__9___closed__1; lean_object* l_Lean_quoteNameMk(lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__5; lean_object* l_Lean_TSyntax_getDocString(lean_object*); +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__24; static lean_object* l_Lean_Parser_Command_registerSimpAttr___closed__14; static lean_object* l_Lean_Meta_SimpTheorems_pre___default___closed__1; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__61; @@ -451,19 +430,25 @@ lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_SynthInstance_0_ static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__80; static lean_object* l_Lean_Parser_Command_registerSimpAttr___closed__21; static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__1___closed__2; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__3; static lean_object* l_Lean_Parser_Command_registerSimpAttr___closed__13; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__50; static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addSimpTheorem___spec__1___closed__5; static lean_object* l_Lean_Meta_mkSimpExt___closed__2; +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__20; uint8_t l_Lean_Meta_DiscrTree_Key_lt(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_SimpTheoremsArray_eraseTheorem___spec__1(lean_object*, size_t, size_t, lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__99; static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__3___closed__1; +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__32; +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__10; lean_object* l_List_mapTRAux___at_Lean_mkConstWithLevelParams___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocessProof___spec__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_getSimpExtension_x3f(lean_object*, lean_object*); static lean_object* l_Lean_Parser_Command_registerSimpAttr___closed__9; lean_object* lean_nat_mul(lean_object*, lean_object*); +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__1; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__6; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__27; LEAN_EXPORT lean_object* l_Lean_Meta_instToMessageDataSimpTheorem(lean_object*); lean_object* l_Lean_Syntax_mkNameLit(lean_object*, lean_object*); @@ -473,9 +458,7 @@ static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addSimpTheorem_ static lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__9___closed__3; static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__3___closed__3; lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_add_getName_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isFVar(lean_object*); -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__26; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); static lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addSimpTheoremEntry___spec__1___closed__1; lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -499,9 +482,11 @@ lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, l LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_addSimpTheorem___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addSimpTheoremEntry___spec__1___closed__2; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__57; +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__3; static lean_object* l_Lean_Meta_isRflProofCore___closed__5; LEAN_EXPORT lean_object* l_Array_binInsertM___at_Lean_Meta_addSimpTheoremEntry___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_panic_fn(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_mkHashMap___at_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4681____spec__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_mkSimpAttr___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_shouldPreprocess___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -519,8 +504,8 @@ lean_object* lean_mk_array(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocessProof___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__34; static lean_object* l_Lean_Meta_instToFormatSimpTheorem___closed__2; +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__30; uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_toUnfold___default; static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkSimpAttr___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -531,10 +516,14 @@ extern lean_object* l_Lean_Expr_instBEqExpr; static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___closed__9; LEAN_EXPORT lean_object* l_Std_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__6(lean_object*, size_t, size_t, lean_object*, lean_object*); static lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addSimpTheoremEntry___spec__1___closed__5; +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__5; static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addSimpTheorem___spec__1___closed__2; +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__14; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__13; lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_openAbstractMVarsResult___spec__1(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__9; LEAN_EXPORT uint8_t l_Std_AssocList_contains___at_Lean_Meta_registerSimpAttr___spec__2(lean_object*, lean_object*); +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__28; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocessProof___spec__1(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremsFromConst(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ScopedEnvExtension_addEntry___rarg(lean_object*, lean_object*, lean_object*); @@ -544,14 +533,12 @@ static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems___ static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addSimpTheorem___spec__1___closed__6; lean_object* l_Lean_Expr_instantiateLevelParamsCore_visit___at_Lean_Expr_instantiateLevelParamsArray___spec__1(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__89; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__1; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__4; lean_object* l_Lean_Expr_proj___override(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_addConst___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__27; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__74; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__47; static lean_object* l_Lean_Parser_Command_registerSimpAttr___closed__8; -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__9; LEAN_EXPORT lean_object* l_List_mapM_loop___at___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Meta_SimpTheorem_post___default; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__6(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -561,10 +548,12 @@ static lean_object* l_Lean_Parser_Command_registerSimpAttr___closed__4; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); static lean_object* l_Lean_Meta_instToFormatSimpTheorem___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__2; static lean_object* l_Lean_Meta_isRflProofCore___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheoremsArray_addTheorem(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_mkSimpAttr___lambda__1___closed__7; LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_addConst(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__8; lean_object* l_Lean_Expr_getAppFn(lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__15; LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_erase___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); @@ -579,7 +568,6 @@ static lean_object* l_Lean_Meta_SimpTheorem_getValue___closed__3; static lean_object* l_Std_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__6___closed__1; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__18; static lean_object* l_Lean_Meta_mkSimpAttr___lambda__1___closed__12; -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__19; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__24; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__63; LEAN_EXPORT lean_object* l_Std_AssocList_foldlM___at_Lean_Meta_registerSimpAttr___spec__5(lean_object*, lean_object*); @@ -588,9 +576,9 @@ LEAN_EXPORT lean_object* l_Lean_Meta_instToFormatSimpTheorem(lean_object*); uint8_t l_List_isEmpty___rarg(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Command_registerSimpAttr___closed__19; -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__4; LEAN_EXPORT lean_object* l_Lean_Meta_addSimpTheorem___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_usize_to_nat(size_t); +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__6; lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withLetDeclImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_insert___at_Lean_Meta_getEqnsFor_x3f___spec__4(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -601,10 +589,10 @@ lean_object* l_Std_PersistentHashMap_find_x3f___at_Lean_Meta_getEqnsFor_x3f___sp lean_object* l_Lean_Meta_isProp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__3; -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_indentExpr(lean_object*); +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__25; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__11; LEAN_EXPORT lean_object* l_Lean_Meta_addSimpTheoremEntry(lean_object*, lean_object*); static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__76; LEAN_EXPORT lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addSimpTheorem___spec__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -614,10 +602,9 @@ LEAN_EXPORT lean_object* l_Std_PersistentHashMap_findAtAux___at_Lean_Meta_addSim static lean_object* l_Lean_Parser_Command_registerSimpAttr___closed__1; LEAN_EXPORT lean_object* l_Std_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addSimpTheoremEntry___spec__7(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_constName_x21(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_mkSimpTheorems(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_mkSimpTheorems(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_mkSimpAttr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__31; static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___closed__11; lean_object* l_Std_PersistentHashMap_mkEmptyEntries(lean_object*, lean_object*); lean_object* l_List_appendTR___rarg(lean_object*, lean_object*); @@ -629,9 +616,11 @@ LEAN_EXPORT lean_object* l_Std_PersistentHashMap_containsAux___at_Lean_Meta_Simp static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__8; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__94; static lean_object* l_Lean_Meta_mkSimpAttr___lambda__1___closed__14; +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__29; static lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__9___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_instInhabitedSimpEntry; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__17; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__1; static lean_object* l_Lean_Meta_instInhabitedSimpEntry___closed__1; static lean_object* l_Lean_Parser_Command_registerSimpAttr___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_mkSimpAttr___lambda__2___boxed(lean_object*, lean_object*); @@ -642,6 +631,7 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_addSimpTheorem_ lean_object* l_Lean_Meta_DiscrTree_empty(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheoremsArray_isErased___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorem_levelParams___default; +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__22; lean_object* l_Std_PersistentHashMap_mkCollisionNode___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_addSimpTheoremEntry___spec__1___closed__8; static lean_object* l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__37; @@ -649,7 +639,8 @@ LEAN_EXPORT lean_object* l_List_forIn_loop___at___private_Lean_Meta_Tactic_Simp_ static lean_object* l_Lean_Meta_instInhabitedSimpTheorem___closed__1; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__7(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_Meta_getFVarLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__18; +static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__15; static lean_object* l_Lean_Meta_mkSimpAttr___lambda__1___closed__3; static lean_object* _init_l_Lean_Meta_SimpTheorem_keys___default___closed__1() { _start: @@ -700,14 +691,6 @@ x_1 = 0; return x_1; } } -static lean_object* _init_l_Lean_Meta_SimpTheorem_name_x3f___default() { -_start: -{ -lean_object* x_1; -x_1 = lean_box(0); -return x_1; -} -} static lean_object* _init_l_Lean_Meta_instInhabitedSimpTheorem___closed__1() { _start: { @@ -720,21 +703,21 @@ return x_2; static lean_object* _init_l_Lean_Meta_instInhabitedSimpTheorem___closed__2() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6; -x_1 = lean_box(0); -x_2 = l_Lean_Meta_SimpTheorem_keys___default___closed__1; -x_3 = l_Lean_Meta_instInhabitedSimpTheorem___closed__1; -x_4 = lean_unsigned_to_nat(0u); -x_5 = 0; +lean_object* x_1; lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; +x_1 = l_Lean_Meta_SimpTheorem_keys___default___closed__1; +x_2 = l_Lean_Meta_instInhabitedSimpTheorem___closed__1; +x_3 = lean_unsigned_to_nat(0u); +x_4 = 0; +x_5 = lean_box(0); x_6 = lean_alloc_ctor(0, 5, 3); -lean_ctor_set(x_6, 0, x_2); -lean_ctor_set(x_6, 1, x_2); -lean_ctor_set(x_6, 2, x_3); -lean_ctor_set(x_6, 3, x_4); -lean_ctor_set(x_6, 4, x_1); -lean_ctor_set_uint8(x_6, sizeof(void*)*5, x_5); -lean_ctor_set_uint8(x_6, sizeof(void*)*5 + 1, x_5); -lean_ctor_set_uint8(x_6, sizeof(void*)*5 + 2, x_5); +lean_ctor_set(x_6, 0, x_1); +lean_ctor_set(x_6, 1, x_1); +lean_ctor_set(x_6, 2, x_2); +lean_ctor_set(x_6, 3, x_3); +lean_ctor_set(x_6, 4, x_5); +lean_ctor_set_uint8(x_6, sizeof(void*)*5, x_4); +lean_ctor_set_uint8(x_6, sizeof(void*)*5 + 1, x_4); +lean_ctor_set_uint8(x_6, sizeof(void*)*5 + 2, x_4); return x_6; } } @@ -746,53 +729,6 @@ x_1 = l_Lean_Meta_instInhabitedSimpTheorem___closed__2; return x_1; } } -static lean_object* _init_l_Lean_Meta_SimpTheorem_getName___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("", 9); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_SimpTheorem_getName___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_SimpTheorem_getName___closed__1; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorem_getName(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_ctor_get(x_1, 4); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_3; -x_3 = l_Lean_Meta_SimpTheorem_getName___closed__2; -return x_3; -} -else -{ -lean_object* x_4; -x_4 = lean_ctor_get(x_2, 0); -lean_inc(x_4); -return x_4; -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorem_getName___boxed(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_Lean_Meta_SimpTheorem_getName(x_1); -lean_dec(x_1); -return x_2; -} -} static lean_object* _init_l_Lean_Meta_isRflProofCore___closed__1() { _start: { @@ -1231,7 +1167,8 @@ _start: { uint8_t x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; x_2 = lean_ctor_get_uint8(x_1, sizeof(void*)*5 + 1); -x_3 = l_Lean_Meta_SimpTheorem_getName(x_1); +x_3 = lean_ctor_get(x_1, 4); +lean_inc(x_3); x_4 = 1; x_5 = l_Lean_Name_toString(x_3, x_4); x_6 = lean_alloc_ctor(2, 1, 0); @@ -1277,7 +1214,8 @@ _start: { uint8_t x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; x_2 = lean_ctor_get_uint8(x_1, sizeof(void*)*5 + 1); -x_3 = l_Lean_Meta_SimpTheorem_getName(x_1); +x_3 = lean_ctor_get(x_1, 4); +lean_inc(x_3); x_4 = 1; x_5 = l_Lean_Name_toString(x_3, x_4); x_6 = lean_alloc_ctor(2, 1, 0); @@ -1469,24 +1407,13 @@ return x_1; LEAN_EXPORT lean_object* l_Lean_Meta_addSimpTheoremEntry_updateLemmaNames(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_3; +lean_object* x_3; lean_object* x_4; lean_object* x_5; x_3 = lean_ctor_get(x_1, 4); lean_inc(x_3); lean_dec(x_1); -if (lean_obj_tag(x_3) == 0) -{ -return x_2; -} -else -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_4 = lean_ctor_get(x_3, 0); -lean_inc(x_4); -lean_dec(x_3); -x_5 = lean_box(0); -x_6 = l_Std_PersistentHashMap_insert___at_Lean_NameSSet_insert___spec__2(x_2, x_4, x_5); -return x_6; -} +x_4 = lean_box(0); +x_5 = l_Std_PersistentHashMap_insert___at_Lean_NameSSet_insert___spec__2(x_2, x_3, x_4); +return x_5; } } LEAN_EXPORT lean_object* l_Std_PersistentHashMap_findAtAux___at_Lean_Meta_addSimpTheoremEntry___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { @@ -8536,7 +8463,7 @@ return x_179; } } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t 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; @@ -8544,7 +8471,7 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_12 = lean_infer_type(x_1, x_7, x_8, x_9, x_10, x_11); +x_12 = lean_infer_type(x_2, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(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; @@ -8560,15 +8487,15 @@ x_17 = lean_ctor_get(x_15, 1); lean_inc(x_17); lean_dec(x_15); x_18 = lean_box(0); -x_19 = lean_box(x_4); +x_19 = lean_box(x_5); x_20 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore___lambda__2___boxed), 12, 7); lean_closure_set(x_20, 0, x_16); lean_closure_set(x_20, 1, x_18); -lean_closure_set(x_20, 2, x_3); -lean_closure_set(x_20, 3, x_2); -lean_closure_set(x_20, 4, x_5); +lean_closure_set(x_20, 2, x_4); +lean_closure_set(x_20, 3, x_3); +lean_closure_set(x_20, 4, x_6); lean_closure_set(x_20, 5, x_19); -lean_closure_set(x_20, 6, x_6); +lean_closure_set(x_20, 6, x_1); x_21 = l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Meta_WHNF_0__Lean_Meta_toCtorWhenK___spec__1___rarg(x_20, x_7, x_8, x_9, x_10, x_17); return x_21; } @@ -8580,9 +8507,9 @@ 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); x_22 = !lean_is_exclusive(x_12); if (x_22 == 0) { @@ -8641,9 +8568,9 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_ _start: { uint8_t x_12; lean_object* x_13; -x_12 = lean_unbox(x_4); -lean_dec(x_4); -x_13 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore(x_1, x_2, x_3, x_12, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_12 = lean_unbox(x_5); +lean_dec(x_5); +x_13 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore(x_1, x_2, x_3, x_4, x_12, x_6, x_7, x_8, x_9, x_10, x_11); return x_13; } } @@ -8686,7 +8613,7 @@ lean_inc(x_4); x_19 = l_Lean_Meta_mkAuxLemma(x_4, x_18, x_17, x_9, x_10, x_11, x_12, x_13); if (lean_obj_tag(x_19) == 0) { -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_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); x_21 = lean_ctor_get(x_19, 1); @@ -8697,33 +8624,31 @@ lean_inc(x_20); x_22 = l_Lean_Expr_const___override(x_20, x_6); lean_inc(x_5); x_23 = l_Lean_Expr_const___override(x_20, x_5); -lean_inc(x_1); -x_24 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_24, 0, x_1); -x_25 = l_Lean_Meta_SimpTheorem_keys___default___closed__1; +x_24 = l_Lean_Meta_SimpTheorem_keys___default___closed__1; lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_3); -x_26 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore(x_22, x_25, x_23, x_2, x_3, x_24, x_9, x_10, x_11, x_12, x_21); -if (lean_obj_tag(x_26) == 0) +lean_inc(x_1); +x_25 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore(x_1, x_22, x_24, x_23, x_2, x_3, x_9, x_10, x_11, x_12, x_21); +if (lean_obj_tag(x_25) == 0) { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_26, 0); +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); -x_28 = lean_ctor_get(x_26, 1); -lean_inc(x_28); -lean_dec(x_26); -x_29 = lean_array_push(x_8, x_27); +lean_dec(x_25); +x_28 = lean_array_push(x_8, x_26); x_7 = x_16; -x_8 = x_29; -x_13 = x_28; +x_8 = x_28; +x_13 = x_27; goto _start; } else { -uint8_t x_31; +uint8_t x_30; lean_dec(x_16); lean_dec(x_12); lean_dec(x_11); @@ -8735,29 +8660,29 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_31 = !lean_is_exclusive(x_26); -if (x_31 == 0) +x_30 = !lean_is_exclusive(x_25); +if (x_30 == 0) { -return x_26; +return x_25; } else { -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_26, 0); -x_33 = lean_ctor_get(x_26, 1); -lean_inc(x_33); +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_25, 0); +x_32 = lean_ctor_get(x_25, 1); lean_inc(x_32); -lean_dec(x_26); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_32); -lean_ctor_set(x_34, 1, x_33); -return x_34; +lean_inc(x_31); +lean_dec(x_25); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_31); +lean_ctor_set(x_33, 1, x_32); +return x_33; } } } else { -uint8_t x_35; +uint8_t x_34; lean_dec(x_16); lean_dec(x_12); lean_dec(x_11); @@ -8769,23 +8694,23 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_35 = !lean_is_exclusive(x_19); -if (x_35 == 0) +x_34 = !lean_is_exclusive(x_19); +if (x_34 == 0) { return x_19; } else { -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_19, 0); -x_37 = lean_ctor_get(x_19, 1); -lean_inc(x_37); +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_19, 0); +x_36 = lean_ctor_get(x_19, 1); lean_inc(x_36); +lean_inc(x_35); lean_dec(x_19); -x_38 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_38, 0, x_36); -lean_ctor_set(x_38, 1, x_37); -return x_38; +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; } } } @@ -8872,82 +8797,80 @@ x_50 = lean_unbox(x_28); lean_dec(x_28); if (x_50 == 0) { -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_dec(x_22); lean_dec(x_15); lean_dec(x_13); lean_inc(x_1); x_51 = l_Lean_Expr_const___override(x_1, x_14); -x_52 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_52, 0, x_1); -x_53 = l_Lean_Meta_SimpTheorem_keys___default___closed__1; -x_54 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore(x_16, x_53, x_51, x_2, x_4, x_52, x_5, x_6, x_7, x_8, x_29); -if (lean_obj_tag(x_54) == 0) +x_52 = l_Lean_Meta_SimpTheorem_keys___default___closed__1; +x_53 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore(x_1, x_16, x_52, x_51, x_2, x_4, x_5, x_6, x_7, x_8, x_29); +if (lean_obj_tag(x_53) == 0) { -uint8_t x_55; -x_55 = !lean_is_exclusive(x_54); -if (x_55 == 0) +uint8_t x_54; +x_54 = !lean_is_exclusive(x_53); +if (x_54 == 0) { -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_54, 0); -x_57 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__3___closed__9; -x_58 = lean_array_push(x_57, x_56); -lean_ctor_set(x_54, 0, x_58); -return x_54; +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_53, 0); +x_56 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__3___closed__9; +x_57 = lean_array_push(x_56, x_55); +lean_ctor_set(x_53, 0, x_57); +return x_53; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_59 = lean_ctor_get(x_54, 0); -x_60 = lean_ctor_get(x_54, 1); -lean_inc(x_60); +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_58 = lean_ctor_get(x_53, 0); +x_59 = lean_ctor_get(x_53, 1); lean_inc(x_59); -lean_dec(x_54); -x_61 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__3___closed__9; -x_62 = lean_array_push(x_61, x_59); -x_63 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_63, 0, x_62); -lean_ctor_set(x_63, 1, x_60); -return x_63; +lean_inc(x_58); +lean_dec(x_53); +x_60 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__3___closed__9; +x_61 = lean_array_push(x_60, x_58); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_59); +return x_62; } } else { -uint8_t x_64; -x_64 = !lean_is_exclusive(x_54); -if (x_64 == 0) +uint8_t x_63; +x_63 = !lean_is_exclusive(x_53); +if (x_63 == 0) { -return x_54; +return x_53; } else { -lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_65 = lean_ctor_get(x_54, 0); -x_66 = lean_ctor_get(x_54, 1); -lean_inc(x_66); +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_53, 0); +x_65 = lean_ctor_get(x_53, 1); lean_inc(x_65); -lean_dec(x_54); -x_67 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_67, 0, x_65); -lean_ctor_set(x_67, 1, x_66); -return x_67; +lean_inc(x_64); +lean_dec(x_53); +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; } } } else { -lean_object* x_68; -x_68 = lean_box(0); -x_30 = x_68; +lean_object* x_67; +x_67 = lean_box(0); +x_30 = x_67; goto block_49; } } else { -lean_object* x_69; +lean_object* x_68; lean_dec(x_28); -x_69 = lean_box(0); -x_30 = x_69; +x_68 = lean_box(0); +x_30 = x_68; goto block_49; } block_49: @@ -9049,7 +8972,7 @@ return x_48; } else { -uint8_t x_70; +uint8_t x_69; lean_dec(x_22); lean_dec(x_5); lean_dec(x_16); @@ -9060,29 +8983,29 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_1); -x_70 = !lean_is_exclusive(x_27); -if (x_70 == 0) +x_69 = !lean_is_exclusive(x_27); +if (x_69 == 0) { return x_27; } else { -lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_71 = lean_ctor_get(x_27, 0); -x_72 = lean_ctor_get(x_27, 1); -lean_inc(x_72); +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_27, 0); +x_71 = lean_ctor_get(x_27, 1); lean_inc(x_71); +lean_inc(x_70); lean_dec(x_27); -x_73 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_73, 0, x_71); -lean_ctor_set(x_73, 1, x_72); -return x_73; +x_72 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_72, 0, x_70); +lean_ctor_set(x_72, 1, x_71); +return x_72; } } } else { -uint8_t x_74; +uint8_t x_73; lean_dec(x_22); lean_dec(x_5); lean_dec(x_16); @@ -9093,29 +9016,29 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_1); -x_74 = !lean_is_exclusive(x_24); -if (x_74 == 0) +x_73 = !lean_is_exclusive(x_24); +if (x_73 == 0) { return x_24; } else { -lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_75 = lean_ctor_get(x_24, 0); -x_76 = lean_ctor_get(x_24, 1); -lean_inc(x_76); +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_24, 0); +x_75 = lean_ctor_get(x_24, 1); lean_inc(x_75); +lean_inc(x_74); lean_dec(x_24); -x_77 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_77, 0, x_75); -lean_ctor_set(x_77, 1, x_76); -return x_77; +x_76 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_76, 0, x_74); +lean_ctor_set(x_76, 1, x_75); +return x_76; } } } else { -uint8_t x_78; +uint8_t x_77; lean_dec(x_5); lean_dec(x_16); lean_dec(x_15); @@ -9125,257 +9048,255 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_1); -x_78 = !lean_is_exclusive(x_21); -if (x_78 == 0) +x_77 = !lean_is_exclusive(x_21); +if (x_77 == 0) { return x_21; } else { -lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_79 = lean_ctor_get(x_21, 0); -x_80 = lean_ctor_get(x_21, 1); -lean_inc(x_80); +lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_78 = lean_ctor_get(x_21, 0); +x_79 = lean_ctor_get(x_21, 1); lean_inc(x_79); +lean_inc(x_78); lean_dec(x_21); -x_81 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_81, 0, x_79); -lean_ctor_set(x_81, 1, x_80); -return x_81; +x_80 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_80, 0, x_78); +lean_ctor_set(x_80, 1, x_79); +return x_80; } } } else { -uint8_t x_82; uint8_t x_83; uint8_t x_84; uint8_t x_85; uint8_t x_86; uint8_t x_87; uint8_t x_88; uint8_t x_89; uint8_t x_90; uint8_t x_91; uint8_t x_92; uint8_t x_93; uint8_t x_94; uint8_t x_95; lean_object* x_96; lean_object* x_97; -x_82 = lean_ctor_get_uint8(x_18, 0); -x_83 = lean_ctor_get_uint8(x_18, 1); -x_84 = lean_ctor_get_uint8(x_18, 2); -x_85 = lean_ctor_get_uint8(x_18, 3); -x_86 = lean_ctor_get_uint8(x_18, 4); -x_87 = lean_ctor_get_uint8(x_18, 6); -x_88 = lean_ctor_get_uint8(x_18, 7); -x_89 = lean_ctor_get_uint8(x_18, 8); -x_90 = lean_ctor_get_uint8(x_18, 9); -x_91 = lean_ctor_get_uint8(x_18, 10); -x_92 = lean_ctor_get_uint8(x_18, 11); -x_93 = lean_ctor_get_uint8(x_18, 12); -x_94 = lean_ctor_get_uint8(x_18, 13); +uint8_t x_81; uint8_t x_82; uint8_t x_83; uint8_t x_84; uint8_t x_85; uint8_t x_86; uint8_t x_87; uint8_t x_88; uint8_t x_89; uint8_t x_90; uint8_t x_91; uint8_t x_92; uint8_t x_93; uint8_t x_94; lean_object* x_95; lean_object* x_96; +x_81 = lean_ctor_get_uint8(x_18, 0); +x_82 = lean_ctor_get_uint8(x_18, 1); +x_83 = lean_ctor_get_uint8(x_18, 2); +x_84 = lean_ctor_get_uint8(x_18, 3); +x_85 = lean_ctor_get_uint8(x_18, 4); +x_86 = lean_ctor_get_uint8(x_18, 6); +x_87 = lean_ctor_get_uint8(x_18, 7); +x_88 = lean_ctor_get_uint8(x_18, 8); +x_89 = lean_ctor_get_uint8(x_18, 9); +x_90 = lean_ctor_get_uint8(x_18, 10); +x_91 = lean_ctor_get_uint8(x_18, 11); +x_92 = lean_ctor_get_uint8(x_18, 12); +x_93 = lean_ctor_get_uint8(x_18, 13); lean_dec(x_18); -x_95 = 2; -x_96 = lean_alloc_ctor(0, 0, 14); -lean_ctor_set_uint8(x_96, 0, x_82); -lean_ctor_set_uint8(x_96, 1, x_83); -lean_ctor_set_uint8(x_96, 2, x_84); -lean_ctor_set_uint8(x_96, 3, x_85); -lean_ctor_set_uint8(x_96, 4, x_86); -lean_ctor_set_uint8(x_96, 5, x_95); -lean_ctor_set_uint8(x_96, 6, x_87); -lean_ctor_set_uint8(x_96, 7, x_88); -lean_ctor_set_uint8(x_96, 8, x_89); -lean_ctor_set_uint8(x_96, 9, x_90); -lean_ctor_set_uint8(x_96, 10, x_91); -lean_ctor_set_uint8(x_96, 11, x_92); -lean_ctor_set_uint8(x_96, 12, x_93); -lean_ctor_set_uint8(x_96, 13, x_94); -lean_ctor_set(x_5, 0, x_96); +x_94 = 2; +x_95 = lean_alloc_ctor(0, 0, 14); +lean_ctor_set_uint8(x_95, 0, x_81); +lean_ctor_set_uint8(x_95, 1, x_82); +lean_ctor_set_uint8(x_95, 2, x_83); +lean_ctor_set_uint8(x_95, 3, x_84); +lean_ctor_set_uint8(x_95, 4, x_85); +lean_ctor_set_uint8(x_95, 5, x_94); +lean_ctor_set_uint8(x_95, 6, x_86); +lean_ctor_set_uint8(x_95, 7, x_87); +lean_ctor_set_uint8(x_95, 8, x_88); +lean_ctor_set_uint8(x_95, 9, x_89); +lean_ctor_set_uint8(x_95, 10, x_90); +lean_ctor_set_uint8(x_95, 11, x_91); +lean_ctor_set_uint8(x_95, 12, x_92); +lean_ctor_set_uint8(x_95, 13, x_93); +lean_ctor_set(x_5, 0, x_95); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_16); -x_97 = lean_infer_type(x_16, x_5, x_6, x_7, x_8, x_12); -if (lean_obj_tag(x_97) == 0) +x_96 = lean_infer_type(x_16, x_5, x_6, x_7, x_8, x_12); +if (lean_obj_tag(x_96) == 0) { -lean_object* x_98; lean_object* x_99; lean_object* x_100; -x_98 = lean_ctor_get(x_97, 0); +lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_97 = lean_ctor_get(x_96, 0); +lean_inc(x_97); +x_98 = lean_ctor_get(x_96, 1); lean_inc(x_98); -x_99 = lean_ctor_get(x_97, 1); -lean_inc(x_99); -lean_dec(x_97); +lean_dec(x_96); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_98); -x_100 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_checkTypeIsProp(x_98, x_5, x_6, x_7, x_8, x_99); -if (lean_obj_tag(x_100) == 0) +lean_inc(x_97); +x_99 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_checkTypeIsProp(x_97, x_5, x_6, x_7, x_8, x_98); +if (lean_obj_tag(x_99) == 0) { -lean_object* x_101; lean_object* x_102; lean_object* x_103; -x_101 = lean_ctor_get(x_100, 1); -lean_inc(x_101); -lean_dec(x_100); -x_102 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_shouldPreprocess___closed__1; +lean_object* x_100; lean_object* x_101; lean_object* x_102; +x_100 = lean_ctor_get(x_99, 1); +lean_inc(x_100); +lean_dec(x_99); +x_101 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_shouldPreprocess___closed__1; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_98); -x_103 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNames___spec__2___rarg(x_98, x_102, x_5, x_6, x_7, x_8, x_101); -if (lean_obj_tag(x_103) == 0) +lean_inc(x_97); +x_102 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNames___spec__2___rarg(x_97, x_101, x_5, x_6, x_7, x_8, x_100); +if (lean_obj_tag(x_102) == 0) { -lean_object* x_104; lean_object* x_105; lean_object* x_106; -x_104 = lean_ctor_get(x_103, 0); +lean_object* x_103; lean_object* x_104; lean_object* x_105; +x_103 = lean_ctor_get(x_102, 0); +lean_inc(x_103); +x_104 = lean_ctor_get(x_102, 1); lean_inc(x_104); -x_105 = lean_ctor_get(x_103, 1); -lean_inc(x_105); -lean_dec(x_103); +lean_dec(x_102); if (x_3 == 0) { -uint8_t x_126; -x_126 = lean_unbox(x_104); -lean_dec(x_104); -if (x_126 == 0) +uint8_t x_125; +x_125 = lean_unbox(x_103); +lean_dec(x_103); +if (x_125 == 0) { -lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; -lean_dec(x_98); +lean_object* x_126; lean_object* x_127; lean_object* x_128; +lean_dec(x_97); lean_dec(x_15); lean_dec(x_13); lean_inc(x_1); -x_127 = l_Lean_Expr_const___override(x_1, x_14); -x_128 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_128, 0, x_1); -x_129 = l_Lean_Meta_SimpTheorem_keys___default___closed__1; -x_130 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore(x_16, x_129, x_127, x_2, x_4, x_128, x_5, x_6, x_7, x_8, x_105); -if (lean_obj_tag(x_130) == 0) +x_126 = l_Lean_Expr_const___override(x_1, x_14); +x_127 = l_Lean_Meta_SimpTheorem_keys___default___closed__1; +x_128 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore(x_1, x_16, x_127, x_126, x_2, x_4, x_5, x_6, x_7, x_8, x_104); +if (lean_obj_tag(x_128) == 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; -x_131 = lean_ctor_get(x_130, 0); -lean_inc(x_131); -x_132 = lean_ctor_get(x_130, 1); -lean_inc(x_132); -if (lean_is_exclusive(x_130)) { - lean_ctor_release(x_130, 0); - lean_ctor_release(x_130, 1); - x_133 = x_130; +lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_129 = lean_ctor_get(x_128, 0); +lean_inc(x_129); +x_130 = lean_ctor_get(x_128, 1); +lean_inc(x_130); +if (lean_is_exclusive(x_128)) { + lean_ctor_release(x_128, 0); + lean_ctor_release(x_128, 1); + x_131 = x_128; } else { - lean_dec_ref(x_130); - x_133 = lean_box(0); + lean_dec_ref(x_128); + x_131 = lean_box(0); } -x_134 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__3___closed__9; -x_135 = lean_array_push(x_134, x_131); -if (lean_is_scalar(x_133)) { - x_136 = lean_alloc_ctor(0, 2, 0); +x_132 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__3___closed__9; +x_133 = lean_array_push(x_132, x_129); +if (lean_is_scalar(x_131)) { + x_134 = lean_alloc_ctor(0, 2, 0); } else { - x_136 = x_133; + x_134 = x_131; } -lean_ctor_set(x_136, 0, x_135); -lean_ctor_set(x_136, 1, x_132); -return x_136; +lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 1, x_130); +return x_134; } else { -lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; -x_137 = lean_ctor_get(x_130, 0); -lean_inc(x_137); -x_138 = lean_ctor_get(x_130, 1); -lean_inc(x_138); -if (lean_is_exclusive(x_130)) { - lean_ctor_release(x_130, 0); - lean_ctor_release(x_130, 1); - x_139 = x_130; +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; +x_135 = lean_ctor_get(x_128, 0); +lean_inc(x_135); +x_136 = lean_ctor_get(x_128, 1); +lean_inc(x_136); +if (lean_is_exclusive(x_128)) { + lean_ctor_release(x_128, 0); + lean_ctor_release(x_128, 1); + x_137 = x_128; } else { - lean_dec_ref(x_130); - x_139 = lean_box(0); + lean_dec_ref(x_128); + x_137 = lean_box(0); } -if (lean_is_scalar(x_139)) { - x_140 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_137)) { + x_138 = lean_alloc_ctor(1, 2, 0); } else { - x_140 = x_139; + x_138 = x_137; } -lean_ctor_set(x_140, 0, x_137); -lean_ctor_set(x_140, 1, x_138); -return x_140; +lean_ctor_set(x_138, 0, x_135); +lean_ctor_set(x_138, 1, x_136); +return x_138; } } else { -lean_object* x_141; -x_141 = lean_box(0); -x_106 = x_141; -goto block_125; +lean_object* x_139; +x_139 = lean_box(0); +x_105 = x_139; +goto block_124; } } else { -lean_object* x_142; -lean_dec(x_104); -x_142 = lean_box(0); -x_106 = x_142; -goto block_125; +lean_object* x_140; +lean_dec(x_103); +x_140 = lean_box(0); +x_105 = x_140; +goto block_124; } -block_125: +block_124: { -uint8_t x_107; lean_object* x_108; -lean_dec(x_106); -x_107 = 1; +uint8_t x_106; lean_object* x_107; +lean_dec(x_105); +x_106 = 1; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_108 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go(x_3, x_107, x_16, x_98, x_5, x_6, x_7, x_8, x_105); -if (lean_obj_tag(x_108) == 0) +x_107 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go(x_3, x_106, x_16, x_97, x_5, x_6, x_7, x_8, x_104); +if (lean_obj_tag(x_107) == 0) { -lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; -x_109 = lean_ctor_get(x_108, 0); +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_108 = lean_ctor_get(x_107, 0); +lean_inc(x_108); +x_109 = lean_ctor_get(x_107, 1); lean_inc(x_109); -x_110 = lean_ctor_get(x_108, 1); -lean_inc(x_110); -lean_dec(x_108); -x_111 = l_Lean_Meta_SimpTheorem_keys___default___closed__1; -x_112 = l_List_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremsFromConst___spec__1(x_1, x_2, x_4, x_13, x_14, x_15, x_109, x_111, x_5, x_6, x_7, x_8, x_110); -if (lean_obj_tag(x_112) == 0) +lean_dec(x_107); +x_110 = l_Lean_Meta_SimpTheorem_keys___default___closed__1; +x_111 = l_List_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremsFromConst___spec__1(x_1, x_2, x_4, x_13, x_14, x_15, x_108, x_110, x_5, x_6, x_7, x_8, x_109); +if (lean_obj_tag(x_111) == 0) { -lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; -x_113 = lean_ctor_get(x_112, 0); +lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; +x_112 = lean_ctor_get(x_111, 0); +lean_inc(x_112); +x_113 = lean_ctor_get(x_111, 1); lean_inc(x_113); -x_114 = lean_ctor_get(x_112, 1); -lean_inc(x_114); -if (lean_is_exclusive(x_112)) { - lean_ctor_release(x_112, 0); - lean_ctor_release(x_112, 1); - x_115 = x_112; +if (lean_is_exclusive(x_111)) { + lean_ctor_release(x_111, 0); + lean_ctor_release(x_111, 1); + x_114 = x_111; } else { - lean_dec_ref(x_112); - x_115 = lean_box(0); + lean_dec_ref(x_111); + x_114 = lean_box(0); } -if (lean_is_scalar(x_115)) { - x_116 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_114)) { + x_115 = lean_alloc_ctor(0, 2, 0); } else { - x_116 = x_115; + x_115 = x_114; } -lean_ctor_set(x_116, 0, x_113); -lean_ctor_set(x_116, 1, x_114); -return x_116; +lean_ctor_set(x_115, 0, x_112); +lean_ctor_set(x_115, 1, x_113); +return x_115; } else { -lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; -x_117 = lean_ctor_get(x_112, 0); +lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; +x_116 = lean_ctor_get(x_111, 0); +lean_inc(x_116); +x_117 = lean_ctor_get(x_111, 1); lean_inc(x_117); -x_118 = lean_ctor_get(x_112, 1); -lean_inc(x_118); -if (lean_is_exclusive(x_112)) { - lean_ctor_release(x_112, 0); - lean_ctor_release(x_112, 1); - x_119 = x_112; +if (lean_is_exclusive(x_111)) { + lean_ctor_release(x_111, 0); + lean_ctor_release(x_111, 1); + x_118 = x_111; } else { - lean_dec_ref(x_112); - x_119 = lean_box(0); + lean_dec_ref(x_111); + x_118 = lean_box(0); } -if (lean_is_scalar(x_119)) { - x_120 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_118)) { + x_119 = lean_alloc_ctor(1, 2, 0); } else { - x_120 = x_119; + x_119 = x_118; } -lean_ctor_set(x_120, 0, x_117); -lean_ctor_set(x_120, 1, x_118); -return x_120; +lean_ctor_set(x_119, 0, x_116); +lean_ctor_set(x_119, 1, x_117); +return x_119; } } else { -lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; +lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_dec(x_5); lean_dec(x_15); lean_dec(x_13); @@ -9384,33 +9305,33 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_1); -x_121 = lean_ctor_get(x_108, 0); +x_120 = lean_ctor_get(x_107, 0); +lean_inc(x_120); +x_121 = lean_ctor_get(x_107, 1); lean_inc(x_121); -x_122 = lean_ctor_get(x_108, 1); -lean_inc(x_122); -if (lean_is_exclusive(x_108)) { - lean_ctor_release(x_108, 0); - lean_ctor_release(x_108, 1); - x_123 = x_108; +if (lean_is_exclusive(x_107)) { + lean_ctor_release(x_107, 0); + lean_ctor_release(x_107, 1); + x_122 = x_107; } else { - lean_dec_ref(x_108); - x_123 = lean_box(0); + lean_dec_ref(x_107); + x_122 = lean_box(0); } -if (lean_is_scalar(x_123)) { - x_124 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_122)) { + x_123 = lean_alloc_ctor(1, 2, 0); } else { - x_124 = x_123; + x_123 = x_122; } -lean_ctor_set(x_124, 0, x_121); -lean_ctor_set(x_124, 1, x_122); -return x_124; +lean_ctor_set(x_123, 0, x_120); +lean_ctor_set(x_123, 1, x_121); +return x_123; } } } else { -lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; -lean_dec(x_98); +lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; +lean_dec(x_97); lean_dec(x_5); lean_dec(x_16); lean_dec(x_15); @@ -9420,32 +9341,32 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_1); -x_143 = lean_ctor_get(x_103, 0); -lean_inc(x_143); -x_144 = lean_ctor_get(x_103, 1); -lean_inc(x_144); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - x_145 = x_103; +x_141 = lean_ctor_get(x_102, 0); +lean_inc(x_141); +x_142 = lean_ctor_get(x_102, 1); +lean_inc(x_142); +if (lean_is_exclusive(x_102)) { + lean_ctor_release(x_102, 0); + lean_ctor_release(x_102, 1); + x_143 = x_102; } else { - lean_dec_ref(x_103); - x_145 = lean_box(0); + lean_dec_ref(x_102); + x_143 = lean_box(0); } -if (lean_is_scalar(x_145)) { - x_146 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_143)) { + x_144 = lean_alloc_ctor(1, 2, 0); } else { - x_146 = x_145; + x_144 = x_143; } -lean_ctor_set(x_146, 0, x_143); -lean_ctor_set(x_146, 1, x_144); -return x_146; +lean_ctor_set(x_144, 0, x_141); +lean_ctor_set(x_144, 1, x_142); +return x_144; } } else { -lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; -lean_dec(x_98); +lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; +lean_dec(x_97); lean_dec(x_5); lean_dec(x_16); lean_dec(x_15); @@ -9455,31 +9376,31 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_1); -x_147 = lean_ctor_get(x_100, 0); -lean_inc(x_147); -x_148 = lean_ctor_get(x_100, 1); -lean_inc(x_148); -if (lean_is_exclusive(x_100)) { - lean_ctor_release(x_100, 0); - lean_ctor_release(x_100, 1); - x_149 = x_100; +x_145 = lean_ctor_get(x_99, 0); +lean_inc(x_145); +x_146 = lean_ctor_get(x_99, 1); +lean_inc(x_146); +if (lean_is_exclusive(x_99)) { + lean_ctor_release(x_99, 0); + lean_ctor_release(x_99, 1); + x_147 = x_99; } else { - lean_dec_ref(x_100); - x_149 = lean_box(0); + lean_dec_ref(x_99); + x_147 = lean_box(0); } -if (lean_is_scalar(x_149)) { - x_150 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_147)) { + x_148 = lean_alloc_ctor(1, 2, 0); } else { - x_150 = x_149; + x_148 = x_147; } -lean_ctor_set(x_150, 0, x_147); -lean_ctor_set(x_150, 1, x_148); -return x_150; +lean_ctor_set(x_148, 0, x_145); +lean_ctor_set(x_148, 1, x_146); +return x_148; } } else { -lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; +lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_dec(x_5); lean_dec(x_16); lean_dec(x_15); @@ -9489,289 +9410,287 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_1); -x_151 = lean_ctor_get(x_97, 0); -lean_inc(x_151); -x_152 = lean_ctor_get(x_97, 1); -lean_inc(x_152); -if (lean_is_exclusive(x_97)) { - lean_ctor_release(x_97, 0); - lean_ctor_release(x_97, 1); - x_153 = x_97; +x_149 = lean_ctor_get(x_96, 0); +lean_inc(x_149); +x_150 = lean_ctor_get(x_96, 1); +lean_inc(x_150); +if (lean_is_exclusive(x_96)) { + lean_ctor_release(x_96, 0); + lean_ctor_release(x_96, 1); + x_151 = x_96; } else { - lean_dec_ref(x_97); - x_153 = lean_box(0); + lean_dec_ref(x_96); + x_151 = lean_box(0); } -if (lean_is_scalar(x_153)) { - x_154 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_151)) { + x_152 = lean_alloc_ctor(1, 2, 0); } else { - x_154 = x_153; + x_152 = x_151; } -lean_ctor_set(x_154, 0, x_151); -lean_ctor_set(x_154, 1, x_152); -return x_154; +lean_ctor_set(x_152, 0, x_149); +lean_ctor_set(x_152, 1, x_150); +return x_152; } } } else { -lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; uint8_t x_161; uint8_t x_162; uint8_t x_163; uint8_t x_164; uint8_t x_165; uint8_t x_166; uint8_t x_167; uint8_t x_168; uint8_t x_169; uint8_t x_170; uint8_t x_171; uint8_t x_172; uint8_t x_173; lean_object* x_174; uint8_t x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; -x_155 = lean_ctor_get(x_5, 0); -x_156 = lean_ctor_get(x_5, 1); -x_157 = lean_ctor_get(x_5, 2); -x_158 = lean_ctor_get(x_5, 3); -x_159 = lean_ctor_get(x_5, 4); -x_160 = lean_ctor_get(x_5, 5); -lean_inc(x_160); -lean_inc(x_159); +lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; uint8_t x_159; uint8_t x_160; uint8_t x_161; uint8_t x_162; uint8_t x_163; uint8_t x_164; uint8_t x_165; uint8_t x_166; uint8_t x_167; uint8_t x_168; uint8_t x_169; uint8_t x_170; uint8_t x_171; lean_object* x_172; uint8_t x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; +x_153 = lean_ctor_get(x_5, 0); +x_154 = lean_ctor_get(x_5, 1); +x_155 = lean_ctor_get(x_5, 2); +x_156 = lean_ctor_get(x_5, 3); +x_157 = lean_ctor_get(x_5, 4); +x_158 = lean_ctor_get(x_5, 5); lean_inc(x_158); lean_inc(x_157); lean_inc(x_156); lean_inc(x_155); +lean_inc(x_154); +lean_inc(x_153); lean_dec(x_5); -x_161 = lean_ctor_get_uint8(x_155, 0); -x_162 = lean_ctor_get_uint8(x_155, 1); -x_163 = lean_ctor_get_uint8(x_155, 2); -x_164 = lean_ctor_get_uint8(x_155, 3); -x_165 = lean_ctor_get_uint8(x_155, 4); -x_166 = lean_ctor_get_uint8(x_155, 6); -x_167 = lean_ctor_get_uint8(x_155, 7); -x_168 = lean_ctor_get_uint8(x_155, 8); -x_169 = lean_ctor_get_uint8(x_155, 9); -x_170 = lean_ctor_get_uint8(x_155, 10); -x_171 = lean_ctor_get_uint8(x_155, 11); -x_172 = lean_ctor_get_uint8(x_155, 12); -x_173 = lean_ctor_get_uint8(x_155, 13); -if (lean_is_exclusive(x_155)) { - x_174 = x_155; +x_159 = lean_ctor_get_uint8(x_153, 0); +x_160 = lean_ctor_get_uint8(x_153, 1); +x_161 = lean_ctor_get_uint8(x_153, 2); +x_162 = lean_ctor_get_uint8(x_153, 3); +x_163 = lean_ctor_get_uint8(x_153, 4); +x_164 = lean_ctor_get_uint8(x_153, 6); +x_165 = lean_ctor_get_uint8(x_153, 7); +x_166 = lean_ctor_get_uint8(x_153, 8); +x_167 = lean_ctor_get_uint8(x_153, 9); +x_168 = lean_ctor_get_uint8(x_153, 10); +x_169 = lean_ctor_get_uint8(x_153, 11); +x_170 = lean_ctor_get_uint8(x_153, 12); +x_171 = lean_ctor_get_uint8(x_153, 13); +if (lean_is_exclusive(x_153)) { + x_172 = x_153; } else { - lean_dec_ref(x_155); - x_174 = lean_box(0); + lean_dec_ref(x_153); + x_172 = lean_box(0); } -x_175 = 2; -if (lean_is_scalar(x_174)) { - x_176 = lean_alloc_ctor(0, 0, 14); +x_173 = 2; +if (lean_is_scalar(x_172)) { + x_174 = lean_alloc_ctor(0, 0, 14); } else { - x_176 = x_174; + x_174 = x_172; } -lean_ctor_set_uint8(x_176, 0, x_161); -lean_ctor_set_uint8(x_176, 1, x_162); -lean_ctor_set_uint8(x_176, 2, x_163); -lean_ctor_set_uint8(x_176, 3, x_164); -lean_ctor_set_uint8(x_176, 4, x_165); -lean_ctor_set_uint8(x_176, 5, x_175); -lean_ctor_set_uint8(x_176, 6, x_166); -lean_ctor_set_uint8(x_176, 7, x_167); -lean_ctor_set_uint8(x_176, 8, x_168); -lean_ctor_set_uint8(x_176, 9, x_169); -lean_ctor_set_uint8(x_176, 10, x_170); -lean_ctor_set_uint8(x_176, 11, x_171); -lean_ctor_set_uint8(x_176, 12, x_172); -lean_ctor_set_uint8(x_176, 13, x_173); -x_177 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_177, 0, x_176); -lean_ctor_set(x_177, 1, x_156); -lean_ctor_set(x_177, 2, x_157); -lean_ctor_set(x_177, 3, x_158); -lean_ctor_set(x_177, 4, x_159); -lean_ctor_set(x_177, 5, x_160); +lean_ctor_set_uint8(x_174, 0, x_159); +lean_ctor_set_uint8(x_174, 1, x_160); +lean_ctor_set_uint8(x_174, 2, x_161); +lean_ctor_set_uint8(x_174, 3, x_162); +lean_ctor_set_uint8(x_174, 4, x_163); +lean_ctor_set_uint8(x_174, 5, x_173); +lean_ctor_set_uint8(x_174, 6, x_164); +lean_ctor_set_uint8(x_174, 7, x_165); +lean_ctor_set_uint8(x_174, 8, x_166); +lean_ctor_set_uint8(x_174, 9, x_167); +lean_ctor_set_uint8(x_174, 10, x_168); +lean_ctor_set_uint8(x_174, 11, x_169); +lean_ctor_set_uint8(x_174, 12, x_170); +lean_ctor_set_uint8(x_174, 13, x_171); +x_175 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_175, 0, x_174); +lean_ctor_set(x_175, 1, x_154); +lean_ctor_set(x_175, 2, x_155); +lean_ctor_set(x_175, 3, x_156); +lean_ctor_set(x_175, 4, x_157); +lean_ctor_set(x_175, 5, x_158); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -lean_inc(x_177); +lean_inc(x_175); lean_inc(x_16); -x_178 = lean_infer_type(x_16, x_177, x_6, x_7, x_8, x_12); -if (lean_obj_tag(x_178) == 0) +x_176 = lean_infer_type(x_16, x_175, x_6, x_7, x_8, x_12); +if (lean_obj_tag(x_176) == 0) { -lean_object* x_179; lean_object* x_180; lean_object* x_181; -x_179 = lean_ctor_get(x_178, 0); -lean_inc(x_179); -x_180 = lean_ctor_get(x_178, 1); +lean_object* x_177; lean_object* x_178; lean_object* x_179; +x_177 = lean_ctor_get(x_176, 0); +lean_inc(x_177); +x_178 = lean_ctor_get(x_176, 1); +lean_inc(x_178); +lean_dec(x_176); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_175); +lean_inc(x_177); +x_179 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_checkTypeIsProp(x_177, x_175, x_6, x_7, x_8, x_178); +if (lean_obj_tag(x_179) == 0) +{ +lean_object* x_180; lean_object* x_181; lean_object* x_182; +x_180 = lean_ctor_get(x_179, 1); lean_inc(x_180); -lean_dec(x_178); +lean_dec(x_179); +x_181 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_shouldPreprocess___closed__1; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); +lean_inc(x_175); lean_inc(x_177); -lean_inc(x_179); -x_181 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_checkTypeIsProp(x_179, x_177, x_6, x_7, x_8, x_180); -if (lean_obj_tag(x_181) == 0) +x_182 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNames___spec__2___rarg(x_177, x_181, x_175, x_6, x_7, x_8, x_180); +if (lean_obj_tag(x_182) == 0) { -lean_object* x_182; lean_object* x_183; lean_object* x_184; -x_182 = lean_ctor_get(x_181, 1); -lean_inc(x_182); -lean_dec(x_181); -x_183 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_shouldPreprocess___closed__1; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_177); -lean_inc(x_179); -x_184 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNames___spec__2___rarg(x_179, x_183, x_177, x_6, x_7, x_8, x_182); -if (lean_obj_tag(x_184) == 0) -{ -lean_object* x_185; lean_object* x_186; lean_object* x_187; -x_185 = lean_ctor_get(x_184, 0); -lean_inc(x_185); -x_186 = lean_ctor_get(x_184, 1); -lean_inc(x_186); -lean_dec(x_184); +lean_object* x_183; lean_object* x_184; lean_object* x_185; +x_183 = lean_ctor_get(x_182, 0); +lean_inc(x_183); +x_184 = lean_ctor_get(x_182, 1); +lean_inc(x_184); +lean_dec(x_182); if (x_3 == 0) { -uint8_t x_207; -x_207 = lean_unbox(x_185); -lean_dec(x_185); -if (x_207 == 0) +uint8_t x_205; +x_205 = lean_unbox(x_183); +lean_dec(x_183); +if (x_205 == 0) { -lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; -lean_dec(x_179); +lean_object* x_206; lean_object* x_207; lean_object* x_208; +lean_dec(x_177); lean_dec(x_15); lean_dec(x_13); lean_inc(x_1); -x_208 = l_Lean_Expr_const___override(x_1, x_14); -x_209 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_209, 0, x_1); -x_210 = l_Lean_Meta_SimpTheorem_keys___default___closed__1; -x_211 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore(x_16, x_210, x_208, x_2, x_4, x_209, x_177, x_6, x_7, x_8, x_186); -if (lean_obj_tag(x_211) == 0) +x_206 = l_Lean_Expr_const___override(x_1, x_14); +x_207 = l_Lean_Meta_SimpTheorem_keys___default___closed__1; +x_208 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore(x_1, x_16, x_207, x_206, x_2, x_4, x_175, x_6, x_7, x_8, x_184); +if (lean_obj_tag(x_208) == 0) { -lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; -x_212 = lean_ctor_get(x_211, 0); -lean_inc(x_212); -x_213 = lean_ctor_get(x_211, 1); -lean_inc(x_213); -if (lean_is_exclusive(x_211)) { - lean_ctor_release(x_211, 0); - lean_ctor_release(x_211, 1); +lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; +x_209 = lean_ctor_get(x_208, 0); +lean_inc(x_209); +x_210 = lean_ctor_get(x_208, 1); +lean_inc(x_210); +if (lean_is_exclusive(x_208)) { + lean_ctor_release(x_208, 0); + lean_ctor_release(x_208, 1); + x_211 = x_208; +} else { + lean_dec_ref(x_208); + x_211 = lean_box(0); +} +x_212 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__3___closed__9; +x_213 = lean_array_push(x_212, x_209); +if (lean_is_scalar(x_211)) { + x_214 = lean_alloc_ctor(0, 2, 0); +} else { x_214 = x_211; -} else { - lean_dec_ref(x_211); - x_214 = lean_box(0); } -x_215 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__3___closed__9; -x_216 = lean_array_push(x_215, x_212); -if (lean_is_scalar(x_214)) { - x_217 = lean_alloc_ctor(0, 2, 0); -} else { - x_217 = x_214; -} -lean_ctor_set(x_217, 0, x_216); -lean_ctor_set(x_217, 1, x_213); -return x_217; +lean_ctor_set(x_214, 0, x_213); +lean_ctor_set(x_214, 1, x_210); +return x_214; } else { -lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; -x_218 = lean_ctor_get(x_211, 0); -lean_inc(x_218); -x_219 = lean_ctor_get(x_211, 1); -lean_inc(x_219); -if (lean_is_exclusive(x_211)) { - lean_ctor_release(x_211, 0); - lean_ctor_release(x_211, 1); - x_220 = x_211; +lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; +x_215 = lean_ctor_get(x_208, 0); +lean_inc(x_215); +x_216 = lean_ctor_get(x_208, 1); +lean_inc(x_216); +if (lean_is_exclusive(x_208)) { + lean_ctor_release(x_208, 0); + lean_ctor_release(x_208, 1); + x_217 = x_208; } else { - lean_dec_ref(x_211); - x_220 = lean_box(0); + lean_dec_ref(x_208); + x_217 = lean_box(0); } -if (lean_is_scalar(x_220)) { - x_221 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_217)) { + x_218 = lean_alloc_ctor(1, 2, 0); } else { - x_221 = x_220; + x_218 = x_217; } -lean_ctor_set(x_221, 0, x_218); -lean_ctor_set(x_221, 1, x_219); -return x_221; +lean_ctor_set(x_218, 0, x_215); +lean_ctor_set(x_218, 1, x_216); +return x_218; } } else { -lean_object* x_222; -x_222 = lean_box(0); -x_187 = x_222; -goto block_206; +lean_object* x_219; +x_219 = lean_box(0); +x_185 = x_219; +goto block_204; } } else { -lean_object* x_223; +lean_object* x_220; +lean_dec(x_183); +x_220 = lean_box(0); +x_185 = x_220; +goto block_204; +} +block_204: +{ +uint8_t x_186; lean_object* x_187; lean_dec(x_185); -x_223 = lean_box(0); -x_187 = x_223; -goto block_206; -} -block_206: -{ -uint8_t x_188; lean_object* x_189; -lean_dec(x_187); -x_188 = 1; +x_186 = 1; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -lean_inc(x_177); -x_189 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go(x_3, x_188, x_16, x_179, x_177, x_6, x_7, x_8, x_186); -if (lean_obj_tag(x_189) == 0) +lean_inc(x_175); +x_187 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go(x_3, x_186, x_16, x_177, x_175, x_6, x_7, x_8, x_184); +if (lean_obj_tag(x_187) == 0) { -lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; -x_190 = lean_ctor_get(x_189, 0); -lean_inc(x_190); -x_191 = lean_ctor_get(x_189, 1); -lean_inc(x_191); -lean_dec(x_189); -x_192 = l_Lean_Meta_SimpTheorem_keys___default___closed__1; -x_193 = l_List_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremsFromConst___spec__1(x_1, x_2, x_4, x_13, x_14, x_15, x_190, x_192, x_177, x_6, x_7, x_8, x_191); -if (lean_obj_tag(x_193) == 0) +lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; +x_188 = lean_ctor_get(x_187, 0); +lean_inc(x_188); +x_189 = lean_ctor_get(x_187, 1); +lean_inc(x_189); +lean_dec(x_187); +x_190 = l_Lean_Meta_SimpTheorem_keys___default___closed__1; +x_191 = l_List_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremsFromConst___spec__1(x_1, x_2, x_4, x_13, x_14, x_15, x_188, x_190, x_175, x_6, x_7, x_8, x_189); +if (lean_obj_tag(x_191) == 0) { -lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; -x_194 = lean_ctor_get(x_193, 0); -lean_inc(x_194); -x_195 = lean_ctor_get(x_193, 1); -lean_inc(x_195); -if (lean_is_exclusive(x_193)) { - lean_ctor_release(x_193, 0); - lean_ctor_release(x_193, 1); - x_196 = x_193; +lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; +x_192 = lean_ctor_get(x_191, 0); +lean_inc(x_192); +x_193 = lean_ctor_get(x_191, 1); +lean_inc(x_193); +if (lean_is_exclusive(x_191)) { + lean_ctor_release(x_191, 0); + lean_ctor_release(x_191, 1); + x_194 = x_191; } else { - lean_dec_ref(x_193); - x_196 = lean_box(0); + lean_dec_ref(x_191); + x_194 = lean_box(0); } -if (lean_is_scalar(x_196)) { - x_197 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_194)) { + x_195 = lean_alloc_ctor(0, 2, 0); } else { - x_197 = x_196; + x_195 = x_194; } -lean_ctor_set(x_197, 0, x_194); -lean_ctor_set(x_197, 1, x_195); -return x_197; +lean_ctor_set(x_195, 0, x_192); +lean_ctor_set(x_195, 1, x_193); +return x_195; } else { -lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; -x_198 = lean_ctor_get(x_193, 0); -lean_inc(x_198); -x_199 = lean_ctor_get(x_193, 1); -lean_inc(x_199); -if (lean_is_exclusive(x_193)) { - lean_ctor_release(x_193, 0); - lean_ctor_release(x_193, 1); - x_200 = x_193; +lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; +x_196 = lean_ctor_get(x_191, 0); +lean_inc(x_196); +x_197 = lean_ctor_get(x_191, 1); +lean_inc(x_197); +if (lean_is_exclusive(x_191)) { + lean_ctor_release(x_191, 0); + lean_ctor_release(x_191, 1); + x_198 = x_191; } else { - lean_dec_ref(x_193); - x_200 = lean_box(0); + lean_dec_ref(x_191); + x_198 = lean_box(0); } -if (lean_is_scalar(x_200)) { - x_201 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_198)) { + x_199 = lean_alloc_ctor(1, 2, 0); } else { - x_201 = x_200; + x_199 = x_198; } -lean_ctor_set(x_201, 0, x_198); -lean_ctor_set(x_201, 1, x_199); -return x_201; +lean_ctor_set(x_199, 0, x_196); +lean_ctor_set(x_199, 1, x_197); +return x_199; } } else { -lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; -lean_dec(x_177); +lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; +lean_dec(x_175); lean_dec(x_15); lean_dec(x_13); lean_dec(x_8); @@ -9779,34 +9698,34 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_1); -x_202 = lean_ctor_get(x_189, 0); -lean_inc(x_202); -x_203 = lean_ctor_get(x_189, 1); -lean_inc(x_203); -if (lean_is_exclusive(x_189)) { - lean_ctor_release(x_189, 0); - lean_ctor_release(x_189, 1); - x_204 = x_189; +x_200 = lean_ctor_get(x_187, 0); +lean_inc(x_200); +x_201 = lean_ctor_get(x_187, 1); +lean_inc(x_201); +if (lean_is_exclusive(x_187)) { + lean_ctor_release(x_187, 0); + lean_ctor_release(x_187, 1); + x_202 = x_187; } else { - lean_dec_ref(x_189); - x_204 = lean_box(0); + lean_dec_ref(x_187); + x_202 = lean_box(0); } -if (lean_is_scalar(x_204)) { - x_205 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_202)) { + x_203 = lean_alloc_ctor(1, 2, 0); } else { - x_205 = x_204; + x_203 = x_202; } -lean_ctor_set(x_205, 0, x_202); -lean_ctor_set(x_205, 1, x_203); -return x_205; +lean_ctor_set(x_203, 0, x_200); +lean_ctor_set(x_203, 1, x_201); +return x_203; } } } else { -lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; -lean_dec(x_179); +lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_dec(x_177); +lean_dec(x_175); lean_dec(x_16); lean_dec(x_15); lean_dec(x_13); @@ -9815,33 +9734,67 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_1); -x_224 = lean_ctor_get(x_184, 0); -lean_inc(x_224); -x_225 = lean_ctor_get(x_184, 1); +x_221 = lean_ctor_get(x_182, 0); +lean_inc(x_221); +x_222 = lean_ctor_get(x_182, 1); +lean_inc(x_222); +if (lean_is_exclusive(x_182)) { + lean_ctor_release(x_182, 0); + lean_ctor_release(x_182, 1); + x_223 = x_182; +} else { + lean_dec_ref(x_182); + x_223 = lean_box(0); +} +if (lean_is_scalar(x_223)) { + x_224 = lean_alloc_ctor(1, 2, 0); +} else { + x_224 = x_223; +} +lean_ctor_set(x_224, 0, x_221); +lean_ctor_set(x_224, 1, x_222); +return x_224; +} +} +else +{ +lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; +lean_dec(x_177); +lean_dec(x_175); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_1); +x_225 = lean_ctor_get(x_179, 0); lean_inc(x_225); -if (lean_is_exclusive(x_184)) { - lean_ctor_release(x_184, 0); - lean_ctor_release(x_184, 1); - x_226 = x_184; +x_226 = lean_ctor_get(x_179, 1); +lean_inc(x_226); +if (lean_is_exclusive(x_179)) { + lean_ctor_release(x_179, 0); + lean_ctor_release(x_179, 1); + x_227 = x_179; } else { - lean_dec_ref(x_184); - x_226 = lean_box(0); + lean_dec_ref(x_179); + x_227 = lean_box(0); } -if (lean_is_scalar(x_226)) { - x_227 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_227)) { + x_228 = lean_alloc_ctor(1, 2, 0); } else { - x_227 = x_226; + x_228 = x_227; } -lean_ctor_set(x_227, 0, x_224); -lean_ctor_set(x_227, 1, x_225); -return x_227; +lean_ctor_set(x_228, 0, x_225); +lean_ctor_set(x_228, 1, x_226); +return x_228; } } else { -lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; -lean_dec(x_179); -lean_dec(x_177); +lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; +lean_dec(x_175); lean_dec(x_16); lean_dec(x_15); lean_dec(x_13); @@ -9850,89 +9803,55 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_1); -x_228 = lean_ctor_get(x_181, 0); -lean_inc(x_228); -x_229 = lean_ctor_get(x_181, 1); +x_229 = lean_ctor_get(x_176, 0); lean_inc(x_229); -if (lean_is_exclusive(x_181)) { - lean_ctor_release(x_181, 0); - lean_ctor_release(x_181, 1); - x_230 = x_181; +x_230 = lean_ctor_get(x_176, 1); +lean_inc(x_230); +if (lean_is_exclusive(x_176)) { + lean_ctor_release(x_176, 0); + lean_ctor_release(x_176, 1); + x_231 = x_176; } else { - lean_dec_ref(x_181); - x_230 = lean_box(0); + lean_dec_ref(x_176); + x_231 = lean_box(0); } -if (lean_is_scalar(x_230)) { - x_231 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_231)) { + x_232 = lean_alloc_ctor(1, 2, 0); } else { - x_231 = x_230; + x_232 = x_231; } -lean_ctor_set(x_231, 0, x_228); -lean_ctor_set(x_231, 1, x_229); -return x_231; -} -} -else -{ -lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; -lean_dec(x_177); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_13); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_1); -x_232 = lean_ctor_get(x_178, 0); -lean_inc(x_232); -x_233 = lean_ctor_get(x_178, 1); -lean_inc(x_233); -if (lean_is_exclusive(x_178)) { - lean_ctor_release(x_178, 0); - lean_ctor_release(x_178, 1); - x_234 = x_178; -} else { - lean_dec_ref(x_178); - x_234 = lean_box(0); -} -if (lean_is_scalar(x_234)) { - x_235 = lean_alloc_ctor(1, 2, 0); -} else { - x_235 = x_234; -} -lean_ctor_set(x_235, 0, x_232); -lean_ctor_set(x_235, 1, x_233); -return x_235; +lean_ctor_set(x_232, 0, x_229); +lean_ctor_set(x_232, 1, x_230); +return x_232; } } } else { -uint8_t x_236; +uint8_t x_233; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_236 = !lean_is_exclusive(x_10); -if (x_236 == 0) +x_233 = !lean_is_exclusive(x_10); +if (x_233 == 0) { return x_10; } else { -lean_object* x_237; lean_object* x_238; lean_object* x_239; -x_237 = lean_ctor_get(x_10, 0); -x_238 = lean_ctor_get(x_10, 1); -lean_inc(x_238); -lean_inc(x_237); +lean_object* x_234; lean_object* x_235; lean_object* x_236; +x_234 = lean_ctor_get(x_10, 0); +x_235 = lean_ctor_get(x_10, 1); +lean_inc(x_235); +lean_inc(x_234); lean_dec(x_10); -x_239 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_239, 0, x_237); -lean_ctor_set(x_239, 1, x_238); -return x_239; +x_236 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_236, 0, x_234); +lean_ctor_set(x_236, 1, x_235); +return x_236; } } } @@ -10883,7 +10802,7 @@ x_15 = l_Lean_Meta_addSimpTheorem(x_1, x_2, x_12, x_13, x_14, x_6, x_7, x_8, x_9 return x_15; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__1() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__1() { _start: { lean_object* x_1; @@ -10891,17 +10810,17 @@ x_1 = lean_mk_string_from_bytes("Lean", 4); return x_1; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__2() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__1; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__3() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__3() { _start: { lean_object* x_1; @@ -10909,17 +10828,17 @@ x_1 = lean_mk_string_from_bytes("Parser", 6); return x_1; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__4() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__2; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__3; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__2; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__3; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__5() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__5() { _start: { lean_object* x_1; @@ -10927,17 +10846,17 @@ x_1 = lean_mk_string_from_bytes("Tactic", 6); return x_1; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__6() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__4; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__5; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__4; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__5; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__7() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__7() { _start: { lean_object* x_1; @@ -10945,17 +10864,17 @@ x_1 = lean_mk_string_from_bytes("tacticSeq", 9); return x_1; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__8() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__6; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__7; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__6; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__7; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__9() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__9() { _start: { lean_object* x_1; @@ -10963,17 +10882,17 @@ x_1 = lean_mk_string_from_bytes("tacticSeq1Indented", 18); return x_1; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__10() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__6; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__9; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__6; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__9; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__11() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__11() { _start: { lean_object* x_1; @@ -10981,17 +10900,17 @@ x_1 = lean_mk_string_from_bytes("null", 4); return x_1; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__12() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__11; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__11; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__13() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__13() { _start: { lean_object* x_1; @@ -10999,39 +10918,39 @@ x_1 = lean_mk_string_from_bytes("exact", 5); return x_1; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__14() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__14() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__6; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__13; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__6; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__13; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__15() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__15() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(2); -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__13; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__13; x_3 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__16() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__16() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Meta_SimpTheorem_keys___default___closed__1; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__15; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__15; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__17() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__17() { _start: { lean_object* x_1; @@ -11039,17 +10958,17 @@ x_1 = lean_mk_string_from_bytes("Term", 4); return x_1; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__18() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__18() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__4; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__17; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__4; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__17; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__19() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__19() { _start: { lean_object* x_1; @@ -11057,17 +10976,17 @@ x_1 = lean_mk_string_from_bytes("declName", 8); return x_1; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__20() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__20() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__18; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__19; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__18; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__19; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__21() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__21() { _start: { lean_object* x_1; @@ -11075,35 +10994,35 @@ x_1 = lean_mk_string_from_bytes("decl_name%", 10); return x_1; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__22() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__22() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(2); -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__21; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__21; x_3 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__23() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__23() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Meta_SimpTheorem_keys___default___closed__1; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__22; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__22; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__24() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__24() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = lean_box(2); -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__20; -x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__23; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__20; +x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__23; x_4 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -11111,23 +11030,23 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__25() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__25() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__16; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__24; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__16; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__24; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__26() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__26() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = lean_box(2); -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__14; -x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__25; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__14; +x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__25; x_4 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -11135,23 +11054,23 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__27() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__27() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Meta_SimpTheorem_keys___default___closed__1; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__26; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__26; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__28() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__28() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = lean_box(2); -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__12; -x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__27; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__12; +x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__27; x_4 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -11159,23 +11078,23 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__29() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__29() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Meta_SimpTheorem_keys___default___closed__1; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__28; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__28; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__30() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__30() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = lean_box(2); -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__10; -x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__29; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__10; +x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__29; x_4 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -11183,23 +11102,23 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__31() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__31() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Meta_SimpTheorem_keys___default___closed__1; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__30; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__30; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__32() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__32() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = lean_box(2); -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__8; -x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__31; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__8; +x_3 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__31; x_4 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -11207,11 +11126,11 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154_() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105_() { _start: { lean_object* x_1; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__32; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__32; return x_1; } } @@ -12172,7 +12091,7 @@ static lean_object* _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__15() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__6; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__6; x_2 = l_Lean_Meta_mkSimpAttr___lambda__1___closed__14; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; @@ -13002,7 +12921,7 @@ x_7 = l_Lean_registerSimpleScopedEnvExtension___rarg(x_6, x_2); return x_7; } } -LEAN_EXPORT lean_object* l_Std_mkHashMap___at_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4730____spec__1(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Std_mkHashMap___at_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4681____spec__1(lean_object* x_1) { _start: { lean_object* x_2; @@ -13010,7 +12929,7 @@ x_2 = l_Std_mkHashMapImp___rarg(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4730_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4681_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; @@ -13037,20 +12956,20 @@ return x_8; } } } -LEAN_EXPORT lean_object* l_Std_mkHashMap___at_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4730____spec__1___boxed(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Std_mkHashMap___at_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4681____spec__1___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Std_mkHashMap___at_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4730____spec__1(x_1); +x_2 = l_Std_mkHashMap___at_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4681____spec__1(x_1); lean_dec(x_1); return x_2; } } -static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4766_() { +static lean_object* _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4717_() { _start: { lean_object* x_1; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__32; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__32; return x_1; } } @@ -13498,7 +13417,7 @@ x_4 = lean_box(x_3); return x_4; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__1() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__1() { _start: { lean_object* x_1; @@ -13506,17 +13425,17 @@ x_1 = lean_mk_string_from_bytes("simp", 4); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__2() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____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_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__1; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__3() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__3() { _start: { lean_object* x_1; @@ -13524,17 +13443,17 @@ x_1 = lean_mk_string_from_bytes("Meta", 4); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__4() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__2; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__3; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__2; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__3; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__5() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__5() { _start: { lean_object* x_1; @@ -13542,17 +13461,17 @@ x_1 = lean_mk_string_from_bytes("simpExtension", 13); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__6() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__4; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__5; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__4; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__5; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__7() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__7() { _start: { lean_object* x_1; @@ -13560,17 +13479,17 @@ x_1 = lean_mk_string_from_bytes("Ext", 3); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__8() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__2; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__7; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__2; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__7; x_3 = lean_name_append_after(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__9() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__9() { _start: { lean_object* x_1; @@ -13578,14 +13497,14 @@ x_1 = lean_mk_string_from_bytes("simplification theorem", 22); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__2; -x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__9; -x_4 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__6; -x_5 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__8; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__2; +x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__9; +x_4 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__6; +x_5 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__8; x_6 = l_Lean_Meta_registerSimpAttr(x_2, x_3, x_4, x_5, x_1); return x_6; } @@ -14610,7 +14529,7 @@ x_9 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocessProo return x_9; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_mkSimpTheorems___spec__1(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t 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_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_mkSimpTheorems___spec__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, size_t x_5, size_t 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; @@ -14623,7 +14542,7 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_4); -lean_dec(x_3); +lean_dec(x_2); lean_dec(x_1); x_14 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_14, 0, x_7); @@ -14641,10 +14560,10 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1); +lean_inc(x_2); lean_inc(x_15); -x_18 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore(x_15, x_1, x_15, x_2, x_3, x_4, x_8, x_9, x_10, x_11, x_12); +lean_inc(x_1); +x_18 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore(x_1, x_15, x_2, x_15, x_3, x_4, x_8, x_9, x_10, x_11, x_12); if (lean_obj_tag(x_18) == 0) { lean_object* x_19; lean_object* x_20; size_t x_21; size_t x_22; lean_object* x_23; @@ -14670,7 +14589,7 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_4); -lean_dec(x_3); +lean_dec(x_2); lean_dec(x_1); x_25 = !lean_is_exclusive(x_18); if (x_25 == 0) @@ -14694,7 +14613,7 @@ return x_28; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_mkSimpTheorems(lean_object* x_1, lean_object* x_2, uint8_t x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +LEAN_EXPORT lean_object* l_Lean_Meta_mkSimpTheorems(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, uint8_t 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; @@ -14713,7 +14632,7 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_16 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocessProof(x_2, x_4, x_7, x_8, x_9, x_10, x_11); +x_16 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocessProof(x_3, x_5, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_16) == 0) { lean_object* x_17; lean_object* x_18; lean_object* x_19; size_t x_20; size_t x_21; lean_object* x_22; @@ -14726,7 +14645,7 @@ x_19 = lean_array_get_size(x_17); x_20 = lean_usize_of_nat(x_19); lean_dec(x_19); x_21 = 0; -x_22 = l_Array_mapMUnsafe_map___at_Lean_Meta_mkSimpTheorems___spec__1(x_1, x_3, x_5, x_6, x_20, x_21, x_17, x_7, x_8, x_9, x_10, x_18); +x_22 = l_Array_mapMUnsafe_map___at_Lean_Meta_mkSimpTheorems___spec__1(x_1, x_2, x_4, x_6, x_20, x_21, x_17, x_7, x_8, x_9, x_10, x_18); if (lean_obj_tag(x_22) == 0) { uint8_t x_23; @@ -14780,7 +14699,7 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_6); -lean_dec(x_5); +lean_dec(x_2); lean_dec(x_1); x_31 = !lean_is_exclusive(x_16); if (x_31 == 0) @@ -14840,7 +14759,7 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_50 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocessProof(x_2, x_4, x_7, x_8, x_9, x_10, x_11); +x_50 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocessProof(x_3, x_5, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_50) == 0) { lean_object* x_51; lean_object* x_52; lean_object* x_53; size_t x_54; size_t x_55; lean_object* x_56; @@ -14853,7 +14772,7 @@ x_53 = lean_array_get_size(x_51); x_54 = lean_usize_of_nat(x_53); lean_dec(x_53); x_55 = 0; -x_56 = l_Array_mapMUnsafe_map___at_Lean_Meta_mkSimpTheorems___spec__1(x_1, x_3, x_5, x_6, x_54, x_55, x_51, x_7, x_8, x_9, x_10, x_52); +x_56 = l_Array_mapMUnsafe_map___at_Lean_Meta_mkSimpTheorems___spec__1(x_1, x_2, x_4, x_6, x_54, x_55, x_51, x_7, x_8, x_9, x_10, x_52); if (lean_obj_tag(x_56) == 0) { lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; @@ -14911,7 +14830,7 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_6); -lean_dec(x_5); +lean_dec(x_2); lean_dec(x_1); x_65 = lean_ctor_get(x_50, 0); lean_inc(x_65); @@ -15002,7 +14921,7 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_91); -x_92 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocessProof(x_2, x_4, x_91, x_8, x_9, x_10, x_11); +x_92 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocessProof(x_3, x_5, x_91, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_92) == 0) { lean_object* x_93; lean_object* x_94; lean_object* x_95; size_t x_96; size_t x_97; lean_object* x_98; @@ -15015,7 +14934,7 @@ x_95 = lean_array_get_size(x_93); x_96 = lean_usize_of_nat(x_95); lean_dec(x_95); x_97 = 0; -x_98 = l_Array_mapMUnsafe_map___at_Lean_Meta_mkSimpTheorems___spec__1(x_1, x_3, x_5, x_6, x_96, x_97, x_93, x_91, x_8, x_9, x_10, x_94); +x_98 = l_Array_mapMUnsafe_map___at_Lean_Meta_mkSimpTheorems___spec__1(x_1, x_2, x_4, x_6, x_96, x_97, x_93, x_91, x_8, x_9, x_10, x_94); if (lean_obj_tag(x_98) == 0) { lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; @@ -15073,7 +14992,7 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_6); -lean_dec(x_5); +lean_dec(x_2); lean_dec(x_1); x_107 = lean_ctor_get(x_92, 0); lean_inc(x_107); @@ -15103,13 +15022,13 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_mkSimpTheorems___ _start: { uint8_t x_13; size_t x_14; size_t x_15; lean_object* x_16; -x_13 = lean_unbox(x_2); -lean_dec(x_2); +x_13 = lean_unbox(x_3); +lean_dec(x_3); x_14 = lean_unbox_usize(x_5); lean_dec(x_5); x_15 = lean_unbox_usize(x_6); lean_dec(x_6); -x_16 = l_Array_mapMUnsafe_map___at_Lean_Meta_mkSimpTheorems___spec__1(x_1, x_13, x_3, x_4, x_14, x_15, x_7, x_8, x_9, x_10, x_11, x_12); +x_16 = l_Array_mapMUnsafe_map___at_Lean_Meta_mkSimpTheorems___spec__1(x_1, x_2, x_13, x_4, x_14, x_15, x_7, x_8, x_9, x_10, x_11, x_12); return x_16; } } @@ -15117,311 +15036,149 @@ LEAN_EXPORT lean_object* l_Lean_Meta_mkSimpTheorems___boxed(lean_object* x_1, le _start: { uint8_t x_12; uint8_t x_13; lean_object* x_14; -x_12 = lean_unbox(x_3); -lean_dec(x_3); -x_13 = lean_unbox(x_4); +x_12 = lean_unbox(x_4); lean_dec(x_4); -x_14 = l_Lean_Meta_mkSimpTheorems(x_1, x_2, x_12, x_13, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_13 = lean_unbox(x_5); +lean_dec(x_5); +x_14 = l_Lean_Meta_mkSimpTheorems(x_1, x_2, x_3, x_12, x_13, x_6, x_7, x_8, x_9, x_10, x_11); return x_14; } } -LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_add_getName_x3f(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: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_8; uint8_t x_9; -x_8 = l_Lean_Expr_getAppFn(x_2); -x_9 = l_Lean_Expr_isConst(x_8); -if (x_9 == 0) -{ -uint8_t x_10; -x_10 = l_Lean_Expr_isFVar(x_8); -if (x_10 == 0) -{ -lean_object* x_11; lean_object* x_12; -lean_dec(x_8); -lean_dec(x_3); -x_11 = lean_box(0); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_7); -return x_12; -} -else -{ -lean_object* x_13; -x_13 = l_Lean_Meta_getFVarLocalDecl(x_8, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_13) == 0) -{ -uint8_t x_14; -x_14 = !lean_is_exclusive(x_13); -if (x_14 == 0) -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_13, 0); -x_16 = l_Lean_LocalDecl_userName(x_15); -lean_dec(x_15); -x_17 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_13, 0, x_17); -return x_13; -} -else -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -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_13); -x_20 = l_Lean_LocalDecl_userName(x_18); -lean_dec(x_18); -x_21 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_21, 0, x_20); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_19); -return x_22; -} -} -else -{ -uint8_t x_23; -x_23 = !lean_is_exclusive(x_13); -if (x_23 == 0) -{ -return x_13; -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_13, 0); -x_25 = lean_ctor_get(x_13, 1); -lean_inc(x_25); -lean_inc(x_24); -lean_dec(x_13); -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; -} -} -} -} -else -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; -lean_dec(x_3); -x_27 = l_Lean_Expr_constName_x21(x_8); -lean_dec(x_8); -x_28 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_28, 0, x_27); -x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_28); -lean_ctor_set(x_29, 1, x_7); -return x_29; -} -} -else -{ -lean_object* x_30; -lean_dec(x_3); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_1); -lean_ctor_set(x_30, 1, x_7); -return x_30; -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_add_getName_x3f___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_Meta_SimpTheorems_add_getName_x3f(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_4); -lean_dec(x_2); -return x_8; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_add(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, uint8_t 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_EXPORT lean_object* l_Lean_Meta_SimpTheorems_add(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, uint8_t 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; -x_13 = l_Lean_Expr_isConst(x_3); +x_13 = l_Lean_Expr_isConst(x_4); if (x_13 == 0) { lean_object* x_14; -lean_inc(x_8); -x_14 = l_Lean_Meta_SimpTheorems_add_getName_x3f(x_7, x_3, x_8, x_9, x_10, x_11, x_12); +x_14 = l_Lean_Meta_mkSimpTheorems(x_2, x_3, x_4, x_6, x_5, x_7, x_8, x_9, x_10, x_11, x_12); 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); +uint8_t x_15; +x_15 = !lean_is_exclusive(x_14); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_16 = lean_ctor_get(x_14, 0); +x_17 = lean_array_get_size(x_16); +x_18 = lean_unsigned_to_nat(0u); +x_19 = lean_nat_dec_lt(x_18, x_17); +if (x_19 == 0) +{ +lean_dec(x_17); +lean_dec(x_16); +lean_ctor_set(x_14, 0, x_1); +return x_14; +} +else +{ +uint8_t x_20; +x_20 = lean_nat_dec_le(x_17, x_17); +if (x_20 == 0) +{ +lean_dec(x_17); +lean_dec(x_16); +lean_ctor_set(x_14, 0, x_1); +return x_14; +} +else +{ +size_t x_21; size_t x_22; lean_object* x_23; +x_21 = 0; +x_22 = lean_usize_of_nat(x_17); +lean_dec(x_17); +x_23 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_SimpTheorems_addConst___spec__1(x_16, x_21, x_22, x_1); +lean_dec(x_16); +lean_ctor_set(x_14, 0, x_23); +return x_14; +} +} +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_24 = lean_ctor_get(x_14, 0); +x_25 = lean_ctor_get(x_14, 1); +lean_inc(x_25); +lean_inc(x_24); lean_dec(x_14); -x_17 = l_Lean_Meta_mkSimpTheorems(x_2, x_3, x_5, x_4, x_6, x_15, x_8, x_9, x_10, x_11, x_16); -if (lean_obj_tag(x_17) == 0) +x_26 = lean_array_get_size(x_24); +x_27 = lean_unsigned_to_nat(0u); +x_28 = lean_nat_dec_lt(x_27, x_26); +if (x_28 == 0) { -uint8_t x_18; -x_18 = !lean_is_exclusive(x_17); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; -x_19 = lean_ctor_get(x_17, 0); -x_20 = lean_array_get_size(x_19); -x_21 = lean_unsigned_to_nat(0u); -x_22 = lean_nat_dec_lt(x_21, x_20); -if (x_22 == 0) -{ -lean_dec(x_20); -lean_dec(x_19); -lean_ctor_set(x_17, 0, x_1); -return x_17; +lean_object* x_29; +lean_dec(x_26); +lean_dec(x_24); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_1); +lean_ctor_set(x_29, 1, x_25); +return x_29; } else { -uint8_t x_23; -x_23 = lean_nat_dec_le(x_20, x_20); -if (x_23 == 0) +uint8_t x_30; +x_30 = lean_nat_dec_le(x_26, x_26); +if (x_30 == 0) { -lean_dec(x_20); -lean_dec(x_19); -lean_ctor_set(x_17, 0, x_1); -return x_17; +lean_object* x_31; +lean_dec(x_26); +lean_dec(x_24); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_1); +lean_ctor_set(x_31, 1, x_25); +return x_31; } else { -size_t x_24; size_t x_25; lean_object* x_26; -x_24 = 0; -x_25 = lean_usize_of_nat(x_20); -lean_dec(x_20); -x_26 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_SimpTheorems_addConst___spec__1(x_19, x_24, x_25, x_1); -lean_dec(x_19); -lean_ctor_set(x_17, 0, x_26); -return x_17; -} -} -} -else -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_27 = lean_ctor_get(x_17, 0); -x_28 = lean_ctor_get(x_17, 1); -lean_inc(x_28); -lean_inc(x_27); -lean_dec(x_17); -x_29 = lean_array_get_size(x_27); -x_30 = lean_unsigned_to_nat(0u); -x_31 = lean_nat_dec_lt(x_30, x_29); -if (x_31 == 0) -{ -lean_object* x_32; -lean_dec(x_29); -lean_dec(x_27); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_1); -lean_ctor_set(x_32, 1, x_28); -return x_32; -} -else -{ -uint8_t x_33; -x_33 = lean_nat_dec_le(x_29, x_29); -if (x_33 == 0) -{ -lean_object* x_34; -lean_dec(x_29); -lean_dec(x_27); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_1); -lean_ctor_set(x_34, 1, x_28); -return x_34; -} -else -{ -size_t x_35; size_t x_36; lean_object* x_37; lean_object* x_38; -x_35 = 0; -x_36 = lean_usize_of_nat(x_29); -lean_dec(x_29); -x_37 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_SimpTheorems_addConst___spec__1(x_27, x_35, x_36, x_1); -lean_dec(x_27); -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_28); -return x_38; +size_t x_32; size_t x_33; lean_object* x_34; lean_object* x_35; +x_32 = 0; +x_33 = lean_usize_of_nat(x_26); +lean_dec(x_26); +x_34 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_SimpTheorems_addConst___spec__1(x_24, x_32, x_33, x_1); +lean_dec(x_24); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_25); +return x_35; } } } } else { -uint8_t x_39; +uint8_t x_36; lean_dec(x_1); -x_39 = !lean_is_exclusive(x_17); -if (x_39 == 0) -{ -return x_17; -} -else -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_17, 0); -x_41 = lean_ctor_get(x_17, 1); -lean_inc(x_41); -lean_inc(x_40); -lean_dec(x_17); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -return x_42; -} -} -} -else -{ -uint8_t x_43; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_43 = !lean_is_exclusive(x_14); -if (x_43 == 0) +x_36 = !lean_is_exclusive(x_14); +if (x_36 == 0) { return x_14; } else { -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_14, 0); -x_45 = lean_ctor_get(x_14, 1); -lean_inc(x_45); -lean_inc(x_44); +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_14, 0); +x_38 = lean_ctor_get(x_14, 1); +lean_inc(x_38); +lean_inc(x_37); lean_dec(x_14); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_44); -lean_ctor_set(x_46, 1, x_45); -return x_46; +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_37); +lean_ctor_set(x_39, 1, x_38); +return x_39; } } } else { -lean_object* x_47; lean_object* x_48; -lean_dec(x_7); -lean_dec(x_2); -x_47 = l_Lean_Expr_constName_x21(x_3); +lean_object* x_40; lean_object* x_41; lean_dec(x_3); -x_48 = l_Lean_Meta_SimpTheorems_addConst(x_1, x_47, x_5, x_4, x_6, x_8, x_9, x_10, x_11, x_12); -return x_48; +lean_dec(x_2); +x_40 = l_Lean_Expr_constName_x21(x_4); +lean_dec(x_4); +x_41 = l_Lean_Meta_SimpTheorems_addConst(x_1, x_40, x_6, x_5, x_7, x_8, x_9, x_10, x_11, x_12); +return x_41; } } } @@ -15429,11 +15186,11 @@ LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_add___boxed(lean_object* x_1, _start: { uint8_t x_13; uint8_t x_14; lean_object* x_15; -x_13 = lean_unbox(x_4); -lean_dec(x_4); -x_14 = lean_unbox(x_5); +x_13 = lean_unbox(x_5); lean_dec(x_5); -x_15 = l_Lean_Meta_SimpTheorems_add(x_1, x_2, x_3, x_13, x_14, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_14 = lean_unbox(x_6); +lean_dec(x_6); +x_15 = l_Lean_Meta_SimpTheorems_add(x_1, x_2, x_3, x_4, x_13, x_14, x_7, x_8, x_9, x_10, x_11, x_12); return x_15; } } @@ -15751,7 +15508,7 @@ x_17 = l_Lean_Meta_SimpTheorem_keys___default___closed__1; x_18 = 0; x_19 = 1; x_20 = lean_unsigned_to_nat(1000u); -x_21 = l_Lean_Meta_SimpTheorems_add(x_14, x_17, x_2, x_18, x_19, x_20, x_3, x_4, x_5, x_6, x_7, x_8); +x_21 = l_Lean_Meta_SimpTheorems_add(x_14, x_2, x_17, x_3, x_18, x_19, x_20, x_4, x_5, x_6, x_7, x_8); if (lean_obj_tag(x_21) == 0) { uint8_t x_22; @@ -15813,7 +15570,7 @@ x_34 = l_Lean_Meta_SimpTheorem_keys___default___closed__1; x_35 = 0; x_36 = 1; x_37 = lean_unsigned_to_nat(1000u); -x_38 = l_Lean_Meta_SimpTheorems_add(x_33, x_34, x_2, x_35, x_36, x_37, x_3, x_4, x_5, x_6, x_7, x_8); +x_38 = l_Lean_Meta_SimpTheorems_add(x_33, x_2, x_34, x_3, x_35, x_36, x_37, x_4, x_5, x_6, x_7, x_8); if (lean_obj_tag(x_38) == 0) { uint8_t x_39; @@ -16136,7 +15893,7 @@ static lean_object* _init_l_Lean_Parser_Command_registerSimpAttr___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__4; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__4; x_2 = l_Lean_Parser_Command_registerSimpAttr___closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; @@ -16147,7 +15904,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Command_registerSimpAttr___closed__2; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__1; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } @@ -16157,7 +15914,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Command_registerSimpAttr___closed__3; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__3; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__3; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } @@ -16344,7 +16101,7 @@ static lean_object* _init_l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheor _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__4; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__4; x_2 = l_Lean_Parser_Command_registerSimpAttr___closed__5; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; @@ -16355,7 +16112,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__3; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__3; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } @@ -16494,7 +16251,7 @@ static lean_object* _init_l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheor _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__18; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__18; x_2 = l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__16; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; @@ -16545,7 +16302,7 @@ static lean_object* _init_l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheor _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__4; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__4; x_2 = l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__18; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; @@ -16635,7 +16392,7 @@ static lean_object* _init_l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheor _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__18; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__18; x_2 = l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__30; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; @@ -16653,7 +16410,7 @@ static lean_object* _init_l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheor _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__18; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__18; x_2 = l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__32; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; @@ -16671,7 +16428,7 @@ static lean_object* _init_l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheor _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__18; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__18; x_2 = l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__34; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; @@ -16689,7 +16446,7 @@ static lean_object* _init_l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheor _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__18; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__18; x_2 = l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__36; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; @@ -16732,7 +16489,7 @@ static lean_object* _init_l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheor _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__4; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__4; x_2 = l_Lean_Parser_Command_registerSimpAttr___closed__7; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; @@ -16823,7 +16580,7 @@ static lean_object* _init_l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheor _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__18; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__18; x_2 = l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__49; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; @@ -16900,7 +16657,7 @@ static lean_object* _init_l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheor _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__4; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__4; x_2 = l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__58; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; @@ -17032,7 +16789,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__2; -x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__5; +x_2 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__5; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } @@ -17059,7 +16816,7 @@ static lean_object* _init_l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheor _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__6; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__6; x_2 = l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__74; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; @@ -17317,7 +17074,7 @@ static lean_object* _init_l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheor _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__18; +x_1 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__18; x_2 = l_Lean_Meta___aux__Lean__Meta__Tactic__Simp__SimpTheorems______macroRules__Lean__Meta____root____Lean__Parser__Command__registerSimpAttr__1___closed__100; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; @@ -17399,7 +17156,7 @@ lean_inc(x_27); lean_dec(x_2); x_28 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___lambda__3___closed__9; x_29 = lean_array_push(x_28, x_9); -x_30 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__12; +x_30 = l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__12; lean_inc(x_23); x_31 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_31, 0, x_23); @@ -17886,18 +17643,12 @@ l_Lean_Meta_SimpTheorem_priority___default = _init_l_Lean_Meta_SimpTheorem_prior lean_mark_persistent(l_Lean_Meta_SimpTheorem_priority___default); l_Lean_Meta_SimpTheorem_post___default = _init_l_Lean_Meta_SimpTheorem_post___default(); l_Lean_Meta_SimpTheorem_perm___default = _init_l_Lean_Meta_SimpTheorem_perm___default(); -l_Lean_Meta_SimpTheorem_name_x3f___default = _init_l_Lean_Meta_SimpTheorem_name_x3f___default(); -lean_mark_persistent(l_Lean_Meta_SimpTheorem_name_x3f___default); l_Lean_Meta_instInhabitedSimpTheorem___closed__1 = _init_l_Lean_Meta_instInhabitedSimpTheorem___closed__1(); lean_mark_persistent(l_Lean_Meta_instInhabitedSimpTheorem___closed__1); l_Lean_Meta_instInhabitedSimpTheorem___closed__2 = _init_l_Lean_Meta_instInhabitedSimpTheorem___closed__2(); lean_mark_persistent(l_Lean_Meta_instInhabitedSimpTheorem___closed__2); l_Lean_Meta_instInhabitedSimpTheorem = _init_l_Lean_Meta_instInhabitedSimpTheorem(); lean_mark_persistent(l_Lean_Meta_instInhabitedSimpTheorem); -l_Lean_Meta_SimpTheorem_getName___closed__1 = _init_l_Lean_Meta_SimpTheorem_getName___closed__1(); -lean_mark_persistent(l_Lean_Meta_SimpTheorem_getName___closed__1); -l_Lean_Meta_SimpTheorem_getName___closed__2 = _init_l_Lean_Meta_SimpTheorem_getName___closed__2(); -lean_mark_persistent(l_Lean_Meta_SimpTheorem_getName___closed__2); l_Lean_Meta_isRflProofCore___closed__1 = _init_l_Lean_Meta_isRflProofCore___closed__1(); lean_mark_persistent(l_Lean_Meta_isRflProofCore___closed__1); l_Lean_Meta_isRflProofCore___closed__2 = _init_l_Lean_Meta_isRflProofCore___closed__2(); @@ -18088,72 +17839,72 @@ l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addSimpTheorem___spec__1___closed__ lean_mark_persistent(l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addSimpTheorem___spec__1___closed__8); l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addSimpTheorem___spec__1___closed__9 = _init_l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addSimpTheorem___spec__1___closed__9(); lean_mark_persistent(l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addSimpTheorem___spec__1___closed__9); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__1 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__1(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__1); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__2 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__2(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__2); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__3 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__3(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__3); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__4 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__4(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__4); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__5 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__5(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__5); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__6 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__6(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__6); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__7 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__7(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__7); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__8 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__8(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__8); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__9 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__9(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__9); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__10 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__10(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__10); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__11 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__11(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__11); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__12 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__12(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__12); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__13 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__13(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__13); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__14 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__14(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__14); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__15 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__15(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__15); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__16 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__16(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__16); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__17 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__17(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__17); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__18 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__18(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__18); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__19 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__19(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__19); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__20 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__20(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__20); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__21 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__21(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__21); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__22 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__22(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__22); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__23 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__23(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__23); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__24 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__24(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__24); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__25 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__25(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__25); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__26 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__26(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__26); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__27 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__27(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__27); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__28 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__28(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__28); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__29 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__29(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__29); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__30 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__30(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__30); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__31 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__31(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__31); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__32 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__32(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154____closed__32); -l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154_ = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154_(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4154_); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__1 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__1(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__1); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__2 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__2(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__2); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__3 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__3(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__3); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__4 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__4(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__4); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__5 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__5(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__5); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__6 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__6(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__6); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__7 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__7(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__7); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__8 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__8(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__8); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__9 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__9(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__9); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__10 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__10(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__10); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__11 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__11(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__11); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__12 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__12(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__12); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__13 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__13(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__13); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__14 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__14(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__14); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__15 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__15(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__15); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__16 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__16(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__16); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__17 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__17(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__17); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__18 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__18(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__18); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__19 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__19(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__19); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__20 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__20(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__20); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__21 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__21(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__21); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__22 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__22(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__22); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__23 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__23(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__23); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__24 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__24(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__24); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__25 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__25(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__25); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__26 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__26(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__26); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__27 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__27(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__27); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__28 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__28(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__28); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__29 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__29(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__29); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__30 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__30(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__30); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__31 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__31(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__31); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__32 = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__32(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105____closed__32); +l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105_ = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105_(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4105_); l_Lean_Meta_mkSimpAttr___lambda__1___closed__1 = _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__1(); lean_mark_persistent(l_Lean_Meta_mkSimpAttr___lambda__1___closed__1); l_Lean_Meta_mkSimpAttr___lambda__1___closed__2 = _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__2(); @@ -18190,34 +17941,34 @@ l_Lean_Meta_mkSimpExt___closed__2 = _init_l_Lean_Meta_mkSimpExt___closed__2(); lean_mark_persistent(l_Lean_Meta_mkSimpExt___closed__2); l_Lean_Meta_mkSimpExt___closed__3 = _init_l_Lean_Meta_mkSimpExt___closed__3(); lean_mark_persistent(l_Lean_Meta_mkSimpExt___closed__3); -if (builtin) {res = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4730_(lean_io_mk_world()); +if (builtin) {res = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4681_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l_Lean_Meta_simpExtensionMapRef = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_Meta_simpExtensionMapRef); lean_dec_ref(res); -}l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4766_ = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4766_(); -lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4766_); +}l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4717_ = _init_l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4717_(); +lean_mark_persistent(l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4717_); l_Lean_Meta_registerSimpAttr___closed__1 = _init_l_Lean_Meta_registerSimpAttr___closed__1(); lean_mark_persistent(l_Lean_Meta_registerSimpAttr___closed__1); -l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__1(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__1); -l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__2(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__2); -l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__3 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__3(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__3); -l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__4 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__4(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__4); -l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__5 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__5(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__5); -l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__6 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__6(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__6); -l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__7 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__7(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__7); -l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__8 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__8(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__8); -l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__9 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__9(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870____closed__9); -if (builtin) {res = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4870_(lean_io_mk_world()); +l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__1(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__1); +l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__2(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__2); +l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__3 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__3(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__3); +l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__4 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__4(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__4); +l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__5 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__5(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__5); +l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__6 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__6(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__6); +l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__7 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__7(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__7); +l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__8 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__8(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__8); +l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__9 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__9(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821____closed__9); +if (builtin) {res = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4821_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l_Lean_Meta_simpExtension = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_Meta_simpExtension); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Simp/Types.c b/stage0/stdlib/Lean/Meta/Tactic/Simp/Types.c index 1d2dbccbab..4dd69aef9a 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Simp/Types.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Simp/Types.c @@ -20,6 +20,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Simp_getSimpTheorems___rarg(lean_object*, l LEAN_EXPORT lean_object* l_Lean_Meta_Simp_Context_mkDefault(lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_getSimpCongrTheorems___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_SimpExtension_getTheorems(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_saveState___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_getSimpCongrTheorems___boxed(lean_object*); @@ -27,7 +28,9 @@ uint8_t l_Lean_Meta_SimpTheoremsArray_isDeclToUnfold(lean_object*, lean_object*) LEAN_EXPORT lean_object* l_Lean_Meta_Simp_withSimpTheorems___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_Context_mkDefault___rarg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_Context_namedStx___default; lean_object* lean_array_push(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_recordSimpTheorem___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_Methods_discharge_x3f___default(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_Context_parent_x3f___default; LEAN_EXPORT lean_object* l_Lean_Meta_Simp_instInhabitedResult; @@ -46,6 +49,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Simp_withParent___rarg(lean_object*, lean_o extern lean_object* l_Lean_Meta_simpExtension; LEAN_EXPORT lean_object* l_Lean_Meta_Simp_getSimpTheorems___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_getConfig(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_State_usedTheorems___default; static lean_object* l_Lean_Meta_Simp_Context_congrTheorems___default___closed__1; static lean_object* l_Lean_Meta_Simp_instInhabitedStep___closed__1; lean_object* l_Std_mkHashMapImp___rarg(lean_object*); @@ -68,6 +72,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Simp_instMonadBacktrackSavedStateSimpM___la LEAN_EXPORT lean_object* l_Std_mkHashMap___at_Lean_Meta_Simp_State_cache___default___spec__1___boxed(lean_object*); static lean_object* l_Lean_Meta_Simp_instInhabitedResult___closed__1; lean_object* l_Lean_Meta_SavedState_restore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_NameSet_empty; LEAN_EXPORT lean_object* l_Lean_Meta_Simp_getConfig___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_instMonadBacktrackSavedStateSimpM___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_Context_mkDefault___rarg___closed__2; @@ -94,6 +99,7 @@ static lean_object* l_Lean_Meta_Simp_Context_simpTheorems___default___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Simp_instInhabitedMethods___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_getSimpCongrTheorems___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_Result_proof_x3f___default; +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_recordSimpTheorem(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_instMonadBacktrackSavedStateSimpM___closed__3; static lean_object* l_Lean_Meta_Simp_instInhabitedContext___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Simp_Step_updateResult(lean_object*, lean_object*); @@ -271,6 +277,14 @@ x_1 = l_Lean_Meta_Simp_Context_congrTheorems___default___closed__5; return x_1; } } +static lean_object* _init_l_Lean_Meta_Simp_Context_namedStx___default() { +_start: +{ +lean_object* x_1; +x_1 = lean_box(0); +return x_1; +} +} static lean_object* _init_l_Lean_Meta_Simp_Context_parent_x3f___default() { _start: { @@ -316,19 +330,21 @@ return x_4; static lean_object* _init_l_Lean_Meta_Simp_instInhabitedContext___closed__2() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +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; x_1 = lean_box(0); -x_2 = l_Lean_Meta_Simp_instInhabitedContext___closed__1; -x_3 = l_Lean_Meta_Simp_Context_simpTheorems___default___closed__1; -x_4 = l_Lean_Meta_Simp_Context_congrTheorems___default___closed__5; -x_5 = lean_unsigned_to_nat(0u); -x_6 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_6, 0, x_2); -lean_ctor_set(x_6, 1, x_3); -lean_ctor_set(x_6, 2, x_4); -lean_ctor_set(x_6, 3, x_1); -lean_ctor_set(x_6, 4, x_5); -return x_6; +x_2 = lean_box(0); +x_3 = l_Lean_Meta_Simp_instInhabitedContext___closed__1; +x_4 = l_Lean_Meta_Simp_Context_simpTheorems___default___closed__1; +x_5 = l_Lean_Meta_Simp_Context_congrTheorems___default___closed__5; +x_6 = lean_unsigned_to_nat(0u); +x_7 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_7, 0, x_3); +lean_ctor_set(x_7, 1, x_4); +lean_ctor_set(x_7, 2, x_5); +lean_ctor_set(x_7, 3, x_1); +lean_ctor_set(x_7, 4, x_2); +lean_ctor_set(x_7, 5, x_6); +return x_7; } } static lean_object* _init_l_Lean_Meta_Simp_instInhabitedContext() { @@ -391,45 +407,49 @@ x_8 = l_Lean_Meta_getSimpCongrTheorems___rarg(x_2, x_7); 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_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 = l_Lean_Meta_Simp_Context_mkDefault___rarg___closed__2; x_12 = lean_array_push(x_11, x_6); x_13 = lean_box(0); -x_14 = l_Lean_Meta_Simp_Context_config___default___closed__1; -x_15 = lean_unsigned_to_nat(0u); -x_16 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_16, 0, x_14); -lean_ctor_set(x_16, 1, x_12); -lean_ctor_set(x_16, 2, x_10); -lean_ctor_set(x_16, 3, x_13); -lean_ctor_set(x_16, 4, x_15); -lean_ctor_set(x_8, 0, x_16); +x_14 = lean_box(0); +x_15 = l_Lean_Meta_Simp_Context_config___default___closed__1; +x_16 = lean_unsigned_to_nat(0u); +x_17 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_12); +lean_ctor_set(x_17, 2, x_10); +lean_ctor_set(x_17, 3, x_13); +lean_ctor_set(x_17, 4, x_14); +lean_ctor_set(x_17, 5, x_16); +lean_ctor_set(x_8, 0, x_17); return x_8; } else { -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_17 = lean_ctor_get(x_8, 0); -x_18 = lean_ctor_get(x_8, 1); +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_inc(x_17); lean_dec(x_8); -x_19 = l_Lean_Meta_Simp_Context_mkDefault___rarg___closed__2; -x_20 = lean_array_push(x_19, x_6); -x_21 = lean_box(0); -x_22 = l_Lean_Meta_Simp_Context_config___default___closed__1; -x_23 = lean_unsigned_to_nat(0u); -x_24 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_20); -lean_ctor_set(x_24, 2, x_17); -lean_ctor_set(x_24, 3, x_21); -lean_ctor_set(x_24, 4, x_23); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, x_18); -return x_25; +x_20 = l_Lean_Meta_Simp_Context_mkDefault___rarg___closed__2; +x_21 = lean_array_push(x_20, x_6); +x_22 = lean_box(0); +x_23 = lean_box(0); +x_24 = l_Lean_Meta_Simp_Context_config___default___closed__1; +x_25 = lean_unsigned_to_nat(0u); +x_26 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_21); +lean_ctor_set(x_26, 2, x_18); +lean_ctor_set(x_26, 3, x_22); +lean_ctor_set(x_26, 4, x_23); +lean_ctor_set(x_26, 5, 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; } } } @@ -513,6 +533,14 @@ lean_dec(x_1); return x_2; } } +static lean_object* _init_l_Lean_Meta_Simp_State_usedTheorems___default() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_NameSet_empty; +return x_1; +} +} static lean_object* _init_l_Lean_Meta_Simp_State_numSteps___default() { _start: { @@ -956,36 +984,39 @@ x_11 = !lean_is_exclusive(x_4); if (x_11 == 0) { lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_12 = lean_ctor_get(x_4, 3); +x_12 = lean_ctor_get(x_4, 4); lean_dec(x_12); x_13 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_13, 0, x_1); -lean_ctor_set(x_4, 3, x_13); +lean_ctor_set(x_4, 4, x_13); x_14 = lean_apply_8(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); return x_14; } else { -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_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; x_15 = lean_ctor_get(x_4, 0); x_16 = lean_ctor_get(x_4, 1); x_17 = lean_ctor_get(x_4, 2); -x_18 = lean_ctor_get(x_4, 4); +x_18 = lean_ctor_get(x_4, 3); +x_19 = lean_ctor_get(x_4, 5); +lean_inc(x_19); lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); lean_inc(x_15); lean_dec(x_4); -x_19 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_19, 0, x_1); -x_20 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_20, 0, x_15); -lean_ctor_set(x_20, 1, x_16); -lean_ctor_set(x_20, 2, x_17); -lean_ctor_set(x_20, 3, x_19); -lean_ctor_set(x_20, 4, x_18); -x_21 = lean_apply_8(x_2, x_3, x_20, x_5, x_6, x_7, x_8, x_9, x_10); -return x_21; +x_20 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_20, 0, x_1); +x_21 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_21, 0, x_15); +lean_ctor_set(x_21, 1, x_16); +lean_ctor_set(x_21, 2, x_17); +lean_ctor_set(x_21, 3, x_18); +lean_ctor_set(x_21, 4, x_20); +lean_ctor_set(x_21, 5, x_19); +x_22 = lean_apply_8(x_2, x_3, x_21, x_5, x_6, x_7, x_8, x_9, x_10); +return x_22; } } } @@ -1183,441 +1214,473 @@ return x_43; } else { -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_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_44 = lean_ctor_get(x_35, 1); x_45 = lean_ctor_get(x_35, 2); +x_46 = lean_ctor_get(x_35, 3); +lean_inc(x_46); lean_inc(x_45); lean_inc(x_44); lean_dec(x_35); -x_46 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_46, 0, x_16); -lean_ctor_set(x_46, 1, x_44); -lean_ctor_set(x_46, 2, x_45); -x_47 = lean_st_ref_set(x_5, x_46, x_36); +x_47 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_47, 0, x_16); +lean_ctor_set(x_47, 1, x_44); +lean_ctor_set(x_47, 2, x_45); +lean_ctor_set(x_47, 3, x_46); +x_48 = lean_st_ref_set(x_5, x_47, x_36); lean_dec(x_5); -x_48 = lean_ctor_get(x_47, 1); -lean_inc(x_48); -if (lean_is_exclusive(x_47)) { - lean_ctor_release(x_47, 0); - lean_ctor_release(x_47, 1); - x_49 = x_47; +x_49 = lean_ctor_get(x_48, 1); +lean_inc(x_49); +if (lean_is_exclusive(x_48)) { + lean_ctor_release(x_48, 0); + lean_ctor_release(x_48, 1); + x_50 = x_48; } else { - lean_dec_ref(x_47); - x_49 = lean_box(0); + lean_dec_ref(x_48); + x_50 = lean_box(0); } -if (lean_is_scalar(x_49)) { - x_50 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_50)) { + x_51 = lean_alloc_ctor(0, 2, 0); } else { - x_50 = x_49; + x_51 = x_50; } -lean_ctor_set(x_50, 0, x_30); -lean_ctor_set(x_50, 1, x_48); -return x_50; +lean_ctor_set(x_51, 0, x_30); +lean_ctor_set(x_51, 1, x_49); +return x_51; } } else { -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; uint8_t x_58; -x_51 = lean_ctor_get(x_29, 0); -lean_inc(x_51); -x_52 = lean_ctor_get(x_29, 1); +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; uint8_t x_59; +x_52 = lean_ctor_get(x_29, 0); lean_inc(x_52); +x_53 = lean_ctor_get(x_29, 1); +lean_inc(x_53); lean_dec(x_29); -x_53 = lean_st_ref_get(x_9, x_52); +x_54 = lean_st_ref_get(x_9, x_53); lean_dec(x_9); -x_54 = lean_ctor_get(x_53, 1); -lean_inc(x_54); -lean_dec(x_53); -x_55 = lean_st_ref_take(x_5, x_54); -x_56 = lean_ctor_get(x_55, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_55, 1); +x_55 = lean_ctor_get(x_54, 1); +lean_inc(x_55); +lean_dec(x_54); +x_56 = lean_st_ref_take(x_5, x_55); +x_57 = lean_ctor_get(x_56, 0); lean_inc(x_57); -lean_dec(x_55); -x_58 = !lean_is_exclusive(x_56); -if (x_58 == 0) -{ -lean_object* x_59; lean_object* x_60; uint8_t x_61; -x_59 = lean_ctor_get(x_56, 0); -lean_dec(x_59); -lean_ctor_set(x_56, 0, x_16); -x_60 = lean_st_ref_set(x_5, x_56, x_57); -lean_dec(x_5); -x_61 = !lean_is_exclusive(x_60); -if (x_61 == 0) -{ -lean_object* x_62; -x_62 = lean_ctor_get(x_60, 0); -lean_dec(x_62); -lean_ctor_set_tag(x_60, 1); -lean_ctor_set(x_60, 0, x_51); -return x_60; -} -else -{ -lean_object* x_63; lean_object* x_64; -x_63 = lean_ctor_get(x_60, 1); -lean_inc(x_63); -lean_dec(x_60); -x_64 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_64, 0, x_51); -lean_ctor_set(x_64, 1, x_63); -return x_64; -} -} -else -{ -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_65 = lean_ctor_get(x_56, 1); -x_66 = lean_ctor_get(x_56, 2); -lean_inc(x_66); -lean_inc(x_65); +x_58 = lean_ctor_get(x_56, 1); +lean_inc(x_58); lean_dec(x_56); -x_67 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_67, 0, x_16); -lean_ctor_set(x_67, 1, x_65); -lean_ctor_set(x_67, 2, x_66); -x_68 = lean_st_ref_set(x_5, x_67, x_57); +x_59 = !lean_is_exclusive(x_57); +if (x_59 == 0) +{ +lean_object* x_60; lean_object* x_61; uint8_t x_62; +x_60 = lean_ctor_get(x_57, 0); +lean_dec(x_60); +lean_ctor_set(x_57, 0, x_16); +x_61 = lean_st_ref_set(x_5, x_57, x_58); lean_dec(x_5); -x_69 = lean_ctor_get(x_68, 1); -lean_inc(x_69); -if (lean_is_exclusive(x_68)) { - lean_ctor_release(x_68, 0); - lean_ctor_release(x_68, 1); - x_70 = x_68; -} else { - lean_dec_ref(x_68); - x_70 = lean_box(0); +x_62 = !lean_is_exclusive(x_61); +if (x_62 == 0) +{ +lean_object* x_63; +x_63 = lean_ctor_get(x_61, 0); +lean_dec(x_63); +lean_ctor_set_tag(x_61, 1); +lean_ctor_set(x_61, 0, x_52); +return x_61; } -if (lean_is_scalar(x_70)) { - x_71 = lean_alloc_ctor(1, 2, 0); -} else { - x_71 = x_70; - lean_ctor_set_tag(x_71, 1); +else +{ +lean_object* x_64; lean_object* x_65; +x_64 = lean_ctor_get(x_61, 1); +lean_inc(x_64); +lean_dec(x_61); +x_65 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_65, 0, x_52); +lean_ctor_set(x_65, 1, x_64); +return x_65; } -lean_ctor_set(x_71, 0, x_51); -lean_ctor_set(x_71, 1, x_69); -return x_71; +} +else +{ +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_66 = lean_ctor_get(x_57, 1); +x_67 = lean_ctor_get(x_57, 2); +x_68 = lean_ctor_get(x_57, 3); +lean_inc(x_68); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_57); +x_69 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_69, 0, x_16); +lean_ctor_set(x_69, 1, x_66); +lean_ctor_set(x_69, 2, x_67); +lean_ctor_set(x_69, 3, x_68); +x_70 = lean_st_ref_set(x_5, x_69, x_58); +lean_dec(x_5); +x_71 = lean_ctor_get(x_70, 1); +lean_inc(x_71); +if (lean_is_exclusive(x_70)) { + lean_ctor_release(x_70, 0); + lean_ctor_release(x_70, 1); + x_72 = x_70; +} else { + lean_dec_ref(x_70); + x_72 = lean_box(0); +} +if (lean_is_scalar(x_72)) { + x_73 = lean_alloc_ctor(1, 2, 0); +} else { + x_73 = x_72; + lean_ctor_set_tag(x_73, 1); +} +lean_ctor_set(x_73, 0, x_52); +lean_ctor_set(x_73, 1, x_71); +return x_73; } } } else { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_72 = lean_ctor_get(x_4, 0); -x_73 = lean_ctor_get(x_4, 2); -x_74 = lean_ctor_get(x_4, 3); -x_75 = lean_ctor_get(x_4, 4); +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; +x_74 = lean_ctor_get(x_4, 0); +x_75 = lean_ctor_get(x_4, 2); +x_76 = lean_ctor_get(x_4, 3); +x_77 = lean_ctor_get(x_4, 4); +x_78 = lean_ctor_get(x_4, 5); +lean_inc(x_78); +lean_inc(x_77); +lean_inc(x_76); lean_inc(x_75); lean_inc(x_74); -lean_inc(x_73); -lean_inc(x_72); lean_dec(x_4); -x_76 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_76, 0, x_72); -lean_ctor_set(x_76, 1, x_1); -lean_ctor_set(x_76, 2, x_73); -lean_ctor_set(x_76, 3, x_74); -lean_ctor_set(x_76, 4, x_75); +x_79 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_79, 0, x_74); +lean_ctor_set(x_79, 1, x_1); +lean_ctor_set(x_79, 2, x_75); +lean_ctor_set(x_79, 3, x_76); +lean_ctor_set(x_79, 4, x_77); +lean_ctor_set(x_79, 5, x_78); lean_inc(x_9); lean_inc(x_5); -x_77 = lean_apply_8(x_2, x_3, x_76, x_5, x_6, x_7, x_8, x_9, x_26); -if (lean_obj_tag(x_77) == 0) +x_80 = lean_apply_8(x_2, x_3, x_79, x_5, x_6, x_7, x_8, x_9, x_26); +if (lean_obj_tag(x_80) == 0) { -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_78 = lean_ctor_get(x_77, 0); -lean_inc(x_78); -x_79 = lean_ctor_get(x_77, 1); -lean_inc(x_79); -lean_dec(x_77); -x_80 = lean_st_ref_get(x_9, x_79); -lean_dec(x_9); -x_81 = lean_ctor_get(x_80, 1); +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; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_81 = lean_ctor_get(x_80, 0); lean_inc(x_81); +x_82 = lean_ctor_get(x_80, 1); +lean_inc(x_82); lean_dec(x_80); -x_82 = lean_st_ref_take(x_5, x_81); -x_83 = lean_ctor_get(x_82, 0); -lean_inc(x_83); -x_84 = lean_ctor_get(x_82, 1); +x_83 = lean_st_ref_get(x_9, x_82); +lean_dec(x_9); +x_84 = lean_ctor_get(x_83, 1); lean_inc(x_84); -lean_dec(x_82); -x_85 = lean_ctor_get(x_83, 1); -lean_inc(x_85); -x_86 = lean_ctor_get(x_83, 2); +lean_dec(x_83); +x_85 = lean_st_ref_take(x_5, x_84); +x_86 = lean_ctor_get(x_85, 0); lean_inc(x_86); -if (lean_is_exclusive(x_83)) { - lean_ctor_release(x_83, 0); - lean_ctor_release(x_83, 1); - lean_ctor_release(x_83, 2); - x_87 = x_83; -} else { - lean_dec_ref(x_83); - x_87 = lean_box(0); -} -if (lean_is_scalar(x_87)) { - x_88 = lean_alloc_ctor(0, 3, 0); -} else { - x_88 = x_87; -} -lean_ctor_set(x_88, 0, x_16); -lean_ctor_set(x_88, 1, x_85); -lean_ctor_set(x_88, 2, x_86); -x_89 = lean_st_ref_set(x_5, x_88, x_84); -lean_dec(x_5); -x_90 = lean_ctor_get(x_89, 1); +x_87 = lean_ctor_get(x_85, 1); +lean_inc(x_87); +lean_dec(x_85); +x_88 = lean_ctor_get(x_86, 1); +lean_inc(x_88); +x_89 = lean_ctor_get(x_86, 2); +lean_inc(x_89); +x_90 = lean_ctor_get(x_86, 3); lean_inc(x_90); -if (lean_is_exclusive(x_89)) { - lean_ctor_release(x_89, 0); - lean_ctor_release(x_89, 1); - x_91 = x_89; +if (lean_is_exclusive(x_86)) { + lean_ctor_release(x_86, 0); + lean_ctor_release(x_86, 1); + lean_ctor_release(x_86, 2); + lean_ctor_release(x_86, 3); + x_91 = x_86; } else { - lean_dec_ref(x_89); + lean_dec_ref(x_86); x_91 = lean_box(0); } if (lean_is_scalar(x_91)) { - x_92 = lean_alloc_ctor(0, 2, 0); + x_92 = lean_alloc_ctor(0, 4, 0); } else { x_92 = x_91; } -lean_ctor_set(x_92, 0, x_78); -lean_ctor_set(x_92, 1, x_90); -return x_92; -} -else -{ -lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_93 = lean_ctor_get(x_77, 0); -lean_inc(x_93); -x_94 = lean_ctor_get(x_77, 1); -lean_inc(x_94); -lean_dec(x_77); -x_95 = lean_st_ref_get(x_9, x_94); -lean_dec(x_9); -x_96 = lean_ctor_get(x_95, 1); -lean_inc(x_96); -lean_dec(x_95); -x_97 = lean_st_ref_take(x_5, x_96); -x_98 = lean_ctor_get(x_97, 0); -lean_inc(x_98); -x_99 = lean_ctor_get(x_97, 1); -lean_inc(x_99); -lean_dec(x_97); -x_100 = lean_ctor_get(x_98, 1); -lean_inc(x_100); -x_101 = lean_ctor_get(x_98, 2); -lean_inc(x_101); -if (lean_is_exclusive(x_98)) { - lean_ctor_release(x_98, 0); - lean_ctor_release(x_98, 1); - lean_ctor_release(x_98, 2); - x_102 = x_98; -} else { - lean_dec_ref(x_98); - x_102 = lean_box(0); -} -if (lean_is_scalar(x_102)) { - x_103 = lean_alloc_ctor(0, 3, 0); -} else { - x_103 = x_102; -} -lean_ctor_set(x_103, 0, x_16); -lean_ctor_set(x_103, 1, x_100); -lean_ctor_set(x_103, 2, x_101); -x_104 = lean_st_ref_set(x_5, x_103, x_99); +lean_ctor_set(x_92, 0, x_16); +lean_ctor_set(x_92, 1, x_88); +lean_ctor_set(x_92, 2, x_89); +lean_ctor_set(x_92, 3, x_90); +x_93 = lean_st_ref_set(x_5, x_92, x_87); lean_dec(x_5); -x_105 = lean_ctor_get(x_104, 1); +x_94 = lean_ctor_get(x_93, 1); +lean_inc(x_94); +if (lean_is_exclusive(x_93)) { + lean_ctor_release(x_93, 0); + lean_ctor_release(x_93, 1); + x_95 = x_93; +} else { + lean_dec_ref(x_93); + x_95 = lean_box(0); +} +if (lean_is_scalar(x_95)) { + x_96 = lean_alloc_ctor(0, 2, 0); +} else { + x_96 = x_95; +} +lean_ctor_set(x_96, 0, x_81); +lean_ctor_set(x_96, 1, x_94); +return x_96; +} +else +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; +x_97 = lean_ctor_get(x_80, 0); +lean_inc(x_97); +x_98 = lean_ctor_get(x_80, 1); +lean_inc(x_98); +lean_dec(x_80); +x_99 = lean_st_ref_get(x_9, x_98); +lean_dec(x_9); +x_100 = lean_ctor_get(x_99, 1); +lean_inc(x_100); +lean_dec(x_99); +x_101 = lean_st_ref_take(x_5, x_100); +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_104 = lean_ctor_get(x_102, 1); +lean_inc(x_104); +x_105 = lean_ctor_get(x_102, 2); lean_inc(x_105); -if (lean_is_exclusive(x_104)) { - lean_ctor_release(x_104, 0); - lean_ctor_release(x_104, 1); - x_106 = x_104; +x_106 = lean_ctor_get(x_102, 3); +lean_inc(x_106); +if (lean_is_exclusive(x_102)) { + lean_ctor_release(x_102, 0); + lean_ctor_release(x_102, 1); + lean_ctor_release(x_102, 2); + lean_ctor_release(x_102, 3); + x_107 = x_102; } else { - lean_dec_ref(x_104); - x_106 = lean_box(0); + lean_dec_ref(x_102); + x_107 = lean_box(0); } -if (lean_is_scalar(x_106)) { - x_107 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_107)) { + x_108 = lean_alloc_ctor(0, 4, 0); } else { - x_107 = x_106; - lean_ctor_set_tag(x_107, 1); + x_108 = x_107; } -lean_ctor_set(x_107, 0, x_93); -lean_ctor_set(x_107, 1, x_105); -return x_107; +lean_ctor_set(x_108, 0, x_16); +lean_ctor_set(x_108, 1, x_104); +lean_ctor_set(x_108, 2, x_105); +lean_ctor_set(x_108, 3, x_106); +x_109 = lean_st_ref_set(x_5, x_108, x_103); +lean_dec(x_5); +x_110 = lean_ctor_get(x_109, 1); +lean_inc(x_110); +if (lean_is_exclusive(x_109)) { + lean_ctor_release(x_109, 0); + lean_ctor_release(x_109, 1); + x_111 = x_109; +} else { + lean_dec_ref(x_109); + x_111 = lean_box(0); +} +if (lean_is_scalar(x_111)) { + x_112 = lean_alloc_ctor(1, 2, 0); +} else { + x_112 = x_111; + lean_ctor_set_tag(x_112, 1); +} +lean_ctor_set(x_112, 0, x_97); +lean_ctor_set(x_112, 1, x_110); +return x_112; } } } else { -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; -x_108 = lean_ctor_get(x_20, 1); -x_109 = lean_ctor_get(x_20, 2); -lean_inc(x_109); -lean_inc(x_108); -lean_dec(x_20); -x_110 = l_Lean_Meta_Simp_Context_congrTheorems___default___closed__1; -x_111 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_111, 0, x_110); -lean_ctor_set(x_111, 1, x_108); -lean_ctor_set(x_111, 2, x_109); -x_112 = lean_st_ref_set(x_5, x_111, x_21); -x_113 = lean_ctor_get(x_112, 1); -lean_inc(x_113); -lean_dec(x_112); -x_114 = lean_ctor_get(x_4, 0); -lean_inc(x_114); -x_115 = lean_ctor_get(x_4, 2); +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; +x_113 = lean_ctor_get(x_20, 1); +x_114 = lean_ctor_get(x_20, 2); +x_115 = lean_ctor_get(x_20, 3); lean_inc(x_115); -x_116 = lean_ctor_get(x_4, 3); -lean_inc(x_116); -x_117 = lean_ctor_get(x_4, 4); -lean_inc(x_117); +lean_inc(x_114); +lean_inc(x_113); +lean_dec(x_20); +x_116 = l_Lean_Meta_Simp_Context_congrTheorems___default___closed__1; +x_117 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_117, 0, x_116); +lean_ctor_set(x_117, 1, x_113); +lean_ctor_set(x_117, 2, x_114); +lean_ctor_set(x_117, 3, x_115); +x_118 = lean_st_ref_set(x_5, x_117, x_21); +x_119 = lean_ctor_get(x_118, 1); +lean_inc(x_119); +lean_dec(x_118); +x_120 = lean_ctor_get(x_4, 0); +lean_inc(x_120); +x_121 = lean_ctor_get(x_4, 2); +lean_inc(x_121); +x_122 = lean_ctor_get(x_4, 3); +lean_inc(x_122); +x_123 = lean_ctor_get(x_4, 4); +lean_inc(x_123); +x_124 = lean_ctor_get(x_4, 5); +lean_inc(x_124); if (lean_is_exclusive(x_4)) { lean_ctor_release(x_4, 0); lean_ctor_release(x_4, 1); lean_ctor_release(x_4, 2); lean_ctor_release(x_4, 3); lean_ctor_release(x_4, 4); - x_118 = x_4; + lean_ctor_release(x_4, 5); + x_125 = x_4; } else { lean_dec_ref(x_4); - x_118 = lean_box(0); + x_125 = lean_box(0); } -if (lean_is_scalar(x_118)) { - x_119 = lean_alloc_ctor(0, 5, 0); +if (lean_is_scalar(x_125)) { + x_126 = lean_alloc_ctor(0, 6, 0); } else { - x_119 = x_118; + x_126 = x_125; } -lean_ctor_set(x_119, 0, x_114); -lean_ctor_set(x_119, 1, x_1); -lean_ctor_set(x_119, 2, x_115); -lean_ctor_set(x_119, 3, x_116); -lean_ctor_set(x_119, 4, x_117); +lean_ctor_set(x_126, 0, x_120); +lean_ctor_set(x_126, 1, x_1); +lean_ctor_set(x_126, 2, x_121); +lean_ctor_set(x_126, 3, x_122); +lean_ctor_set(x_126, 4, x_123); +lean_ctor_set(x_126, 5, x_124); lean_inc(x_9); lean_inc(x_5); -x_120 = lean_apply_8(x_2, x_3, x_119, x_5, x_6, x_7, x_8, x_9, x_113); -if (lean_obj_tag(x_120) == 0) +x_127 = lean_apply_8(x_2, x_3, x_126, x_5, x_6, x_7, x_8, x_9, x_119); +if (lean_obj_tag(x_127) == 0) { -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_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; -x_121 = lean_ctor_get(x_120, 0); -lean_inc(x_121); -x_122 = lean_ctor_get(x_120, 1); -lean_inc(x_122); -lean_dec(x_120); -x_123 = lean_st_ref_get(x_9, x_122); -lean_dec(x_9); -x_124 = lean_ctor_get(x_123, 1); -lean_inc(x_124); -lean_dec(x_123); -x_125 = lean_st_ref_take(x_5, x_124); -x_126 = lean_ctor_get(x_125, 0); -lean_inc(x_126); -x_127 = lean_ctor_get(x_125, 1); -lean_inc(x_127); -lean_dec(x_125); -x_128 = lean_ctor_get(x_126, 1); +lean_object* x_128; 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; +x_128 = lean_ctor_get(x_127, 0); lean_inc(x_128); -x_129 = lean_ctor_get(x_126, 2); +x_129 = lean_ctor_get(x_127, 1); lean_inc(x_129); -if (lean_is_exclusive(x_126)) { - lean_ctor_release(x_126, 0); - lean_ctor_release(x_126, 1); - lean_ctor_release(x_126, 2); - x_130 = x_126; -} else { - lean_dec_ref(x_126); - x_130 = lean_box(0); -} -if (lean_is_scalar(x_130)) { - x_131 = lean_alloc_ctor(0, 3, 0); -} else { - x_131 = x_130; -} -lean_ctor_set(x_131, 0, x_16); -lean_ctor_set(x_131, 1, x_128); -lean_ctor_set(x_131, 2, x_129); -x_132 = lean_st_ref_set(x_5, x_131, x_127); -lean_dec(x_5); -x_133 = lean_ctor_get(x_132, 1); +lean_dec(x_127); +x_130 = lean_st_ref_get(x_9, x_129); +lean_dec(x_9); +x_131 = lean_ctor_get(x_130, 1); +lean_inc(x_131); +lean_dec(x_130); +x_132 = lean_st_ref_take(x_5, x_131); +x_133 = lean_ctor_get(x_132, 0); lean_inc(x_133); -if (lean_is_exclusive(x_132)) { - lean_ctor_release(x_132, 0); - lean_ctor_release(x_132, 1); - x_134 = x_132; +x_134 = lean_ctor_get(x_132, 1); +lean_inc(x_134); +lean_dec(x_132); +x_135 = lean_ctor_get(x_133, 1); +lean_inc(x_135); +x_136 = lean_ctor_get(x_133, 2); +lean_inc(x_136); +x_137 = lean_ctor_get(x_133, 3); +lean_inc(x_137); +if (lean_is_exclusive(x_133)) { + lean_ctor_release(x_133, 0); + lean_ctor_release(x_133, 1); + lean_ctor_release(x_133, 2); + lean_ctor_release(x_133, 3); + x_138 = x_133; } else { - lean_dec_ref(x_132); - x_134 = lean_box(0); + lean_dec_ref(x_133); + x_138 = lean_box(0); } -if (lean_is_scalar(x_134)) { - x_135 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_138)) { + x_139 = lean_alloc_ctor(0, 4, 0); } else { - x_135 = x_134; + x_139 = x_138; } -lean_ctor_set(x_135, 0, x_121); -lean_ctor_set(x_135, 1, x_133); -return x_135; +lean_ctor_set(x_139, 0, x_16); +lean_ctor_set(x_139, 1, x_135); +lean_ctor_set(x_139, 2, x_136); +lean_ctor_set(x_139, 3, x_137); +x_140 = lean_st_ref_set(x_5, x_139, x_134); +lean_dec(x_5); +x_141 = lean_ctor_get(x_140, 1); +lean_inc(x_141); +if (lean_is_exclusive(x_140)) { + lean_ctor_release(x_140, 0); + lean_ctor_release(x_140, 1); + x_142 = x_140; +} else { + lean_dec_ref(x_140); + x_142 = lean_box(0); +} +if (lean_is_scalar(x_142)) { + x_143 = lean_alloc_ctor(0, 2, 0); +} else { + x_143 = x_142; +} +lean_ctor_set(x_143, 0, x_128); +lean_ctor_set(x_143, 1, x_141); +return x_143; } else { -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_136 = lean_ctor_get(x_120, 0); -lean_inc(x_136); -x_137 = lean_ctor_get(x_120, 1); -lean_inc(x_137); -lean_dec(x_120); -x_138 = lean_st_ref_get(x_9, x_137); -lean_dec(x_9); -x_139 = lean_ctor_get(x_138, 1); -lean_inc(x_139); -lean_dec(x_138); -x_140 = lean_st_ref_take(x_5, x_139); -x_141 = lean_ctor_get(x_140, 0); -lean_inc(x_141); -x_142 = lean_ctor_get(x_140, 1); -lean_inc(x_142); -lean_dec(x_140); -x_143 = lean_ctor_get(x_141, 1); -lean_inc(x_143); -x_144 = lean_ctor_get(x_141, 2); +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; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; +x_144 = lean_ctor_get(x_127, 0); lean_inc(x_144); -if (lean_is_exclusive(x_141)) { - lean_ctor_release(x_141, 0); - lean_ctor_release(x_141, 1); - lean_ctor_release(x_141, 2); - x_145 = x_141; +x_145 = lean_ctor_get(x_127, 1); +lean_inc(x_145); +lean_dec(x_127); +x_146 = lean_st_ref_get(x_9, x_145); +lean_dec(x_9); +x_147 = lean_ctor_get(x_146, 1); +lean_inc(x_147); +lean_dec(x_146); +x_148 = lean_st_ref_take(x_5, x_147); +x_149 = lean_ctor_get(x_148, 0); +lean_inc(x_149); +x_150 = lean_ctor_get(x_148, 1); +lean_inc(x_150); +lean_dec(x_148); +x_151 = lean_ctor_get(x_149, 1); +lean_inc(x_151); +x_152 = lean_ctor_get(x_149, 2); +lean_inc(x_152); +x_153 = lean_ctor_get(x_149, 3); +lean_inc(x_153); +if (lean_is_exclusive(x_149)) { + lean_ctor_release(x_149, 0); + lean_ctor_release(x_149, 1); + lean_ctor_release(x_149, 2); + lean_ctor_release(x_149, 3); + x_154 = x_149; } else { - lean_dec_ref(x_141); - x_145 = lean_box(0); + lean_dec_ref(x_149); + x_154 = lean_box(0); } -if (lean_is_scalar(x_145)) { - x_146 = lean_alloc_ctor(0, 3, 0); +if (lean_is_scalar(x_154)) { + x_155 = lean_alloc_ctor(0, 4, 0); } else { - x_146 = x_145; + x_155 = x_154; } -lean_ctor_set(x_146, 0, x_16); -lean_ctor_set(x_146, 1, x_143); -lean_ctor_set(x_146, 2, x_144); -x_147 = lean_st_ref_set(x_5, x_146, x_142); +lean_ctor_set(x_155, 0, x_16); +lean_ctor_set(x_155, 1, x_151); +lean_ctor_set(x_155, 2, x_152); +lean_ctor_set(x_155, 3, x_153); +x_156 = lean_st_ref_set(x_5, x_155, x_150); lean_dec(x_5); -x_148 = lean_ctor_get(x_147, 1); -lean_inc(x_148); -if (lean_is_exclusive(x_147)) { - lean_ctor_release(x_147, 0); - lean_ctor_release(x_147, 1); - x_149 = x_147; +x_157 = lean_ctor_get(x_156, 1); +lean_inc(x_157); +if (lean_is_exclusive(x_156)) { + lean_ctor_release(x_156, 0); + lean_ctor_release(x_156, 1); + x_158 = x_156; } else { - lean_dec_ref(x_147); - x_149 = lean_box(0); + lean_dec_ref(x_156); + x_158 = lean_box(0); } -if (lean_is_scalar(x_149)) { - x_150 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_158)) { + x_159 = lean_alloc_ctor(1, 2, 0); } else { - x_150 = x_149; - lean_ctor_set_tag(x_150, 1); + x_159 = x_158; + lean_ctor_set_tag(x_159, 1); } -lean_ctor_set(x_150, 0, x_136); -lean_ctor_set(x_150, 1, x_148); -return x_150; +lean_ctor_set(x_159, 0, x_144); +lean_ctor_set(x_159, 1, x_157); +return x_159; } } } @@ -1630,6 +1693,105 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Simp_withSimpTheorems___rarg), 10, return x_2; } } +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_recordSimpTheorem(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; lean_object* x_12; lean_object* x_13; uint8_t x_14; +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_take(x_3, x_10); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = !lean_is_exclusive(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_15 = lean_ctor_get(x_12, 2); +x_16 = lean_box(0); +x_17 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_15, x_1, x_16); +lean_ctor_set(x_12, 2, x_17); +x_18 = lean_st_ref_set(x_3, x_12, x_13); +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) +{ +lean_object* x_20; +x_20 = lean_ctor_get(x_18, 0); +lean_dec(x_20); +lean_ctor_set(x_18, 0, x_16); +return x_18; +} +else +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_18, 1); +lean_inc(x_21); +lean_dec(x_18); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_16); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +else +{ +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; +x_23 = lean_ctor_get(x_12, 0); +x_24 = lean_ctor_get(x_12, 1); +x_25 = lean_ctor_get(x_12, 2); +x_26 = lean_ctor_get(x_12, 3); +lean_inc(x_26); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_12); +x_27 = lean_box(0); +x_28 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_25, x_1, x_27); +x_29 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_29, 0, x_23); +lean_ctor_set(x_29, 1, x_24); +lean_ctor_set(x_29, 2, x_28); +lean_ctor_set(x_29, 3, x_26); +x_30 = lean_st_ref_set(x_3, x_29, x_13); +x_31 = lean_ctor_get(x_30, 1); +lean_inc(x_31); +if (lean_is_exclusive(x_30)) { + lean_ctor_release(x_30, 0); + lean_ctor_release(x_30, 1); + x_32 = x_30; +} else { + lean_dec_ref(x_30); + x_32 = lean_box(0); +} +if (lean_is_scalar(x_32)) { + x_33 = lean_alloc_ctor(0, 2, 0); +} else { + x_33 = x_32; +} +lean_ctor_set(x_33, 0, x_27); +lean_ctor_set(x_33, 1, x_31); +return x_33; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_recordSimpTheorem___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_Meta_Simp_recordSimpTheorem(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); +return x_9; +} +} lean_object* initialize_Init(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_AppBuilder(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_CongrTheorems(uint8_t builtin, lean_object*); @@ -1685,6 +1847,8 @@ l_Lean_Meta_Simp_Context_congrTheorems___default___closed__5 = _init_l_Lean_Meta lean_mark_persistent(l_Lean_Meta_Simp_Context_congrTheorems___default___closed__5); l_Lean_Meta_Simp_Context_congrTheorems___default = _init_l_Lean_Meta_Simp_Context_congrTheorems___default(); lean_mark_persistent(l_Lean_Meta_Simp_Context_congrTheorems___default); +l_Lean_Meta_Simp_Context_namedStx___default = _init_l_Lean_Meta_Simp_Context_namedStx___default(); +lean_mark_persistent(l_Lean_Meta_Simp_Context_namedStx___default); l_Lean_Meta_Simp_Context_parent_x3f___default = _init_l_Lean_Meta_Simp_Context_parent_x3f___default(); lean_mark_persistent(l_Lean_Meta_Simp_Context_parent_x3f___default); l_Lean_Meta_Simp_Context_dischargeDepth___default = _init_l_Lean_Meta_Simp_Context_dischargeDepth___default(); @@ -1703,6 +1867,8 @@ l_Lean_Meta_Simp_State_cache___default = _init_l_Lean_Meta_Simp_State_cache___de lean_mark_persistent(l_Lean_Meta_Simp_State_cache___default); l_Lean_Meta_Simp_State_congrCache___default = _init_l_Lean_Meta_Simp_State_congrCache___default(); lean_mark_persistent(l_Lean_Meta_Simp_State_congrCache___default); +l_Lean_Meta_Simp_State_usedTheorems___default = _init_l_Lean_Meta_Simp_State_usedTheorems___default(); +lean_mark_persistent(l_Lean_Meta_Simp_State_usedTheorems___default); l_Lean_Meta_Simp_State_numSteps___default = _init_l_Lean_Meta_Simp_State_numSteps___default(); lean_mark_persistent(l_Lean_Meta_Simp_State_numSteps___default); l_Lean_Meta_Simp_instMonadBacktrackSavedStateSimpM___closed__1 = _init_l_Lean_Meta_Simp_instMonadBacktrackSavedStateSimpM___closed__1(); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Split.c b/stage0/stdlib/Lean/Meta/Tactic/Split.c index aaf1203ae8..a057f647b4 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Split.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Split.c @@ -154,7 +154,7 @@ lean_object* l_StateRefT_x27_lift(lean_object*, lean_object*, lean_object*, lean LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs_mkNewTarget___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Split_applyMatchSplitter___lambda__3___closed__4; LEAN_EXPORT lean_object* l_Lean_Meta_Split_findSplit_x3f_isCandidate(lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l_Lean_Meta_Simp_main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Simp_main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_proveSubgoal___spec__1(size_t, size_t, lean_object*); @@ -215,6 +215,7 @@ lean_object* l_Lean_Meta_SavedState_restore(lean_object*, lean_object*, lean_obj LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchTargetCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs___lambda__6___closed__3; size_t lean_usize_of_nat(lean_object*); +extern lean_object* l_Lean_NameSet_empty; LEAN_EXPORT lean_object* l_Lean_Meta_splitLocalDecl_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs___lambda__2___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_Split_applyMatchSplitter___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*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -340,7 +341,7 @@ lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Meta_Eqns_0__Lean_M static lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs___lambda__6___closed__5; static lean_object* l_Lean_Meta_Split_getSimpMatchContext___rarg___closed__2; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs_mkNewTarget___spec__1___closed__9; -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Split___hyg_6223_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Split___hyg_6245_(lean_object*); LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_reduceRecMatcher_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Split_applyMatchSplitter___lambda__1___closed__2; @@ -408,43 +409,47 @@ x_3 = l_Lean_Meta_getSimpCongrTheorems___rarg(x_1, x_2); x_4 = !lean_is_exclusive(x_3); if (x_4 == 0) { -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_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; x_5 = lean_ctor_get(x_3, 0); x_6 = lean_box(0); -x_7 = l_Lean_Meta_Split_getSimpMatchContext___rarg___closed__1; -x_8 = l_Lean_Meta_Split_getSimpMatchContext___rarg___closed__2; -x_9 = lean_unsigned_to_nat(0u); -x_10 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_10, 0, x_7); -lean_ctor_set(x_10, 1, x_8); -lean_ctor_set(x_10, 2, x_5); -lean_ctor_set(x_10, 3, x_6); -lean_ctor_set(x_10, 4, x_9); -lean_ctor_set(x_3, 0, x_10); +x_7 = lean_box(0); +x_8 = l_Lean_Meta_Split_getSimpMatchContext___rarg___closed__1; +x_9 = l_Lean_Meta_Split_getSimpMatchContext___rarg___closed__2; +x_10 = lean_unsigned_to_nat(0u); +x_11 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_11, 0, x_8); +lean_ctor_set(x_11, 1, x_9); +lean_ctor_set(x_11, 2, x_5); +lean_ctor_set(x_11, 3, x_6); +lean_ctor_set(x_11, 4, x_7); +lean_ctor_set(x_11, 5, x_10); +lean_ctor_set(x_3, 0, x_11); return x_3; } 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; -x_11 = lean_ctor_get(x_3, 0); -x_12 = lean_ctor_get(x_3, 1); +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_12 = lean_ctor_get(x_3, 0); +x_13 = lean_ctor_get(x_3, 1); +lean_inc(x_13); lean_inc(x_12); -lean_inc(x_11); lean_dec(x_3); -x_13 = lean_box(0); -x_14 = l_Lean_Meta_Split_getSimpMatchContext___rarg___closed__1; -x_15 = l_Lean_Meta_Split_getSimpMatchContext___rarg___closed__2; -x_16 = lean_unsigned_to_nat(0u); -x_17 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_17, 0, x_14); -lean_ctor_set(x_17, 1, x_15); -lean_ctor_set(x_17, 2, x_11); -lean_ctor_set(x_17, 3, x_13); -lean_ctor_set(x_17, 4, x_16); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_12); -return x_18; +x_14 = lean_box(0); +x_15 = lean_box(0); +x_16 = l_Lean_Meta_Split_getSimpMatchContext___rarg___closed__1; +x_17 = l_Lean_Meta_Split_getSimpMatchContext___rarg___closed__2; +x_18 = lean_unsigned_to_nat(0u); +x_19 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_19, 0, x_16); +lean_ctor_set(x_19, 1, x_17); +lean_ctor_set(x_19, 2, x_12); +lean_ctor_set(x_19, 3, x_14); +lean_ctor_set(x_19, 4, x_15); +lean_ctor_set(x_19, 5, x_18); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_13); +return x_20; } } } @@ -829,16 +834,69 @@ return x_4; LEAN_EXPORT lean_object* l_Lean_Meta_Split_simpMatch(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; x_7 = l_Lean_Meta_Split_getSimpMatchContext___rarg(x_5, x_6); x_8 = lean_ctor_get(x_7, 0); lean_inc(x_8); x_9 = lean_ctor_get(x_7, 1); lean_inc(x_9); lean_dec(x_7); -x_10 = l_Lean_Meta_Split_simpMatch___closed__4; -x_11 = l_Lean_Meta_Simp_main(x_1, x_8, x_10, x_2, x_3, x_4, x_5, x_9); -return x_11; +x_10 = l_Lean_NameSet_empty; +x_11 = l_Lean_Meta_Split_simpMatch___closed__4; +x_12 = l_Lean_Meta_Simp_main(x_1, x_8, x_10, x_11, x_2, x_3, x_4, x_5, x_9); +if (lean_obj_tag(x_12) == 0) +{ +uint8_t x_13; +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +lean_dec(x_14); +lean_ctor_set(x_12, 0, x_15); +return x_12; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_16 = lean_ctor_get(x_12, 0); +x_17 = lean_ctor_get(x_12, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_12); +x_18 = lean_ctor_get(x_16, 0); +lean_inc(x_18); +lean_dec(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_17); +return x_19; +} +} +else +{ +uint8_t x_20; +x_20 = !lean_is_exclusive(x_12); +if (x_20 == 0) +{ +return x_12; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_12, 0); +x_22 = lean_ctor_get(x_12, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_12); +x_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +return x_23; +} +} } } LEAN_EXPORT lean_object* l_Lean_Meta_Split_simpMatch___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) { @@ -1031,7 +1089,7 @@ lean_inc(x_2); x_20 = l_Lean_Meta_isRflTheorem(x_2, x_8, x_9, x_19); if (lean_obj_tag(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; uint8_t x_28; uint8_t x_29; lean_object* x_30; uint8_t x_31; uint8_t x_32; +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; uint8_t x_28; lean_object* x_29; uint8_t x_30; uint8_t x_31; x_21 = lean_ctor_get(x_20, 0); lean_inc(x_21); x_22 = lean_ctor_get(x_20, 1); @@ -1040,429 +1098,427 @@ lean_dec(x_20); x_23 = lean_box(0); lean_inc(x_2); x_24 = l_Lean_Expr_const___override(x_2, x_23); -x_25 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_25, 0, x_2); -x_26 = l_Lean_Meta_Split_getSimpMatchContext___rarg___closed__2; -x_27 = lean_unsigned_to_nat(1000u); -x_28 = 1; -x_29 = 0; -x_30 = lean_alloc_ctor(0, 5, 3); -lean_ctor_set(x_30, 0, x_26); -lean_ctor_set(x_30, 1, x_26); -lean_ctor_set(x_30, 2, x_24); -lean_ctor_set(x_30, 3, x_27); -lean_ctor_set(x_30, 4, x_25); -lean_ctor_set_uint8(x_30, sizeof(void*)*5, x_28); -lean_ctor_set_uint8(x_30, sizeof(void*)*5 + 1, x_29); -x_31 = lean_unbox(x_21); +x_25 = l_Lean_Meta_Split_getSimpMatchContext___rarg___closed__2; +x_26 = lean_unsigned_to_nat(1000u); +x_27 = 1; +x_28 = 0; +x_29 = lean_alloc_ctor(0, 5, 3); +lean_ctor_set(x_29, 0, x_25); +lean_ctor_set(x_29, 1, x_25); +lean_ctor_set(x_29, 2, x_24); +lean_ctor_set(x_29, 3, x_26); +lean_ctor_set(x_29, 4, x_2); +lean_ctor_set_uint8(x_29, sizeof(void*)*5, x_27); +lean_ctor_set_uint8(x_29, sizeof(void*)*5 + 1, x_28); +x_30 = lean_unbox(x_21); lean_dec(x_21); -lean_ctor_set_uint8(x_30, sizeof(void*)*5 + 2, x_31); -x_32 = !lean_is_exclusive(x_6); -if (x_32 == 0) +lean_ctor_set_uint8(x_29, sizeof(void*)*5 + 2, x_30); +x_31 = !lean_is_exclusive(x_6); +if (x_31 == 0) { -lean_object* x_33; uint8_t x_34; -x_33 = lean_ctor_get(x_6, 0); -x_34 = !lean_is_exclusive(x_33); -if (x_34 == 0) +lean_object* x_32; uint8_t x_33; +x_32 = lean_ctor_get(x_6, 0); +x_33 = !lean_is_exclusive(x_32); +if (x_33 == 0) { -uint8_t x_35; lean_object* x_36; lean_object* x_37; -x_35 = 2; -lean_ctor_set_uint8(x_33, 5, x_35); -x_36 = l_Lean_Meta_Split_simpMatch_pre___closed__1; +uint8_t x_34; lean_object* x_35; lean_object* x_36; +x_34 = 2; +lean_ctor_set_uint8(x_32, 5, x_34); +x_35 = l_Lean_Meta_Split_simpMatch_pre___closed__1; lean_inc(x_3); -x_37 = l_Lean_Meta_Simp_tryTheorem_x3f(x_3, x_30, x_36, x_4, x_5, x_6, x_7, x_8, x_9, x_22); +x_36 = l_Lean_Meta_Simp_tryTheorem_x3f(x_3, x_29, x_35, x_4, x_5, x_6, x_7, x_8, x_9, x_22); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); if (lean_obj_tag(x_37) == 0) { -lean_object* x_38; -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -if (lean_obj_tag(x_38) == 0) +uint8_t x_38; +x_38 = !lean_is_exclusive(x_36); +if (x_38 == 0) { -uint8_t x_39; -x_39 = !lean_is_exclusive(x_37); -if (x_39 == 0) -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_40 = lean_ctor_get(x_37, 0); -lean_dec(x_40); -x_41 = lean_box(0); -x_42 = lean_unsigned_to_nat(0u); -x_43 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_43, 0, x_3); -lean_ctor_set(x_43, 1, x_41); -lean_ctor_set(x_43, 2, x_42); -x_44 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_44, 0, x_43); -lean_ctor_set(x_37, 0, x_44); -return x_37; +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_39 = lean_ctor_get(x_36, 0); +lean_dec(x_39); +x_40 = lean_box(0); +x_41 = lean_unsigned_to_nat(0u); +x_42 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_42, 0, x_3); +lean_ctor_set(x_42, 1, x_40); +lean_ctor_set(x_42, 2, x_41); +x_43 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_36, 0, x_43); +return x_36; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_45 = lean_ctor_get(x_37, 1); -lean_inc(x_45); -lean_dec(x_37); -x_46 = lean_box(0); -x_47 = lean_unsigned_to_nat(0u); -x_48 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_48, 0, x_3); -lean_ctor_set(x_48, 1, x_46); -lean_ctor_set(x_48, 2, x_47); -x_49 = lean_alloc_ctor(0, 1, 0); +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_44 = lean_ctor_get(x_36, 1); +lean_inc(x_44); +lean_dec(x_36); +x_45 = lean_box(0); +x_46 = lean_unsigned_to_nat(0u); +x_47 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_47, 0, x_3); +lean_ctor_set(x_47, 1, x_45); +lean_ctor_set(x_47, 2, x_46); +x_48 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_48, 0, x_47); +x_49 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_49, 0, x_48); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_49); -lean_ctor_set(x_50, 1, x_45); -return x_50; +lean_ctor_set(x_49, 1, x_44); +return x_49; } } else { -uint8_t x_51; +uint8_t x_50; lean_dec(x_3); -x_51 = !lean_is_exclusive(x_37); -if (x_51 == 0) +x_50 = !lean_is_exclusive(x_36); +if (x_50 == 0) { -lean_object* x_52; lean_object* x_53; lean_object* x_54; +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_36, 0); +lean_dec(x_51); x_52 = lean_ctor_get(x_37, 0); -lean_dec(x_52); -x_53 = lean_ctor_get(x_38, 0); -lean_inc(x_53); -lean_dec(x_38); -x_54 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_37, 0, x_54); -return x_37; +lean_inc(x_52); +lean_dec(x_37); +x_53 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_36, 0, x_53); +return x_36; } else { -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_55 = lean_ctor_get(x_37, 1); +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_54 = lean_ctor_get(x_36, 1); +lean_inc(x_54); +lean_dec(x_36); +x_55 = lean_ctor_get(x_37, 0); lean_inc(x_55); lean_dec(x_37); -x_56 = lean_ctor_get(x_38, 0); -lean_inc(x_56); -lean_dec(x_38); -x_57 = lean_alloc_ctor(1, 1, 0); +x_56 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_56, 0, x_55); +x_57 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_57, 0, x_56); -x_58 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_58, 0, x_57); -lean_ctor_set(x_58, 1, x_55); -return x_58; +lean_ctor_set(x_57, 1, x_54); +return x_57; } } } else { -uint8_t x_59; +uint8_t x_58; lean_dec(x_3); -x_59 = !lean_is_exclusive(x_37); -if (x_59 == 0) +x_58 = !lean_is_exclusive(x_36); +if (x_58 == 0) { -return x_37; +return x_36; } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_37, 0); -x_61 = lean_ctor_get(x_37, 1); -lean_inc(x_61); +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_36, 0); +x_60 = lean_ctor_get(x_36, 1); lean_inc(x_60); -lean_dec(x_37); -x_62 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_62, 0, x_60); -lean_ctor_set(x_62, 1, x_61); -return x_62; +lean_inc(x_59); +lean_dec(x_36); +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_63; uint8_t x_64; uint8_t x_65; uint8_t x_66; uint8_t x_67; uint8_t x_68; uint8_t x_69; uint8_t x_70; uint8_t x_71; uint8_t x_72; uint8_t x_73; uint8_t x_74; uint8_t x_75; uint8_t x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_63 = lean_ctor_get_uint8(x_33, 0); -x_64 = lean_ctor_get_uint8(x_33, 1); -x_65 = lean_ctor_get_uint8(x_33, 2); -x_66 = lean_ctor_get_uint8(x_33, 3); -x_67 = lean_ctor_get_uint8(x_33, 4); -x_68 = lean_ctor_get_uint8(x_33, 6); -x_69 = lean_ctor_get_uint8(x_33, 7); -x_70 = lean_ctor_get_uint8(x_33, 8); -x_71 = lean_ctor_get_uint8(x_33, 9); -x_72 = lean_ctor_get_uint8(x_33, 10); -x_73 = lean_ctor_get_uint8(x_33, 11); -x_74 = lean_ctor_get_uint8(x_33, 12); -x_75 = lean_ctor_get_uint8(x_33, 13); -lean_dec(x_33); -x_76 = 2; -x_77 = lean_alloc_ctor(0, 0, 14); -lean_ctor_set_uint8(x_77, 0, x_63); -lean_ctor_set_uint8(x_77, 1, x_64); -lean_ctor_set_uint8(x_77, 2, x_65); -lean_ctor_set_uint8(x_77, 3, x_66); -lean_ctor_set_uint8(x_77, 4, x_67); -lean_ctor_set_uint8(x_77, 5, x_76); -lean_ctor_set_uint8(x_77, 6, x_68); -lean_ctor_set_uint8(x_77, 7, x_69); -lean_ctor_set_uint8(x_77, 8, x_70); -lean_ctor_set_uint8(x_77, 9, x_71); -lean_ctor_set_uint8(x_77, 10, x_72); -lean_ctor_set_uint8(x_77, 11, x_73); -lean_ctor_set_uint8(x_77, 12, x_74); -lean_ctor_set_uint8(x_77, 13, x_75); -lean_ctor_set(x_6, 0, x_77); -x_78 = l_Lean_Meta_Split_simpMatch_pre___closed__1; +uint8_t x_62; uint8_t x_63; uint8_t x_64; uint8_t x_65; uint8_t x_66; uint8_t x_67; uint8_t x_68; uint8_t x_69; uint8_t x_70; uint8_t x_71; uint8_t x_72; uint8_t x_73; uint8_t x_74; uint8_t x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_62 = lean_ctor_get_uint8(x_32, 0); +x_63 = lean_ctor_get_uint8(x_32, 1); +x_64 = lean_ctor_get_uint8(x_32, 2); +x_65 = lean_ctor_get_uint8(x_32, 3); +x_66 = lean_ctor_get_uint8(x_32, 4); +x_67 = lean_ctor_get_uint8(x_32, 6); +x_68 = lean_ctor_get_uint8(x_32, 7); +x_69 = lean_ctor_get_uint8(x_32, 8); +x_70 = lean_ctor_get_uint8(x_32, 9); +x_71 = lean_ctor_get_uint8(x_32, 10); +x_72 = lean_ctor_get_uint8(x_32, 11); +x_73 = lean_ctor_get_uint8(x_32, 12); +x_74 = lean_ctor_get_uint8(x_32, 13); +lean_dec(x_32); +x_75 = 2; +x_76 = lean_alloc_ctor(0, 0, 14); +lean_ctor_set_uint8(x_76, 0, x_62); +lean_ctor_set_uint8(x_76, 1, x_63); +lean_ctor_set_uint8(x_76, 2, x_64); +lean_ctor_set_uint8(x_76, 3, x_65); +lean_ctor_set_uint8(x_76, 4, x_66); +lean_ctor_set_uint8(x_76, 5, x_75); +lean_ctor_set_uint8(x_76, 6, x_67); +lean_ctor_set_uint8(x_76, 7, x_68); +lean_ctor_set_uint8(x_76, 8, x_69); +lean_ctor_set_uint8(x_76, 9, x_70); +lean_ctor_set_uint8(x_76, 10, x_71); +lean_ctor_set_uint8(x_76, 11, x_72); +lean_ctor_set_uint8(x_76, 12, x_73); +lean_ctor_set_uint8(x_76, 13, x_74); +lean_ctor_set(x_6, 0, x_76); +x_77 = l_Lean_Meta_Split_simpMatch_pre___closed__1; lean_inc(x_3); -x_79 = l_Lean_Meta_Simp_tryTheorem_x3f(x_3, x_30, x_78, x_4, x_5, x_6, x_7, x_8, x_9, x_22); +x_78 = l_Lean_Meta_Simp_tryTheorem_x3f(x_3, x_29, x_77, x_4, x_5, x_6, x_7, x_8, x_9, x_22); +if (lean_obj_tag(x_78) == 0) +{ +lean_object* x_79; +x_79 = lean_ctor_get(x_78, 0); +lean_inc(x_79); if (lean_obj_tag(x_79) == 0) { -lean_object* x_80; -x_80 = lean_ctor_get(x_79, 0); +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; +x_80 = lean_ctor_get(x_78, 1); lean_inc(x_80); -if (lean_obj_tag(x_80) == 0) -{ -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; -x_81 = lean_ctor_get(x_79, 1); -lean_inc(x_81); -if (lean_is_exclusive(x_79)) { - lean_ctor_release(x_79, 0); - lean_ctor_release(x_79, 1); - x_82 = x_79; +if (lean_is_exclusive(x_78)) { + lean_ctor_release(x_78, 0); + lean_ctor_release(x_78, 1); + x_81 = x_78; } else { - lean_dec_ref(x_79); - x_82 = lean_box(0); + lean_dec_ref(x_78); + x_81 = lean_box(0); +} +x_82 = lean_box(0); +x_83 = lean_unsigned_to_nat(0u); +x_84 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_84, 0, x_3); +lean_ctor_set(x_84, 1, x_82); +lean_ctor_set(x_84, 2, x_83); +x_85 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_85, 0, x_84); +if (lean_is_scalar(x_81)) { + x_86 = lean_alloc_ctor(0, 2, 0); +} else { + x_86 = x_81; } -x_83 = lean_box(0); -x_84 = lean_unsigned_to_nat(0u); -x_85 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_85, 0, x_3); -lean_ctor_set(x_85, 1, x_83); -lean_ctor_set(x_85, 2, x_84); -x_86 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_86, 0, x_85); -if (lean_is_scalar(x_82)) { - x_87 = lean_alloc_ctor(0, 2, 0); -} else { - x_87 = x_82; -} -lean_ctor_set(x_87, 0, x_86); -lean_ctor_set(x_87, 1, x_81); -return x_87; +lean_ctor_set(x_86, 1, x_80); +return x_86; } else { -lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; +lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_dec(x_3); -x_88 = lean_ctor_get(x_79, 1); -lean_inc(x_88); -if (lean_is_exclusive(x_79)) { - lean_ctor_release(x_79, 0); - lean_ctor_release(x_79, 1); - x_89 = x_79; +x_87 = lean_ctor_get(x_78, 1); +lean_inc(x_87); +if (lean_is_exclusive(x_78)) { + lean_ctor_release(x_78, 0); + lean_ctor_release(x_78, 1); + x_88 = x_78; } else { - lean_dec_ref(x_79); - x_89 = lean_box(0); + lean_dec_ref(x_78); + x_88 = lean_box(0); +} +x_89 = lean_ctor_get(x_79, 0); +lean_inc(x_89); +lean_dec(x_79); +x_90 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_90, 0, x_89); +if (lean_is_scalar(x_88)) { + x_91 = lean_alloc_ctor(0, 2, 0); +} else { + x_91 = x_88; } -x_90 = lean_ctor_get(x_80, 0); -lean_inc(x_90); -lean_dec(x_80); -x_91 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_91, 0, x_90); -if (lean_is_scalar(x_89)) { - x_92 = lean_alloc_ctor(0, 2, 0); -} else { - x_92 = x_89; -} -lean_ctor_set(x_92, 0, x_91); -lean_ctor_set(x_92, 1, x_88); -return x_92; +lean_ctor_set(x_91, 1, x_87); +return x_91; } } else { -lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_dec(x_3); -x_93 = lean_ctor_get(x_79, 0); +x_92 = lean_ctor_get(x_78, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_78, 1); lean_inc(x_93); -x_94 = lean_ctor_get(x_79, 1); -lean_inc(x_94); -if (lean_is_exclusive(x_79)) { - lean_ctor_release(x_79, 0); - lean_ctor_release(x_79, 1); - x_95 = x_79; +if (lean_is_exclusive(x_78)) { + lean_ctor_release(x_78, 0); + lean_ctor_release(x_78, 1); + x_94 = x_78; } else { - lean_dec_ref(x_79); - x_95 = lean_box(0); + lean_dec_ref(x_78); + x_94 = lean_box(0); } -if (lean_is_scalar(x_95)) { - x_96 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_94)) { + x_95 = lean_alloc_ctor(1, 2, 0); } else { - x_96 = x_95; + x_95 = x_94; } -lean_ctor_set(x_96, 0, x_93); -lean_ctor_set(x_96, 1, x_94); -return x_96; +lean_ctor_set(x_95, 0, x_92); +lean_ctor_set(x_95, 1, x_93); +return x_95; } } } else { -lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; uint8_t x_103; uint8_t x_104; uint8_t x_105; uint8_t x_106; uint8_t x_107; uint8_t x_108; uint8_t x_109; uint8_t x_110; uint8_t x_111; uint8_t x_112; uint8_t x_113; uint8_t x_114; uint8_t x_115; lean_object* x_116; uint8_t x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; -x_97 = lean_ctor_get(x_6, 0); -x_98 = lean_ctor_get(x_6, 1); -x_99 = lean_ctor_get(x_6, 2); -x_100 = lean_ctor_get(x_6, 3); -x_101 = lean_ctor_get(x_6, 4); -x_102 = lean_ctor_get(x_6, 5); -lean_inc(x_102); +lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; uint8_t x_102; uint8_t x_103; uint8_t x_104; uint8_t x_105; uint8_t x_106; uint8_t x_107; uint8_t x_108; uint8_t x_109; uint8_t x_110; uint8_t x_111; uint8_t x_112; uint8_t x_113; uint8_t x_114; lean_object* x_115; uint8_t x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; +x_96 = lean_ctor_get(x_6, 0); +x_97 = lean_ctor_get(x_6, 1); +x_98 = lean_ctor_get(x_6, 2); +x_99 = lean_ctor_get(x_6, 3); +x_100 = lean_ctor_get(x_6, 4); +x_101 = lean_ctor_get(x_6, 5); lean_inc(x_101); lean_inc(x_100); lean_inc(x_99); lean_inc(x_98); lean_inc(x_97); +lean_inc(x_96); lean_dec(x_6); -x_103 = lean_ctor_get_uint8(x_97, 0); -x_104 = lean_ctor_get_uint8(x_97, 1); -x_105 = lean_ctor_get_uint8(x_97, 2); -x_106 = lean_ctor_get_uint8(x_97, 3); -x_107 = lean_ctor_get_uint8(x_97, 4); -x_108 = lean_ctor_get_uint8(x_97, 6); -x_109 = lean_ctor_get_uint8(x_97, 7); -x_110 = lean_ctor_get_uint8(x_97, 8); -x_111 = lean_ctor_get_uint8(x_97, 9); -x_112 = lean_ctor_get_uint8(x_97, 10); -x_113 = lean_ctor_get_uint8(x_97, 11); -x_114 = lean_ctor_get_uint8(x_97, 12); -x_115 = lean_ctor_get_uint8(x_97, 13); -if (lean_is_exclusive(x_97)) { - x_116 = x_97; +x_102 = lean_ctor_get_uint8(x_96, 0); +x_103 = lean_ctor_get_uint8(x_96, 1); +x_104 = lean_ctor_get_uint8(x_96, 2); +x_105 = lean_ctor_get_uint8(x_96, 3); +x_106 = lean_ctor_get_uint8(x_96, 4); +x_107 = lean_ctor_get_uint8(x_96, 6); +x_108 = lean_ctor_get_uint8(x_96, 7); +x_109 = lean_ctor_get_uint8(x_96, 8); +x_110 = lean_ctor_get_uint8(x_96, 9); +x_111 = lean_ctor_get_uint8(x_96, 10); +x_112 = lean_ctor_get_uint8(x_96, 11); +x_113 = lean_ctor_get_uint8(x_96, 12); +x_114 = lean_ctor_get_uint8(x_96, 13); +if (lean_is_exclusive(x_96)) { + x_115 = x_96; } else { - lean_dec_ref(x_97); - x_116 = lean_box(0); + lean_dec_ref(x_96); + x_115 = lean_box(0); } -x_117 = 2; -if (lean_is_scalar(x_116)) { - x_118 = lean_alloc_ctor(0, 0, 14); +x_116 = 2; +if (lean_is_scalar(x_115)) { + x_117 = lean_alloc_ctor(0, 0, 14); } else { - x_118 = x_116; + x_117 = x_115; } -lean_ctor_set_uint8(x_118, 0, x_103); -lean_ctor_set_uint8(x_118, 1, x_104); -lean_ctor_set_uint8(x_118, 2, x_105); -lean_ctor_set_uint8(x_118, 3, x_106); -lean_ctor_set_uint8(x_118, 4, x_107); -lean_ctor_set_uint8(x_118, 5, x_117); -lean_ctor_set_uint8(x_118, 6, x_108); -lean_ctor_set_uint8(x_118, 7, x_109); -lean_ctor_set_uint8(x_118, 8, x_110); -lean_ctor_set_uint8(x_118, 9, x_111); -lean_ctor_set_uint8(x_118, 10, x_112); -lean_ctor_set_uint8(x_118, 11, x_113); -lean_ctor_set_uint8(x_118, 12, x_114); -lean_ctor_set_uint8(x_118, 13, x_115); -x_119 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_119, 0, x_118); -lean_ctor_set(x_119, 1, x_98); -lean_ctor_set(x_119, 2, x_99); -lean_ctor_set(x_119, 3, x_100); -lean_ctor_set(x_119, 4, x_101); -lean_ctor_set(x_119, 5, x_102); -x_120 = l_Lean_Meta_Split_simpMatch_pre___closed__1; +lean_ctor_set_uint8(x_117, 0, x_102); +lean_ctor_set_uint8(x_117, 1, x_103); +lean_ctor_set_uint8(x_117, 2, x_104); +lean_ctor_set_uint8(x_117, 3, x_105); +lean_ctor_set_uint8(x_117, 4, x_106); +lean_ctor_set_uint8(x_117, 5, x_116); +lean_ctor_set_uint8(x_117, 6, x_107); +lean_ctor_set_uint8(x_117, 7, x_108); +lean_ctor_set_uint8(x_117, 8, x_109); +lean_ctor_set_uint8(x_117, 9, x_110); +lean_ctor_set_uint8(x_117, 10, x_111); +lean_ctor_set_uint8(x_117, 11, x_112); +lean_ctor_set_uint8(x_117, 12, x_113); +lean_ctor_set_uint8(x_117, 13, x_114); +x_118 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_118, 0, x_117); +lean_ctor_set(x_118, 1, x_97); +lean_ctor_set(x_118, 2, x_98); +lean_ctor_set(x_118, 3, x_99); +lean_ctor_set(x_118, 4, x_100); +lean_ctor_set(x_118, 5, x_101); +x_119 = l_Lean_Meta_Split_simpMatch_pre___closed__1; lean_inc(x_3); -x_121 = l_Lean_Meta_Simp_tryTheorem_x3f(x_3, x_30, x_120, x_4, x_5, x_119, x_7, x_8, x_9, x_22); +x_120 = l_Lean_Meta_Simp_tryTheorem_x3f(x_3, x_29, x_119, x_4, x_5, x_118, x_7, x_8, x_9, x_22); +if (lean_obj_tag(x_120) == 0) +{ +lean_object* x_121; +x_121 = lean_ctor_get(x_120, 0); +lean_inc(x_121); if (lean_obj_tag(x_121) == 0) { -lean_object* x_122; -x_122 = lean_ctor_get(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; lean_object* x_128; +x_122 = lean_ctor_get(x_120, 1); lean_inc(x_122); -if (lean_obj_tag(x_122) == 0) -{ -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_129; -x_123 = lean_ctor_get(x_121, 1); -lean_inc(x_123); -if (lean_is_exclusive(x_121)) { - lean_ctor_release(x_121, 0); - lean_ctor_release(x_121, 1); - x_124 = x_121; +if (lean_is_exclusive(x_120)) { + lean_ctor_release(x_120, 0); + lean_ctor_release(x_120, 1); + x_123 = x_120; } else { - lean_dec_ref(x_121); - x_124 = lean_box(0); + lean_dec_ref(x_120); + x_123 = lean_box(0); +} +x_124 = lean_box(0); +x_125 = lean_unsigned_to_nat(0u); +x_126 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_126, 0, x_3); +lean_ctor_set(x_126, 1, x_124); +lean_ctor_set(x_126, 2, x_125); +x_127 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_127, 0, x_126); +if (lean_is_scalar(x_123)) { + x_128 = lean_alloc_ctor(0, 2, 0); +} else { + x_128 = x_123; } -x_125 = lean_box(0); -x_126 = lean_unsigned_to_nat(0u); -x_127 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_127, 0, x_3); -lean_ctor_set(x_127, 1, x_125); -lean_ctor_set(x_127, 2, x_126); -x_128 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_128, 0, x_127); -if (lean_is_scalar(x_124)) { - x_129 = lean_alloc_ctor(0, 2, 0); -} else { - x_129 = x_124; -} -lean_ctor_set(x_129, 0, x_128); -lean_ctor_set(x_129, 1, x_123); -return x_129; +lean_ctor_set(x_128, 1, x_122); +return x_128; } else { -lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_dec(x_3); -x_130 = lean_ctor_get(x_121, 1); -lean_inc(x_130); -if (lean_is_exclusive(x_121)) { - lean_ctor_release(x_121, 0); - lean_ctor_release(x_121, 1); - x_131 = x_121; +x_129 = lean_ctor_get(x_120, 1); +lean_inc(x_129); +if (lean_is_exclusive(x_120)) { + lean_ctor_release(x_120, 0); + lean_ctor_release(x_120, 1); + x_130 = x_120; } else { - lean_dec_ref(x_121); - x_131 = lean_box(0); + lean_dec_ref(x_120); + x_130 = lean_box(0); +} +x_131 = lean_ctor_get(x_121, 0); +lean_inc(x_131); +lean_dec(x_121); +x_132 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_132, 0, x_131); +if (lean_is_scalar(x_130)) { + x_133 = lean_alloc_ctor(0, 2, 0); +} else { + x_133 = x_130; } -x_132 = lean_ctor_get(x_122, 0); -lean_inc(x_132); -lean_dec(x_122); -x_133 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_133, 0, x_132); -if (lean_is_scalar(x_131)) { - x_134 = lean_alloc_ctor(0, 2, 0); -} else { - x_134 = x_131; -} -lean_ctor_set(x_134, 0, x_133); -lean_ctor_set(x_134, 1, x_130); -return x_134; +lean_ctor_set(x_133, 1, x_129); +return x_133; } } else { -lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; +lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_dec(x_3); -x_135 = lean_ctor_get(x_121, 0); +x_134 = lean_ctor_get(x_120, 0); +lean_inc(x_134); +x_135 = lean_ctor_get(x_120, 1); lean_inc(x_135); -x_136 = lean_ctor_get(x_121, 1); -lean_inc(x_136); -if (lean_is_exclusive(x_121)) { - lean_ctor_release(x_121, 0); - lean_ctor_release(x_121, 1); - x_137 = x_121; +if (lean_is_exclusive(x_120)) { + lean_ctor_release(x_120, 0); + lean_ctor_release(x_120, 1); + x_136 = x_120; } else { - lean_dec_ref(x_121); - x_137 = lean_box(0); + lean_dec_ref(x_120); + x_136 = lean_box(0); } -if (lean_is_scalar(x_137)) { - x_138 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_136)) { + x_137 = lean_alloc_ctor(1, 2, 0); } else { - x_138 = x_137; + x_137 = x_136; } -lean_ctor_set(x_138, 0, x_135); -lean_ctor_set(x_138, 1, x_136); -return x_138; +lean_ctor_set(x_137, 0, x_134); +lean_ctor_set(x_137, 1, x_135); +return x_137; } } } else { -uint8_t x_139; +uint8_t x_138; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -1471,29 +1527,29 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_139 = !lean_is_exclusive(x_20); -if (x_139 == 0) +x_138 = !lean_is_exclusive(x_20); +if (x_138 == 0) { return x_20; } else { -lean_object* x_140; lean_object* x_141; lean_object* x_142; -x_140 = lean_ctor_get(x_20, 0); -x_141 = lean_ctor_get(x_20, 1); -lean_inc(x_141); +lean_object* x_139; lean_object* x_140; lean_object* x_141; +x_139 = lean_ctor_get(x_20, 0); +x_140 = lean_ctor_get(x_20, 1); lean_inc(x_140); +lean_inc(x_139); lean_dec(x_20); -x_142 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_142, 0, x_140); -lean_ctor_set(x_142, 1, x_141); -return x_142; +x_141 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_141, 0, x_139); +lean_ctor_set(x_141, 1, x_140); +return x_141; } } } else { -uint8_t x_143; +uint8_t x_142; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -1502,53 +1558,53 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_143 = !lean_is_exclusive(x_17); -if (x_143 == 0) +x_142 = !lean_is_exclusive(x_17); +if (x_142 == 0) { -lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; -x_144 = lean_ctor_get(x_17, 0); -lean_dec(x_144); -x_145 = lean_ctor_get(x_18, 0); -lean_inc(x_145); +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_143 = lean_ctor_get(x_17, 0); +lean_dec(x_143); +x_144 = lean_ctor_get(x_18, 0); +lean_inc(x_144); lean_dec(x_18); -x_146 = lean_box(0); -x_147 = lean_unsigned_to_nat(0u); -x_148 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_148, 0, x_145); -lean_ctor_set(x_148, 1, x_146); -lean_ctor_set(x_148, 2, x_147); -x_149 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_149, 0, x_148); -lean_ctor_set(x_17, 0, x_149); +x_145 = lean_box(0); +x_146 = lean_unsigned_to_nat(0u); +x_147 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_147, 0, x_144); +lean_ctor_set(x_147, 1, x_145); +lean_ctor_set(x_147, 2, x_146); +x_148 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_148, 0, x_147); +lean_ctor_set(x_17, 0, x_148); return x_17; } else { -lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; -x_150 = lean_ctor_get(x_17, 1); +lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; +x_149 = lean_ctor_get(x_17, 1); +lean_inc(x_149); +lean_dec(x_17); +x_150 = lean_ctor_get(x_18, 0); lean_inc(x_150); -lean_dec(x_17); -x_151 = lean_ctor_get(x_18, 0); -lean_inc(x_151); lean_dec(x_18); -x_152 = lean_box(0); -x_153 = lean_unsigned_to_nat(0u); -x_154 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_154, 0, x_151); -lean_ctor_set(x_154, 1, x_152); -lean_ctor_set(x_154, 2, x_153); -x_155 = lean_alloc_ctor(1, 1, 0); +x_151 = lean_box(0); +x_152 = lean_unsigned_to_nat(0u); +x_153 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_153, 0, x_150); +lean_ctor_set(x_153, 1, x_151); +lean_ctor_set(x_153, 2, x_152); +x_154 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_154, 0, x_153); +x_155 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_155, 0, x_154); -x_156 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_156, 0, x_155); -lean_ctor_set(x_156, 1, x_150); -return x_156; +lean_ctor_set(x_155, 1, x_149); +return x_155; } } } else { -uint8_t x_157; +uint8_t x_156; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -1557,23 +1613,23 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_157 = !lean_is_exclusive(x_17); -if (x_157 == 0) +x_156 = !lean_is_exclusive(x_17); +if (x_156 == 0) { return x_17; } else { -lean_object* x_158; lean_object* x_159; lean_object* x_160; -x_158 = lean_ctor_get(x_17, 0); -x_159 = lean_ctor_get(x_17, 1); -lean_inc(x_159); +lean_object* x_157; lean_object* x_158; lean_object* x_159; +x_157 = lean_ctor_get(x_17, 0); +x_158 = lean_ctor_get(x_17, 1); lean_inc(x_158); +lean_inc(x_157); lean_dec(x_17); -x_160 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_160, 0, x_158); -lean_ctor_set(x_160, 1, x_159); -return x_160; +x_159 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_159, 0, x_157); +lean_ctor_set(x_159, 1, x_158); +return x_159; } } } @@ -1591,7 +1647,7 @@ return x_11; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchCore(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; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +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; x_9 = l_Lean_Meta_Split_getSimpMatchContext___rarg(x_7, x_8); x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); @@ -1607,8 +1663,61 @@ x_15 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_15, 0, x_12); lean_ctor_set(x_15, 1, x_13); lean_ctor_set(x_15, 2, x_14); -x_16 = l_Lean_Meta_Simp_main(x_3, x_10, x_15, x_4, x_5, x_6, x_7, x_11); -return x_16; +x_16 = l_Lean_NameSet_empty; +x_17 = l_Lean_Meta_Simp_main(x_3, x_10, x_16, x_15, x_4, x_5, x_6, x_7, x_11); +if (lean_obj_tag(x_17) == 0) +{ +uint8_t x_18; +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_17, 0); +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +lean_dec(x_19); +lean_ctor_set(x_17, 0, x_20); +return x_17; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_17, 0); +x_22 = lean_ctor_get(x_17, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_17); +x_23 = lean_ctor_get(x_21, 0); +lean_inc(x_23); +lean_dec(x_21); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_22); +return x_24; +} +} +else +{ +uint8_t x_25; +x_25 = !lean_is_exclusive(x_17); +if (x_25 == 0) +{ +return x_17; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_17, 0); +x_27 = lean_ctor_get(x_17, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_17); +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; +} +} } } LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchTargetCore___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) { @@ -12264,7 +12373,7 @@ x_10 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1(x_9, x return x_10; } } -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Split___hyg_6223_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Split___hyg_6245_(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; lean_object* x_4; @@ -12481,7 +12590,7 @@ l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Met lean_mark_persistent(l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__1); l_Lean_Meta_splitLocalDecl_x3f___lambda__1___closed__1 = _init_l_Lean_Meta_splitLocalDecl_x3f___lambda__1___closed__1(); lean_mark_persistent(l_Lean_Meta_splitLocalDecl_x3f___lambda__1___closed__1); -res = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Split___hyg_6223_(lean_io_mk_world()); +res = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Split___hyg_6245_(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/Tactic/SplitIf.c b/stage0/stdlib/Lean/Meta/Tactic/SplitIf.c index 4440a20870..c67b634887 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/SplitIf.c +++ b/stage0/stdlib/Lean/Meta/Tactic/SplitIf.c @@ -18,7 +18,7 @@ static lean_object* l_Lean_Meta_SplitIf_initFn____x40_Lean_Meta_Tactic_SplitIf__ static lean_object* l_Lean_LazyInitExtension_get___at_Lean_Meta_SplitIf_getSimpContext___spec__1___closed__7; static lean_object* l_Lean_Meta_SplitIf_initFn____x40_Lean_Meta_Tactic_SplitIf___hyg_5____closed__6; LEAN_EXPORT lean_object* l_Lean_LocalContext_findDeclRevM_x3f___at_Lean_Meta_SplitIf_discharge_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_simpTarget(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_simpTarget(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_SplitIf_discharge_x3f___closed__2; lean_object* l_Lean_registerTraceClass(lean_object*, uint8_t, lean_object*); static lean_object* l_Array_findSomeRevM_x3f_find___at_Lean_Meta_SplitIf_discharge_x3f___spec__3___closed__2; @@ -102,7 +102,7 @@ lean_object* l_Lean_LocalDecl_toExpr(lean_object*); uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitIfLocalDecl_x3f___spec__1___at_Lean_Meta_splitIfLocalDecl_x3f___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_LazyInitExtension_get___at_Lean_Meta_SplitIf_getSimpContext___spec__1___closed__4; -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_SplitIf___hyg_1453_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_SplitIf___hyg_1481_(lean_object*); static lean_object* l_Lean_Meta_SplitIf_discharge_x3f___lambda__2___closed__7; static lean_object* l_Lean_Meta_SplitIf_initFn____x40_Lean_Meta_Tactic_SplitIf___hyg_5____closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_splitIfLocalDecl_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -115,6 +115,7 @@ static lean_object* l_Array_findSomeRevM_x3f_find___at_Lean_Meta_SplitIf_dischar LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitIfLocalDecl_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_LazyInitExtension_get___at_Lean_Meta_SplitIf_getSimpContext___spec__1___closed__8; lean_object* l_Lean_Meta_SavedState_restore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_NameSet_empty; extern lean_object* l_Std_PersistentHashMap_empty___at_Lean_Meta_Instances_instanceNames___default___spec__1; lean_object* l_instBEqProd___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_LazyInitExtension_get___at_Lean_Meta_SplitIf_getSimpContext___spec__1___closed__1; @@ -137,7 +138,7 @@ static lean_object* l_Lean_Meta_simpIfTarget___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_SplitIf_discharge_x3f(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_SplitIf_discharge_x3f___closed__10; static lean_object* l_Lean_LazyInitExtension_get___at_Lean_Meta_SplitIf_getSimpContext___spec__1___closed__9; -lean_object* l_Lean_Meta_simpLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_simpLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_simpIfTarget(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitIfTarget_x3f___spec__1___at_Lean_Meta_splitIfTarget_x3f___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_simpIfTarget___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -342,149 +343,153 @@ lean_dec(x_6); x_27 = !lean_is_exclusive(x_26); if (x_27 == 0) { -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_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; x_28 = lean_ctor_get(x_26, 0); x_29 = l_Lean_Meta_SplitIf_initFn____x40_Lean_Meta_Tactic_SplitIf___hyg_5____lambda__1___closed__8; x_30 = lean_array_push(x_29, x_24); x_31 = lean_box(0); -x_32 = l_Lean_Meta_SplitIf_initFn____x40_Lean_Meta_Tactic_SplitIf___hyg_5____lambda__1___closed__7; -x_33 = lean_unsigned_to_nat(0u); -x_34 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_34, 0, x_32); -lean_ctor_set(x_34, 1, x_30); -lean_ctor_set(x_34, 2, x_28); -lean_ctor_set(x_34, 3, x_31); -lean_ctor_set(x_34, 4, x_33); -lean_ctor_set(x_26, 0, x_34); +x_32 = lean_box(0); +x_33 = l_Lean_Meta_SplitIf_initFn____x40_Lean_Meta_Tactic_SplitIf___hyg_5____lambda__1___closed__7; +x_34 = lean_unsigned_to_nat(0u); +x_35 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_30); +lean_ctor_set(x_35, 2, x_28); +lean_ctor_set(x_35, 3, x_31); +lean_ctor_set(x_35, 4, x_32); +lean_ctor_set(x_35, 5, x_34); +lean_ctor_set(x_26, 0, x_35); return x_26; } else { -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; -x_35 = lean_ctor_get(x_26, 0); -x_36 = lean_ctor_get(x_26, 1); +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; +x_36 = lean_ctor_get(x_26, 0); +x_37 = lean_ctor_get(x_26, 1); +lean_inc(x_37); lean_inc(x_36); -lean_inc(x_35); lean_dec(x_26); -x_37 = l_Lean_Meta_SplitIf_initFn____x40_Lean_Meta_Tactic_SplitIf___hyg_5____lambda__1___closed__8; -x_38 = lean_array_push(x_37, x_24); -x_39 = lean_box(0); -x_40 = l_Lean_Meta_SplitIf_initFn____x40_Lean_Meta_Tactic_SplitIf___hyg_5____lambda__1___closed__7; -x_41 = lean_unsigned_to_nat(0u); -x_42 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_38); -lean_ctor_set(x_42, 2, x_35); -lean_ctor_set(x_42, 3, x_39); -lean_ctor_set(x_42, 4, x_41); -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_36); -return x_43; +x_38 = l_Lean_Meta_SplitIf_initFn____x40_Lean_Meta_Tactic_SplitIf___hyg_5____lambda__1___closed__8; +x_39 = lean_array_push(x_38, x_24); +x_40 = lean_box(0); +x_41 = lean_box(0); +x_42 = l_Lean_Meta_SplitIf_initFn____x40_Lean_Meta_Tactic_SplitIf___hyg_5____lambda__1___closed__7; +x_43 = lean_unsigned_to_nat(0u); +x_44 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_44, 0, x_42); +lean_ctor_set(x_44, 1, x_39); +lean_ctor_set(x_44, 2, x_36); +lean_ctor_set(x_44, 3, x_40); +lean_ctor_set(x_44, 4, x_41); +lean_ctor_set(x_44, 5, x_43); +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_44); +lean_ctor_set(x_45, 1, x_37); +return x_45; } } else { -uint8_t x_44; +uint8_t x_46; lean_dec(x_6); -x_44 = !lean_is_exclusive(x_23); -if (x_44 == 0) +x_46 = !lean_is_exclusive(x_23); +if (x_46 == 0) { return x_23; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_23, 0); -x_46 = lean_ctor_get(x_23, 1); -lean_inc(x_46); -lean_inc(x_45); +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_23, 0); +x_48 = lean_ctor_get(x_23, 1); +lean_inc(x_48); +lean_inc(x_47); lean_dec(x_23); -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -return x_47; +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +return x_49; } } } else { -uint8_t x_48; +uint8_t x_50; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_48 = !lean_is_exclusive(x_19); -if (x_48 == 0) +x_50 = !lean_is_exclusive(x_19); +if (x_50 == 0) { return x_19; } else { -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_19, 0); -x_50 = lean_ctor_get(x_19, 1); -lean_inc(x_50); -lean_inc(x_49); +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_19, 0); +x_52 = lean_ctor_get(x_19, 1); +lean_inc(x_52); +lean_inc(x_51); lean_dec(x_19); -x_51 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_51, 0, x_49); -lean_ctor_set(x_51, 1, x_50); -return x_51; +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +return x_53; } } } else { -uint8_t x_52; +uint8_t x_54; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_52 = !lean_is_exclusive(x_15); -if (x_52 == 0) +x_54 = !lean_is_exclusive(x_15); +if (x_54 == 0) { return x_15; } else { -lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_15, 0); -x_54 = lean_ctor_get(x_15, 1); -lean_inc(x_54); -lean_inc(x_53); +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_15, 0); +x_56 = lean_ctor_get(x_15, 1); +lean_inc(x_56); +lean_inc(x_55); lean_dec(x_15); -x_55 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_55, 0, x_53); -lean_ctor_set(x_55, 1, x_54); -return x_55; +x_57 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_56); +return x_57; } } } else { -uint8_t x_56; +uint8_t x_58; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_56 = !lean_is_exclusive(x_11); -if (x_56 == 0) +x_58 = !lean_is_exclusive(x_11); +if (x_58 == 0) { return x_11; } else { -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_11, 0); -x_58 = lean_ctor_get(x_11, 1); -lean_inc(x_58); -lean_inc(x_57); +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_11, 0); +x_60 = lean_ctor_get(x_11, 1); +lean_inc(x_60); +lean_inc(x_59); lean_dec(x_11); -x_59 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_59, 0, x_57); -lean_ctor_set(x_59, 1, x_58); -return x_59; +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; } } } @@ -3772,7 +3777,7 @@ lean_inc(x_3); x_9 = l_Lean_LazyInitExtension_get___at_Lean_Meta_SplitIf_getSimpContext___spec__1(x_8, x_3, x_4, x_5, x_6, x_7); if (lean_obj_tag(x_9) == 0) { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); x_11 = lean_ctor_get(x_9, 1); @@ -3784,113 +3789,117 @@ lean_closure_set(x_13, 0, x_12); x_14 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_14, 0, x_13); x_15 = 0; +x_16 = l_Lean_NameSet_empty; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_16 = l_Lean_Meta_simpTarget(x_1, x_10, x_14, x_15, x_3, x_4, x_5, x_6, x_11); -if (lean_obj_tag(x_16) == 0) -{ -lean_object* x_17; -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); +x_17 = l_Lean_Meta_simpTarget(x_1, x_10, x_14, x_15, x_16, x_3, x_4, x_5, x_6, x_11); 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_16, 1); +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_17, 0); lean_inc(x_18); -lean_dec(x_16); -x_19 = l_Lean_Meta_simpIfTarget___closed__4; -x_20 = l_panic___at_Lean_Meta_subst_substEq___spec__1(x_19, x_3, x_4, x_5, x_6, x_18); -return x_20; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +lean_dec(x_18); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_17, 1); +lean_inc(x_20); +lean_dec(x_17); +x_21 = l_Lean_Meta_simpIfTarget___closed__4; +x_22 = l_panic___at_Lean_Meta_subst_substEq___spec__1(x_21, x_3, x_4, x_5, x_6, x_20); +return x_22; } else { -uint8_t x_21; +uint8_t x_23; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_21 = !lean_is_exclusive(x_16); -if (x_21 == 0) +x_23 = !lean_is_exclusive(x_17); +if (x_23 == 0) { -lean_object* x_22; lean_object* x_23; -x_22 = lean_ctor_get(x_16, 0); -lean_dec(x_22); -x_23 = lean_ctor_get(x_17, 0); -lean_inc(x_23); -lean_dec(x_17); -lean_ctor_set(x_16, 0, x_23); -return x_16; -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_16, 1); -lean_inc(x_24); -lean_dec(x_16); -x_25 = lean_ctor_get(x_17, 0); +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_17, 0); +lean_dec(x_24); +x_25 = lean_ctor_get(x_19, 0); lean_inc(x_25); +lean_dec(x_19); +lean_ctor_set(x_17, 0, x_25); +return x_17; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_17, 1); +lean_inc(x_26); lean_dec(x_17); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, x_24); -return x_26; +x_27 = lean_ctor_get(x_19, 0); +lean_inc(x_27); +lean_dec(x_19); +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_27; +uint8_t x_29; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_27 = !lean_is_exclusive(x_16); -if (x_27 == 0) +x_29 = !lean_is_exclusive(x_17); +if (x_29 == 0) { -return x_16; +return x_17; } else { -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_16, 0); -x_29 = lean_ctor_get(x_16, 1); -lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_16); -x_30 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_30, 0, x_28); -lean_ctor_set(x_30, 1, x_29); -return x_30; +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_31; +uint8_t x_33; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_31 = !lean_is_exclusive(x_9); -if (x_31 == 0) +x_33 = !lean_is_exclusive(x_9); +if (x_33 == 0) { return x_9; } else { -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_9, 0); -x_33 = lean_ctor_get(x_9, 1); -lean_inc(x_33); -lean_inc(x_32); +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_9, 0); +x_35 = lean_ctor_get(x_9, 1); +lean_inc(x_35); +lean_inc(x_34); lean_dec(x_9); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_32); -lean_ctor_set(x_34, 1, x_33); -return x_34; +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; } } } @@ -3959,7 +3968,7 @@ lean_inc(x_3); x_9 = l_Lean_LazyInitExtension_get___at_Lean_Meta_SplitIf_getSimpContext___spec__1(x_8, x_3, x_4, x_5, x_6, x_7); if (lean_obj_tag(x_9) == 0) { -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; +lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); x_11 = lean_ctor_get(x_9, 1); @@ -3967,117 +3976,121 @@ lean_inc(x_11); lean_dec(x_9); x_12 = l_Lean_Meta_simpIfLocalDecl___closed__2; x_13 = 0; +x_14 = l_Lean_NameSet_empty; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_14 = l_Lean_Meta_simpLocalDecl(x_1, x_2, x_10, x_12, x_13, x_3, x_4, x_5, x_6, x_11); -if (lean_obj_tag(x_14) == 0) -{ -lean_object* x_15; -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); +x_15 = l_Lean_Meta_simpLocalDecl(x_1, x_2, x_10, x_12, x_13, x_14, x_3, x_4, x_5, x_6, x_11); if (lean_obj_tag(x_15) == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = lean_ctor_get(x_14, 1); +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_15, 0); lean_inc(x_16); -lean_dec(x_14); -x_17 = l_Lean_Meta_simpIfLocalDecl___closed__4; -x_18 = l_panic___at_Lean_Meta_subst_substEq___spec__1(x_17, x_3, x_4, x_5, x_6, x_16); -return x_18; -} -else +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +lean_dec(x_16); +if (lean_obj_tag(x_17) == 0) { -lean_object* x_19; uint8_t x_20; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_19 = lean_ctor_get(x_15, 0); -lean_inc(x_19); +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); lean_dec(x_15); -x_20 = !lean_is_exclusive(x_14); -if (x_20 == 0) -{ -lean_object* x_21; lean_object* x_22; -x_21 = lean_ctor_get(x_14, 0); -lean_dec(x_21); -x_22 = lean_ctor_get(x_19, 1); -lean_inc(x_22); -lean_dec(x_19); -lean_ctor_set(x_14, 0, x_22); -return x_14; +x_19 = l_Lean_Meta_simpIfLocalDecl___closed__4; +x_20 = l_panic___at_Lean_Meta_subst_substEq___spec__1(x_19, x_3, x_4, x_5, x_6, x_18); +return x_20; } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_14, 1); -lean_inc(x_23); -lean_dec(x_14); -x_24 = lean_ctor_get(x_19, 1); -lean_inc(x_24); -lean_dec(x_19); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, x_23); -return x_25; -} -} -} -else -{ -uint8_t x_26; +lean_object* x_21; uint8_t x_22; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_26 = !lean_is_exclusive(x_14); -if (x_26 == 0) +x_21 = lean_ctor_get(x_17, 0); +lean_inc(x_21); +lean_dec(x_17); +x_22 = !lean_is_exclusive(x_15); +if (x_22 == 0) { -return x_14; +lean_object* x_23; lean_object* x_24; +x_23 = lean_ctor_get(x_15, 0); +lean_dec(x_23); +x_24 = lean_ctor_get(x_21, 1); +lean_inc(x_24); +lean_dec(x_21); +lean_ctor_set(x_15, 0, x_24); +return x_15; } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_14, 0); -x_28 = lean_ctor_get(x_14, 1); -lean_inc(x_28); -lean_inc(x_27); -lean_dec(x_14); -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* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_15, 1); +lean_inc(x_25); +lean_dec(x_15); +x_26 = lean_ctor_get(x_21, 1); +lean_inc(x_26); +lean_dec(x_21); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_25); +return x_27; } } } else { -uint8_t x_30; +uint8_t x_28; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_28 = !lean_is_exclusive(x_15); +if (x_28 == 0) +{ +return x_15; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_15, 0); +x_30 = lean_ctor_get(x_15, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_15); +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_32; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_30 = !lean_is_exclusive(x_9); -if (x_30 == 0) +x_32 = !lean_is_exclusive(x_9); +if (x_32 == 0) { return x_9; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_9, 0); -x_32 = lean_ctor_get(x_9, 1); -lean_inc(x_32); -lean_inc(x_31); +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_9, 0); +x_34 = lean_ctor_get(x_9, 1); +lean_inc(x_34); +lean_inc(x_33); lean_dec(x_9); -x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_31); -lean_ctor_set(x_33, 1, x_32); -return x_33; +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +return x_35; } } } @@ -6201,7 +6214,7 @@ x_10 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitIfLocalDecl_x3f___spec__1__ return x_10; } } -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_SplitIf___hyg_1453_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_SplitIf___hyg_1481_(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; lean_object* x_4; @@ -6373,7 +6386,7 @@ l_Lean_Meta_simpIfLocalDecl___closed__3 = _init_l_Lean_Meta_simpIfLocalDecl___cl lean_mark_persistent(l_Lean_Meta_simpIfLocalDecl___closed__3); l_Lean_Meta_simpIfLocalDecl___closed__4 = _init_l_Lean_Meta_simpIfLocalDecl___closed__4(); lean_mark_persistent(l_Lean_Meta_simpIfLocalDecl___closed__4); -res = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_SplitIf___hyg_1453_(lean_io_mk_world()); +res = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_SplitIf___hyg_1481_(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/Tactic/Unfold.c b/stage0/stdlib/Lean/Meta/Tactic/Unfold.c index 3bb0c28678..ca803fbc44 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Unfold.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Unfold.c @@ -32,7 +32,7 @@ static lean_object* l_Lean_Meta_unfoldLocalDecl___lambda__1___closed__3; lean_object* l_Lean_Meta_isRflTheorem(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_Simp_neutralConfig; LEAN_EXPORT lean_object* l_Lean_Meta_unfold_pre___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_Meta_Simp_main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Simp_main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Unfold_0__Lean_Meta_getSimpUnfoldContext___rarg___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Unfold_0__Lean_Meta_getSimpUnfoldContext___rarg___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_unfold___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -44,6 +44,7 @@ lean_object* l_Lean_Meta_getUnfoldEqnFor_x3f(lean_object*, uint8_t, lean_object* lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_unfoldTarget___lambda__2___closed__6; LEAN_EXPORT lean_object* l_Lean_Meta_unfoldTarget___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_NameSet_empty; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Unfold_0__Lean_Meta_getSimpUnfoldContext(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_mkSimpCongrTheorem___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_unfoldLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -88,43 +89,47 @@ x_3 = l_Lean_Meta_getSimpCongrTheorems___rarg(x_1, x_2); x_4 = !lean_is_exclusive(x_3); if (x_4 == 0) { -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_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; x_5 = lean_ctor_get(x_3, 0); x_6 = lean_box(0); -x_7 = l_Lean_Meta_Simp_neutralConfig; -x_8 = l___private_Lean_Meta_Tactic_Unfold_0__Lean_Meta_getSimpUnfoldContext___rarg___closed__1; -x_9 = lean_unsigned_to_nat(0u); -x_10 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_10, 0, x_7); -lean_ctor_set(x_10, 1, x_8); -lean_ctor_set(x_10, 2, x_5); -lean_ctor_set(x_10, 3, x_6); -lean_ctor_set(x_10, 4, x_9); -lean_ctor_set(x_3, 0, x_10); +x_7 = lean_box(0); +x_8 = l_Lean_Meta_Simp_neutralConfig; +x_9 = l___private_Lean_Meta_Tactic_Unfold_0__Lean_Meta_getSimpUnfoldContext___rarg___closed__1; +x_10 = lean_unsigned_to_nat(0u); +x_11 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_11, 0, x_8); +lean_ctor_set(x_11, 1, x_9); +lean_ctor_set(x_11, 2, x_5); +lean_ctor_set(x_11, 3, x_6); +lean_ctor_set(x_11, 4, x_7); +lean_ctor_set(x_11, 5, x_10); +lean_ctor_set(x_3, 0, x_11); return x_3; } 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; -x_11 = lean_ctor_get(x_3, 0); -x_12 = lean_ctor_get(x_3, 1); +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_12 = lean_ctor_get(x_3, 0); +x_13 = lean_ctor_get(x_3, 1); +lean_inc(x_13); lean_inc(x_12); -lean_inc(x_11); lean_dec(x_3); -x_13 = lean_box(0); -x_14 = l_Lean_Meta_Simp_neutralConfig; -x_15 = l___private_Lean_Meta_Tactic_Unfold_0__Lean_Meta_getSimpUnfoldContext___rarg___closed__1; -x_16 = lean_unsigned_to_nat(0u); -x_17 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_17, 0, x_14); -lean_ctor_set(x_17, 1, x_15); -lean_ctor_set(x_17, 2, x_11); -lean_ctor_set(x_17, 3, x_13); -lean_ctor_set(x_17, 4, x_16); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_12); -return x_18; +x_14 = lean_box(0); +x_15 = lean_box(0); +x_16 = l_Lean_Meta_Simp_neutralConfig; +x_17 = l___private_Lean_Meta_Tactic_Unfold_0__Lean_Meta_getSimpUnfoldContext___rarg___closed__1; +x_18 = lean_unsigned_to_nat(0u); +x_19 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_19, 0, x_16); +lean_ctor_set(x_19, 1, x_17); +lean_ctor_set(x_19, 2, x_12); +lean_ctor_set(x_19, 3, x_14); +lean_ctor_set(x_19, 4, x_15); +lean_ctor_set(x_19, 5, x_18); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_13); +return x_20; } } } @@ -203,7 +208,7 @@ lean_inc(x_1); x_10 = l_Lean_Meta_isRflTheorem(x_1, x_7, x_8, x_9); if (lean_obj_tag(x_10) == 0) { -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; uint8_t x_18; uint8_t x_19; lean_object* x_20; uint8_t 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; uint8_t x_28; +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; uint8_t x_18; lean_object* x_19; uint8_t 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; uint8_t x_27; x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); x_12 = lean_ctor_get(x_10, 1); @@ -212,242 +217,240 @@ lean_dec(x_10); x_13 = lean_box(0); lean_inc(x_1); x_14 = l_Lean_Expr_const___override(x_1, x_13); -x_15 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_15, 0, x_1); -x_16 = l___private_Lean_Meta_Tactic_Unfold_0__Lean_Meta_getSimpUnfoldContext___rarg___closed__1; -x_17 = lean_unsigned_to_nat(1000u); -x_18 = 1; -x_19 = 0; -x_20 = lean_alloc_ctor(0, 5, 3); -lean_ctor_set(x_20, 0, x_16); -lean_ctor_set(x_20, 1, x_16); -lean_ctor_set(x_20, 2, x_14); -lean_ctor_set(x_20, 3, x_17); -lean_ctor_set(x_20, 4, x_15); -lean_ctor_set_uint8(x_20, sizeof(void*)*5, x_18); -lean_ctor_set_uint8(x_20, sizeof(void*)*5 + 1, x_19); -x_21 = lean_unbox(x_11); +x_15 = l___private_Lean_Meta_Tactic_Unfold_0__Lean_Meta_getSimpUnfoldContext___rarg___closed__1; +x_16 = lean_unsigned_to_nat(1000u); +x_17 = 1; +x_18 = 0; +x_19 = lean_alloc_ctor(0, 5, 3); +lean_ctor_set(x_19, 0, x_15); +lean_ctor_set(x_19, 1, x_15); +lean_ctor_set(x_19, 2, x_14); +lean_ctor_set(x_19, 3, x_16); +lean_ctor_set(x_19, 4, x_1); +lean_ctor_set_uint8(x_19, sizeof(void*)*5, x_17); +lean_ctor_set_uint8(x_19, sizeof(void*)*5 + 1, x_18); +x_20 = lean_unbox(x_11); lean_dec(x_11); -lean_ctor_set_uint8(x_20, sizeof(void*)*5 + 2, x_21); -x_22 = lean_ctor_get(x_5, 0); +lean_ctor_set_uint8(x_19, sizeof(void*)*5 + 2, x_20); +x_21 = lean_ctor_get(x_5, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_5, 1); lean_inc(x_22); -x_23 = lean_ctor_get(x_5, 1); +x_23 = lean_ctor_get(x_5, 2); lean_inc(x_23); -x_24 = lean_ctor_get(x_5, 2); +x_24 = lean_ctor_get(x_5, 3); lean_inc(x_24); -x_25 = lean_ctor_get(x_5, 3); +x_25 = lean_ctor_get(x_5, 4); lean_inc(x_25); -x_26 = lean_ctor_get(x_5, 4); +x_26 = lean_ctor_get(x_5, 5); lean_inc(x_26); -x_27 = lean_ctor_get(x_5, 5); -lean_inc(x_27); -x_28 = !lean_is_exclusive(x_22); -if (x_28 == 0) +x_27 = !lean_is_exclusive(x_21); +if (x_27 == 0) { -uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_29 = 2; -lean_ctor_set_uint8(x_22, 5, x_29); -x_30 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_30, 0, x_22); -lean_ctor_set(x_30, 1, x_23); -lean_ctor_set(x_30, 2, x_24); -lean_ctor_set(x_30, 3, x_25); -lean_ctor_set(x_30, 4, x_26); -lean_ctor_set(x_30, 5, x_27); -x_31 = l_Lean_Meta_unfold_pre___closed__1; +uint8_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_28 = 2; +lean_ctor_set_uint8(x_21, 5, x_28); +x_29 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_29, 0, x_21); +lean_ctor_set(x_29, 1, x_22); +lean_ctor_set(x_29, 2, x_23); +lean_ctor_set(x_29, 3, x_24); +lean_ctor_set(x_29, 4, x_25); +lean_ctor_set(x_29, 5, x_26); +x_30 = l_Lean_Meta_unfold_pre___closed__1; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_32 = l_Lean_Meta_Simp_tryTheorem_x3f(x_2, x_20, x_31, x_3, x_4, x_30, x_6, x_7, x_8, x_12); +x_31 = l_Lean_Meta_Simp_tryTheorem_x3f(x_2, x_19, x_30, x_3, x_4, x_29, x_6, x_7, x_8, x_12); +if (lean_obj_tag(x_31) == 0) +{ +lean_object* x_32; +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); if (lean_obj_tag(x_32) == 0) { -lean_object* x_33; -x_33 = lean_ctor_get(x_32, 0); +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_31, 1); lean_inc(x_33); -if (lean_obj_tag(x_33) == 0) -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_32, 1); -lean_inc(x_34); -lean_dec(x_32); -x_35 = lean_box(0); -x_36 = l_Lean_Meta_unfold_pre___lambda__2(x_2, x_35, x_3, x_4, x_5, x_6, x_7, x_8, x_34); +lean_dec(x_31); +x_34 = lean_box(0); +x_35 = l_Lean_Meta_unfold_pre___lambda__2(x_2, x_34, x_3, x_4, x_5, x_6, x_7, x_8, x_33); 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_36; +return x_35; } else { -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_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_37 = lean_ctor_get(x_33, 0); -lean_inc(x_37); -lean_dec(x_33); -x_38 = lean_ctor_get(x_32, 1); -lean_inc(x_38); +x_36 = lean_ctor_get(x_32, 0); +lean_inc(x_36); lean_dec(x_32); -x_39 = lean_ctor_get(x_37, 0); +x_37 = lean_ctor_get(x_31, 1); +lean_inc(x_37); +lean_dec(x_31); +x_38 = lean_ctor_get(x_36, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_36, 1); lean_inc(x_39); -x_40 = lean_ctor_get(x_37, 1); +x_40 = lean_ctor_get(x_36, 2); lean_inc(x_40); -x_41 = lean_ctor_get(x_37, 2); -lean_inc(x_41); -x_42 = l_Lean_Meta_reduceMatcher_x3f(x_39, x_5, x_6, x_7, x_8, x_38); +x_41 = l_Lean_Meta_reduceMatcher_x3f(x_38, x_5, x_6, x_7, x_8, x_37); +if (lean_obj_tag(x_41) == 0) +{ +lean_object* x_42; +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); if (lean_obj_tag(x_42) == 0) { -lean_object* x_43; -x_43 = lean_ctor_get(x_42, 0); -lean_inc(x_43); -if (lean_obj_tag(x_43) == 0) +uint8_t x_43; +x_43 = !lean_is_exclusive(x_36); +if (x_43 == 0) { -uint8_t x_44; -x_44 = !lean_is_exclusive(x_37); -if (x_44 == 0) -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; -x_45 = lean_ctor_get(x_37, 2); +lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; +x_44 = lean_ctor_get(x_36, 2); +lean_dec(x_44); +x_45 = lean_ctor_get(x_36, 1); lean_dec(x_45); -x_46 = lean_ctor_get(x_37, 1); +x_46 = lean_ctor_get(x_36, 0); lean_dec(x_46); -x_47 = lean_ctor_get(x_37, 0); -lean_dec(x_47); -x_48 = !lean_is_exclusive(x_42); -if (x_48 == 0) +x_47 = !lean_is_exclusive(x_41); +if (x_47 == 0) { -lean_object* x_49; lean_object* x_50; lean_object* x_51; +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_41, 0); +lean_dec(x_48); x_49 = lean_ctor_get(x_42, 0); -lean_dec(x_49); -x_50 = lean_ctor_get(x_43, 0); -lean_inc(x_50); -lean_dec(x_43); -lean_ctor_set(x_37, 0, x_50); -x_51 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_51, 0, x_37); -lean_ctor_set(x_42, 0, x_51); -return x_42; +lean_inc(x_49); +lean_dec(x_42); +lean_ctor_set(x_36, 0, x_49); +x_50 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_50, 0, x_36); +lean_ctor_set(x_41, 0, x_50); +return x_41; } else { -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_52 = lean_ctor_get(x_42, 1); +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_51 = lean_ctor_get(x_41, 1); +lean_inc(x_51); +lean_dec(x_41); +x_52 = lean_ctor_get(x_42, 0); lean_inc(x_52); lean_dec(x_42); -x_53 = lean_ctor_get(x_43, 0); -lean_inc(x_53); -lean_dec(x_43); -lean_ctor_set(x_37, 0, x_53); -x_54 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_54, 0, x_37); -x_55 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_55, 0, x_54); -lean_ctor_set(x_55, 1, x_52); -return x_55; +lean_ctor_set(x_36, 0, x_52); +x_53 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_53, 0, x_36); +x_54 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_51); +return x_54; } } else { -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_dec(x_37); -x_56 = lean_ctor_get(x_42, 1); -lean_inc(x_56); -if (lean_is_exclusive(x_42)) { - lean_ctor_release(x_42, 0); - lean_ctor_release(x_42, 1); - x_57 = x_42; +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_dec(x_36); +x_55 = lean_ctor_get(x_41, 1); +lean_inc(x_55); +if (lean_is_exclusive(x_41)) { + lean_ctor_release(x_41, 0); + lean_ctor_release(x_41, 1); + x_56 = x_41; } else { - lean_dec_ref(x_42); - x_57 = lean_box(0); + lean_dec_ref(x_41); + x_56 = lean_box(0); } -x_58 = lean_ctor_get(x_43, 0); -lean_inc(x_58); -lean_dec(x_43); -x_59 = lean_alloc_ctor(0, 3, 0); +x_57 = lean_ctor_get(x_42, 0); +lean_inc(x_57); +lean_dec(x_42); +x_58 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set(x_58, 1, x_39); +lean_ctor_set(x_58, 2, x_40); +x_59 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_59, 0, x_58); -lean_ctor_set(x_59, 1, x_40); -lean_ctor_set(x_59, 2, x_41); -x_60 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_60, 0, x_59); -if (lean_is_scalar(x_57)) { - x_61 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_56)) { + x_60 = lean_alloc_ctor(0, 2, 0); } else { - x_61 = x_57; + x_60 = x_56; } -lean_ctor_set(x_61, 0, x_60); -lean_ctor_set(x_61, 1, x_56); -return x_61; +lean_ctor_set(x_60, 0, x_59); +lean_ctor_set(x_60, 1, x_55); +return x_60; } } else { -uint8_t x_62; -lean_dec(x_43); -lean_dec(x_41); -lean_dec(x_40); -x_62 = !lean_is_exclusive(x_42); -if (x_62 == 0) -{ -lean_object* x_63; lean_object* x_64; -x_63 = lean_ctor_get(x_42, 0); -lean_dec(x_63); -x_64 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_64, 0, x_37); -lean_ctor_set(x_42, 0, x_64); -return x_42; -} -else -{ -lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_65 = lean_ctor_get(x_42, 1); -lean_inc(x_65); +uint8_t x_61; lean_dec(x_42); -x_66 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_66, 0, x_37); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_65); -return x_67; -} -} -} -else -{ -uint8_t x_68; -lean_dec(x_41); lean_dec(x_40); -lean_dec(x_37); -x_68 = !lean_is_exclusive(x_42); -if (x_68 == 0) +lean_dec(x_39); +x_61 = !lean_is_exclusive(x_41); +if (x_61 == 0) { -return x_42; +lean_object* x_62; lean_object* x_63; +x_62 = lean_ctor_get(x_41, 0); +lean_dec(x_62); +x_63 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_63, 0, x_36); +lean_ctor_set(x_41, 0, x_63); +return x_41; } else { -lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_69 = lean_ctor_get(x_42, 0); -x_70 = lean_ctor_get(x_42, 1); -lean_inc(x_70); +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_41, 1); +lean_inc(x_64); +lean_dec(x_41); +x_65 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_65, 0, x_36); +x_66 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_64); +return x_66; +} +} +} +else +{ +uint8_t x_67; +lean_dec(x_40); +lean_dec(x_39); +lean_dec(x_36); +x_67 = !lean_is_exclusive(x_41); +if (x_67 == 0) +{ +return x_41; +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_41, 0); +x_69 = lean_ctor_get(x_41, 1); lean_inc(x_69); -lean_dec(x_42); -x_71 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_71, 0, x_69); -lean_ctor_set(x_71, 1, x_70); -return x_71; +lean_inc(x_68); +lean_dec(x_41); +x_70 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_70, 0, x_68); +lean_ctor_set(x_70, 1, x_69); +return x_70; } } } } else { -uint8_t x_72; +uint8_t x_71; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -455,223 +458,223 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_72 = !lean_is_exclusive(x_32); -if (x_72 == 0) +x_71 = !lean_is_exclusive(x_31); +if (x_71 == 0) { -return x_32; +return x_31; } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_32, 0); -x_74 = lean_ctor_get(x_32, 1); -lean_inc(x_74); +lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_72 = lean_ctor_get(x_31, 0); +x_73 = lean_ctor_get(x_31, 1); lean_inc(x_73); -lean_dec(x_32); -x_75 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_75, 0, x_73); -lean_ctor_set(x_75, 1, x_74); -return x_75; +lean_inc(x_72); +lean_dec(x_31); +x_74 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_74, 0, x_72); +lean_ctor_set(x_74, 1, x_73); +return x_74; } } } else { -uint8_t x_76; uint8_t x_77; uint8_t x_78; uint8_t x_79; uint8_t x_80; uint8_t x_81; uint8_t x_82; uint8_t x_83; uint8_t x_84; uint8_t x_85; uint8_t x_86; uint8_t x_87; uint8_t x_88; uint8_t x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_76 = lean_ctor_get_uint8(x_22, 0); -x_77 = lean_ctor_get_uint8(x_22, 1); -x_78 = lean_ctor_get_uint8(x_22, 2); -x_79 = lean_ctor_get_uint8(x_22, 3); -x_80 = lean_ctor_get_uint8(x_22, 4); -x_81 = lean_ctor_get_uint8(x_22, 6); -x_82 = lean_ctor_get_uint8(x_22, 7); -x_83 = lean_ctor_get_uint8(x_22, 8); -x_84 = lean_ctor_get_uint8(x_22, 9); -x_85 = lean_ctor_get_uint8(x_22, 10); -x_86 = lean_ctor_get_uint8(x_22, 11); -x_87 = lean_ctor_get_uint8(x_22, 12); -x_88 = lean_ctor_get_uint8(x_22, 13); -lean_dec(x_22); -x_89 = 2; -x_90 = lean_alloc_ctor(0, 0, 14); -lean_ctor_set_uint8(x_90, 0, x_76); -lean_ctor_set_uint8(x_90, 1, x_77); -lean_ctor_set_uint8(x_90, 2, x_78); -lean_ctor_set_uint8(x_90, 3, x_79); -lean_ctor_set_uint8(x_90, 4, x_80); -lean_ctor_set_uint8(x_90, 5, x_89); -lean_ctor_set_uint8(x_90, 6, x_81); -lean_ctor_set_uint8(x_90, 7, x_82); -lean_ctor_set_uint8(x_90, 8, x_83); -lean_ctor_set_uint8(x_90, 9, x_84); -lean_ctor_set_uint8(x_90, 10, x_85); -lean_ctor_set_uint8(x_90, 11, x_86); -lean_ctor_set_uint8(x_90, 12, x_87); -lean_ctor_set_uint8(x_90, 13, x_88); -x_91 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_91, 0, x_90); -lean_ctor_set(x_91, 1, x_23); -lean_ctor_set(x_91, 2, x_24); -lean_ctor_set(x_91, 3, x_25); -lean_ctor_set(x_91, 4, x_26); -lean_ctor_set(x_91, 5, x_27); -x_92 = l_Lean_Meta_unfold_pre___closed__1; +uint8_t x_75; uint8_t x_76; uint8_t x_77; uint8_t x_78; uint8_t x_79; uint8_t x_80; uint8_t x_81; uint8_t x_82; uint8_t x_83; uint8_t x_84; uint8_t x_85; uint8_t x_86; uint8_t x_87; uint8_t x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; +x_75 = lean_ctor_get_uint8(x_21, 0); +x_76 = lean_ctor_get_uint8(x_21, 1); +x_77 = lean_ctor_get_uint8(x_21, 2); +x_78 = lean_ctor_get_uint8(x_21, 3); +x_79 = lean_ctor_get_uint8(x_21, 4); +x_80 = lean_ctor_get_uint8(x_21, 6); +x_81 = lean_ctor_get_uint8(x_21, 7); +x_82 = lean_ctor_get_uint8(x_21, 8); +x_83 = lean_ctor_get_uint8(x_21, 9); +x_84 = lean_ctor_get_uint8(x_21, 10); +x_85 = lean_ctor_get_uint8(x_21, 11); +x_86 = lean_ctor_get_uint8(x_21, 12); +x_87 = lean_ctor_get_uint8(x_21, 13); +lean_dec(x_21); +x_88 = 2; +x_89 = lean_alloc_ctor(0, 0, 14); +lean_ctor_set_uint8(x_89, 0, x_75); +lean_ctor_set_uint8(x_89, 1, x_76); +lean_ctor_set_uint8(x_89, 2, x_77); +lean_ctor_set_uint8(x_89, 3, x_78); +lean_ctor_set_uint8(x_89, 4, x_79); +lean_ctor_set_uint8(x_89, 5, x_88); +lean_ctor_set_uint8(x_89, 6, x_80); +lean_ctor_set_uint8(x_89, 7, x_81); +lean_ctor_set_uint8(x_89, 8, x_82); +lean_ctor_set_uint8(x_89, 9, x_83); +lean_ctor_set_uint8(x_89, 10, x_84); +lean_ctor_set_uint8(x_89, 11, x_85); +lean_ctor_set_uint8(x_89, 12, x_86); +lean_ctor_set_uint8(x_89, 13, x_87); +x_90 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_90, 1, x_22); +lean_ctor_set(x_90, 2, x_23); +lean_ctor_set(x_90, 3, x_24); +lean_ctor_set(x_90, 4, x_25); +lean_ctor_set(x_90, 5, x_26); +x_91 = l_Lean_Meta_unfold_pre___closed__1; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_93 = l_Lean_Meta_Simp_tryTheorem_x3f(x_2, x_20, x_92, x_3, x_4, x_91, x_6, x_7, x_8, x_12); +x_92 = l_Lean_Meta_Simp_tryTheorem_x3f(x_2, x_19, x_91, x_3, x_4, x_90, x_6, x_7, x_8, x_12); +if (lean_obj_tag(x_92) == 0) +{ +lean_object* x_93; +x_93 = lean_ctor_get(x_92, 0); +lean_inc(x_93); if (lean_obj_tag(x_93) == 0) { -lean_object* x_94; -x_94 = lean_ctor_get(x_93, 0); +lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_94 = lean_ctor_get(x_92, 1); lean_inc(x_94); -if (lean_obj_tag(x_94) == 0) -{ -lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_95 = lean_ctor_get(x_93, 1); -lean_inc(x_95); -lean_dec(x_93); -x_96 = lean_box(0); -x_97 = l_Lean_Meta_unfold_pre___lambda__2(x_2, x_96, x_3, x_4, x_5, x_6, x_7, x_8, x_95); +lean_dec(x_92); +x_95 = lean_box(0); +x_96 = l_Lean_Meta_unfold_pre___lambda__2(x_2, x_95, x_3, x_4, x_5, x_6, x_7, x_8, x_94); 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_97; +return x_96; } else { -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_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_98 = lean_ctor_get(x_94, 0); -lean_inc(x_98); -lean_dec(x_94); -x_99 = lean_ctor_get(x_93, 1); -lean_inc(x_99); +x_97 = lean_ctor_get(x_93, 0); +lean_inc(x_97); lean_dec(x_93); -x_100 = lean_ctor_get(x_98, 0); +x_98 = lean_ctor_get(x_92, 1); +lean_inc(x_98); +lean_dec(x_92); +x_99 = lean_ctor_get(x_97, 0); +lean_inc(x_99); +x_100 = lean_ctor_get(x_97, 1); lean_inc(x_100); -x_101 = lean_ctor_get(x_98, 1); +x_101 = lean_ctor_get(x_97, 2); lean_inc(x_101); -x_102 = lean_ctor_get(x_98, 2); -lean_inc(x_102); -x_103 = l_Lean_Meta_reduceMatcher_x3f(x_100, x_5, x_6, x_7, x_8, x_99); +x_102 = l_Lean_Meta_reduceMatcher_x3f(x_99, x_5, x_6, x_7, x_8, x_98); +if (lean_obj_tag(x_102) == 0) +{ +lean_object* x_103; +x_103 = lean_ctor_get(x_102, 0); +lean_inc(x_103); if (lean_obj_tag(x_103) == 0) { -lean_object* x_104; -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -if (lean_obj_tag(x_104) == 0) -{ -lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; -if (lean_is_exclusive(x_98)) { - lean_ctor_release(x_98, 0); - lean_ctor_release(x_98, 1); - lean_ctor_release(x_98, 2); - x_105 = x_98; +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; +if (lean_is_exclusive(x_97)) { + lean_ctor_release(x_97, 0); + lean_ctor_release(x_97, 1); + lean_ctor_release(x_97, 2); + x_104 = x_97; } else { - lean_dec_ref(x_98); - x_105 = lean_box(0); + lean_dec_ref(x_97); + x_104 = lean_box(0); } -x_106 = lean_ctor_get(x_103, 1); -lean_inc(x_106); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - x_107 = x_103; +x_105 = lean_ctor_get(x_102, 1); +lean_inc(x_105); +if (lean_is_exclusive(x_102)) { + lean_ctor_release(x_102, 0); + lean_ctor_release(x_102, 1); + x_106 = x_102; } else { - lean_dec_ref(x_103); - x_107 = lean_box(0); + lean_dec_ref(x_102); + x_106 = lean_box(0); } -x_108 = lean_ctor_get(x_104, 0); -lean_inc(x_108); -lean_dec(x_104); -if (lean_is_scalar(x_105)) { - x_109 = lean_alloc_ctor(0, 3, 0); +x_107 = lean_ctor_get(x_103, 0); +lean_inc(x_107); +lean_dec(x_103); +if (lean_is_scalar(x_104)) { + x_108 = lean_alloc_ctor(0, 3, 0); } else { - x_109 = x_105; + x_108 = x_104; } +lean_ctor_set(x_108, 0, x_107); +lean_ctor_set(x_108, 1, x_100); +lean_ctor_set(x_108, 2, x_101); +x_109 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_109, 0, x_108); -lean_ctor_set(x_109, 1, x_101); -lean_ctor_set(x_109, 2, x_102); -x_110 = lean_alloc_ctor(1, 1, 0); +if (lean_is_scalar(x_106)) { + x_110 = lean_alloc_ctor(0, 2, 0); +} else { + x_110 = x_106; +} lean_ctor_set(x_110, 0, x_109); -if (lean_is_scalar(x_107)) { - x_111 = lean_alloc_ctor(0, 2, 0); -} else { - x_111 = x_107; -} -lean_ctor_set(x_111, 0, x_110); -lean_ctor_set(x_111, 1, x_106); -return x_111; +lean_ctor_set(x_110, 1, x_105); +return x_110; } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -lean_dec(x_104); -lean_dec(x_102); +lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; +lean_dec(x_103); lean_dec(x_101); -x_112 = lean_ctor_get(x_103, 1); -lean_inc(x_112); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - x_113 = x_103; +lean_dec(x_100); +x_111 = lean_ctor_get(x_102, 1); +lean_inc(x_111); +if (lean_is_exclusive(x_102)) { + lean_ctor_release(x_102, 0); + lean_ctor_release(x_102, 1); + x_112 = x_102; } else { - lean_dec_ref(x_103); - x_113 = lean_box(0); + lean_dec_ref(x_102); + x_112 = lean_box(0); } -x_114 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_114, 0, x_98); -if (lean_is_scalar(x_113)) { - x_115 = lean_alloc_ctor(0, 2, 0); +x_113 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_113, 0, x_97); +if (lean_is_scalar(x_112)) { + x_114 = lean_alloc_ctor(0, 2, 0); } else { - x_115 = x_113; + x_114 = x_112; } -lean_ctor_set(x_115, 0, x_114); -lean_ctor_set(x_115, 1, x_112); -return x_115; +lean_ctor_set(x_114, 0, x_113); +lean_ctor_set(x_114, 1, x_111); +return x_114; } } else { -lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; -lean_dec(x_102); +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_dec(x_101); -lean_dec(x_98); -x_116 = lean_ctor_get(x_103, 0); +lean_dec(x_100); +lean_dec(x_97); +x_115 = lean_ctor_get(x_102, 0); +lean_inc(x_115); +x_116 = lean_ctor_get(x_102, 1); lean_inc(x_116); -x_117 = lean_ctor_get(x_103, 1); -lean_inc(x_117); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - x_118 = x_103; +if (lean_is_exclusive(x_102)) { + lean_ctor_release(x_102, 0); + lean_ctor_release(x_102, 1); + x_117 = x_102; } else { - lean_dec_ref(x_103); - x_118 = lean_box(0); + lean_dec_ref(x_102); + x_117 = lean_box(0); } -if (lean_is_scalar(x_118)) { - x_119 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_117)) { + x_118 = lean_alloc_ctor(1, 2, 0); } else { - x_119 = x_118; + x_118 = x_117; } -lean_ctor_set(x_119, 0, x_116); -lean_ctor_set(x_119, 1, x_117); -return x_119; +lean_ctor_set(x_118, 0, x_115); +lean_ctor_set(x_118, 1, x_116); +return x_118; } } } else { -lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; +lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -679,32 +682,32 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_120 = lean_ctor_get(x_93, 0); +x_119 = lean_ctor_get(x_92, 0); +lean_inc(x_119); +x_120 = lean_ctor_get(x_92, 1); lean_inc(x_120); -x_121 = lean_ctor_get(x_93, 1); -lean_inc(x_121); -if (lean_is_exclusive(x_93)) { - lean_ctor_release(x_93, 0); - lean_ctor_release(x_93, 1); - x_122 = x_93; +if (lean_is_exclusive(x_92)) { + lean_ctor_release(x_92, 0); + lean_ctor_release(x_92, 1); + x_121 = x_92; } else { - lean_dec_ref(x_93); - x_122 = lean_box(0); + lean_dec_ref(x_92); + x_121 = lean_box(0); } -if (lean_is_scalar(x_122)) { - x_123 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_121)) { + x_122 = lean_alloc_ctor(1, 2, 0); } else { - x_123 = x_122; + x_122 = x_121; } -lean_ctor_set(x_123, 0, x_120); -lean_ctor_set(x_123, 1, x_121); -return x_123; +lean_ctor_set(x_122, 0, x_119); +lean_ctor_set(x_122, 1, x_120); +return x_122; } } } else { -uint8_t x_124; +uint8_t x_123; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -713,23 +716,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_124 = !lean_is_exclusive(x_10); -if (x_124 == 0) +x_123 = !lean_is_exclusive(x_10); +if (x_123 == 0) { return x_10; } else { -lean_object* x_125; lean_object* x_126; lean_object* x_127; -x_125 = lean_ctor_get(x_10, 0); -x_126 = lean_ctor_get(x_10, 1); -lean_inc(x_126); +lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_124 = lean_ctor_get(x_10, 0); +x_125 = lean_ctor_get(x_10, 1); lean_inc(x_125); +lean_inc(x_124); lean_dec(x_10); -x_127 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_127, 0, x_125); -lean_ctor_set(x_127, 1, x_126); -return x_127; +x_126 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +return x_126; } } } @@ -887,7 +890,7 @@ return x_28; } else { -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_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_dec(x_2); x_29 = lean_ctor_get(x_9, 1); lean_inc(x_29); @@ -909,36 +912,89 @@ x_37 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_37, 0, x_34); lean_ctor_set(x_37, 1, x_35); lean_ctor_set(x_37, 2, x_36); -x_38 = l_Lean_Meta_Simp_main(x_1, x_32, x_37, x_3, x_4, x_5, x_6, x_33); -return x_38; +x_38 = l_Lean_NameSet_empty; +x_39 = l_Lean_Meta_Simp_main(x_1, x_32, x_38, x_37, x_3, x_4, x_5, x_6, x_33); +if (lean_obj_tag(x_39) == 0) +{ +uint8_t x_40; +x_40 = !lean_is_exclusive(x_39); +if (x_40 == 0) +{ +lean_object* x_41; lean_object* x_42; +x_41 = lean_ctor_get(x_39, 0); +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +lean_dec(x_41); +lean_ctor_set(x_39, 0, x_42); +return x_39; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_43 = lean_ctor_get(x_39, 0); +x_44 = lean_ctor_get(x_39, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_39); +x_45 = lean_ctor_get(x_43, 0); +lean_inc(x_45); +lean_dec(x_43); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_44); +return x_46; } } else { -uint8_t x_39; +uint8_t x_47; +x_47 = !lean_is_exclusive(x_39); +if (x_47 == 0) +{ +return x_39; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_39, 0); +x_49 = lean_ctor_get(x_39, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_39); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +return x_50; +} +} +} +} +else +{ +uint8_t x_51; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_39 = !lean_is_exclusive(x_9); -if (x_39 == 0) +x_51 = !lean_is_exclusive(x_9); +if (x_51 == 0) { return x_9; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_9, 0); -x_41 = lean_ctor_get(x_9, 1); -lean_inc(x_41); -lean_inc(x_40); +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_9, 0); +x_53 = lean_ctor_get(x_9, 1); +lean_inc(x_53); +lean_inc(x_52); lean_dec(x_9); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -return x_42; +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +return x_54; } } } @@ -1234,7 +1290,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Meta_unfoldLocalDecl___lambda__1___closed__1; x_2 = l_Lean_Meta_unfoldLocalDecl___lambda__1___closed__2; -x_3 = lean_unsigned_to_nat(43u); +x_3 = lean_unsigned_to_nat(42u); x_4 = lean_unsigned_to_nat(94u); x_5 = l_Lean_Meta_unfoldLocalDecl___lambda__1___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); diff --git a/stage0/stdlib/Lean/PrettyPrinter/Delaborator/Builtins.c b/stage0/stdlib/Lean/PrettyPrinter/Delaborator/Builtins.c index 31f9b602fb..dcf9c40822 100644 --- a/stage0/stdlib/Lean/PrettyPrinter/Delaborator/Builtins.c +++ b/stage0/stdlib/Lean/PrettyPrinter/Delaborator/Builtins.c @@ -34,7 +34,6 @@ static lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabDIte___cl static lean_object* l_Lean_PrettyPrinter_Delaborator_delabDIte___closed__1; static lean_object* l_Lean_PrettyPrinter_Delaborator_delabCond___closed__1; uint8_t lean_local_ctx_uses_user_name(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal_unresolveNameCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabProj___closed__2; static lean_object* l_Lean_PrettyPrinter_Delaborator_delabDoElems___lambda__3___closed__4; size_t lean_usize_add(size_t, size_t); @@ -111,7 +110,6 @@ lean_object* lean_array_uget(lean_object*, size_t); LEAN_EXPORT lean_object* l_panic___at_Lean_PrettyPrinter_Delaborator_delabMData___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_unexpandStructureInstance___spec__6___boxed(lean_object**); LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lean_PrettyPrinter_Delaborator_delabForall___spec__4(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__2(size_t, size_t, lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_delabLam___lambda__3___closed__2; lean_object* l_Lean_getPPAnalysisNamedArg___boxed(lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_delabAppExplicit___lambda__4___closed__10; @@ -120,12 +118,10 @@ static lean_object* l_Array_mapMUnsafe_map___at_Lean_PrettyPrinter_Delaborator_d lean_object* l_Lean_Expr_bindingDomain_x21(lean_object*); lean_object* l_Array_append___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_delabAppImplicit___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal___lambda__1___closed__1; static lean_object* l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_isRegularApp___spec__3___closed__2; static lean_object* l_Lean_PrettyPrinter_Delaborator_delabDIte___lambda__1___closed__1; static lean_object* l_Lean_PrettyPrinter_Delaborator_delabAppExplicit___lambda__4___closed__7; static lean_object* l_Lean_PrettyPrinter_Delaborator_delabFVar___closed__3; -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal_unresolveNameCore___spec__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_EXPORT lean_object* l___private_Lean_PrettyPrinter_Delaborator_Builtins_0__Lean_PrettyPrinter_Delaborator_delabPatterns(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at_Lean_PrettyPrinter_Delaborator_delabAppMatch___spec__11___closed__3; static lean_object* l_Lean_PrettyPrinter_Delaborator_delabDIte___closed__2; @@ -180,11 +176,11 @@ LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_shouldShowMotive___box static lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabFVar___closed__2; LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_SubExpr_withBindingBody___at___private_Lean_PrettyPrinter_Delaborator_Builtins_0__Lean_PrettyPrinter_Delaborator_delabPatterns_usingNamesAux___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_delabConst___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__1___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_delabLam___lambda__3___closed__3; LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_SubExpr_withBindingBody___at_Lean_PrettyPrinter_Delaborator_delabLetFun___spec__2___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_tailD___rarg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_SubExpr_Pos_pushNaryArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_withMDataOptions(lean_object*); static lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabFVar___closed__8; @@ -199,9 +195,7 @@ static lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabDIte___cl static lean_object* l_Lean_PrettyPrinter_Delaborator_delabLam___lambda__1___closed__3; LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_delabDoElems___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*); static lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabAppExplicit___closed__3; -LEAN_EXPORT lean_object* l_Lean_resolveGlobalName___at_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal_unresolveNameCore___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isApp(lean_object*); -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal_unresolveNameCore___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_isRegularApp___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*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_SubExpr_nextExtraPos___at_Lean_PrettyPrinter_Delaborator_unexpandStructureInstance___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabOfScientific___closed__5; @@ -225,7 +219,6 @@ static lean_object* l_Lean_PrettyPrinter_Delaborator_delabForall___closed__1; static lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabDo___closed__3; lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); -static lean_object* l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal_unresolveNameCore___spec__2___closed__1; LEAN_EXPORT lean_object* l_panic___at_Lean_PrettyPrinter_Delaborator_delabMData___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_reifyName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_delabAppImplicit___lambda__2___closed__4; @@ -274,7 +267,6 @@ static lean_object* l_Lean_PrettyPrinter_Delaborator_delabDo___lambda__1___close static lean_object* l_Lean_PrettyPrinter_Delaborator_delabAppMatch___lambda__4___closed__3; LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_SubExpr_withBindingBody___at_Lean_PrettyPrinter_Delaborator_delabLetFun___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_delabNamedPattern___closed__2; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__1(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_delabAppImplicit___lambda__4(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_delabAppExplicit___lambda__4___closed__2; lean_object* l_Lean_Expr_getRevArg_x21(lean_object*, lean_object*); @@ -308,6 +300,7 @@ static lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabLetE___cl LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_SubExpr_descend___at___private_Lean_PrettyPrinter_Delaborator_Builtins_0__Lean_PrettyPrinter_Delaborator_skippingBinders_loop_visitLambda___spec__2(lean_object*); static lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabBVar___closed__3; static lean_object* l_Lean_PrettyPrinter_Delaborator_delabLit___closed__2; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__7___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_delabAppMatch___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_panic___at_Lean_PrettyPrinter_Delaborator_delabMData___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabProj___closed__4; @@ -339,6 +332,7 @@ static lean_object* l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_i LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_delabDo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabCond(lean_object*); LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_delabOfScientific___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__6(size_t, size_t, lean_object*); static lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabLam___closed__5; static lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabNameMkStr___closed__4; lean_object* l_Lean_MapDeclarationExtension_find_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -359,6 +353,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_withLetDecl___at_Lean_PrettyPrinter_Delabor static lean_object* l_Lean_PrettyPrinter_Delaborator_unexpandRegularApp___closed__2; static lean_object* l_Lean_PrettyPrinter_Delaborator_unexpandStructureInstance___lambda__3___closed__13; lean_object* l_Lean_PrettyPrinter_Delaborator_withOptionAtCurrPos___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_PrettyPrinter_Delaborator_delabConst___lambda__1___closed__2; LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_delabFVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabNamedPattern(lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); @@ -368,7 +363,6 @@ static lean_object* l_Lean_PrettyPrinter_Delaborator_delabOfScientific___lambda_ LEAN_EXPORT lean_object* l___private_Lean_PrettyPrinter_Delaborator_Builtins_0__Lean_PrettyPrinter_Delaborator_delabBinders(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_delabMVar___closed__3; LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_PrettyPrinter_Delaborator_delabLam___spec__1(lean_object*, lean_object*, size_t, size_t); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__2___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_delabOfScientific___lambda__1___closed__5; LEAN_EXPORT lean_object* l_panic___at_Lean_PrettyPrinter_Delaborator_withMDataOptions___spec__9(lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); @@ -384,6 +378,7 @@ LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_isRegularApp___lambda_ static lean_object* l_Lean_PrettyPrinter_Delaborator_unexpandRegularApp___closed__1; uint8_t l_Lean_Syntax_matchesNull(lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_delabLit___closed__1; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__6___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_getPPFunBinderTypes(lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_SubExpr_withNaryArg___at_Lean_PrettyPrinter_Delaborator_isRegularApp___spec__2___closed__2; static lean_object* l_Lean_PrettyPrinter_Delaborator_delabOfScientific___lambda__2___closed__2; @@ -395,7 +390,6 @@ LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_SubExpr_withNaryArg___ LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_delabSigmaCore___lambda__2(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_panic___at_Lean_PrettyPrinter_Delaborator_delabMData___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_delabForall___lambda__2___closed__3; -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal_unresolveNameCore___spec__2___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_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_SubExpr_withAppFnArgs___at_Lean_PrettyPrinter_Delaborator_delabAppExplicit___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_panic___at_Lean_PrettyPrinter_Delaborator_withMDataOptions___spec__12___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_hasIdent___boxed(lean_object*, lean_object*); @@ -404,7 +398,6 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_PrettyPrinter_Delabora static lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabNameMkStr___closed__1; LEAN_EXPORT lean_object* l_panic___at_Lean_PrettyPrinter_Delaborator_withMDataOptions___spec__8(lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_delabSort___closed__14; -static lean_object* l_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_delabSigmaCore___lambda__3(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabAppImplicit(lean_object*); LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_unexpandStructureInstance___lambda__2(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -413,7 +406,6 @@ static lean_object* l_Lean_PrettyPrinter_Delaborator_delabAppMatch___lambda__6__ LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_delabAppMatch___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabCond___closed__5; static lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabDIte___closed__3; -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal___spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_delabMData___closed__1; static lean_object* l_Lean_PrettyPrinter_Delaborator_delabDoElems___lambda__3___closed__5; static lean_object* l_Lean_PrettyPrinter_Delaborator_delabAppImplicit___lambda__2___closed__1; @@ -424,7 +416,6 @@ static lean_object* l_Lean_PrettyPrinter_Delaborator_delabDo___closed__1; static lean_object* l_Lean_PrettyPrinter_Delaborator_delabAppExplicit___lambda__4___closed__9; static lean_object* l_Lean_PrettyPrinter_Delaborator_delabProjectionApp___closed__1; LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_SubExpr_withAppFnArgs___at_Lean_PrettyPrinter_Delaborator_delabAppMatch___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_SubExpr_withNaryArg___at_Lean_PrettyPrinter_Delaborator_isRegularApp___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_unexpandRegularApp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_delabSort___closed__7; @@ -434,6 +425,7 @@ static lean_object* l_Lean_PrettyPrinter_Delaborator_delabDoElems___lambda__2___ static lean_object* l_Lean_PrettyPrinter_Delaborator_delabSort___closed__15; LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_SubExpr_withAppArg___at___private_Lean_PrettyPrinter_Delaborator_Builtins_0__Lean_PrettyPrinter_Delaborator_delabPatterns___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_delabOfScientific___closed__2; +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_delabDoElems___closed__6; lean_object* l_Lean_Name_toString(lean_object*, uint8_t); LEAN_EXPORT lean_object* l___private_Lean_PrettyPrinter_Delaborator_Builtins_0__Lean_PrettyPrinter_Delaborator_delabPatterns_usingNames___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -474,6 +466,7 @@ static lean_object* l_Lean_PrettyPrinter_Delaborator_delabDoElems___lambda__1___ LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_PrettyPrinter_Delaborator_delabAppMatch___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Delaborator_addFieldInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_delabConst___lambda__1___closed__1; +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__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*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_delabLam___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_delabOfScientific___closed__1; lean_object* lean_instantiate_type_lparams(lean_object*, lean_object*); @@ -537,6 +530,7 @@ LEAN_EXPORT lean_object* l_panic___at_Lean_PrettyPrinter_Delaborator_withMDataOp lean_object* l_Lean_getStructureFields(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabMVar___closed__2; static lean_object* l_Lean_PrettyPrinter_Delaborator_delabDoElems___lambda__1___closed__2; +LEAN_EXPORT lean_object* l_Lean_resolveGlobalName___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_delabProj___closed__6; static lean_object* l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_isRegularApp___spec__3___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_PrettyPrinter_Delaborator_getParamKinds_forallTelescopeArgs___spec__2(lean_object*); @@ -550,6 +544,7 @@ static lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabAppMatch_ lean_object* l_Lean_KeyedDeclsAttribute_getValues___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_delabLam___lambda__1___closed__4; static lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabForall___closed__4; +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_delabAppExplicit___lambda__5___closed__1; LEAN_EXPORT lean_object* l_panic___at_Lean_PrettyPrinter_Delaborator_withMDataOptions___spec__6(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_PrettyPrinter_Delaborator_Builtins_0__Lean_PrettyPrinter_Delaborator_delabPatterns___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -582,6 +577,7 @@ LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_delabProjectionApp___l LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_SubExpr_withMDataExpr___at_Lean_PrettyPrinter_Delaborator_withMDataOptions___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_unexpandRegularApp___closed__3; lean_object* l_panic___at___private_Init_Prelude_0__Lean_assembleParts___spec__1(lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__5(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabMData(lean_object*); lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isConst(lean_object*); @@ -637,6 +633,7 @@ LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_delabLam(lean_object*, static lean_object* l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_unexpandStructureInstance___spec__2___closed__3; static lean_object* l_Lean_PrettyPrinter_Delaborator_delabBVar___closed__2; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_PrettyPrinter_Delaborator_delabAppMatch___spec__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__1___lambda__2(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabAppImplicit___closed__3; uint8_t l_Lean_Expr_isAutoParam(lean_object*); static lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabSigma___closed__3; @@ -668,7 +665,6 @@ LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_ParamKind_isRegularExp LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lean_PrettyPrinter_Delaborator_delabForall___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_unexpandStructureInstance___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_delabForall___lambda__1___closed__5; -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal_unresolveNameCore___spec__2___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*); static lean_object* l_Lean_PrettyPrinter_Delaborator_delabAppMatch___lambda__6___closed__12; lean_object* l_Lean_PrettyPrinter_Delaborator_isNonConstFun(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabSort___closed__2; @@ -703,12 +699,12 @@ static lean_object* l_Lean_PrettyPrinter_Delaborator_delabMVar___closed__1; lean_object* l_List_redLength___rarg(lean_object*); static lean_object* l_Array_mapIdxM_map___at___private_Lean_PrettyPrinter_Delaborator_Builtins_0__Lean_PrettyPrinter_Delaborator_delabPatterns___spec__5___closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_PrettyPrinter_Delaborator_unexpandStructureInstance___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__4___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_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_delabLetFun___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_delabOfNat___closed__2; LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lean_PrettyPrinter_Delaborator_delabForall___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_getPPStructureInstanceType___boxed(lean_object*); static lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabOfScientific___closed__4; -LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_delabDoElems_prependAndRec(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_PrettyPrinter_Delaborator_hasIdent(lean_object*, lean_object*); @@ -720,8 +716,6 @@ static lean_object* l_Lean_PrettyPrinter_Delaborator_delabMVar___closed__2; extern uint8_t l_instInhabitedBool; LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_delabAppMatch___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_delabDo___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_resolveGlobalName___at_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal_unresolveNameCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_delabDoElems___lambda__3___closed__3; lean_object* l_Lean_Syntax_getNumArgs(lean_object*); LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_delabAppMatch___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -736,11 +730,11 @@ static lean_object* l_Lean_PrettyPrinter_Delaborator_unexpandStructureInstance__ static lean_object* l_Lean_PrettyPrinter_Delaborator_delabMVar___closed__7; uint8_t lean_expr_eqv(lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_delabLam___lambda__3___closed__10; -LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal_unresolveNameCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabLam(lean_object*); static lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabDo___closed__1; LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_SubExpr_descend___at___private_Lean_PrettyPrinter_Delaborator_Builtins_0__Lean_PrettyPrinter_Delaborator_delabPatterns___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_delabNameMkStr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal_unresolveNameCore___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lean_PrettyPrinter_Delaborator_delabForall___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_maybeAddBlockImplicit___closed__5; LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_PrettyPrinter_Delaborator_getParamKinds_forallTelescopeArgs___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -779,8 +773,8 @@ static lean_object* l_Array_foldrMUnsafe_fold___at_Lean_PrettyPrinter_Delaborato static lean_object* l_Lean_PrettyPrinter_Delaborator_unexpandStructureInstance___lambda__3___closed__8; static lean_object* l_Lean_PrettyPrinter_Delaborator_delabLetE___closed__1; lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_instantiateForallAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabNameMkNum___closed__2; -LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal_unresolveNameCore___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_getPPAnalysisHole___boxed(lean_object*); static lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabSort___closed__3; lean_object* l_Lean_getPPInstanceTypes___boxed(lean_object*); @@ -792,17 +786,20 @@ LEAN_EXPORT lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabDIte LEAN_EXPORT lean_object* l___private_Lean_PrettyPrinter_Delaborator_Builtins_0__Lean_PrettyPrinter_Delaborator_delabBinders___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_panic___at_Lean_PrettyPrinter_Delaborator_delabMData___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_SubExpr_descend___at_Lean_PrettyPrinter_Delaborator_delabAppMatch___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__5___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*); static lean_object* l_panic___at_Lean_PrettyPrinter_Delaborator_delabAppMatch___spec__13___closed__1; lean_object* l_Lean_KVMap_insertCore(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal_unresolveNameCore___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__4___closed__1; LEAN_EXPORT lean_object* l_panic___at_Lean_PrettyPrinter_Delaborator_delabMData___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabNameMkNum___closed__1; LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_delabLetFun(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_getPPMotivesAll(lean_object*); LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_delabLit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_panic___at_Lean_PrettyPrinter_Delaborator_delabAppMatch___spec__5(lean_object*); +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getPPMatch___boxed(lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_delabLetE___closed__2; +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal_unresolveNameCore___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_delabOfScientific___lambda__1___closed__2; static lean_object* l_Lean_PrettyPrinter_Delaborator_unexpandStructureInstance___lambda__3___closed__4; static lean_object* l_Lean_PrettyPrinter_Delaborator_delabAppExplicit___lambda__5___closed__3; @@ -814,7 +811,6 @@ lean_object* l_Lean_getPPStructureInstances___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_delabAppMatch(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_PrettyPrinter_Delaborator_delabAppImplicit___spec__5(lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_delabNameMkNum(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_SubExpr_nextExtraPos___at_Lean_PrettyPrinter_Delaborator_unexpandStructureInstance___spec__1___boxed(lean_object*); lean_object* l_Lean_getPPUniverses___boxed(lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_delabSigmaCore___lambda__1___closed__3; @@ -824,6 +820,7 @@ lean_object* l_Array_ofSubarray___rarg(lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_delabProj___closed__2; static lean_object* l_Lean_PrettyPrinter_Delaborator_delabBVar___closed__3; LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_delabOfScientific___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal_unresolveNameCore___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_panic___at_Lean_PrettyPrinter_Delaborator_delabFVar___spec__1___closed__1; LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_delabDoElems___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabMData___closed__3; @@ -832,6 +829,7 @@ static lean_object* l_Lean_PrettyPrinter_Delaborator_SubExpr_withMDataExpr___at_ lean_object* l_Lean_Syntax_mkNameLit(lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_delabAppMatch___lambda__6___closed__2; static lean_object* l_Lean_PrettyPrinter_Delaborator_delabLetFun___lambda__1___closed__13; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__7(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_delabNameMkStr___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getPPExplicit___boxed(lean_object*); static lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabLit___closed__5; @@ -870,6 +868,7 @@ static lean_object* l_Lean_PrettyPrinter_Delaborator_delabDoElems___lambda__6___ static lean_object* l_Lean_PrettyPrinter_Delaborator_delabLam___lambda__3___closed__12; lean_object* lean_panic_fn(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabCond___closed__4; +LEAN_EXPORT lean_object* l_Lean_resolveGlobalName___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_delabAppMatch___lambda__6___closed__1; LEAN_EXPORT lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabBVar(lean_object*); LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_delabAppExplicit___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -890,6 +889,7 @@ uint8_t l_Lean_Expr_binderInfo(lean_object*); uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_unexpandStructureInstance___spec__2___closed__1; static lean_object* l_panic___at_Lean_PrettyPrinter_Delaborator_withMDataOptions___spec__3___rarg___closed__1; +static lean_object* l_Lean_PrettyPrinter_Delaborator_delabConst___closed__15; static lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabPSigma___closed__1; LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_AppMatchState_discrs___default; static lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabMVar___closed__5; @@ -925,6 +925,7 @@ LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lean_PrettyPrinter_Delab LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_SubExpr_withAppFnArgs___at___private_Lean_PrettyPrinter_Delaborator_Builtins_0__Lean_PrettyPrinter_Delaborator_delabPatterns___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_delabSort___closed__11; +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal_unresolveNameCore___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabBVar___closed__1; static lean_object* l_Lean_PrettyPrinter_Delaborator_delabDoElems___lambda__3___closed__7; LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_delabPSigma(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -944,6 +945,7 @@ uint8_t l_Lean_getPPMotivesNonConst(lean_object*); static lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabProjectionApp___closed__2; lean_object* l_ReaderT_pure___at_Lean_PrettyPrinter_Delaborator_instMonadQuotationDelabM___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_PrettyPrinter_Delaborator_Builtins_0__Lean_PrettyPrinter_Delaborator_skippingBinders_loop___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_EXPORT lean_object* l_Lean_unresolveNameGlobal___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__1___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_PrettyPrinter_Delaborator_SubExpr_HoleIterator_next(lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_unexpandStructureInstance___lambda__3___closed__10; static lean_object* l_Lean_PrettyPrinter_Delaborator_SubExpr_withNaryArg___at_Lean_PrettyPrinter_Delaborator_isRegularApp___spec__2___closed__3; @@ -951,9 +953,11 @@ static lean_object* l___private_Lean_PrettyPrinter_Delaborator_Builtins_0__Lean_ static lean_object* l___private_Lean_PrettyPrinter_Delaborator_Builtins_0__Lean_PrettyPrinter_Delaborator_skippingBinders_loop___rarg___lambda__1___closed__1; uint8_t l_List_isEmpty___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_delabAppFn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__4___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*); static lean_object* l_Lean_PrettyPrinter_Delaborator_maybeAddBlockImplicit___closed__2; static lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabAppImplicit___closed__2; lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_lambdaTelescopeImp___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_unresolveNameGlobal___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__1___lambda__1___closed__1; static lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabLit___closed__4; static lean_object* l_Lean_PrettyPrinter_Delaborator_delabAppExplicit___closed__4; LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_SubExpr_withAppFn___at_Lean_PrettyPrinter_Delaborator_delabLetFun___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1031,7 +1035,6 @@ static lean_object* l_Lean_PrettyPrinter_Delaborator_isRegularApp___lambda__3___ static lean_object* l_Lean_PrettyPrinter_Delaborator_delabConst___closed__9; static lean_object* l_Lean_PrettyPrinter_Delaborator_delabConst___closed__8; static lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabForall___closed__5; -LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_panic___at_Lean_PrettyPrinter_Delaborator_delabProj___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabLit___closed__2; LEAN_EXPORT lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabProjectionApp(lean_object*); @@ -2695,7 +2698,7 @@ x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); return x_6; } } -LEAN_EXPORT lean_object* l_Lean_resolveGlobalName___at_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal_unresolveNameCore___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_EXPORT lean_object* l_Lean_resolveGlobalName___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__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; uint8_t x_10; @@ -2741,12 +2744,12 @@ return x_22; } } } -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal_unresolveNameCore___spec__2___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_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__4___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) { _start: { lean_object* x_13; lean_object* x_14; lean_inc(x_3); -x_13 = l_Lean_resolveGlobalName___at_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal_unresolveNameCore___spec__1(x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_13 = l_Lean_resolveGlobalName___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__3(x_3, 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); if (lean_obj_tag(x_14) == 0) @@ -2942,7 +2945,7 @@ return x_61; } } } -static lean_object* _init_l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal_unresolveNameCore___spec__2___closed__1() { +static lean_object* _init_l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__4___closed__1() { _start: { lean_object* x_1; lean_object* x_2; @@ -2952,7 +2955,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal_unresolveNameCore___spec__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, lean_object* x_14) { +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__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, lean_object* x_13, lean_object* x_14) { _start: { uint8_t x_15; @@ -2986,7 +2989,7 @@ if (x_22 == 0) lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; x_23 = lean_ctor_get(x_20, 1); lean_dec(x_23); -x_24 = l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal_unresolveNameCore___spec__2___closed__1; +x_24 = l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__4___closed__1; x_25 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_25, 0, x_24); lean_ctor_set(x_25, 1, x_20); @@ -3004,7 +3007,7 @@ lean_dec(x_20); x_28 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_28, 0, x_27); lean_ctor_set(x_28, 1, x_21); -x_29 = l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal_unresolveNameCore___spec__2___closed__1; +x_29 = l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__4___closed__1; x_30 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_30, 0, x_29); lean_ctor_set(x_30, 1, x_28); @@ -3030,7 +3033,7 @@ lean_dec(x_33); x_36 = lean_box(0); lean_inc(x_12); lean_inc(x_2); -x_37 = l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal_unresolveNameCore___spec__2___lambda__1(x_2, x_1, x_35, x_34, x_36, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +x_37 = l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__4___lambda__1(x_2, x_1, x_35, x_34, x_36, x_8, x_9, x_10, x_11, x_12, x_13, x_14); x_38 = lean_ctor_get(x_37, 0); lean_inc(x_38); if (lean_obj_tag(x_38) == 0) @@ -3113,7 +3116,7 @@ return x_50; } } } -LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal_unresolveNameCore___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_EXPORT lean_object* l_Lean_unresolveNameGlobal_unresolveNameCore___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__2___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) { _start: { lean_object* x_10; @@ -3123,7 +3126,7 @@ lean_ctor_set(x_10, 1, x_9); return x_10; } } -LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal_unresolveNameCore(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_EXPORT lean_object* l_Lean_unresolveNameGlobal_unresolveNameCore___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__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) { _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; @@ -3140,7 +3143,7 @@ lean_ctor_set(x_16, 0, x_13); lean_ctor_set(x_16, 1, x_15); x_17 = lean_unsigned_to_nat(1u); lean_inc(x_12); -x_18 = l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal_unresolveNameCore___spec__2(x_1, x_13, x_12, x_11, x_12, x_17, x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_18 = l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__4(x_1, x_13, x_12, x_11, x_12, x_17, x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_12); x_19 = lean_ctor_get(x_18, 0); lean_inc(x_19); @@ -3203,80 +3206,7 @@ return x_30; } } } -LEAN_EXPORT lean_object* l_Lean_resolveGlobalName___at_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal_unresolveNameCore___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_resolveGlobalName___at_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal_unresolveNameCore___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_9; -} -} -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal_unresolveNameCore___spec__2___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: -{ -lean_object* x_13; -x_13 = l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal_unresolveNameCore___spec__2___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); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_2); -return x_13; -} -} -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal_unresolveNameCore___spec__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* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { -_start: -{ -lean_object* x_15; -x_15 = l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal_unresolveNameCore___spec__2(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, x_14); -lean_dec(x_13); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_1); -return x_15; -} -} -LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal_unresolveNameCore___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) { -_start: -{ -lean_object* x_10; -x_10 = l_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal_unresolveNameCore___lambda__1(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); -return x_10; -} -} -LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal_unresolveNameCore___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_PrettyPrinter_Delaborator_unresolveNameGlobal_unresolveNameCore(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_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_10; -} -} -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t 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_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t 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: { uint8_t x_14; @@ -3297,7 +3227,7 @@ lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_dec(x_6); x_16 = lean_array_uget(x_3, x_5); lean_inc(x_11); -x_17 = l_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal_unresolveNameCore(x_1, x_16, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_17 = l_Lean_unresolveNameGlobal_unresolveNameCore___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__2(x_1, x_16, x_7, x_8, x_9, x_10, x_11, x_12, x_13); x_18 = lean_ctor_get(x_17, 0); lean_inc(x_18); if (lean_obj_tag(x_18) == 0) @@ -3391,7 +3321,7 @@ return x_38; } } } -static lean_object* _init_l_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal___lambda__1___closed__1() { +static lean_object* _init_l_Lean_unresolveNameGlobal___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__1___lambda__1___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -3403,7 +3333,7 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal___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_EXPORT lean_object* l_Lean_unresolveNameGlobal___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__1___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) { _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; size_t x_22; size_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; @@ -3430,8 +3360,8 @@ x_21 = lean_array_get_size(x_20); x_22 = lean_usize_of_nat(x_21); lean_dec(x_21); x_23 = 0; -x_24 = l_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal___lambda__1___closed__1; -x_25 = l_Array_forInUnsafe_loop___at_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal___spec__1(x_1, x_24, x_20, x_22, x_23, x_24, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +x_24 = l_Lean_unresolveNameGlobal___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__1___lambda__1___closed__1; +x_25 = l_Array_forInUnsafe_loop___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__5(x_1, x_24, x_20, x_22, x_23, x_24, x_3, x_4, x_5, x_6, x_7, x_8, x_12); lean_dec(x_20); x_26 = lean_ctor_get(x_25, 0); lean_inc(x_26); @@ -3495,277 +3425,184 @@ return x_37; } } } -static lean_object* _init_l_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal___lambda__2___closed__1() { +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__1___lambda__2(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, lean_object* x_9, lean_object* x_10) { _start: { -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_getPPFullNames___boxed), 1, 0); -return x_1; -} -} -LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal___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) { -_start: +lean_dec(x_3); +if (x_1 == 0) { -lean_object* x_10; lean_object* x_11; -lean_dec(x_2); -x_10 = l_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal___lambda__2___closed__1; -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_11 = l_Lean_PrettyPrinter_Delaborator_getPPOption(x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_11) == 0) -{ -lean_object* x_12; uint8_t x_13; -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_unbox(x_12); -lean_dec(x_12); -if (x_13 == 0) -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_11, 1); -lean_inc(x_14); -lean_dec(x_11); -x_15 = lean_box(0); -x_16 = l_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal___lambda__1(x_1, x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_14); -lean_dec(x_8); +lean_object* x_11; lean_object* x_12; +x_11 = lean_box(0); +x_12 = l_Lean_unresolveNameGlobal___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__1___lambda__1(x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -return x_16; +return x_12; } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_11, 1); -lean_inc(x_17); -lean_dec(x_11); -lean_inc(x_1); -x_18 = l_Lean_resolveGlobalName___at_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal_unresolveNameCore___spec__1(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_17); -lean_dec(x_8); +lean_object* x_13; lean_object* x_14; +lean_inc(x_2); +x_13 = l_Lean_resolveGlobalName___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__3(x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -if (lean_obj_tag(x_19) == 0) +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +if (lean_obj_tag(x_14) == 0) { -uint8_t x_20; -x_20 = !lean_is_exclusive(x_18); -if (x_20 == 0) +uint8_t x_15; +x_15 = !lean_is_exclusive(x_13); +if (x_15 == 0) { -lean_object* x_21; -x_21 = lean_ctor_get(x_18, 0); -lean_dec(x_21); -lean_ctor_set(x_18, 0, x_1); +lean_object* x_16; +x_16 = lean_ctor_get(x_13, 0); +lean_dec(x_16); +lean_ctor_set(x_13, 0, x_2); +return x_13; +} +else +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_13, 1); +lean_inc(x_17); +lean_dec(x_13); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_2); +lean_ctor_set(x_18, 1, x_17); return x_18; } -else -{ -lean_object* x_22; lean_object* x_23; -x_22 = lean_ctor_get(x_18, 1); -lean_inc(x_22); -lean_dec(x_18); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_1); -lean_ctor_set(x_23, 1, x_22); -return x_23; -} } else { -lean_object* x_24; lean_object* x_25; -x_24 = lean_ctor_get(x_19, 0); -lean_inc(x_24); -x_25 = lean_ctor_get(x_19, 1); -lean_inc(x_25); +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_14, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_14, 1); +lean_inc(x_20); +lean_dec(x_14); +if (lean_obj_tag(x_20) == 0) +{ +uint8_t x_21; +x_21 = !lean_is_exclusive(x_13); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_22 = lean_ctor_get(x_13, 0); +lean_dec(x_22); +x_23 = lean_ctor_get(x_19, 0); +lean_inc(x_23); lean_dec(x_19); -if (lean_obj_tag(x_25) == 0) +x_24 = lean_name_eq(x_23, x_2); +lean_dec(x_23); +if (x_24 == 0) { -uint8_t x_26; -x_26 = !lean_is_exclusive(x_18); -if (x_26 == 0) +lean_object* x_25; lean_object* x_26; +x_25 = l_Lean_rootNamespace; +x_26 = l_Lean_Name_append(x_25, x_2); +lean_ctor_set(x_13, 0, x_26); +return x_13; +} +else +{ +lean_ctor_set(x_13, 0, x_2); +return x_13; +} +} +else { lean_object* x_27; lean_object* x_28; uint8_t x_29; -x_27 = lean_ctor_get(x_18, 0); -lean_dec(x_27); -x_28 = lean_ctor_get(x_24, 0); +x_27 = lean_ctor_get(x_13, 1); +lean_inc(x_27); +lean_dec(x_13); +x_28 = lean_ctor_get(x_19, 0); lean_inc(x_28); -lean_dec(x_24); -x_29 = lean_name_eq(x_28, x_1); +lean_dec(x_19); +x_29 = lean_name_eq(x_28, x_2); lean_dec(x_28); if (x_29 == 0) { -lean_object* x_30; lean_object* x_31; +lean_object* x_30; lean_object* x_31; lean_object* x_32; x_30 = l_Lean_rootNamespace; -x_31 = l_Lean_Name_append(x_30, x_1); -lean_ctor_set(x_18, 0, x_31); -return x_18; +x_31 = l_Lean_Name_append(x_30, x_2); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_32, 1, x_27); +return x_32; } else { -lean_ctor_set(x_18, 0, x_1); -return x_18; +lean_object* x_33; +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_2); +lean_ctor_set(x_33, 1, x_27); +return x_33; +} } } else { -lean_object* x_32; lean_object* x_33; uint8_t x_34; -x_32 = lean_ctor_get(x_18, 1); -lean_inc(x_32); -lean_dec(x_18); -x_33 = lean_ctor_get(x_24, 0); -lean_inc(x_33); -lean_dec(x_24); -x_34 = lean_name_eq(x_33, x_1); -lean_dec(x_33); +uint8_t x_34; +lean_dec(x_20); +lean_dec(x_19); +x_34 = !lean_is_exclusive(x_13); if (x_34 == 0) { -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = l_Lean_rootNamespace; -x_36 = l_Lean_Name_append(x_35, x_1); +lean_object* x_35; +x_35 = lean_ctor_get(x_13, 0); +lean_dec(x_35); +lean_ctor_set(x_13, 0, x_2); +return x_13; +} +else +{ +lean_object* x_36; lean_object* x_37; +x_36 = lean_ctor_get(x_13, 1); +lean_inc(x_36); +lean_dec(x_13); x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_32); +lean_ctor_set(x_37, 0, x_2); +lean_ctor_set(x_37, 1, x_36); return x_37; } -else -{ -lean_object* x_38; -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_1); -lean_ctor_set(x_38, 1, x_32); -return x_38; -} -} -} -else -{ -uint8_t x_39; -lean_dec(x_25); -lean_dec(x_24); -x_39 = !lean_is_exclusive(x_18); -if (x_39 == 0) -{ -lean_object* x_40; -x_40 = lean_ctor_get(x_18, 0); -lean_dec(x_40); -lean_ctor_set(x_18, 0, x_1); -return x_18; -} -else -{ -lean_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_18, 1); -lean_inc(x_41); -lean_dec(x_18); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_1); -lean_ctor_set(x_42, 1, x_41); -return x_42; } } } } } -else -{ -uint8_t x_43; -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_43 = !lean_is_exclusive(x_11); -if (x_43 == 0) -{ -return x_11; -} -else -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_11, 0); -x_45 = lean_ctor_get(x_11, 1); -lean_inc(x_45); -lean_inc(x_44); -lean_dec(x_11); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_44); -lean_ctor_set(x_46, 1, x_45); -return x_46; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal(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_EXPORT lean_object* l_Lean_unresolveNameGlobal___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__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) { _start: { -uint8_t x_9; -x_9 = l_Lean_Name_hasMacroScopes(x_1); -if (x_9 == 0) +uint8_t x_10; +x_10 = l_Lean_Name_hasMacroScopes(x_1); +if (x_10 == 0) { -lean_object* x_10; lean_object* x_11; -x_10 = lean_box(0); -x_11 = l_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal___lambda__2(x_1, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -return x_11; -} -else -{ -lean_object* x_12; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_1); -lean_ctor_set(x_12, 1, x_8); +lean_object* x_11; lean_object* x_12; +x_11 = lean_box(0); +x_12 = l_Lean_unresolveNameGlobal___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__1___lambda__2(x_2, x_1, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_12; } -} -} -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal___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, lean_object* x_12, lean_object* x_13) { -_start: +else { -size_t x_14; size_t x_15; lean_object* x_16; -x_14 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_15 = lean_unbox_usize(x_5); -lean_dec(x_5); -x_16 = l_Array_forInUnsafe_loop___at_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal___spec__1(x_1, x_2, x_3, x_14, x_15, 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_9); +lean_object* x_13; lean_dec(x_8); lean_dec(x_7); -lean_dec(x_3); -lean_dec(x_1); -return x_16; -} -} -LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal___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) { -_start: -{ -lean_object* x_10; -x_10 = l_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal___lambda__1(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_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_2); -return x_10; +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_1); +lean_ctor_set(x_13, 1, x_9); +return x_13; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__1(size_t x_1, size_t x_2, lean_object* x_3) { +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__6(size_t x_1, size_t x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -3790,7 +3627,7 @@ goto _start; } } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__2(size_t x_1, size_t x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__7(size_t x_1, size_t x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -3822,6 +3659,14 @@ x_1 = lean_alloc_closure((void*)(l_Lean_getPPTagAppFns___boxed), 1, 0); return x_1; } } +static lean_object* _init_l_Lean_PrettyPrinter_Delaborator_delabConst___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_unresolveNameGlobal_unresolveNameCore___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__2___lambda__1___boxed), 9, 0); +return x_1; +} +} LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_delabConst___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) { _start: { @@ -3851,99 +3696,58 @@ lean_inc(x_3); x_14 = l_Lean_PrettyPrinter_Delaborator_getPPOption(x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_12); if (lean_obj_tag(x_14) == 0) { -lean_object* x_15; uint8_t x_16; +lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; x_15 = lean_ctor_get(x_14, 0); lean_inc(x_15); -x_16 = lean_unbox(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = l_Lean_PrettyPrinter_Delaborator_delabConst___lambda__1___closed__2; +x_18 = lean_unbox(x_15); lean_dec(x_15); -if (x_16 == 0) -{ -uint8_t x_17; -lean_dec(x_8); -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_14); -if (x_17 == 0) -{ -lean_object* x_18; -x_18 = lean_ctor_get(x_14, 0); -lean_dec(x_18); -lean_ctor_set(x_14, 0, x_11); -return x_14; -} -else +if (x_18 == 0) { lean_object* x_19; lean_object* x_20; -x_19 = lean_ctor_get(x_14, 1); -lean_inc(x_19); -lean_dec(x_14); -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_11); -lean_ctor_set(x_20, 1, x_19); +x_19 = lean_box(0); +x_20 = lean_apply_9(x_17, x_11, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_16); return x_20; } -} else { -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; uint8_t x_31; lean_object* x_32; uint8_t x_33; -x_21 = lean_ctor_get(x_14, 1); -lean_inc(x_21); -lean_dec(x_14); -x_22 = l_Lean_PrettyPrinter_Delaborator_annotateCurPos(x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_21); -x_23 = lean_ctor_get(x_22, 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; uint8_t x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_21 = l_Lean_PrettyPrinter_Delaborator_annotateCurPos(x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_16); +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_21, 1); lean_inc(x_23); -x_24 = lean_ctor_get(x_22, 1); -lean_inc(x_24); -lean_dec(x_22); -x_25 = l_Lean_PrettyPrinter_Delaborator_SubExpr_getPos___at_Lean_PrettyPrinter_Delaborator_getOptionsAtCurrPos___spec__1(x_3, x_4, x_5, x_6, x_7, x_8, x_24); -x_26 = lean_ctor_get(x_25, 0); +lean_dec(x_21); +x_24 = l_Lean_PrettyPrinter_Delaborator_SubExpr_getPos___at_Lean_PrettyPrinter_Delaborator_getOptionsAtCurrPos___spec__1(x_3, x_4, x_5, x_6, x_7, x_8, x_23); +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); lean_inc(x_26); -x_27 = lean_ctor_get(x_25, 1); -lean_inc(x_27); -lean_dec(x_25); -x_28 = l_Lean_PrettyPrinter_Delaborator_SubExpr_getExpr___at_Lean_PrettyPrinter_Delaborator_getExprKind___spec__1(x_3, x_4, x_5, x_6, x_7, x_8, x_27); -x_29 = lean_ctor_get(x_28, 0); +lean_dec(x_24); +x_27 = l_Lean_PrettyPrinter_Delaborator_SubExpr_getExpr___at_Lean_PrettyPrinter_Delaborator_getExprKind___spec__1(x_3, x_4, x_5, x_6, x_7, x_8, x_26); +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_27, 1); lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); -lean_inc(x_30); -lean_dec(x_28); -x_31 = 0; -lean_inc(x_23); -x_32 = l_Lean_PrettyPrinter_Delaborator_addTermInfo(x_26, x_23, x_29, x_31, x_3, x_4, x_5, x_6, x_7, x_8, x_30); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_33 = !lean_is_exclusive(x_32); -if (x_33 == 0) -{ -lean_object* x_34; -x_34 = lean_ctor_get(x_32, 0); -lean_dec(x_34); -lean_ctor_set(x_32, 0, x_23); -return x_32; -} -else -{ -lean_object* x_35; lean_object* x_36; -x_35 = lean_ctor_get(x_32, 1); -lean_inc(x_35); -lean_dec(x_32); -x_36 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_36, 0, x_23); -lean_ctor_set(x_36, 1, x_35); -return x_36; -} +lean_dec(x_27); +x_30 = 0; +lean_inc(x_22); +x_31 = l_Lean_PrettyPrinter_Delaborator_addTermInfo(x_25, x_22, x_28, x_30, x_3, x_4, x_5, x_6, x_7, x_8, x_29); +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_31, 1); +lean_inc(x_33); +lean_dec(x_31); +x_34 = lean_apply_9(x_17, x_22, x_32, x_3, x_4, x_5, x_6, x_7, x_8, x_33); +return x_34; } } else { -uint8_t x_37; +uint8_t x_35; lean_dec(x_11); lean_dec(x_8); lean_dec(x_7); @@ -3951,52 +3755,52 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_37 = !lean_is_exclusive(x_14); -if (x_37 == 0) +x_35 = !lean_is_exclusive(x_14); +if (x_35 == 0) { return x_14; } else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_14, 0); -x_39 = lean_ctor_get(x_14, 1); -lean_inc(x_39); -lean_inc(x_38); +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_14, 0); +x_37 = lean_ctor_get(x_14, 1); +lean_inc(x_37); +lean_inc(x_36); lean_dec(x_14); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -return x_40; +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +return x_38; } } } else { -uint8_t x_41; +uint8_t x_39; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_41 = !lean_is_exclusive(x_10); -if (x_41 == 0) +x_39 = !lean_is_exclusive(x_10); +if (x_39 == 0) { return x_10; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; -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_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_10, 0); +x_41 = lean_ctor_get(x_10, 1); +lean_inc(x_41); +lean_inc(x_40); lean_dec(x_10); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -return x_44; +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; } } } @@ -4025,7 +3829,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_PrettyPrinter_Delaborator_delabFVar___closed__1; x_2 = l_Lean_PrettyPrinter_Delaborator_delabConst___closed__1; -x_3 = lean_unsigned_to_nat(90u); +x_3 = lean_unsigned_to_nat(64u); x_4 = lean_unsigned_to_nat(35u); x_5 = l_Lean_PrettyPrinter_Delaborator_delabFVar___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -4137,6 +3941,14 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } +static lean_object* _init_l_Lean_PrettyPrinter_Delaborator_delabConst___closed__15() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_getPPFullNames___boxed), 1, 0); +return x_1; +} +} LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_delabConst(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: { @@ -4165,12 +3977,20 @@ lean_inc(x_1); x_14 = l_Lean_PrettyPrinter_Delaborator_getPPOption(x_13, x_1, x_2, x_3, x_4, x_5, x_6, x_10); if (lean_obj_tag(x_14) == 0) { -lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_87; +lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_85; lean_object* x_86; uint8_t x_87; 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_85 = l_Lean_PrettyPrinter_Delaborator_delabConst___closed__15; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_86 = l_Lean_PrettyPrinter_Delaborator_getPPOption(x_85, x_1, x_2, x_3, x_4, x_5, x_6, x_16); x_87 = lean_unbox(x_15); lean_dec(x_15); if (x_87 == 0) @@ -4180,28 +4000,156 @@ lean_inc(x_11); x_88 = lean_private_to_user_name(x_11); if (lean_obj_tag(x_88) == 0) { -x_17 = x_11; -goto block_86; -} -else +if (lean_obj_tag(x_86) == 0) { -lean_object* x_89; -lean_dec(x_11); -x_89 = lean_ctor_get(x_88, 0); +lean_object* x_89; lean_object* x_90; uint8_t x_91; +x_89 = lean_ctor_get(x_86, 0); lean_inc(x_89); -lean_dec(x_88); -x_17 = x_89; -goto block_86; +x_90 = lean_ctor_get(x_86, 1); +lean_inc(x_90); +lean_dec(x_86); +x_91 = lean_unbox(x_89); +lean_dec(x_89); +x_17 = x_11; +x_18 = x_91; +x_19 = x_90; +goto block_84; +} +else +{ +uint8_t x_92; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_92 = !lean_is_exclusive(x_86); +if (x_92 == 0) +{ +return x_86; +} +else +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_86, 0); +x_94 = lean_ctor_get(x_86, 1); +lean_inc(x_94); +lean_inc(x_93); +lean_dec(x_86); +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; +} } } else { -x_17 = x_11; -goto block_86; -} -block_86: +lean_dec(x_11); +if (lean_obj_tag(x_86) == 0) { -lean_object* x_18; +lean_object* x_96; lean_object* x_97; lean_object* x_98; uint8_t x_99; +x_96 = lean_ctor_get(x_88, 0); +lean_inc(x_96); +lean_dec(x_88); +x_97 = lean_ctor_get(x_86, 0); +lean_inc(x_97); +x_98 = lean_ctor_get(x_86, 1); +lean_inc(x_98); +lean_dec(x_86); +x_99 = lean_unbox(x_97); +lean_dec(x_97); +x_17 = x_96; +x_18 = x_99; +x_19 = x_98; +goto block_84; +} +else +{ +uint8_t x_100; +lean_dec(x_88); +lean_dec(x_12); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_100 = !lean_is_exclusive(x_86); +if (x_100 == 0) +{ +return x_86; +} +else +{ +lean_object* x_101; lean_object* x_102; lean_object* x_103; +x_101 = lean_ctor_get(x_86, 0); +x_102 = lean_ctor_get(x_86, 1); +lean_inc(x_102); +lean_inc(x_101); +lean_dec(x_86); +x_103 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_103, 0, x_101); +lean_ctor_set(x_103, 1, x_102); +return x_103; +} +} +} +} +else +{ +if (lean_obj_tag(x_86) == 0) +{ +lean_object* x_104; lean_object* x_105; uint8_t x_106; +x_104 = lean_ctor_get(x_86, 0); +lean_inc(x_104); +x_105 = lean_ctor_get(x_86, 1); +lean_inc(x_105); +lean_dec(x_86); +x_106 = lean_unbox(x_104); +lean_dec(x_104); +x_17 = x_11; +x_18 = x_106; +x_19 = x_105; +goto block_84; +} +else +{ +uint8_t x_107; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_107 = !lean_is_exclusive(x_86); +if (x_107 == 0) +{ +return x_86; +} +else +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; +x_108 = lean_ctor_get(x_86, 0); +x_109 = lean_ctor_get(x_86, 1); +lean_inc(x_109); +lean_inc(x_108); +lean_dec(x_86); +x_110 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_110, 0, x_108); +lean_ctor_set(x_110, 1, x_109); +return x_110; +} +} +} +block_84: +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); @@ -4209,174 +4157,171 @@ lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); lean_inc(x_17); -x_18 = l_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal(x_17, x_1, x_2, x_3, x_4, x_5, x_6, x_16); -if (lean_obj_tag(x_18) == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); -lean_inc(x_20); -lean_dec(x_18); -x_21 = l_Lean_PrettyPrinter_Delaborator_delabConst___closed__4; +x_20 = l_Lean_unresolveNameGlobal___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__1(x_17, x_18, x_1, x_2, x_3, x_4, x_5, x_6, x_19); +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +lean_dec(x_20); +x_23 = l_Lean_PrettyPrinter_Delaborator_delabConst___closed__4; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_22 = l_Lean_PrettyPrinter_Delaborator_getPPOption(x_21, x_1, x_2, x_3, x_4, x_5, x_6, x_20); -if (lean_obj_tag(x_22) == 0) +x_24 = l_Lean_PrettyPrinter_Delaborator_getPPOption(x_23, x_1, x_2, x_3, x_4, x_5, x_6, x_22); +if (lean_obj_tag(x_24) == 0) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_42; -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); -x_25 = l_Lean_PrettyPrinter_Delaborator_delabConst___closed__5; -x_42 = l_List_isEmpty___rarg(x_12); -if (x_42 == 0) +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_44; +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +x_27 = l_Lean_PrettyPrinter_Delaborator_delabConst___closed__5; +x_44 = l_List_isEmpty___rarg(x_12); +if (x_44 == 0) { -uint8_t x_43; -x_43 = lean_unbox(x_23); -lean_dec(x_23); -if (x_43 == 0) +uint8_t x_45; +x_45 = lean_unbox(x_25); +lean_dec(x_25); +if (x_45 == 0) { -lean_object* x_44; +lean_object* x_46; lean_dec(x_12); -x_44 = lean_box(0); -x_26 = x_44; -goto block_41; +x_46 = lean_box(0); +x_28 = x_46; +goto block_43; } else { -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; size_t x_55; size_t x_56; lean_object* x_57; lean_object* x_58; size_t 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_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; size_t x_57; size_t x_58; lean_object* x_59; lean_object* x_60; size_t 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_dec(x_17); lean_inc(x_5); -x_45 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_PrettyPrinter_Delaborator_delab___spec__3___rarg(x_5, x_6, x_24); -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); -lean_inc(x_19); -x_48 = lean_mk_syntax_ident(x_19); -x_49 = l_Lean_PrettyPrinter_Delaborator_delabConst___closed__10; -lean_inc(x_46); -x_50 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_50, 0, x_46); -lean_ctor_set(x_50, 1, x_49); -x_51 = l_List_redLength___rarg(x_12); -x_52 = lean_mk_empty_array_with_capacity(x_51); -lean_dec(x_51); -x_53 = l_List_toArrayAux___rarg(x_12, x_52); -x_54 = lean_array_get_size(x_53); -x_55 = lean_usize_of_nat(x_54); -lean_dec(x_54); -x_56 = 0; -x_57 = l_Array_mapMUnsafe_map___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__1(x_55, x_56, x_53); -x_58 = lean_array_get_size(x_57); -x_59 = lean_usize_of_nat(x_58); -lean_dec(x_58); -x_60 = l_Array_mapMUnsafe_map___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__2(x_59, x_56, x_57); -x_61 = l_Lean_PrettyPrinter_Delaborator_delabConst___closed__12; -x_62 = l_Lean_mkSepArray(x_60, x_61); +x_47 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_PrettyPrinter_Delaborator_delab___spec__3___rarg(x_5, x_6, x_26); +x_48 = lean_ctor_get(x_47, 0); +lean_inc(x_48); +x_49 = lean_ctor_get(x_47, 1); +lean_inc(x_49); +lean_dec(x_47); +lean_inc(x_21); +x_50 = lean_mk_syntax_ident(x_21); +x_51 = l_Lean_PrettyPrinter_Delaborator_delabConst___closed__10; +lean_inc(x_48); +x_52 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_52, 0, x_48); +lean_ctor_set(x_52, 1, x_51); +x_53 = l_List_redLength___rarg(x_12); +x_54 = lean_mk_empty_array_with_capacity(x_53); +lean_dec(x_53); +x_55 = l_List_toArrayAux___rarg(x_12, x_54); +x_56 = lean_array_get_size(x_55); +x_57 = lean_usize_of_nat(x_56); +lean_dec(x_56); +x_58 = 0; +x_59 = l_Array_mapMUnsafe_map___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__6(x_57, x_58, x_55); +x_60 = lean_array_get_size(x_59); +x_61 = lean_usize_of_nat(x_60); lean_dec(x_60); -x_63 = l_Lean_PrettyPrinter_Delaborator_delabSort___closed__12; -x_64 = l_Array_append___rarg(x_63, x_62); -x_65 = l_Lean_PrettyPrinter_Delaborator_delabSort___closed__11; -lean_inc(x_46); -x_66 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_66, 0, x_46); -lean_ctor_set(x_66, 1, x_65); -lean_ctor_set(x_66, 2, x_64); -x_67 = l_Lean_PrettyPrinter_Delaborator_delabConst___closed__13; -lean_inc(x_46); -x_68 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_68, 0, x_46); +x_62 = l_Array_mapMUnsafe_map___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__7(x_61, x_58, x_59); +x_63 = l_Lean_PrettyPrinter_Delaborator_delabConst___closed__12; +x_64 = l_Lean_mkSepArray(x_62, x_63); +lean_dec(x_62); +x_65 = l_Lean_PrettyPrinter_Delaborator_delabSort___closed__12; +x_66 = l_Array_append___rarg(x_65, x_64); +x_67 = l_Lean_PrettyPrinter_Delaborator_delabSort___closed__11; +lean_inc(x_48); +x_68 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_68, 0, x_48); lean_ctor_set(x_68, 1, x_67); -x_69 = l_Lean_PrettyPrinter_Delaborator_delabConst___closed__14; -x_70 = lean_array_push(x_69, x_48); -x_71 = lean_array_push(x_70, x_50); -x_72 = lean_array_push(x_71, x_66); -x_73 = lean_array_push(x_72, x_68); -x_74 = l_Lean_PrettyPrinter_Delaborator_delabConst___closed__9; -x_75 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_75, 0, x_46); -lean_ctor_set(x_75, 1, x_74); -lean_ctor_set(x_75, 2, x_73); -x_76 = lean_apply_9(x_25, x_19, x_75, x_1, x_2, x_3, x_4, x_5, x_6, x_47); -return x_76; +lean_ctor_set(x_68, 2, x_66); +x_69 = l_Lean_PrettyPrinter_Delaborator_delabConst___closed__13; +lean_inc(x_48); +x_70 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_70, 0, x_48); +lean_ctor_set(x_70, 1, x_69); +x_71 = l_Lean_PrettyPrinter_Delaborator_delabConst___closed__14; +x_72 = lean_array_push(x_71, x_50); +x_73 = lean_array_push(x_72, x_52); +x_74 = lean_array_push(x_73, x_68); +x_75 = lean_array_push(x_74, x_70); +x_76 = l_Lean_PrettyPrinter_Delaborator_delabConst___closed__9; +x_77 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_77, 0, x_48); +lean_ctor_set(x_77, 1, x_76); +lean_ctor_set(x_77, 2, x_75); +x_78 = lean_apply_9(x_27, x_21, x_77, x_1, x_2, x_3, x_4, x_5, x_6, x_49); +return x_78; } } else { -lean_object* x_77; -lean_dec(x_23); +lean_object* x_79; +lean_dec(x_25); lean_dec(x_12); -x_77 = lean_box(0); -x_26 = x_77; -goto block_41; +x_79 = lean_box(0); +x_28 = x_79; +goto block_43; } -block_41: +block_43: { -lean_object* x_27; uint8_t x_28; -lean_dec(x_26); -x_27 = lean_ctor_get(x_3, 1); -lean_inc(x_27); -lean_inc(x_19); -x_28 = lean_local_ctx_uses_user_name(x_27, x_19); -if (x_28 == 0) +lean_object* x_29; uint8_t x_30; +lean_dec(x_28); +x_29 = lean_ctor_get(x_3, 1); +lean_inc(x_29); +lean_inc(x_21); +x_30 = lean_local_ctx_uses_user_name(x_29, x_21); +if (x_30 == 0) { -lean_object* x_29; lean_object* x_30; +lean_object* x_31; lean_object* x_32; lean_dec(x_17); -x_29 = lean_box(0); -x_30 = l_Lean_PrettyPrinter_Delaborator_delabConst___lambda__2(x_25, x_19, x_29, x_1, x_2, x_3, x_4, x_5, x_6, x_24); -return x_30; +x_31 = lean_box(0); +x_32 = l_Lean_PrettyPrinter_Delaborator_delabConst___lambda__2(x_27, x_21, x_31, x_1, x_2, x_3, x_4, x_5, x_6, x_26); +return x_32; } else { -uint8_t x_31; -x_31 = lean_name_eq(x_19, x_17); -if (x_31 == 0) +uint8_t x_33; +x_33 = lean_name_eq(x_21, x_17); +if (x_33 == 0) { -lean_object* x_32; lean_object* x_33; -lean_dec(x_19); -x_32 = lean_box(0); -x_33 = l_Lean_PrettyPrinter_Delaborator_delabConst___lambda__2(x_25, x_17, x_32, x_1, x_2, x_3, x_4, x_5, x_6, x_24); -return x_33; +lean_object* x_34; lean_object* x_35; +lean_dec(x_21); +x_34 = lean_box(0); +x_35 = l_Lean_PrettyPrinter_Delaborator_delabConst___lambda__2(x_27, x_17, x_34, x_1, x_2, x_3, x_4, x_5, x_6, x_26); +return x_35; } else { -uint8_t x_34; -x_34 = lean_ctor_get_uint8(x_1, sizeof(void*)*5); -if (x_34 == 0) +uint8_t x_36; +x_36 = lean_ctor_get_uint8(x_1, sizeof(void*)*5); +if (x_36 == 0) { -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_dec(x_17); -x_35 = l_Lean_PrettyPrinter_Delaborator_delabConst___closed__7; -x_36 = l_Lean_Name_append(x_35, x_19); -x_37 = lean_box(0); -x_38 = l_Lean_PrettyPrinter_Delaborator_delabConst___lambda__2(x_25, x_36, x_37, x_1, x_2, x_3, x_4, x_5, x_6, x_24); -return x_38; -} -else -{ -lean_object* x_39; lean_object* x_40; -lean_dec(x_19); +x_37 = l_Lean_PrettyPrinter_Delaborator_delabConst___closed__7; +x_38 = l_Lean_Name_append(x_37, x_21); x_39 = lean_box(0); -x_40 = l_Lean_PrettyPrinter_Delaborator_delabConst___lambda__2(x_25, x_17, x_39, x_1, x_2, x_3, x_4, x_5, x_6, x_24); +x_40 = l_Lean_PrettyPrinter_Delaborator_delabConst___lambda__2(x_27, x_38, x_39, x_1, x_2, x_3, x_4, x_5, x_6, x_26); return x_40; } +else +{ +lean_object* x_41; lean_object* x_42; +lean_dec(x_21); +x_41 = lean_box(0); +x_42 = l_Lean_PrettyPrinter_Delaborator_delabConst___lambda__2(x_27, x_17, x_41, x_1, x_2, x_3, x_4, x_5, x_6, x_26); +return x_42; +} } } } } else { -uint8_t x_78; -lean_dec(x_19); +uint8_t x_80; +lean_dec(x_21); lean_dec(x_17); lean_dec(x_12); lean_dec(x_6); @@ -4385,61 +4330,30 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_78 = !lean_is_exclusive(x_22); -if (x_78 == 0) +x_80 = !lean_is_exclusive(x_24); +if (x_80 == 0) { -return x_22; +return x_24; } else { -lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_79 = lean_ctor_get(x_22, 0); -x_80 = lean_ctor_get(x_22, 1); -lean_inc(x_80); -lean_inc(x_79); -lean_dec(x_22); -x_81 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_81, 0, x_79); -lean_ctor_set(x_81, 1, x_80); -return x_81; -} -} -} -else -{ -uint8_t x_82; -lean_dec(x_17); -lean_dec(x_12); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_82 = !lean_is_exclusive(x_18); -if (x_82 == 0) -{ -return x_18; -} -else -{ -lean_object* x_83; lean_object* x_84; lean_object* x_85; -x_83 = lean_ctor_get(x_18, 0); -x_84 = lean_ctor_get(x_18, 1); -lean_inc(x_84); -lean_inc(x_83); -lean_dec(x_18); -x_85 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_85, 0, x_83); -lean_ctor_set(x_85, 1, x_84); -return x_85; +lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_81 = lean_ctor_get(x_24, 0); +x_82 = lean_ctor_get(x_24, 1); +lean_inc(x_82); +lean_inc(x_81); +lean_dec(x_24); +x_83 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_83, 0, x_81); +lean_ctor_set(x_83, 1, x_82); +return x_83; } } } } else { -uint8_t x_90; +uint8_t x_111; lean_dec(x_12); lean_dec(x_11); lean_dec(x_6); @@ -4448,40 +4362,166 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_90 = !lean_is_exclusive(x_14); -if (x_90 == 0) +x_111 = !lean_is_exclusive(x_14); +if (x_111 == 0) { return x_14; } else { -lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_91 = lean_ctor_get(x_14, 0); -x_92 = lean_ctor_get(x_14, 1); -lean_inc(x_92); -lean_inc(x_91); +lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_112 = lean_ctor_get(x_14, 0); +x_113 = lean_ctor_get(x_14, 1); +lean_inc(x_113); +lean_inc(x_112); lean_dec(x_14); -x_93 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_93, 0, x_91); -lean_ctor_set(x_93, 1, x_92); -return x_93; +x_114 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_114, 0, x_112); +lean_ctor_set(x_114, 1, x_113); +return x_114; } } } else { -lean_object* x_94; lean_object* x_95; lean_object* x_96; +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_dec(x_9); -x_94 = lean_ctor_get(x_8, 1); -lean_inc(x_94); +x_115 = lean_ctor_get(x_8, 1); +lean_inc(x_115); lean_dec(x_8); -x_95 = l_Lean_PrettyPrinter_Delaborator_delabConst___closed__2; -x_96 = l_panic___at_Lean_PrettyPrinter_Delaborator_delabFVar___spec__1(x_95, x_1, x_2, x_3, x_4, x_5, x_6, x_94); -return x_96; +x_116 = l_Lean_PrettyPrinter_Delaborator_delabConst___closed__2; +x_117 = l_panic___at_Lean_PrettyPrinter_Delaborator_delabFVar___spec__1(x_116, x_1, x_2, x_3, x_4, x_5, x_6, x_115); +return x_117; } } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_resolveGlobalName___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__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_resolveGlobalName___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__4___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: +{ +lean_object* x_13; +x_13 = l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__4___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); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__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, lean_object* x_13, lean_object* x_14) { +_start: +{ +lean_object* x_15; +x_15 = l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__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, x_13, x_14); +lean_dec(x_13); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +return x_15; +} +} +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal_unresolveNameCore___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__2___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) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_unresolveNameGlobal_unresolveNameCore___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__2___lambda__1(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); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal_unresolveNameCore___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__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) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_unresolveNameGlobal_unresolveNameCore___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__2(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_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__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, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +size_t x_14; size_t x_15; lean_object* x_16; +x_14 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_15 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_16 = l_Array_forInUnsafe_loop___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__5(x_1, x_2, x_3, x_14, x_15, 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_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_3); +lean_dec(x_1); +return x_16; +} +} +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__1___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) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_unresolveNameGlobal___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__1___lambda__1(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_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__1___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* x_10) { +_start: +{ +uint8_t x_11; lean_object* x_12; +x_11 = lean_unbox(x_1); +lean_dec(x_1); +x_12 = l_Lean_unresolveNameGlobal___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__1___lambda__2(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal___at_Lean_PrettyPrinter_Delaborator_delabConst___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) { +_start: +{ +uint8_t x_10; lean_object* x_11; +x_10 = lean_unbox(x_2); +lean_dec(x_2); +x_11 = l_Lean_unresolveNameGlobal___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__1(x_1, x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { size_t x_4; size_t x_5; lean_object* x_6; @@ -4489,11 +4529,11 @@ x_4 = lean_unbox_usize(x_1); lean_dec(x_1); x_5 = lean_unbox_usize(x_2); lean_dec(x_2); -x_6 = l_Array_mapMUnsafe_map___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__1(x_4, x_5, x_3); +x_6 = l_Array_mapMUnsafe_map___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__6(x_4, x_5, x_3); return x_6; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { size_t x_4; size_t x_5; lean_object* x_6; @@ -4501,7 +4541,7 @@ x_4 = lean_unbox_usize(x_1); lean_dec(x_1); x_5 = lean_unbox_usize(x_2); lean_dec(x_2); -x_6 = l_Array_mapMUnsafe_map___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__2(x_4, x_5, x_3); +x_6 = l_Array_mapMUnsafe_map___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__7(x_4, x_5, x_3); return x_6; } } @@ -7853,7 +7893,7 @@ _start: lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; x_10 = lean_unsigned_to_nat(0u); x_11 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_1, x_10); -x_12 = l_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal___lambda__1___closed__1; +x_12 = l_Lean_unresolveNameGlobal___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__1___lambda__1___closed__1; x_13 = lean_unsigned_to_nat(1u); lean_inc(x_8); lean_inc(x_7); @@ -8373,7 +8413,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_PrettyPrinter_Delaborator_delabFVar___closed__1; x_2 = l_Lean_PrettyPrinter_Delaborator_unexpandRegularApp___closed__1; -x_3 = lean_unsigned_to_nat(201u); +x_3 = lean_unsigned_to_nat(175u); x_4 = lean_unsigned_to_nat(63u); x_5 = l_Lean_PrettyPrinter_Delaborator_delabFVar___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -17383,7 +17423,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_PrettyPrinter_Delaborator_delabFVar___closed__1; x_2 = l_Lean_PrettyPrinter_Delaborator_delabLetFun___lambda__1___closed__1; -x_3 = lean_unsigned_to_nat(428u); +x_3 = lean_unsigned_to_nat(402u); x_4 = lean_unsigned_to_nat(37u); x_5 = l_Lean_PrettyPrinter_Delaborator_delabFVar___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -24788,7 +24828,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_PrettyPrinter_Delaborator_delabFVar___closed__1; x_2 = l_Lean_PrettyPrinter_Delaborator_delabLetE___closed__1; -x_3 = lean_unsigned_to_nat(602u); +x_3 = lean_unsigned_to_nat(576u); x_4 = lean_unsigned_to_nat(38u); x_5 = l_Lean_PrettyPrinter_Delaborator_delabFVar___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -25556,7 +25596,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_PrettyPrinter_Delaborator_delabFVar___closed__1; x_2 = l_Lean_PrettyPrinter_Delaborator_delabLit___closed__1; -x_3 = lean_unsigned_to_nat(615u); +x_3 = lean_unsigned_to_nat(589u); x_4 = lean_unsigned_to_nat(29u); x_5 = l_Lean_PrettyPrinter_Delaborator_delabFVar___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -26949,7 +26989,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_PrettyPrinter_Delaborator_delabFVar___closed__1; x_2 = l_Lean_PrettyPrinter_Delaborator_delabProj___closed__1; -x_3 = lean_unsigned_to_nat(654u); +x_3 = lean_unsigned_to_nat(628u); x_4 = lean_unsigned_to_nat(36u); x_5 = l_Lean_PrettyPrinter_Delaborator_delabFVar___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -30943,7 +30983,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_PrettyPrinter_Delaborator_delabFVar___closed__1; x_2 = l_Lean_PrettyPrinter_Delaborator_delabDoElems___closed__5; -x_3 = lean_unsigned_to_nat(756u); +x_3 = lean_unsigned_to_nat(730u); x_4 = lean_unsigned_to_nat(40u); x_5 = l_Lean_PrettyPrinter_Delaborator_delabFVar___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -32772,14 +32812,14 @@ lean_mark_persistent(l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabSort___c res = l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabSort(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal_unresolveNameCore___spec__2___closed__1 = _init_l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal_unresolveNameCore___spec__2___closed__1(); -lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal_unresolveNameCore___spec__2___closed__1); -l_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal___lambda__1___closed__1 = _init_l_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal___lambda__1___closed__1(); -lean_mark_persistent(l_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal___lambda__1___closed__1); -l_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal___lambda__2___closed__1 = _init_l_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal___lambda__2___closed__1(); -lean_mark_persistent(l_Lean_PrettyPrinter_Delaborator_unresolveNameGlobal___lambda__2___closed__1); +l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__4___closed__1 = _init_l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__4___closed__1(); +lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__4___closed__1); +l_Lean_unresolveNameGlobal___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__1___lambda__1___closed__1 = _init_l_Lean_unresolveNameGlobal___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__1___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_unresolveNameGlobal___at_Lean_PrettyPrinter_Delaborator_delabConst___spec__1___lambda__1___closed__1); l_Lean_PrettyPrinter_Delaborator_delabConst___lambda__1___closed__1 = _init_l_Lean_PrettyPrinter_Delaborator_delabConst___lambda__1___closed__1(); lean_mark_persistent(l_Lean_PrettyPrinter_Delaborator_delabConst___lambda__1___closed__1); +l_Lean_PrettyPrinter_Delaborator_delabConst___lambda__1___closed__2 = _init_l_Lean_PrettyPrinter_Delaborator_delabConst___lambda__1___closed__2(); +lean_mark_persistent(l_Lean_PrettyPrinter_Delaborator_delabConst___lambda__1___closed__2); l_Lean_PrettyPrinter_Delaborator_delabConst___closed__1 = _init_l_Lean_PrettyPrinter_Delaborator_delabConst___closed__1(); lean_mark_persistent(l_Lean_PrettyPrinter_Delaborator_delabConst___closed__1); l_Lean_PrettyPrinter_Delaborator_delabConst___closed__2 = _init_l_Lean_PrettyPrinter_Delaborator_delabConst___closed__2(); @@ -32808,6 +32848,8 @@ l_Lean_PrettyPrinter_Delaborator_delabConst___closed__13 = _init_l_Lean_PrettyPr lean_mark_persistent(l_Lean_PrettyPrinter_Delaborator_delabConst___closed__13); l_Lean_PrettyPrinter_Delaborator_delabConst___closed__14 = _init_l_Lean_PrettyPrinter_Delaborator_delabConst___closed__14(); lean_mark_persistent(l_Lean_PrettyPrinter_Delaborator_delabConst___closed__14); +l_Lean_PrettyPrinter_Delaborator_delabConst___closed__15 = _init_l_Lean_PrettyPrinter_Delaborator_delabConst___closed__15(); +lean_mark_persistent(l_Lean_PrettyPrinter_Delaborator_delabConst___closed__15); l_List_forIn_loop___at_Lean_PrettyPrinter_Delaborator_withMDataOptions___spec__1___closed__1 = _init_l_List_forIn_loop___at_Lean_PrettyPrinter_Delaborator_withMDataOptions___spec__1___closed__1(); lean_mark_persistent(l_List_forIn_loop___at_Lean_PrettyPrinter_Delaborator_withMDataOptions___spec__1___closed__1); l_List_forIn_loop___at_Lean_PrettyPrinter_Delaborator_withMDataOptions___spec__1___closed__2 = _init_l_List_forIn_loop___at_Lean_PrettyPrinter_Delaborator_withMDataOptions___spec__1___closed__2(); diff --git a/stage0/stdlib/Lean/ResolveName.c b/stage0/stdlib/Lean/ResolveName.c index a870ee0af8..bfc4eb2a75 100644 --- a/stage0/stdlib/Lean/ResolveName.c +++ b/stage0/stdlib/Lean/ResolveName.c @@ -13,11 +13,13 @@ #ifdef __cplusplus extern "C" { #endif +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_unresolveNameGlobal___spec__1___rarg___lambda__2(lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*); lean_object* l_List_reverse___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_ResolveName___hyg_68____spec__5(lean_object*); LEAN_EXPORT lean_object* l_Lean_resolveNamespaceCore___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_initFn____x40_Lean_ResolveName___hyg_68____lambda__1___closed__2; LEAN_EXPORT lean_object* l_Std_HashMapImp_expand___at_Lean_addAliasEntry___spec__14(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_resolveGlobalConstCore___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_extractMacroScopes(lean_object*); size_t lean_usize_add(size_t, size_t); @@ -25,6 +27,7 @@ lean_object* l_List_toString___at_Lean_OpenDecl_instToStringOpenDecl___spec__2(l static lean_object* l_Lean_resolveGlobalConstNoOverloadCore___rarg___lambda__1___closed__1; extern lean_object* l_Lean_rootNamespace; LEAN_EXPORT lean_object* l_Std_AssocList_find_x3f___at_Lean_addAliasEntry___spec__6(lean_object*, lean_object*); +lean_object* lean_mk_empty_array_with_capacity(lean_object*); LEAN_EXPORT lean_object* l_List_mapTRAux___at_Lean_ResolveName_resolveGlobalName_loop___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); static lean_object* l_List_toStringAux___at_Lean_resolveGlobalConstNoOverloadCore___spec__3___closed__1; @@ -35,10 +38,12 @@ LEAN_EXPORT lean_object* l_List_toStringAux___at_Lean_resolveGlobalConstNoOverlo LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_getRevAliases___spec__5___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_mkHashMap___at_Lean_initFn____x40_Lean_ResolveName___hyg_68____spec__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_resolveUniqueNamespace___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_resolveGlobalConst___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_mapTRAux___at_Lean_resolveGlobalConstCore___spec__2(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_unresolveNameGlobal_unresolveNameCore___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentHashMap_insert___at_Lean_addAliasEntry___spec__8(lean_object*, lean_object*, lean_object*); extern lean_object* l_Std_Format_defWidth; LEAN_EXPORT lean_object* l_Lean_resolveGlobalConstNoOverload___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); @@ -46,6 +51,7 @@ LEAN_EXPORT lean_object* l_List_filterMap___at_Lean_resolveGlobalConst___spec__1 lean_object* lean_array_uset(lean_object*, size_t, lean_object*); static lean_object* l_List_toString___at_Lean_resolveGlobalConstNoOverloadCore___spec__2___closed__2; LEAN_EXPORT lean_object* l_Lean_resolveNamespaceCore___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_unresolveNameGlobal___spec__1___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ResolveName_resolveNamespaceUsingScope_x3f(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Std_AssocList_contains___at_Lean_addAliasEntry___spec__13(lean_object*, lean_object*); size_t lean_usize_sub(size_t, size_t); @@ -63,8 +69,10 @@ static lean_object* l_List_filterTRAux___at_Lean_getAliases___spec__1___closed__ LEAN_EXPORT lean_object* l_Lean_ResolveName_resolveNamespace___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_toString___at_Lean_resolveGlobalConstNoOverloadCore___spec__2___closed__3; LEAN_EXPORT lean_object* l_List_mapTRAux___at_Lean_ResolveName_resolveGlobalName_loop___spec__4(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_unresolveNameGlobal___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_resolveGlobalConstCore___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_filterMap___at_Lean_resolveNamespace___spec__1(lean_object*); +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_unresolveNameGlobal_unresolveNameCore___spec__1___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_Std_PersistentHashMap_getCollisionNodeSize___rarg(lean_object*); @@ -74,15 +82,19 @@ uint8_t l_Lean_Name_isPrefixOf(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_getRevAliases___spec__5(lean_object*); LEAN_EXPORT lean_object* lean_add_alias(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getAliases___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_unresolveNameGlobal_unresolveNameCore___spec__1___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_aliasExtension; size_t lean_usize_shift_right(size_t, size_t); LEAN_EXPORT lean_object* l_Std_HashMapImp_find_x3f___at_Lean_addAliasEntry___spec__5(lean_object*, lean_object*); +uint8_t lean_usize_dec_lt(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_resolveNamespaceCore(lean_object*); LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_ResolveName___hyg_68____lambda__1(lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_ResolveName_0__Lean_ResolveName_resolveQualifiedName(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_unresolveNameGlobal_unresolveNameCore___spec__1___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_EXPORT lean_object* l_Lean_resolveNamespaceCore___rarg___lambda__4(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerSimplePersistentEnvExtension___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_unresolveNameGlobal___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_mkHashMap___at_Lean_initFn____x40_Lean_ResolveName___hyg_68____spec__1___boxed(lean_object*); size_t lean_uint64_to_usize(uint64_t); static lean_object* l_List_toStringAux___at_Lean_resolveGlobalConstNoOverloadCore___spec__3___closed__2; @@ -92,18 +104,27 @@ static lean_object* l_Lean_resolveGlobalConstNoOverloadCore___rarg___lambda__1__ static lean_object* l_Lean_initFn____x40_Lean_ResolveName___hyg_68____closed__1; LEAN_EXPORT lean_object* l_Std_AssocList_contains___at_Lean_addAliasEntry___spec__13___boxed(lean_object*, lean_object*); uint64_t l_Lean_Name_hash___override(lean_object*); +uint8_t l_Lean_Name_hasMacroScopes(lean_object*); LEAN_EXPORT lean_object* l_Lean_SMap_fold___at_Lean_getRevAliases___spec__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_SMap_fold___at_Lean_getRevAliases___spec__1(lean_object*); +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal_unresolveNameCore___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal___rarg___lambda__3(lean_object*, lean_object*, lean_object*); +uint8_t lean_nat_dec_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ResolveName_resolveNamespaceUsingOpenDecls___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_eraseDupsAux___at_Lean_ResolveName_resolveGlobalName_loop___spec__2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_resolveGlobalName___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Std_Range_forIn_loop___at_Lean_unresolveNameGlobal_unresolveNameCore___spec__1___rarg___closed__1; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_ResolveName___hyg_68____spec__3(lean_object*, size_t, size_t, lean_object*); +lean_object* lean_nat_sub(lean_object*, lean_object*); +lean_object* l_Lean_Name_components_x27(lean_object*); static size_t l_Std_PersistentHashMap_findAux___at_Lean_addAliasEntry___spec__3___closed__1; LEAN_EXPORT lean_object* l_Std_HashMap_insert___at_Lean_addAliasEntry___spec__12(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentHashMap_findAux___at_Lean_addAliasEntry___spec__3___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Std_PersistentHashMap_insertAux___at_Lean_addAliasEntry___spec__9___closed__1; static lean_object* l_Lean_resolveUniqueNamespace___rarg___lambda__1___closed__2; +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_unresolveNameGlobal___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_unresolveNameGlobal_unresolveNameCore___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*); LEAN_EXPORT lean_object* l_Std_PersistentHashMap_insertAux___at_Lean_addAliasEntry___spec__9(lean_object*, size_t, size_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentHashMap_insertAux___at_Lean_addAliasEntry___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_toString(lean_object*, uint8_t); @@ -119,6 +140,7 @@ LEAN_EXPORT lean_object* l_Std_PersistentHashMap_foldlM___at_Lean_getRevAliases_ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_ResolveName___hyg_68____spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentHashMap_insertAux_traverse___at_Lean_addAliasEntry___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_SMap_instInhabitedSMap___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal_unresolveNameCore___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_resolveNamespace(lean_object*); static lean_object* l_List_toString___at_Lean_resolveGlobalConstNoOverloadCore___spec__2___closed__1; LEAN_EXPORT lean_object* l_List_mapTRAux___at_Lean_resolveGlobalConstNoOverloadCore___spec__4(lean_object*, lean_object*, lean_object*); @@ -130,17 +152,21 @@ lean_object* lean_format_pretty(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_addAliasEntry(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_resolveUniqueNamespace___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal_unresolveNameCore(lean_object*); static lean_object* l_Lean_initFn____x40_Lean_ResolveName___hyg_68____closed__6; +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_shift_left(size_t, size_t); uint8_t l_Lean_Name_isAtomic(lean_object*); uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_ResolveName_0__Lean_ResolveName_resolveUsingNamespace(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_initFn____x40_Lean_ResolveName___hyg_68____closed__2; lean_object* l_Std_PersistentHashMap_foldlMAux___at_Lean_MetavarContext_getExprAssignmentDomain___spec__2___rarg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal___rarg___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_protectedExt; LEAN_EXPORT lean_object* l_List_mapTRAux___at_Lean_ResolveName_resolveGlobalName_loop___spec__7(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_resolveGlobalConstCore(lean_object*); LEAN_EXPORT lean_object* l_List_toStringAux___at_Lean_resolveGlobalConstNoOverloadCore___spec__3(uint8_t, lean_object*); +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_unresolveNameGlobal_unresolveNameCore___spec__1___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_resolveNamespaceCore___rarg___lambda__2___closed__2; static lean_object* l_Lean_initFn____x40_Lean_ResolveName___hyg_68____closed__3; lean_object* lean_expr_dbg_to_string(lean_object*); @@ -159,16 +185,20 @@ LEAN_EXPORT lean_object* l_panic___at_Lean_ResolveName_resolveNamespaceUsingScop static lean_object* l_Lean_resolveNamespaceCore___rarg___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Std_PersistentHashMap_findAux___at_Lean_addAliasEntry___spec__3(lean_object*, size_t, lean_object*); size_t lean_usize_mul(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal(lean_object*); lean_object* l_Lean_throwErrorAt___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_unresolveNameGlobal_unresolveNameCore___spec__1___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_filterTRAux___at_Lean_getAliases___spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getAliases(lean_object*, lean_object*, uint8_t); static lean_object* l_Lean_addAlias___closed__1; +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_ResolveName_resolveNamespaceUsingScope_x3f___closed__1; static lean_object* l_Lean_initFn____x40_Lean_ResolveName___hyg_68____lambda__1___closed__1; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_ResolveName___hyg_68____spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); static lean_object* l_Lean_initFn____x40_Lean_ResolveName___hyg_68____lambda__1___closed__3; +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal___rarg___lambda__4(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_resolveGlobalConstCore___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentEnvExtension_addEntry___rarg(lean_object*, lean_object*, lean_object*); size_t lean_usize_land(size_t, size_t); @@ -177,16 +207,19 @@ LEAN_EXPORT lean_object* l_Std_PersistentHashMap_findAtAux___at_Lean_addAliasEnt LEAN_EXPORT lean_object* l_Lean_resolveGlobalName___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_List_elem___at_Lean_NameHashSet_insert___spec__2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_resolveGlobalConstNoOverloadCore___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_redLength___rarg(lean_object*); lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_ResolveName___hyg_68____spec__2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_AssocList_foldlM___at_Lean_getRevAliases___spec__2(lean_object*); LEAN_EXPORT lean_object* l_Lean_resolveUniqueNamespace(lean_object*); lean_object* lean_list_to_array(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_mapTRAux___at_Lean_ResolveName_resolveGlobalName_loop___spec__6(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_unresolveNameGlobal___rarg___lambda__1___closed__1; uint8_t lean_nat_dec_le(lean_object*, lean_object*); uint8_t lean_usize_dec_le(size_t, size_t); lean_object* l_Lean_mkPrivateName(lean_object*, lean_object*); lean_object* l_Lean_Name_append(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal___rarg(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l_Lean_MacroScopesView_review(lean_object*); LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_ResolveName___hyg_68_(lean_object*); LEAN_EXPORT lean_object* l_Lean_getRevAliases___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); @@ -203,6 +236,7 @@ lean_object* lean_nat_mul(lean_object*, lean_object*); lean_object* l_Lean_throwError___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_resolveNamespace___rarg___closed__1; LEAN_EXPORT lean_object* l_Lean_resolveNamespaceCore___rarg___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_toArrayAux___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ResolveName_resolveGlobalName_loop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_getRevAliases___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_panic_fn(lean_object*, lean_object*); @@ -217,6 +251,9 @@ LEAN_EXPORT lean_object* l_Lean_getRevAliases___lambda__1___boxed(lean_object*, LEAN_EXPORT lean_object* l_Std_PersistentHashMap_find_x3f___at_Lean_addAliasEntry___spec__2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentHashMap_foldlM___at_Lean_getRevAliases___spec__3(lean_object*); LEAN_EXPORT lean_object* l_Lean_ResolveName_resolveGlobalName_loop___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_lengthTRAux___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_unresolveNameGlobal___spec__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_resolveGlobalConstNoOverloadCore___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentHashMap_foldlM___at_Lean_getRevAliases___spec__6___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_SMap_find_x3f___at_Lean_addAliasEntry___spec__1(lean_object*, lean_object*); @@ -239,6 +276,7 @@ LEAN_EXPORT lean_object* l_Lean_resolveNamespaceCore___rarg___lambda__3___boxed( lean_object* l_Std_PersistentHashMap_mkEmptyEntries(lean_object*, lean_object*); lean_object* l_List_appendTR___rarg(lean_object*, lean_object*); lean_object* l_Lean_Syntax_formatStxAux(lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_unresolveNameGlobal_unresolveNameCore___spec__1(lean_object*); static lean_object* l_Lean_ResolveName_resolveNamespaceUsingScope_x3f___closed__3; LEAN_EXPORT lean_object* l_List_mapTRAux___at_Lean_resolveGlobalConstNoOverloadCore___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_mkCollisionNode___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -5074,6 +5112,983 @@ x_2 = lean_alloc_closure((void*)(l_Lean_resolveGlobalConstNoOverload___rarg), 5, return x_2; } } +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_unresolveNameGlobal_unresolveNameCore___spec__1___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, lean_object* x_11) { +_start: +{ +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* 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); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +lean_dec(x_11); +x_13 = lean_ctor_get(x_1, 0); +lean_inc(x_13); +lean_dec(x_1); +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +lean_dec(x_13); +x_15 = lean_apply_2(x_14, lean_box(0), x_12); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_11, 0); +lean_inc(x_16); +lean_dec(x_11); +x_17 = lean_nat_add(x_2, x_3); +lean_dec(x_2); +x_18 = l_Std_Range_forIn_loop___at_Lean_unresolveNameGlobal_unresolveNameCore___spec__1___rarg(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_17, x_10, x_3, x_16); +lean_dec(x_9); +return x_18; +} +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_unresolveNameGlobal_unresolveNameCore___spec__1___rarg___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) { +_start: +{ +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_7 = lean_ctor_get(x_1, 0); +lean_inc(x_7); +lean_dec(x_1); +x_8 = lean_ctor_get(x_7, 1); +lean_inc(x_8); +lean_dec(x_7); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_2); +lean_ctor_set(x_9, 1, x_3); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_4); +lean_ctor_set(x_10, 1, x_9); +x_11 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_11, 0, x_10); +x_12 = lean_apply_2(x_8, lean_box(0), x_11); +return x_12; +} +else +{ +lean_object* x_13; +x_13 = lean_ctor_get(x_6, 1); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_14 = lean_ctor_get(x_6, 0); +x_15 = lean_ctor_get(x_14, 0); +x_16 = lean_name_eq(x_15, x_5); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_17 = lean_ctor_get(x_1, 0); +lean_inc(x_17); +lean_dec(x_1); +x_18 = lean_ctor_get(x_17, 1); +lean_inc(x_18); +lean_dec(x_17); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_2); +lean_ctor_set(x_19, 1, x_3); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_4); +lean_ctor_set(x_20, 1, x_19); +x_21 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_21, 0, x_20); +x_22 = lean_apply_2(x_18, lean_box(0), x_21); +return x_22; +} +else +{ +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_dec(x_4); +x_23 = lean_ctor_get(x_1, 0); +lean_inc(x_23); +lean_dec(x_1); +x_24 = lean_ctor_get(x_23, 1); +lean_inc(x_24); +lean_dec(x_23); +lean_inc(x_2); +x_25 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_25, 0, x_2); +x_26 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_26, 0, x_25); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_2); +lean_ctor_set(x_27, 1, x_3); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +x_29 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_29, 0, x_28); +x_30 = lean_apply_2(x_24, lean_box(0), x_29); +return x_30; +} +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_31 = lean_ctor_get(x_1, 0); +lean_inc(x_31); +lean_dec(x_1); +x_32 = lean_ctor_get(x_31, 1); +lean_inc(x_32); +lean_dec(x_31); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_2); +lean_ctor_set(x_33, 1, x_3); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_4); +lean_ctor_set(x_34, 1, x_33); +x_35 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_35, 0, x_34); +x_36 = lean_apply_2(x_32, lean_box(0), x_35); +return x_36; +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_unresolveNameGlobal_unresolveNameCore___spec__1___rarg___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) { +_start: +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +lean_inc(x_7); +lean_inc(x_1); +x_10 = l_Lean_resolveGlobalName___rarg(x_1, x_2, x_3, x_7); +x_11 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_unresolveNameGlobal_unresolveNameCore___spec__1___rarg___lambda__2___boxed), 6, 5); +lean_closure_set(x_11, 0, x_1); +lean_closure_set(x_11, 1, x_7); +lean_closure_set(x_11, 2, x_8); +lean_closure_set(x_11, 3, x_4); +lean_closure_set(x_11, 4, x_5); +x_12 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_10, x_11); +return x_12; +} +} +static lean_object* _init_l_Std_Range_forIn_loop___at_Lean_unresolveNameGlobal_unresolveNameCore___spec__1___rarg___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(0); +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_unresolveNameGlobal_unresolveNameCore___spec__1___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: +{ +uint8_t x_12; +x_12 = lean_nat_dec_le(x_9, x_8); +if (x_12 == 0) +{ +lean_object* x_13; uint8_t x_14; +x_13 = lean_unsigned_to_nat(0u); +x_14 = lean_nat_dec_eq(x_7, x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_sub(x_7, x_15); +x_17 = lean_ctor_get(x_11, 1); +lean_inc(x_17); +lean_dec(x_11); +x_18 = lean_ctor_get(x_1, 1); +lean_inc(x_18); +x_19 = !lean_is_exclusive(x_17); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_17, 0); +x_21 = lean_ctor_get(x_17, 1); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_22 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_unresolveNameGlobal_unresolveNameCore___spec__1___rarg___lambda__1), 11, 10); +lean_closure_set(x_22, 0, x_1); +lean_closure_set(x_22, 1, x_8); +lean_closure_set(x_22, 2, x_10); +lean_closure_set(x_22, 3, x_2); +lean_closure_set(x_22, 4, x_3); +lean_closure_set(x_22, 5, x_4); +lean_closure_set(x_22, 6, x_5); +lean_closure_set(x_22, 7, x_6); +lean_closure_set(x_22, 8, x_16); +lean_closure_set(x_22, 9, x_9); +if (lean_obj_tag(x_21) == 0) +{ +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_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_23 = lean_ctor_get(x_1, 0); +lean_inc(x_23); +lean_dec(x_1); +x_24 = lean_ctor_get(x_23, 1); +lean_inc(x_24); +lean_dec(x_23); +x_25 = l_Std_Range_forIn_loop___at_Lean_unresolveNameGlobal_unresolveNameCore___spec__1___rarg___closed__1; +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_17); +x_27 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_27, 0, x_26); +x_28 = lean_apply_2(x_24, lean_box(0), x_27); +x_29 = lean_apply_4(x_18, lean_box(0), lean_box(0), x_28, x_22); +return x_29; +} +else +{ +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_free_object(x_17); +x_30 = lean_ctor_get(x_21, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_21, 1); +lean_inc(x_31); +lean_dec(x_21); +x_32 = l_Lean_Name_append(x_30, x_20); +lean_dec(x_30); +x_33 = lean_ctor_get(x_1, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_33, 1); +lean_inc(x_34); +lean_dec(x_33); +x_35 = lean_box(0); +x_36 = lean_apply_2(x_34, lean_box(0), x_35); +lean_inc(x_5); +x_37 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_unresolveNameGlobal_unresolveNameCore___spec__1___rarg___lambda__3___boxed), 9, 8); +lean_closure_set(x_37, 0, x_1); +lean_closure_set(x_37, 1, x_2); +lean_closure_set(x_37, 2, x_3); +lean_closure_set(x_37, 3, x_6); +lean_closure_set(x_37, 4, x_4); +lean_closure_set(x_37, 5, x_5); +lean_closure_set(x_37, 6, x_32); +lean_closure_set(x_37, 7, x_31); +x_38 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_36, x_37); +x_39 = lean_apply_4(x_18, lean_box(0), lean_box(0), x_38, x_22); +return x_39; +} +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_17, 0); +x_41 = lean_ctor_get(x_17, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_17); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_42 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_unresolveNameGlobal_unresolveNameCore___spec__1___rarg___lambda__1), 11, 10); +lean_closure_set(x_42, 0, x_1); +lean_closure_set(x_42, 1, x_8); +lean_closure_set(x_42, 2, x_10); +lean_closure_set(x_42, 3, x_2); +lean_closure_set(x_42, 4, x_3); +lean_closure_set(x_42, 5, x_4); +lean_closure_set(x_42, 6, x_5); +lean_closure_set(x_42, 7, x_6); +lean_closure_set(x_42, 8, x_16); +lean_closure_set(x_42, 9, x_9); +if (lean_obj_tag(x_41) == 0) +{ +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_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_43 = lean_ctor_get(x_1, 0); +lean_inc(x_43); +lean_dec(x_1); +x_44 = lean_ctor_get(x_43, 1); +lean_inc(x_44); +lean_dec(x_43); +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_40); +lean_ctor_set(x_45, 1, x_41); +x_46 = l_Std_Range_forIn_loop___at_Lean_unresolveNameGlobal_unresolveNameCore___spec__1___rarg___closed__1; +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_45); +x_48 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_48, 0, x_47); +x_49 = lean_apply_2(x_44, lean_box(0), x_48); +x_50 = lean_apply_4(x_18, lean_box(0), lean_box(0), x_49, x_42); +return x_50; +} +else +{ +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; +x_51 = lean_ctor_get(x_41, 0); +lean_inc(x_51); +x_52 = lean_ctor_get(x_41, 1); +lean_inc(x_52); +lean_dec(x_41); +x_53 = l_Lean_Name_append(x_51, x_40); +lean_dec(x_51); +x_54 = lean_ctor_get(x_1, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_54, 1); +lean_inc(x_55); +lean_dec(x_54); +x_56 = lean_box(0); +x_57 = lean_apply_2(x_55, lean_box(0), x_56); +lean_inc(x_5); +x_58 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_unresolveNameGlobal_unresolveNameCore___spec__1___rarg___lambda__3___boxed), 9, 8); +lean_closure_set(x_58, 0, x_1); +lean_closure_set(x_58, 1, x_2); +lean_closure_set(x_58, 2, x_3); +lean_closure_set(x_58, 3, x_6); +lean_closure_set(x_58, 4, x_4); +lean_closure_set(x_58, 5, x_5); +lean_closure_set(x_58, 6, x_53); +lean_closure_set(x_58, 7, x_52); +x_59 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_57, x_58); +x_60 = lean_apply_4(x_18, lean_box(0), lean_box(0), x_59, x_42); +return x_60; +} +} +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_61 = lean_ctor_get(x_1, 0); +lean_inc(x_61); +lean_dec(x_1); +x_62 = lean_ctor_get(x_61, 1); +lean_inc(x_62); +lean_dec(x_61); +x_63 = lean_apply_2(x_62, lean_box(0), x_11); +return x_63; +} +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_64 = lean_ctor_get(x_1, 0); +lean_inc(x_64); +lean_dec(x_1); +x_65 = lean_ctor_get(x_64, 1); +lean_inc(x_65); +lean_dec(x_64); +x_66 = lean_apply_2(x_65, lean_box(0), x_11); +return x_66; +} +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_unresolveNameGlobal_unresolveNameCore___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_unresolveNameGlobal_unresolveNameCore___spec__1___rarg___boxed), 11, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal_unresolveNameCore___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +lean_dec(x_4); +if (lean_obj_tag(x_5) == 0) +{ +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_inc(x_1); +x_6 = lean_alloc_closure((void*)(l_Lean_resolveNamespaceCore___rarg___lambda__1___boxed), 3, 2); +lean_closure_set(x_6, 0, x_1); +lean_closure_set(x_6, 1, x_2); +x_7 = lean_ctor_get(x_1, 0); +lean_inc(x_7); +lean_dec(x_1); +x_8 = lean_ctor_get(x_7, 1); +lean_inc(x_8); +lean_dec(x_7); +x_9 = lean_box(0); +x_10 = lean_apply_2(x_8, lean_box(0), x_9); +x_11 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_10, x_6); +return x_11; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +lean_dec(x_3); +lean_dec(x_2); +x_12 = lean_ctor_get(x_5, 0); +lean_inc(x_12); +lean_dec(x_5); +x_13 = lean_ctor_get(x_1, 0); +lean_inc(x_13); +lean_dec(x_1); +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +lean_dec(x_13); +x_15 = lean_apply_2(x_14, lean_box(0), x_12); +return x_15; +} +} +} +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal_unresolveNameCore___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 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_6 = l_Lean_Name_components_x27(x_5); +x_7 = lean_ctor_get(x_1, 1); +lean_inc(x_7); +x_8 = lean_unsigned_to_nat(0u); +x_9 = l_List_lengthTRAux___rarg(x_6, x_8); +x_10 = lean_box(0); +x_11 = lean_box(0); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_6); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_10); +lean_ctor_set(x_13, 1, x_12); +x_14 = lean_unsigned_to_nat(1u); +lean_inc(x_9); +lean_inc(x_7); +lean_inc(x_1); +x_15 = l_Std_Range_forIn_loop___at_Lean_unresolveNameGlobal_unresolveNameCore___spec__1___rarg(x_1, x_2, x_3, x_4, x_7, x_10, x_9, x_8, x_9, x_14, x_13); +lean_dec(x_9); +lean_inc(x_7); +x_16 = lean_alloc_closure((void*)(l_Lean_unresolveNameGlobal_unresolveNameCore___rarg___lambda__1), 4, 3); +lean_closure_set(x_16, 0, x_1); +lean_closure_set(x_16, 1, x_10); +lean_closure_set(x_16, 2, x_7); +x_17 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_15, x_16); +return x_17; +} +} +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal_unresolveNameCore(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_unresolveNameGlobal_unresolveNameCore___rarg), 5, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_unresolveNameGlobal_unresolveNameCore___spec__1___rarg___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) { +_start: +{ +lean_object* x_7; +x_7 = l_Std_Range_forIn_loop___at_Lean_unresolveNameGlobal_unresolveNameCore___spec__1___rarg___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_6); +lean_dec(x_5); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_unresolveNameGlobal_unresolveNameCore___spec__1___rarg___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) { +_start: +{ +lean_object* x_10; +x_10 = l_Std_Range_forIn_loop___at_Lean_unresolveNameGlobal_unresolveNameCore___spec__1___rarg___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_9); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_unresolveNameGlobal_unresolveNameCore___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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_Std_Range_forIn_loop___at_Lean_unresolveNameGlobal_unresolveNameCore___spec__1___rarg(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_7); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_unresolveNameGlobal___spec__1___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_ctor_get(x_4, 1); +lean_inc(x_5); +lean_dec(x_4); +x_6 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_6, 0, x_2); +x_7 = lean_apply_2(x_5, lean_box(0), x_6); +return x_7; +} +else +{ +uint8_t x_8; +lean_dec(x_2); +x_8 = !lean_is_exclusive(x_3); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_9 = lean_ctor_get(x_1, 0); +lean_inc(x_9); +lean_dec(x_1); +x_10 = lean_ctor_get(x_9, 1); +lean_inc(x_10); +lean_dec(x_9); +x_11 = lean_box(0); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_3); +lean_ctor_set(x_12, 1, x_11); +x_13 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_13, 0, x_12); +x_14 = lean_apply_2(x_10, lean_box(0), x_13); +return x_14; +} +else +{ +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; +x_15 = lean_ctor_get(x_3, 0); +lean_inc(x_15); +lean_dec(x_3); +x_16 = lean_ctor_get(x_1, 0); +lean_inc(x_16); +lean_dec(x_1); +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_18 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_18, 0, x_15); +x_19 = lean_box(0); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_19); +x_21 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_21, 0, x_20); +x_22 = lean_apply_2(x_17, lean_box(0), x_21); +return x_22; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_unresolveNameGlobal___spec__1___rarg___lambda__2(lean_object* x_1, size_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, size_t x_9, lean_object* x_10) { +_start: +{ +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +lean_dec(x_10); +x_12 = lean_ctor_get(x_1, 0); +lean_inc(x_12); +lean_dec(x_1); +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_apply_2(x_13, lean_box(0), x_11); +return x_14; +} +else +{ +lean_object* x_15; size_t x_16; size_t x_17; lean_object* x_18; +x_15 = lean_ctor_get(x_10, 0); +lean_inc(x_15); +lean_dec(x_10); +x_16 = 1; +x_17 = lean_usize_add(x_2, x_16); +x_18 = l_Array_forInUnsafe_loop___at_Lean_unresolveNameGlobal___spec__1___rarg(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_17, x_15); +return x_18; +} +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_unresolveNameGlobal___spec__1___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, size_t x_8, size_t x_9, lean_object* x_10) { +_start: +{ +uint8_t x_11; +x_11 = lean_usize_dec_lt(x_9, x_8); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_12 = lean_ctor_get(x_1, 0); +lean_inc(x_12); +lean_dec(x_1); +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_apply_2(x_13, lean_box(0), x_10); +return x_14; +} +else +{ +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_dec(x_10); +x_15 = lean_array_uget(x_7, x_9); +x_16 = lean_ctor_get(x_1, 1); +lean_inc(x_16); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_17 = l_Lean_unresolveNameGlobal_unresolveNameCore___rarg(x_1, x_2, x_3, x_4, x_15); +lean_inc(x_6); +lean_inc(x_1); +x_18 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_unresolveNameGlobal___spec__1___rarg___lambda__1), 3, 2); +lean_closure_set(x_18, 0, x_1); +lean_closure_set(x_18, 1, x_6); +lean_inc(x_5); +x_19 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_17, x_18); +x_20 = lean_box_usize(x_9); +x_21 = lean_box_usize(x_8); +x_22 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_unresolveNameGlobal___spec__1___rarg___lambda__2___boxed), 10, 9); +lean_closure_set(x_22, 0, x_1); +lean_closure_set(x_22, 1, x_20); +lean_closure_set(x_22, 2, x_2); +lean_closure_set(x_22, 3, x_3); +lean_closure_set(x_22, 4, x_4); +lean_closure_set(x_22, 5, x_5); +lean_closure_set(x_22, 6, x_6); +lean_closure_set(x_22, 7, x_7); +lean_closure_set(x_22, 8, x_21); +x_23 = lean_apply_4(x_16, lean_box(0), lean_box(0), x_19, x_22); +return x_23; +} +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_unresolveNameGlobal___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_unresolveNameGlobal___spec__1___rarg___boxed), 10, 0); +return x_2; +} +} +static lean_object* _init_l_Lean_unresolveNameGlobal___rarg___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = lean_box(0); +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; +} +} +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal___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) { +_start: +{ +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; size_t x_15; size_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +lean_inc(x_1); +x_7 = l_Lean_getRevAliases(x_6, x_1); +x_8 = l_List_redLength___rarg(x_7); +x_9 = lean_mk_empty_array_with_capacity(x_8); +lean_dec(x_8); +x_10 = l_List_toArrayAux___rarg(x_7, x_9); +x_11 = l_Lean_rootNamespace; +lean_inc(x_1); +x_12 = l_Lean_Name_append(x_11, x_1); +x_13 = lean_array_push(x_10, x_12); +x_14 = lean_array_get_size(x_13); +x_15 = lean_usize_of_nat(x_14); +lean_dec(x_14); +x_16 = 0; +x_17 = l_Lean_unresolveNameGlobal___rarg___lambda__1___closed__1; +lean_inc(x_5); +lean_inc(x_1); +lean_inc(x_2); +x_18 = l_Array_forInUnsafe_loop___at_Lean_unresolveNameGlobal___spec__1___rarg(x_2, x_3, x_4, x_1, x_5, x_17, x_13, x_15, x_16, x_17); +lean_inc(x_5); +x_19 = lean_alloc_closure((void*)(l_Lean_unresolveNameGlobal_unresolveNameCore___rarg___lambda__1), 4, 3); +lean_closure_set(x_19, 0, x_2); +lean_closure_set(x_19, 1, x_1); +lean_closure_set(x_19, 2, x_5); +x_20 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_18, x_19); +return x_20; +} +} +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +x_7 = lean_ctor_get(x_2, 0); +lean_inc(x_7); +lean_inc(x_6); +x_8 = lean_alloc_closure((void*)(l_Lean_unresolveNameGlobal___rarg___lambda__1), 6, 5); +lean_closure_set(x_8, 0, x_3); +lean_closure_set(x_8, 1, x_1); +lean_closure_set(x_8, 2, x_4); +lean_closure_set(x_8, 3, x_2); +lean_closure_set(x_8, 4, x_6); +x_9 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_7, x_8); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal___rarg___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_ctor_get(x_4, 1); +lean_inc(x_5); +lean_dec(x_4); +x_6 = lean_apply_2(x_5, lean_box(0), x_2); +return x_6; +} +else +{ +lean_object* x_7; +x_7 = lean_ctor_get(x_3, 1); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_8 = lean_ctor_get(x_3, 0); +x_9 = lean_ctor_get(x_8, 0); +x_10 = lean_name_eq(x_9, x_2); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_11 = lean_ctor_get(x_1, 0); +lean_inc(x_11); +lean_dec(x_1); +x_12 = lean_ctor_get(x_11, 1); +lean_inc(x_12); +lean_dec(x_11); +x_13 = l_Lean_rootNamespace; +x_14 = l_Lean_Name_append(x_13, x_2); +x_15 = lean_apply_2(x_12, lean_box(0), x_14); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_1, 0); +lean_inc(x_16); +lean_dec(x_1); +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_18 = lean_apply_2(x_17, lean_box(0), x_2); +return x_18; +} +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_1, 0); +lean_inc(x_19); +lean_dec(x_1); +x_20 = lean_ctor_get(x_19, 1); +lean_inc(x_20); +lean_dec(x_19); +x_21 = lean_apply_2(x_20, lean_box(0), x_2); +return x_21; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal___rarg___lambda__4(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +if (x_1 == 0) +{ +lean_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_inc(x_2); +x_7 = lean_alloc_closure((void*)(l_Lean_unresolveNameGlobal___rarg___lambda__2___boxed), 5, 4); +lean_closure_set(x_7, 0, x_2); +lean_closure_set(x_7, 1, x_3); +lean_closure_set(x_7, 2, x_4); +lean_closure_set(x_7, 3, x_5); +x_8 = lean_ctor_get(x_2, 1); +lean_inc(x_8); +x_9 = lean_ctor_get(x_2, 0); +lean_inc(x_9); +lean_dec(x_2); +x_10 = lean_ctor_get(x_9, 1); +lean_inc(x_10); +lean_dec(x_9); +x_11 = lean_box(0); +x_12 = lean_apply_2(x_10, lean_box(0), x_11); +x_13 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_12, x_7); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_14 = lean_ctor_get(x_2, 1); +lean_inc(x_14); +lean_inc(x_4); +lean_inc(x_2); +x_15 = l_Lean_resolveGlobalName___rarg(x_2, x_5, x_3, x_4); +x_16 = lean_alloc_closure((void*)(l_Lean_unresolveNameGlobal___rarg___lambda__3___boxed), 3, 2); +lean_closure_set(x_16, 0, x_2); +lean_closure_set(x_16, 1, x_4); +x_17 = lean_apply_4(x_14, lean_box(0), lean_box(0), x_15, x_16); +return x_17; +} +} +} +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_box(x_5); +lean_inc(x_4); +lean_inc(x_1); +x_7 = lean_alloc_closure((void*)(l_Lean_unresolveNameGlobal___rarg___lambda__4___boxed), 6, 5); +lean_closure_set(x_7, 0, x_6); +lean_closure_set(x_7, 1, x_1); +lean_closure_set(x_7, 2, x_3); +lean_closure_set(x_7, 3, x_4); +lean_closure_set(x_7, 4, x_2); +x_8 = l_Lean_Name_hasMacroScopes(x_4); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_dec(x_4); +x_9 = lean_ctor_get(x_1, 1); +lean_inc(x_9); +x_10 = lean_ctor_get(x_1, 0); +lean_inc(x_10); +lean_dec(x_1); +x_11 = lean_ctor_get(x_10, 1); +lean_inc(x_11); +lean_dec(x_10); +x_12 = lean_box(0); +x_13 = lean_apply_2(x_11, lean_box(0), x_12); +x_14 = lean_apply_4(x_9, lean_box(0), lean_box(0), x_13, x_7); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +lean_dec(x_7); +x_15 = lean_ctor_get(x_1, 0); +lean_inc(x_15); +lean_dec(x_1); +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +lean_dec(x_15); +x_17 = lean_apply_2(x_16, lean_box(0), x_4); +return x_17; +} +} +} +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_unresolveNameGlobal___rarg___boxed), 5, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_unresolveNameGlobal___spec__1___rarg___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* x_10) { +_start: +{ +size_t x_11; size_t x_12; lean_object* x_13; +x_11 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_12 = lean_unbox_usize(x_9); +lean_dec(x_9); +x_13 = l_Array_forInUnsafe_loop___at_Lean_unresolveNameGlobal___spec__1___rarg___lambda__2(x_1, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_12, x_10); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_unresolveNameGlobal___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +size_t x_11; size_t x_12; lean_object* x_13; +x_11 = lean_unbox_usize(x_8); +lean_dec(x_8); +x_12 = lean_unbox_usize(x_9); +lean_dec(x_9); +x_13 = l_Array_forInUnsafe_loop___at_Lean_unresolveNameGlobal___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_11, x_12, x_10); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Lean_unresolveNameGlobal___rarg___lambda__2(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_5); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal___rarg___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_unresolveNameGlobal___rarg___lambda__3(x_1, x_2, x_3); +lean_dec(x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal___rarg___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) { +_start: +{ +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_1); +lean_dec(x_1); +x_8 = l_Lean_unresolveNameGlobal___rarg___lambda__4(x_7, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_6); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_unresolveNameGlobal___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; lean_object* x_7; +x_6 = lean_unbox(x_5); +lean_dec(x_5); +x_7 = l_Lean_unresolveNameGlobal___rarg(x_1, x_2, x_3, x_4, x_6); +return x_7; +} +} lean_object* initialize_Init(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Data_OpenDecl(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Hygiene(uint8_t builtin, lean_object*); @@ -5168,6 +6183,10 @@ l_Lean_resolveGlobalConstNoOverloadCore___rarg___lambda__1___closed__1 = _init_l lean_mark_persistent(l_Lean_resolveGlobalConstNoOverloadCore___rarg___lambda__1___closed__1); l_Lean_resolveGlobalConstNoOverloadCore___rarg___lambda__1___closed__2 = _init_l_Lean_resolveGlobalConstNoOverloadCore___rarg___lambda__1___closed__2(); lean_mark_persistent(l_Lean_resolveGlobalConstNoOverloadCore___rarg___lambda__1___closed__2); +l_Std_Range_forIn_loop___at_Lean_unresolveNameGlobal_unresolveNameCore___spec__1___rarg___closed__1 = _init_l_Std_Range_forIn_loop___at_Lean_unresolveNameGlobal_unresolveNameCore___spec__1___rarg___closed__1(); +lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_unresolveNameGlobal_unresolveNameCore___spec__1___rarg___closed__1); +l_Lean_unresolveNameGlobal___rarg___lambda__1___closed__1 = _init_l_Lean_unresolveNameGlobal___rarg___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_unresolveNameGlobal___rarg___lambda__1___closed__1); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus