From 4c0785493ff3b7fdaf628b5204729d6c26972784 Mon Sep 17 00:00:00 2001 From: Leonardo de Moura Date: Sun, 18 Oct 2020 09:11:58 -0700 Subject: [PATCH] chore: update stage0 --- stage0/src/Lean/Meta/Basic.lean | 3 + stage0/src/Lean/Meta/Offset.lean | 74 +- stage0/src/Lean/Meta/RecursorInfo.lean | 234 +- stage0/src/Lean/Meta/Reduce.lean | 60 +- stage0/src/Lean/Meta/ReduceEval.lean | 65 +- stage0/src/Lean/Meta/Tactic.lean | 1 + stage0/src/Lean/Meta/TransparencyMode.lean | 7 +- stage0/stdlib/Lean/Delaborator.c | 16 +- stage0/stdlib/Lean/Elab/BuiltinNotation.c | 12 +- stage0/stdlib/Lean/Elab/Declaration.c | 4 +- stage0/stdlib/Lean/Elab/MutualDef.c | 6 +- .../Lean/Elab/PreDefinition/Structural.c | 14 +- stage0/stdlib/Lean/Elab/Term.c | 10 +- stage0/stdlib/Lean/Meta/Basic.c | 31 + stage0/stdlib/Lean/Meta/Match/Match.c | 146 +- stage0/stdlib/Lean/Meta/Offset.c | 3092 ++-- stage0/stdlib/Lean/Meta/RecursorInfo.c | 12115 +++++++++------- stage0/stdlib/Lean/Meta/Reduce.c | 1445 +- stage0/stdlib/Lean/Meta/ReduceEval.c | 5424 ++++--- stage0/stdlib/Lean/Meta/Tactic/Cases.c | 1224 +- stage0/stdlib/Lean/Meta/Tactic/Induction.c | 728 +- stage0/stdlib/Lean/Meta/TransparencyMode.c | 310 +- 22 files changed, 12922 insertions(+), 12099 deletions(-) diff --git a/stage0/src/Lean/Meta/Basic.lean b/stage0/src/Lean/Meta/Basic.lean index 749913fb84..024636754a 100644 --- a/stage0/src/Lean/Meta/Basic.lean +++ b/stage0/src/Lean/Meta/Basic.lean @@ -62,6 +62,9 @@ structure ParamInfo := instance ParamInfo.inhabited : Inhabited ParamInfo := ⟨{}⟩ +def ParamInfo.isExplicit (p : ParamInfo) : Bool := +!p.implicit && p.instImplicit + structure FunInfo := (paramInfo : Array ParamInfo := #[]) (resultDeps : Array Nat := #[]) diff --git a/stage0/src/Lean/Meta/Offset.lean b/stage0/src/Lean/Meta/Offset.lean index 8b05936107..a2a4de414b 100644 --- a/stage0/src/Lean/Meta/Offset.lean +++ b/stage0/src/Lean/Meta/Offset.lean @@ -1,3 +1,4 @@ +#lang lean4 /- Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. @@ -6,43 +7,43 @@ Authors: Leonardo de Moura import Lean.Data.LBool import Lean.Meta.InferType -namespace Lean -namespace Meta +namespace Lean.Meta partial def evalNat : Expr → Option Nat | Expr.lit (Literal.natVal n) _ => pure n | Expr.mdata _ e _ => evalNat e | Expr.const `Nat.zero _ _ => pure 0 -| e@(Expr.app _ a _) => - let fn := e.getAppFn; +| e@(Expr.app _ a _) => do + let fn := e.getAppFn match fn with | Expr.const c _ _ => - let nargs := e.getAppNumArgs; - if c == `Nat.succ && nargs == 1 then do - v ← evalNat a; pure $ v+1 - else if c == `Nat.add && nargs == 2 then do - v₁ ← evalNat (e.getArg! 0); - v₂ ← evalNat (e.getArg! 1); + let nargs := e.getAppNumArgs + if c == `Nat.succ && nargs == 1 then + let v ← evalNat a + pure $ v+1 + else if c == `Nat.add && nargs == 2 then + let v₁ ← evalNat (e.getArg! 0) + let v₂ ← evalNat (e.getArg! 1) pure $ v₁ + v₂ - else if c == `Nat.sub && nargs == 2 then do - v₁ ← evalNat (e.getArg! 0); - v₂ ← evalNat (e.getArg! 1); + else if c == `Nat.sub && nargs == 2 then + let v₁ ← evalNat (e.getArg! 0) + let v₂ ← evalNat (e.getArg! 1) pure $ v₁ - v₂ - else if c == `Nat.mul && nargs == 2 then do - v₁ ← evalNat (e.getArg! 0); - v₂ ← evalNat (e.getArg! 1); + else if c == `Nat.mul && nargs == 2 then + let v₁ ← evalNat (e.getArg! 0) + let v₂ ← evalNat (e.getArg! 1) pure $ v₁ * v₂ - else if c == `HasAdd.add && nargs == 4 then do - v₁ ← evalNat (e.getArg! 2); - v₂ ← evalNat (e.getArg! 3); + else if c == `HasAdd.add && nargs == 4 then + let v₁ ← evalNat (e.getArg! 2) + let v₂ ← evalNat (e.getArg! 3) pure $ v₁ + v₂ - else if c == `HasAdd.sub && nargs == 4 then do - v₁ ← evalNat (e.getArg! 2); - v₂ ← evalNat (e.getArg! 3); + else if c == `HasAdd.sub && nargs == 4 then + let v₁ ← evalNat (e.getArg! 2) + let v₂ ← evalNat (e.getArg! 3) pure $ v₁ - v₂ - else if c == `HasAdd.mul && nargs == 4 then do - v₁ ← evalNat (e.getArg! 2); - v₂ ← evalNat (e.getArg! 3); + else if c == `HasAdd.mul && nargs == 4 then + let v₁ ← evalNat (e.getArg! 2) + let v₂ ← evalNat (e.getArg! 3) pure $ v₁ * v₂ else if c == `HasOfNat.ofNat && nargs == 3 then evalNat (e.getArg! 2) @@ -54,20 +55,20 @@ partial def evalNat : Expr → Option Nat /- Quick function for converting `e` into `s + k` s.t. `e` is definitionally equal to `Nat.add s k`. -/ private partial def getOffsetAux : Expr → Bool → Option (Expr × Nat) | e@(Expr.app _ a _), top => - let fn := e.getAppFn; + let fn := e.getAppFn match fn with | Expr.const c _ _ => - let nargs := e.getAppNumArgs; + let nargs := e.getAppNumArgs if c == `Nat.succ && nargs == 1 then do - (s, k) ← getOffsetAux a false; + let (s, k) ← getOffsetAux a false pure (s, k+1) else if c == `Nat.add && nargs == 2 then do - v ← evalNat (e.getArg! 1); - (s, k) ← getOffsetAux (e.getArg! 0) false; + let v ← evalNat (e.getArg! 1) + let (s, k) ← getOffsetAux (e.getArg! 0) false pure (s, k+v) else if c == `HasAdd.add && nargs == 4 then do - v ← evalNat (e.getArg! 3); - (s, k) ← getOffsetAux (e.getArg! 2) false; + let v ← evalNat (e.getArg! 3) + let (s, k) ← getOffsetAux (e.getArg! 2) false pure (s, k+v) else if top then none else pure (e, 0) | _ => if top then none else pure (e, 0) @@ -78,10 +79,10 @@ getOffsetAux e true private partial def isOffset : Expr → Option (Expr × Nat) | e@(Expr.app _ a _) => - let fn := e.getAppFn; + let fn := e.getAppFn match fn with | Expr.const c _ _ => - let nargs := e.getAppNumArgs; + let nargs := e.getAppNumArgs if (c == `Nat.succ && nargs == 1) || (c == `Nat.add && nargs == 2) || (c == `HasAdd.add && nargs == 4) then getOffset e else none @@ -99,7 +100,7 @@ else if isNatZero e then mkNatLit offset else mkAppB (mkConst `Nat.add) e (mkNatLit offset) def isDefEqOffset (s t : Expr) : DefEqM LBool := -let isDefEq (s t) : DefEqM LBool := toLBoolM $ Meta.isExprDefEqAux s t; +let isDefEq (s t) : DefEqM LBool := toLBoolM $ Meta.isExprDefEqAux s t match isOffset s with | some (s, k₁) => match isOffset t with | some (t, k₂) => -- s+k₁ =?= t+k₂ @@ -119,5 +120,4 @@ match isOffset s with | none => pure LBool.undef | none => pure LBool.undef -end Meta -end Lean +end Lean.Meta diff --git a/stage0/src/Lean/Meta/RecursorInfo.lean b/stage0/src/Lean/Meta/RecursorInfo.lean index 2704e4c306..09fa5d72e9 100644 --- a/stage0/src/Lean/Meta/RecursorInfo.lean +++ b/stage0/src/Lean/Meta/RecursorInfo.lean @@ -1,3 +1,4 @@ +#lang lean4 /- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. @@ -7,8 +8,7 @@ import Lean.AuxRecursor import Lean.Util.FindExpr import Lean.Meta.ExprDefEq -namespace Lean -namespace Meta +namespace Lean.Meta def casesOnSuffix := "casesOn" def recOnSuffix := "recOn" @@ -54,8 +54,8 @@ else if info.firstIndexPos ≤ pos && pos ≤ info.majorPos then false else true def numMinors (info : RecursorInfo) : Nat := -let r := info.numArgs; -let r := r - info.motivePos - 1; +let r := info.numArgs +let r := r - info.motivePos - 1 r - (info.majorPos + 1 - info.firstIndexPos) instance : HasToString RecursorInfo := @@ -80,14 +80,14 @@ instance : HasToString RecursorInfo := end RecursorInfo private def mkRecursorInfoForKernelRec (declName : Name) (val : RecursorVal) : MetaM RecursorInfo := do -ival ← getConstInfoInduct val.getInduct; -let numLParams := ival.lparams.length; -let univLevelPos := (List.range numLParams).map RecursorUnivLevelPos.majorType; -let univLevelPos := if val.lparams.length == numLParams then univLevelPos else RecursorUnivLevelPos.motive :: univLevelPos; -let produceMotive := List.replicate val.nminors true; -let paramsPos := (List.range val.nparams).map some; -let indicesPos := (List.range val.nindices).map (fun pos => val.nparams + pos); -let numArgs := val.nindices + val.nparams + val.nminors + val.nmotives + 1; +let ival ← getConstInfoInduct val.getInduct +let numLParams := ival.lparams.length +let univLevelPos := (List.range numLParams).map RecursorUnivLevelPos.majorType +let univLevelPos := if val.lparams.length == numLParams then univLevelPos else RecursorUnivLevelPos.motive :: univLevelPos +let produceMotive := List.replicate val.nminors true +let paramsPos := (List.range val.nparams).map some +let indicesPos := (List.range val.nindices).map fun pos => val.nparams + pos +let numArgs := val.nindices + val.nparams + val.nminors + val.nmotives + 1 pure { recursorName := declName, typeName := val.getInduct, @@ -105,30 +105,29 @@ pure { private def getMajorPosIfAuxRecursor? (declName : Name) (majorPos? : Option Nat) : MetaM (Option Nat) := if majorPos?.isSome then pure majorPos? else do - env ← getEnv; + let env ← getEnv if !isAuxRecursor env declName then pure none else match declName with | Name.str p s _ => if s != recOnSuffix && s != casesOnSuffix && s != brecOnSuffix then pure none else do - val ← getConstInfoRec (mkRecFor p); + let val ← getConstInfoRec (mkRecFor p) pure $ some (val.nparams + val.nindices + (if s == casesOnSuffix then 1 else val.nmotives)) | _ => pure none -private def checkMotive (declName : Name) (motive : Expr) (motiveArgs : Array Expr) : MetaM Unit := -unless (motive.isFVar && motiveArgs.all Expr.isFVar) $ throwError - ("invalid user defined recursor '" ++ toString declName ++ "', result type must be of the form (C t), " ++ - "where C is a bound variable, and t is a (possibly empty) sequence of bound variables") +private def checkMotive (declName : Name) (motive : Expr) (motiveArgs : Array Expr) : MetaM Unit := do +unless motive.isFVar && motiveArgs.all Expr.isFVar do + throwError! "invalid user defined recursor '{declName}', result type must be of the form (C t), where C is a bound variable, and t is a (possibly empty) sequence of bound variables" /- Compute number of parameters for (user-defined) recursor. We assume a parameter is anything that occurs before the motive -/ private partial def getNumParams (xs : Array Expr) (motive : Expr) : Nat → Nat | i => if h : i < xs.size then - let x := xs.get ⟨i, h⟩; + let x := xs.get ⟨i, h⟩ if motive == x then i - else getNumParams (i+1) + else getNumParams xs motive (i+1) else i @@ -137,121 +136,107 @@ private def getMajorPosDepElim (declName : Name) (majorPos? : Option Nat) (xs : match majorPos? with | some majorPos => if h : majorPos < xs.size then - let major := xs.get ⟨majorPos, h⟩; - let depElim := motiveArgs.contains major; + let major := xs.get ⟨majorPos, h⟩ + let depElim := motiveArgs.contains major pure (major, majorPos, depElim) - else throwError - ("invalid major premise position for user defined recursor, recursor has only " ++ toString xs.size ++ " arguments") + else throwError! "invalid major premise position for user defined recursor, recursor has only {xs.size} arguments" | none => do - when motiveArgs.isEmpty $ throwError - ("invalid user defined recursor, '" ++ toString declName ++ "' does not support dependent elimination, " ++ - "and position of the major premise was not specified " ++ - "(solution: set attribute '[recursor ]', where is the position of the major premise)"); - let major := motiveArgs.back; + if motiveArgs.isEmpty then + throwError! "invalid user defined recursor, '{declName}' does not support dependent elimination, and position of the major premise was not specified (solution: set attribute '[recursor ]', where is the position of the major premise)" + let major := motiveArgs.back match xs.getIdx? major with | some majorPos => pure (major, majorPos, true) - | none => throwError ("ill-formed recursor '" ++ toString declName ++ "'") + | none => throwError! "ill-formed recursor '{declName}'" private def getParamsPos (declName : Name) (xs : Array Expr) (numParams : Nat) (Iargs : Array Expr) : MetaM (List (Option Nat)) := do -paramsPos ← numParams.foldM - (fun i (paramsPos : Array (Option Nat)) => do - let x := xs.get! i; - j? ← Iargs.findIdxM? $ fun Iarg => isDefEq Iarg x; - match j? with - | some j => pure $ paramsPos.push (some j) - | none => do - localDecl ← getLocalDecl x.fvarId!; - if localDecl.binderInfo.isInstImplicit then - pure $ paramsPos.push none - else - throwError - ("invalid user defined recursor '" ++ toString declName ++ "' , type of the major premise does not contain the recursor parameter")) - #[]; +let paramsPos := #[] +for i in [:numParams] do + let x := xs[i] + match (← Iargs.findIdxM? fun Iarg => isDefEq Iarg x) with + | some j => paramsPos := paramsPos.push (some j) + | none => do + let localDecl ← getLocalDecl x.fvarId! + if localDecl.binderInfo.isInstImplicit then + paramsPos := paramsPos.push none + else + throwError!"invalid user defined recursor '{declName}', type of the major premise does not contain the recursor parameter" pure paramsPos.toList private def getIndicesPos (declName : Name) (xs : Array Expr) (majorPos numIndices : Nat) (Iargs : Array Expr) : MetaM (List Nat) := do -indicesPos ← numIndices.foldM - (fun i (indicesPos : Array Nat) => do - let i := majorPos - numIndices + i; - let x := xs.get! i; - -- trace! `Meta ("getIndicesPos " ++ toString i ++ ": " ++ x); - j? ← Iargs.findIdxM? $ fun Iarg => isDefEq Iarg x; - match j? with - | some j => pure $ indicesPos.push j - | none => throwError - ("invalid user defined recursor '" ++ toString declName ++ "' , type of the major premise does not contain the recursor index")) - #[]; +let indicesPos := #[] +for i in [:numIndices] do + let i := majorPos - numIndices + i + let x := xs[i] + match (← Iargs.findIdxM? fun Iarg => isDefEq Iarg x) with + | some j => indicesPos := indicesPos.push j + | none => throwError! "invalid user defined recursor '{declName}', type of the major premise does not contain the recursor index" pure indicesPos.toList private def getMotiveLevel (declName : Name) (motiveResultType : Expr) : MetaM Level := match motiveResultType with | Expr.sort u@(Level.zero _) _ => pure u | Expr.sort u@(Level.param _ _) _ => pure u -| _ => throwError - ("invalid user defined recursor '" ++ toString declName ++ "' , motive result sort must be Prop or (Sort u) where u is a universe level parameter") +| _ => + throwError! "invalid user defined recursor '{declName}', motive result sort must be Prop or (Sort u) where u is a universe level parameter" private def getUnivLevelPos (declName : Name) (lparams : List Name) (motiveLvl : Level) (Ilevels : List Level) : MetaM (List RecursorUnivLevelPos) := do -let Ilevels := Ilevels.toArray; -univLevelPos ← lparams.foldlM - (fun (univLevelPos : Array RecursorUnivLevelPos) p => - if motiveLvl == mkLevelParam p then - pure $ univLevelPos.push RecursorUnivLevelPos.motive - else - match Ilevels.findIdx? $ fun u => u == mkLevelParam p with - | some i => pure $ univLevelPos.push $ RecursorUnivLevelPos.majorType i - | none => throwError - ("invalid user defined recursor '" ++ toString declName ++ "' , major premise type does not contain universe level parameter '" ++ toString p ++ "'")) - #[]; +let Ilevels := Ilevels.toArray +let univLevelPos := #[] +for p in lparams do + if motiveLvl == mkLevelParam p then + univLevelPos := univLevelPos.push RecursorUnivLevelPos.motive + else + match Ilevels.findIdx? fun u => u == mkLevelParam p with + | some i => univLevelPos := univLevelPos.push (RecursorUnivLevelPos.majorType i) + | none => + throwError! "invalid user defined recursor '{declName}', major premise type does not contain universe level parameter '{p}'" pure univLevelPos.toList private def getProduceMotiveAndRecursive (xs : Array Expr) (numParams numIndices majorPos : Nat) (motive : Expr) : MetaM (List Bool × Bool) := do -(produceMotive, rec) ← xs.size.foldM - (fun i (p : Array Bool × Bool) => - if i < numParams + 1 then pure p -- skip parameters and motive - else if majorPos - numIndices ≤ i && i ≤ majorPos then pure p -- skip indices and major premise - else do -- process minor premise - let (produceMotive, rec) := p; - let x := xs.get! i; - xType ← inferType x; - forallTelescopeReducing xType $ fun minorArgs minorResultType => minorResultType.withApp $ fun res _ => do - -- trace! `Meta ("xType: " ++ xType ++ ", motive: " ++ motive ++ ", " ++ minorArgs ++ ", " ++ res); - let produceMotive := produceMotive.push (res == motive); - rec ← if rec then pure rec else minorArgs.anyM $ fun minorArg => do { - minorArgType ← inferType minorArg; - pure $ (minorArgType.find? $ fun e => e == motive).isSome - }; - pure (produceMotive, rec)) - (#[], false); -pure (produceMotive.toList, rec) +let produceMotive := #[] +let recursor := false +for i in [:xs.size] do + if i < numParams + 1 then + continue --skip parameters and motive + if majorPos - numIndices ≤ i && i ≤ majorPos then + continue -- skip indices and major premise + -- process minor premise + let x := xs[i] + let xType ← inferType x + (produceMotive, recursor) ← forallTelescopeReducing xType fun minorArgs minorResultType => minorResultType.withApp fun res _ => do + let produceMotive := produceMotive.push (res == motive) + let recursor ← if recursor then pure recursor else minorArgs.anyM fun minorArg => do + let minorArgType ← inferType minorArg + pure (minorArgType.find? fun e => e == motive).isSome + pure (produceMotive, recursor) +pure (produceMotive.toList, recursor) -private def checkMotiveResultType (declName : Name) (motiveArgs : Array Expr) (motiveResultType : Expr) (motiveTypeParams : Array Expr) : MetaM Unit := -when (!motiveResultType.isSort || motiveArgs.size != motiveTypeParams.size) $ throwError - ("invalid user defined recursor '" ++ toString declName ++ "', motive must have a type of the form " - ++ "(C : Pi (i : B A), I A i -> Type), where A is (possibly empty) sequence of variables (aka parameters), " - ++ "(i : B A) is a (possibly empty) telescope (aka indices), and I is a constant") +private def checkMotiveResultType (declName : Name) (motiveArgs : Array Expr) (motiveResultType : Expr) (motiveTypeParams : Array Expr) : MetaM Unit := do +if !motiveResultType.isSort || motiveArgs.size != motiveTypeParams.size then + throwError! "invalid user defined recursor '{declName}', motive must have a type of the form (C : Pi (i : B A), I A i -> Type), where A is (possibly empty) sequence of variables (aka parameters), (i : B A) is a (possibly empty) telescope (aka indices), and I is a constant" private def mkRecursorInfoAux (cinfo : ConstantInfo) (majorPos? : Option Nat) : MetaM RecursorInfo := do -let declName := cinfo.name; -majorPos? ← getMajorPosIfAuxRecursor? declName majorPos?; -forallTelescopeReducing cinfo.type $ fun xs type => type.withApp $ fun motive motiveArgs => do - checkMotive declName motive motiveArgs; - let numParams := getNumParams xs motive 0; - (major, majorPos, depElim) ← getMajorPosDepElim declName majorPos? xs motive motiveArgs; - let numIndices := if depElim then motiveArgs.size - 1 else motiveArgs.size; - when (majorPos < numIndices) $ throwError - ("invalid user defined recursor '" ++ toString declName ++ "', indices must occur before major premise"); - majorType ← inferType major; - majorType.withApp $ fun I Iargs => +let declName := cinfo.name +let majorPos? ← getMajorPosIfAuxRecursor? declName majorPos? +forallTelescopeReducing cinfo.type fun xs type => type.withApp fun motive motiveArgs => do + checkMotive declName motive motiveArgs + let numParams := getNumParams xs motive 0 + let (major, majorPos, depElim) ← getMajorPosDepElim declName majorPos? xs motive motiveArgs + let numIndices := if depElim then motiveArgs.size - 1 else motiveArgs.size + if majorPos < numIndices then + throwError! "invalid user defined recursor '{declName}', indices must occur before major premise" + let majorType ← inferType major + majorType.withApp fun I Iargs => match I with | Expr.const Iname Ilevels _ => do - paramsPos ← getParamsPos declName xs numParams Iargs; - indicesPos ← getIndicesPos declName xs majorPos numIndices Iargs; - motiveType ← inferType motive; - forallTelescopeReducing motiveType $ fun motiveTypeParams motiveResultType => do - checkMotiveResultType declName motiveArgs motiveResultType motiveTypeParams; - motiveLvl ← getMotiveLevel declName motiveResultType; - univLevelPos ← getUnivLevelPos declName cinfo.lparams motiveLvl Ilevels; - (produceMotive, recursive) ← getProduceMotiveAndRecursive xs numParams numIndices majorPos motive; + let paramsPos ← getParamsPos declName xs numParams Iargs + let indicesPos ← getIndicesPos declName xs majorPos numIndices Iargs + let motiveType ← inferType motive + forallTelescopeReducing motiveType fun motiveTypeParams motiveResultType => do + checkMotiveResultType declName motiveArgs motiveResultType motiveTypeParams + let motiveLvl ← getMotiveLevel declName motiveResultType + let univLevelPos ← getUnivLevelPos declName cinfo.lparams motiveLvl Ilevels + let (produceMotive, recursive) ← getProduceMotiveAndRecursive xs numParams numIndices majorPos motive pure { recursorName := declName, typeName := Iname, @@ -264,15 +249,13 @@ forallTelescopeReducing cinfo.type $ fun xs type => type.withApp $ fun motive mo indicesPos := indicesPos, numArgs := xs.size } - | _ => throwError - ("invalid user defined recursor '" ++ toString declName - ++ "', type of the major premise must be of the form (I ...), where I is a constant") + | _ => throwError! "invalid user defined recursor '{declName}', type of the major premise must be of the form (I ...), where I is a constant" private def syntaxToMajorPos (stx : Syntax) : Except String Nat := match stx with | Syntax.node _ args => if args.size == 0 then Except.error "unexpected kind of argument" - else match (args.get! 0).isNatLit? with + else match args[0].isNatLit? with | some idx => if idx == 0 then Except.error "major premise position must be greater than 0" else pure (idx - 1) @@ -280,30 +263,27 @@ match stx with | _ => Except.error "unexpected kind of argument" private def mkRecursorInfoCore (declName : Name) (majorPos? : Option Nat := none) : MetaM RecursorInfo := do -cinfo ← getConstInfo declName; +let cinfo ← getConstInfo declName match cinfo with | ConstantInfo.recInfo val => mkRecursorInfoForKernelRec declName val | _ => mkRecursorInfoAux cinfo majorPos? -def mkRecursorAttr : IO (ParametricAttribute Nat) := -registerParametricAttribute `recursor "user defined recursor, numerical parameter specifies position of the major premise" - (fun _ stx => ofExcept $ syntaxToMajorPos stx) - (fun declName majorPos => do - liftM $ (mkRecursorInfoCore declName (some majorPos)).run'; - pure ()) - -@[init mkRecursorAttr] constant recursorAttribute : ParametricAttribute Nat := arbitrary _ +initialize recursorAttribute : ParametricAttribute Nat ← + registerParametricAttribute `recursor "user defined recursor, numerical parameter specifies position of the major premise" + (fun _ stx => ofExcept $ syntaxToMajorPos stx) + (fun declName majorPos => do + (mkRecursorInfoCore declName (some majorPos)).run' + pure ()) def getMajorPos? (env : Environment) (declName : Name) : Option Nat := recursorAttribute.getParam env declName def mkRecursorInfo (declName : Name) (majorPos? : Option Nat := none) : MetaM RecursorInfo := do -cinfo ← getConstInfo declName; +let cinfo ← getConstInfo declName match cinfo with | ConstantInfo.recInfo val => mkRecursorInfoForKernelRec declName val | _ => match majorPos? with - | none => do env ← getEnv; mkRecursorInfoAux cinfo (getMajorPos? env declName) + | none => do mkRecursorInfoAux cinfo (getMajorPos? (← getEnv) declName) | _ => mkRecursorInfoAux cinfo majorPos? -end Meta -end Lean +end Lean.Meta diff --git a/stage0/src/Lean/Meta/Reduce.lean b/stage0/src/Lean/Meta/Reduce.lean index 5f60df5268..589eafe0fe 100644 --- a/stage0/src/Lean/Meta/Reduce.lean +++ b/stage0/src/Lean/Meta/Reduce.lean @@ -1,3 +1,4 @@ +#lang lean4 /- Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. @@ -6,38 +7,33 @@ Authors: Leonardo de Moura import Lean.Meta.Basic import Lean.Meta.FunInfo -namespace Lean -namespace Meta +namespace Lean.Meta -partial def reduceAux (explicitOnly : Bool) (skipTypes : Bool) (skipProofs : Bool) : Expr → MetaM Expr -| e => do - condM (pure skipTypes <&&> isType e) (pure e) $ - condM (pure skipProofs <&&> isProof e) (pure e) $ do - e ← whnf e; +partial def reduce (e : Expr) (explicitOnly skipTypes skipProofs := true) : MetaM Expr := +let rec visit (e : Expr) := do + if (← (pure skipTypes <&&> isType e)) then + pure e + else if (← (pure skipProofs <&&> isProof e)) then + pure e + else + let e ← whnf e match e with - | Expr.app _ _ _ => do - let f := e.getAppFn; - let nargs := e.getAppNumArgs; - finfo ← getFunInfoNArgs f nargs; - let args := e.getAppArgs; - args ← args.size.foldM - (fun i (args : Array Expr) => - if h : i < finfo.paramInfo.size then - let info := finfo.paramInfo.get ⟨i, h⟩; - if explicitOnly && (info.implicit || info.instImplicit) then - pure args - else - args.modifyM i reduceAux - else - args.modifyM i reduceAux) - args; - pure $ mkAppN f args - | Expr.lam _ _ _ _ => lambdaTelescope e $ fun xs b => do b ← reduceAux b; mkLambdaFVars xs b - | Expr.forallE _ _ _ _ => forallTelescope e $ fun xs b => do b ← reduceAux b; mkForallFVars xs b - | _ => pure e + | Expr.app .. => + let f := e.getAppFn + let nargs := e.getAppNumArgs + let finfo ← getFunInfoNArgs f nargs + let args := e.getAppArgs + for i in [:args.size] do + if i < finfo.paramInfo.size then + let info := finfo.paramInfo[i] + if !explicitOnly || info.isExplicit then + args ← args.modifyM i visit + else + args ← args.modifyM i visit + pure (mkAppN f args) + | Expr.lam .. => lambdaTelescope e fun xs b => do mkLambdaFVars xs (← visit b) + | Expr.forallE .. => forallTelescope e fun xs b => do mkForallFVars xs (← visit b) + | _ => pure e +visit e -def reduce (e : Expr) (explicitOnly skipTypes skipProofs := true) : MetaM Expr := -reduceAux explicitOnly skipTypes skipProofs e - -end Meta -end Lean +end Lean.Meta diff --git a/stage0/src/Lean/Meta/ReduceEval.lean b/stage0/src/Lean/Meta/ReduceEval.lean index c45d8b333f..634e5fba8d 100644 --- a/stage0/src/Lean/Meta/ReduceEval.lean +++ b/stage0/src/Lean/Meta/ReduceEval.lean @@ -1,3 +1,4 @@ +#lang lean4 /- Copyright (c) 2020 Sebastian Ullrich. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. @@ -8,8 +9,7 @@ Authors: Sebastian Ullrich import Lean.Meta.Offset -namespace Lean -namespace Meta +namespace Lean.Meta class HasReduceEval (α : Type) := (reduceEval : Expr → MetaM α) @@ -18,44 +18,45 @@ def reduceEval {α : Type} [HasReduceEval α] (e : Expr) : MetaM α := withAtLeastTransparency TransparencyMode.default $ HasReduceEval.reduceEval e -instance Nat.hasReduceEval : HasReduceEval Nat := ⟨fun e => do -e ← whnf e; -some n ← pure $ evalNat e - | throwError $ "reduceEval: failed to evaluate argument: " ++ toString e; -pure n⟩ +private def throwFailedToEval {α} (e : Expr) : MetaM α := +throwError! "reduceEval: failed to evaluate argument{indentExpr e}" -instance Option.hasReduceEval {α : Type} [HasReduceEval α] : HasReduceEval (Option α) := ⟨fun e => do -e ← whnf e; -Expr.const c _ _ ← pure e.getAppFn - | throwError $ "reduceEval: failed to evaluate argument: " ++ toString e; -let nargs := e.getAppNumArgs; -if c == `Option.none && nargs == 0 then pure none -else if c == `Option.some && nargs == 1 then some <$> reduceEval e.appArg! -else throwError $ "reduceEval: failed to evaluate argument: " ++ toString e⟩ +instance : HasReduceEval Nat := +⟨fun e => do + let e ← whnf e + let some n ← pure $ evalNat e | throwFailedToEval e + pure n⟩ -instance String.hasReduceEval : HasReduceEval String := ⟨fun e => do -Expr.lit (Literal.strVal s) _ ← whnf e - | throwError $ "reduceEval: failed to evaluate argument: " ++ toString e; -pure s⟩ +instance {α : Type} [HasReduceEval α] : HasReduceEval (Option α) := +⟨fun e => do + let e ← whnf e + let Expr.const c .. ← pure e.getAppFn | throwFailedToEval e + let nargs := e.getAppNumArgs + if c == `Option.none && nargs == 0 then pure none + else if c == `Option.some && nargs == 1 then some <$> reduceEval e.appArg! + else throwFailedToEval e⟩ -private partial def evalName : Expr → MetaM Name | e => do -e ← whnf e; -Expr.const c _ _ ← pure e.getAppFn - | throwError $ "reduceEval: failed to evaluate argument: " ++ toString e; -let nargs := e.getAppNumArgs; +instance : HasReduceEval String := +⟨fun e => do + let Expr.lit (Literal.strVal s) _ ← whnf e | throwFailedToEval e + pure s⟩ + +private partial def evalName (e : Expr) : MetaM Name := do +let e ← whnf e +let Expr.const c _ _ ← pure e.getAppFn | throwFailedToEval e +let nargs := e.getAppNumArgs if c == `Lean.Name.anonymous && nargs == 0 then pure Name.anonymous else if c == `Lean.Name.str && nargs == 3 then do - n ← evalName $ e.getArg! 0; - s ← reduceEval $ e.getArg! 1; + let n ← evalName $ e.getArg! 0 + let s ← reduceEval $ e.getArg! 1 pure $ mkNameStr n s else if c == `Lean.Name.num && nargs == 3 then do - n ← evalName $ e.getArg! 0; - u ← reduceEval $ e.getArg! 1; + let n ← evalName $ e.getArg! 0 + let u ← reduceEval $ e.getArg! 1 pure $ mkNameNum n u else - throwError $ "reduceEval: failed to evaluate argument: " ++ toString e + throwFailedToEval e -instance Name.hasReduceEval : HasReduceEval Name := ⟨evalName⟩ +instance : HasReduceEval Name := ⟨evalName⟩ -end Meta -end Lean +end Lean.Meta diff --git a/stage0/src/Lean/Meta/Tactic.lean b/stage0/src/Lean/Meta/Tactic.lean index c06dab4c1b..a262b596a7 100644 --- a/stage0/src/Lean/Meta/Tactic.lean +++ b/stage0/src/Lean/Meta/Tactic.lean @@ -1,3 +1,4 @@ +#lang lean4 /- Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. diff --git a/stage0/src/Lean/Meta/TransparencyMode.lean b/stage0/src/Lean/Meta/TransparencyMode.lean index 4cc204299c..5986f051bf 100644 --- a/stage0/src/Lean/Meta/TransparencyMode.lean +++ b/stage0/src/Lean/Meta/TransparencyMode.lean @@ -1,10 +1,10 @@ +#lang lean4 /- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ -namespace Lean -namespace Meta +namespace Lean.Meta inductive TransparencyMode | all | default | reducible @@ -35,5 +35,4 @@ def lt : TransparencyMode → TransparencyMode → Bool end TransparencyMode -end Meta -end Lean +end Lean.Meta diff --git a/stage0/stdlib/Lean/Delaborator.c b/stage0/stdlib/Lean/Delaborator.c index ba944e5abd..6cb1d6d334 100644 --- a/stage0/stdlib/Lean/Delaborator.c +++ b/stage0/stdlib/Lean/Delaborator.c @@ -257,6 +257,7 @@ lean_object* l_Lean_Delaborator_delabseqLeft(lean_object*, lean_object*, lean_ob uint8_t l_Lean_getPPStructureProjections(lean_object*); extern lean_object* l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_301____closed__4; lean_object* l_Lean_Delaborator_delabAndThen___closed__1; +extern lean_object* l_Lean_Meta_evalNat___closed__8; lean_object* l_Lean_Delaborator_liftMetaM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Delaborator_DelabM_monadQuotation___closed__1; lean_object* l_Std_AssocList_find_x3f___at_Lean_Delaborator_delabFor___main___spec__6___boxed(lean_object*, lean_object*); @@ -578,7 +579,6 @@ lean_object* l___regBuiltin_Lean_Delaborator_delabOrM___closed__2; lean_object* l_Lean_Delaborator_delabEq___lambda__1___closed__2; lean_object* l_Lean_Delaborator_delabIff___lambda__1___closed__2; lean_object* l_Lean_Delaborator_delabModN___lambda__1___closed__4; -extern lean_object* l_Lean_Meta_evalNat___main___closed__6; lean_object* l___private_Lean_Delaborator_5__getUnusedName___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkAppStx___closed__6; lean_object* l_Lean_Delaborator_withBindingBody___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -694,6 +694,7 @@ lean_object* l___regBuiltin_Lean_Delaborator_delabAndThen___closed__3; lean_object* l___regBuiltin_Lean_Delaborator_delabseq___closed__1; extern lean_object* l_Lean_Expr_heq_x3f___closed__1; lean_object* l___regBuiltin_Lean_Delaborator_delabSub___closed__1; +extern lean_object* l_Lean_Meta_evalNat___closed__6; lean_object* l_Lean_Delaborator_delabHEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Delaborator_delabHEq___lambda__1___closed__5; lean_object* l_Lean_Delaborator_delabIff___lambda__1___closed__4; @@ -744,7 +745,6 @@ lean_object* l_Lean_Delaborator_delabLetE(lean_object*, lean_object*, lean_objec lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Delaborator_delabEquiv___lambda__1___closed__3; extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__29; -extern lean_object* l_Lean_Meta_evalNat___main___closed__4; lean_object* l_Lean_Expr_bindingName_x21(lean_object*); extern lean_object* l_Lean_Expr_ctorName___closed__10; lean_object* l_Lean_Delaborator_delabBOr___lambda__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -795,7 +795,6 @@ lean_object* l_Lean_Level_quote___main___lambda__5(lean_object*, lean_object*, l lean_object* l_Lean_SMap_find_x3f___at_Lean_Delaborator_delabFor___main___spec__1(lean_object*, lean_object*); extern lean_object* l_Lean_setOptionFromString___closed__1; lean_object* l_Lean_getPPUniverses___closed__2; -extern lean_object* l_Lean_Meta_evalNat___main___closed__9; lean_object* l___private_Lean_Delaborator_2__unresolveUsingNamespace(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Level_quote___main___lambda__4___closed__2; lean_object* l___regBuiltin_Lean_Delaborator_delabEquiv___closed__5; @@ -885,6 +884,7 @@ lean_object* l_Lean_Delaborator_delabSort___closed__9; lean_object* l_Lean_Delaborator_delabInfixOp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Delaborator_delabMul___closed__1; lean_object* l_Lean_Name_getRoot___main(lean_object*); +extern lean_object* l_Lean_Meta_evalNat___closed__1; lean_object* l_Lean_getPPNotation___closed__2; lean_object* l_Std_RBNode_find___main___at_Lean_Delaborator_getPPOption___spec__1(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Delaborator_delabLit___closed__1; @@ -16934,7 +16934,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Delaborator_getExprKind___closed__5; -x_2 = l_Lean_Meta_evalNat___main___closed__6; +x_2 = l_Lean_Meta_evalNat___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -20048,7 +20048,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_mkAppStx___closed__6; -x_2 = l_Lean_Meta_evalNat___main___closed__9; +x_2 = l_Lean_Meta_evalNat___closed__8; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -20139,7 +20139,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___regBuiltin_Lean_Delaborator_delabSub___closed__2; -x_2 = l_Lean_Meta_evalNat___main___closed__9; +x_2 = l_Lean_Meta_evalNat___closed__8; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -20168,7 +20168,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_mkAppStx___closed__6; -x_2 = l_Lean_Meta_evalNat___main___closed__4; +x_2 = l_Lean_Meta_evalNat___closed__6; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -20259,7 +20259,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___regBuiltin_Lean_Delaborator_delabMul___closed__2; -x_2 = l_Lean_Meta_evalNat___main___closed__4; +x_2 = l_Lean_Meta_evalNat___closed__6; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } diff --git a/stage0/stdlib/Lean/Elab/BuiltinNotation.c b/stage0/stdlib/Lean/Elab/BuiltinNotation.c index 35f4396280..6e247d786f 100644 --- a/stage0/stdlib/Lean/Elab/BuiltinNotation.c +++ b/stage0/stdlib/Lean/Elab/BuiltinNotation.c @@ -165,6 +165,7 @@ lean_object* l_Lean_Expr_getAppFn___main(lean_object*); lean_object* l_Lean_Elab_Term_expandDbgTrace___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_getAppArgs___closed__1; extern lean_object* l___private_Lean_Meta_DiscrTree_6__shouldAddAsStar___closed__9; +extern lean_object* l_Lean_Meta_evalNat___closed__8; lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__9; lean_object* l___regBuiltin_Lean_Elab_Term_expandAndM___closed__1; lean_object* l_Lean_Elab_Term_mkAuxName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -486,6 +487,7 @@ lean_object* l_Lean_Elab_Term_elabAnonymousCtor_match__2(lean_object*); extern lean_object* l_Lean_boolToExpr___lambda__1___closed__6; extern lean_object* l_Lean_Elab_Term_termElabAttribute; lean_object* l___regBuiltin_Lean_Elab_Term_expandMapRev(lean_object*); +extern lean_object* l_Lean_Meta_evalNat___closed__6; lean_object* l___regBuiltin_Lean_Elab_Term_expandEquiv___closed__3; lean_object* l_Lean_Elab_Term_ExpandFComp___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkAtomFrom(lean_object*, lean_object*); @@ -517,7 +519,6 @@ lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParser lean_object* l___regBuiltin_Lean_Elab_Term_expandShow(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_expandSubtype___closed__1; extern lean_object* l_Lean_Elab_macroAttribute; -extern lean_object* l_Lean_Meta_evalNat___main___closed__4; lean_object* l_Lean_Elab_Term_elabParserMacro(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandSubtype___closed__2; lean_object* l_Lean_Elab_Term_expandHave___closed__7; @@ -551,7 +552,6 @@ lean_object* l_Lean_Elab_Term_expandOr___closed__2; lean_object* l___regBuiltin_Lean_Elab_Term_expandAdd(lean_object*); lean_object* l_Lean_Elab_getRefPos___at_Lean_Elab_Term_elabPanic___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandEmptyC___closed__7; -extern lean_object* l_Lean_Meta_evalNat___main___closed__9; lean_object* l___regBuiltin_Lean_Elab_Term_expandCons(lean_object*); lean_object* l_Lean_Elab_Term_expandMap___closed__2; lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -7824,7 +7824,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Term_expandSub___closed__2; -x_2 = l_Lean_Meta_evalNat___main___closed__9; +x_2 = l_Lean_Meta_evalNat___closed__8; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -7853,7 +7853,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_mkAppStx___closed__6; -x_2 = l_Lean_Meta_evalNat___main___closed__9; +x_2 = l_Lean_Meta_evalNat___closed__8; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -7900,7 +7900,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Term_expandMul___closed__2; -x_2 = l_Lean_Meta_evalNat___main___closed__4; +x_2 = l_Lean_Meta_evalNat___closed__6; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -7929,7 +7929,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_mkAppStx___closed__6; -x_2 = l_Lean_Meta_evalNat___main___closed__4; +x_2 = l_Lean_Meta_evalNat___closed__6; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } diff --git a/stage0/stdlib/Lean/Elab/Declaration.c b/stage0/stdlib/Lean/Elab/Declaration.c index 5feb2a8eba..74d582fc65 100644 --- a/stage0/stdlib/Lean/Elab/Declaration.c +++ b/stage0/stdlib/Lean/Elab/Declaration.c @@ -185,7 +185,6 @@ lean_object* l_Lean_Elab_Command_expandInitialize___closed__17; lean_object* l_Lean_Elab_Command_expandInitialize___closed__1; lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___closed__1; lean_object* l_Lean_Elab_Command_expandInitialize___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_expandArrayLit___closed__11; extern lean_object* l_Lean_Elab_Command_isDefLike___closed__9; @@ -348,6 +347,7 @@ lean_object* l_Lean_Elab_Command_expandMutualElement_match__2___rarg(lean_object uint8_t l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualInductive(lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__42; lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__4; lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidInductiveModifier(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); @@ -5273,7 +5273,7 @@ x_7 = lean_array_get_size(x_6); x_8 = lean_usize_of_nat(x_7); lean_dec(x_7); x_9 = 0; -x_10 = l___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___closed__1; +x_10 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__4; x_11 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualElement___spec__1(x_6, x_8, x_9, x_10, x_2, x_3); lean_dec(x_6); if (lean_obj_tag(x_11) == 0) diff --git a/stage0/stdlib/Lean/Elab/MutualDef.c b/stage0/stdlib/Lean/Elab/MutualDef.c index f9d632cd43..99250aeac9 100644 --- a/stage0/stdlib/Lean/Elab/MutualDef.c +++ b/stage0/stdlib/Lean/Elab/MutualDef.c @@ -349,7 +349,6 @@ lean_object* l_Lean_mkFVar(lean_object*); uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); lean_object* l_Lean_Elab_mkDeclName___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___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___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkModifiers___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__3___closed__3; size_t lean_usize_of_nat(lean_object*); lean_object* l_Nat_foldMAux___main___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap_match__1(lean_object*); @@ -554,6 +553,7 @@ lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__3 uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_isTheorem___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_elabAttr___rarg___lambda__3___closed__2; +extern lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___lambda__1___closed__3; lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__2(lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Elab_mkDeclName___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -2616,7 +2616,7 @@ if (lean_obj_tag(x_16) == 0) lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; x_17 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_17, 0, x_1); -x_18 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__3___closed__3; +x_18 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___lambda__1___closed__3; x_19 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_19, 0, x_18); lean_ctor_set(x_19, 1, x_17); @@ -3040,7 +3040,7 @@ x_16 = l_Lean_Elab_mkDeclName___rarg___closed__2; x_17 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_17, 0, x_16); lean_ctor_set(x_17, 1, x_15); -x_18 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__3___closed__3; +x_18 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___lambda__1___closed__3; x_19 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_19, 0, x_17); lean_ctor_set(x_19, 1, x_18); diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/Structural.c b/stage0/stdlib/Lean/Elab/PreDefinition/Structural.c index 13efc8e0b7..0918328d68 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/Structural.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/Structural.c @@ -58,7 +58,6 @@ lean_object* l_Lean_Meta_MatcherApp_addArg(lean_object*, lean_object*, lean_obje lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___closed__2; lean_object* l_Lean_hasConst___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Std_HashMap_inhabited___closed__1; -lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_generalizeIndices___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_ensureNoRecFn___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__16; @@ -71,6 +70,7 @@ lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_elimRec lean_object* l_Array_filterAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__3___lambda__2___closed__1; +lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadParamDep_x3f_match__1(lean_object*); lean_object* lean_environment_find(lean_object*, lean_object*); lean_object* l_Lean_addTrace___at_Lean_Meta_substCore___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -7014,7 +7014,7 @@ x_25 = lean_alloc_closure((void*)(l___private_Lean_Elab_PreDefinition_Structural lean_closure_set(x_25, 0, x_3); lean_closure_set(x_25, 1, x_4); lean_closure_set(x_25, 2, x_1); -x_26 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_generalizeIndices___spec__1___rarg(x_11, x_25, x_5, x_6, x_7, x_8, x_13); +x_26 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__5___rarg(x_11, x_25, x_5, x_6, x_7, x_8, x_13); return x_26; } else @@ -7408,7 +7408,7 @@ x_113 = lean_alloc_closure((void*)(l___private_Lean_Elab_PreDefinition_Structura lean_closure_set(x_113, 0, x_3); lean_closure_set(x_113, 1, x_4); lean_closure_set(x_113, 2, x_1); -x_114 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_generalizeIndices___spec__1___rarg(x_11, x_113, x_5, x_6, x_7, x_8, x_13); +x_114 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__5___rarg(x_11, x_113, x_5, x_6, x_7, x_8, x_13); return x_114; } } @@ -7421,7 +7421,7 @@ x_115 = lean_alloc_closure((void*)(l___private_Lean_Elab_PreDefinition_Structura lean_closure_set(x_115, 0, x_3); lean_closure_set(x_115, 1, x_4); lean_closure_set(x_115, 2, x_1); -x_116 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_generalizeIndices___spec__1___rarg(x_11, x_115, x_5, x_6, x_7, x_8, x_13); +x_116 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__5___rarg(x_11, x_115, x_5, x_6, x_7, x_8, x_13); return x_116; } } @@ -7434,7 +7434,7 @@ x_117 = lean_alloc_closure((void*)(l___private_Lean_Elab_PreDefinition_Structura lean_closure_set(x_117, 0, x_3); lean_closure_set(x_117, 1, x_4); lean_closure_set(x_117, 2, x_1); -x_118 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_generalizeIndices___spec__1___rarg(x_11, x_117, x_5, x_6, x_7, x_8, x_13); +x_118 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__5___rarg(x_11, x_117, x_5, x_6, x_7, x_8, x_13); return x_118; } } @@ -7446,7 +7446,7 @@ x_119 = lean_alloc_closure((void*)(l___private_Lean_Elab_PreDefinition_Structura lean_closure_set(x_119, 0, x_3); lean_closure_set(x_119, 1, x_4); lean_closure_set(x_119, 2, x_1); -x_120 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_generalizeIndices___spec__1___rarg(x_11, x_119, x_5, x_6, x_7, x_8, x_13); +x_120 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__5___rarg(x_11, x_119, x_5, x_6, x_7, x_8, x_13); return x_120; } } @@ -7457,7 +7457,7 @@ x_121 = lean_alloc_closure((void*)(l___private_Lean_Elab_PreDefinition_Structura lean_closure_set(x_121, 0, x_3); lean_closure_set(x_121, 1, x_4); lean_closure_set(x_121, 2, x_1); -x_122 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_generalizeIndices___spec__1___rarg(x_11, x_121, x_5, x_6, x_7, x_8, x_13); +x_122 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__5___rarg(x_11, x_121, x_5, x_6, x_7, x_8, x_13); return x_122; } } diff --git a/stage0/stdlib/Lean/Elab/Term.c b/stage0/stdlib/Lean/Elab/Term.c index 76c1db96af..4a227e9b01 100644 --- a/stage0/stdlib/Lean/Elab/Term.c +++ b/stage0/stdlib/Lean/Elab/Term.c @@ -645,6 +645,7 @@ lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed lean_object* l_Lean_Meta_isExprDefEq___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_resolveLocalName_loop_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoeSort___closed__9; +extern lean_object* l_Lean_Meta_evalNat___closed__3; lean_object* l_Lean_Elab_Term_TermElabM_inhabited___closed__1; lean_object* l___private_Lean_Meta_SynthInstance_9__trySynthInstanceImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t l_USize_land(size_t, size_t); @@ -818,7 +819,6 @@ lean_object* l_Lean_Elab_Term_isExprMVarAssigned(lean_object*, lean_object*, lea lean_object* l_Lean_Elab_Term_elabCharLit___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabHole___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Context_macroStack___default; -extern lean_object* l_Lean_Meta_evalNat___main___closed__8; lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe_match__1(lean_object*); lean_object* l_Lean_Elab_Term_mkExplicitBinder(lean_object*, lean_object*); lean_object* l_Lean_Meta_throwAppTypeMismatch___at_Lean_Elab_Term_throwTypeMismatchError___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -833,7 +833,6 @@ lean_object* l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(lean lean_object* l_Lean_Elab_Term_mkTypeMismatchError___closed__2; lean_object* l_Lean_Elab_Term_adaptExpander(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_tryPostponeIfMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Meta_evalNat___main___closed__7; lean_object* l_Lean_Syntax_getPos(lean_object*); lean_object* l_Lean_Elab_Term_getMessageLog___boxed(lean_object*); lean_object* l_Lean_Elab_Term_Lean_Elab_Term___instance__6___rarg___closed__1; @@ -871,6 +870,7 @@ lean_object* l_Lean_Elab_Term_withFreshMacroScope___rarg(lean_object*, lean_obje lean_object* l_Lean_Elab_Term_TermElabM_toIO_match__1(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__1___closed__1; uint8_t l_Lean_Syntax_isNone(lean_object*); +extern lean_object* l_Lean_Meta_evalNat___closed__2; extern lean_object* l_Lean_TraceState_Inhabited___closed__1; lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_mkFreshLevelMVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_mkSorry___rarg___lambda__1___closed__2; @@ -31682,7 +31682,7 @@ lean_dec(x_15); x_18 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_18, 0, x_16); lean_ctor_set(x_18, 1, x_2); -x_19 = l_Lean_Meta_evalNat___main___closed__7; +x_19 = l_Lean_Meta_evalNat___closed__2; lean_inc(x_18); x_20 = l_Lean_mkConst(x_19, x_18); lean_inc(x_1); @@ -31696,7 +31696,7 @@ if (x_23 == 0) { lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; x_24 = lean_ctor_get(x_22, 0); -x_25 = l_Lean_Meta_evalNat___main___closed__8; +x_25 = l_Lean_Meta_evalNat___closed__3; x_26 = l_Lean_mkConst(x_25, x_18); x_27 = l_Lean_mkApp3(x_26, x_1, x_24, x_3); lean_ctor_set(x_22, 0, x_27); @@ -31710,7 +31710,7 @@ x_29 = lean_ctor_get(x_22, 1); lean_inc(x_29); lean_inc(x_28); lean_dec(x_22); -x_30 = l_Lean_Meta_evalNat___main___closed__8; +x_30 = l_Lean_Meta_evalNat___closed__3; x_31 = l_Lean_mkConst(x_30, x_18); x_32 = l_Lean_mkApp3(x_31, x_1, x_28, x_3); x_33 = lean_alloc_ctor(0, 2, 0); diff --git a/stage0/stdlib/Lean/Meta/Basic.c b/stage0/stdlib/Lean/Meta/Basic.c index 4550dbe005..be7253f0bb 100644 --- a/stage0/stdlib/Lean/Meta/Basic.c +++ b/stage0/stdlib/Lean/Meta/Basic.c @@ -521,6 +521,7 @@ lean_object* l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___r lean_object* l_Lean_Meta_getLocalDeclFromUserName___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_monadNameGeneratorLift___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_inferType___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Meta_ParamInfo_isExplicit___boxed(lean_object*); lean_object* l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___at___private_Lean_Meta_Basic_21__forallBoundedTelescopeImp___spec__22(lean_object*); lean_object* l___private_Lean_Meta_Basic_24__forallMetaTelescopeReducingAux(uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___at___private_Lean_Meta_Basic_20__forallTelescopeReducingImp___spec__23___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*, lean_object*, lean_object*, lean_object*); @@ -782,6 +783,7 @@ lean_object* l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___a lean_object* l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_14__forallTelescopeReducingAuxAux___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_object* l_Lean_Meta_Lean_MonadMCtx___closed__1; +uint8_t l_Lean_Meta_ParamInfo_isExplicit(lean_object*); lean_object* l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___at___private_Lean_Meta_Basic_21__forallBoundedTelescopeImp___spec__14(lean_object*); lean_object* l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___at___private_Lean_Meta_Basic_20__forallTelescopeReducingImp___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___rarg___closed__5; @@ -1334,6 +1336,35 @@ x_1 = l_Lean_Meta_ParamInfo_inhabited___closed__1; return x_1; } } +uint8_t l_Lean_Meta_ParamInfo_isExplicit(lean_object* x_1) { +_start: +{ +uint8_t x_2; +x_2 = lean_ctor_get_uint8(x_1, sizeof(void*)*1); +if (x_2 == 0) +{ +uint8_t x_3; +x_3 = lean_ctor_get_uint8(x_1, sizeof(void*)*1 + 1); +return x_3; +} +else +{ +uint8_t x_4; +x_4 = 0; +return x_4; +} +} +} +lean_object* l_Lean_Meta_ParamInfo_isExplicit___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l_Lean_Meta_ParamInfo_isExplicit(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} static lean_object* _init_l_Lean_Meta_InfoCacheKey_Inhabited___closed__1() { _start: { diff --git a/stage0/stdlib/Lean/Meta/Match/Match.c b/stage0/stdlib/Lean/Meta/Match/Match.c index be0f8f61a9..8d02fb33ac 100644 --- a/stage0/stdlib/Lean/Meta/Match/Match.c +++ b/stage0/stdlib/Lean/Meta/Match/Match.c @@ -118,7 +118,6 @@ lean_object* l_Lean_Meta_MatcherApp_addArg(lean_object*, lean_object*, lean_obje lean_object* l_List_filterAux___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__6(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Pattern_toExpr_match__1(lean_object*); uint8_t l_List_foldr___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasNatValPattern___spec__1(uint8_t, lean_object*); -lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_generalizeIndices___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasNatValPattern_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Problem_Lean_Meta_Match_Match___instance__3___closed__1; @@ -141,7 +140,7 @@ lean_object* l_Lean_Meta_Match_processInaccessibleAsCtor_match__1(lean_object*); size_t l_USize_sub(size_t, size_t); extern lean_object* l_Array_empty___closed__1; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoArrayLit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_environment_find(lean_object*, lean_object*); +lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f_match__3(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_collectArraySizes___boxed(lean_object*); lean_object* l_Lean_Meta_isExprDefEqAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -389,6 +388,7 @@ lean_object* l_List_map___main___at_Lean_Meta_Match_Pattern_applyFVarSubst___spe uint8_t l_Std_AssocList_contains___at_Lean_Meta_Match_Extension_State_addEntry___spec__7(lean_object*, lean_object*); lean_object* l_Lean_Meta_getArrayArgType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getInductiveVal_x3f_match__2(lean_object*); +extern lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__8; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoArrayLit___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_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__1(lean_object*); lean_object* l_Lean_Expr_toHeadIndex___main(lean_object*); @@ -413,6 +413,7 @@ lean_object* l_Lean_Meta_Match_Unify_unify___closed__2; lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__3(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___closed__1; lean_object* l_Lean_Meta_Match_Example_replaceFVarId_match__1(lean_object*); +extern lean_object* l_Lean_Meta_evalNat_match__2___rarg___closed__1; lean_object* l_List_filterAux___main___at_Lean_Meta_Match_Alt_replaceFVarId___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); @@ -487,6 +488,7 @@ extern lean_object* l_List_reprAux___main___rarg___closed__1; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getUElimPos_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_mkHashMap___at_Lean_Meta_Match_Extension_State_map___default___spec__1(lean_object*); lean_object* l_Lean_Meta_Match_processInaccessibleAsCtor___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* l_Lean_getConstInfo___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_Lean_AddMessageContext___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_MatcherApp_addArg___lambda__2___closed__3; lean_object* l_Lean_Meta_Match_Pattern_toMessageData_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -494,7 +496,6 @@ extern size_t l_Std_PersistentHashMap_insertAux___main___rarg___closed__2; lean_object* l_Lean_Meta_Match_processInaccessibleAsCtor___closed__6; lean_object* l_Lean_Meta_Match_mkMatcher___lambda__1___closed__17; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processAsPattern___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_getConstInfo___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getInductiveVal_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_filterAux___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Alt_checkAndReplaceFVarId___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoArrayLit_loop_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -502,7 +503,6 @@ lean_object* l___private_Lean_Meta_Basic_29__withExistingLocalDeclsImp___rarg(le lean_object* l_Lean_Meta_Match_mkMatcher___lambda__1___closed__1; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasCtorPattern_match__1(lean_object*); lean_object* l_Lean_Meta_mkFreshExprMVar___at_Lean_Meta_Match_mkMatcher___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_throwUnknownConstant___rarg___closed__5; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getUElimPos_x3f___closed__2; uint8_t l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isFirstPatternVar(lean_object*); lean_object* l_Lean_Meta_matchMatcherApp_x3f_match__2___rarg(lean_object*, lean_object*, lean_object*); @@ -543,13 +543,11 @@ lean_object* l_Lean_Meta_Match_Extension_extension___closed__4; uint8_t l_Array_isEmpty___rarg(lean_object*); lean_object* l_Lean_Meta_Match_Alt_toMessageData___closed__1; lean_object* l_Lean_LocalDecl_toExpr(lean_object*); -lean_object* l_Lean_Meta_MatcherApp_addArg___lambda__4___closed__3; lean_object* l_Lean_Meta_Match_Unify_unify___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isExprDefEq___at_Lean_Meta_Match_Unify_unify___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Unify_unify___closed__1; lean_object* l_Lean_Meta_instantiateLambda___at___private_Lean_Meta_Match_Match_0__Lean_Meta_updateAlts___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Extension_addMatcherInfo(lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_throwUnknownConstant___rarg___closed__3; size_t l_USize_mul(size_t, size_t); lean_object* l_Array_iterateMAux___main___at_Lean_Meta_Match_Extension_State_addEntry___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_redLength___main___rarg(lean_object*); @@ -561,7 +559,6 @@ lean_object* l_Lean_Meta_isLevelDefEqAux___boxed(lean_object*, lean_object*, lea lean_object* l_Lean_Meta_Match_Problem_toMessageData___lambda__1___closed__5; lean_object* l_List_mapM___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Unify_assign___closed__1; -lean_object* l_Lean_getConstInfo___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getInductiveVal_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_formatEntry___closed__1; lean_object* l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_Match_Example_applyFVarSubst___spec__1___boxed(lean_object*, lean_object*); @@ -587,6 +584,7 @@ lean_object* l_Lean_mkLevelMVar(lean_object*); lean_object* l_Lean_Meta_Match_mkMatcher___lambda__1___closed__10; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___closed__3; lean_object* l_Lean_Expr_replaceFVarId(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Meta_evalNat___closed__15; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___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_Match_Extension_mkExtension___lambda__1(lean_object*); extern lean_object* l___private_Lean_Meta_ExprDefEq_8__checkTypesAndAssign___lambda__1___closed__1; @@ -744,7 +742,6 @@ lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipIna lean_object* l_Lean_Meta_Match_Alt_checkAndReplaceFVarId___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_matchMatcherApp_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Extension_mkExtension(lean_object*); -extern lean_object* l_Lean_Meta_evalNat___main___closed__17; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_updateAlts___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Format_paren___closed__4; lean_object* l_Std_HashMapImp_expand___at_Lean_Meta_Match_Extension_State_addEntry___spec__8(lean_object*, lean_object*); @@ -858,7 +855,6 @@ lean_object* l_Lean_Meta_Match_Alt_checkAndReplaceFVarId___closed__9; lean_object* l_Lean_Meta_Match_State_used___default; lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Meta_Match_Match_0__Lean_Meta_updateAlts___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Alt_checkAndReplaceFVarId___closed__8; -extern lean_object* l_Lean_Meta_evalNat___main___closed__1; lean_object* l_Lean_Meta_instantiateMVars___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_unify_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___main___at_Lean_Meta_Match_Problem_toMessageData___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoArrayLit_loop___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -877,7 +873,6 @@ lean_object* l_List_filterAux___main___at_Lean_Meta_Match_Alt_replaceFVarId___sp lean_object* l_Lean_Meta_withExistingLocalDecls___at_Lean_Meta_Match_Alt_toMessageData___spec__2(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isNextVar_match__1(lean_object*); uint8_t l_Std_HashSetImp_contains___at_Lean_Meta_Match_mkMatcher___spec__5(lean_object*, lean_object*); -extern lean_object* l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__19; lean_object* l_List_mapM___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoArrayLit_loop___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_MatcherInfo_numAlts(lean_object*); lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__7(lean_object*, lean_object*); @@ -15133,7 +15128,7 @@ lean_closure_set(x_30, 0, x_26); lean_closure_set(x_30, 1, x_1); lean_closure_set(x_30, 2, x_3); lean_closure_set(x_30, 3, x_17); -x_31 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_generalizeIndices___spec__1___rarg(x_28, x_30, x_5, x_6, x_7, x_8, x_29); +x_31 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__5___rarg(x_28, x_30, x_5, x_6, x_7, x_8, x_29); return x_31; } else @@ -15428,94 +15423,6 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Match_Match_0__Lean_Meta_ return x_2; } } -lean_object* l_Lean_getConstInfo___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getInductiveVal_x3f___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) { -_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; -x_9 = lean_ctor_get(x_7, 0); -x_10 = lean_ctor_get(x_7, 1); -x_11 = lean_ctor_get(x_9, 0); -lean_inc(x_11); -lean_dec(x_9); -lean_inc(x_1); -x_12 = lean_environment_find(x_11, x_1); -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_free_object(x_7); -x_13 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_13, 0, x_1); -x_14 = l_Lean_throwUnknownConstant___rarg___closed__3; -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___rarg___closed__5; -x_17 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_17, 0, x_15); -lean_ctor_set(x_17, 1, x_16); -x_18 = l_Lean_throwError___at_Lean_Meta_getArrayArgType___spec__3___rarg(x_17, x_2, x_3, x_4, x_5, x_10); -return x_18; -} -else -{ -lean_object* x_19; -lean_dec(x_1); -x_19 = lean_ctor_get(x_12, 0); -lean_inc(x_19); -lean_dec(x_12); -lean_ctor_set(x_7, 0, x_19); -return x_7; -} -} -else -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_20 = lean_ctor_get(x_7, 0); -x_21 = lean_ctor_get(x_7, 1); -lean_inc(x_21); -lean_inc(x_20); -lean_dec(x_7); -x_22 = lean_ctor_get(x_20, 0); -lean_inc(x_22); -lean_dec(x_20); -lean_inc(x_1); -x_23 = lean_environment_find(x_22, x_1); -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; lean_object* x_29; -x_24 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_24, 0, x_1); -x_25 = l_Lean_throwUnknownConstant___rarg___closed__3; -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_throwUnknownConstant___rarg___closed__5; -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 = l_Lean_throwError___at_Lean_Meta_getArrayArgType___spec__3___rarg(x_28, x_2, x_3, x_4, x_5, x_21); -return x_29; -} -else -{ -lean_object* x_30; lean_object* x_31; -lean_dec(x_1); -x_30 = lean_ctor_get(x_23, 0); -lean_inc(x_30); -lean_dec(x_23); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_21); -return x_31; -} -} -} -} lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getInductiveVal_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) { _start: { @@ -15556,7 +15463,7 @@ lean_free_object(x_10); x_15 = lean_ctor_get(x_14, 0); lean_inc(x_15); lean_dec(x_14); -x_16 = l_Lean_getConstInfo___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getInductiveVal_x3f___spec__1(x_15, x_2, x_3, x_4, x_5, x_13); +x_16 = l_Lean_getConstInfo___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__2(x_15, x_2, x_3, x_4, x_5, x_13); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -15680,7 +15587,7 @@ lean_object* x_40; lean_object* x_41; x_40 = lean_ctor_get(x_39, 0); lean_inc(x_40); lean_dec(x_39); -x_41 = l_Lean_getConstInfo___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getInductiveVal_x3f___spec__1(x_40, x_2, x_3, x_4, x_5, x_38); +x_41 = l_Lean_getConstInfo___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__2(x_40, x_2, x_3, x_4, x_5, x_38); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -15838,18 +15745,6 @@ return x_65; } } } -lean_object* l_Lean_getConstInfo___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getInductiveVal_x3f___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) { -_start: -{ -lean_object* x_7; -x_7 = l_Lean_getConstInfo___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getInductiveVal_x3f___spec__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); -return x_7; -} -} lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasRecursiveType_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -23227,7 +23122,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Literal_type___closed__2; -x_2 = l_Lean_Meta_evalNat___main___closed__1; +x_2 = l_Lean_Meta_evalNat_match__2___rarg___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -23342,7 +23237,7 @@ x_30 = lean_box(0); x_31 = l_Lean_mkNatLit(x_29); lean_ctor_set(x_12, 0, x_31); lean_ctor_set(x_10, 1, x_30); -x_32 = l_Lean_Meta_evalNat___main___closed__17; +x_32 = l_Lean_Meta_evalNat___closed__15; x_33 = lean_alloc_ctor(2, 4, 0); lean_ctor_set(x_33, 0, x_32); lean_ctor_set(x_33, 1, x_30); @@ -23390,7 +23285,7 @@ lean_ctor_set(x_12, 0, x_43); x_44 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_44, 0, x_12); lean_ctor_set(x_44, 1, x_42); -x_45 = l_Lean_Meta_evalNat___main___closed__17; +x_45 = l_Lean_Meta_evalNat___closed__15; x_46 = lean_alloc_ctor(2, 4, 0); lean_ctor_set(x_46, 0, x_45); lean_ctor_set(x_46, 1, x_42); @@ -23454,7 +23349,7 @@ if (lean_is_scalar(x_51)) { } lean_ctor_set(x_59, 0, x_12); lean_ctor_set(x_59, 1, x_57); -x_60 = l_Lean_Meta_evalNat___main___closed__17; +x_60 = l_Lean_Meta_evalNat___closed__15; x_61 = lean_alloc_ctor(2, 4, 0); lean_ctor_set(x_61, 0, x_60); lean_ctor_set(x_61, 1, x_57); @@ -23622,7 +23517,7 @@ if (lean_is_scalar(x_79)) { } lean_ctor_set(x_88, 0, x_87); lean_ctor_set(x_88, 1, x_85); -x_89 = l_Lean_Meta_evalNat___main___closed__17; +x_89 = l_Lean_Meta_evalNat___closed__15; x_90 = lean_alloc_ctor(2, 4, 0); lean_ctor_set(x_90, 0, x_89); lean_ctor_set(x_90, 1, x_85); @@ -23864,7 +23759,7 @@ if (lean_is_scalar(x_119)) { } lean_ctor_set(x_128, 0, x_127); lean_ctor_set(x_128, 1, x_125); -x_129 = l_Lean_Meta_evalNat___main___closed__17; +x_129 = l_Lean_Meta_evalNat___closed__15; x_130 = lean_alloc_ctor(2, 4, 0); lean_ctor_set(x_130, 0, x_129); lean_ctor_set(x_130, 1, x_125); @@ -32776,15 +32671,6 @@ x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_MatcherApp_addArg___lambda__4___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__19; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} lean_object* l_Lean_Meta_MatcherApp_addArg___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) { _start: { @@ -32810,7 +32696,7 @@ x_16 = l_Lean_Meta_MatcherApp_addArg___lambda__4___closed__2; x_17 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_17, 0, x_16); lean_ctor_set(x_17, 1, x_15); -x_18 = l_Lean_Meta_MatcherApp_addArg___lambda__4___closed__3; +x_18 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__8; x_19 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_19, 0, x_17); lean_ctor_set(x_19, 1, x_18); @@ -33397,8 +33283,6 @@ l_Lean_Meta_MatcherApp_addArg___lambda__4___closed__1 = _init_l_Lean_Meta_Matche lean_mark_persistent(l_Lean_Meta_MatcherApp_addArg___lambda__4___closed__1); l_Lean_Meta_MatcherApp_addArg___lambda__4___closed__2 = _init_l_Lean_Meta_MatcherApp_addArg___lambda__4___closed__2(); lean_mark_persistent(l_Lean_Meta_MatcherApp_addArg___lambda__4___closed__2); -l_Lean_Meta_MatcherApp_addArg___lambda__4___closed__3 = _init_l_Lean_Meta_MatcherApp_addArg___lambda__4___closed__3(); -lean_mark_persistent(l_Lean_Meta_MatcherApp_addArg___lambda__4___closed__3); res = l_Lean_Meta_initFn____x40_Lean_Meta_Match_Match___hyg_7756_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); diff --git a/stage0/stdlib/Lean/Meta/Offset.c b/stage0/stdlib/Lean/Meta/Offset.c index 5625478814..05b63301d1 100644 --- a/stage0/stdlib/Lean/Meta/Offset.c +++ b/stage0/stdlib/Lean/Meta/Offset.c @@ -13,58 +13,122 @@ #ifdef __cplusplus extern "C" { #endif -lean_object* l___private_Lean_Meta_Offset_1__getOffsetAux___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_isOffset_match__1(lean_object*); +lean_object* l_Lean_Meta_evalNat___closed__11; +lean_object* l_Lean_Meta_isDefEqOffset_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_isOffset_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__3___rarg(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux(lean_object*, uint8_t); +lean_object* l_Lean_Meta_isDefEqOffset_match__4(lean_object*); +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux___boxed(lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__3(lean_object*); lean_object* l_Lean_Meta_isExprDefEqAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Offset_5__mkOffset___closed__1; -uint8_t l___private_Lean_Meta_Offset_4__isNatZero(lean_object*); -lean_object* l_Lean_Meta_evalNat___main___closed__10; +uint8_t l___private_Lean_Meta_Offset_0__Lean_Meta_isNatZero(lean_object*); +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__1___rarg(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__4(lean_object*); +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__5___rarg(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn___main(lean_object*); -lean_object* l_Lean_Meta_evalNat___main___closed__16; +lean_object* l_Lean_Meta_evalNat___closed__8; +lean_object* l_Lean_Meta_evalNat___closed__4; +lean_object* l_Lean_Meta_isDefEqOffset_match__5(lean_object*); lean_object* l_Lean_Meta_evalNat(lean_object*); +lean_object* l_Lean_Meta_evalNat___closed__9; lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppNumArgsAux___main(lean_object*, lean_object*); +lean_object* l_Lean_Meta_isDefEqOffset_match__3___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_evalNat___closed__10; +lean_object* l_Lean_Meta_evalNat_match__2(lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); -lean_object* l_Lean_Meta_evalNat___main___closed__11; lean_object* lean_nat_sub(lean_object*, lean_object*); -lean_object* l_Lean_Meta_evalNat___main(lean_object*); -lean_object* l___private_Lean_Meta_Offset_3__isOffset(lean_object*); +lean_object* l_Lean_Meta_evalNat___closed__7; +lean_object* l_Lean_Meta_isDefEqOffset_match__2(lean_object*); +lean_object* l_Lean_Meta_evalNat_match__2___rarg___closed__1; +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__5(lean_object*); lean_object* l_Lean_Meta_isDefEqOffset(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_evalNat___main___closed__12; -lean_object* l___private_Lean_Meta_Offset_4__isNatZero___boxed(lean_object*); +lean_object* l_Lean_Meta_isDefEqOffset_match__6(lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); extern lean_object* l_Lean_Literal_type___closed__1; -lean_object* l___private_Lean_Meta_Offset_1__getOffsetAux___main(lean_object*, uint8_t); +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_evalNat_match__1(lean_object*); +lean_object* l_Lean_Meta_evalNat___closed__12; extern lean_object* l_Lean_Expr_isCharLit___closed__3; -lean_object* l___private_Lean_Meta_Offset_1__getOffsetAux___main___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Meta_evalNat___main___closed__6; +lean_object* l_Lean_Meta_isDefEqOffset_match__1(lean_object*); extern lean_object* l_Lean_Literal_type___closed__2; -lean_object* l_Lean_Meta_evalNat___main___closed__13; -lean_object* l_Lean_Meta_evalNat___main___closed__4; +lean_object* l_Lean_Meta_evalNat___closed__14; +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_isOffset_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_evalNat___closed__5; +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__2___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Meta_evalNat___closed__15; +lean_object* l_Lean_Meta_evalNat___closed__3; +lean_object* l_Lean_Meta_evalNat___closed__6; +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__1(lean_object*); +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_isNatZero___boxed(lean_object*); +lean_object* l_Lean_Meta_evalNat_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_isOffset_match__2(lean_object*); +lean_object* l_Lean_Meta_evalNat___closed__13; +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_mkOffset(lean_object*, lean_object*); lean_object* l_Lean_Expr_getRevArg_x21___main(lean_object*, lean_object*); -lean_object* l_Lean_Meta_evalNat___main___closed__2; uint8_t lean_nat_dec_le(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Offset_1__getOffsetAux(lean_object*, uint8_t); -lean_object* l_Lean_Meta_evalNat___main___closed__9; uint8_t l_Bool_toLBool(uint8_t); -lean_object* l_Lean_Meta_evalNat___main___closed__17; -lean_object* l_Lean_Meta_evalNat___main___closed__8; +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__2(lean_object*); +lean_object* l_Lean_Meta_evalNat___closed__16; lean_object* lean_nat_mul(lean_object*, lean_object*); -lean_object* l_Lean_Meta_evalNat___main___closed__7; -lean_object* l___private_Lean_Meta_Offset_2__getOffset(lean_object*); -lean_object* l_Lean_Meta_evalNat___main___closed__15; -lean_object* l_Lean_Meta_evalNat___main___closed__3; -lean_object* l_Lean_Meta_evalNat___main___closed__5; -lean_object* l_Lean_Meta_evalNat___main___closed__14; -lean_object* l_Lean_Meta_evalNat___main___closed__1; +lean_object* l_Lean_Meta_evalNat___closed__2; +lean_object* l_Lean_Meta_evalNat___closed__1; +lean_object* l_Lean_Meta_isDefEqOffset_match__5___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffset(lean_object*); +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_mkOffset___closed__1; +lean_object* l_Lean_Meta_isDefEqOffset_match__3(lean_object*); lean_object* l_Lean_mkNatLit(lean_object*); -lean_object* l___private_Lean_Meta_Offset_5__mkOffset(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__4___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Syntax_decodeNatLitVal___closed__1; lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_isDefEqOffset_match__4___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_isNatZero_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_isNatZero_match__1(lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); +lean_object* l_Lean_Meta_isDefEqOffset_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_evalNat_match__1___rarg(lean_object*, lean_object*, lean_object*); uint8_t lean_string_dec_eq(lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -static lean_object* _init_l_Lean_Meta_evalNat___main___closed__1() { +lean_object* l_Lean_Meta_isDefEqOffset_match__6___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_isOffset(lean_object*); +lean_object* l_Lean_Meta_evalNat_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 4) +{ +lean_object* x_4; lean_object* x_5; uint64_t x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +x_6 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +lean_dec(x_1); +x_7 = lean_box_uint64(x_6); +x_8 = lean_apply_3(x_2, x_4, x_5, x_7); +return x_8; +} +else +{ +lean_object* x_9; +lean_dec(x_2); +x_9 = lean_apply_1(x_3, x_1); +return x_9; +} +} +} +lean_object* l_Lean_Meta_evalNat_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_evalNat_match__1___rarg), 3, 0); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_evalNat_match__2___rarg___closed__1() { _start: { lean_object* x_1; @@ -72,43 +136,406 @@ x_1 = lean_mk_string("zero"); return x_1; } } -static lean_object* _init_l_Lean_Meta_evalNat___main___closed__2() { +lean_object* l_Lean_Meta_evalNat_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_1; -x_1 = lean_mk_string("HasAdd"); -return x_1; +switch (lean_obj_tag(x_1)) { +case 4: +{ +lean_object* x_7; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_7 = lean_ctor_get(x_1, 0); +lean_inc(x_7); +if (lean_obj_tag(x_7) == 1) +{ +lean_object* x_8; +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +if (lean_obj_tag(x_8) == 1) +{ +lean_object* x_9; +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; uint8_t x_11; +x_10 = lean_ctor_get(x_1, 1); +lean_inc(x_10); +x_11 = !lean_is_exclusive(x_7); +if (x_11 == 0) +{ +uint64_t x_12; lean_object* x_13; size_t x_14; lean_object* x_15; uint8_t x_16; +x_12 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +x_13 = lean_ctor_get(x_7, 1); +x_14 = lean_ctor_get_usize(x_7, 2); +x_15 = lean_ctor_get(x_7, 0); +lean_dec(x_15); +x_16 = !lean_is_exclusive(x_8); +if (x_16 == 0) +{ +lean_object* x_17; size_t x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_17 = lean_ctor_get(x_8, 1); +x_18 = lean_ctor_get_usize(x_8, 2); +x_19 = lean_ctor_get(x_8, 0); +lean_dec(x_19); +x_20 = l_Lean_Literal_type___closed__1; +x_21 = lean_string_dec_eq(x_17, x_20); +lean_dec(x_17); +if (x_21 == 0) +{ +lean_object* x_22; +lean_free_object(x_8); +lean_free_object(x_7); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_4); +x_22 = lean_apply_1(x_6, x_1); +return x_22; +} +else +{ +uint8_t x_23; +x_23 = !lean_is_exclusive(x_1); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_24 = lean_ctor_get(x_1, 1); +lean_dec(x_24); +x_25 = lean_ctor_get(x_1, 0); +lean_dec(x_25); +x_26 = l_Lean_Meta_evalNat_match__2___rarg___closed__1; +x_27 = lean_string_dec_eq(x_13, x_26); +if (x_27 == 0) +{ +lean_object* x_28; +lean_dec(x_4); +lean_ctor_set(x_8, 1, x_20); +x_28 = lean_apply_1(x_6, x_1); +return x_28; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +lean_free_object(x_1); +lean_free_object(x_8); +lean_free_object(x_7); +lean_dec(x_13); +lean_dec(x_6); +x_29 = lean_box_uint64(x_12); +x_30 = lean_box_usize(x_18); +x_31 = lean_box_usize(x_14); +x_32 = lean_apply_4(x_4, x_10, x_29, x_30, x_31); +return x_32; } } -static lean_object* _init_l_Lean_Meta_evalNat___main___closed__3() { +else +{ +lean_object* x_33; uint8_t x_34; +lean_dec(x_1); +x_33 = l_Lean_Meta_evalNat_match__2___rarg___closed__1; +x_34 = lean_string_dec_eq(x_13, x_33); +if (x_34 == 0) +{ +lean_object* x_35; lean_object* x_36; +lean_dec(x_4); +lean_ctor_set(x_8, 1, x_20); +x_35 = lean_alloc_ctor(4, 2, 8); +lean_ctor_set(x_35, 0, x_7); +lean_ctor_set(x_35, 1, x_10); +lean_ctor_set_uint64(x_35, sizeof(void*)*2, x_12); +x_36 = lean_apply_1(x_6, x_35); +return x_36; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +lean_free_object(x_8); +lean_free_object(x_7); +lean_dec(x_13); +lean_dec(x_6); +x_37 = lean_box_uint64(x_12); +x_38 = lean_box_usize(x_18); +x_39 = lean_box_usize(x_14); +x_40 = lean_apply_4(x_4, x_10, x_37, x_38, x_39); +return x_40; +} +} +} +} +else +{ +lean_object* x_41; size_t x_42; lean_object* x_43; uint8_t x_44; +x_41 = lean_ctor_get(x_8, 1); +x_42 = lean_ctor_get_usize(x_8, 2); +lean_inc(x_41); +lean_dec(x_8); +x_43 = l_Lean_Literal_type___closed__1; +x_44 = lean_string_dec_eq(x_41, x_43); +lean_dec(x_41); +if (x_44 == 0) +{ +lean_object* x_45; +lean_free_object(x_7); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_4); +x_45 = lean_apply_1(x_6, x_1); +return x_45; +} +else +{ +lean_object* x_46; lean_object* x_47; uint8_t x_48; +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + x_46 = x_1; +} else { + lean_dec_ref(x_1); + x_46 = lean_box(0); +} +x_47 = l_Lean_Meta_evalNat_match__2___rarg___closed__1; +x_48 = lean_string_dec_eq(x_13, x_47); +if (x_48 == 0) +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +lean_dec(x_4); +x_49 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_49, 0, x_9); +lean_ctor_set(x_49, 1, x_43); +lean_ctor_set_usize(x_49, 2, x_42); +lean_ctor_set(x_7, 0, x_49); +if (lean_is_scalar(x_46)) { + x_50 = lean_alloc_ctor(4, 2, 8); +} else { + x_50 = x_46; +} +lean_ctor_set(x_50, 0, x_7); +lean_ctor_set(x_50, 1, x_10); +lean_ctor_set_uint64(x_50, sizeof(void*)*2, x_12); +x_51 = lean_apply_1(x_6, x_50); +return x_51; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +lean_dec(x_46); +lean_free_object(x_7); +lean_dec(x_13); +lean_dec(x_6); +x_52 = lean_box_uint64(x_12); +x_53 = lean_box_usize(x_42); +x_54 = lean_box_usize(x_14); +x_55 = lean_apply_4(x_4, x_10, x_52, x_53, x_54); +return x_55; +} +} +} +} +else +{ +uint64_t x_56; lean_object* x_57; size_t x_58; lean_object* x_59; size_t x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; +x_56 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +x_57 = lean_ctor_get(x_7, 1); +x_58 = lean_ctor_get_usize(x_7, 2); +lean_inc(x_57); +lean_dec(x_7); +x_59 = lean_ctor_get(x_8, 1); +lean_inc(x_59); +x_60 = lean_ctor_get_usize(x_8, 2); +if (lean_is_exclusive(x_8)) { + lean_ctor_release(x_8, 0); + lean_ctor_release(x_8, 1); + x_61 = x_8; +} else { + lean_dec_ref(x_8); + x_61 = lean_box(0); +} +x_62 = l_Lean_Literal_type___closed__1; +x_63 = lean_string_dec_eq(x_59, x_62); +lean_dec(x_59); +if (x_63 == 0) +{ +lean_object* x_64; +lean_dec(x_61); +lean_dec(x_57); +lean_dec(x_10); +lean_dec(x_4); +x_64 = lean_apply_1(x_6, x_1); +return x_64; +} +else +{ +lean_object* x_65; lean_object* x_66; uint8_t x_67; +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + x_65 = x_1; +} else { + lean_dec_ref(x_1); + x_65 = lean_box(0); +} +x_66 = l_Lean_Meta_evalNat_match__2___rarg___closed__1; +x_67 = lean_string_dec_eq(x_57, x_66); +if (x_67 == 0) +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +lean_dec(x_4); +if (lean_is_scalar(x_61)) { + x_68 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_68 = x_61; +} +lean_ctor_set(x_68, 0, x_9); +lean_ctor_set(x_68, 1, x_62); +lean_ctor_set_usize(x_68, 2, x_60); +x_69 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_69, 0, x_68); +lean_ctor_set(x_69, 1, x_57); +lean_ctor_set_usize(x_69, 2, x_58); +if (lean_is_scalar(x_65)) { + x_70 = lean_alloc_ctor(4, 2, 8); +} else { + x_70 = x_65; +} +lean_ctor_set(x_70, 0, x_69); +lean_ctor_set(x_70, 1, x_10); +lean_ctor_set_uint64(x_70, sizeof(void*)*2, x_56); +x_71 = lean_apply_1(x_6, x_70); +return x_71; +} +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; +lean_dec(x_65); +lean_dec(x_61); +lean_dec(x_57); +lean_dec(x_6); +x_72 = lean_box_uint64(x_56); +x_73 = lean_box_usize(x_60); +x_74 = lean_box_usize(x_58); +x_75 = lean_apply_4(x_4, x_10, x_72, x_73, x_74); +return x_75; +} +} +} +} +else +{ +lean_object* x_76; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +x_76 = lean_apply_1(x_6, x_1); +return x_76; +} +} +else +{ +lean_object* x_77; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +x_77 = lean_apply_1(x_6, x_1); +return x_77; +} +} +else +{ +lean_object* x_78; +lean_dec(x_7); +lean_dec(x_4); +x_78 = lean_apply_1(x_6, x_1); +return x_78; +} +} +case 5: +{ +lean_object* x_79; lean_object* x_80; uint64_t x_81; lean_object* x_82; lean_object* x_83; +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_79 = lean_ctor_get(x_1, 0); +lean_inc(x_79); +x_80 = lean_ctor_get(x_1, 1); +lean_inc(x_80); +x_81 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +x_82 = lean_box_uint64(x_81); +x_83 = lean_apply_4(x_5, x_1, x_79, x_80, x_82); +return x_83; +} +case 9: +{ +lean_object* x_84; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_84 = lean_ctor_get(x_1, 0); +lean_inc(x_84); +if (lean_obj_tag(x_84) == 0) +{ +uint64_t x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; +lean_dec(x_6); +x_85 = lean_ctor_get_uint64(x_1, sizeof(void*)*1); +lean_dec(x_1); +x_86 = lean_ctor_get(x_84, 0); +lean_inc(x_86); +lean_dec(x_84); +x_87 = lean_box_uint64(x_85); +x_88 = lean_apply_2(x_2, x_86, x_87); +return x_88; +} +else +{ +lean_object* x_89; +lean_dec(x_84); +lean_dec(x_2); +x_89 = lean_apply_1(x_6, x_1); +return x_89; +} +} +case 10: +{ +lean_object* x_90; lean_object* x_91; uint64_t x_92; lean_object* x_93; lean_object* x_94; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_90 = lean_ctor_get(x_1, 0); +lean_inc(x_90); +x_91 = lean_ctor_get(x_1, 1); +lean_inc(x_91); +x_92 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +lean_dec(x_1); +x_93 = lean_box_uint64(x_92); +x_94 = lean_apply_3(x_3, x_90, x_91, x_93); +return x_94; +} +default: +{ +lean_object* x_95; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_95 = lean_apply_1(x_6, x_1); +return x_95; +} +} +} +} +lean_object* l_Lean_Meta_evalNat_match__2(lean_object* x_1) { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Meta_evalNat___main___closed__2; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_evalNat_match__2___rarg), 6, 0); +return x_2; } } -static lean_object* _init_l_Lean_Meta_evalNat___main___closed__4() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("mul"); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_evalNat___main___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_evalNat___main___closed__3; -x_2 = l_Lean_Meta_evalNat___main___closed__4; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Meta_evalNat___main___closed__6() { +static lean_object* _init_l_Lean_Meta_evalNat___closed__1() { _start: { lean_object* x_1; @@ -116,27 +543,63 @@ x_1 = lean_mk_string("HasOfNat"); return x_1; } } -static lean_object* _init_l_Lean_Meta_evalNat___main___closed__7() { +static lean_object* _init_l_Lean_Meta_evalNat___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_evalNat___main___closed__6; +x_2 = l_Lean_Meta_evalNat___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_evalNat___main___closed__8() { +static lean_object* _init_l_Lean_Meta_evalNat___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_evalNat___main___closed__7; +x_1 = l_Lean_Meta_evalNat___closed__2; x_2 = l_Lean_Expr_isCharLit___closed__3; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_evalNat___main___closed__9() { +static lean_object* _init_l_Lean_Meta_evalNat___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("HasAdd"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_evalNat___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_evalNat___closed__4; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_evalNat___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("mul"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_evalNat___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_evalNat___closed__5; +x_2 = l_Lean_Meta_evalNat___closed__6; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_evalNat___closed__8() { _start: { lean_object* x_1; @@ -144,17 +607,17 @@ x_1 = lean_mk_string("sub"); return x_1; } } -static lean_object* _init_l_Lean_Meta_evalNat___main___closed__10() { +static lean_object* _init_l_Lean_Meta_evalNat___closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_evalNat___main___closed__3; -x_2 = l_Lean_Meta_evalNat___main___closed__9; +x_1 = l_Lean_Meta_evalNat___closed__5; +x_2 = l_Lean_Meta_evalNat___closed__8; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_evalNat___main___closed__11() { +static lean_object* _init_l_Lean_Meta_evalNat___closed__10() { _start: { lean_object* x_1; @@ -162,47 +625,37 @@ x_1 = lean_mk_string("add"); return x_1; } } -static lean_object* _init_l_Lean_Meta_evalNat___main___closed__12() { +static lean_object* _init_l_Lean_Meta_evalNat___closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_evalNat___main___closed__3; -x_2 = l_Lean_Meta_evalNat___main___closed__11; +x_1 = l_Lean_Meta_evalNat___closed__5; +x_2 = l_Lean_Meta_evalNat___closed__10; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_evalNat___main___closed__13() { +static lean_object* _init_l_Lean_Meta_evalNat___closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Literal_type___closed__2; -x_2 = l_Lean_Meta_evalNat___main___closed__4; +x_2 = l_Lean_Meta_evalNat___closed__6; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_evalNat___main___closed__14() { +static lean_object* _init_l_Lean_Meta_evalNat___closed__13() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Literal_type___closed__2; -x_2 = l_Lean_Meta_evalNat___main___closed__9; +x_2 = l_Lean_Meta_evalNat___closed__8; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_evalNat___main___closed__15() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Literal_type___closed__2; -x_2 = l_Lean_Meta_evalNat___main___closed__11; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Meta_evalNat___main___closed__16() { +static lean_object* _init_l_Lean_Meta_evalNat___closed__14() { _start: { lean_object* x_1; @@ -210,17 +663,27 @@ x_1 = lean_mk_string("succ"); return x_1; } } -static lean_object* _init_l_Lean_Meta_evalNat___main___closed__17() { +static lean_object* _init_l_Lean_Meta_evalNat___closed__15() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Literal_type___closed__2; -x_2 = l_Lean_Meta_evalNat___main___closed__16; +x_2 = l_Lean_Meta_evalNat___closed__14; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_Lean_Meta_evalNat___main(lean_object* x_1) { +static lean_object* _init_l_Lean_Meta_evalNat___closed__16() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Literal_type___closed__2; +x_2 = l_Lean_Meta_evalNat___closed__10; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* l_Lean_Meta_evalNat(lean_object* x_1) { _start: { switch (lean_obj_tag(x_1)) { @@ -262,7 +725,7 @@ return x_9; else { lean_object* x_10; uint8_t x_11; -x_10 = l_Lean_Meta_evalNat___main___closed__1; +x_10 = l_Lean_Meta_evalNat_match__2___rarg___closed__1; x_11 = lean_string_dec_eq(x_5, x_10); lean_dec(x_5); if (x_11 == 0) @@ -314,184 +777,125 @@ lean_inc(x_17); x_18 = l_Lean_Expr_getAppFn___main(x_1); if (lean_obj_tag(x_18) == 4) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_128; lean_object* x_154; lean_object* x_180; lean_object* x_206; uint8_t x_207; +lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; uint8_t x_56; uint8_t x_135; uint8_t x_160; lean_object* x_185; uint8_t x_186; x_19 = lean_ctor_get(x_18, 0); lean_inc(x_19); lean_dec(x_18); x_20 = lean_unsigned_to_nat(0u); x_21 = l_Lean_Expr_getAppNumArgsAux___main(x_1, x_20); -x_206 = l_Lean_Meta_evalNat___main___closed__17; -x_207 = lean_name_eq(x_19, x_206); -if (x_207 == 0) +x_185 = l_Lean_Meta_evalNat___closed__15; +x_186 = lean_name_eq(x_19, x_185); +if (x_186 == 0) { -lean_object* x_208; +lean_object* x_187; uint8_t x_188; lean_dec(x_17); -x_208 = lean_box(0); -x_180 = x_208; -goto block_205; +x_187 = l_Lean_Meta_evalNat___closed__16; +x_188 = lean_name_eq(x_19, x_187); +if (x_188 == 0) +{ +uint8_t x_189; +x_189 = 0; +x_160 = x_189; +goto block_184; } else { -lean_object* x_209; uint8_t x_210; -x_209 = lean_unsigned_to_nat(1u); -x_210 = lean_nat_dec_eq(x_21, x_209); -if (x_210 == 0) -{ -lean_object* x_211; -lean_dec(x_17); -x_211 = lean_box(0); -x_180 = x_211; -goto block_205; +lean_object* x_190; uint8_t x_191; +x_190 = lean_unsigned_to_nat(2u); +x_191 = lean_nat_dec_eq(x_21, x_190); +x_160 = x_191; +goto block_184; +} } else { -lean_object* x_212; +lean_object* x_192; uint8_t x_193; +x_192 = lean_unsigned_to_nat(1u); +x_193 = lean_nat_dec_eq(x_21, x_192); +if (x_193 == 0) +{ +lean_object* x_194; uint8_t x_195; +lean_dec(x_17); +x_194 = l_Lean_Meta_evalNat___closed__16; +x_195 = lean_name_eq(x_19, x_194); +if (x_195 == 0) +{ +uint8_t x_196; +x_196 = 0; +x_160 = x_196; +goto block_184; +} +else +{ +lean_object* x_197; uint8_t x_198; +x_197 = lean_unsigned_to_nat(2u); +x_198 = lean_nat_dec_eq(x_21, x_197); +x_160 = x_198; +goto block_184; +} +} +else +{ +lean_object* x_199; lean_dec(x_21); lean_dec(x_19); lean_dec(x_1); -x_212 = l_Lean_Meta_evalNat___main(x_17); -if (lean_obj_tag(x_212) == 0) +x_199 = l_Lean_Meta_evalNat(x_17); +if (lean_obj_tag(x_199) == 0) { -lean_object* x_213; -x_213 = lean_box(0); -return x_213; +lean_object* x_200; +x_200 = lean_box(0); +return x_200; } else { -uint8_t x_214; -x_214 = !lean_is_exclusive(x_212); -if (x_214 == 0) +uint8_t x_201; +x_201 = !lean_is_exclusive(x_199); +if (x_201 == 0) { -lean_object* x_215; lean_object* x_216; -x_215 = lean_ctor_get(x_212, 0); -x_216 = lean_nat_add(x_215, x_209); -lean_dec(x_215); -lean_ctor_set(x_212, 0, x_216); -return x_212; +lean_object* x_202; lean_object* x_203; +x_202 = lean_ctor_get(x_199, 0); +x_203 = lean_nat_add(x_202, x_192); +lean_dec(x_202); +lean_ctor_set(x_199, 0, x_203); +return x_199; } else { -lean_object* x_217; lean_object* x_218; lean_object* x_219; -x_217 = lean_ctor_get(x_212, 0); -lean_inc(x_217); -lean_dec(x_212); -x_218 = lean_nat_add(x_217, x_209); -lean_dec(x_217); -x_219 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_219, 0, x_218); -return x_219; +lean_object* x_204; lean_object* x_205; lean_object* x_206; +x_204 = lean_ctor_get(x_199, 0); +lean_inc(x_204); +lean_dec(x_199); +x_205 = lean_nat_add(x_204, x_192); +lean_dec(x_204); +x_206 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_206, 0, x_205); +return x_206; } } } } -block_127: +block_55: { -lean_object* x_23; lean_object* x_73; lean_object* x_101; uint8_t x_102; -lean_dec(x_22); -x_101 = l_Lean_Meta_evalNat___main___closed__12; -x_102 = lean_name_eq(x_19, x_101); -if (x_102 == 0) +if (x_22 == 0) { -lean_object* x_103; -x_103 = lean_box(0); -x_73 = x_103; -goto block_100; -} -else -{ -lean_object* x_104; uint8_t x_105; -x_104 = lean_unsigned_to_nat(4u); -x_105 = lean_nat_dec_eq(x_21, x_104); -if (x_105 == 0) -{ -lean_object* x_106; -x_106 = lean_box(0); -x_73 = x_106; -goto block_100; -} -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_object* x_23; uint8_t x_24; +x_23 = l_Lean_Meta_evalNat___closed__3; +x_24 = lean_name_eq(x_19, x_23); lean_dec(x_19); -x_107 = lean_unsigned_to_nat(2u); -x_108 = lean_nat_sub(x_21, x_107); -x_109 = lean_unsigned_to_nat(1u); -x_110 = lean_nat_sub(x_108, x_109); -lean_dec(x_108); -x_111 = l_Lean_Expr_getRevArg_x21___main(x_1, x_110); -x_112 = l_Lean_Meta_evalNat___main(x_111); -if (lean_obj_tag(x_112) == 0) +if (x_24 == 0) { -lean_object* x_113; +lean_object* x_25; lean_dec(x_21); lean_dec(x_1); -x_113 = lean_box(0); -return x_113; +x_25 = lean_box(0); +return x_25; } 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; -x_114 = lean_ctor_get(x_112, 0); -lean_inc(x_114); -lean_dec(x_112); -x_115 = lean_unsigned_to_nat(3u); -x_116 = lean_nat_sub(x_21, x_115); -lean_dec(x_21); -x_117 = lean_nat_sub(x_116, x_109); -lean_dec(x_116); -x_118 = l_Lean_Expr_getRevArg_x21___main(x_1, x_117); -lean_dec(x_1); -x_119 = l_Lean_Meta_evalNat___main(x_118); -if (lean_obj_tag(x_119) == 0) -{ -lean_object* x_120; -lean_dec(x_114); -x_120 = lean_box(0); -return x_120; -} -else -{ -uint8_t x_121; -x_121 = !lean_is_exclusive(x_119); -if (x_121 == 0) -{ -lean_object* x_122; lean_object* x_123; -x_122 = lean_ctor_get(x_119, 0); -x_123 = lean_nat_add(x_114, x_122); -lean_dec(x_122); -lean_dec(x_114); -lean_ctor_set(x_119, 0, x_123); -return x_119; -} -else -{ -lean_object* x_124; lean_object* x_125; lean_object* x_126; -x_124 = lean_ctor_get(x_119, 0); -lean_inc(x_124); -lean_dec(x_119); -x_125 = lean_nat_add(x_114, x_124); -lean_dec(x_124); -lean_dec(x_114); -x_126 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_126, 0, x_125); -return x_126; -} -} -} -} -} -block_72: -{ -lean_object* x_24; uint8_t x_25; -lean_dec(x_23); -x_24 = l_Lean_Meta_evalNat___main___closed__5; -x_25 = lean_name_eq(x_19, x_24); -if (x_25 == 0) -{ lean_object* x_26; uint8_t x_27; -x_26 = l_Lean_Meta_evalNat___main___closed__8; -x_27 = lean_name_eq(x_19, x_26); -lean_dec(x_19); +x_26 = lean_unsigned_to_nat(3u); +x_27 = lean_nat_dec_eq(x_21, x_26); if (x_27 == 0) { lean_object* x_28; @@ -502,531 +906,550 @@ return x_28; } else { -lean_object* x_29; uint8_t x_30; -x_29 = lean_unsigned_to_nat(3u); -x_30 = lean_nat_dec_eq(x_21, x_29); -if (x_30 == 0) -{ -lean_object* x_31; +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_29 = lean_unsigned_to_nat(2u); +x_30 = lean_nat_sub(x_21, x_29); lean_dec(x_21); +x_31 = lean_unsigned_to_nat(1u); +x_32 = lean_nat_sub(x_30, x_31); +lean_dec(x_30); +x_33 = l_Lean_Expr_getRevArg_x21___main(x_1, x_32); lean_dec(x_1); -x_31 = lean_box(0); -return x_31; -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_32 = lean_unsigned_to_nat(2u); -x_33 = lean_nat_sub(x_21, x_32); -lean_dec(x_21); -x_34 = lean_unsigned_to_nat(1u); -x_35 = lean_nat_sub(x_33, x_34); -lean_dec(x_33); -x_36 = l_Lean_Expr_getRevArg_x21___main(x_1, x_35); -lean_dec(x_1); -x_1 = x_36; +x_1 = x_33; goto _start; } } } else { -lean_object* x_38; uint8_t x_39; -x_38 = lean_unsigned_to_nat(4u); -x_39 = lean_nat_dec_eq(x_21, x_38); -if (x_39 == 0) -{ -lean_object* x_40; uint8_t x_41; -x_40 = l_Lean_Meta_evalNat___main___closed__8; -x_41 = lean_name_eq(x_19, x_40); +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_dec(x_19); -if (x_41 == 0) +x_35 = lean_unsigned_to_nat(2u); +x_36 = lean_nat_sub(x_21, x_35); +x_37 = lean_unsigned_to_nat(1u); +x_38 = lean_nat_sub(x_36, x_37); +lean_dec(x_36); +x_39 = l_Lean_Expr_getRevArg_x21___main(x_1, x_38); +x_40 = l_Lean_Meta_evalNat(x_39); +if (lean_obj_tag(x_40) == 0) { -lean_object* x_42; +lean_object* x_41; lean_dec(x_21); lean_dec(x_1); -x_42 = lean_box(0); -return x_42; +x_41 = lean_box(0); +return x_41; } else { -lean_object* x_43; uint8_t x_44; +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_42 = lean_ctor_get(x_40, 0); +lean_inc(x_42); +lean_dec(x_40); x_43 = lean_unsigned_to_nat(3u); -x_44 = lean_nat_dec_eq(x_21, x_43); -if (x_44 == 0) -{ -lean_object* x_45; +x_44 = lean_nat_sub(x_21, x_43); lean_dec(x_21); +x_45 = lean_nat_sub(x_44, x_37); +lean_dec(x_44); +x_46 = l_Lean_Expr_getRevArg_x21___main(x_1, x_45); lean_dec(x_1); -x_45 = lean_box(0); -return x_45; +x_47 = l_Lean_Meta_evalNat(x_46); +if (lean_obj_tag(x_47) == 0) +{ +lean_object* x_48; +lean_dec(x_42); +x_48 = lean_box(0); +return x_48; } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_46 = lean_unsigned_to_nat(2u); -x_47 = lean_nat_sub(x_21, x_46); -lean_dec(x_21); -x_48 = lean_unsigned_to_nat(1u); -x_49 = lean_nat_sub(x_47, x_48); +uint8_t x_49; +x_49 = !lean_is_exclusive(x_47); +if (x_49 == 0) +{ +lean_object* x_50; lean_object* x_51; +x_50 = lean_ctor_get(x_47, 0); +x_51 = lean_nat_mul(x_42, x_50); +lean_dec(x_50); +lean_dec(x_42); +lean_ctor_set(x_47, 0, x_51); +return x_47; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_47, 0); +lean_inc(x_52); lean_dec(x_47); -x_50 = l_Lean_Expr_getRevArg_x21___main(x_1, x_49); -lean_dec(x_1); -x_1 = x_50; -goto _start; +x_53 = lean_nat_mul(x_42, x_52); +lean_dec(x_52); +lean_dec(x_42); +x_54 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_54, 0, x_53); +return x_54; } } } +} +} +block_134: +{ +if (x_56 == 0) +{ +uint8_t x_57; uint8_t x_84; lean_object* x_111; uint8_t x_112; +x_111 = l_Lean_Meta_evalNat___closed__11; +x_112 = lean_name_eq(x_19, x_111); +if (x_112 == 0) +{ +uint8_t x_113; +x_113 = 0; +x_84 = x_113; +goto block_110; +} +else +{ +lean_object* x_114; uint8_t x_115; +x_114 = lean_unsigned_to_nat(4u); +x_115 = lean_nat_dec_eq(x_21, x_114); +x_84 = x_115; +goto block_110; +} +block_83: +{ +if (x_57 == 0) +{ +lean_object* x_58; uint8_t x_59; +x_58 = l_Lean_Meta_evalNat___closed__7; +x_59 = lean_name_eq(x_19, x_58); +if (x_59 == 0) +{ +uint8_t x_60; +x_60 = 0; +x_22 = x_60; +goto block_55; +} +else +{ +lean_object* x_61; uint8_t x_62; +x_61 = lean_unsigned_to_nat(4u); +x_62 = lean_nat_dec_eq(x_21, x_61); +x_22 = x_62; +goto block_55; +} +} else { -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_dec(x_19); -x_52 = lean_unsigned_to_nat(2u); -x_53 = lean_nat_sub(x_21, x_52); -x_54 = lean_unsigned_to_nat(1u); -x_55 = lean_nat_sub(x_53, x_54); -lean_dec(x_53); -x_56 = l_Lean_Expr_getRevArg_x21___main(x_1, x_55); -x_57 = l_Lean_Meta_evalNat___main(x_56); -if (lean_obj_tag(x_57) == 0) -{ -lean_object* x_58; -lean_dec(x_21); -lean_dec(x_1); -x_58 = lean_box(0); -return x_58; -} -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; -x_59 = lean_ctor_get(x_57, 0); -lean_inc(x_59); -lean_dec(x_57); -x_60 = lean_unsigned_to_nat(3u); -x_61 = lean_nat_sub(x_21, x_60); -lean_dec(x_21); -x_62 = lean_nat_sub(x_61, x_54); -lean_dec(x_61); -x_63 = l_Lean_Expr_getRevArg_x21___main(x_1, x_62); -lean_dec(x_1); -x_64 = l_Lean_Meta_evalNat___main(x_63); -if (lean_obj_tag(x_64) == 0) -{ -lean_object* x_65; -lean_dec(x_59); -x_65 = lean_box(0); -return x_65; -} -else -{ -uint8_t x_66; -x_66 = !lean_is_exclusive(x_64); -if (x_66 == 0) -{ -lean_object* x_67; lean_object* x_68; -x_67 = lean_ctor_get(x_64, 0); -x_68 = lean_nat_mul(x_59, x_67); -lean_dec(x_67); -lean_dec(x_59); -lean_ctor_set(x_64, 0, x_68); -return x_64; -} -else -{ -lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_69 = lean_ctor_get(x_64, 0); -lean_inc(x_69); +x_63 = lean_unsigned_to_nat(2u); +x_64 = lean_nat_sub(x_21, x_63); +x_65 = lean_unsigned_to_nat(1u); +x_66 = lean_nat_sub(x_64, x_65); lean_dec(x_64); -x_70 = lean_nat_mul(x_59, x_69); -lean_dec(x_69); -lean_dec(x_59); -x_71 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_71, 0, x_70); -return x_71; -} -} -} -} -} -} -block_100: +x_67 = l_Lean_Expr_getRevArg_x21___main(x_1, x_66); +x_68 = l_Lean_Meta_evalNat(x_67); +if (lean_obj_tag(x_68) == 0) { -lean_object* x_74; uint8_t x_75; -lean_dec(x_73); -x_74 = l_Lean_Meta_evalNat___main___closed__10; -x_75 = lean_name_eq(x_19, x_74); -if (x_75 == 0) +lean_object* x_69; +lean_dec(x_21); +lean_dec(x_1); +x_69 = lean_box(0); +return x_69; +} +else +{ +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_70 = lean_ctor_get(x_68, 0); +lean_inc(x_70); +lean_dec(x_68); +x_71 = lean_unsigned_to_nat(3u); +x_72 = lean_nat_sub(x_21, x_71); +lean_dec(x_21); +x_73 = lean_nat_sub(x_72, x_65); +lean_dec(x_72); +x_74 = l_Lean_Expr_getRevArg_x21___main(x_1, x_73); +lean_dec(x_1); +x_75 = l_Lean_Meta_evalNat(x_74); +if (lean_obj_tag(x_75) == 0) { lean_object* x_76; +lean_dec(x_70); x_76 = lean_box(0); -x_23 = x_76; -goto block_72; +return x_76; } else { -lean_object* x_77; uint8_t x_78; -x_77 = lean_unsigned_to_nat(4u); -x_78 = lean_nat_dec_eq(x_21, x_77); -if (x_78 == 0) +uint8_t x_77; +x_77 = !lean_is_exclusive(x_75); +if (x_77 == 0) { -lean_object* x_79; -x_79 = lean_box(0); -x_23 = x_79; -goto block_72; +lean_object* x_78; lean_object* x_79; +x_78 = lean_ctor_get(x_75, 0); +x_79 = lean_nat_sub(x_70, x_78); +lean_dec(x_78); +lean_dec(x_70); +lean_ctor_set(x_75, 0, x_79); +return x_75; } 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_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_ctor_get(x_75, 0); +lean_inc(x_80); +lean_dec(x_75); +x_81 = lean_nat_sub(x_70, x_80); +lean_dec(x_80); +lean_dec(x_70); +x_82 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_82, 0, x_81); +return x_82; +} +} +} +} +} +block_110: +{ +if (x_84 == 0) +{ +lean_object* x_85; uint8_t x_86; +x_85 = l_Lean_Meta_evalNat___closed__9; +x_86 = lean_name_eq(x_19, x_85); +if (x_86 == 0) +{ +uint8_t x_87; +x_87 = 0; +x_57 = x_87; +goto block_83; +} +else +{ +lean_object* x_88; uint8_t x_89; +x_88 = lean_unsigned_to_nat(4u); +x_89 = lean_nat_dec_eq(x_21, x_88); +x_57 = x_89; +goto block_83; +} +} +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_19); -x_80 = lean_unsigned_to_nat(2u); -x_81 = lean_nat_sub(x_21, x_80); -x_82 = lean_unsigned_to_nat(1u); -x_83 = lean_nat_sub(x_81, x_82); -lean_dec(x_81); -x_84 = l_Lean_Expr_getRevArg_x21___main(x_1, x_83); -x_85 = l_Lean_Meta_evalNat___main(x_84); -if (lean_obj_tag(x_85) == 0) +x_90 = lean_unsigned_to_nat(2u); +x_91 = lean_nat_sub(x_21, x_90); +x_92 = lean_unsigned_to_nat(1u); +x_93 = lean_nat_sub(x_91, x_92); +lean_dec(x_91); +x_94 = l_Lean_Expr_getRevArg_x21___main(x_1, x_93); +x_95 = l_Lean_Meta_evalNat(x_94); +if (lean_obj_tag(x_95) == 0) { -lean_object* x_86; +lean_object* x_96; lean_dec(x_21); lean_dec(x_1); -x_86 = lean_box(0); -return x_86; +x_96 = lean_box(0); +return x_96; } 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; -x_87 = lean_ctor_get(x_85, 0); -lean_inc(x_87); -lean_dec(x_85); -x_88 = lean_unsigned_to_nat(3u); -x_89 = lean_nat_sub(x_21, x_88); -lean_dec(x_21); -x_90 = lean_nat_sub(x_89, x_82); -lean_dec(x_89); -x_91 = l_Lean_Expr_getRevArg_x21___main(x_1, x_90); -lean_dec(x_1); -x_92 = l_Lean_Meta_evalNat___main(x_91); -if (lean_obj_tag(x_92) == 0) -{ -lean_object* x_93; -lean_dec(x_87); -x_93 = lean_box(0); -return x_93; -} -else -{ -uint8_t x_94; -x_94 = !lean_is_exclusive(x_92); -if (x_94 == 0) -{ -lean_object* x_95; lean_object* x_96; -x_95 = lean_ctor_get(x_92, 0); -x_96 = lean_nat_sub(x_87, x_95); -lean_dec(x_95); -lean_dec(x_87); -lean_ctor_set(x_92, 0, x_96); -return x_92; -} -else -{ -lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_97 = lean_ctor_get(x_92, 0); +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; +x_97 = lean_ctor_get(x_95, 0); lean_inc(x_97); -lean_dec(x_92); -x_98 = lean_nat_sub(x_87, x_97); +lean_dec(x_95); +x_98 = lean_unsigned_to_nat(3u); +x_99 = lean_nat_sub(x_21, x_98); +lean_dec(x_21); +x_100 = lean_nat_sub(x_99, x_92); +lean_dec(x_99); +x_101 = l_Lean_Expr_getRevArg_x21___main(x_1, x_100); +lean_dec(x_1); +x_102 = l_Lean_Meta_evalNat(x_101); +if (lean_obj_tag(x_102) == 0) +{ +lean_object* x_103; lean_dec(x_97); -lean_dec(x_87); -x_99 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_99, 0, x_98); -return x_99; -} -} -} -} -} -} -} -block_153: -{ -lean_object* x_129; uint8_t x_130; -lean_dec(x_128); -x_129 = l_Lean_Meta_evalNat___main___closed__13; -x_130 = lean_name_eq(x_19, x_129); -if (x_130 == 0) -{ -lean_object* x_131; -x_131 = lean_box(0); -x_22 = x_131; -goto block_127; +x_103 = lean_box(0); +return x_103; } else { -lean_object* x_132; uint8_t x_133; -x_132 = lean_unsigned_to_nat(2u); -x_133 = lean_nat_dec_eq(x_21, x_132); -if (x_133 == 0) +uint8_t x_104; +x_104 = !lean_is_exclusive(x_102); +if (x_104 == 0) { -lean_object* x_134; -x_134 = lean_box(0); -x_22 = x_134; -goto block_127; +lean_object* x_105; lean_object* x_106; +x_105 = lean_ctor_get(x_102, 0); +x_106 = lean_nat_add(x_97, x_105); +lean_dec(x_105); +lean_dec(x_97); +lean_ctor_set(x_102, 0, x_106); +return x_102; } else { -lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; +lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_107 = lean_ctor_get(x_102, 0); +lean_inc(x_107); +lean_dec(x_102); +x_108 = lean_nat_add(x_97, x_107); +lean_dec(x_107); +lean_dec(x_97); +x_109 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_109, 0, x_108); +return x_109; +} +} +} +} +} +} +else +{ +lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_dec(x_19); -x_135 = lean_nat_sub(x_21, x_20); -x_136 = lean_unsigned_to_nat(1u); -x_137 = lean_nat_sub(x_135, x_136); -lean_dec(x_135); -x_138 = l_Lean_Expr_getRevArg_x21___main(x_1, x_137); -x_139 = l_Lean_Meta_evalNat___main(x_138); -if (lean_obj_tag(x_139) == 0) +x_116 = lean_nat_sub(x_21, x_20); +x_117 = lean_unsigned_to_nat(1u); +x_118 = lean_nat_sub(x_116, x_117); +lean_dec(x_116); +x_119 = l_Lean_Expr_getRevArg_x21___main(x_1, x_118); +x_120 = l_Lean_Meta_evalNat(x_119); +if (lean_obj_tag(x_120) == 0) { -lean_object* x_140; +lean_object* x_121; lean_dec(x_21); lean_dec(x_1); -x_140 = lean_box(0); -return x_140; +x_121 = lean_box(0); +return x_121; +} +else +{ +lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_122 = lean_ctor_get(x_120, 0); +lean_inc(x_122); +lean_dec(x_120); +x_123 = lean_nat_sub(x_21, x_117); +lean_dec(x_21); +x_124 = lean_nat_sub(x_123, x_117); +lean_dec(x_123); +x_125 = l_Lean_Expr_getRevArg_x21___main(x_1, x_124); +lean_dec(x_1); +x_126 = l_Lean_Meta_evalNat(x_125); +if (lean_obj_tag(x_126) == 0) +{ +lean_object* x_127; +lean_dec(x_122); +x_127 = lean_box(0); +return x_127; +} +else +{ +uint8_t x_128; +x_128 = !lean_is_exclusive(x_126); +if (x_128 == 0) +{ +lean_object* x_129; lean_object* x_130; +x_129 = lean_ctor_get(x_126, 0); +x_130 = lean_nat_mul(x_122, x_129); +lean_dec(x_129); +lean_dec(x_122); +lean_ctor_set(x_126, 0, x_130); +return x_126; +} +else +{ +lean_object* x_131; lean_object* x_132; lean_object* x_133; +x_131 = lean_ctor_get(x_126, 0); +lean_inc(x_131); +lean_dec(x_126); +x_132 = lean_nat_mul(x_122, x_131); +lean_dec(x_131); +lean_dec(x_122); +x_133 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_133, 0, x_132); +return x_133; +} +} +} +} +} +block_159: +{ +if (x_135 == 0) +{ +lean_object* x_136; uint8_t x_137; +x_136 = l_Lean_Meta_evalNat___closed__12; +x_137 = lean_name_eq(x_19, x_136); +if (x_137 == 0) +{ +uint8_t x_138; +x_138 = 0; +x_56 = x_138; +goto block_134; +} +else +{ +lean_object* x_139; uint8_t x_140; +x_139 = lean_unsigned_to_nat(2u); +x_140 = lean_nat_dec_eq(x_21, x_139); +x_56 = x_140; +goto block_134; +} } else { lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; -x_141 = lean_ctor_get(x_139, 0); -lean_inc(x_141); -lean_dec(x_139); -x_142 = lean_nat_sub(x_21, x_136); -lean_dec(x_21); -x_143 = lean_nat_sub(x_142, x_136); -lean_dec(x_142); +lean_dec(x_19); +x_141 = lean_nat_sub(x_21, x_20); +x_142 = lean_unsigned_to_nat(1u); +x_143 = lean_nat_sub(x_141, x_142); +lean_dec(x_141); x_144 = l_Lean_Expr_getRevArg_x21___main(x_1, x_143); -lean_dec(x_1); -x_145 = l_Lean_Meta_evalNat___main(x_144); +x_145 = l_Lean_Meta_evalNat(x_144); if (lean_obj_tag(x_145) == 0) { lean_object* x_146; -lean_dec(x_141); +lean_dec(x_21); +lean_dec(x_1); x_146 = lean_box(0); return x_146; } else { -uint8_t x_147; -x_147 = !lean_is_exclusive(x_145); -if (x_147 == 0) -{ -lean_object* x_148; lean_object* x_149; -x_148 = lean_ctor_get(x_145, 0); -x_149 = lean_nat_mul(x_141, x_148); -lean_dec(x_148); -lean_dec(x_141); -lean_ctor_set(x_145, 0, x_149); -return x_145; -} -else -{ -lean_object* x_150; lean_object* x_151; lean_object* x_152; -x_150 = lean_ctor_get(x_145, 0); -lean_inc(x_150); +lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; +x_147 = lean_ctor_get(x_145, 0); +lean_inc(x_147); lean_dec(x_145); -x_151 = lean_nat_mul(x_141, x_150); -lean_dec(x_150); -lean_dec(x_141); -x_152 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_152, 0, x_151); +x_148 = lean_nat_sub(x_21, x_142); +lean_dec(x_21); +x_149 = lean_nat_sub(x_148, x_142); +lean_dec(x_148); +x_150 = l_Lean_Expr_getRevArg_x21___main(x_1, x_149); +lean_dec(x_1); +x_151 = l_Lean_Meta_evalNat(x_150); +if (lean_obj_tag(x_151) == 0) +{ +lean_object* x_152; +lean_dec(x_147); +x_152 = lean_box(0); return x_152; } -} -} -} -} -} -block_179: +else { -lean_object* x_155; uint8_t x_156; +uint8_t x_153; +x_153 = !lean_is_exclusive(x_151); +if (x_153 == 0) +{ +lean_object* x_154; lean_object* x_155; +x_154 = lean_ctor_get(x_151, 0); +x_155 = lean_nat_sub(x_147, x_154); lean_dec(x_154); -x_155 = l_Lean_Meta_evalNat___main___closed__14; -x_156 = lean_name_eq(x_19, x_155); -if (x_156 == 0) -{ -lean_object* x_157; -x_157 = lean_box(0); -x_128 = x_157; -goto block_153; +lean_dec(x_147); +lean_ctor_set(x_151, 0, x_155); +return x_151; } else { -lean_object* x_158; uint8_t x_159; -x_158 = lean_unsigned_to_nat(2u); -x_159 = lean_nat_dec_eq(x_21, x_158); -if (x_159 == 0) +lean_object* x_156; lean_object* x_157; lean_object* x_158; +x_156 = lean_ctor_get(x_151, 0); +lean_inc(x_156); +lean_dec(x_151); +x_157 = lean_nat_sub(x_147, x_156); +lean_dec(x_156); +lean_dec(x_147); +x_158 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_158, 0, x_157); +return x_158; +} +} +} +} +} +block_184: { -lean_object* x_160; -x_160 = lean_box(0); -x_128 = x_160; -goto block_153; +if (x_160 == 0) +{ +lean_object* x_161; uint8_t x_162; +x_161 = l_Lean_Meta_evalNat___closed__13; +x_162 = lean_name_eq(x_19, x_161); +if (x_162 == 0) +{ +uint8_t x_163; +x_163 = 0; +x_135 = x_163; +goto block_159; } else { -lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; +lean_object* x_164; uint8_t x_165; +x_164 = lean_unsigned_to_nat(2u); +x_165 = lean_nat_dec_eq(x_21, x_164); +x_135 = x_165; +goto block_159; +} +} +else +{ +lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_dec(x_19); -x_161 = lean_nat_sub(x_21, x_20); -x_162 = lean_unsigned_to_nat(1u); -x_163 = lean_nat_sub(x_161, x_162); -lean_dec(x_161); -x_164 = l_Lean_Expr_getRevArg_x21___main(x_1, x_163); -x_165 = l_Lean_Meta_evalNat___main(x_164); -if (lean_obj_tag(x_165) == 0) +x_166 = lean_nat_sub(x_21, x_20); +x_167 = lean_unsigned_to_nat(1u); +x_168 = lean_nat_sub(x_166, x_167); +lean_dec(x_166); +x_169 = l_Lean_Expr_getRevArg_x21___main(x_1, x_168); +x_170 = l_Lean_Meta_evalNat(x_169); +if (lean_obj_tag(x_170) == 0) { -lean_object* x_166; +lean_object* x_171; lean_dec(x_21); lean_dec(x_1); -x_166 = lean_box(0); -return x_166; -} -else -{ -lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; -x_167 = lean_ctor_get(x_165, 0); -lean_inc(x_167); -lean_dec(x_165); -x_168 = lean_nat_sub(x_21, x_162); -lean_dec(x_21); -x_169 = lean_nat_sub(x_168, x_162); -lean_dec(x_168); -x_170 = l_Lean_Expr_getRevArg_x21___main(x_1, x_169); -lean_dec(x_1); -x_171 = l_Lean_Meta_evalNat___main(x_170); -if (lean_obj_tag(x_171) == 0) -{ -lean_object* x_172; -lean_dec(x_167); -x_172 = lean_box(0); -return x_172; -} -else -{ -uint8_t x_173; -x_173 = !lean_is_exclusive(x_171); -if (x_173 == 0) -{ -lean_object* x_174; lean_object* x_175; -x_174 = lean_ctor_get(x_171, 0); -x_175 = lean_nat_sub(x_167, x_174); -lean_dec(x_174); -lean_dec(x_167); -lean_ctor_set(x_171, 0, x_175); +x_171 = lean_box(0); return x_171; } else { -lean_object* x_176; lean_object* x_177; lean_object* x_178; -x_176 = lean_ctor_get(x_171, 0); -lean_inc(x_176); -lean_dec(x_171); -x_177 = lean_nat_sub(x_167, x_176); +lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; +x_172 = lean_ctor_get(x_170, 0); +lean_inc(x_172); +lean_dec(x_170); +x_173 = lean_nat_sub(x_21, x_167); +lean_dec(x_21); +x_174 = lean_nat_sub(x_173, x_167); +lean_dec(x_173); +x_175 = l_Lean_Expr_getRevArg_x21___main(x_1, x_174); +lean_dec(x_1); +x_176 = l_Lean_Meta_evalNat(x_175); +if (lean_obj_tag(x_176) == 0) +{ +lean_object* x_177; +lean_dec(x_172); +x_177 = lean_box(0); +return x_177; +} +else +{ +uint8_t x_178; +x_178 = !lean_is_exclusive(x_176); +if (x_178 == 0) +{ +lean_object* x_179; lean_object* x_180; +x_179 = lean_ctor_get(x_176, 0); +x_180 = lean_nat_add(x_172, x_179); +lean_dec(x_179); +lean_dec(x_172); +lean_ctor_set(x_176, 0, x_180); +return x_176; +} +else +{ +lean_object* x_181; lean_object* x_182; lean_object* x_183; +x_181 = lean_ctor_get(x_176, 0); +lean_inc(x_181); lean_dec(x_176); -lean_dec(x_167); -x_178 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_178, 0, x_177); -return x_178; -} -} -} -} -} -} -block_205: -{ -lean_object* x_181; uint8_t x_182; -lean_dec(x_180); -x_181 = l_Lean_Meta_evalNat___main___closed__15; -x_182 = lean_name_eq(x_19, x_181); -if (x_182 == 0) -{ -lean_object* x_183; -x_183 = lean_box(0); -x_154 = x_183; -goto block_179; -} -else -{ -lean_object* x_184; uint8_t x_185; -x_184 = lean_unsigned_to_nat(2u); -x_185 = lean_nat_dec_eq(x_21, x_184); -if (x_185 == 0) -{ -lean_object* x_186; -x_186 = lean_box(0); -x_154 = x_186; -goto block_179; -} -else -{ -lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; -lean_dec(x_19); -x_187 = lean_nat_sub(x_21, x_20); -x_188 = lean_unsigned_to_nat(1u); -x_189 = lean_nat_sub(x_187, x_188); -lean_dec(x_187); -x_190 = l_Lean_Expr_getRevArg_x21___main(x_1, x_189); -x_191 = l_Lean_Meta_evalNat___main(x_190); -if (lean_obj_tag(x_191) == 0) -{ -lean_object* x_192; -lean_dec(x_21); -lean_dec(x_1); -x_192 = lean_box(0); -return x_192; -} -else -{ -lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; -x_193 = lean_ctor_get(x_191, 0); -lean_inc(x_193); -lean_dec(x_191); -x_194 = lean_nat_sub(x_21, x_188); -lean_dec(x_21); -x_195 = lean_nat_sub(x_194, x_188); -lean_dec(x_194); -x_196 = l_Lean_Expr_getRevArg_x21___main(x_1, x_195); -lean_dec(x_1); -x_197 = l_Lean_Meta_evalNat___main(x_196); -if (lean_obj_tag(x_197) == 0) -{ -lean_object* x_198; -lean_dec(x_193); -x_198 = lean_box(0); -return x_198; -} -else -{ -uint8_t x_199; -x_199 = !lean_is_exclusive(x_197); -if (x_199 == 0) -{ -lean_object* x_200; lean_object* x_201; -x_200 = lean_ctor_get(x_197, 0); -x_201 = lean_nat_add(x_193, x_200); -lean_dec(x_200); -lean_dec(x_193); -lean_ctor_set(x_197, 0, x_201); -return x_197; -} -else -{ -lean_object* x_202; lean_object* x_203; lean_object* x_204; -x_202 = lean_ctor_get(x_197, 0); -lean_inc(x_202); -lean_dec(x_197); -x_203 = lean_nat_add(x_193, x_202); -lean_dec(x_202); -lean_dec(x_193); -x_204 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_204, 0, x_203); -return x_204; -} +x_182 = lean_nat_add(x_172, x_181); +lean_dec(x_181); +lean_dec(x_172); +x_183 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_183, 0, x_182); +return x_183; } } } @@ -1035,464 +1458,617 @@ return x_204; } else { -lean_object* x_220; +lean_object* x_207; lean_dec(x_18); lean_dec(x_17); lean_dec(x_1); -x_220 = lean_box(0); -return x_220; +x_207 = lean_box(0); +return x_207; } } case 9: { -lean_object* x_221; -x_221 = lean_ctor_get(x_1, 0); -lean_inc(x_221); +lean_object* x_208; +x_208 = lean_ctor_get(x_1, 0); +lean_inc(x_208); lean_dec(x_1); -if (lean_obj_tag(x_221) == 0) +if (lean_obj_tag(x_208) == 0) { -lean_object* x_222; lean_object* x_223; -x_222 = lean_ctor_get(x_221, 0); -lean_inc(x_222); -lean_dec(x_221); -x_223 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_223, 0, x_222); -return x_223; +lean_object* x_209; lean_object* x_210; +x_209 = lean_ctor_get(x_208, 0); +lean_inc(x_209); +lean_dec(x_208); +x_210 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_210, 0, x_209); +return x_210; } else { -lean_object* x_224; -lean_dec(x_221); -x_224 = lean_box(0); -return x_224; +lean_object* x_211; +lean_dec(x_208); +x_211 = lean_box(0); +return x_211; } } case 10: { -lean_object* x_225; -x_225 = lean_ctor_get(x_1, 1); -lean_inc(x_225); +lean_object* x_212; +x_212 = lean_ctor_get(x_1, 1); +lean_inc(x_212); lean_dec(x_1); -x_1 = x_225; +x_1 = x_212; goto _start; } default: { -lean_object* x_227; +lean_object* x_214; lean_dec(x_1); -x_227 = lean_box(0); -return x_227; +x_214 = lean_box(0); +return x_214; } } } } -lean_object* l_Lean_Meta_evalNat(lean_object* x_1) { +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Meta_evalNat___main(x_1); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__1___rarg), 2, 0); return x_2; } } -lean_object* l___private_Lean_Meta_Offset_1__getOffsetAux___main(lean_object* x_1, uint8_t x_2) { +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__2___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__2___rarg), 2, 0); +return x_2; +} +} +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__3___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__3___rarg), 2, 0); +return x_2; +} +} +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__4___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 4) +{ +lean_object* x_4; lean_object* x_5; uint64_t x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +x_6 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +lean_dec(x_1); +x_7 = lean_box_uint64(x_6); +x_8 = lean_apply_3(x_2, x_4, x_5, x_7); +return x_8; +} +else +{ +lean_object* x_9; +lean_dec(x_2); +x_9 = lean_apply_1(x_3, x_1); +return x_9; +} +} +} +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__4(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__4___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__5___rarg(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_3; if (lean_obj_tag(x_1) == 5) { -lean_object* x_9; lean_object* x_10; -x_9 = lean_ctor_get(x_1, 1); -lean_inc(x_9); -x_10 = l_Lean_Expr_getAppFn___main(x_1); -if (lean_obj_tag(x_10) == 4) -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_53; lean_object* x_90; uint8_t x_91; -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -lean_dec(x_10); -x_12 = lean_unsigned_to_nat(0u); -x_13 = l_Lean_Expr_getAppNumArgsAux___main(x_1, x_12); -x_90 = l_Lean_Meta_evalNat___main___closed__17; -x_91 = lean_name_eq(x_11, x_90); -if (x_91 == 0) -{ -lean_object* x_92; -lean_dec(x_9); -x_92 = lean_box(0); -x_53 = x_92; -goto block_89; +lean_object* x_5; lean_object* x_6; uint64_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +lean_dec(x_4); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +x_7 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +x_8 = lean_box_uint64(x_7); +x_9 = lean_box(x_2); +x_10 = lean_apply_5(x_3, x_1, x_5, x_6, x_8, x_9); +return x_10; } else { -lean_object* x_93; uint8_t x_94; -x_93 = lean_unsigned_to_nat(1u); -x_94 = lean_nat_dec_eq(x_13, x_93); -if (x_94 == 0) +lean_object* x_11; lean_object* x_12; +lean_dec(x_3); +x_11 = lean_box(x_2); +x_12 = lean_apply_2(x_4, x_1, x_11); +return x_12; +} +} +} +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__5(lean_object* x_1) { +_start: { -lean_object* x_95; -lean_dec(x_9); -x_95 = lean_box(0); -x_53 = x_95; -goto block_89; +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__5___rarg___boxed), 4, 0); +return x_2; +} +} +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__5___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; lean_object* x_6; +x_5 = lean_unbox(x_2); +lean_dec(x_2); +x_6 = l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux_match__5___rarg(x_1, x_5, x_3, x_4); +return x_6; +} +} +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux(lean_object* x_1, uint8_t x_2) { +_start: +{ +if (lean_obj_tag(x_1) == 5) +{ +lean_object* x_3; lean_object* x_4; +x_3 = lean_ctor_get(x_1, 1); +lean_inc(x_3); +x_4 = l_Lean_Expr_getAppFn___main(x_1); +if (lean_obj_tag(x_4) == 4) +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; uint8_t x_44; lean_object* x_80; uint8_t x_81; +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +lean_dec(x_4); +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Lean_Expr_getAppNumArgsAux___main(x_1, x_6); +x_80 = l_Lean_Meta_evalNat___closed__15; +x_81 = lean_name_eq(x_5, x_80); +if (x_81 == 0) +{ +lean_object* x_82; uint8_t x_83; +lean_dec(x_3); +x_82 = l_Lean_Meta_evalNat___closed__16; +x_83 = lean_name_eq(x_5, x_82); +if (x_83 == 0) +{ +uint8_t x_84; +x_84 = 0; +x_44 = x_84; +goto block_79; } else { -uint8_t x_96; lean_object* x_97; -lean_dec(x_13); -lean_dec(x_11); +lean_object* x_85; uint8_t x_86; +x_85 = lean_unsigned_to_nat(2u); +x_86 = lean_nat_dec_eq(x_7, x_85); +x_44 = x_86; +goto block_79; +} +} +else +{ +lean_object* x_87; uint8_t x_88; +x_87 = lean_unsigned_to_nat(1u); +x_88 = lean_nat_dec_eq(x_7, x_87); +if (x_88 == 0) +{ +lean_object* x_89; uint8_t x_90; +lean_dec(x_3); +x_89 = l_Lean_Meta_evalNat___closed__16; +x_90 = lean_name_eq(x_5, x_89); +if (x_90 == 0) +{ +uint8_t x_91; +x_91 = 0; +x_44 = x_91; +goto block_79; +} +else +{ +lean_object* x_92; uint8_t x_93; +x_92 = lean_unsigned_to_nat(2u); +x_93 = lean_nat_dec_eq(x_7, x_92); +x_44 = x_93; +goto block_79; +} +} +else +{ +uint8_t x_94; lean_object* x_95; +lean_dec(x_7); +lean_dec(x_5); lean_dec(x_1); -x_96 = 0; -x_97 = l___private_Lean_Meta_Offset_1__getOffsetAux___main(x_9, x_96); -if (lean_obj_tag(x_97) == 0) +x_94 = 0; +x_95 = l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux(x_3, x_94); +if (lean_obj_tag(x_95) == 0) { -lean_object* x_98; -x_98 = lean_box(0); -return x_98; +lean_object* x_96; +x_96 = lean_box(0); +return x_96; } else { -uint8_t x_99; -x_99 = !lean_is_exclusive(x_97); +uint8_t x_97; +x_97 = !lean_is_exclusive(x_95); +if (x_97 == 0) +{ +lean_object* x_98; uint8_t x_99; +x_98 = lean_ctor_get(x_95, 0); +x_99 = !lean_is_exclusive(x_98); if (x_99 == 0) { -lean_object* x_100; uint8_t x_101; -x_100 = lean_ctor_get(x_97, 0); -x_101 = !lean_is_exclusive(x_100); -if (x_101 == 0) -{ -lean_object* x_102; lean_object* x_103; -x_102 = lean_ctor_get(x_100, 1); -x_103 = lean_nat_add(x_102, x_93); -lean_dec(x_102); -lean_ctor_set(x_100, 1, x_103); -return x_97; -} -else -{ -lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_104 = lean_ctor_get(x_100, 0); -x_105 = lean_ctor_get(x_100, 1); -lean_inc(x_105); -lean_inc(x_104); +lean_object* x_100; lean_object* x_101; +x_100 = lean_ctor_get(x_98, 1); +x_101 = lean_nat_add(x_100, x_87); lean_dec(x_100); -x_106 = lean_nat_add(x_105, x_93); -lean_dec(x_105); -x_107 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_107, 0, x_104); -lean_ctor_set(x_107, 1, x_106); -lean_ctor_set(x_97, 0, x_107); -return x_97; +lean_ctor_set(x_98, 1, x_101); +return x_95; +} +else +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +x_102 = lean_ctor_get(x_98, 0); +x_103 = lean_ctor_get(x_98, 1); +lean_inc(x_103); +lean_inc(x_102); +lean_dec(x_98); +x_104 = lean_nat_add(x_103, x_87); +lean_dec(x_103); +x_105 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_105, 0, x_102); +lean_ctor_set(x_105, 1, x_104); +lean_ctor_set(x_95, 0, x_105); +return x_95; } } 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; -x_108 = lean_ctor_get(x_97, 0); +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_106 = lean_ctor_get(x_95, 0); +lean_inc(x_106); +lean_dec(x_95); +x_107 = lean_ctor_get(x_106, 0); +lean_inc(x_107); +x_108 = lean_ctor_get(x_106, 1); lean_inc(x_108); -lean_dec(x_97); -x_109 = lean_ctor_get(x_108, 0); -lean_inc(x_109); -x_110 = lean_ctor_get(x_108, 1); -lean_inc(x_110); -if (lean_is_exclusive(x_108)) { - lean_ctor_release(x_108, 0); - lean_ctor_release(x_108, 1); - x_111 = x_108; +if (lean_is_exclusive(x_106)) { + lean_ctor_release(x_106, 0); + lean_ctor_release(x_106, 1); + x_109 = x_106; } else { - lean_dec_ref(x_108); - x_111 = lean_box(0); + lean_dec_ref(x_106); + x_109 = lean_box(0); } -x_112 = lean_nat_add(x_110, x_93); -lean_dec(x_110); -if (lean_is_scalar(x_111)) { - x_113 = lean_alloc_ctor(0, 2, 0); +x_110 = lean_nat_add(x_108, x_87); +lean_dec(x_108); +if (lean_is_scalar(x_109)) { + x_111 = lean_alloc_ctor(0, 2, 0); } else { - x_113 = x_111; + x_111 = x_109; } -lean_ctor_set(x_113, 0, x_109); -lean_ctor_set(x_113, 1, x_112); -x_114 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_114, 0, x_113); -return x_114; +lean_ctor_set(x_111, 0, x_107); +lean_ctor_set(x_111, 1, x_110); +x_112 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_112, 0, x_111); +return x_112; } } } } -block_52: +block_43: { -lean_object* x_15; uint8_t x_16; -lean_dec(x_14); -x_15 = l_Lean_Meta_evalNat___main___closed__12; -x_16 = lean_name_eq(x_11, x_15); -lean_dec(x_11); -if (x_16 == 0) +if (x_8 == 0) { -lean_object* x_17; -lean_dec(x_13); -x_17 = lean_box(0); -x_3 = x_17; -goto block_8; +lean_dec(x_7); +if (x_2 == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_1); +lean_ctor_set(x_9, 1, x_6); +x_10 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_10, 0, x_9); +return x_10; } else { -lean_object* x_18; uint8_t x_19; -x_18 = lean_unsigned_to_nat(4u); -x_19 = lean_nat_dec_eq(x_13, x_18); -if (x_19 == 0) -{ -lean_object* x_20; -lean_dec(x_13); -x_20 = lean_box(0); -x_3 = x_20; -goto block_8; -} -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; -x_21 = lean_unsigned_to_nat(3u); -x_22 = lean_nat_sub(x_13, x_21); -x_23 = lean_unsigned_to_nat(1u); -x_24 = lean_nat_sub(x_22, x_23); -lean_dec(x_22); -x_25 = l_Lean_Expr_getRevArg_x21___main(x_1, x_24); -x_26 = l_Lean_Meta_evalNat___main(x_25); -if (lean_obj_tag(x_26) == 0) -{ -lean_object* x_27; -lean_dec(x_13); +lean_object* x_11; lean_dec(x_1); -x_27 = lean_box(0); -return x_27; +x_11 = lean_box(0); +return x_11; +} } else { -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; lean_object* x_34; -x_28 = lean_ctor_get(x_26, 0); -lean_inc(x_28); -lean_dec(x_26); -x_29 = lean_unsigned_to_nat(2u); -x_30 = lean_nat_sub(x_13, x_29); +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_unsigned_to_nat(3u); +x_13 = lean_nat_sub(x_7, x_12); +x_14 = lean_unsigned_to_nat(1u); +x_15 = lean_nat_sub(x_13, x_14); lean_dec(x_13); -x_31 = lean_nat_sub(x_30, x_23); +x_16 = l_Lean_Expr_getRevArg_x21___main(x_1, x_15); +x_17 = l_Lean_Meta_evalNat(x_16); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; +lean_dec(x_7); +lean_dec(x_1); +x_18 = lean_box(0); +return x_18; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; +x_19 = lean_ctor_get(x_17, 0); +lean_inc(x_19); +lean_dec(x_17); +x_20 = lean_unsigned_to_nat(2u); +x_21 = lean_nat_sub(x_7, x_20); +lean_dec(x_7); +x_22 = lean_nat_sub(x_21, x_14); +lean_dec(x_21); +x_23 = l_Lean_Expr_getRevArg_x21___main(x_1, x_22); +lean_dec(x_1); +x_24 = 0; +x_25 = l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux(x_23, x_24); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; +lean_dec(x_19); +x_26 = lean_box(0); +return x_26; +} +else +{ +uint8_t x_27; +x_27 = !lean_is_exclusive(x_25); +if (x_27 == 0) +{ +lean_object* x_28; uint8_t x_29; +x_28 = lean_ctor_get(x_25, 0); +x_29 = !lean_is_exclusive(x_28); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_28, 1); +x_31 = lean_nat_add(x_30, x_19); +lean_dec(x_19); lean_dec(x_30); -x_32 = l_Lean_Expr_getRevArg_x21___main(x_1, x_31); -lean_dec(x_1); -x_33 = 0; -x_34 = l___private_Lean_Meta_Offset_1__getOffsetAux___main(x_32, x_33); -if (lean_obj_tag(x_34) == 0) -{ -lean_object* x_35; -lean_dec(x_28); -x_35 = lean_box(0); -return x_35; +lean_ctor_set(x_28, 1, x_31); +return x_25; } else { -uint8_t x_36; -x_36 = !lean_is_exclusive(x_34); -if (x_36 == 0) -{ -lean_object* x_37; uint8_t x_38; -x_37 = lean_ctor_get(x_34, 0); -x_38 = !lean_is_exclusive(x_37); -if (x_38 == 0) -{ -lean_object* x_39; lean_object* x_40; -x_39 = lean_ctor_get(x_37, 1); -x_40 = lean_nat_add(x_39, x_28); +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_32 = lean_ctor_get(x_28, 0); +x_33 = lean_ctor_get(x_28, 1); +lean_inc(x_33); +lean_inc(x_32); lean_dec(x_28); -lean_dec(x_39); -lean_ctor_set(x_37, 1, x_40); -return x_34; -} -else -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_41 = lean_ctor_get(x_37, 0); -x_42 = lean_ctor_get(x_37, 1); -lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_37); -x_43 = lean_nat_add(x_42, x_28); -lean_dec(x_28); -lean_dec(x_42); -x_44 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_44, 0, x_41); -lean_ctor_set(x_44, 1, x_43); -lean_ctor_set(x_34, 0, x_44); -return x_34; +x_34 = lean_nat_add(x_33, x_19); +lean_dec(x_19); +lean_dec(x_33); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_32); +lean_ctor_set(x_35, 1, x_34); +lean_ctor_set(x_25, 0, x_35); +return x_25; } } 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; -x_45 = lean_ctor_get(x_34, 0); -lean_inc(x_45); -lean_dec(x_34); -x_46 = lean_ctor_get(x_45, 0); -lean_inc(x_46); -x_47 = lean_ctor_get(x_45, 1); -lean_inc(x_47); -if (lean_is_exclusive(x_45)) { - lean_ctor_release(x_45, 0); - lean_ctor_release(x_45, 1); - x_48 = x_45; +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_36 = lean_ctor_get(x_25, 0); +lean_inc(x_36); +lean_dec(x_25); +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_36, 1); +lean_inc(x_38); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_39 = x_36; } else { - lean_dec_ref(x_45); - x_48 = lean_box(0); + lean_dec_ref(x_36); + x_39 = lean_box(0); } -x_49 = lean_nat_add(x_47, x_28); -lean_dec(x_28); -lean_dec(x_47); -if (lean_is_scalar(x_48)) { - x_50 = lean_alloc_ctor(0, 2, 0); +x_40 = lean_nat_add(x_38, x_19); +lean_dec(x_19); +lean_dec(x_38); +if (lean_is_scalar(x_39)) { + x_41 = lean_alloc_ctor(0, 2, 0); } else { - x_50 = x_48; + x_41 = x_39; } -lean_ctor_set(x_50, 0, x_46); -lean_ctor_set(x_50, 1, x_49); -x_51 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_51, 0, x_50); -return x_51; +lean_ctor_set(x_41, 0, x_37); +lean_ctor_set(x_41, 1, x_40); +x_42 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_42, 0, x_41); +return x_42; } } } } } -} -block_89: +block_79: { -lean_object* x_54; uint8_t x_55; -lean_dec(x_53); -x_54 = l_Lean_Meta_evalNat___main___closed__15; -x_55 = lean_name_eq(x_11, x_54); -if (x_55 == 0) +if (x_44 == 0) { -lean_object* x_56; -x_56 = lean_box(0); -x_14 = x_56; -goto block_52; +lean_object* x_45; uint8_t x_46; +x_45 = l_Lean_Meta_evalNat___closed__11; +x_46 = lean_name_eq(x_5, x_45); +lean_dec(x_5); +if (x_46 == 0) +{ +uint8_t x_47; +x_47 = 0; +x_8 = x_47; +goto block_43; } else { -lean_object* x_57; uint8_t x_58; -x_57 = lean_unsigned_to_nat(2u); -x_58 = lean_nat_dec_eq(x_13, x_57); -if (x_58 == 0) -{ -lean_object* x_59; -x_59 = lean_box(0); -x_14 = x_59; -goto block_52; +lean_object* x_48; uint8_t x_49; +x_48 = lean_unsigned_to_nat(4u); +x_49 = lean_nat_dec_eq(x_7, x_48); +x_8 = x_49; +goto block_43; +} } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; -lean_dec(x_11); -x_60 = lean_unsigned_to_nat(1u); -x_61 = lean_nat_sub(x_13, x_60); -x_62 = lean_nat_sub(x_61, x_60); -lean_dec(x_61); -x_63 = l_Lean_Expr_getRevArg_x21___main(x_1, x_62); -x_64 = l_Lean_Meta_evalNat___main(x_63); -if (lean_obj_tag(x_64) == 0) +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +lean_dec(x_5); +x_50 = lean_unsigned_to_nat(1u); +x_51 = lean_nat_sub(x_7, x_50); +x_52 = lean_nat_sub(x_51, x_50); +lean_dec(x_51); +x_53 = l_Lean_Expr_getRevArg_x21___main(x_1, x_52); +x_54 = l_Lean_Meta_evalNat(x_53); +if (lean_obj_tag(x_54) == 0) { -lean_object* x_65; -lean_dec(x_13); +lean_object* x_55; +lean_dec(x_7); lean_dec(x_1); -x_65 = lean_box(0); -return x_65; +x_55 = lean_box(0); +return x_55; } else { -lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; lean_object* x_71; -x_66 = lean_ctor_get(x_64, 0); -lean_inc(x_66); +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; lean_object* x_61; +x_56 = lean_ctor_get(x_54, 0); +lean_inc(x_56); +lean_dec(x_54); +x_57 = lean_nat_sub(x_7, x_6); +lean_dec(x_7); +x_58 = lean_nat_sub(x_57, x_50); +lean_dec(x_57); +x_59 = l_Lean_Expr_getRevArg_x21___main(x_1, x_58); +lean_dec(x_1); +x_60 = 0; +x_61 = l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux(x_59, x_60); +if (lean_obj_tag(x_61) == 0) +{ +lean_object* x_62; +lean_dec(x_56); +x_62 = lean_box(0); +return x_62; +} +else +{ +uint8_t x_63; +x_63 = !lean_is_exclusive(x_61); +if (x_63 == 0) +{ +lean_object* x_64; uint8_t x_65; +x_64 = lean_ctor_get(x_61, 0); +x_65 = !lean_is_exclusive(x_64); +if (x_65 == 0) +{ +lean_object* x_66; lean_object* x_67; +x_66 = lean_ctor_get(x_64, 1); +x_67 = lean_nat_add(x_66, x_56); +lean_dec(x_56); +lean_dec(x_66); +lean_ctor_set(x_64, 1, x_67); +return x_61; +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_68 = lean_ctor_get(x_64, 0); +x_69 = lean_ctor_get(x_64, 1); +lean_inc(x_69); +lean_inc(x_68); lean_dec(x_64); -x_67 = lean_nat_sub(x_13, x_12); -lean_dec(x_13); -x_68 = lean_nat_sub(x_67, x_60); -lean_dec(x_67); -x_69 = l_Lean_Expr_getRevArg_x21___main(x_1, x_68); -lean_dec(x_1); -x_70 = 0; -x_71 = l___private_Lean_Meta_Offset_1__getOffsetAux___main(x_69, x_70); -if (lean_obj_tag(x_71) == 0) -{ -lean_object* x_72; -lean_dec(x_66); -x_72 = lean_box(0); -return x_72; +x_70 = lean_nat_add(x_69, x_56); +lean_dec(x_56); +lean_dec(x_69); +x_71 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_71, 0, x_68); +lean_ctor_set(x_71, 1, x_70); +lean_ctor_set(x_61, 0, x_71); +return x_61; +} } else { -uint8_t x_73; -x_73 = !lean_is_exclusive(x_71); -if (x_73 == 0) -{ -lean_object* x_74; uint8_t x_75; -x_74 = lean_ctor_get(x_71, 0); -x_75 = !lean_is_exclusive(x_74); -if (x_75 == 0) -{ -lean_object* x_76; lean_object* x_77; -x_76 = lean_ctor_get(x_74, 1); -x_77 = lean_nat_add(x_76, x_66); -lean_dec(x_66); -lean_dec(x_76); -lean_ctor_set(x_74, 1, x_77); -return 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; +x_72 = lean_ctor_get(x_61, 0); +lean_inc(x_72); +lean_dec(x_61); +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); } -else -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_78 = lean_ctor_get(x_74, 0); -x_79 = lean_ctor_get(x_74, 1); -lean_inc(x_79); -lean_inc(x_78); +x_76 = lean_nat_add(x_74, x_56); +lean_dec(x_56); lean_dec(x_74); -x_80 = lean_nat_add(x_79, x_66); -lean_dec(x_66); -lean_dec(x_79); -x_81 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_81, 0, x_78); -lean_ctor_set(x_81, 1, x_80); -lean_ctor_set(x_71, 0, x_81); -return x_71; -} -} -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; -x_82 = lean_ctor_get(x_71, 0); -lean_inc(x_82); -lean_dec(x_71); -x_83 = lean_ctor_get(x_82, 0); -lean_inc(x_83); -x_84 = lean_ctor_get(x_82, 1); -lean_inc(x_84); -if (lean_is_exclusive(x_82)) { - lean_ctor_release(x_82, 0); - lean_ctor_release(x_82, 1); - x_85 = x_82; +if (lean_is_scalar(x_75)) { + x_77 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_82); - x_85 = lean_box(0); -} -x_86 = lean_nat_add(x_84, x_66); -lean_dec(x_66); -lean_dec(x_84); -if (lean_is_scalar(x_85)) { - x_87 = lean_alloc_ctor(0, 2, 0); -} else { - x_87 = x_85; -} -lean_ctor_set(x_87, 0, x_83); -lean_ctor_set(x_87, 1, x_86); -x_88 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_88, 0, x_87); -return x_88; + x_77 = x_75; } +lean_ctor_set(x_77, 0, x_73); +lean_ctor_set(x_77, 1, x_76); +x_78 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_78, 0, x_77); +return x_78; } } } @@ -1501,83 +2077,138 @@ return x_88; } else { -lean_object* x_115; -lean_dec(x_10); -lean_dec(x_9); -x_115 = lean_box(0); -x_3 = x_115; -goto block_8; -} +lean_dec(x_4); +lean_dec(x_3); +if (x_2 == 0) +{ +lean_object* x_113; lean_object* x_114; lean_object* x_115; +x_113 = lean_unsigned_to_nat(0u); +x_114 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_114, 0, x_1); +lean_ctor_set(x_114, 1, x_113); +x_115 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_115, 0, x_114); +return x_115; } else { lean_object* x_116; +lean_dec(x_1); x_116 = lean_box(0); -x_3 = x_116; -goto block_8; +return x_116; +} } -block_8: -{ -lean_dec(x_3); -if (x_2 == 0) -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_4 = lean_unsigned_to_nat(0u); -x_5 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_5, 0, x_1); -lean_ctor_set(x_5, 1, x_4); -x_6 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_6, 0, x_5); -return x_6; } else { -lean_object* x_7; +if (x_2 == 0) +{ +lean_object* x_117; lean_object* x_118; lean_object* x_119; +x_117 = lean_unsigned_to_nat(0u); +x_118 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_118, 0, x_1); +lean_ctor_set(x_118, 1, x_117); +x_119 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_119, 0, x_118); +return x_119; +} +else +{ +lean_object* x_120; lean_dec(x_1); -x_7 = lean_box(0); -return x_7; +x_120 = lean_box(0); +return x_120; } } } } -lean_object* l___private_Lean_Meta_Offset_1__getOffsetAux___main___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; x_3 = lean_unbox(x_2); lean_dec(x_2); -x_4 = l___private_Lean_Meta_Offset_1__getOffsetAux___main(x_1, x_3); +x_4 = l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux(x_1, x_3); return x_4; } } -lean_object* l___private_Lean_Meta_Offset_1__getOffsetAux(lean_object* x_1, uint8_t x_2) { -_start: -{ -lean_object* x_3; -x_3 = l___private_Lean_Meta_Offset_1__getOffsetAux___main(x_1, x_2); -return x_3; -} -} -lean_object* l___private_Lean_Meta_Offset_1__getOffsetAux___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; lean_object* x_4; -x_3 = lean_unbox(x_2); -lean_dec(x_2); -x_4 = l___private_Lean_Meta_Offset_1__getOffsetAux(x_1, x_3); -return x_4; -} -} -lean_object* l___private_Lean_Meta_Offset_2__getOffset(lean_object* x_1) { +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_getOffset(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; x_2 = 1; -x_3 = l___private_Lean_Meta_Offset_1__getOffsetAux___main(x_1, x_2); +x_3 = l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux(x_1, x_2); return x_3; } } -lean_object* l___private_Lean_Meta_Offset_3__isOffset(lean_object* x_1) { +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_isOffset_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 4) +{ +lean_object* x_4; lean_object* x_5; uint64_t x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +x_6 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +lean_dec(x_1); +x_7 = lean_box_uint64(x_6); +x_8 = lean_apply_3(x_2, x_4, x_5, x_7); +return x_8; +} +else +{ +lean_object* x_9; +lean_dec(x_2); +x_9 = lean_apply_1(x_3, x_1); +return x_9; +} +} +} +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_isOffset_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Offset_0__Lean_Meta_isOffset_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_isOffset_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 5) +{ +lean_object* x_4; lean_object* x_5; uint64_t x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +x_6 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +x_7 = lean_box_uint64(x_6); +x_8 = lean_apply_4(x_2, x_1, x_4, x_5, x_7); +return x_8; +} +else +{ +lean_object* x_9; +lean_dec(x_2); +x_9 = lean_apply_1(x_3, x_1); +return x_9; +} +} +} +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_isOffset_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Offset_0__Lean_Meta_isOffset_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_isOffset(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 5) @@ -1592,12 +2223,12 @@ lean_inc(x_3); lean_dec(x_2); x_4 = lean_unsigned_to_nat(0u); x_5 = l_Lean_Expr_getAppNumArgsAux___main(x_1, x_4); -x_18 = l_Lean_Meta_evalNat___main___closed__17; +x_18 = l_Lean_Meta_evalNat___closed__15; x_19 = lean_name_eq(x_3, x_18); if (x_19 == 0) { lean_object* x_20; uint8_t x_21; -x_20 = l_Lean_Meta_evalNat___main___closed__15; +x_20 = l_Lean_Meta_evalNat___closed__16; x_21 = lean_name_eq(x_3, x_20); if (x_21 == 0) { @@ -1622,7 +2253,7 @@ uint8_t x_25; lean_object* x_26; lean_dec(x_5); lean_dec(x_3); x_25 = 1; -x_26 = l___private_Lean_Meta_Offset_1__getOffsetAux___main(x_1, x_25); +x_26 = l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux(x_1, x_25); return x_26; } } @@ -1635,7 +2266,7 @@ x_28 = lean_nat_dec_eq(x_5, x_27); if (x_28 == 0) { lean_object* x_29; uint8_t x_30; -x_29 = l_Lean_Meta_evalNat___main___closed__15; +x_29 = l_Lean_Meta_evalNat___closed__16; x_30 = lean_name_eq(x_3, x_29); if (x_30 == 0) { @@ -1658,7 +2289,7 @@ uint8_t x_33; lean_object* x_34; lean_dec(x_5); lean_dec(x_3); x_33 = 1; -x_34 = l___private_Lean_Meta_Offset_1__getOffsetAux___main(x_1, x_33); +x_34 = l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux(x_1, x_33); return x_34; } } @@ -1669,14 +2300,14 @@ uint8_t x_35; lean_object* x_36; lean_dec(x_5); lean_dec(x_3); x_35 = 1; -x_36 = l___private_Lean_Meta_Offset_1__getOffsetAux___main(x_1, x_35); +x_36 = l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux(x_1, x_35); return x_36; } } block_17: { lean_object* x_7; uint8_t x_8; -x_7 = l_Lean_Meta_evalNat___main___closed__12; +x_7 = l_Lean_Meta_evalNat___closed__11; x_8 = lean_name_eq(x_3, x_7); lean_dec(x_3); if (x_8 == 0) @@ -1693,7 +2324,7 @@ else { uint8_t x_10; lean_object* x_11; x_10 = 1; -x_11 = l___private_Lean_Meta_Offset_1__getOffsetAux___main(x_1, x_10); +x_11 = l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux(x_1, x_10); return x_11; } } @@ -1714,7 +2345,7 @@ else { uint8_t x_15; lean_object* x_16; x_15 = 1; -x_16 = l___private_Lean_Meta_Offset_1__getOffsetAux___main(x_1, x_15); +x_16 = l___private_Lean_Meta_Offset_0__Lean_Meta_getOffsetAux(x_1, x_15); return x_16; } } @@ -1738,11 +2369,41 @@ return x_38; } } } -uint8_t l___private_Lean_Meta_Offset_4__isNatZero(lean_object* x_1) { +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_isNatZero_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; +lean_dec(x_2); +x_4 = lean_apply_1(x_3, x_1); +return x_4; +} +else +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_3); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_apply_1(x_2, x_5); +return x_6; +} +} +} +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_isNatZero_match__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Meta_evalNat___main(x_1); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Offset_0__Lean_Meta_isNatZero_match__1___rarg), 3, 0); +return x_2; +} +} +uint8_t l___private_Lean_Meta_Offset_0__Lean_Meta_isNatZero(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Meta_evalNat(x_1); if (lean_obj_tag(x_2) == 0) { uint8_t x_3; @@ -1762,26 +2423,26 @@ return x_6; } } } -lean_object* l___private_Lean_Meta_Offset_4__isNatZero___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_isNatZero___boxed(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; -x_2 = l___private_Lean_Meta_Offset_4__isNatZero(x_1); +x_2 = l___private_Lean_Meta_Offset_0__Lean_Meta_isNatZero(x_1); x_3 = lean_box(x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Meta_Offset_5__mkOffset___closed__1() { +static lean_object* _init_l___private_Lean_Meta_Offset_0__Lean_Meta_mkOffset___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Meta_evalNat___main___closed__15; +x_2 = l_Lean_Meta_evalNat___closed__16; x_3 = l_Lean_mkConst(x_2, x_1); return x_3; } } -lean_object* l___private_Lean_Meta_Offset_5__mkOffset(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Lean_Meta_Offset_0__Lean_Meta_mkOffset(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; uint8_t x_4; @@ -1791,12 +2452,12 @@ if (x_4 == 0) { uint8_t x_5; lean_inc(x_1); -x_5 = l___private_Lean_Meta_Offset_4__isNatZero(x_1); +x_5 = l___private_Lean_Meta_Offset_0__Lean_Meta_isNatZero(x_1); if (x_5 == 0) { lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = l_Lean_mkNatLit(x_2); -x_7 = l___private_Lean_Meta_Offset_5__mkOffset___closed__1; +x_7 = l___private_Lean_Meta_Offset_0__Lean_Meta_mkOffset___closed__1; x_8 = l_Lean_mkAppB(x_7, x_1, x_6); return x_8; } @@ -1815,16 +2476,217 @@ return x_1; } } } +lean_object* l_Lean_Meta_isDefEqOffset_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Meta_isDefEqOffset_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_isDefEqOffset_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_isDefEqOffset_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +x_9 = lean_apply_2(x_2, x_7, x_8); +return x_9; +} +} +} +lean_object* l_Lean_Meta_isDefEqOffset_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_isDefEqOffset_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_isDefEqOffset_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Meta_isDefEqOffset_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_isDefEqOffset_match__3___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_isDefEqOffset_match__4___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +x_9 = lean_apply_2(x_2, x_7, x_8); +return x_9; +} +} +} +lean_object* l_Lean_Meta_isDefEqOffset_match__4(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_isDefEqOffset_match__4___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_isDefEqOffset_match__5___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Meta_isDefEqOffset_match__5(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_isDefEqOffset_match__5___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_isDefEqOffset_match__6___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +x_9 = lean_apply_2(x_2, x_7, x_8); +return x_9; +} +} +} +lean_object* l_Lean_Meta_isDefEqOffset_match__6(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_isDefEqOffset_match__6___rarg), 3, 0); +return x_2; +} +} lean_object* l_Lean_Meta_isDefEqOffset(lean_object* x_1, lean_object* x_2, 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_1); -x_9 = l___private_Lean_Meta_Offset_3__isOffset(x_1); +x_9 = l___private_Lean_Meta_Offset_0__Lean_Meta_isOffset(x_1); if (lean_obj_tag(x_9) == 0) { lean_object* x_10; -x_10 = l_Lean_Meta_evalNat___main(x_1); +x_10 = l_Lean_Meta_evalNat(x_1); if (lean_obj_tag(x_10) == 0) { uint8_t x_11; lean_object* x_12; lean_object* x_13; @@ -1848,7 +2710,7 @@ x_14 = lean_ctor_get(x_10, 0); lean_inc(x_14); lean_dec(x_10); lean_inc(x_2); -x_15 = l___private_Lean_Meta_Offset_3__isOffset(x_2); +x_15 = l___private_Lean_Meta_Offset_0__Lean_Meta_isOffset(x_2); if (lean_obj_tag(x_15) == 0) { lean_object* x_16; @@ -1857,7 +2719,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_16 = l_Lean_Meta_evalNat___main(x_2); +x_16 = l_Lean_Meta_evalNat(x_2); if (lean_obj_tag(x_16) == 0) { uint8_t x_17; lean_object* x_18; lean_object* x_19; @@ -1997,11 +2859,11 @@ x_52 = lean_ctor_get(x_50, 1); lean_inc(x_52); lean_dec(x_50); lean_inc(x_2); -x_53 = l___private_Lean_Meta_Offset_3__isOffset(x_2); +x_53 = l___private_Lean_Meta_Offset_0__Lean_Meta_isOffset(x_2); if (lean_obj_tag(x_53) == 0) { lean_object* x_54; -x_54 = l_Lean_Meta_evalNat___main(x_2); +x_54 = l_Lean_Meta_evalNat(x_2); if (lean_obj_tag(x_54) == 0) { uint8_t x_55; lean_object* x_56; lean_object* x_57; @@ -2133,7 +2995,7 @@ lean_object* x_86; lean_object* x_87; lean_object* x_88; x_86 = lean_nat_sub(x_52, x_83); lean_dec(x_83); lean_dec(x_52); -x_87 = l___private_Lean_Meta_Offset_5__mkOffset(x_51, x_86); +x_87 = l___private_Lean_Meta_Offset_0__Lean_Meta_mkOffset(x_51, x_86); x_88 = l_Lean_Meta_isExprDefEqAux(x_87, x_82, x_3, x_4, x_5, x_6, x_7, x_8); if (lean_obj_tag(x_88) == 0) { @@ -2197,7 +3059,7 @@ lean_object* x_104; lean_object* x_105; lean_object* x_106; x_104 = lean_nat_sub(x_83, x_52); lean_dec(x_52); lean_dec(x_83); -x_105 = l___private_Lean_Meta_Offset_5__mkOffset(x_82, x_104); +x_105 = l___private_Lean_Meta_Offset_0__Lean_Meta_mkOffset(x_82, x_104); x_106 = l_Lean_Meta_isExprDefEqAux(x_51, x_105, x_3, x_4, x_5, x_6, x_7, x_8); if (lean_obj_tag(x_106) == 0) { @@ -2339,42 +3201,42 @@ lean_dec_ref(res); res = initialize_Lean_Meta_InferType(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Lean_Meta_evalNat___main___closed__1 = _init_l_Lean_Meta_evalNat___main___closed__1(); -lean_mark_persistent(l_Lean_Meta_evalNat___main___closed__1); -l_Lean_Meta_evalNat___main___closed__2 = _init_l_Lean_Meta_evalNat___main___closed__2(); -lean_mark_persistent(l_Lean_Meta_evalNat___main___closed__2); -l_Lean_Meta_evalNat___main___closed__3 = _init_l_Lean_Meta_evalNat___main___closed__3(); -lean_mark_persistent(l_Lean_Meta_evalNat___main___closed__3); -l_Lean_Meta_evalNat___main___closed__4 = _init_l_Lean_Meta_evalNat___main___closed__4(); -lean_mark_persistent(l_Lean_Meta_evalNat___main___closed__4); -l_Lean_Meta_evalNat___main___closed__5 = _init_l_Lean_Meta_evalNat___main___closed__5(); -lean_mark_persistent(l_Lean_Meta_evalNat___main___closed__5); -l_Lean_Meta_evalNat___main___closed__6 = _init_l_Lean_Meta_evalNat___main___closed__6(); -lean_mark_persistent(l_Lean_Meta_evalNat___main___closed__6); -l_Lean_Meta_evalNat___main___closed__7 = _init_l_Lean_Meta_evalNat___main___closed__7(); -lean_mark_persistent(l_Lean_Meta_evalNat___main___closed__7); -l_Lean_Meta_evalNat___main___closed__8 = _init_l_Lean_Meta_evalNat___main___closed__8(); -lean_mark_persistent(l_Lean_Meta_evalNat___main___closed__8); -l_Lean_Meta_evalNat___main___closed__9 = _init_l_Lean_Meta_evalNat___main___closed__9(); -lean_mark_persistent(l_Lean_Meta_evalNat___main___closed__9); -l_Lean_Meta_evalNat___main___closed__10 = _init_l_Lean_Meta_evalNat___main___closed__10(); -lean_mark_persistent(l_Lean_Meta_evalNat___main___closed__10); -l_Lean_Meta_evalNat___main___closed__11 = _init_l_Lean_Meta_evalNat___main___closed__11(); -lean_mark_persistent(l_Lean_Meta_evalNat___main___closed__11); -l_Lean_Meta_evalNat___main___closed__12 = _init_l_Lean_Meta_evalNat___main___closed__12(); -lean_mark_persistent(l_Lean_Meta_evalNat___main___closed__12); -l_Lean_Meta_evalNat___main___closed__13 = _init_l_Lean_Meta_evalNat___main___closed__13(); -lean_mark_persistent(l_Lean_Meta_evalNat___main___closed__13); -l_Lean_Meta_evalNat___main___closed__14 = _init_l_Lean_Meta_evalNat___main___closed__14(); -lean_mark_persistent(l_Lean_Meta_evalNat___main___closed__14); -l_Lean_Meta_evalNat___main___closed__15 = _init_l_Lean_Meta_evalNat___main___closed__15(); -lean_mark_persistent(l_Lean_Meta_evalNat___main___closed__15); -l_Lean_Meta_evalNat___main___closed__16 = _init_l_Lean_Meta_evalNat___main___closed__16(); -lean_mark_persistent(l_Lean_Meta_evalNat___main___closed__16); -l_Lean_Meta_evalNat___main___closed__17 = _init_l_Lean_Meta_evalNat___main___closed__17(); -lean_mark_persistent(l_Lean_Meta_evalNat___main___closed__17); -l___private_Lean_Meta_Offset_5__mkOffset___closed__1 = _init_l___private_Lean_Meta_Offset_5__mkOffset___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_Offset_5__mkOffset___closed__1); +l_Lean_Meta_evalNat_match__2___rarg___closed__1 = _init_l_Lean_Meta_evalNat_match__2___rarg___closed__1(); +lean_mark_persistent(l_Lean_Meta_evalNat_match__2___rarg___closed__1); +l_Lean_Meta_evalNat___closed__1 = _init_l_Lean_Meta_evalNat___closed__1(); +lean_mark_persistent(l_Lean_Meta_evalNat___closed__1); +l_Lean_Meta_evalNat___closed__2 = _init_l_Lean_Meta_evalNat___closed__2(); +lean_mark_persistent(l_Lean_Meta_evalNat___closed__2); +l_Lean_Meta_evalNat___closed__3 = _init_l_Lean_Meta_evalNat___closed__3(); +lean_mark_persistent(l_Lean_Meta_evalNat___closed__3); +l_Lean_Meta_evalNat___closed__4 = _init_l_Lean_Meta_evalNat___closed__4(); +lean_mark_persistent(l_Lean_Meta_evalNat___closed__4); +l_Lean_Meta_evalNat___closed__5 = _init_l_Lean_Meta_evalNat___closed__5(); +lean_mark_persistent(l_Lean_Meta_evalNat___closed__5); +l_Lean_Meta_evalNat___closed__6 = _init_l_Lean_Meta_evalNat___closed__6(); +lean_mark_persistent(l_Lean_Meta_evalNat___closed__6); +l_Lean_Meta_evalNat___closed__7 = _init_l_Lean_Meta_evalNat___closed__7(); +lean_mark_persistent(l_Lean_Meta_evalNat___closed__7); +l_Lean_Meta_evalNat___closed__8 = _init_l_Lean_Meta_evalNat___closed__8(); +lean_mark_persistent(l_Lean_Meta_evalNat___closed__8); +l_Lean_Meta_evalNat___closed__9 = _init_l_Lean_Meta_evalNat___closed__9(); +lean_mark_persistent(l_Lean_Meta_evalNat___closed__9); +l_Lean_Meta_evalNat___closed__10 = _init_l_Lean_Meta_evalNat___closed__10(); +lean_mark_persistent(l_Lean_Meta_evalNat___closed__10); +l_Lean_Meta_evalNat___closed__11 = _init_l_Lean_Meta_evalNat___closed__11(); +lean_mark_persistent(l_Lean_Meta_evalNat___closed__11); +l_Lean_Meta_evalNat___closed__12 = _init_l_Lean_Meta_evalNat___closed__12(); +lean_mark_persistent(l_Lean_Meta_evalNat___closed__12); +l_Lean_Meta_evalNat___closed__13 = _init_l_Lean_Meta_evalNat___closed__13(); +lean_mark_persistent(l_Lean_Meta_evalNat___closed__13); +l_Lean_Meta_evalNat___closed__14 = _init_l_Lean_Meta_evalNat___closed__14(); +lean_mark_persistent(l_Lean_Meta_evalNat___closed__14); +l_Lean_Meta_evalNat___closed__15 = _init_l_Lean_Meta_evalNat___closed__15(); +lean_mark_persistent(l_Lean_Meta_evalNat___closed__15); +l_Lean_Meta_evalNat___closed__16 = _init_l_Lean_Meta_evalNat___closed__16(); +lean_mark_persistent(l_Lean_Meta_evalNat___closed__16); +l___private_Lean_Meta_Offset_0__Lean_Meta_mkOffset___closed__1 = _init_l___private_Lean_Meta_Offset_0__Lean_Meta_mkOffset___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Offset_0__Lean_Meta_mkOffset___closed__1); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Meta/RecursorInfo.c b/stage0/stdlib/Lean/Meta/RecursorInfo.c index 6ae817d944..85cee3cf2d 100644 --- a/stage0/stdlib/Lean/Meta/RecursorInfo.c +++ b/stage0/stdlib/Lean/Meta/RecursorInfo.c @@ -13,345 +13,388 @@ #ifdef __cplusplus extern "C" { #endif -lean_object* l_Lean_Meta_RecursorInfo_HasToString___closed__7; -lean_object* l___private_Lean_Meta_RecursorInfo_13__syntaxToMajorPos___boxed(lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_recursorAttribute; -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_6__getParamsPos___spec__2___closed__1; -lean_object* l___private_Lean_Meta_RecursorInfo_2__getMajorPosIfAuxRecursor_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_fmt___at_Lean_Position_Lean_HasFormat___spec__1(lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getNumParams___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_brecOnSuffix___closed__1; lean_object* l_Lean_Meta_binductionOnSuffix; lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_getConstInfoRec___at___private_Lean_Meta_RecursorInfo_2__getMajorPosIfAuxRecursor_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Option_HasRepr___rarg___closed__2; -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_6__getParamsPos___spec__2___closed__3; -lean_object* l___private_Init_Data_Array_QSort_1__qpartitionAux___main___at_Lean_Meta_mkRecursorAttr___spec__5___closed__1; -lean_object* l___private_Init_Data_Array_QSort_1__qpartitionAux___main___at_Lean_Meta_mkRecursorAttr___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__14; lean_object* l_Lean_Syntax_isNatLitAux(lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkRecursorAttr(lean_object*); +lean_object* l_Lean_stringToMessageData(lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosIfAuxRecursor_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_getConstInfoInduct___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__1(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_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_6__getParamsPos___spec__2___closed__2; lean_object* lean_nat_div(lean_object*, lean_object*); lean_object* l_Lean_PersistentEnvExtension_getModuleEntries___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_isExprDefEq___at_Lean_Meta_isExprDefEqGuarded___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__1; -lean_object* l___private_Lean_Meta_RecursorInfo_4__getNumParams___main___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___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* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getIndicesPos_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosIfAuxRecursor_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; +lean_object* l_Std_RBNode_fold___main___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__3___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Meta_isExprDefEq___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____closed__4; uint8_t l_USize_decEq(size_t, size_t); +lean_object* l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__15; lean_object* lean_array_uget(lean_object*, size_t); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos_match__1(lean_object*); extern lean_object* l_List_repr___rarg___closed__1; extern lean_object* l_Option_HasRepr___rarg___closed__1; -lean_object* l___private_Lean_Meta_RecursorInfo_8__getMotiveLevel(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_RecursorInfo_13__syntaxToMajorPos___closed__4; -lean_object* l___private_Lean_Meta_RecursorInfo_9__getUnivLevelPos(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___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* l_List_toString___at_Lean_Meta_RecursorInfo_HasToString___spec__5(lean_object*); -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___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___private_Lean_Meta_RecursorInfo_0__Lean_Meta_syntaxToMajorPos_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotiveResultType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__5; +lean_object* l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__2___closed__1; +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux_match__2(lean_object*); uint8_t l_Lean_Name_quickLt(lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___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* l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_RecursorInfo_isMinor___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Util_Trace_4__addNode___at_Lean_Meta_isLevelDefEq___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__1___lambda__1___boxed(lean_object**); -lean_object* l_List_foldlM___main___at___private_Lean_Meta_RecursorInfo_9__getUnivLevelPos___spec__2___closed__3; -lean_object* l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__6; -lean_object* l_List_foldlM___main___at___private_Lean_Meta_RecursorInfo_9__getUnivLevelPos___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_Meta_mkRecursorAttr___closed__4; +lean_object* l_Lean_Meta_mkRecursorInfo_match__2(lean_object*); +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, 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_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_registerInternalExceptionId___closed__2; -lean_object* l_Array_findIdxAux___main___at___private_Lean_Meta_RecursorInfo_9__getUnivLevelPos___spec__1___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_List_toString___at_Lean_Meta_RecursorInfo_HasToString___spec__7(lean_object*); +lean_object* l_Array_findIdxMAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getIndicesPos___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_EnvExtensionInterfaceUnsafe_registerExt___rarg(lean_object*, lean_object*); extern lean_object* l_Lean_Meta_hasEval___rarg___closed__2; +lean_object* l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__3; +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___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*); extern lean_object* l_Array_empty___closed__1; +lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_environment_find(lean_object*, lean_object*); +lean_object* l_Lean_Meta_isExprDefEqAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___boxed(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_object* l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__13; -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, 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_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotiveResultType___closed__2; +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___lambda__1___closed__1; uint8_t l_Lean_Meta_RecursorInfo_isMinor(lean_object*, lean_object*); -lean_object* l_Lean_Meta_RecursorInfo_HasToString___closed__14; lean_object* l_Lean_Meta_recOnSuffix; -lean_object* l_Lean_Meta_RecursorInfo_HasToString___closed__5; +lean_object* l___private_Init_Data_Array_QSort_1__qpartitionAux___main___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__7; +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__4___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__1; +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim(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_RecursorInfo_0__Lean_Meta_checkMotiveResultType___closed__1; lean_object* l_Lean_Meta_RecursorInfo_numParams(lean_object*); -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_6__getParamsPos___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_Meta_isExprDefEq___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); extern lean_object* l_Lean_getConstInfoRec___rarg___lambda__1___closed__3; lean_object* lean_array_get_size(lean_object*); -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_7__getIndicesPos___spec__2___closed__3; lean_object* lean_string_append(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__2; lean_object* l_List_range(lean_object*); -lean_object* l_Lean_registerParametricAttribute___at_Lean_Meta_mkRecursorAttr___spec__2___lambda__1___boxed(lean_object*); -lean_object* l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__6; +lean_object* l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__4; extern lean_object* l_Lean_Name_inhabited; +lean_object* l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1(lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__4; extern lean_object* l_String_splitAux___main___closed__1; -lean_object* l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_getAppArgs___closed__1; -lean_object* l_Lean_Meta_mkRecursorAttr___closed__5; +lean_object* l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__9; +lean_object* l_Lean_getConstInfoInduct___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_List_repr___rarg___closed__3; -lean_object* l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__2; -lean_object* l_Lean_Meta_inferType___at___private_Lean_Meta_InferType_1__inferAppType___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_RecursorInfo_13__syntaxToMajorPos___closed__1; +lean_object* l_List_map___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__5(lean_object*); +lean_object* l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__8___closed__2; uint8_t l_Array_contains___at_Lean_Meta_CheckAssignment_check___main___spec__2(lean_object*, lean_object*); -lean_object* l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__2___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__21; +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__6___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* l_Lean_Meta_mkRecursorInfo_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__8; extern lean_object* l_Lean_auxRecExt; extern lean_object* l_Lean_Meta_State_inhabited___closed__7; -lean_object* l_Lean_Meta_mkRecursorAttr___closed__3; -lean_object* l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__9; -lean_object* l___private_Lean_Meta_RecursorInfo_13__syntaxToMajorPos___closed__2; -lean_object* l_List_map___main___at___private_Lean_Meta_RecursorInfo_1__mkRecursorInfoForKernelRec___spec__4___boxed(lean_object*, lean_object*); -lean_object* l_Std_RBNode_fold___main___at_Lean_Meta_mkRecursorAttr___spec__3___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMotiveLevel___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Data_Format_10__pushNewline___closed__1; lean_object* lean_nat_add(lean_object*, lean_object*); -lean_object* l_Lean_Meta_RecursorInfo_HasToString___closed__2; -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__1___closed__3; +lean_object* l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__1; +lean_object* l_Array_findIdxAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___spec__2___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Environment_8__persistentEnvExtensionsRef; -lean_object* l_Lean_Meta_RecursorInfo_HasToString___closed__6; -lean_object* l_Lean_Meta_RecursorInfo_HasToString___closed__8; -lean_object* l___private_Lean_Meta_RecursorInfo_1__mkRecursorInfoForKernelRec___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim(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_RecursorInfo_HasToString___closed__4; -lean_object* l_Lean_Meta_mkRecursorAttr___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive_match__1___rarg(lean_object*, lean_object*); +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__6___lambda__3(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*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMotiveLevel___closed__1; +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getIndicesPos_match__1(lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppNumArgsAux___main(lean_object*, lean_object*); lean_object* l_List_replicate___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_casesOnSuffix; -lean_object* l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__10; +lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_Lean_AddMessageContext___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__6; +lean_object* l_Array_findIdxAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getUnivLevelPos___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_RecursorInfo_numParams___boxed(lean_object*); +lean_object* l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__2; extern lean_object* l_ULift_HasRepr___rarg___closed__2; -lean_object* l_Array_findIdxAux___main___at___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___spec__2(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_findIdxAux___main___at___private_Lean_Meta_RecursorInfo_9__getUnivLevelPos___spec__1(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_qsortAux___main___at_Lean_Meta_mkRecursorAttr___spec__4___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_RecursorInfo_HasToString___closed__13; +lean_object* l_Lean_getConstInfoRec___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosIfAuxRecursor_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_RecursorVal_getMajorIdx(lean_object*); -lean_object* l_Array_findIdxMAux___main___at___private_Lean_Meta_RecursorInfo_7__getIndicesPos___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_brecOnSuffix; -lean_object* l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__6(uint8_t, lean_object*); +lean_object* l_Lean_Meta_RecursorUnivLevelPos_hasToString_match__1___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__28; -lean_object* l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__7; +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____closed__3; lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l_Lean_Meta_RecursorInfo_numMinors(lean_object*); -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___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* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__4; +extern lean_object* l_Lean_Meta_isExprDefEq___rarg___closed__2; lean_object* l_Lean_Meta_getMajorPos_x3f(lean_object*, lean_object*); -lean_object* l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__8(uint8_t, lean_object*); -lean_object* l___private_Lean_Meta_RecursorInfo_13__syntaxToMajorPos___closed__3; +lean_object* l_Lean_registerParametricAttribute___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__2___lambda__1___boxed(lean_object*); +lean_object* l_Lean_registerParametricAttribute___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__2(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); +lean_object* l_Std_RBNode_fold___main___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__3(lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__2(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_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_6__getParamsPos___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* l___private_Lean_Meta_RecursorInfo_7__getIndicesPos___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_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__8___closed__1; +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__3; +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_getLocalDecl___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__8___boxed(lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_syntaxToMajorPos(lean_object*); extern lean_object* l_Lean_numLitKind; lean_object* l_EStateM_bind___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_RecursorInfo_4__getNumParams___boxed(lean_object*, lean_object*, lean_object*); -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_RecursorInfo_3__checkMotive___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_RecursorInfo_1__mkRecursorInfoForKernelRec___spec__2(lean_object*); +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____closed__5; lean_object* lean_nat_sub(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__16; -lean_object* l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__7; -lean_object* l_Lean_Meta_RecursorInfo_HasToString___closed__1; +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__6(lean_object*, lean_object*); +lean_object* l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__13; +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive_match__3(lean_object*); lean_object* lean_array_swap(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__2___boxed(lean_object**); -lean_object* l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__5; -lean_object* l___private_Lean_Meta_RecursorInfo_1__mkRecursorInfoForKernelRec(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_RecursorInfo_14__mkRecursorInfoCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_qsortAux___main___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__4___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080_(lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__2; +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getIndicesPos(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__6(uint8_t, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__2; +lean_object* l_List_toString___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__5(lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__8; lean_object* l_Lean_Meta_RecursorUnivLevelPos_hasToString(lean_object*); -lean_object* l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__2(uint8_t, lean_object*); -lean_object* l_Array_getIdx_x3f___at___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_getConstInfoInduct___at___private_Lean_Meta_RecursorInfo_1__mkRecursorInfoForKernelRec___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldlM___main___at___private_Lean_Meta_RecursorInfo_9__getUnivLevelPos___spec__2___closed__2; -lean_object* l_Lean_ofExcept___at_Lean_Meta_mkRecursorAttr___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_syntaxToMajorPos_match__2(lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_syntaxToMajorPos___closed__3; +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___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_Expr_FindImpl_findM_x3f___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__2(lean_object*, size_t, lean_object*, lean_object*); lean_object* l_Lean_Expr_fvarId_x21(lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__1(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_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___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_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__6; +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_syntaxToMajorPos___closed__4; lean_object* l_Lean_registerParametricAttribute___rarg___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_List_toString___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__1(lean_object*); lean_object* l_List_lengthAux___main___rarg(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__8; -lean_object* l_List_foldlM___main___at___private_Lean_Meta_RecursorInfo_9__getUnivLevelPos___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* l_List_foldlM___main___at___private_Lean_Meta_RecursorInfo_9__getUnivLevelPos___spec__2___closed__1; -lean_object* l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__9; -lean_object* l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__6; +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__1___boxed(lean_object**); +lean_object* l_Lean_getConstInfoRec___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosIfAuxRecursor_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ConstantInfo_name(lean_object*); -lean_object* l___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___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_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__8___closed__2; -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__3___closed__3; -uint8_t l_Array_anyRangeMAux___main___at_Lean_Meta_mkRecursorAttr___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getUnivLevelPos_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__1___closed__2; lean_object* l_Lean_Meta_mkBInductionOnFor(lean_object*); lean_object* l_Nat_repr(lean_object*); -lean_object* l___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Char_HasRepr___closed__1; +lean_object* l_Array_findIdxMAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getIndicesPos___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_LocalDecl_binderInfo(lean_object*); -lean_object* l_Lean_Meta_mkRecursorAttr___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__14; -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___spec__3(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__12; +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__1(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_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Meta_inferTypeRef; +lean_object* l_List_toString___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__7(lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__15; -lean_object* l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__3; -lean_object* l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__6___boxed(lean_object*, lean_object*); +lean_object* l_List_toString___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__7___boxed(lean_object*); lean_object* l_Lean_Meta_RecursorInfo_numMinors___boxed(lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__1___closed__1; +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getNumParams(lean_object*, lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); extern lean_object* l_List_repr___rarg___closed__2; -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_7__getIndicesPos___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* l_List_toString___at_Lean_Meta_RecursorInfo_HasToString___spec__7___boxed(lean_object*); +lean_object* l_List_forInAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getUnivLevelPos___spec__2___closed__1; +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___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_object*, lean_object*); lean_object* l_Array_back___at___private_Lean_Meta_ExprDefEq_14__processAssignmentFOApproxAux___spec__1(lean_object*); extern lean_object* l_List_reprAux___main___rarg___closed__1; -lean_object* l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__3; -lean_object* l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__4; -lean_object* l_Lean_Meta_RecursorInfo_HasToString(lean_object*); -lean_object* l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__8___closed__1; -lean_object* l___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___closed__1; +lean_object* l_Lean_getConstInfo___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__6___boxed(lean_object*, lean_object*); +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos___spec__4___closed__2; lean_object* l_Lean_Meta_RecursorInfo_motivePos___boxed(lean_object*); -lean_object* l_Lean_getConstInfo___at_Lean_Meta_getParamNamesImp___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_RecursorInfo_3__checkMotive___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__18; +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__1; lean_object* l_addParenHeuristic(lean_object*); -lean_object* l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__8___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___lambda__1___closed__2; extern lean_object* l_Lean_throwUnknownConstant___rarg___closed__5; +uint8_t l_Array_anyRangeMAux___main___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive_match__2___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkRecOnFor(lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__1___lambda__1___boxed(lean_object**); extern lean_object* l_Lean_mkRecFor___closed__1; -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__3___closed__2; extern lean_object* l_Lean_registerParametricAttribute___rarg___closed__1; lean_object* l_Array_binSearchAux___main___at_Lean_Meta_getMajorPos_x3f___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_RecursorUnivLevelPos_hasToString___closed__1; extern lean_object* l_Lean_registerParametricAttribute___rarg___closed__2; -lean_object* l_Lean_Meta_RecursorInfo_HasToString___closed__9; +lean_object* l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__11; lean_object* l_Lean_registerBuiltinAttribute(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__3; -lean_object* l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___spec__1(lean_object*, size_t, lean_object*, lean_object*); +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getIndicesPos___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*); uint8_t l_Array_isEmpty___rarg(lean_object*); -lean_object* l_List_toString___at_Lean_Meta_RecursorInfo_HasToString___spec__3(lean_object*); +lean_object* l_Array_findIdxMAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive(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_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive_match__3___rarg(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_syntaxToMajorPos_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_forInAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getUnivLevelPos___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* l_Std_RBNode_find___main___at_Lean_sanitizeName___spec__1(lean_object*, lean_object*); +extern lean_object* l_Lean_throwUnknownConstant___rarg___closed__3; +lean_object* l___private_Lean_Meta_Basic_20__forallTelescopeReducingImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_syntaxToMajorPos___closed__1; +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__7; lean_object* l_List_redLength___main___rarg(lean_object*); +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__6___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ParametricAttribute_getParam___at_Lean_Meta_getMajorPos_x3f___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_RecursorInfo_firstIndexPos(lean_object*); -lean_object* l___private_Lean_Meta_RecursorInfo_4__getNumParams(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__5; uint8_t l_Lean_BinderInfo_isInstImplicit(uint8_t); -lean_object* l___private_Lean_Meta_RecursorInfo_8__getMotiveLevel___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_forInAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getUnivLevelPos___spec__2___closed__2; extern lean_object* l_Lean_registerParametricAttribute___rarg___closed__4; lean_object* l_Lean_Meta_getMajorPos_x3f___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_RecursorInfo_numIndices(lean_object*); -lean_object* l___private_Lean_Meta_RecursorInfo_8__getMotiveLevel___closed__3; -lean_object* l_Array_anyRangeMAux___main___at_Lean_Meta_mkRecursorAttr___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___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___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux_match__3(lean_object*); lean_object* l_Lean_ConstantInfo_type(lean_object*); -lean_object* l_Lean_registerParametricAttribute___at_Lean_Meta_mkRecursorAttr___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___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* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__4(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__2___closed__1; +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_syntaxToMajorPos___closed__2; +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMotiveLevel_match__1(lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_registerParametricAttribute___at_Lean_Meta_mkRecursorAttr___spec__2___closed__1; -lean_object* l_Std_RBNode_fold___main___at_Lean_Meta_mkRecursorAttr___spec__3(lean_object*, lean_object*); +lean_object* l_Lean_ofExcept___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkRecursorInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_qsortAux___main___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__4(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t l_USize_mod(size_t, size_t); lean_object* l_Lean_Meta_mkBRecOnFor(lean_object*); -lean_object* l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__12; lean_object* l_Lean_RecursorVal_getInduct(lean_object*); lean_object* l_Lean_ConstantInfo_lparams(lean_object*); lean_object* l_Lean_Meta_casesOnSuffix___closed__1; -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__3___closed__1; -lean_object* l_Lean_Meta_RecursorInfo_HasToString___closed__11; +lean_object* l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim_match__2___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_FindImpl_initCache; -lean_object* l_List_toString___at_Lean_Meta_RecursorInfo_HasToString___spec__1(lean_object*); extern lean_object* l_Bool_HasRepr___closed__1; extern lean_object* l_Lean_Syntax_inhabited; size_t lean_ptr_addr(lean_object*); -lean_object* l___private_Lean_Meta_RecursorInfo_8__getMotiveLevel___closed__2; extern lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___rarg___closed__1; -lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNamesImp___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_LevelDefEq_15__runDefEqM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__2___lambda__1(lean_object*, 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_object*, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___closed__1; +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__5; uint8_t lean_expr_eqv(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getUnivLevelPos_match__1(lean_object*); +lean_object* l_List_forInAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getUnivLevelPos___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___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3(lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive_match__2(lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosIfAuxRecursor_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosIfAuxRecursor_x3f_match__1(lean_object*); extern lean_object* l_Bool_HasRepr___closed__2; -lean_object* l_Array_findIdxMAux___main___at___private_Lean_Meta_RecursorInfo_6__getParamsPos___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_RecursorInfo_8__getMotiveLevel___closed__1; -lean_object* l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__20; -lean_object* l___private_Lean_Meta_RecursorInfo_6__getParamsPos___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_registerParametricAttribute___at_Lean_Meta_mkRecursorAttr___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); +lean_object* l_Lean_Meta_throwUnknownFVar___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMotiveLevel_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___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_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_RecursorInfo_firstIndexPos___boxed(lean_object*); -lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_Meta_mkRecursorAttr___spec__6(lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___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* l_Array_getIdx_x3f___at___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___spec__1___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_RecursorInfo_3__checkMotive(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_getLocalDecl___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_inferType___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_getConstInfo___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux_match__1(lean_object*); extern lean_object* l_Lean_registerParametricAttribute___rarg___closed__3; -lean_object* l___private_Lean_Meta_RecursorInfo_4__getNumParams___main(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_RecursorInfo_13__syntaxToMajorPos(lean_object*); -lean_object* l___private_Lean_Meta_RecursorInfo_7__getIndicesPos(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_RecursorInfo_HasToString___closed__12; -lean_object* l_List_map___main___at___private_Lean_Meta_RecursorInfo_1__mkRecursorInfoForKernelRec___spec__4(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__17; -lean_object* l_Lean_getConstInfoInduct___at___private_Lean_Meta_RecursorInfo_1__mkRecursorInfoForKernelRec___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__1___closed__1; +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getIndicesPos___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_findIdxAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___spec__2(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getIndicesPos___spec__2___closed__1; +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_syntaxToMajorPos___boxed(lean_object*); +lean_object* l_Lean_Meta_mkRecursorInfo_match__1(lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__2___closed__2; +lean_object* l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__4___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoCore_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__4___closed__1; +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMotiveLevel___closed__2; +lean_object* l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_addAttribute___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__1; lean_object* l_Lean_Meta_mkCasesOnFor(lean_object*); lean_object* l_Lean_Meta_RecursorInfo_motivePos(lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__1; uint8_t l_Lean_Expr_isFVar(lean_object*); -lean_object* l___private_Lean_Meta_RecursorInfo_3__checkMotive___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkRecursorAttr___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__8; -lean_object* l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__4___closed__1; +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_syntaxToMajorPos_match__1(lean_object*); +lean_object* l_List_toString___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__3(lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMotiveLevel(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Environment_getModuleIdxFor_x3f(lean_object*, lean_object*); -lean_object* l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__4___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__2; -lean_object* l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__8; -lean_object* l_Array_qsortAux___main___at_Lean_Meta_mkRecursorAttr___spec__4(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___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_Array_anyRangeMAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim_match__1(lean_object*); +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getIndicesPos___spec__2___closed__2; +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getUnivLevelPos(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__10; +lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__5(lean_object*); +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos___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* l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__16; lean_object* l_Array_toList___rarg(lean_object*); +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__6___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_Inhabited; +lean_object* l_Lean_registerParametricAttribute___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__8(uint8_t, lean_object*); +lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_isLevelDefEq___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_TagDeclarationExtension_isTagged(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_getIdx_x3f___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___spec__1___boxed(lean_object*, lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); -lean_object* l_Lean_Meta_RecursorInfo_HasToString___closed__16; -lean_object* l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__4(uint8_t, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoCore_match__1(lean_object*); lean_object* l_Lean_PersistentEnvExtension_getState___rarg(lean_object*, lean_object*); -lean_object* l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__4; -lean_object* l_Array_findIdxMAux___main___at___private_Lean_Meta_RecursorInfo_6__getParamsPos___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getIndicesPos___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*); +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___rarg___closed__2; -lean_object* l___private_Init_Data_Array_QSort_1__qpartitionAux___main___at_Lean_Meta_mkRecursorAttr___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__1___boxed(lean_object**); -lean_object* l_Array_findIdxMAux___main___at___private_Lean_Meta_RecursorInfo_7__getIndicesPos___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__4; -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___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* l_Array_anyRangeMAux___main___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__4(uint8_t, lean_object*); lean_object* l_Array_binSearchAux___main___at_Lean_Meta_getMajorPos_x3f___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__9; -lean_object* l_Lean_Meta_RecursorInfo_HasToString___closed__10; -lean_object* l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__7; -lean_object* l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__19; +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getUnivLevelPos___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_getIdx_x3f___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___spec__1(lean_object*, lean_object*); +lean_object* l_Lean_ofExcept___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkRecursorInfo_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___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* l_Array_findIdxAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getUnivLevelPos___spec__1(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_ParametricAttribute_Inhabited___closed__1; lean_object* l_Lean_ParametricAttribute_getParam___at_Lean_Meta_getMajorPos_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____closed__2; lean_object* l_List_toArrayAux___main___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Nat_Inhabited; extern lean_object* l_System_FilePath_dirName___closed__1; -lean_object* l___private_Lean_Meta_RecursorInfo_6__getParamsPos(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_registerParametricAttribute___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__2___lambda__1(lean_object*); +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos___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* l_Lean_Meta_binductionOnSuffix___closed__1; -lean_object* l___private_Lean_Meta_RecursorInfo_2__getMajorPosIfAuxRecursor_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); -lean_object* l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__2___closed__1; -lean_object* l_Lean_registerParametricAttribute___at_Lean_Meta_mkRecursorAttr___spec__2___lambda__1(lean_object*); -lean_object* l_Array_findIdxAux___main___at___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___spec__2___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux_match__3___rarg(lean_object*, lean_object*); +lean_object* lean_local_ctx_find(lean_object*, lean_object*); lean_object* l_Lean_Name_toStringWithSep___main(lean_object*, lean_object*); +lean_object* l_List_map___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__6(lean_object*, lean_object*); +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos___spec__4___closed__1; lean_object* l_Lean_mkLevelParam(lean_object*); -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_7__getIndicesPos___spec__2___closed__1; -lean_object* l_Lean_ofExcept___at_Lean_Meta_mkRecursorAttr___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Util_Trace_5__getResetTraces___at_Lean_Meta_isLevelDefEq___spec__4___rarg(lean_object*, lean_object*); extern lean_object* l_Lean_getConstInfoInduct___rarg___lambda__1___closed__3; -lean_object* l_List_map___main___at___private_Lean_Meta_RecursorInfo_1__mkRecursorInfoForKernelRec___spec__3(lean_object*); -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___spec__4___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim_match__2(lean_object*); uint8_t lean_level_eq(lean_object*, lean_object*); -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_7__getIndicesPos___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* l_Lean_Meta_RecursorInfo_HasToString___closed__15; -lean_object* l_Lean_Meta_RecursorInfo_HasToString___closed__3; -lean_object* l_Lean_Meta_mkRecursorAttr___closed__2; -lean_object* l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__11; -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__1___closed__2; +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____closed__1; +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__6___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___lambda__1___closed__3; +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__6___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getNumParams_match__1___rarg(lean_object*, lean_object*); +lean_object* l_Lean_registerParametricAttribute___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__2___closed__1; +lean_object* l_Lean_Meta_RecursorUnivLevelPos_hasToString_match__1(lean_object*); +lean_object* l_Array_findIdxMAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_recOnSuffix___closed__1; -lean_object* l___private_Lean_Meta_RecursorInfo_9__getUnivLevelPos___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkRecursorAttr___closed__1; -lean_object* l_Lean_Meta_mkRecursorAttr___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_getConstInfoRec___at___private_Lean_Meta_RecursorInfo_2__getMajorPosIfAuxRecursor_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__3; +lean_object* l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__2(uint8_t, lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive_match__1(lean_object*); +lean_object* l___private_Init_Data_Array_QSort_1__qpartitionAux___main___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__4(lean_object*); uint8_t l_Lean_Expr_isSort(lean_object*); +lean_object* l___private_Init_Data_Array_QSort_1__qpartitionAux___main___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__5___closed__1; +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getNumParams_match__1(lean_object*); +lean_object* l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__6___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_RecursorInfo_numIndices___boxed(lean_object*); +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotiveResultType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_string_dec_eq(lean_object*, lean_object*); -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_7__getIndicesPos___spec__2___closed__2; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); static lean_object* _init_l_Lean_Meta_casesOnSuffix___closed__1() { _start: @@ -453,6 +496,37 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } +lean_object* l_Lean_Meta_RecursorUnivLevelPos_hasToString_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Meta_RecursorUnivLevelPos_hasToString_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_RecursorUnivLevelPos_hasToString_match__1___rarg), 3, 0); +return x_2; +} +} static lean_object* _init_l_Lean_Meta_RecursorUnivLevelPos_hasToString___closed__1() { _start: { @@ -645,7 +719,7 @@ lean_dec(x_1); return x_2; } } -static lean_object* _init_l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__2___closed__1() { +static lean_object* _init_l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__2___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -655,7 +729,7 @@ x_3 = lean_string_append(x_1, x_2); return x_3; } } -lean_object* l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__2(uint8_t x_1, lean_object* x_2) { +lean_object* l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__2(uint8_t x_1, lean_object* x_2) { _start: { if (x_1 == 0) @@ -674,11 +748,11 @@ lean_inc(x_4); x_5 = lean_ctor_get(x_2, 1); lean_inc(x_5); lean_dec(x_2); -x_6 = l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__2(x_1, x_5); +x_6 = l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__2(x_1, x_5); if (lean_obj_tag(x_4) == 0) { lean_object* x_7; lean_object* x_8; -x_7 = l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__2___closed__1; +x_7 = l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__2___closed__1; x_8 = lean_string_append(x_7, x_6); lean_dec(x_6); return x_8; @@ -716,7 +790,7 @@ x_16 = lean_ctor_get(x_2, 1); lean_inc(x_16); lean_dec(x_2); x_17 = 0; -x_18 = l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__2(x_17, x_16); +x_18 = l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__2(x_17, x_16); if (lean_obj_tag(x_15) == 0) { lean_object* x_19; lean_object* x_20; @@ -740,7 +814,7 @@ return x_23; } } } -lean_object* l_List_toString___at_Lean_Meta_RecursorInfo_HasToString___spec__1(lean_object* x_1) { +lean_object* l_List_toString___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -753,7 +827,7 @@ else { uint8_t x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_3 = 1; -x_4 = l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__2(x_3, x_1); +x_4 = l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__2(x_3, x_1); x_5 = l_List_repr___rarg___closed__2; x_6 = lean_string_append(x_5, x_4); lean_dec(x_4); @@ -763,7 +837,7 @@ return x_8; } } } -static lean_object* _init_l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__4___closed__1() { +static lean_object* _init_l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__4___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -773,7 +847,7 @@ x_3 = lean_string_append(x_1, x_2); return x_3; } } -lean_object* l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__4(uint8_t x_1, lean_object* x_2) { +lean_object* l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__4(uint8_t x_1, lean_object* x_2) { _start: { if (x_1 == 0) @@ -792,11 +866,11 @@ lean_inc(x_4); x_5 = lean_ctor_get(x_2, 1); lean_inc(x_5); lean_dec(x_2); -x_6 = l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__4(x_1, x_5); +x_6 = l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__4(x_1, x_5); if (lean_obj_tag(x_4) == 0) { lean_object* x_7; lean_object* x_8; -x_7 = l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__4___closed__1; +x_7 = l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__4___closed__1; x_8 = lean_string_append(x_7, x_6); lean_dec(x_6); return x_8; @@ -841,7 +915,7 @@ x_21 = lean_ctor_get(x_2, 1); lean_inc(x_21); lean_dec(x_2); x_22 = 0; -x_23 = l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__4(x_22, x_21); +x_23 = l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__4(x_22, x_21); if (lean_obj_tag(x_20) == 0) { lean_object* x_24; lean_object* x_25; @@ -872,7 +946,7 @@ return x_33; } } } -lean_object* l_List_toString___at_Lean_Meta_RecursorInfo_HasToString___spec__3(lean_object* x_1) { +lean_object* l_List_toString___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__3(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -885,7 +959,7 @@ else { uint8_t x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_3 = 1; -x_4 = l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__4(x_3, x_1); +x_4 = l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__4(x_3, x_1); x_5 = l_List_repr___rarg___closed__2; x_6 = lean_string_append(x_5, x_4); lean_dec(x_4); @@ -895,7 +969,7 @@ return x_8; } } } -lean_object* l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__6(uint8_t x_1, lean_object* x_2) { +lean_object* l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__6(uint8_t x_1, lean_object* x_2) { _start: { if (x_1 == 0) @@ -918,7 +992,7 @@ x_6 = l_Nat_repr(x_4); x_7 = l_List_reprAux___main___rarg___closed__1; x_8 = lean_string_append(x_7, x_6); lean_dec(x_6); -x_9 = l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__6(x_1, x_5); +x_9 = l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__6(x_1, x_5); x_10 = lean_string_append(x_8, x_9); lean_dec(x_9); return x_10; @@ -942,7 +1016,7 @@ lean_inc(x_13); lean_dec(x_2); x_14 = l_Nat_repr(x_12); x_15 = 0; -x_16 = l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__6(x_15, x_13); +x_16 = l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__6(x_15, x_13); x_17 = lean_string_append(x_14, x_16); lean_dec(x_16); return x_17; @@ -950,7 +1024,7 @@ return x_17; } } } -lean_object* l_List_toString___at_Lean_Meta_RecursorInfo_HasToString___spec__5(lean_object* x_1) { +lean_object* l_List_toString___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__5(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -963,7 +1037,7 @@ else { uint8_t x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_3 = 1; -x_4 = l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__6(x_3, x_1); +x_4 = l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__6(x_3, x_1); x_5 = l_List_repr___rarg___closed__2; x_6 = lean_string_append(x_5, x_4); lean_dec(x_4); @@ -973,7 +1047,7 @@ return x_8; } } } -static lean_object* _init_l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__8___closed__1() { +static lean_object* _init_l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__8___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -983,7 +1057,7 @@ x_3 = lean_string_append(x_1, x_2); return x_3; } } -static lean_object* _init_l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__8___closed__2() { +static lean_object* _init_l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__8___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -993,7 +1067,7 @@ x_3 = lean_string_append(x_1, x_2); return x_3; } } -lean_object* l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__8(uint8_t x_1, lean_object* x_2) { +lean_object* l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__8(uint8_t x_1, lean_object* x_2) { _start: { if (x_1 == 0) @@ -1009,12 +1083,12 @@ else lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; x_4 = lean_ctor_get(x_2, 0); x_5 = lean_ctor_get(x_2, 1); -x_6 = l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__8(x_1, x_5); +x_6 = l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__8(x_1, x_5); x_7 = lean_unbox(x_4); if (x_7 == 0) { lean_object* x_8; lean_object* x_9; -x_8 = l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__8___closed__1; +x_8 = l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__8___closed__1; x_9 = lean_string_append(x_8, x_6); lean_dec(x_6); return x_9; @@ -1022,7 +1096,7 @@ return x_9; else { lean_object* x_10; lean_object* x_11; -x_10 = l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__8___closed__2; +x_10 = l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__8___closed__2; x_11 = lean_string_append(x_10, x_6); lean_dec(x_6); return x_11; @@ -1043,7 +1117,7 @@ lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; uint8_t x x_13 = lean_ctor_get(x_2, 0); x_14 = lean_ctor_get(x_2, 1); x_15 = 0; -x_16 = l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__8(x_15, x_14); +x_16 = l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__8(x_15, x_14); x_17 = lean_unbox(x_13); if (x_17 == 0) { @@ -1065,7 +1139,7 @@ return x_21; } } } -lean_object* l_List_toString___at_Lean_Meta_RecursorInfo_HasToString___spec__7(lean_object* x_1) { +lean_object* l_List_toString___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__7(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -1078,7 +1152,7 @@ else { uint8_t x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_3 = 1; -x_4 = l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__8(x_3, x_1); +x_4 = l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__8(x_3, x_1); x_5 = l_List_repr___rarg___closed__2; x_6 = lean_string_append(x_5, x_4); lean_dec(x_4); @@ -1088,7 +1162,7 @@ return x_8; } } } -static lean_object* _init_l_Lean_Meta_RecursorInfo_HasToString___closed__1() { +static lean_object* _init_l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__1() { _start: { lean_object* x_1; @@ -1096,7 +1170,7 @@ x_1 = lean_mk_string("{\n"); return x_1; } } -static lean_object* _init_l_Lean_Meta_RecursorInfo_HasToString___closed__2() { +static lean_object* _init_l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__2() { _start: { lean_object* x_1; @@ -1104,17 +1178,17 @@ x_1 = lean_mk_string(" name := "); return x_1; } } -static lean_object* _init_l_Lean_Meta_RecursorInfo_HasToString___closed__3() { +static lean_object* _init_l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_RecursorInfo_HasToString___closed__1; -x_2 = l_Lean_Meta_RecursorInfo_HasToString___closed__2; +x_1 = l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__1; +x_2 = l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__2; x_3 = lean_string_append(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_RecursorInfo_HasToString___closed__4() { +static lean_object* _init_l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__4() { _start: { lean_object* x_1; @@ -1122,7 +1196,7 @@ x_1 = lean_mk_string(" type := "); return x_1; } } -static lean_object* _init_l_Lean_Meta_RecursorInfo_HasToString___closed__5() { +static lean_object* _init_l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__5() { _start: { lean_object* x_1; @@ -1130,7 +1204,7 @@ x_1 = lean_mk_string(" univs := "); return x_1; } } -static lean_object* _init_l_Lean_Meta_RecursorInfo_HasToString___closed__6() { +static lean_object* _init_l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__6() { _start: { lean_object* x_1; @@ -1138,7 +1212,7 @@ x_1 = lean_mk_string(" depElim := "); return x_1; } } -static lean_object* _init_l_Lean_Meta_RecursorInfo_HasToString___closed__7() { +static lean_object* _init_l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__7() { _start: { lean_object* x_1; @@ -1146,7 +1220,7 @@ x_1 = lean_mk_string(" recursive := "); return x_1; } } -static lean_object* _init_l_Lean_Meta_RecursorInfo_HasToString___closed__8() { +static lean_object* _init_l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__8() { _start: { lean_object* x_1; @@ -1154,7 +1228,7 @@ x_1 = lean_mk_string(" numArgs := "); return x_1; } } -static lean_object* _init_l_Lean_Meta_RecursorInfo_HasToString___closed__9() { +static lean_object* _init_l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__9() { _start: { lean_object* x_1; @@ -1162,7 +1236,7 @@ x_1 = lean_mk_string(" numParams := "); return x_1; } } -static lean_object* _init_l_Lean_Meta_RecursorInfo_HasToString___closed__10() { +static lean_object* _init_l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__10() { _start: { lean_object* x_1; @@ -1170,7 +1244,7 @@ x_1 = lean_mk_string(" numIndices := "); return x_1; } } -static lean_object* _init_l_Lean_Meta_RecursorInfo_HasToString___closed__11() { +static lean_object* _init_l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__11() { _start: { lean_object* x_1; @@ -1178,7 +1252,7 @@ x_1 = lean_mk_string(" numMinors := "); return x_1; } } -static lean_object* _init_l_Lean_Meta_RecursorInfo_HasToString___closed__12() { +static lean_object* _init_l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__12() { _start: { lean_object* x_1; @@ -1186,7 +1260,7 @@ x_1 = lean_mk_string(" major := "); return x_1; } } -static lean_object* _init_l_Lean_Meta_RecursorInfo_HasToString___closed__13() { +static lean_object* _init_l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__13() { _start: { lean_object* x_1; @@ -1194,7 +1268,7 @@ x_1 = lean_mk_string(" motive := "); return x_1; } } -static lean_object* _init_l_Lean_Meta_RecursorInfo_HasToString___closed__14() { +static lean_object* _init_l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__14() { _start: { lean_object* x_1; @@ -1202,7 +1276,7 @@ x_1 = lean_mk_string(" paramsAtMajor := "); return x_1; } } -static lean_object* _init_l_Lean_Meta_RecursorInfo_HasToString___closed__15() { +static lean_object* _init_l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__15() { _start: { lean_object* x_1; @@ -1210,7 +1284,7 @@ x_1 = lean_mk_string(" indicesAtMajor := "); return x_1; } } -static lean_object* _init_l_Lean_Meta_RecursorInfo_HasToString___closed__16() { +static lean_object* _init_l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__16() { _start: { lean_object* x_1; @@ -1218,7 +1292,7 @@ x_1 = lean_mk_string(" produceMotive := "); return x_1; } } -lean_object* l_Lean_Meta_RecursorInfo_HasToString(lean_object* x_1) { +lean_object* l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1(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; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; @@ -1226,12 +1300,12 @@ x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); x_3 = l_System_FilePath_dirName___closed__1; x_4 = l_Lean_Name_toStringWithSep___main(x_3, x_2); -x_5 = l_Lean_Meta_RecursorInfo_HasToString___closed__3; +x_5 = l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__3; x_6 = lean_string_append(x_5, x_4); lean_dec(x_4); x_7 = l___private_Lean_Data_Format_10__pushNewline___closed__1; x_8 = lean_string_append(x_6, x_7); -x_9 = l_Lean_Meta_RecursorInfo_HasToString___closed__4; +x_9 = l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__4; x_10 = lean_string_append(x_8, x_9); x_11 = lean_ctor_get(x_1, 1); lean_inc(x_11); @@ -1239,15 +1313,15 @@ x_12 = l_Lean_Name_toStringWithSep___main(x_3, x_11); x_13 = lean_string_append(x_10, x_12); lean_dec(x_12); x_14 = lean_string_append(x_13, x_7); -x_15 = l_Lean_Meta_RecursorInfo_HasToString___closed__5; +x_15 = l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__5; x_16 = lean_string_append(x_14, x_15); x_17 = lean_ctor_get(x_1, 2); lean_inc(x_17); -x_18 = l_List_toString___at_Lean_Meta_RecursorInfo_HasToString___spec__1(x_17); +x_18 = l_List_toString___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__1(x_17); x_19 = lean_string_append(x_16, x_18); lean_dec(x_18); x_20 = lean_string_append(x_19, x_7); -x_21 = l_Lean_Meta_RecursorInfo_HasToString___closed__6; +x_21 = l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__6; x_22 = lean_string_append(x_20, x_21); x_23 = lean_ctor_get_uint8(x_1, sizeof(void*)*8); x_24 = lean_ctor_get_uint8(x_1, sizeof(void*)*8 + 1); @@ -1265,14 +1339,14 @@ lean_inc(x_33); x_34 = l_Nat_repr(x_33); x_35 = lean_ctor_get(x_1, 5); lean_inc(x_35); -x_36 = l_List_toString___at_Lean_Meta_RecursorInfo_HasToString___spec__3(x_35); +x_36 = l_List_toString___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__3(x_35); x_37 = lean_ctor_get(x_1, 6); lean_inc(x_37); -x_38 = l_List_toString___at_Lean_Meta_RecursorInfo_HasToString___spec__5(x_37); +x_38 = l_List_toString___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__5(x_37); x_39 = lean_ctor_get(x_1, 7); lean_inc(x_39); lean_dec(x_1); -x_40 = l_List_toString___at_Lean_Meta_RecursorInfo_HasToString___spec__7(x_39); +x_40 = l_List_toString___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__7(x_39); lean_dec(x_39); if (x_23 == 0) { @@ -1294,7 +1368,7 @@ lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean x_42 = lean_string_append(x_22, x_41); lean_dec(x_41); x_43 = lean_string_append(x_42, x_7); -x_44 = l_Lean_Meta_RecursorInfo_HasToString___closed__7; +x_44 = l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__7; x_45 = lean_string_append(x_43, x_44); if (x_24 == 0) { @@ -1316,46 +1390,46 @@ lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean x_47 = lean_string_append(x_45, x_46); lean_dec(x_46); x_48 = lean_string_append(x_47, x_7); -x_49 = l_Lean_Meta_RecursorInfo_HasToString___closed__8; +x_49 = l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__8; x_50 = lean_string_append(x_48, x_49); x_51 = lean_string_append(x_50, x_26); lean_dec(x_26); x_52 = lean_string_append(x_51, x_7); -x_53 = l_Lean_Meta_RecursorInfo_HasToString___closed__9; +x_53 = l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__9; x_54 = lean_string_append(x_52, x_53); x_55 = lean_string_append(x_54, x_28); x_56 = lean_string_append(x_55, x_7); -x_57 = l_Lean_Meta_RecursorInfo_HasToString___closed__10; +x_57 = l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__10; x_58 = lean_string_append(x_56, x_57); x_59 = lean_string_append(x_58, x_30); lean_dec(x_30); x_60 = lean_string_append(x_59, x_7); -x_61 = l_Lean_Meta_RecursorInfo_HasToString___closed__11; +x_61 = l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__11; x_62 = lean_string_append(x_60, x_61); x_63 = lean_string_append(x_62, x_32); lean_dec(x_32); x_64 = lean_string_append(x_63, x_7); -x_65 = l_Lean_Meta_RecursorInfo_HasToString___closed__12; +x_65 = l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__12; x_66 = lean_string_append(x_64, x_65); x_67 = lean_string_append(x_66, x_34); lean_dec(x_34); x_68 = lean_string_append(x_67, x_7); -x_69 = l_Lean_Meta_RecursorInfo_HasToString___closed__13; +x_69 = l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__13; x_70 = lean_string_append(x_68, x_69); x_71 = lean_string_append(x_70, x_28); lean_dec(x_28); x_72 = lean_string_append(x_71, x_7); -x_73 = l_Lean_Meta_RecursorInfo_HasToString___closed__14; +x_73 = l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__14; x_74 = lean_string_append(x_72, x_73); x_75 = lean_string_append(x_74, x_36); lean_dec(x_36); x_76 = lean_string_append(x_75, x_7); -x_77 = l_Lean_Meta_RecursorInfo_HasToString___closed__15; +x_77 = l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__15; x_78 = lean_string_append(x_76, x_77); x_79 = lean_string_append(x_78, x_38); lean_dec(x_38); x_80 = lean_string_append(x_79, x_7); -x_81 = l_Lean_Meta_RecursorInfo_HasToString___closed__16; +x_81 = l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__16; x_82 = lean_string_append(x_80, x_81); x_83 = lean_string_append(x_82, x_40); lean_dec(x_40); @@ -1367,62 +1441,196 @@ return x_86; } } } -lean_object* l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__2___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__2___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; x_3 = lean_unbox(x_1); lean_dec(x_1); -x_4 = l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__2(x_3, x_2); +x_4 = l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__2(x_3, x_2); return x_4; } } -lean_object* l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__4___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__4___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; x_3 = lean_unbox(x_1); lean_dec(x_1); -x_4 = l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__4(x_3, x_2); +x_4 = l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__4(x_3, x_2); return x_4; } } -lean_object* l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__6___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__6___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; x_3 = lean_unbox(x_1); lean_dec(x_1); -x_4 = l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__6(x_3, x_2); +x_4 = l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__6(x_3, x_2); return x_4; } } -lean_object* l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__8___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__8___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; x_3 = lean_unbox(x_1); lean_dec(x_1); -x_4 = l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__8(x_3, x_2); +x_4 = l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__8(x_3, x_2); lean_dec(x_2); return x_4; } } -lean_object* l_List_toString___at_Lean_Meta_RecursorInfo_HasToString___spec__7___boxed(lean_object* x_1) { +lean_object* l_List_toString___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__7___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_List_toString___at_Lean_Meta_RecursorInfo_HasToString___spec__7(x_1); +x_2 = l_List_toString___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__7(x_1); lean_dec(x_1); return x_2; } } -lean_object* l_Lean_getConstInfoInduct___at___private_Lean_Meta_RecursorInfo_1__mkRecursorInfoForKernelRec___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* l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3___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) { +_start: +{ +lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_7 = lean_ctor_get(x_4, 3); +x_8 = l_Lean_addMessageContextFull___at_Lean_Meta_Lean_AddMessageContext___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_8, 0); +lean_inc(x_7); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_7); +lean_ctor_set(x_11, 1, x_10); +lean_ctor_set_tag(x_8, 1); +lean_ctor_set(x_8, 0, x_11); +return x_8; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_12 = lean_ctor_get(x_8, 0); +x_13 = lean_ctor_get(x_8, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_8); +lean_inc(x_7); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_7); +lean_ctor_set(x_14, 1, x_12); +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_13); +return x_15; +} +} +} +lean_object* l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3___rarg___boxed), 6, 0); +return x_2; +} +} +lean_object* l_Lean_getConstInfo___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___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) { +_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; +x_9 = lean_ctor_get(x_7, 0); +x_10 = lean_ctor_get(x_7, 1); +x_11 = lean_ctor_get(x_9, 0); +lean_inc(x_11); +lean_dec(x_9); +lean_inc(x_1); +x_12 = lean_environment_find(x_11, x_1); +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_free_object(x_7); +x_13 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_13, 0, x_1); +x_14 = l_Lean_throwUnknownConstant___rarg___closed__3; +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___rarg___closed__5; +x_17 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +x_18 = l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3___rarg(x_17, x_2, x_3, x_4, x_5, x_10); +return x_18; +} +else +{ +lean_object* x_19; +lean_dec(x_1); +x_19 = lean_ctor_get(x_12, 0); +lean_inc(x_19); +lean_dec(x_12); +lean_ctor_set(x_7, 0, x_19); +return x_7; +} +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_20 = lean_ctor_get(x_7, 0); +x_21 = lean_ctor_get(x_7, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_7); +x_22 = lean_ctor_get(x_20, 0); +lean_inc(x_22); +lean_dec(x_20); +lean_inc(x_1); +x_23 = lean_environment_find(x_22, x_1); +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; lean_object* x_29; +x_24 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_24, 0, x_1); +x_25 = l_Lean_throwUnknownConstant___rarg___closed__3; +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_throwUnknownConstant___rarg___closed__5; +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 = l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3___rarg(x_28, x_2, x_3, x_4, x_5, x_21); +return x_29; +} +else +{ +lean_object* x_30; lean_object* x_31; +lean_dec(x_1); +x_30 = lean_ctor_get(x_23, 0); +lean_inc(x_30); +lean_dec(x_23); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_21); +return x_31; +} +} +} +} +lean_object* l_Lean_getConstInfoInduct___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___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) { _start: { lean_object* x_7; lean_inc(x_1); -x_7 = l_Lean_getConstInfo___at_Lean_Meta_getParamNamesImp___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_getConstInfo___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); if (lean_obj_tag(x_7) == 0) { uint8_t x_8; @@ -1465,7 +1673,7 @@ x_15 = l_Lean_getConstInfoInduct___rarg___lambda__1___closed__3; x_16 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_16, 0, x_14); lean_ctor_set(x_16, 1, x_15); -x_17 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_16, x_2, x_3, x_4, x_5, x_10); +x_17 = l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3___rarg(x_16, x_2, x_3, x_4, x_5, x_10); return x_17; } } @@ -1511,7 +1719,7 @@ x_27 = l_Lean_getConstInfoInduct___rarg___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 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_28, x_2, x_3, x_4, x_5, x_22); +x_29 = l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3___rarg(x_28, x_2, x_3, x_4, x_5, x_22); return x_29; } } @@ -1541,7 +1749,7 @@ return x_37; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_RecursorInfo_1__mkRecursorInfoForKernelRec___spec__2(lean_object* x_1) { +lean_object* l_List_map___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__4(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -1561,7 +1769,7 @@ x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_6, 0, x_4); -x_7 = l_List_map___main___at___private_Lean_Meta_RecursorInfo_1__mkRecursorInfoForKernelRec___spec__2(x_5); +x_7 = l_List_map___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__4(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -1576,7 +1784,7 @@ lean_inc(x_8); lean_dec(x_1); x_10 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_10, 0, x_8); -x_11 = l_List_map___main___at___private_Lean_Meta_RecursorInfo_1__mkRecursorInfoForKernelRec___spec__2(x_9); +x_11 = l_List_map___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__4(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -1585,7 +1793,7 @@ return x_12; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_RecursorInfo_1__mkRecursorInfoForKernelRec___spec__3(lean_object* x_1) { +lean_object* l_List_map___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__5(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -1605,7 +1813,7 @@ x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_6, 0, x_4); -x_7 = l_List_map___main___at___private_Lean_Meta_RecursorInfo_1__mkRecursorInfoForKernelRec___spec__3(x_5); +x_7 = l_List_map___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__5(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -1620,7 +1828,7 @@ lean_inc(x_8); lean_dec(x_1); x_10 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_10, 0, x_8); -x_11 = l_List_map___main___at___private_Lean_Meta_RecursorInfo_1__mkRecursorInfoForKernelRec___spec__3(x_9); +x_11 = l_List_map___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__5(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -1629,7 +1837,7 @@ return x_12; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_RecursorInfo_1__mkRecursorInfoForKernelRec___spec__4(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__6(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -1649,7 +1857,7 @@ x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); x_7 = lean_nat_add(x_1, x_5); lean_dec(x_5); -x_8 = l_List_map___main___at___private_Lean_Meta_RecursorInfo_1__mkRecursorInfoForKernelRec___spec__4(x_1, x_6); +x_8 = l_List_map___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__6(x_1, x_6); lean_ctor_set(x_2, 1, x_8); lean_ctor_set(x_2, 0, x_7); return x_2; @@ -1664,7 +1872,7 @@ lean_inc(x_9); lean_dec(x_2); x_11 = lean_nat_add(x_1, x_9); lean_dec(x_9); -x_12 = l_List_map___main___at___private_Lean_Meta_RecursorInfo_1__mkRecursorInfoForKernelRec___spec__4(x_1, x_10); +x_12 = l_List_map___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__6(x_1, x_10); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); @@ -1673,13 +1881,13 @@ return x_13; } } } -lean_object* l___private_Lean_Meta_RecursorInfo_1__mkRecursorInfoForKernelRec(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec(lean_object* x_1, 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; x_8 = l_Lean_RecursorVal_getInduct(x_2); lean_inc(x_8); -x_9 = l_Lean_getConstInfoInduct___at___private_Lean_Meta_RecursorInfo_1__mkRecursorInfoForKernelRec___spec__1(x_8, x_3, x_4, x_5, x_6, x_7); +x_9 = l_Lean_getConstInfoInduct___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__1(x_8, x_3, x_4, x_5, x_6, x_7); if (lean_obj_tag(x_9) == 0) { uint8_t x_10; @@ -1698,7 +1906,7 @@ x_15 = l_List_lengthAux___main___rarg(x_13, x_14); lean_dec(x_13); lean_inc(x_15); x_16 = l_List_range(x_15); -x_17 = l_List_map___main___at___private_Lean_Meta_RecursorInfo_1__mkRecursorInfoForKernelRec___spec__2(x_16); +x_17 = l_List_map___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__4(x_16); x_18 = lean_ctor_get(x_2, 0); lean_inc(x_18); x_19 = lean_ctor_get(x_18, 1); @@ -1719,12 +1927,12 @@ x_26 = lean_ctor_get(x_2, 2); lean_inc(x_26); lean_inc(x_26); x_27 = l_List_range(x_26); -x_28 = l_List_map___main___at___private_Lean_Meta_RecursorInfo_1__mkRecursorInfoForKernelRec___spec__3(x_27); +x_28 = l_List_map___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__5(x_27); x_29 = lean_ctor_get(x_2, 3); lean_inc(x_29); lean_inc(x_29); x_30 = l_List_range(x_29); -x_31 = l_List_map___main___at___private_Lean_Meta_RecursorInfo_1__mkRecursorInfoForKernelRec___spec__4(x_26, x_30); +x_31 = l_List_map___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__6(x_26, x_30); x_32 = lean_nat_add(x_29, x_26); lean_dec(x_26); lean_dec(x_29); @@ -1800,7 +2008,7 @@ x_49 = l_List_lengthAux___main___rarg(x_47, x_48); lean_dec(x_47); lean_inc(x_49); x_50 = l_List_range(x_49); -x_51 = l_List_map___main___at___private_Lean_Meta_RecursorInfo_1__mkRecursorInfoForKernelRec___spec__2(x_50); +x_51 = l_List_map___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__4(x_50); x_52 = lean_ctor_get(x_2, 0); lean_inc(x_52); x_53 = lean_ctor_get(x_52, 1); @@ -1821,12 +2029,12 @@ x_60 = lean_ctor_get(x_2, 2); lean_inc(x_60); lean_inc(x_60); x_61 = l_List_range(x_60); -x_62 = l_List_map___main___at___private_Lean_Meta_RecursorInfo_1__mkRecursorInfoForKernelRec___spec__3(x_61); +x_62 = l_List_map___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__5(x_61); x_63 = lean_ctor_get(x_2, 3); lean_inc(x_63); lean_inc(x_63); x_64 = l_List_range(x_63); -x_65 = l_List_map___main___at___private_Lean_Meta_RecursorInfo_1__mkRecursorInfoForKernelRec___spec__4(x_60, x_64); +x_65 = l_List_map___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__6(x_60, x_64); x_66 = lean_nat_add(x_63, x_60); lean_dec(x_60); lean_dec(x_63); @@ -1916,11 +2124,11 @@ return x_83; } } } -lean_object* l_Lean_getConstInfoInduct___at___private_Lean_Meta_RecursorInfo_1__mkRecursorInfoForKernelRec___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* l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; -x_7 = l_Lean_getConstInfoInduct___at___private_Lean_Meta_RecursorInfo_1__mkRecursorInfoForKernelRec___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3___rarg(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -1928,20 +2136,44 @@ lean_dec(x_2); return x_7; } } -lean_object* l_List_map___main___at___private_Lean_Meta_RecursorInfo_1__mkRecursorInfoForKernelRec___spec__4___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_getConstInfo___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___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) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_getConstInfo___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__2(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); +return x_7; +} +} +lean_object* l_Lean_getConstInfoInduct___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___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) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_getConstInfoInduct___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__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); +return x_7; +} +} +lean_object* l_List_map___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__6___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_map___main___at___private_Lean_Meta_RecursorInfo_1__mkRecursorInfoForKernelRec___spec__4(x_1, x_2); +x_3 = l_List_map___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__6(x_1, x_2); lean_dec(x_1); return x_3; } } -lean_object* l___private_Lean_Meta_RecursorInfo_1__mkRecursorInfoForKernelRec___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* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___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___private_Lean_Meta_RecursorInfo_1__mkRecursorInfoForKernelRec(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec(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); @@ -1949,12 +2181,46 @@ lean_dec(x_3); return x_8; } } -lean_object* l_Lean_getConstInfoRec___at___private_Lean_Meta_RecursorInfo_2__getMajorPosIfAuxRecursor_x3f___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* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosIfAuxRecursor_x3f_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 1) +{ +lean_object* x_4; lean_object* x_5; size_t x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +x_6 = lean_ctor_get_usize(x_1, 2); +lean_dec(x_1); +x_7 = lean_box_usize(x_6); +x_8 = lean_apply_3(x_2, x_4, x_5, x_7); +return x_8; +} +else +{ +lean_object* x_9; +lean_dec(x_2); +x_9 = lean_apply_1(x_3, x_1); +return x_9; +} +} +} +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosIfAuxRecursor_x3f_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosIfAuxRecursor_x3f_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_getConstInfoRec___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosIfAuxRecursor_x3f___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) { _start: { lean_object* x_7; lean_inc(x_1); -x_7 = l_Lean_getConstInfo___at_Lean_Meta_getParamNamesImp___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_getConstInfo___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); if (lean_obj_tag(x_7) == 0) { uint8_t x_8; @@ -1997,7 +2263,7 @@ x_15 = l_Lean_getConstInfoRec___rarg___lambda__1___closed__3; x_16 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_16, 0, x_14); lean_ctor_set(x_16, 1, x_15); -x_17 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_16, x_2, x_3, x_4, x_5, x_10); +x_17 = l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3___rarg(x_16, x_2, x_3, x_4, x_5, x_10); return x_17; } } @@ -2043,7 +2309,7 @@ x_27 = l_Lean_getConstInfoRec___rarg___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 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_28, x_2, x_3, x_4, x_5, x_22); +x_29 = l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3___rarg(x_28, x_2, x_3, x_4, x_5, x_22); return x_29; } } @@ -2073,434 +2339,310 @@ return x_37; } } } -lean_object* l___private_Lean_Meta_RecursorInfo_2__getMajorPosIfAuxRecursor_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) { +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosIfAuxRecursor_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: { +uint8_t x_8; if (lean_obj_tag(x_2) == 0) { -lean_object* x_8; uint8_t x_9; -x_8 = lean_st_ref_get(x_6, x_7); -x_9 = !lean_is_exclusive(x_8); -if (x_9 == 0) +uint8_t x_77; +x_77 = 0; +x_8 = x_77; +goto block_76; +} +else { -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_8, 0); -x_11 = lean_ctor_get(x_8, 1); -x_12 = lean_ctor_get(x_10, 0); -lean_inc(x_12); +uint8_t x_78; +x_78 = 1; +x_8 = x_78; +goto block_76; +} +block_76: +{ +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_71; uint8_t x_72; +lean_dec(x_2); +x_9 = lean_st_ref_get(x_6, x_7); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +if (lean_is_exclusive(x_9)) { + lean_ctor_release(x_9, 0); + lean_ctor_release(x_9, 1); + x_12 = x_9; +} else { + lean_dec_ref(x_9); + x_12 = lean_box(0); +} +x_13 = lean_ctor_get(x_10, 0); +lean_inc(x_13); lean_dec(x_10); -x_13 = l_Lean_auxRecExt; -x_14 = l_Lean_TagDeclarationExtension_isTagged(x_13, x_12, x_1); -lean_dec(x_12); +x_71 = l_Lean_auxRecExt; +x_72 = l_Lean_TagDeclarationExtension_isTagged(x_71, x_13, x_1); +lean_dec(x_13); +if (x_72 == 0) +{ +uint8_t x_73; +x_73 = 1; +x_14 = x_73; +goto block_70; +} +else +{ +uint8_t x_74; +x_74 = 0; +x_14 = x_74; +goto block_70; +} +block_70: +{ if (x_14 == 0) { -lean_object* x_15; -lean_dec(x_1); -x_15 = lean_box(0); -lean_ctor_set(x_8, 0, x_15); -return x_8; -} -else -{ if (lean_obj_tag(x_1) == 1) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_55; uint8_t x_56; -x_16 = lean_ctor_get(x_1, 0); +lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_56; uint8_t x_57; +x_15 = lean_ctor_get(x_1, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_1, 1); lean_inc(x_16); -x_17 = lean_ctor_get(x_1, 1); -lean_inc(x_17); lean_dec(x_1); -x_55 = l_Lean_Meta_recOnSuffix; -x_56 = lean_string_dec_eq(x_17, x_55); -if (x_56 == 0) +x_56 = l_Lean_Meta_recOnSuffix; +x_57 = lean_string_dec_eq(x_16, x_56); +if (x_57 == 0) { -lean_object* x_57; uint8_t x_58; -x_57 = l_Lean_Meta_casesOnSuffix; -x_58 = lean_string_dec_eq(x_17, x_57); -if (x_58 == 0) +lean_object* x_58; uint8_t x_59; +x_58 = l_Lean_Meta_casesOnSuffix; +x_59 = lean_string_dec_eq(x_16, x_58); +if (x_59 == 0) { -lean_object* x_59; uint8_t x_60; -x_59 = l_Lean_Meta_brecOnSuffix; -x_60 = lean_string_dec_eq(x_17, x_59); -if (x_60 == 0) +lean_object* x_60; uint8_t x_61; +x_60 = l_Lean_Meta_brecOnSuffix; +x_61 = lean_string_dec_eq(x_16, x_60); +if (x_61 == 0) { -lean_object* x_61; -lean_dec(x_17); -lean_dec(x_16); -x_61 = lean_box(0); -lean_ctor_set(x_8, 0, x_61); -return x_8; +uint8_t x_62; +x_62 = 1; +x_17 = x_62; +goto block_55; } else { -lean_object* x_62; -lean_free_object(x_8); -x_62 = lean_box(0); -x_18 = x_62; -goto block_54; +uint8_t x_63; +x_63 = 0; +x_17 = x_63; +goto block_55; } } else { -lean_object* x_63; -lean_free_object(x_8); -x_63 = lean_box(0); -x_18 = x_63; -goto block_54; +uint8_t x_64; +x_64 = 0; +x_17 = x_64; +goto block_55; } } else { -lean_object* x_64; -lean_free_object(x_8); -x_64 = lean_box(0); -x_18 = x_64; -goto block_54; +uint8_t x_65; +x_65 = 0; +x_17 = x_65; +goto block_55; } -block_54: +block_55: { -lean_object* x_19; lean_object* x_20; lean_object* x_21; -lean_dec(x_18); -x_19 = l_Lean_mkRecFor___closed__1; -x_20 = lean_name_mk_string(x_16, x_19); -x_21 = l_Lean_getConstInfoRec___at___private_Lean_Meta_RecursorInfo_2__getMajorPosIfAuxRecursor_x3f___spec__1(x_20, x_3, x_4, x_5, x_6, x_11); -if (lean_obj_tag(x_21) == 0) +if (x_17 == 0) { -uint8_t x_22; -x_22 = !lean_is_exclusive(x_21); -if (x_22 == 0) +lean_object* x_18; lean_object* x_19; lean_object* x_20; +lean_dec(x_12); +x_18 = l_Lean_mkRecFor___closed__1; +x_19 = lean_name_mk_string(x_15, x_18); +x_20 = l_Lean_getConstInfoRec___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosIfAuxRecursor_x3f___spec__1(x_19, x_3, x_4, x_5, x_6, x_11); +if (lean_obj_tag(x_20) == 0) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_23 = lean_ctor_get(x_21, 0); -x_24 = lean_ctor_get(x_23, 2); +uint8_t x_21; +x_21 = !lean_is_exclusive(x_20); +if (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; +x_22 = lean_ctor_get(x_20, 0); +x_23 = lean_ctor_get(x_22, 2); +lean_inc(x_23); +x_24 = lean_ctor_get(x_22, 3); lean_inc(x_24); -x_25 = lean_ctor_get(x_23, 3); -lean_inc(x_25); -x_26 = lean_nat_add(x_24, x_25); -lean_dec(x_25); +x_25 = lean_nat_add(x_23, x_24); lean_dec(x_24); -x_27 = l_Lean_Meta_casesOnSuffix; -x_28 = lean_string_dec_eq(x_17, x_27); -lean_dec(x_17); -if (x_28 == 0) -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_23, 4); -lean_inc(x_29); lean_dec(x_23); -x_30 = lean_nat_add(x_26, x_29); -lean_dec(x_29); -lean_dec(x_26); -x_31 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_21, 0, x_31); -return x_21; +x_26 = l_Lean_Meta_casesOnSuffix; +x_27 = lean_string_dec_eq(x_16, x_26); +lean_dec(x_16); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_22, 4); +lean_inc(x_28); +lean_dec(x_22); +x_29 = lean_nat_add(x_25, x_28); +lean_dec(x_28); +lean_dec(x_25); +x_30 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_20, 0, x_30); +return x_20; } else { -lean_object* x_32; lean_object* x_33; lean_object* x_34; -lean_dec(x_23); -x_32 = lean_unsigned_to_nat(1u); -x_33 = lean_nat_add(x_26, x_32); -lean_dec(x_26); -x_34 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_21, 0, x_34); -return x_21; +lean_object* x_31; lean_object* x_32; lean_object* x_33; +lean_dec(x_22); +x_31 = lean_unsigned_to_nat(1u); +x_32 = lean_nat_add(x_25, x_31); +lean_dec(x_25); +x_33 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_20, 0, x_33); +return x_20; } } 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; uint8_t x_41; -x_35 = lean_ctor_get(x_21, 0); -x_36 = lean_ctor_get(x_21, 1); -lean_inc(x_36); +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; +x_34 = lean_ctor_get(x_20, 0); +x_35 = lean_ctor_get(x_20, 1); lean_inc(x_35); -lean_dec(x_21); -x_37 = lean_ctor_get(x_35, 2); +lean_inc(x_34); +lean_dec(x_20); +x_36 = lean_ctor_get(x_34, 2); +lean_inc(x_36); +x_37 = lean_ctor_get(x_34, 3); lean_inc(x_37); -x_38 = lean_ctor_get(x_35, 3); -lean_inc(x_38); -x_39 = lean_nat_add(x_37, x_38); -lean_dec(x_38); +x_38 = lean_nat_add(x_36, x_37); lean_dec(x_37); -x_40 = l_Lean_Meta_casesOnSuffix; -x_41 = lean_string_dec_eq(x_17, x_40); -lean_dec(x_17); -if (x_41 == 0) +lean_dec(x_36); +x_39 = l_Lean_Meta_casesOnSuffix; +x_40 = lean_string_dec_eq(x_16, x_39); +lean_dec(x_16); +if (x_40 == 0) { -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_42 = lean_ctor_get(x_35, 4); -lean_inc(x_42); -lean_dec(x_35); -x_43 = lean_nat_add(x_39, x_42); -lean_dec(x_42); -lean_dec(x_39); -x_44 = lean_alloc_ctor(1, 1, 0); +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_41 = lean_ctor_get(x_34, 4); +lean_inc(x_41); +lean_dec(x_34); +x_42 = lean_nat_add(x_38, x_41); +lean_dec(x_41); +lean_dec(x_38); +x_43 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_43, 0, x_42); +x_44 = lean_alloc_ctor(0, 2, 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_36); -return x_45; +lean_ctor_set(x_44, 1, x_35); +return x_44; } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -lean_dec(x_35); -x_46 = lean_unsigned_to_nat(1u); -x_47 = lean_nat_add(x_39, x_46); -lean_dec(x_39); -x_48 = lean_alloc_ctor(1, 1, 0); +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +lean_dec(x_34); +x_45 = lean_unsigned_to_nat(1u); +x_46 = lean_nat_add(x_38, x_45); +lean_dec(x_38); +x_47 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_47, 0, x_46); +x_48 = lean_alloc_ctor(0, 2, 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_36); -return x_49; +lean_ctor_set(x_48, 1, x_35); +return x_48; } } } else { -uint8_t x_50; -lean_dec(x_17); -x_50 = !lean_is_exclusive(x_21); -if (x_50 == 0) +uint8_t x_49; +lean_dec(x_16); +x_49 = !lean_is_exclusive(x_20); +if (x_49 == 0) { -return x_21; +return x_20; } else { -lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_21, 0); -x_52 = lean_ctor_get(x_21, 1); -lean_inc(x_52); +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_20, 0); +x_51 = lean_ctor_get(x_20, 1); lean_inc(x_51); -lean_dec(x_21); -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_65; -lean_dec(x_1); -x_65 = lean_box(0); -lean_ctor_set(x_8, 0, x_65); -return x_8; +lean_inc(x_50); +lean_dec(x_20); +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_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; -x_66 = lean_ctor_get(x_8, 0); -x_67 = lean_ctor_get(x_8, 1); -lean_inc(x_67); -lean_inc(x_66); -lean_dec(x_8); -x_68 = lean_ctor_get(x_66, 0); -lean_inc(x_68); -lean_dec(x_66); -x_69 = l_Lean_auxRecExt; -x_70 = l_Lean_TagDeclarationExtension_isTagged(x_69, x_68, x_1); -lean_dec(x_68); -if (x_70 == 0) -{ -lean_object* x_71; lean_object* x_72; -lean_dec(x_1); -x_71 = lean_box(0); -x_72 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_72, 0, x_71); -lean_ctor_set(x_72, 1, x_67); -return x_72; -} -else -{ -if (lean_obj_tag(x_1) == 1) -{ -lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_100; uint8_t x_101; -x_73 = lean_ctor_get(x_1, 0); -lean_inc(x_73); -x_74 = lean_ctor_get(x_1, 1); -lean_inc(x_74); -lean_dec(x_1); -x_100 = l_Lean_Meta_recOnSuffix; -x_101 = lean_string_dec_eq(x_74, x_100); -if (x_101 == 0) -{ -lean_object* x_102; uint8_t x_103; -x_102 = l_Lean_Meta_casesOnSuffix; -x_103 = lean_string_dec_eq(x_74, x_102); -if (x_103 == 0) -{ -lean_object* x_104; uint8_t x_105; -x_104 = l_Lean_Meta_brecOnSuffix; -x_105 = lean_string_dec_eq(x_74, x_104); -if (x_105 == 0) -{ -lean_object* x_106; lean_object* x_107; -lean_dec(x_74); -lean_dec(x_73); -x_106 = lean_box(0); -x_107 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_107, 0, x_106); -lean_ctor_set(x_107, 1, x_67); -return x_107; -} -else -{ -lean_object* x_108; -x_108 = lean_box(0); -x_75 = x_108; -goto block_99; -} -} -else -{ -lean_object* x_109; -x_109 = lean_box(0); -x_75 = x_109; -goto block_99; -} -} -else -{ -lean_object* x_110; -x_110 = lean_box(0); -x_75 = x_110; -goto block_99; -} -block_99: -{ -lean_object* x_76; lean_object* x_77; lean_object* x_78; -lean_dec(x_75); -x_76 = l_Lean_mkRecFor___closed__1; -x_77 = lean_name_mk_string(x_73, x_76); -x_78 = l_Lean_getConstInfoRec___at___private_Lean_Meta_RecursorInfo_2__getMajorPosIfAuxRecursor_x3f___spec__1(x_77, x_3, x_4, x_5, x_6, x_67); -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; uint8_t x_86; -x_79 = lean_ctor_get(x_78, 0); -lean_inc(x_79); -x_80 = lean_ctor_get(x_78, 1); -lean_inc(x_80); -if (lean_is_exclusive(x_78)) { - lean_ctor_release(x_78, 0); - lean_ctor_release(x_78, 1); - x_81 = x_78; +lean_object* x_53; lean_object* x_54; +lean_dec(x_16); +lean_dec(x_15); +x_53 = lean_box(0); +if (lean_is_scalar(x_12)) { + x_54 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_78); - x_81 = lean_box(0); + x_54 = x_12; } -x_82 = lean_ctor_get(x_79, 2); -lean_inc(x_82); -x_83 = lean_ctor_get(x_79, 3); -lean_inc(x_83); -x_84 = lean_nat_add(x_82, x_83); -lean_dec(x_83); -lean_dec(x_82); -x_85 = l_Lean_Meta_casesOnSuffix; -x_86 = lean_string_dec_eq(x_74, x_85); -lean_dec(x_74); -if (x_86 == 0) -{ -lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_87 = lean_ctor_get(x_79, 4); -lean_inc(x_87); -lean_dec(x_79); -x_88 = lean_nat_add(x_84, x_87); -lean_dec(x_87); -lean_dec(x_84); -x_89 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_89, 0, x_88); -if (lean_is_scalar(x_81)) { - x_90 = lean_alloc_ctor(0, 2, 0); -} else { - x_90 = x_81; -} -lean_ctor_set(x_90, 0, x_89); -lean_ctor_set(x_90, 1, x_80); -return x_90; -} -else -{ -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; -lean_dec(x_79); -x_91 = lean_unsigned_to_nat(1u); -x_92 = lean_nat_add(x_84, x_91); -lean_dec(x_84); -x_93 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_93, 0, x_92); -if (lean_is_scalar(x_81)) { - x_94 = lean_alloc_ctor(0, 2, 0); -} else { - x_94 = x_81; -} -lean_ctor_set(x_94, 0, x_93); -lean_ctor_set(x_94, 1, x_80); -return x_94; -} -} -else -{ -lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; -lean_dec(x_74); -x_95 = lean_ctor_get(x_78, 0); -lean_inc(x_95); -x_96 = lean_ctor_get(x_78, 1); -lean_inc(x_96); -if (lean_is_exclusive(x_78)) { - lean_ctor_release(x_78, 0); - lean_ctor_release(x_78, 1); - x_97 = x_78; -} else { - lean_dec_ref(x_78); - x_97 = lean_box(0); -} -if (lean_is_scalar(x_97)) { - x_98 = lean_alloc_ctor(1, 2, 0); -} else { - x_98 = x_97; -} -lean_ctor_set(x_98, 0, x_95); -lean_ctor_set(x_98, 1, x_96); -return x_98; +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_11); +return x_54; } } } else { -lean_object* x_111; lean_object* x_112; +lean_object* x_66; lean_object* x_67; lean_dec(x_1); -x_111 = lean_box(0); -x_112 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_112, 0, x_111); -lean_ctor_set(x_112, 1, x_67); -return x_112; +x_66 = lean_box(0); +if (lean_is_scalar(x_12)) { + x_67 = lean_alloc_ctor(0, 2, 0); +} else { + x_67 = x_12; } +lean_ctor_set(x_67, 0, x_66); +lean_ctor_set(x_67, 1, x_11); +return x_67; +} +} +else +{ +lean_object* x_68; lean_object* x_69; +lean_dec(x_1); +x_68 = lean_box(0); +if (lean_is_scalar(x_12)) { + x_69 = lean_alloc_ctor(0, 2, 0); +} else { + x_69 = x_12; +} +lean_ctor_set(x_69, 0, x_68); +lean_ctor_set(x_69, 1, x_11); +return x_69; } } } else { -lean_object* x_113; +lean_object* x_75; lean_dec(x_1); -x_113 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_113, 0, x_2); -lean_ctor_set(x_113, 1, x_7); -return x_113; +x_75 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_75, 0, x_2); +lean_ctor_set(x_75, 1, x_7); +return x_75; } } } -lean_object* l_Lean_getConstInfoRec___at___private_Lean_Meta_RecursorInfo_2__getMajorPosIfAuxRecursor_x3f___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* l_Lean_getConstInfoRec___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosIfAuxRecursor_x3f___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) { _start: { lean_object* x_7; -x_7 = l_Lean_getConstInfoRec___at___private_Lean_Meta_RecursorInfo_2__getMajorPosIfAuxRecursor_x3f___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_getConstInfoRec___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosIfAuxRecursor_x3f___spec__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); @@ -2508,11 +2650,11 @@ lean_dec(x_2); return x_7; } } -lean_object* l___private_Lean_Meta_RecursorInfo_2__getMajorPosIfAuxRecursor_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) { +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosIfAuxRecursor_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___private_Lean_Meta_RecursorInfo_2__getMajorPosIfAuxRecursor_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosIfAuxRecursor_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); @@ -2520,7 +2662,7 @@ lean_dec(x_3); return x_8; } } -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_RecursorInfo_3__checkMotive___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; @@ -2557,7 +2699,7 @@ goto _start; } } } -static lean_object* _init_l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__1() { +static lean_object* _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__1() { _start: { lean_object* x_1; @@ -2565,151 +2707,94 @@ x_1 = lean_mk_string("invalid user defined recursor '"); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__2() { +static lean_object* _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_RecursorInfo_3__checkMotive___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___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__4() { +static lean_object* _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__3() { _start: { lean_object* x_1; -x_1 = lean_mk_string("', result type must be of the form (C t), "); +x_1 = lean_mk_string("', result type must be of the form (C t), where C is a bound variable, and t is a (possibly empty) sequence of bound variables"); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__5() { +static lean_object* _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__4; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__6() { +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive(lean_object* x_1, lean_object* x_2, 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_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__5; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__7() { -_start: +uint8_t x_9; +x_9 = l_Lean_Expr_isFVar(x_2); +if (x_9 == 0) { -lean_object* x_1; -x_1 = lean_mk_string("where C is a bound variable, and t is a (possibly empty) sequence of bound variables"); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__7; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__9() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__8; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l___private_Lean_Meta_RecursorInfo_3__checkMotive(lean_object* x_1, lean_object* x_2, 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_22; -x_22 = l_Lean_Expr_isFVar(x_2); -if (x_22 == 0) -{ -lean_object* x_23; -x_23 = lean_box(0); -x_9 = x_23; -goto block_21; -} -else -{ -lean_object* x_24; lean_object* x_25; uint8_t x_26; -x_24 = lean_array_get_size(x_3); -x_25 = lean_unsigned_to_nat(0u); -x_26 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_RecursorInfo_3__checkMotive___spec__1(x_3, x_3, x_24, x_25); -lean_dec(x_24); -if (x_26 == 0) -{ -lean_object* x_27; lean_object* x_28; -lean_dec(x_1); -x_27 = lean_box(0); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_8); -return x_28; -} -else -{ -lean_object* x_29; -x_29 = lean_box(0); -x_9 = x_29; -goto block_21; -} -} -block_21: -{ -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_dec(x_9); -x_10 = l_System_FilePath_dirName___closed__1; -x_11 = l_Lean_Name_toStringWithSep___main(x_10, x_1); -x_12 = lean_alloc_ctor(2, 1, 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; +x_10 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_10, 0, x_1); +x_11 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__2; +x_12 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_12, 0, x_11); -x_13 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_13, 0, x_12); -x_14 = l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__3; -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___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__6; -x_17 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_17, 0, x_15); -lean_ctor_set(x_17, 1, x_16); -x_18 = l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__9; -x_19 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_19, 0, x_17); -lean_ctor_set(x_19, 1, x_18); -x_20 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_19, x_4, x_5, x_6, x_7, x_8); +lean_ctor_set(x_12, 1, x_10); +x_13 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__4; +x_14 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_13); +x_15 = l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3___rarg(x_14, x_4, x_5, x_6, x_7, x_8); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_16 = lean_array_get_size(x_3); +x_17 = lean_unsigned_to_nat(0u); +x_18 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___spec__1(x_3, x_3, x_16, x_17); +lean_dec(x_16); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; +lean_dec(x_1); +x_19 = lean_box(0); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_8); 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; +x_21 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_21, 0, x_1); +x_22 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__2; +x_23 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_21); +x_24 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__4; +x_25 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +x_26 = l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3___rarg(x_25, x_4, x_5, x_6, x_7, x_8); +return x_26; } } -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_RecursorInfo_3__checkMotive___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +} +} +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; lean_object* x_6; -x_5 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_RecursorInfo_3__checkMotive___spec__1(x_1, x_2, x_3, x_4); +x_5 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___spec__1(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); @@ -2717,11 +2802,11 @@ x_6 = lean_box(x_5); return x_6; } } -lean_object* l___private_Lean_Meta_RecursorInfo_3__checkMotive___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* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___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___private_Lean_Meta_RecursorInfo_3__checkMotive(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive(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); @@ -2731,7 +2816,23 @@ lean_dec(x_2); return x_9; } } -lean_object* l___private_Lean_Meta_RecursorInfo_4__getNumParams___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getNumParams_match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_apply_1(x_2, x_1); +return x_3; +} +} +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getNumParams_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getNumParams_match__1___rarg), 2, 0); +return x_2; +} +} +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getNumParams(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -2764,35 +2865,79 @@ return x_3; } } } -lean_object* l___private_Lean_Meta_RecursorInfo_4__getNumParams___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getNumParams___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l___private_Lean_Meta_RecursorInfo_4__getNumParams___main(x_1, x_2, x_3); +x_4 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getNumParams(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -lean_object* l___private_Lean_Meta_RecursorInfo_4__getNumParams(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_4; -x_4 = l___private_Lean_Meta_RecursorInfo_4__getNumParams___main(x_1, x_2, x_3); -return x_4; -} -} -lean_object* l___private_Lean_Meta_RecursorInfo_4__getNumParams___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: +if (lean_obj_tag(x_1) == 0) { -lean_object* x_4; -x_4 = l___private_Lean_Meta_RecursorInfo_4__getNumParams(x_1, x_2, x_3); +lean_object* x_4; lean_object* x_5; lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); lean_dec(x_1); -return x_4; +x_7 = lean_apply_1(x_2, x_6); +return x_7; } } -lean_object* l_Array_findIdxAux___main___at___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +} +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Array_findIdxAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -2831,16 +2976,16 @@ return x_12; } } } -lean_object* l_Array_getIdx_x3f___at___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_Array_getIdx_x3f___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; x_3 = lean_unsigned_to_nat(0u); -x_4 = l_Array_findIdxAux___main___at___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___spec__2(x_2, x_1, x_3); +x_4 = l_Array_findIdxAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___spec__2(x_2, x_1, x_3); return x_4; } } -static lean_object* _init_l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__1() { +static lean_object* _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___lambda__1___closed__1() { _start: { lean_object* x_1; @@ -2848,27 +2993,71 @@ x_1 = lean_mk_string("ill-formed recursor '"); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__2() { +static lean_object* _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___lambda__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___lambda__1___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__3() { +static lean_object* _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___lambda__1___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Char_HasRepr___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__4() { +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___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; +x_10 = l_Array_back___at___private_Lean_Meta_ExprDefEq_14__processAssignmentFOApproxAux___spec__1(x_1); +x_11 = lean_unsigned_to_nat(0u); +x_12 = l_Array_findIdxAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___spec__2(x_10, x_2, 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_dec(x_10); +x_13 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_13, 0, x_3); +x_14 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___lambda__1___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___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___lambda__1___closed__3; +x_17 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +x_18 = l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3___rarg(x_17, x_5, x_6, x_7, x_8, x_9); +return x_18; +} +else +{ +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_dec(x_3); +x_19 = lean_ctor_get(x_12, 0); +lean_inc(x_19); +lean_dec(x_12); +x_20 = 1; +x_21 = lean_box(x_20); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_19); +lean_ctor_set(x_22, 1, x_21); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_10); +lean_ctor_set(x_23, 1, x_22); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_9); +return x_24; +} +} +} +static lean_object* _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__1() { _start: { lean_object* x_1; @@ -2876,111 +3065,33 @@ x_1 = lean_mk_string("invalid user defined recursor, '"); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5() { +static lean_object* _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__4; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__7() { +static lean_object* _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__3() { _start: { lean_object* x_1; -x_1 = lean_mk_string("' does not support dependent elimination, "); +x_1 = lean_mk_string("' does not support dependent elimination, and position of the major premise was not specified (solution: set attribute '[recursor ]', where is the position of the major premise)"); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__8() { +static lean_object* _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__7; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__9() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__8; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__10() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("and position of the major premise was not specified "); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__11() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__10; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__12() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__11; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__13() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("(solution: set attribute '[recursor ]', where is the position of the major premise)"); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__14() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__13; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__15() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__14; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__16() { +static lean_object* _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__5() { _start: { lean_object* x_1; @@ -2988,27 +3099,16 @@ x_1 = lean_mk_string("invalid major premise position for user defined recursor, return x_1; } } -static lean_object* _init_l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__17() { +static lean_object* _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__16; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__5; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__18() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__17; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__19() { +static lean_object* _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__7() { _start: { lean_object* x_1; @@ -3016,27 +3116,16 @@ x_1 = lean_mk_string(" arguments"); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__20() { +static lean_object* _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__8() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__19; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__7; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__21() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__20; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_2) == 0) @@ -3045,78 +3134,1355 @@ uint8_t x_11; x_11 = l_Array_isEmpty___rarg(x_5); if (x_11 == 0) { -lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_12 = l_Array_back___at___private_Lean_Meta_ExprDefEq_14__processAssignmentFOApproxAux___spec__1(x_5); -x_13 = lean_unsigned_to_nat(0u); -x_14 = l_Array_findIdxAux___main___at___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___spec__2(x_12, x_3, x_13); -if (lean_obj_tag(x_14) == 0) +lean_object* x_12; lean_object* x_13; +x_12 = lean_box(0); +x_13 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___lambda__1(x_5, x_3, x_1, x_12, x_6, x_7, x_8, x_9, x_10); +return x_13; +} +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_12); -x_15 = l_System_FilePath_dirName___closed__1; -x_16 = l_Lean_Name_toStringWithSep___main(x_15, x_1); -x_17 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_17, 0, x_16); -x_18 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_18, 0, x_17); -x_19 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__3; -x_20 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_18); -x_21 = l_Lean_throwUnknownConstant___rarg___closed__5; -x_22 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_22, 0, x_20); -lean_ctor_set(x_22, 1, x_21); -x_23 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_22, x_6, x_7, x_8, x_9, x_10); +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_alloc_ctor(4, 1, 0); +lean_ctor_set(x_14, 0, x_1); +x_15 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__2; +x_16 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_14); +x_17 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__4; +x_18 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +x_19 = l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3___rarg(x_18, x_6, x_7, x_8, x_9, x_10); +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) +{ +return x_19; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_19, 0); +x_22 = lean_ctor_get(x_19, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_19); +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; } +} +} else { -lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +lean_object* x_24; lean_object* x_25; uint8_t x_26; lean_dec(x_1); -x_24 = lean_ctor_get(x_14, 0); +x_24 = lean_ctor_get(x_2, 0); +x_25 = lean_array_get_size(x_3); +x_26 = lean_nat_dec_lt(x_24, 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; +x_27 = l_Lean_fmt___at_Lean_Position_Lean_HasFormat___spec__1(x_25); +x_28 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_28, 0, x_27); +x_29 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__6; +x_30 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_28); +x_31 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__8; +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___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3___rarg(x_32, x_6, x_7, x_8, x_9, x_10); +return x_33; +} +else +{ +lean_object* x_34; uint8_t x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +lean_dec(x_25); +x_34 = lean_array_fget(x_3, x_24); +x_35 = l_Array_contains___at_Lean_Meta_CheckAssignment_check___main___spec__2(x_5, x_34); +x_36 = lean_box(x_35); +lean_inc(x_24); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_24); +lean_ctor_set(x_37, 1, x_36); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_34); +lean_ctor_set(x_38, 1, x_37); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_10); +return x_39; +} +} +} +} +lean_object* l_Array_findIdxAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Array_findIdxAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___spec__2(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Array_getIdx_x3f___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Array_getIdx_x3f___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___spec__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___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___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___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_2); +lean_dec(x_1); +return x_10; +} +} +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_11; +} +} +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_isExprDefEq___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos___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) { +_start: +{ +lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_236; lean_object* x_237; lean_object* x_238; uint8_t x_239; +lean_inc(x_2); +lean_inc(x_1); +x_8 = lean_alloc_closure((void*)(l_Lean_Meta_isExprDefEqAux), 8, 2); +lean_closure_set(x_8, 0, x_1); +lean_closure_set(x_8, 1, x_2); +x_236 = lean_st_ref_get(x_6, x_7); +x_237 = lean_ctor_get(x_236, 0); +lean_inc(x_237); +x_238 = lean_ctor_get(x_237, 3); +lean_inc(x_238); +lean_dec(x_237); +x_239 = lean_ctor_get_uint8(x_238, sizeof(void*)*1); +lean_dec(x_238); +if (x_239 == 0) +{ +lean_object* x_240; uint8_t x_241; +x_240 = lean_ctor_get(x_236, 1); +lean_inc(x_240); +lean_dec(x_236); +x_241 = 0; +x_9 = x_241; +x_10 = x_240; +goto block_235; +} +else +{ +lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; uint8_t x_247; +x_242 = lean_ctor_get(x_236, 1); +lean_inc(x_242); +lean_dec(x_236); +x_243 = l_Lean_Meta_isExprDefEq___rarg___closed__2; +x_244 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_isLevelDefEq___spec__1(x_243, x_3, x_4, x_5, x_6, x_242); +x_245 = lean_ctor_get(x_244, 0); +lean_inc(x_245); +x_246 = lean_ctor_get(x_244, 1); +lean_inc(x_246); +lean_dec(x_244); +x_247 = lean_unbox(x_245); +lean_dec(x_245); +x_9 = x_247; +x_10 = x_246; +goto block_235; +} +block_235: +{ +if (x_9 == 0) +{ +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; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_11 = lean_st_ref_get(x_6, x_10); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_12, 3); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_ctor_get(x_11, 1); +lean_inc(x_14); +lean_dec(x_11); +x_15 = lean_ctor_get_uint8(x_13, sizeof(void*)*1); +lean_dec(x_13); +x_16 = lean_st_ref_take(x_6, x_14); +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_17, 3); +lean_inc(x_18); +x_19 = lean_ctor_get(x_16, 1); +lean_inc(x_19); +lean_dec(x_16); +x_20 = !lean_is_exclusive(x_17); +if (x_20 == 0) +{ +lean_object* x_21; uint8_t x_22; +x_21 = lean_ctor_get(x_17, 3); +lean_dec(x_21); +x_22 = !lean_is_exclusive(x_18); +if (x_22 == 0) +{ +uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_60; +x_23 = 0; +lean_ctor_set_uint8(x_18, sizeof(void*)*1, x_23); +x_24 = lean_st_ref_set(x_6, x_17, x_19); +x_25 = lean_ctor_get(x_24, 1); +lean_inc(x_25); +lean_dec(x_24); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_60 = l___private_Lean_Meta_LevelDefEq_15__runDefEqM(x_8, x_3, x_4, x_5, x_6, x_25); +if (lean_obj_tag(x_60) == 0) +{ +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; uint8_t x_73; +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_closure((void*)(l_Lean_Meta_isExprDefEq___rarg___lambda__1___boxed), 4, 3); +lean_closure_set(x_63, 0, x_1); +lean_closure_set(x_63, 1, x_2); +lean_closure_set(x_63, 2, x_61); +x_64 = l_Lean_Meta_isExprDefEq___rarg___closed__2; +x_65 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_64, x_63, x_3, x_4, x_5, x_6, x_62); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_66 = lean_ctor_get(x_65, 1); +lean_inc(x_66); +lean_dec(x_65); +x_67 = lean_st_ref_get(x_6, x_66); +x_68 = lean_ctor_get(x_67, 1); +lean_inc(x_68); +lean_dec(x_67); +x_69 = lean_st_ref_take(x_6, x_68); +x_70 = lean_ctor_get(x_69, 0); +lean_inc(x_70); +x_71 = lean_ctor_get(x_70, 3); +lean_inc(x_71); +x_72 = lean_ctor_get(x_69, 1); +lean_inc(x_72); +lean_dec(x_69); +x_73 = !lean_is_exclusive(x_70); +if (x_73 == 0) +{ +lean_object* x_74; uint8_t x_75; +x_74 = lean_ctor_get(x_70, 3); +lean_dec(x_74); +x_75 = !lean_is_exclusive(x_71); +if (x_75 == 0) +{ +lean_object* x_76; uint8_t x_77; +lean_ctor_set_uint8(x_71, sizeof(void*)*1, x_15); +x_76 = lean_st_ref_set(x_6, x_70, x_72); +lean_dec(x_6); +x_77 = !lean_is_exclusive(x_76); +if (x_77 == 0) +{ +lean_object* x_78; +x_78 = lean_ctor_get(x_76, 0); +lean_dec(x_78); +lean_ctor_set(x_76, 0, x_61); +return x_76; +} +else +{ +lean_object* x_79; lean_object* x_80; +x_79 = lean_ctor_get(x_76, 1); +lean_inc(x_79); +lean_dec(x_76); +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_61); +lean_ctor_set(x_80, 1, x_79); +return x_80; +} +} +else +{ +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_81 = lean_ctor_get(x_71, 0); +lean_inc(x_81); +lean_dec(x_71); +x_82 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_82, 0, x_81); +lean_ctor_set_uint8(x_82, sizeof(void*)*1, x_15); +lean_ctor_set(x_70, 3, x_82); +x_83 = lean_st_ref_set(x_6, x_70, x_72); +lean_dec(x_6); +x_84 = lean_ctor_get(x_83, 1); +lean_inc(x_84); +if (lean_is_exclusive(x_83)) { + lean_ctor_release(x_83, 0); + lean_ctor_release(x_83, 1); + x_85 = x_83; +} else { + lean_dec_ref(x_83); + x_85 = lean_box(0); +} +if (lean_is_scalar(x_85)) { + x_86 = lean_alloc_ctor(0, 2, 0); +} else { + x_86 = x_85; +} +lean_ctor_set(x_86, 0, x_61); +lean_ctor_set(x_86, 1, x_84); +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_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_70, 0); +x_88 = lean_ctor_get(x_70, 1); +x_89 = lean_ctor_get(x_70, 2); +lean_inc(x_89); +lean_inc(x_88); +lean_inc(x_87); +lean_dec(x_70); +x_90 = lean_ctor_get(x_71, 0); +lean_inc(x_90); +if (lean_is_exclusive(x_71)) { + lean_ctor_release(x_71, 0); + x_91 = x_71; +} else { + lean_dec_ref(x_71); + x_91 = lean_box(0); +} +if (lean_is_scalar(x_91)) { + x_92 = lean_alloc_ctor(0, 1, 1); +} else { + x_92 = x_91; +} +lean_ctor_set(x_92, 0, x_90); +lean_ctor_set_uint8(x_92, sizeof(void*)*1, x_15); +x_93 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_93, 0, x_87); +lean_ctor_set(x_93, 1, x_88); +lean_ctor_set(x_93, 2, x_89); +lean_ctor_set(x_93, 3, x_92); +x_94 = lean_st_ref_set(x_6, x_93, x_72); +lean_dec(x_6); +x_95 = lean_ctor_get(x_94, 1); +lean_inc(x_95); +if (lean_is_exclusive(x_94)) { + lean_ctor_release(x_94, 0); + lean_ctor_release(x_94, 1); + x_96 = x_94; +} else { + lean_dec_ref(x_94); + x_96 = lean_box(0); +} +if (lean_is_scalar(x_96)) { + x_97 = lean_alloc_ctor(0, 2, 0); +} else { + x_97 = x_96; +} +lean_ctor_set(x_97, 0, x_61); +lean_ctor_set(x_97, 1, x_95); +return x_97; +} +} +else +{ +lean_object* x_98; lean_object* x_99; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_98 = lean_ctor_get(x_60, 0); +lean_inc(x_98); +x_99 = lean_ctor_get(x_60, 1); +lean_inc(x_99); +lean_dec(x_60); +x_26 = x_98; +x_27 = x_99; +goto block_59; +} +block_59: +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_28 = lean_st_ref_get(x_6, x_27); +x_29 = lean_ctor_get(x_28, 1); +lean_inc(x_29); +lean_dec(x_28); +x_30 = lean_st_ref_take(x_6, x_29); +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_31, 3); +lean_inc(x_32); +x_33 = lean_ctor_get(x_30, 1); +lean_inc(x_33); +lean_dec(x_30); +x_34 = !lean_is_exclusive(x_31); +if (x_34 == 0) +{ +lean_object* x_35; uint8_t x_36; +x_35 = lean_ctor_get(x_31, 3); +lean_dec(x_35); +x_36 = !lean_is_exclusive(x_32); +if (x_36 == 0) +{ +lean_object* x_37; uint8_t x_38; +lean_ctor_set_uint8(x_32, sizeof(void*)*1, x_15); +x_37 = lean_st_ref_set(x_6, x_31, x_33); +lean_dec(x_6); +x_38 = !lean_is_exclusive(x_37); +if (x_38 == 0) +{ +lean_object* x_39; +x_39 = lean_ctor_get(x_37, 0); +lean_dec(x_39); +lean_ctor_set_tag(x_37, 1); +lean_ctor_set(x_37, 0, x_26); +return x_37; +} +else +{ +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_37, 1); +lean_inc(x_40); +lean_dec(x_37); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_26); +lean_ctor_set(x_41, 1, x_40); +return x_41; +} +} +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; +x_42 = lean_ctor_get(x_32, 0); +lean_inc(x_42); +lean_dec(x_32); +x_43 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set_uint8(x_43, sizeof(void*)*1, x_15); +lean_ctor_set(x_31, 3, x_43); +x_44 = lean_st_ref_set(x_6, x_31, x_33); +lean_dec(x_6); +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_44); + 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_tag(x_47, 1); +} +lean_ctor_set(x_47, 0, x_26); +lean_ctor_set(x_47, 1, x_45); +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; lean_object* x_57; lean_object* x_58; +x_48 = lean_ctor_get(x_31, 0); +x_49 = lean_ctor_get(x_31, 1); +x_50 = lean_ctor_get(x_31, 2); +lean_inc(x_50); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_31); +x_51 = lean_ctor_get(x_32, 0); +lean_inc(x_51); +if (lean_is_exclusive(x_32)) { + lean_ctor_release(x_32, 0); + x_52 = x_32; +} else { + lean_dec_ref(x_32); + x_52 = lean_box(0); +} +if (lean_is_scalar(x_52)) { + x_53 = lean_alloc_ctor(0, 1, 1); +} else { + x_53 = x_52; +} +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set_uint8(x_53, sizeof(void*)*1, x_15); +x_54 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_54, 0, x_48); +lean_ctor_set(x_54, 1, x_49); +lean_ctor_set(x_54, 2, x_50); +lean_ctor_set(x_54, 3, x_53); +x_55 = lean_st_ref_set(x_6, x_54, x_33); +lean_dec(x_6); +x_56 = lean_ctor_get(x_55, 1); +lean_inc(x_56); +if (lean_is_exclusive(x_55)) { + lean_ctor_release(x_55, 0); + lean_ctor_release(x_55, 1); + x_57 = x_55; +} else { + lean_dec_ref(x_55); + 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_tag(x_58, 1); +} +lean_ctor_set(x_58, 0, x_26); +lean_ctor_set(x_58, 1, x_56); +return x_58; +} +} +} +else +{ +lean_object* x_100; uint8_t 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_126; +x_100 = lean_ctor_get(x_18, 0); +lean_inc(x_100); +lean_dec(x_18); +x_101 = 0; +x_102 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_102, 0, x_100); +lean_ctor_set_uint8(x_102, sizeof(void*)*1, x_101); +lean_ctor_set(x_17, 3, x_102); +x_103 = lean_st_ref_set(x_6, x_17, x_19); +x_104 = lean_ctor_get(x_103, 1); +lean_inc(x_104); +lean_dec(x_103); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_126 = l___private_Lean_Meta_LevelDefEq_15__runDefEqM(x_8, x_3, x_4, x_5, x_6, x_104); +if (lean_obj_tag(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; 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_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_127); +x_129 = lean_alloc_closure((void*)(l_Lean_Meta_isExprDefEq___rarg___lambda__1___boxed), 4, 3); +lean_closure_set(x_129, 0, x_1); +lean_closure_set(x_129, 1, x_2); +lean_closure_set(x_129, 2, x_127); +x_130 = l_Lean_Meta_isExprDefEq___rarg___closed__2; +x_131 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_130, x_129, x_3, x_4, x_5, x_6, x_128); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_132 = lean_ctor_get(x_131, 1); +lean_inc(x_132); +lean_dec(x_131); +x_133 = lean_st_ref_get(x_6, x_132); +x_134 = lean_ctor_get(x_133, 1); +lean_inc(x_134); +lean_dec(x_133); +x_135 = lean_st_ref_take(x_6, x_134); +x_136 = lean_ctor_get(x_135, 0); +lean_inc(x_136); +x_137 = lean_ctor_get(x_136, 3); +lean_inc(x_137); +x_138 = lean_ctor_get(x_135, 1); +lean_inc(x_138); +lean_dec(x_135); +x_139 = lean_ctor_get(x_136, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_136, 1); +lean_inc(x_140); +x_141 = lean_ctor_get(x_136, 2); +lean_inc(x_141); +if (lean_is_exclusive(x_136)) { + lean_ctor_release(x_136, 0); + lean_ctor_release(x_136, 1); + lean_ctor_release(x_136, 2); + lean_ctor_release(x_136, 3); + x_142 = x_136; +} else { + lean_dec_ref(x_136); + x_142 = lean_box(0); +} +x_143 = lean_ctor_get(x_137, 0); +lean_inc(x_143); +if (lean_is_exclusive(x_137)) { + lean_ctor_release(x_137, 0); + x_144 = x_137; +} else { + lean_dec_ref(x_137); + x_144 = lean_box(0); +} +if (lean_is_scalar(x_144)) { + x_145 = lean_alloc_ctor(0, 1, 1); +} else { + x_145 = x_144; +} +lean_ctor_set(x_145, 0, x_143); +lean_ctor_set_uint8(x_145, sizeof(void*)*1, x_15); +if (lean_is_scalar(x_142)) { + x_146 = lean_alloc_ctor(0, 4, 0); +} else { + x_146 = x_142; +} +lean_ctor_set(x_146, 0, x_139); +lean_ctor_set(x_146, 1, x_140); +lean_ctor_set(x_146, 2, x_141); +lean_ctor_set(x_146, 3, x_145); +x_147 = lean_st_ref_set(x_6, x_146, x_138); +lean_dec(x_6); +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; +} else { + lean_dec_ref(x_147); + x_149 = lean_box(0); +} +if (lean_is_scalar(x_149)) { + x_150 = lean_alloc_ctor(0, 2, 0); +} else { + x_150 = x_149; +} +lean_ctor_set(x_150, 0, x_127); +lean_ctor_set(x_150, 1, x_148); +return x_150; +} +else +{ +lean_object* x_151; lean_object* x_152; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_151 = lean_ctor_get(x_126, 0); +lean_inc(x_151); +x_152 = lean_ctor_get(x_126, 1); +lean_inc(x_152); +lean_dec(x_126); +x_105 = x_151; +x_106 = x_152; +goto block_125; +} +block_125: +{ +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; +x_107 = lean_st_ref_get(x_6, x_106); +x_108 = lean_ctor_get(x_107, 1); +lean_inc(x_108); +lean_dec(x_107); +x_109 = lean_st_ref_take(x_6, x_108); +x_110 = lean_ctor_get(x_109, 0); +lean_inc(x_110); +x_111 = lean_ctor_get(x_110, 3); +lean_inc(x_111); +x_112 = lean_ctor_get(x_109, 1); +lean_inc(x_112); +lean_dec(x_109); +x_113 = lean_ctor_get(x_110, 0); +lean_inc(x_113); +x_114 = lean_ctor_get(x_110, 1); +lean_inc(x_114); +x_115 = lean_ctor_get(x_110, 2); +lean_inc(x_115); +if (lean_is_exclusive(x_110)) { + lean_ctor_release(x_110, 0); + lean_ctor_release(x_110, 1); + lean_ctor_release(x_110, 2); + lean_ctor_release(x_110, 3); + x_116 = x_110; +} else { + lean_dec_ref(x_110); + x_116 = lean_box(0); +} +x_117 = lean_ctor_get(x_111, 0); +lean_inc(x_117); +if (lean_is_exclusive(x_111)) { + lean_ctor_release(x_111, 0); + x_118 = x_111; +} else { + lean_dec_ref(x_111); + x_118 = lean_box(0); +} +if (lean_is_scalar(x_118)) { + x_119 = lean_alloc_ctor(0, 1, 1); +} else { + x_119 = x_118; +} +lean_ctor_set(x_119, 0, x_117); +lean_ctor_set_uint8(x_119, sizeof(void*)*1, x_15); +if (lean_is_scalar(x_116)) { + x_120 = lean_alloc_ctor(0, 4, 0); +} else { + x_120 = x_116; +} +lean_ctor_set(x_120, 0, x_113); +lean_ctor_set(x_120, 1, x_114); +lean_ctor_set(x_120, 2, x_115); +lean_ctor_set(x_120, 3, x_119); +x_121 = lean_st_ref_set(x_6, x_120, x_112); +lean_dec(x_6); +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); +} +if (lean_is_scalar(x_123)) { + x_124 = lean_alloc_ctor(1, 2, 0); +} else { + x_124 = x_123; + lean_ctor_set_tag(x_124, 1); +} +lean_ctor_set(x_124, 0, x_105); +lean_ctor_set(x_124, 1, x_122); +return x_124; +} +} +} +else +{ +lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t 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_184; +x_153 = lean_ctor_get(x_17, 0); +x_154 = lean_ctor_get(x_17, 1); +x_155 = lean_ctor_get(x_17, 2); +lean_inc(x_155); +lean_inc(x_154); +lean_inc(x_153); +lean_dec(x_17); +x_156 = lean_ctor_get(x_18, 0); +lean_inc(x_156); +if (lean_is_exclusive(x_18)) { + lean_ctor_release(x_18, 0); + x_157 = x_18; +} else { + lean_dec_ref(x_18); + x_157 = lean_box(0); +} +x_158 = 0; +if (lean_is_scalar(x_157)) { + x_159 = lean_alloc_ctor(0, 1, 1); +} else { + x_159 = x_157; +} +lean_ctor_set(x_159, 0, x_156); +lean_ctor_set_uint8(x_159, sizeof(void*)*1, x_158); +x_160 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_160, 0, x_153); +lean_ctor_set(x_160, 1, x_154); +lean_ctor_set(x_160, 2, x_155); +lean_ctor_set(x_160, 3, x_159); +x_161 = lean_st_ref_set(x_6, x_160, x_19); +x_162 = lean_ctor_get(x_161, 1); +lean_inc(x_162); +lean_dec(x_161); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_184 = l___private_Lean_Meta_LevelDefEq_15__runDefEqM(x_8, x_3, x_4, x_5, x_6, x_162); +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_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; lean_object* x_206; lean_object* x_207; lean_object* x_208; +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_185); +x_187 = lean_alloc_closure((void*)(l_Lean_Meta_isExprDefEq___rarg___lambda__1___boxed), 4, 3); +lean_closure_set(x_187, 0, x_1); +lean_closure_set(x_187, 1, x_2); +lean_closure_set(x_187, 2, x_185); +x_188 = l_Lean_Meta_isExprDefEq___rarg___closed__2; +x_189 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_188, x_187, x_3, x_4, x_5, x_6, x_186); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_190 = lean_ctor_get(x_189, 1); +lean_inc(x_190); +lean_dec(x_189); +x_191 = lean_st_ref_get(x_6, x_190); +x_192 = lean_ctor_get(x_191, 1); +lean_inc(x_192); +lean_dec(x_191); +x_193 = lean_st_ref_take(x_6, x_192); +x_194 = lean_ctor_get(x_193, 0); +lean_inc(x_194); +x_195 = lean_ctor_get(x_194, 3); +lean_inc(x_195); +x_196 = lean_ctor_get(x_193, 1); +lean_inc(x_196); +lean_dec(x_193); +x_197 = lean_ctor_get(x_194, 0); +lean_inc(x_197); +x_198 = lean_ctor_get(x_194, 1); +lean_inc(x_198); +x_199 = lean_ctor_get(x_194, 2); +lean_inc(x_199); +if (lean_is_exclusive(x_194)) { + lean_ctor_release(x_194, 0); + lean_ctor_release(x_194, 1); + lean_ctor_release(x_194, 2); + lean_ctor_release(x_194, 3); + x_200 = x_194; +} else { + lean_dec_ref(x_194); + x_200 = lean_box(0); +} +x_201 = lean_ctor_get(x_195, 0); +lean_inc(x_201); +if (lean_is_exclusive(x_195)) { + lean_ctor_release(x_195, 0); + x_202 = x_195; +} else { + lean_dec_ref(x_195); + x_202 = lean_box(0); +} +if (lean_is_scalar(x_202)) { + x_203 = lean_alloc_ctor(0, 1, 1); +} else { + x_203 = x_202; +} +lean_ctor_set(x_203, 0, x_201); +lean_ctor_set_uint8(x_203, sizeof(void*)*1, x_15); +if (lean_is_scalar(x_200)) { + x_204 = lean_alloc_ctor(0, 4, 0); +} else { + x_204 = x_200; +} +lean_ctor_set(x_204, 0, x_197); +lean_ctor_set(x_204, 1, x_198); +lean_ctor_set(x_204, 2, x_199); +lean_ctor_set(x_204, 3, x_203); +x_205 = lean_st_ref_set(x_6, x_204, x_196); +lean_dec(x_6); +x_206 = lean_ctor_get(x_205, 1); +lean_inc(x_206); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + x_207 = x_205; +} else { + lean_dec_ref(x_205); + x_207 = lean_box(0); +} +if (lean_is_scalar(x_207)) { + x_208 = lean_alloc_ctor(0, 2, 0); +} else { + x_208 = x_207; +} +lean_ctor_set(x_208, 0, x_185); +lean_ctor_set(x_208, 1, x_206); +return x_208; +} +else +{ +lean_object* x_209; lean_object* x_210; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_209 = lean_ctor_get(x_184, 0); +lean_inc(x_209); +x_210 = lean_ctor_get(x_184, 1); +lean_inc(x_210); +lean_dec(x_184); +x_163 = x_209; +x_164 = x_210; +goto block_183; +} +block_183: +{ +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; +x_165 = lean_st_ref_get(x_6, x_164); +x_166 = lean_ctor_get(x_165, 1); +lean_inc(x_166); +lean_dec(x_165); +x_167 = lean_st_ref_take(x_6, x_166); +x_168 = lean_ctor_get(x_167, 0); +lean_inc(x_168); +x_169 = lean_ctor_get(x_168, 3); +lean_inc(x_169); +x_170 = lean_ctor_get(x_167, 1); +lean_inc(x_170); +lean_dec(x_167); +x_171 = lean_ctor_get(x_168, 0); +lean_inc(x_171); +x_172 = lean_ctor_get(x_168, 1); +lean_inc(x_172); +x_173 = lean_ctor_get(x_168, 2); +lean_inc(x_173); +if (lean_is_exclusive(x_168)) { + lean_ctor_release(x_168, 0); + lean_ctor_release(x_168, 1); + lean_ctor_release(x_168, 2); + lean_ctor_release(x_168, 3); + x_174 = x_168; +} else { + lean_dec_ref(x_168); + x_174 = lean_box(0); +} +x_175 = lean_ctor_get(x_169, 0); +lean_inc(x_175); +if (lean_is_exclusive(x_169)) { + lean_ctor_release(x_169, 0); + x_176 = x_169; +} else { + lean_dec_ref(x_169); + x_176 = lean_box(0); +} +if (lean_is_scalar(x_176)) { + x_177 = lean_alloc_ctor(0, 1, 1); +} else { + x_177 = x_176; +} +lean_ctor_set(x_177, 0, x_175); +lean_ctor_set_uint8(x_177, sizeof(void*)*1, x_15); +if (lean_is_scalar(x_174)) { + x_178 = lean_alloc_ctor(0, 4, 0); +} else { + x_178 = x_174; +} +lean_ctor_set(x_178, 0, x_171); +lean_ctor_set(x_178, 1, x_172); +lean_ctor_set(x_178, 2, x_173); +lean_ctor_set(x_178, 3, x_177); +x_179 = lean_st_ref_set(x_6, x_178, x_170); +lean_dec(x_6); +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_163); +lean_ctor_set(x_182, 1, x_180); +return x_182; +} +} +} +else +{ +lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; +x_211 = lean_ctor_get(x_5, 3); +lean_inc(x_211); +x_212 = l___private_Lean_Util_Trace_5__getResetTraces___at_Lean_Meta_isLevelDefEq___spec__4___rarg(x_6, x_10); +x_213 = lean_ctor_get(x_212, 0); +lean_inc(x_213); +x_214 = lean_ctor_get(x_212, 1); +lean_inc(x_214); +lean_dec(x_212); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_215 = l___private_Lean_Meta_LevelDefEq_15__runDefEqM(x_8, x_3, x_4, x_5, x_6, x_214); +if (lean_obj_tag(x_215) == 0) +{ +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; uint8_t x_223; +x_216 = lean_ctor_get(x_215, 0); +lean_inc(x_216); +x_217 = lean_ctor_get(x_215, 1); +lean_inc(x_217); +lean_dec(x_215); +lean_inc(x_216); +x_218 = lean_alloc_closure((void*)(l_Lean_Meta_isExprDefEq___rarg___lambda__1___boxed), 4, 3); +lean_closure_set(x_218, 0, x_1); +lean_closure_set(x_218, 1, x_2); +lean_closure_set(x_218, 2, x_216); +x_219 = l_Lean_Meta_isExprDefEq___rarg___closed__2; +x_220 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_219, x_218, x_3, x_4, x_5, x_6, x_217); +x_221 = lean_ctor_get(x_220, 1); +lean_inc(x_221); +lean_dec(x_220); +x_222 = l___private_Lean_Util_Trace_4__addNode___at_Lean_Meta_isLevelDefEq___spec__5(x_213, x_219, x_211, x_3, x_4, x_5, x_6, x_221); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_223 = !lean_is_exclusive(x_222); +if (x_223 == 0) +{ +lean_object* x_224; +x_224 = lean_ctor_get(x_222, 0); +lean_dec(x_224); +lean_ctor_set(x_222, 0, x_216); +return x_222; +} +else +{ +lean_object* x_225; lean_object* x_226; +x_225 = lean_ctor_get(x_222, 1); +lean_inc(x_225); +lean_dec(x_222); +x_226 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_226, 0, x_216); +lean_ctor_set(x_226, 1, x_225); +return x_226; +} +} +else +{ +lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; uint8_t x_231; +lean_dec(x_2); +lean_dec(x_1); +x_227 = lean_ctor_get(x_215, 0); +lean_inc(x_227); +x_228 = lean_ctor_get(x_215, 1); +lean_inc(x_228); +lean_dec(x_215); +x_229 = l_Lean_Meta_isExprDefEq___rarg___closed__2; +x_230 = l___private_Lean_Util_Trace_4__addNode___at_Lean_Meta_isLevelDefEq___spec__5(x_213, x_229, x_211, x_3, x_4, x_5, x_6, x_228); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_231 = !lean_is_exclusive(x_230); +if (x_231 == 0) +{ +lean_object* x_232; +x_232 = lean_ctor_get(x_230, 0); +lean_dec(x_232); +lean_ctor_set_tag(x_230, 1); +lean_ctor_set(x_230, 0, x_227); +return x_230; +} +else +{ +lean_object* x_233; lean_object* x_234; +x_233 = lean_ctor_get(x_230, 1); +lean_inc(x_233); +lean_dec(x_230); +x_234 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_234, 0, x_227); +lean_ctor_set(x_234, 1, x_233); +return x_234; +} +} +} +} +} +} +lean_object* l_Array_findIdxMAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos___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) { +_start: +{ +lean_object* x_9; uint8_t x_10; +x_9 = lean_array_get_size(x_2); +x_10 = lean_nat_dec_lt(x_3, x_9); +lean_dec(x_9); +if (x_10 == 0) +{ +lean_object* x_11; 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_1); +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_8); +return x_12; +} +else +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_array_fget(x_2, x_3); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_1); +x_14 = l_Lean_Meta_isExprDefEq___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos___spec__1(x_13, x_1, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; uint8_t x_16; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_unbox(x_15); +lean_dec(x_15); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_14, 1); +lean_inc(x_17); +lean_dec(x_14); +x_18 = lean_unsigned_to_nat(1u); +x_19 = lean_nat_add(x_3, x_18); +lean_dec(x_3); +x_3 = x_19; +x_8 = x_17; +goto _start; +} +else +{ +uint8_t x_21; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_21 = !lean_is_exclusive(x_14); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_ctor_get(x_14, 0); +lean_dec(x_22); +x_23 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_23, 0, x_3); +lean_ctor_set(x_14, 0, x_23); +return x_14; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_14, 1); lean_inc(x_24); lean_dec(x_14); -x_25 = 1; -x_26 = lean_box(x_25); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_24); -lean_ctor_set(x_27, 1, x_26); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_12); -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_10); -return x_29; +x_25 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_25, 0, x_3); +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_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; uint8_t x_43; -x_30 = l_System_FilePath_dirName___closed__1; -x_31 = l_Lean_Name_toStringWithSep___main(x_30, x_1); -x_32 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_32, 0, x_31); -x_33 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_33, 0, x_32); -x_34 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__6; -x_35 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_33); -x_36 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__9; -x_37 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_37, 0, x_35); -lean_ctor_set(x_37, 1, x_36); -x_38 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__12; +uint8_t x_27; +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_27 = !lean_is_exclusive(x_14); +if (x_27 == 0) +{ +return x_14; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_14, 0); +x_29 = lean_ctor_get(x_14, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_14); +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* l_Lean_Meta_getLocalDecl___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos___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) { +_start: +{ +lean_object* x_7; lean_object* x_8; +x_7 = lean_ctor_get(x_2, 1); +lean_inc(x_7); +lean_inc(x_1); +x_8 = lean_local_ctx_find(x_7, x_1); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; +x_9 = l_Lean_Meta_throwUnknownFVar___rarg(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_2); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; +lean_dec(x_2); +lean_dec(x_1); +x_10 = lean_ctor_get(x_8, 0); +lean_inc(x_10); +lean_dec(x_8); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_6); +return x_11; +} +} +} +static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos___spec__4___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("', type of the major premise does not contain the recursor parameter"); +return x_1; +} +} +static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos___spec__4___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos___spec__4___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos___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) { +_start: +{ +lean_object* x_13; uint8_t x_14; +x_13 = lean_ctor_get(x_4, 1); +x_14 = lean_nat_dec_le(x_13, x_6); +if (x_14 == 0) +{ +lean_object* x_15; uint8_t x_16; +x_15 = lean_unsigned_to_nat(0u); +x_16 = lean_nat_dec_eq(x_5, x_15); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_17 = lean_unsigned_to_nat(1u); +x_18 = lean_nat_sub(x_5, x_17); +lean_dec(x_5); +x_26 = l_Lean_Expr_Inhabited; +x_27 = lean_array_get(x_26, x_2, x_6); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_27); +x_28 = l_Array_findIdxMAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos___spec__2(x_27, x_3, x_15, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +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_28, 1); +lean_inc(x_30); +lean_dec(x_28); +x_31 = l_Lean_Expr_fvarId_x21(x_27); +lean_dec(x_27); +lean_inc(x_8); +x_32 = l_Lean_Meta_getLocalDecl___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos___spec__3(x_31, x_8, x_9, x_10, x_11, x_30); +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_33; lean_object* x_34; uint8_t x_35; uint8_t x_36; +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_Lean_LocalDecl_binderInfo(x_33); +lean_dec(x_33); +x_36 = l_Lean_BinderInfo_isInstImplicit(x_35); +if (x_36 == 0) +{ +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_dec(x_18); +lean_dec(x_7); +lean_dec(x_6); +x_37 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_37, 0, x_1); +x_38 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__2; x_39 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_39, 0, x_37); -lean_ctor_set(x_39, 1, x_38); -x_40 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__15; +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_37); +x_40 = l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos___spec__4___closed__2; x_41 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_41, 0, x_39); lean_ctor_set(x_41, 1, x_40); -x_42 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_41, x_6, x_7, x_8, x_9, x_10); +x_42 = l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3___rarg(x_41, x_8, x_9, x_10, x_11, x_34); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); x_43 = !lean_is_exclusive(x_42); if (x_43 == 0) { @@ -3136,1195 +4502,177 @@ lean_ctor_set(x_46, 1, x_45); return x_46; } } -} else { -lean_object* x_47; lean_object* x_48; uint8_t x_49; -lean_dec(x_1); -x_47 = lean_ctor_get(x_2, 0); -x_48 = lean_array_get_size(x_3); -x_49 = lean_nat_dec_lt(x_47, x_48); -if (x_49 == 0) -{ -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_50 = l_Nat_repr(x_48); -x_51 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_51, 0, x_50); -x_52 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_52, 0, x_51); -x_53 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__18; -x_54 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_54, 1, x_52); -x_55 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__21; -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_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_56, x_6, x_7, x_8, x_9, x_10); -return x_57; -} -else -{ -lean_object* x_58; uint8_t x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; -lean_dec(x_48); -x_58 = lean_array_fget(x_3, x_47); -x_59 = l_Array_contains___at_Lean_Meta_CheckAssignment_check___main___spec__2(x_5, x_58); -x_60 = lean_box(x_59); -lean_inc(x_47); -x_61 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_61, 0, x_47); -lean_ctor_set(x_61, 1, x_60); -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_58); -lean_ctor_set(x_62, 1, x_61); -x_63 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_63, 0, x_62); -lean_ctor_set(x_63, 1, x_10); -return x_63; -} -} -} -} -lean_object* l_Array_findIdxAux___main___at___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Array_findIdxAux___main___at___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___spec__2(x_1, x_2, x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_4; -} -} -lean_object* l_Array_getIdx_x3f___at___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___spec__1___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Array_getIdx_x3f___at___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___spec__1(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -return x_3; -} -} -lean_object* l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_11; -} -} -lean_object* l_Array_findIdxMAux___main___at___private_Lean_Meta_RecursorInfo_6__getParamsPos___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; uint8_t x_10; -x_9 = lean_array_get_size(x_2); -x_10 = lean_nat_dec_lt(x_3, x_9); -lean_dec(x_9); -if (x_10 == 0) -{ -lean_object* x_11; 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_1); -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_8); -return x_12; -} -else -{ -lean_object* x_13; lean_object* x_14; -x_13 = lean_array_fget(x_2, x_3); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_1); -x_14 = l_Lean_Meta_isExprDefEq___at_Lean_Meta_isExprDefEqGuarded___spec__1(x_13, x_1, x_4, x_5, x_6, x_7, x_8); -if (lean_obj_tag(x_14) == 0) -{ -lean_object* x_15; uint8_t x_16; -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -x_16 = lean_unbox(x_15); -lean_dec(x_15); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_14, 1); -lean_inc(x_17); -lean_dec(x_14); -x_18 = lean_unsigned_to_nat(1u); -x_19 = lean_nat_add(x_3, x_18); -lean_dec(x_3); -x_3 = x_19; -x_8 = x_17; -goto _start; -} -else -{ -uint8_t x_21; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_21 = !lean_is_exclusive(x_14); -if (x_21 == 0) -{ -lean_object* x_22; lean_object* x_23; -x_22 = lean_ctor_get(x_14, 0); -lean_dec(x_22); -x_23 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_23, 0, x_3); -lean_ctor_set(x_14, 0, x_23); -return x_14; -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_14, 1); -lean_inc(x_24); -lean_dec(x_14); -x_25 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_25, 0, x_3); -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; -} +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_box(0); +x_48 = lean_array_push(x_7, x_47); +x_49 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_49, 0, x_48); +x_19 = x_49; +x_20 = x_34; +goto block_25; } } else { -uint8_t x_27; -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_27 = !lean_is_exclusive(x_14); -if (x_27 == 0) -{ -return x_14; -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_14, 0); -x_29 = lean_ctor_get(x_14, 1); -lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_14); -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; -} -} -} -} -} -static lean_object* _init_l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_6__getParamsPos___spec__2___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("' , type of the major premise does not contain the recursor parameter"); -return x_1; -} -} -static lean_object* _init_l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_6__getParamsPos___spec__2___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_6__getParamsPos___spec__2___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_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_6__getParamsPos___spec__2___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_6__getParamsPos___spec__2___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_6__getParamsPos___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) { -_start: -{ -lean_object* x_12; uint8_t x_13; -x_12 = lean_unsigned_to_nat(0u); -x_13 = lean_nat_dec_eq(x_5, x_12); -if (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; lean_object* x_20; -x_14 = lean_unsigned_to_nat(1u); -x_15 = lean_nat_sub(x_5, x_14); -lean_dec(x_5); -x_16 = lean_nat_sub(x_4, x_15); -x_17 = lean_nat_sub(x_16, x_14); -lean_dec(x_16); -x_18 = l_Lean_Expr_Inhabited; -x_19 = lean_array_get(x_18, x_2, x_17); -lean_dec(x_17); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_19); -x_20 = l_Array_findIdxMAux___main___at___private_Lean_Meta_RecursorInfo_6__getParamsPos___spec__1(x_19, x_3, x_12, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_20) == 0) -{ -lean_object* x_21; -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -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_inc(x_22); -lean_dec(x_20); -x_23 = l_Lean_Expr_fvarId_x21(x_19); -lean_dec(x_19); -lean_inc(x_7); -x_24 = l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1(x_23, x_7, x_8, x_9, x_10, x_22); -if (lean_obj_tag(x_24) == 0) -{ -lean_object* x_25; lean_object* x_26; uint8_t x_27; uint8_t 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_dec(x_24); -x_27 = l_Lean_LocalDecl_binderInfo(x_25); -lean_dec(x_25); -x_28 = l_Lean_BinderInfo_isInstImplicit(x_27); -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; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; -lean_dec(x_15); -lean_dec(x_6); -x_29 = l_System_FilePath_dirName___closed__1; -x_30 = l_Lean_Name_toStringWithSep___main(x_29, x_1); -x_31 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_31, 0, x_30); -x_32 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_32, 0, x_31); -x_33 = l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__3; -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_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_6__getParamsPos___spec__2___closed__3; -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_Meta_mkWHNFRef___spec__1___rarg(x_36, x_7, x_8, x_9, x_10, x_26); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -x_38 = !lean_is_exclusive(x_37); -if (x_38 == 0) -{ -return x_37; -} -else -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_37, 0); -x_40 = lean_ctor_get(x_37, 1); -lean_inc(x_40); -lean_inc(x_39); -lean_dec(x_37); -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 -{ -lean_object* x_42; -x_42 = lean_array_push(x_6, x_21); -x_5 = x_15; -x_6 = x_42; -x_11 = x_26; -goto _start; -} -} -else -{ -uint8_t x_44; -lean_dec(x_15); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_1); -x_44 = !lean_is_exclusive(x_24); -if (x_44 == 0) -{ -return x_24; -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_24, 0); -x_46 = lean_ctor_get(x_24, 1); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_24); -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_19); -x_48 = lean_ctor_get(x_20, 1); -lean_inc(x_48); -lean_dec(x_20); -x_49 = lean_array_push(x_6, x_21); -x_5 = x_15; -x_6 = x_49; -x_11 = x_48; -goto _start; -} -} -else -{ -uint8_t x_51; -lean_dec(x_19); -lean_dec(x_15); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_1); -x_51 = !lean_is_exclusive(x_20); -if (x_51 == 0) -{ -return x_20; -} -else -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_20, 0); -x_53 = lean_ctor_get(x_20, 1); -lean_inc(x_53); -lean_inc(x_52); -lean_dec(x_20); -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 -{ -lean_object* x_55; -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_1); -x_55 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_55, 0, x_6); -lean_ctor_set(x_55, 1, x_11); -return x_55; -} -} -} -lean_object* l___private_Lean_Meta_RecursorInfo_6__getParamsPos(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; -x_10 = l_Array_empty___closed__1; -lean_inc(x_3); -x_11 = l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_6__getParamsPos___spec__2(x_1, x_2, x_4, x_3, x_3, x_10, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_3); -if (lean_obj_tag(x_11) == 0) -{ -uint8_t x_12; -x_12 = !lean_is_exclusive(x_11); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; -x_13 = lean_ctor_get(x_11, 0); -x_14 = l_Array_toList___rarg(x_13); -lean_dec(x_13); -lean_ctor_set(x_11, 0, x_14); -return x_11; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_15 = lean_ctor_get(x_11, 0); -x_16 = lean_ctor_get(x_11, 1); -lean_inc(x_16); -lean_inc(x_15); -lean_dec(x_11); -x_17 = l_Array_toList___rarg(x_15); -lean_dec(x_15); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_16); -return x_18; -} -} -else -{ -uint8_t x_19; -x_19 = !lean_is_exclusive(x_11); -if (x_19 == 0) -{ -return x_11; -} -else -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_11, 0); -x_21 = lean_ctor_get(x_11, 1); -lean_inc(x_21); -lean_inc(x_20); -lean_dec(x_11); -x_22 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_22, 0, x_20); -lean_ctor_set(x_22, 1, x_21); -return x_22; -} -} -} -} -lean_object* l_Array_findIdxMAux___main___at___private_Lean_Meta_RecursorInfo_6__getParamsPos___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_Array_findIdxMAux___main___at___private_Lean_Meta_RecursorInfo_6__getParamsPos___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_2); -return x_9; -} -} -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_6__getParamsPos___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) { -_start: -{ -lean_object* x_12; -x_12 = l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_6__getParamsPos___spec__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_4); -lean_dec(x_3); -lean_dec(x_2); -return x_12; -} -} -lean_object* l___private_Lean_Meta_RecursorInfo_6__getParamsPos___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___private_Lean_Meta_RecursorInfo_6__getParamsPos(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_4); -lean_dec(x_2); -return x_10; -} -} -lean_object* l_Array_findIdxMAux___main___at___private_Lean_Meta_RecursorInfo_7__getIndicesPos___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; uint8_t x_10; -x_9 = lean_array_get_size(x_2); -x_10 = lean_nat_dec_lt(x_3, x_9); -lean_dec(x_9); -if (x_10 == 0) -{ -lean_object* x_11; 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_1); -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_8); -return x_12; -} -else -{ -lean_object* x_13; lean_object* x_14; -x_13 = lean_array_fget(x_2, x_3); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_1); -x_14 = l_Lean_Meta_isExprDefEq___at_Lean_Meta_isExprDefEqGuarded___spec__1(x_13, x_1, x_4, x_5, x_6, x_7, x_8); -if (lean_obj_tag(x_14) == 0) -{ -lean_object* x_15; uint8_t x_16; -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -x_16 = lean_unbox(x_15); -lean_dec(x_15); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_14, 1); -lean_inc(x_17); -lean_dec(x_14); -x_18 = lean_unsigned_to_nat(1u); -x_19 = lean_nat_add(x_3, x_18); -lean_dec(x_3); -x_3 = x_19; -x_8 = x_17; -goto _start; -} -else -{ -uint8_t x_21; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_21 = !lean_is_exclusive(x_14); -if (x_21 == 0) -{ -lean_object* x_22; lean_object* x_23; -x_22 = lean_ctor_get(x_14, 0); -lean_dec(x_22); -x_23 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_23, 0, x_3); -lean_ctor_set(x_14, 0, x_23); -return x_14; -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_14, 1); -lean_inc(x_24); -lean_dec(x_14); -x_25 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_25, 0, x_3); -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; -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_27 = !lean_is_exclusive(x_14); -if (x_27 == 0) -{ -return x_14; -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_14, 0); -x_29 = lean_ctor_get(x_14, 1); -lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_14); -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; -} -} -} -} -} -static lean_object* _init_l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_7__getIndicesPos___spec__2___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("' , type of the major premise does not contain the recursor index"); -return x_1; -} -} -static lean_object* _init_l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_7__getIndicesPos___spec__2___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_7__getIndicesPos___spec__2___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_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_7__getIndicesPos___spec__2___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_7__getIndicesPos___spec__2___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_7__getIndicesPos___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) { -_start: -{ -lean_object* x_14; uint8_t x_15; -x_14 = lean_unsigned_to_nat(0u); -x_15 = lean_nat_dec_eq(x_7, x_14); -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; lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_16 = lean_unsigned_to_nat(1u); -x_17 = lean_nat_sub(x_7, x_16); -lean_dec(x_7); -x_18 = lean_nat_sub(x_6, x_17); -x_19 = lean_nat_sub(x_18, x_16); +uint8_t x_50; lean_dec(x_18); -x_20 = lean_nat_sub(x_3, x_4); -x_21 = lean_nat_add(x_20, x_19); -lean_dec(x_19); -lean_dec(x_20); -x_22 = l_Lean_Expr_Inhabited; -x_23 = lean_array_get(x_22, x_2, x_21); -lean_dec(x_21); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -x_24 = l_Array_findIdxMAux___main___at___private_Lean_Meta_RecursorInfo_7__getIndicesPos___spec__1(x_23, x_5, x_14, x_9, x_10, x_11, x_12, x_13); -if (lean_obj_tag(x_24) == 0) -{ -lean_object* x_25; -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -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; 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_dec(x_17); -lean_dec(x_8); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); -lean_dec(x_24); -x_27 = l_System_FilePath_dirName___closed__1; -x_28 = l_Lean_Name_toStringWithSep___main(x_27, x_1); -x_29 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_29, 0, x_28); -x_30 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_30, 0, x_29); -x_31 = l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__3; -x_32 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_30); -x_33 = l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_7__getIndicesPos___spec__2___closed__3; -x_34 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_34, 0, x_32); -lean_ctor_set(x_34, 1, x_33); -x_35 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_34, x_9, x_10, x_11, x_12, x_26); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_36 = !lean_is_exclusive(x_35); -if (x_36 == 0) -{ -return x_35; -} -else -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_35, 0); -x_38 = lean_ctor_get(x_35, 1); -lean_inc(x_38); -lean_inc(x_37); -lean_dec(x_35); -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_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_24, 1); -lean_inc(x_40); -lean_dec(x_24); -x_41 = lean_ctor_get(x_25, 0); -lean_inc(x_41); -lean_dec(x_25); -x_42 = lean_array_push(x_8, x_41); -x_7 = x_17; -x_8 = x_42; -x_13 = x_40; -goto _start; -} -} -else -{ -uint8_t x_44; -lean_dec(x_17); -lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -lean_dec(x_1); -x_44 = !lean_is_exclusive(x_24); -if (x_44 == 0) -{ -return x_24; -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_24, 0); -x_46 = lean_ctor_get(x_24, 1); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_24); -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_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); lean_dec(x_7); -lean_dec(x_1); -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_8); -lean_ctor_set(x_48, 1, x_13); -return x_48; -} -} -} -lean_object* l___private_Lean_Meta_RecursorInfo_7__getIndicesPos(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; lean_object* x_12; -x_11 = l_Array_empty___closed__1; -lean_inc(x_4); -x_12 = l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_7__getIndicesPos___spec__2(x_1, x_2, x_3, x_4, x_5, x_4, x_4, x_11, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_4); -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 = l_Array_toList___rarg(x_14); -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 = l_Array_toList___rarg(x_16); -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_object* l_Array_findIdxMAux___main___at___private_Lean_Meta_RecursorInfo_7__getIndicesPos___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_Array_findIdxMAux___main___at___private_Lean_Meta_RecursorInfo_7__getIndicesPos___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_2); -return x_9; -} -} -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_7__getIndicesPos___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) { -_start: -{ -lean_object* x_14; -x_14 = l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_7__getIndicesPos___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); lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_14; -} -} -lean_object* l___private_Lean_Meta_RecursorInfo_7__getIndicesPos___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = l___private_Lean_Meta_RecursorInfo_7__getIndicesPos(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_3); -lean_dec(x_2); -return x_11; -} -} -static lean_object* _init_l___private_Lean_Meta_RecursorInfo_8__getMotiveLevel___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("' , motive result sort must be Prop or (Sort u) where u is a universe level parameter"); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_RecursorInfo_8__getMotiveLevel___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_RecursorInfo_8__getMotiveLevel___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___private_Lean_Meta_RecursorInfo_8__getMotiveLevel___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_RecursorInfo_8__getMotiveLevel___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l___private_Lean_Meta_RecursorInfo_8__getMotiveLevel(lean_object* x_1, 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; -if (lean_obj_tag(x_2) == 3) -{ -lean_object* x_19; -x_19 = lean_ctor_get(x_2, 0); -switch (lean_obj_tag(x_19)) { -case 0: -{ -lean_object* x_20; lean_dec(x_1); -lean_inc(x_19); -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_7); -return x_20; -} -case 4: -{ -lean_object* x_21; -lean_dec(x_1); -lean_inc(x_19); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_19); -lean_ctor_set(x_21, 1, x_7); -return x_21; -} -default: -{ -lean_object* x_22; -x_22 = lean_box(0); -x_8 = x_22; -goto block_18; -} -} -} -else -{ -lean_object* x_23; -x_23 = lean_box(0); -x_8 = x_23; -goto block_18; -} -block_18: -{ -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_dec(x_8); -x_9 = l_System_FilePath_dirName___closed__1; -x_10 = l_Lean_Name_toStringWithSep___main(x_9, x_1); -x_11 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_11, 0, x_10); -x_12 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_12, 0, x_11); -x_13 = l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__3; -x_14 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_14, 0, x_13); -lean_ctor_set(x_14, 1, x_12); -x_15 = l___private_Lean_Meta_RecursorInfo_8__getMotiveLevel___closed__3; -x_16 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_16, 0, x_14); -lean_ctor_set(x_16, 1, x_15); -x_17 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_16, x_3, x_4, x_5, x_6, x_7); -return x_17; -} -} -} -lean_object* l___private_Lean_Meta_RecursorInfo_8__getMotiveLevel___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___private_Lean_Meta_RecursorInfo_8__getMotiveLevel(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_object* l_Array_findIdxAux___main___at___private_Lean_Meta_RecursorInfo_9__getUnivLevelPos___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_2); -x_5 = lean_nat_dec_lt(x_3, x_4); -lean_dec(x_4); -if (x_5 == 0) -{ -lean_object* x_6; -lean_dec(x_3); -x_6 = lean_box(0); -return x_6; -} -else -{ -lean_object* x_7; uint8_t x_8; -x_7 = lean_array_fget(x_2, x_3); -x_8 = lean_level_eq(x_7, x_1); -lean_dec(x_7); -if (x_8 == 0) -{ -lean_object* x_9; lean_object* x_10; -x_9 = lean_unsigned_to_nat(1u); -x_10 = lean_nat_add(x_3, x_9); -lean_dec(x_3); -x_3 = x_10; -goto _start; -} -else -{ -lean_object* x_12; -x_12 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_12, 0, x_3); -return x_12; -} -} -} -} -static lean_object* _init_l_List_foldlM___main___at___private_Lean_Meta_RecursorInfo_9__getUnivLevelPos___spec__2___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("' , major premise type does not contain universe level parameter '"); -return x_1; -} -} -static lean_object* _init_l_List_foldlM___main___at___private_Lean_Meta_RecursorInfo_9__getUnivLevelPos___spec__2___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_List_foldlM___main___at___private_Lean_Meta_RecursorInfo_9__getUnivLevelPos___spec__2___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_List_foldlM___main___at___private_Lean_Meta_RecursorInfo_9__getUnivLevelPos___spec__2___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_List_foldlM___main___at___private_Lean_Meta_RecursorInfo_9__getUnivLevelPos___spec__2___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l_List_foldlM___main___at___private_Lean_Meta_RecursorInfo_9__getUnivLevelPos___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) { -_start: -{ -if (lean_obj_tag(x_5) == 0) -{ -lean_object* x_11; -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_10); -return x_11; -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; -x_12 = lean_ctor_get(x_5, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_5, 1); -lean_inc(x_13); -lean_dec(x_5); -lean_inc(x_12); -x_14 = l_Lean_mkLevelParam(x_12); -x_15 = lean_level_eq(x_2, x_14); -if (x_15 == 0) -{ -lean_object* x_16; lean_object* x_17; -x_16 = lean_unsigned_to_nat(0u); -x_17 = l_Array_findIdxAux___main___at___private_Lean_Meta_RecursorInfo_9__getUnivLevelPos___spec__1(x_14, x_3, x_16); -lean_dec(x_14); -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; uint8_t x_33; -lean_dec(x_13); -lean_dec(x_4); -x_18 = l_System_FilePath_dirName___closed__1; -x_19 = l_Lean_Name_toStringWithSep___main(x_18, x_1); -x_20 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_20, 0, x_19); -x_21 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_21, 0, x_20); -x_22 = l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__3; -x_23 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_21); -x_24 = l_List_foldlM___main___at___private_Lean_Meta_RecursorInfo_9__getUnivLevelPos___spec__2___closed__3; -x_25 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_25, 0, x_23); -lean_ctor_set(x_25, 1, x_24); -x_26 = l_Lean_Name_toStringWithSep___main(x_18, x_12); -x_27 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_27, 0, x_26); -x_28 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_28, 0, x_27); -x_29 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_29, 0, x_25); -lean_ctor_set(x_29, 1, x_28); -x_30 = l_Lean_throwUnknownConstant___rarg___closed__5; -x_31 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_31, 0, x_29); -lean_ctor_set(x_31, 1, x_30); -x_32 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_31, x_6, x_7, x_8, x_9, x_10); -x_33 = !lean_is_exclusive(x_32); -if (x_33 == 0) +x_50 = !lean_is_exclusive(x_32); +if (x_50 == 0) { return x_32; } else { -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_32, 0); -x_35 = lean_ctor_get(x_32, 1); -lean_inc(x_35); -lean_inc(x_34); +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_32, 0); +x_52 = lean_ctor_get(x_32, 1); +lean_inc(x_52); +lean_inc(x_51); lean_dec(x_32); -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_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_37; lean_object* x_38; lean_object* x_39; -lean_dec(x_12); -x_37 = lean_ctor_get(x_17, 0); -lean_inc(x_37); -lean_dec(x_17); -x_38 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_38, 0, x_37); -x_39 = lean_array_push(x_4, x_38); -x_4 = x_39; -x_5 = x_13; +lean_object* x_54; uint8_t x_55; +lean_dec(x_27); +x_54 = lean_ctor_get(x_28, 1); +lean_inc(x_54); +lean_dec(x_28); +x_55 = !lean_is_exclusive(x_29); +if (x_55 == 0) +{ +lean_object* x_56; lean_object* x_57; +x_56 = lean_array_push(x_7, x_29); +x_57 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_57, 0, x_56); +x_19 = x_57; +x_20 = x_54; +goto block_25; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_58 = lean_ctor_get(x_29, 0); +lean_inc(x_58); +lean_dec(x_29); +x_59 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_59, 0, x_58); +x_60 = lean_array_push(x_7, x_59); +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_60); +x_19 = x_61; +x_20 = x_54; +goto block_25; +} +} +} +else +{ +uint8_t x_62; +lean_dec(x_27); +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_1); +x_62 = !lean_is_exclusive(x_28); +if (x_62 == 0) +{ +return x_28; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_28, 0); +x_64 = lean_ctor_get(x_28, 1); +lean_inc(x_64); +lean_inc(x_63); +lean_dec(x_28); +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; +} +} +block_25: +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_19, 0); +lean_inc(x_21); +lean_dec(x_19); +x_22 = lean_ctor_get(x_4, 2); +x_23 = lean_nat_add(x_6, x_22); +lean_dec(x_6); +x_5 = x_18; +x_6 = x_23; +x_7 = x_21; +x_12 = x_20; goto _start; } } else { -lean_object* x_41; lean_object* x_42; -lean_dec(x_14); -lean_dec(x_12); -x_41 = lean_box(0); -x_42 = lean_array_push(x_4, x_41); -x_4 = x_42; -x_5 = x_13; -goto _start; +lean_object* x_66; +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); +x_66 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_66, 0, x_7); +lean_ctor_set(x_66, 1, x_12); +return x_66; +} +} +else +{ +lean_object* x_67; +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); +x_67 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_67, 0, x_7); +lean_ctor_set(x_67, 1, x_12); +return x_67; } } } -} -lean_object* l___private_Lean_Meta_RecursorInfo_9__getUnivLevelPos(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; -x_10 = l_List_redLength___main___rarg(x_4); -x_11 = lean_mk_empty_array_with_capacity(x_10); -lean_dec(x_10); -x_12 = l_List_toArrayAux___main___rarg(x_4, x_11); +x_10 = lean_unsigned_to_nat(0u); +x_11 = lean_unsigned_to_nat(1u); +lean_inc(x_3); +x_12 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_3); +lean_ctor_set(x_12, 2, x_11); x_13 = l_Array_empty___closed__1; -x_14 = l_List_foldlM___main___at___private_Lean_Meta_RecursorInfo_9__getUnivLevelPos___spec__2(x_1, x_3, x_12, x_13, x_2, x_5, x_6, x_7, x_8, x_9); +x_14 = l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos___spec__4(x_1, x_2, x_4, x_12, x_3, x_10, x_13, x_5, x_6, x_7, x_8, x_9); lean_dec(x_12); if (lean_obj_tag(x_14) == 0) { @@ -4379,21 +4727,902 @@ return x_25; } } } -lean_object* l_Array_findIdxAux___main___at___private_Lean_Meta_RecursorInfo_9__getUnivLevelPos___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_findIdxMAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos___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) { +_start: +{ +lean_object* x_9; +x_9 = l_Array_findIdxMAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_2); +return x_9; +} +} +lean_object* l_Lean_Meta_getLocalDecl___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos___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) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Meta_getLocalDecl___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos___spec__3(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_7; +} +} +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos___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) { +_start: +{ +lean_object* x_13; +x_13 = l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos___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); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_13; +} +} +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos___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___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_4); +lean_dec(x_2); +return x_10; +} +} +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getIndicesPos_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getIndicesPos_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getIndicesPos_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Array_findIdxMAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getIndicesPos___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; uint8_t x_10; +x_9 = lean_array_get_size(x_2); +x_10 = lean_nat_dec_lt(x_3, x_9); +lean_dec(x_9); +if (x_10 == 0) +{ +lean_object* x_11; 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_1); +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_8); +return x_12; +} +else +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_array_fget(x_2, x_3); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_1); +x_14 = l_Lean_Meta_isExprDefEq___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos___spec__1(x_13, x_1, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; uint8_t x_16; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_unbox(x_15); +lean_dec(x_15); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_14, 1); +lean_inc(x_17); +lean_dec(x_14); +x_18 = lean_unsigned_to_nat(1u); +x_19 = lean_nat_add(x_3, x_18); +lean_dec(x_3); +x_3 = x_19; +x_8 = x_17; +goto _start; +} +else +{ +uint8_t x_21; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_21 = !lean_is_exclusive(x_14); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_ctor_get(x_14, 0); +lean_dec(x_22); +x_23 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_23, 0, x_3); +lean_ctor_set(x_14, 0, x_23); +return x_14; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_14, 1); +lean_inc(x_24); +lean_dec(x_14); +x_25 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_25, 0, x_3); +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; +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_27 = !lean_is_exclusive(x_14); +if (x_27 == 0) +{ +return x_14; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_14, 0); +x_29 = lean_ctor_get(x_14, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_14); +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; +} +} +} +} +} +static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getIndicesPos___spec__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("', type of the major premise does not contain the recursor index"); +return x_1; +} +} +static lean_object* _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getIndicesPos___spec__2___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getIndicesPos___spec__2___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getIndicesPos___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) { +_start: +{ +lean_object* x_15; uint8_t x_16; +x_15 = lean_ctor_get(x_6, 1); +x_16 = lean_nat_dec_le(x_15, x_8); +if (x_16 == 0) +{ +lean_object* x_17; uint8_t x_18; +x_17 = lean_unsigned_to_nat(0u); +x_18 = lean_nat_dec_eq(x_7, x_17); +if (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; +x_19 = lean_unsigned_to_nat(1u); +x_20 = lean_nat_sub(x_7, x_19); +lean_dec(x_7); +x_21 = lean_nat_sub(x_3, x_4); +x_22 = lean_nat_add(x_21, x_8); +lean_dec(x_21); +x_23 = l_Lean_Expr_Inhabited; +x_24 = lean_array_get(x_23, x_2, x_22); +lean_dec(x_22); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +x_25 = l_Array_findIdxMAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getIndicesPos___spec__1(x_24, x_5, x_17, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +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; uint8_t x_34; +lean_dec(x_20); +lean_dec(x_9); +lean_dec(x_8); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +x_28 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_28, 0, x_1); +x_29 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__2; +x_30 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_28); +x_31 = l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getIndicesPos___spec__2___closed__2; +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___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3___rarg(x_32, x_10, x_11, x_12, x_13, x_27); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 0) +{ +return x_33; +} +else +{ +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_33, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_33); +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 +{ +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_25, 1); +lean_inc(x_38); +lean_dec(x_25); +x_39 = lean_ctor_get(x_26, 0); +lean_inc(x_39); +lean_dec(x_26); +x_40 = lean_array_push(x_9, x_39); +x_41 = lean_ctor_get(x_6, 2); +x_42 = lean_nat_add(x_8, x_41); +lean_dec(x_8); +x_7 = x_20; +x_8 = x_42; +x_9 = x_40; +x_14 = x_38; +goto _start; +} +} +else +{ +uint8_t x_44; +lean_dec(x_20); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +x_44 = !lean_is_exclusive(x_25); +if (x_44 == 0) +{ +return x_25; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* 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 = 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_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_1); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_9); +lean_ctor_set(x_48, 1, x_14); +return x_48; +} +} +else +{ +lean_object* x_49; +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_1); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_9); +lean_ctor_set(x_49, 1, x_14); +return x_49; +} +} +} +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getIndicesPos(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; +x_11 = lean_unsigned_to_nat(0u); +x_12 = lean_unsigned_to_nat(1u); +lean_inc(x_4); +x_13 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_13, 0, x_11); +lean_ctor_set(x_13, 1, x_4); +lean_ctor_set(x_13, 2, x_12); +x_14 = l_Array_empty___closed__1; +lean_inc(x_4); +x_15 = l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getIndicesPos___spec__2(x_1, x_2, x_3, x_4, x_5, x_13, x_4, x_11, x_14, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_13); +lean_dec(x_4); +if (lean_obj_tag(x_15) == 0) +{ +uint8_t x_16; +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_15, 0); +x_18 = l_Array_toList___rarg(x_17); +lean_dec(x_17); +lean_ctor_set(x_15, 0, x_18); +return x_15; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_19 = lean_ctor_get(x_15, 0); +x_20 = lean_ctor_get(x_15, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_15); +x_21 = l_Array_toList___rarg(x_19); +lean_dec(x_19); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_20); +return x_22; +} +} +else +{ +uint8_t x_23; +x_23 = !lean_is_exclusive(x_15); +if (x_23 == 0) +{ +return x_15; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +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_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; +} +} +} +} +lean_object* l_Array_findIdxMAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getIndicesPos___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_Array_findIdxMAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getIndicesPos___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_2); +return x_9; +} +} +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getIndicesPos___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___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getIndicesPos___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_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_15; +} +} +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getIndicesPos___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getIndicesPos(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_3); +lean_dec(x_2); +return x_11; +} +} +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMotiveLevel_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +if (lean_obj_tag(x_1) == 3) +{ +lean_object* x_5; +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +switch (lean_obj_tag(x_5)) { +case 0: +{ +uint64_t x_6; uint64_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +lean_dec(x_4); +lean_dec(x_3); +x_6 = lean_ctor_get_uint64(x_1, sizeof(void*)*1); +lean_dec(x_1); +x_7 = lean_ctor_get_uint64(x_5, 0); +x_8 = lean_box_uint64(x_7); +x_9 = lean_box_uint64(x_6); +x_10 = lean_apply_3(x_2, x_5, x_8, x_9); +return x_10; +} +case 4: +{ +uint64_t x_11; lean_object* x_12; uint64_t x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +lean_dec(x_4); +lean_dec(x_2); +x_11 = lean_ctor_get_uint64(x_1, sizeof(void*)*1); +lean_dec(x_1); +x_12 = lean_ctor_get(x_5, 0); +lean_inc(x_12); +x_13 = lean_ctor_get_uint64(x_5, sizeof(void*)*1); +x_14 = lean_box_uint64(x_13); +x_15 = lean_box_uint64(x_11); +x_16 = lean_apply_4(x_3, x_5, x_12, x_14, x_15); +return x_16; +} +default: +{ +lean_object* x_17; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_17 = lean_apply_1(x_4, x_1); +return x_17; +} +} +} +else +{ +lean_object* x_18; +lean_dec(x_3); +lean_dec(x_2); +x_18 = lean_apply_1(x_4, x_1); +return x_18; +} +} +} +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMotiveLevel_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMotiveLevel_match__1___rarg), 4, 0); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMotiveLevel___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("', motive result sort must be Prop or (Sort u) where u is a universe level parameter"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMotiveLevel___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMotiveLevel___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMotiveLevel(lean_object* x_1, 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_2) == 3) +{ +lean_object* x_8; +x_8 = lean_ctor_get(x_2, 0); +switch (lean_obj_tag(x_8)) { +case 0: +{ +lean_object* x_9; +lean_dec(x_1); +lean_inc(x_8); +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; +} +case 4: +{ +lean_object* x_10; +lean_dec(x_1); +lean_inc(x_8); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_8); +lean_ctor_set(x_10, 1, x_7); +return x_10; +} +default: +{ +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_alloc_ctor(4, 1, 0); +lean_ctor_set(x_11, 0, x_1); +x_12 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__2; +x_13 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_11); +x_14 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMotiveLevel___closed__2; +x_15 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_15, 0, x_13); +lean_ctor_set(x_15, 1, x_14); +x_16 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_15, x_3, x_4, x_5, x_6, x_7); +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; +x_17 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_17, 0, x_1); +x_18 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__2; +x_19 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_17); +x_20 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMotiveLevel___closed__2; +x_21 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_20); +x_22 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_21, x_3, x_4, x_5, x_6, x_7); +return x_22; +} +} +} +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMotiveLevel___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___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMotiveLevel(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_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getUnivLevelPos_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getUnivLevelPos_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getUnivLevelPos_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Array_findIdxAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getUnivLevelPos___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; +lean_dec(x_3); +x_6 = lean_box(0); +return x_6; +} +else +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_fget(x_2, x_3); +x_8 = lean_level_eq(x_7, x_1); +lean_dec(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_unsigned_to_nat(1u); +x_10 = lean_nat_add(x_3, x_9); +lean_dec(x_3); +x_3 = x_10; +goto _start; +} +else +{ +lean_object* x_12; +x_12 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_12, 0, x_3); +return x_12; +} +} +} +} +static lean_object* _init_l_List_forInAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getUnivLevelPos___spec__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("', major premise type does not contain universe level parameter '"); +return x_1; +} +} +static lean_object* _init_l_List_forInAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getUnivLevelPos___spec__2___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_List_forInAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getUnivLevelPos___spec__2___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +lean_object* l_List_forInAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getUnivLevelPos___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) { +_start: +{ +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_11; +lean_dec(x_1); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_5); +lean_ctor_set(x_11, 1, x_10); +return x_11; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_12 = lean_ctor_get(x_4, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_4, 1); +lean_inc(x_13); +lean_dec(x_4); +lean_inc(x_12); +x_14 = l_Lean_mkLevelParam(x_12); +x_15 = lean_level_eq(x_2, x_14); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_unsigned_to_nat(0u); +x_17 = l_Array_findIdxAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getUnivLevelPos___spec__1(x_14, x_3, x_16); +lean_dec(x_14); +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; uint8_t x_28; +lean_dec(x_13); +lean_dec(x_5); +x_18 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_18, 0, x_1); +x_19 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__2; +x_20 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +x_21 = l_List_forInAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getUnivLevelPos___spec__2___closed__2; +x_22 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +x_23 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_23, 0, x_12); +x_24 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +x_25 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___lambda__1___closed__3; +x_26 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +x_27 = l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3___rarg(x_26, x_6, x_7, x_8, x_9, x_10); +x_28 = !lean_is_exclusive(x_27); +if (x_28 == 0) +{ +return x_27; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_27, 0); +x_30 = lean_ctor_get(x_27, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_27); +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 +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +lean_dec(x_12); +x_32 = lean_ctor_get(x_17, 0); +lean_inc(x_32); +lean_dec(x_17); +x_33 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_33, 0, x_32); +x_34 = lean_array_push(x_5, x_33); +x_4 = x_13; +x_5 = x_34; +goto _start; +} +} +else +{ +lean_object* x_36; lean_object* x_37; +lean_dec(x_14); +lean_dec(x_12); +x_36 = lean_box(0); +x_37 = lean_array_push(x_5, x_36); +x_4 = x_13; +x_5 = x_37; +goto _start; +} +} +} +} +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getUnivLevelPos(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; +x_10 = l_List_redLength___main___rarg(x_4); +x_11 = lean_mk_empty_array_with_capacity(x_10); +lean_dec(x_10); +x_12 = l_List_toArrayAux___main___rarg(x_4, x_11); +x_13 = l_Array_empty___closed__1; +x_14 = l_List_forInAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getUnivLevelPos___spec__2(x_1, x_3, x_12, x_2, x_13, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_12); +if (lean_obj_tag(x_14) == 0) +{ +uint8_t x_15; +x_15 = !lean_is_exclusive(x_14); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_14, 0); +x_17 = l_Array_toList___rarg(x_16); +lean_dec(x_16); +lean_ctor_set(x_14, 0, x_17); +return x_14; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_14, 0); +x_19 = lean_ctor_get(x_14, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_14); +x_20 = l_Array_toList___rarg(x_18); +lean_dec(x_18); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_19); +return x_21; +} +} +else +{ +uint8_t x_22; +x_22 = !lean_is_exclusive(x_14); +if (x_22 == 0) +{ +return x_14; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_14, 0); +x_24 = lean_ctor_get(x_14, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_14); +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_object* l_Array_findIdxAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getUnivLevelPos___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Array_findIdxAux___main___at___private_Lean_Meta_RecursorInfo_9__getUnivLevelPos___spec__1(x_1, x_2, x_3); +x_4 = l_Array_findIdxAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getUnivLevelPos___spec__1(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -lean_object* l_List_foldlM___main___at___private_Lean_Meta_RecursorInfo_9__getUnivLevelPos___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* l_List_forInAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getUnivLevelPos___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) { _start: { lean_object* x_11; -x_11 = l_List_foldlM___main___at___private_Lean_Meta_RecursorInfo_9__getUnivLevelPos___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_List_forInAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getUnivLevelPos___spec__2(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); @@ -4403,11 +5632,11 @@ lean_dec(x_2); return x_11; } } -lean_object* l___private_Lean_Meta_RecursorInfo_9__getUnivLevelPos___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getUnivLevelPos___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___private_Lean_Meta_RecursorInfo_9__getUnivLevelPos(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getUnivLevelPos(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); @@ -4416,7 +5645,170 @@ lean_dec(x_3); return x_10; } } -lean_object* l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___spec__1(lean_object* x_1, size_t x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive_match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive_match__1___rarg), 2, 0); +return x_2; +} +} +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive_match__2___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive_match__2___rarg), 2, 0); +return x_2; +} +} +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive_match__3___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive_match__3___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_inferType___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___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) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_7 = lean_ctor_get(x_4, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_4, 1); +lean_inc(x_8); +x_9 = lean_ctor_get(x_4, 2); +lean_inc(x_9); +x_10 = lean_ctor_get(x_4, 3); +lean_inc(x_10); +x_11 = lean_nat_dec_eq(x_8, x_9); +if (x_11 == 0) +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_4); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_13 = lean_ctor_get(x_4, 3); +lean_dec(x_13); +x_14 = lean_ctor_get(x_4, 2); +lean_dec(x_14); +x_15 = lean_ctor_get(x_4, 1); +lean_dec(x_15); +x_16 = lean_ctor_get(x_4, 0); +lean_dec(x_16); +x_17 = lean_unsigned_to_nat(1u); +x_18 = lean_nat_add(x_8, x_17); +lean_dec(x_8); +lean_ctor_set(x_4, 1, x_18); +x_19 = l_Lean_Meta_inferTypeRef; +x_20 = lean_st_ref_get(x_19, x_6); +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_apply_6(x_21, x_1, x_2, x_3, x_4, x_5, x_22); +return x_23; +} +else +{ +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_dec(x_4); +x_24 = lean_unsigned_to_nat(1u); +x_25 = lean_nat_add(x_8, x_24); +lean_dec(x_8); +x_26 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_26, 0, x_7); +lean_ctor_set(x_26, 1, x_25); +lean_ctor_set(x_26, 2, x_9); +lean_ctor_set(x_26, 3, x_10); +x_27 = l_Lean_Meta_inferTypeRef; +x_28 = lean_st_ref_get(x_27, 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_31 = lean_apply_6(x_29, x_1, x_2, x_3, x_26, x_5, x_30); +return x_31; +} +} +else +{ +lean_object* x_32; lean_object* x_33; uint8_t x_34; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_32 = l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; +x_33 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_32, 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); +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 0) +{ +return x_33; +} +else +{ +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_33, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_33); +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* l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__2(lean_object* x_1, size_t x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; lean_object* x_6; size_t x_97; size_t x_98; lean_object* x_99; size_t x_100; uint8_t x_101; @@ -4461,7 +5853,7 @@ lean_inc(x_8); x_9 = lean_ctor_get(x_3, 1); lean_inc(x_9); lean_dec(x_3); -x_10 = l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___spec__1(x_1, x_2, x_8, x_6); +x_10 = l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__2(x_1, x_2, x_8, x_6); x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); if (lean_obj_tag(x_11) == 0) @@ -4537,7 +5929,7 @@ lean_inc(x_24); x_25 = lean_ctor_get(x_3, 2); lean_inc(x_25); lean_dec(x_3); -x_26 = l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___spec__1(x_1, x_2, x_24, x_6); +x_26 = l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__2(x_1, x_2, x_24, x_6); x_27 = lean_ctor_get(x_26, 0); lean_inc(x_27); if (lean_obj_tag(x_27) == 0) @@ -4613,7 +6005,7 @@ lean_inc(x_40); x_41 = lean_ctor_get(x_3, 2); lean_inc(x_41); lean_dec(x_3); -x_42 = l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___spec__1(x_1, x_2, x_40, x_6); +x_42 = l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__2(x_1, x_2, x_40, x_6); x_43 = lean_ctor_get(x_42, 0); lean_inc(x_43); if (lean_obj_tag(x_43) == 0) @@ -4691,7 +6083,7 @@ lean_inc(x_57); x_58 = lean_ctor_get(x_3, 3); lean_inc(x_58); lean_dec(x_3); -x_59 = l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___spec__1(x_1, x_2, x_56, x_6); +x_59 = l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__2(x_1, x_2, x_56, x_6); x_60 = lean_ctor_get(x_59, 0); lean_inc(x_60); if (lean_obj_tag(x_60) == 0) @@ -4700,7 +6092,7 @@ lean_object* x_61; lean_object* x_62; lean_object* x_63; x_61 = lean_ctor_get(x_59, 1); lean_inc(x_61); lean_dec(x_59); -x_62 = l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___spec__1(x_1, x_2, x_57, x_61); +x_62 = l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__2(x_1, x_2, x_57, x_61); x_63 = lean_ctor_get(x_62, 0); lean_inc(x_63); if (lean_obj_tag(x_63) == 0) @@ -4880,7 +6272,7 @@ return x_95; } } } -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___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* l_Array_anyRangeMAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___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) { _start: { uint8_t x_11; @@ -4908,7 +6300,7 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_16 = l_Lean_Meta_inferType___at___private_Lean_Meta_InferType_1__inferAppType___spec__1(x_15, x_6, x_7, x_8, x_9, x_10); +x_16 = l_Lean_Meta_inferType___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__1(x_15, x_6, x_7, x_8, x_9, x_10); if (lean_obj_tag(x_16) == 0) { uint8_t x_17; @@ -4920,7 +6312,7 @@ x_18 = lean_ctor_get(x_16, 0); x_19 = lean_ctor_get(x_16, 1); x_20 = 8192; x_21 = l_Lean_Expr_FindImpl_initCache; -x_22 = l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___spec__1(x_1, x_20, x_18, x_21); +x_22 = l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__2(x_1, x_20, x_18, x_21); x_23 = lean_ctor_get(x_22, 0); lean_inc(x_23); lean_dec(x_22); @@ -4960,7 +6352,7 @@ lean_inc(x_29); lean_dec(x_16); x_31 = 8192; x_32 = l_Lean_Expr_FindImpl_initCache; -x_33 = l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___spec__1(x_1, x_31, x_29, x_32); +x_33 = l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__2(x_1, x_31, x_29, x_32); x_34 = lean_ctor_get(x_33, 0); lean_inc(x_34); lean_dec(x_33); @@ -5022,7 +6414,21 @@ return x_44; } } } -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___spec__3(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__4___lambda__1(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_8 = lean_box(x_2); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_1); +lean_ctor_set(x_9, 1, x_8); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_7); +return x_10; +} +} +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__4(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { if (lean_obj_tag(x_5) == 5) @@ -5050,89 +6456,136 @@ lean_dec(x_6); x_19 = lean_expr_eqv(x_5, x_1); lean_dec(x_5); x_20 = lean_box(x_19); -x_21 = lean_array_push(x_2, x_20); -if (x_3 == 0) +x_21 = lean_array_push(x_3, x_20); +if (x_2 == 0) { lean_object* x_22; lean_object* x_23; lean_object* x_24; x_22 = lean_array_get_size(x_4); x_23 = lean_unsigned_to_nat(0u); -x_24 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___spec__2(x_1, x_4, x_4, x_22, x_23, x_8, x_9, x_10, x_11, x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_24 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__3(x_1, x_4, x_4, x_22, x_23, x_8, x_9, x_10, x_11, x_12); lean_dec(x_22); 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; -x_26 = lean_ctor_get(x_24, 0); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_21); -lean_ctor_set(x_27, 1, x_26); -lean_ctor_set(x_24, 0, x_27); -return x_24; -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_28 = lean_ctor_get(x_24, 0); -x_29 = lean_ctor_get(x_24, 1); -lean_inc(x_29); -lean_inc(x_28); +lean_object* x_25; lean_object* x_26; uint8_t 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_dec(x_24); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_21); -lean_ctor_set(x_30, 1, x_28); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_29); -return x_31; -} -} -else -{ -uint8_t x_32; -lean_dec(x_21); -x_32 = !lean_is_exclusive(x_24); -if (x_32 == 0) -{ -return x_24; -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; -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_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 -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_27 = lean_unbox(x_25); +lean_dec(x_25); +x_28 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__4___lambda__1(x_21, x_27, x_8, x_9, x_10, x_11, x_26); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -x_36 = lean_box(x_3); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_21); -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_12); -return x_38; +return x_28; +} +else +{ +uint8_t x_29; +lean_dec(x_21); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_29 = !lean_is_exclusive(x_24); +if (x_29 == 0) +{ +return x_24; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_24, 0); +x_31 = lean_ctor_get(x_24, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_24); +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 +{ +lean_object* x_33; +x_33 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__4___lambda__1(x_21, x_2, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +return x_33; } } } } -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___spec__4___lambda__1(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* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__5___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l___private_Lean_Meta_Basic_20__forallTelescopeReducingImp___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_8) == 0) +{ +uint8_t x_9; +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) +{ +return x_8; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_8, 0); +x_11 = lean_ctor_get(x_8, 1); +lean_inc(x_11); +lean_inc(x_10); +lean_dec(x_8); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_11); +return x_12; +} +} +else +{ +uint8_t x_13; +x_13 = !lean_is_exclusive(x_8); +if (x_13 == 0) +{ +return x_8; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_8, 0); +x_15 = lean_ctor_get(x_8, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_8); +x_16 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_16, 1, x_15); +return x_16; +} +} +} +} +lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__5(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__5___rarg), 7, 0); +return x_2; +} +} +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__6___lambda__1(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _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; @@ -5144,323 +6597,649 @@ x_14 = lean_mk_array(x_12, x_13); x_15 = lean_unsigned_to_nat(1u); x_16 = lean_nat_sub(x_12, x_15); lean_dec(x_12); -x_17 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___spec__3(x_1, x_2, x_3, x_4, x_5, x_14, x_16, x_6, x_7, x_8, x_9, x_10); +x_17 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__4(x_1, x_2, x_3, x_4, x_5, x_14, x_16, x_6, x_7, x_8, x_9, x_10); return x_17; } } -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___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* l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__6___lambda__2(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) { +_start: +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = l_Lean_Expr_Inhabited; +x_13 = lean_array_get(x_12, x_1, x_2); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_14 = l_Lean_Meta_inferType___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__1(x_13, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = lean_box(x_4); +x_18 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__6___lambda__1___boxed), 10, 3); +lean_closure_set(x_18, 0, x_3); +lean_closure_set(x_18, 1, x_17); +lean_closure_set(x_18, 2, x_5); +x_19 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__5___rarg(x_15, x_18, x_7, x_8, x_9, x_10, x_16); +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; uint8_t x_22; +x_21 = lean_ctor_get(x_19, 0); +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_21, 0); +x_24 = lean_ctor_get(x_21, 1); +lean_ctor_set(x_21, 1, x_23); +lean_ctor_set(x_21, 0, x_24); +x_25 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_25, 0, x_21); +lean_ctor_set(x_19, 0, x_25); +return x_19; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +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(0, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_26); +x_29 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_19, 0, x_29); +return x_19; +} +} +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; +x_30 = lean_ctor_get(x_19, 0); +x_31 = lean_ctor_get(x_19, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_19); +x_32 = lean_ctor_get(x_30, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_30, 1); +lean_inc(x_33); +if (lean_is_exclusive(x_30)) { + lean_ctor_release(x_30, 0); + lean_ctor_release(x_30, 1); + x_34 = x_30; +} else { + lean_dec_ref(x_30); + x_34 = lean_box(0); +} +if (lean_is_scalar(x_34)) { + x_35 = lean_alloc_ctor(0, 2, 0); +} else { + x_35 = x_34; +} +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_32); +x_36 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_36, 0, 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_31); +return x_37; +} +} +else +{ +uint8_t x_38; +x_38 = !lean_is_exclusive(x_19); +if (x_38 == 0) +{ +return x_19; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_19, 0); +x_40 = lean_ctor_get(x_19, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_19); +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_42; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_3); +x_42 = !lean_is_exclusive(x_14); +if (x_42 == 0) +{ +return x_14; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_14, 0); +x_44 = lean_ctor_get(x_14, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_14); +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; +} +} +} +} +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__6___lambda__3(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, lean_object* x_13) { _start: { lean_object* x_14; uint8_t x_15; -x_14 = lean_unsigned_to_nat(0u); -x_15 = lean_nat_dec_eq(x_7, x_14); +x_14 = lean_nat_sub(x_4, x_5); +x_15 = lean_nat_dec_le(x_14, x_2); +lean_dec(x_14); 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_42; uint8_t x_43; -x_16 = lean_unsigned_to_nat(1u); -x_17 = lean_nat_sub(x_7, x_16); -lean_dec(x_7); -x_18 = lean_nat_sub(x_6, x_17); -x_19 = lean_nat_sub(x_18, x_16); -lean_dec(x_18); -x_42 = lean_nat_add(x_2, x_16); -x_43 = lean_nat_dec_lt(x_19, x_42); -lean_dec(x_42); -if (x_43 == 0) -{ -lean_object* x_44; uint8_t x_45; -x_44 = lean_nat_sub(x_4, x_3); -x_45 = lean_nat_dec_le(x_44, x_19); -lean_dec(x_44); -if (x_45 == 0) -{ -lean_object* x_46; -x_46 = lean_box(0); -x_20 = x_46; -goto block_41; +lean_object* x_16; lean_object* x_17; +x_16 = lean_box(0); +x_17 = l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__6___lambda__2(x_1, x_2, x_3, x_6, x_7, x_16, x_9, x_10, x_11, x_12, x_13); +return x_17; } else { -uint8_t x_47; -x_47 = lean_nat_dec_le(x_19, x_4); -if (x_47 == 0) +uint8_t x_18; +x_18 = lean_nat_dec_le(x_2, x_4); +if (x_18 == 0) { -lean_object* x_48; -x_48 = lean_box(0); -x_20 = x_48; -goto block_41; +lean_object* x_19; lean_object* x_20; +x_19 = lean_box(0); +x_20 = l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__6___lambda__2(x_1, x_2, x_3, x_6, x_7, x_19, x_9, x_10, x_11, x_12, x_13); +return x_20; } else { -lean_dec(x_19); -x_7 = x_17; -goto _start; -} -} -} -else -{ -lean_dec(x_19); -x_7 = x_17; -goto _start; -} -block_41: -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; -lean_dec(x_20); -x_21 = lean_ctor_get(x_8, 0); -lean_inc(x_21); -x_22 = lean_ctor_get(x_8, 1); -lean_inc(x_22); -lean_dec(x_8); -x_23 = l_Lean_Expr_Inhabited; -x_24 = lean_array_get(x_23, x_1, x_19); -lean_dec(x_19); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -x_25 = l_Lean_Meta_inferType___at___private_Lean_Meta_InferType_1__inferAppType___spec__1(x_24, x_9, x_10, x_11, x_12, x_13); -if (lean_obj_tag(x_25) == 0) -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; -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); -x_28 = lean_alloc_closure((void*)(l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___spec__4___lambda__1___boxed), 10, 3); -lean_closure_set(x_28, 0, x_5); -lean_closure_set(x_28, 1, x_21); -lean_closure_set(x_28, 2, x_22); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -x_29 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNamesImp___spec__3___rarg(x_26, x_28, x_9, x_10, x_11, x_12, x_27); -if (lean_obj_tag(x_29) == 0) -{ -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_29, 1); -lean_inc(x_31); -lean_dec(x_29); -x_7 = x_17; -x_8 = x_30; -x_13 = x_31; -goto _start; -} -else -{ -uint8_t x_33; -lean_dec(x_17); +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -lean_dec(x_5); -x_33 = !lean_is_exclusive(x_29); -if (x_33 == 0) -{ -return x_29; -} -else -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; -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_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_34); -lean_ctor_set(x_36, 1, x_35); -return x_36; -} -} -} -else -{ -uint8_t x_37; -lean_dec(x_22); -lean_dec(x_21); -lean_dec(x_17); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_5); -x_37 = !lean_is_exclusive(x_25); -if (x_37 == 0) -{ -return x_25; -} -else -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_25, 0); -x_39 = lean_ctor_get(x_25, 1); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_25); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -return x_40; +lean_dec(x_3); +x_21 = lean_box(x_6); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_7); +x_23 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_23, 0, x_22); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_13); +return x_24; } } } } -else -{ -lean_object* x_51; -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_5); -x_51 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_51, 0, x_8); -lean_ctor_set(x_51, 1, x_13); -return x_51; -} -} -} -static lean_object* _init_l___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___closed__1() { +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___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, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { -lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Array_empty___closed__1; -x_2 = 0; -x_3 = lean_box(x_2); +lean_object* x_15; uint8_t x_16; +x_15 = lean_ctor_get(x_6, 1); +x_16 = lean_nat_dec_le(x_15, x_8); +if (x_16 == 0) +{ +lean_object* x_17; uint8_t x_18; +x_17 = lean_unsigned_to_nat(0u); +x_18 = lean_nat_dec_eq(x_7, x_17); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_19 = lean_unsigned_to_nat(1u); +x_20 = lean_nat_sub(x_7, x_19); +lean_dec(x_7); +x_21 = !lean_is_exclusive(x_9); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_22 = lean_ctor_get(x_9, 0); +x_23 = lean_ctor_get(x_9, 1); +x_24 = lean_nat_add(x_2, x_19); +x_25 = lean_nat_dec_lt(x_8, x_24); +lean_dec(x_24); +if (x_25 == 0) +{ +lean_object* x_26; uint8_t x_27; lean_object* x_28; +lean_free_object(x_9); +x_26 = lean_box(0); +x_27 = lean_unbox(x_22); +lean_dec(x_22); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_5); +x_28 = l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__6___lambda__3(x_1, x_8, x_5, x_4, x_3, x_27, x_23, x_26, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +if (lean_obj_tag(x_29) == 0) +{ +uint8_t x_30; +lean_dec(x_20); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_5); +x_30 = !lean_is_exclusive(x_28); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; +x_31 = lean_ctor_get(x_28, 0); +lean_dec(x_31); +x_32 = lean_ctor_get(x_29, 0); +lean_inc(x_32); +lean_dec(x_29); +lean_ctor_set(x_28, 0, x_32); +return x_28; +} +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_ctor_get(x_29, 0); +lean_inc(x_34); +lean_dec(x_29); +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; +} +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_36 = lean_ctor_get(x_28, 1); +lean_inc(x_36); +lean_dec(x_28); +x_37 = lean_ctor_get(x_29, 0); +lean_inc(x_37); +lean_dec(x_29); +x_38 = lean_ctor_get(x_6, 2); +x_39 = lean_nat_add(x_8, x_38); +lean_dec(x_8); +x_7 = x_20; +x_8 = x_39; +x_9 = x_37; +x_14 = x_36; +goto _start; +} +} +else +{ +uint8_t x_41; +lean_dec(x_20); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_5); +x_41 = !lean_is_exclusive(x_28); +if (x_41 == 0) +{ +return x_28; +} +else +{ +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 +{ +lean_object* x_45; lean_object* x_46; +x_45 = lean_ctor_get(x_6, 2); +x_46 = lean_nat_add(x_8, x_45); +lean_dec(x_8); +x_7 = x_20; +x_8 = x_46; +goto _start; +} +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; +x_48 = lean_ctor_get(x_9, 0); +x_49 = lean_ctor_get(x_9, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_9); +x_50 = lean_nat_add(x_2, x_19); +x_51 = lean_nat_dec_lt(x_8, x_50); +lean_dec(x_50); +if (x_51 == 0) +{ +lean_object* x_52; uint8_t x_53; lean_object* x_54; +x_52 = lean_box(0); +x_53 = lean_unbox(x_48); +lean_dec(x_48); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_5); +x_54 = l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__6___lambda__3(x_1, x_8, x_5, x_4, x_3, x_53, x_49, x_52, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_54) == 0) +{ +lean_object* x_55; +x_55 = lean_ctor_get(x_54, 0); +lean_inc(x_55); +if (lean_obj_tag(x_55) == 0) +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +lean_dec(x_20); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_5); +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); +} +x_58 = lean_ctor_get(x_55, 0); +lean_inc(x_58); +lean_dec(x_55); +if (lean_is_scalar(x_57)) { + x_59 = lean_alloc_ctor(0, 2, 0); +} else { + x_59 = x_57; +} +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_56); +return x_59; +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_60 = lean_ctor_get(x_54, 1); +lean_inc(x_60); +lean_dec(x_54); +x_61 = lean_ctor_get(x_55, 0); +lean_inc(x_61); +lean_dec(x_55); +x_62 = lean_ctor_get(x_6, 2); +x_63 = lean_nat_add(x_8, x_62); +lean_dec(x_8); +x_7 = x_20; +x_8 = x_63; +x_9 = x_61; +x_14 = x_60; +goto _start; +} +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +lean_dec(x_20); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_5); +x_65 = lean_ctor_get(x_54, 0); +lean_inc(x_65); +x_66 = lean_ctor_get(x_54, 1); +lean_inc(x_66); +if (lean_is_exclusive(x_54)) { + lean_ctor_release(x_54, 0); + lean_ctor_release(x_54, 1); + x_67 = x_54; +} else { + lean_dec_ref(x_54); + x_67 = lean_box(0); +} +if (lean_is_scalar(x_67)) { + x_68 = lean_alloc_ctor(1, 2, 0); +} else { + x_68 = x_67; +} +lean_ctor_set(x_68, 0, x_65); +lean_ctor_set(x_68, 1, x_66); +return x_68; +} +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_69, 0, x_48); +lean_ctor_set(x_69, 1, x_49); +x_70 = lean_ctor_get(x_6, 2); +x_71 = lean_nat_add(x_8, x_70); +lean_dec(x_8); +x_7 = x_20; +x_8 = x_71; +x_9 = x_69; +goto _start; +} +} +} +else +{ +lean_object* x_73; +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_5); +x_73 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_73, 0, x_9); +lean_ctor_set(x_73, 1, x_14); +return x_73; +} +} +else +{ +lean_object* x_74; +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_5); +x_74 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_74, 0, x_9); +lean_ctor_set(x_74, 1, x_14); +return x_74; +} +} +} +static lean_object* _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___closed__1() { +_start: +{ +uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = 0; +x_2 = l_Array_empty___closed__1; +x_3 = lean_box(x_1); x_4 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_4, 0, x_1); -lean_ctor_set(x_4, 1, x_3); +lean_ctor_set(x_4, 0, x_3); +lean_ctor_set(x_4, 1, x_2); return x_4; } } -lean_object* l___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; x_11 = lean_array_get_size(x_1); -x_12 = l___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___closed__1; +x_12 = lean_unsigned_to_nat(0u); +x_13 = lean_unsigned_to_nat(1u); lean_inc(x_11); -x_13 = l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___spec__4(x_1, x_2, x_3, x_4, x_5, x_11, x_11, x_12, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_11); -if (lean_obj_tag(x_13) == 0) +x_14 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_11); +lean_ctor_set(x_14, 2, x_13); +x_15 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___closed__1; +x_16 = l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__6(x_1, x_2, x_3, x_4, x_5, x_14, x_11, x_12, x_15, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_14); +if (lean_obj_tag(x_16) == 0) { -uint8_t x_14; -x_14 = !lean_is_exclusive(x_13); -if (x_14 == 0) +uint8_t x_17; +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) { -lean_object* x_15; uint8_t x_16; -x_15 = lean_ctor_get(x_13, 0); -x_16 = !lean_is_exclusive(x_15); -if (x_16 == 0) +lean_object* x_18; uint8_t x_19; +x_18 = lean_ctor_get(x_16, 0); +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) { -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_15, 0); -x_18 = l_Array_toList___rarg(x_17); -lean_dec(x_17); -lean_ctor_set(x_15, 0, x_18); -return x_13; +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_18, 0); +x_21 = lean_ctor_get(x_18, 1); +x_22 = l_Array_toList___rarg(x_21); +lean_dec(x_21); +lean_ctor_set(x_18, 1, x_20); +lean_ctor_set(x_18, 0, x_22); +return x_16; } else { -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_15, 0); -x_20 = lean_ctor_get(x_15, 1); -lean_inc(x_20); -lean_inc(x_19); -lean_dec(x_15); -x_21 = l_Array_toList___rarg(x_19); -lean_dec(x_19); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_20); -lean_ctor_set(x_13, 0, x_22); -return x_13; -} -} -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; -x_23 = lean_ctor_get(x_13, 0); -x_24 = lean_ctor_get(x_13, 1); +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_23 = lean_ctor_get(x_18, 0); +x_24 = lean_ctor_get(x_18, 1); lean_inc(x_24); lean_inc(x_23); -lean_dec(x_13); -x_25 = lean_ctor_get(x_23, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_23, 1); -lean_inc(x_26); -if (lean_is_exclusive(x_23)) { - lean_ctor_release(x_23, 0); - lean_ctor_release(x_23, 1); - x_27 = x_23; -} else { - lean_dec_ref(x_23); - x_27 = lean_box(0); -} -x_28 = l_Array_toList___rarg(x_25); -lean_dec(x_25); -if (lean_is_scalar(x_27)) { - x_29 = lean_alloc_ctor(0, 2, 0); -} else { - x_29 = x_27; -} -lean_ctor_set(x_29, 0, x_28); -lean_ctor_set(x_29, 1, x_26); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_24); -return x_30; +lean_dec(x_18); +x_25 = l_Array_toList___rarg(x_24); +lean_dec(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); +lean_ctor_set(x_16, 0, x_26); +return x_16; } } else { -uint8_t x_31; -x_31 = !lean_is_exclusive(x_13); -if (x_31 == 0) -{ -return x_13; +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_27 = lean_ctor_get(x_16, 0); +x_28 = lean_ctor_get(x_16, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_16); +x_29 = lean_ctor_get(x_27, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_27, 1); +lean_inc(x_30); +if (lean_is_exclusive(x_27)) { + lean_ctor_release(x_27, 0); + lean_ctor_release(x_27, 1); + x_31 = x_27; +} else { + lean_dec_ref(x_27); + x_31 = lean_box(0); } -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_13, 0); -x_33 = lean_ctor_get(x_13, 1); -lean_inc(x_33); -lean_inc(x_32); -lean_dec(x_13); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_32); -lean_ctor_set(x_34, 1, x_33); +x_32 = l_Array_toList___rarg(x_30); +lean_dec(x_30); +if (lean_is_scalar(x_31)) { + x_33 = lean_alloc_ctor(0, 2, 0); +} else { + x_33 = x_31; +} +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_29); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_28); return x_34; } } +else +{ +uint8_t x_35; +x_35 = !lean_is_exclusive(x_16); +if (x_35 == 0) +{ +return x_16; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_16, 0); +x_37 = lean_ctor_get(x_16, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_16); +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; } } -lean_object* l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +} +} +lean_object* l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { size_t x_5; lean_object* x_6; x_5 = lean_unbox_usize(x_2); lean_dec(x_2); -x_6 = l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___spec__1(x_1, x_5, x_3, x_4); +x_6 = l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__2(x_1, x_5, x_3, x_4); lean_dec(x_1); return x_6; } } -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___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* l_Array_anyRangeMAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___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, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; -x_11 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); @@ -5468,48 +7247,90 @@ lean_dec(x_1); return x_11; } } -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___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, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___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) { +_start: +{ +uint8_t x_8; lean_object* x_9; +x_8 = lean_unbox(x_2); +lean_dec(x_2); +x_9 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__4___lambda__1(x_1, x_8, 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); +return x_9; +} +} +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___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) { _start: { uint8_t x_13; lean_object* x_14; -x_13 = lean_unbox(x_3); -lean_dec(x_3); -x_14 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___spec__3(x_1, x_2, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_13 = lean_unbox(x_2); +lean_dec(x_2); +x_14 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__4(x_1, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec(x_4); lean_dec(x_1); return x_14; } } -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___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* l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__6___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_3); -lean_dec(x_3); -x_12 = l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___spec__4___lambda__1(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = lean_unbox(x_2); +lean_dec(x_2); +x_12 = l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__6___lambda__1(x_1, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_4); lean_dec(x_1); return x_12; } } -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___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* l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__6___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_14; -x_14 = l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___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); +uint8_t x_12; lean_object* x_13; +x_12 = lean_unbox(x_4); +lean_dec(x_4); +x_13 = l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__6___lambda__2(x_1, x_2, x_3, x_12, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +return x_13; +} +} +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__6___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_6); +lean_dec(x_6); +x_15 = l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__6___lambda__3(x_1, x_2, x_3, x_4, x_5, x_14, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_15; +} +} +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___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, 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_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__6(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_6); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -return x_14; +return x_15; } } -lean_object* l___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___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* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; -x_11 = l___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); @@ -5517,164 +7338,86 @@ lean_dec(x_1); return x_11; } } -static lean_object* _init_l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__1() { +static lean_object* _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotiveResultType___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string("', motive must have a type of the form "); +x_1 = lean_mk_string("', motive must have a type of the form (C : Pi (i : B A), I A i -> Type), where A is (possibly empty) sequence of variables (aka parameters), (i : B A) is a (possibly empty) telescope (aka indices), and I is a constant"); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__2() { +static lean_object* _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotiveResultType___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotiveResultType___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__3() { +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotiveResultType(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___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___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__4() { -_start: +uint8_t x_10; +x_10 = l_Lean_Expr_isSort(x_3); +if (x_10 == 0) { -lean_object* x_1; -x_1 = lean_mk_string("(C : Pi (i : B A), I A i -> Type), where A is (possibly empty) sequence of variables (aka parameters), "); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__4; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__5; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__7() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("(i : B A) is a (possibly empty) telescope (aka indices), and I is a constant"); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__7; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__9() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__8; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; uint8_t x_25; -x_25 = l_Lean_Expr_isSort(x_3); -if (x_25 == 0) -{ -lean_object* x_26; -x_26 = lean_box(0); -x_10 = x_26; -goto block_24; -} -else -{ -lean_object* x_27; lean_object* x_28; uint8_t x_29; -x_27 = lean_array_get_size(x_2); -x_28 = lean_array_get_size(x_4); -x_29 = lean_nat_dec_eq(x_27, x_28); -lean_dec(x_28); -lean_dec(x_27); -if (x_29 == 0) -{ -lean_object* x_30; -x_30 = lean_box(0); -x_10 = x_30; -goto block_24; -} -else -{ -lean_object* x_31; lean_object* x_32; -lean_dec(x_1); -x_31 = lean_box(0); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_9); -return x_32; -} -} -block_24: -{ -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_dec(x_10); -x_11 = l_System_FilePath_dirName___closed__1; -x_12 = l_Lean_Name_toStringWithSep___main(x_11, x_1); -x_13 = lean_alloc_ctor(2, 1, 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_alloc_ctor(4, 1, 0); +lean_ctor_set(x_11, 0, x_1); +x_12 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__2; +x_13 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_13, 0, x_12); -x_14 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_14, 0, x_13); -x_15 = l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__3; -x_16 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_14); -x_17 = l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__3; -x_18 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_18, 0, x_16); -lean_ctor_set(x_18, 1, x_17); -x_19 = l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__6; -x_20 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_20, 0, x_18); -lean_ctor_set(x_20, 1, x_19); -x_21 = l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__9; +lean_ctor_set(x_13, 1, x_11); +x_14 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotiveResultType___closed__2; +x_15 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_15, 0, x_13); +lean_ctor_set(x_15, 1, x_14); +x_16 = l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3___rarg(x_15, x_5, x_6, x_7, x_8, x_9); +return x_16; +} +else +{ +lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_17 = lean_array_get_size(x_2); +x_18 = lean_array_get_size(x_4); +x_19 = lean_nat_dec_eq(x_17, x_18); +lean_dec(x_18); +lean_dec(x_17); +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; +x_20 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_20, 0, x_1); +x_21 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__2; x_22 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_22, 0, x_20); -lean_ctor_set(x_22, 1, x_21); -x_23 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_22, x_5, x_6, x_7, x_8, x_9); -return x_23; +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_20); +x_23 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotiveResultType___closed__2; +x_24 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +x_25 = l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3___rarg(x_24, x_5, x_6, x_7, x_8, x_9); +return x_25; +} +else +{ +lean_object* x_26; lean_object* x_27; +lean_dec(x_1); +x_26 = lean_box(0); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_9); +return x_27; } } } -lean_object* l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +} +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotiveResultType___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___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotiveResultType(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); @@ -5685,12 +7428,93 @@ lean_dec(x_2); return x_10; } } -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___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, uint8_t 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* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux_match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux_match__1___rarg), 2, 0); +return x_2; +} +} +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 4) +{ +lean_object* x_4; lean_object* x_5; uint64_t x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +x_6 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +lean_dec(x_1); +x_7 = lean_box_uint64(x_6); +x_8 = lean_apply_3(x_2, x_4, x_5, x_7); +return x_8; +} +else +{ +lean_object* x_9; +lean_dec(x_2); +x_9 = lean_apply_1(x_3, x_1); +return x_9; +} +} +} +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux_match__3___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; lean_object* x_7; +x_3 = lean_ctor_get(x_1, 1); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_3, 1); +lean_inc(x_6); +lean_dec(x_3); +x_7 = lean_apply_3(x_2, x_4, x_5, x_6); +return x_7; +} +} +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux_match__3___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___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, uint8_t 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) { _start: { lean_object* x_21; lean_inc(x_1); -x_21 = l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType(x_1, x_2, x_15, x_14, x_16, x_17, x_18, x_19, x_20); +x_21 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotiveResultType(x_1, x_2, x_15, x_14, 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; @@ -5698,7 +7522,7 @@ x_22 = lean_ctor_get(x_21, 1); lean_inc(x_22); lean_dec(x_21); lean_inc(x_1); -x_23 = l___private_Lean_Meta_RecursorInfo_8__getMotiveLevel(x_1, x_15, x_16, x_17, x_18, x_19, x_22); +x_23 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMotiveLevel(x_1, x_15, x_16, x_17, x_18, x_19, x_22); if (lean_obj_tag(x_23) == 0) { lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; @@ -5709,7 +7533,7 @@ lean_inc(x_25); lean_dec(x_23); x_26 = l_Lean_ConstantInfo_lparams(x_3); lean_inc(x_1); -x_27 = l___private_Lean_Meta_RecursorInfo_9__getUnivLevelPos(x_1, x_26, x_24, x_4, x_16, x_17, x_18, x_19, x_25); +x_27 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getUnivLevelPos(x_1, x_26, x_24, x_4, x_16, x_17, x_18, x_19, x_25); lean_dec(x_24); if (lean_obj_tag(x_27) == 0) { @@ -5719,7 +7543,7 @@ lean_inc(x_28); x_29 = lean_ctor_get(x_27, 1); lean_inc(x_29); lean_dec(x_27); -x_30 = l___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive(x_5, x_6, x_7, x_8, x_9, x_16, x_17, x_18, x_19, x_29); +x_30 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive(x_5, x_6, x_7, x_8, x_9, x_16, x_17, x_18, x_19, x_29); if (lean_obj_tag(x_30) == 0) { uint8_t x_31; @@ -5914,7 +7738,7 @@ return x_61; } } } -static lean_object* _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__1___closed__1() { +static lean_object* _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__1___closed__1() { _start: { lean_object* x_1; @@ -5922,27 +7746,16 @@ x_1 = lean_mk_string("', type of the major premise must be of the form (I ...), return x_1; } } -static lean_object* _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__1___closed__2() { +static lean_object* _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__1___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__1___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__1___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__1___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___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, 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* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___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, 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) { _start: { switch (lean_obj_tag(x_10)) { @@ -5961,7 +7774,7 @@ lean_inc(x_14); lean_inc(x_13); lean_inc(x_6); lean_inc(x_2); -x_20 = l___private_Lean_Meta_RecursorInfo_6__getParamsPos(x_2, x_3, x_6, x_11, x_13, x_14, x_15, x_16, x_17); +x_20 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos(x_2, x_3, x_6, x_11, x_13, x_14, x_15, x_16, x_17); if (lean_obj_tag(x_20) == 0) { lean_object* x_21; lean_object* x_22; lean_object* x_23; @@ -5976,7 +7789,7 @@ lean_inc(x_14); lean_inc(x_13); lean_inc(x_9); lean_inc(x_2); -x_23 = l___private_Lean_Meta_RecursorInfo_7__getIndicesPos(x_2, x_3, x_7, x_9, x_11, x_13, x_14, x_15, x_16, x_22); +x_23 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getIndicesPos(x_2, x_3, x_7, x_9, x_11, x_13, x_14, x_15, x_16, x_22); lean_dec(x_11); if (lean_obj_tag(x_23) == 0) { @@ -5991,7 +7804,7 @@ lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_4); -x_26 = l_Lean_Meta_inferType___at___private_Lean_Meta_InferType_1__inferAppType___spec__1(x_4, x_13, x_14, x_15, x_16, x_25); +x_26 = l_Lean_Meta_inferType___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__1(x_4, x_13, x_14, x_15, x_16, x_25); 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; @@ -6001,7 +7814,7 @@ x_28 = lean_ctor_get(x_26, 1); lean_inc(x_28); lean_dec(x_26); x_29 = lean_box(x_8); -x_30 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__1___lambda__1___boxed), 20, 13); +x_30 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__1___lambda__1___boxed), 20, 13); lean_closure_set(x_30, 0, x_2); lean_closure_set(x_30, 1, x_5); lean_closure_set(x_30, 2, x_1); @@ -6015,7 +7828,7 @@ lean_closure_set(x_30, 9, x_18); lean_closure_set(x_30, 10, x_29); lean_closure_set(x_30, 11, x_21); lean_closure_set(x_30, 12, x_24); -x_31 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNamesImp___spec__3___rarg(x_27, x_30, x_13, x_14, x_15, x_16, x_28); +x_31 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__5___rarg(x_27, x_30, x_13, x_14, x_15, x_16, x_28); return x_31; } else @@ -6152,7 +7965,7 @@ goto _start; } default: { -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_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -6163,268 +7976,91 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_50 = l_System_FilePath_dirName___closed__1; -x_51 = l_Lean_Name_toStringWithSep___main(x_50, x_2); -x_52 = lean_alloc_ctor(2, 1, 0); +x_50 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_50, 0, x_2); +x_51 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__2; +x_52 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_52, 0, x_51); -x_53 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_53, 0, x_52); -x_54 = l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__3; -x_55 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_55, 0, x_54); -lean_ctor_set(x_55, 1, x_53); -x_56 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__1___closed__3; -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_mkWHNFRef___spec__1___rarg(x_57, x_13, x_14, x_15, x_16, x_17); +lean_ctor_set(x_52, 1, x_50); +x_53 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__1___closed__2; +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 = l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3___rarg(x_54, x_13, x_14, x_15, x_16, x_17); lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); -return x_58; +return x_55; } } } } -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___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, 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* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___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, uint8_t 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: { -switch (lean_obj_tag(x_11)) { -case 4: +lean_object* x_17; +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +x_17 = l_Lean_Meta_inferType___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__1(x_1, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_17) == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; -lean_dec(x_13); -lean_dec(x_10); -x_19 = lean_ctor_get(x_11, 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; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); lean_inc(x_19); -x_20 = lean_ctor_get(x_11, 1); -lean_inc(x_20); -lean_dec(x_11); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_6); -lean_inc(x_2); -x_21 = l___private_Lean_Meta_RecursorInfo_6__getParamsPos(x_2, x_3, x_6, x_12, x_14, x_15, x_16, x_17, x_18); -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_21, 0); -lean_inc(x_22); -x_23 = lean_ctor_get(x_21, 1); -lean_inc(x_23); +lean_dec(x_17); +x_20 = lean_unsigned_to_nat(0u); +x_21 = l_Lean_Expr_getAppNumArgsAux___main(x_18, x_20); +x_22 = l_Lean_Expr_getAppArgs___closed__1; +lean_inc(x_21); +x_23 = lean_mk_array(x_21, x_22); +x_24 = lean_unsigned_to_nat(1u); +x_25 = lean_nat_sub(x_21, x_24); lean_dec(x_21); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_9); -lean_inc(x_2); -x_24 = l___private_Lean_Meta_RecursorInfo_7__getIndicesPos(x_2, x_3, x_7, x_9, x_12, x_14, x_15, x_16, x_17, x_23); +x_26 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__1(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_18, x_23, x_25, x_12, x_13, x_14, x_15, x_19); +return x_26; +} +else +{ +uint8_t x_27; +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); lean_dec(x_12); -if (lean_obj_tag(x_24) == 0) +lean_dec(x_10); +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_27 = !lean_is_exclusive(x_17); +if (x_27 == 0) { -lean_object* x_25; lean_object* x_26; lean_object* x_27; -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); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_4); -x_27 = l_Lean_Meta_inferType___at___private_Lean_Meta_InferType_1__inferAppType___spec__1(x_4, x_14, x_15, x_16, x_17, x_26); -if (lean_obj_tag(x_27) == 0) +return x_17; +} +else { -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_27, 0); -lean_inc(x_28); -x_29 = lean_ctor_get(x_27, 1); +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_17, 0); +x_29 = lean_ctor_get(x_17, 1); lean_inc(x_29); -lean_dec(x_27); -x_30 = lean_box(x_8); -x_31 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__1___lambda__1___boxed), 20, 13); -lean_closure_set(x_31, 0, x_2); -lean_closure_set(x_31, 1, x_5); -lean_closure_set(x_31, 2, x_1); -lean_closure_set(x_31, 3, x_20); -lean_closure_set(x_31, 4, x_3); -lean_closure_set(x_31, 5, x_6); -lean_closure_set(x_31, 6, x_9); -lean_closure_set(x_31, 7, x_7); -lean_closure_set(x_31, 8, x_4); -lean_closure_set(x_31, 9, x_19); -lean_closure_set(x_31, 10, x_30); -lean_closure_set(x_31, 11, x_22); -lean_closure_set(x_31, 12, x_25); -x_32 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNamesImp___spec__3___rarg(x_28, x_31, x_14, x_15, x_16, x_17, x_29); -return x_32; -} -else -{ -uint8_t x_33; -lean_dec(x_25); -lean_dec(x_22); -lean_dec(x_20); -lean_dec(x_19); +lean_inc(x_28); lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -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_2); -lean_dec(x_1); -x_33 = !lean_is_exclusive(x_27); -if (x_33 == 0) -{ -return x_27; -} -else -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_27, 0); -x_35 = lean_ctor_get(x_27, 1); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_27); -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; -} -} -} -else -{ -uint8_t x_37; -lean_dec(x_22); -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -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_2); -lean_dec(x_1); -x_37 = !lean_is_exclusive(x_24); -if (x_37 == 0) -{ -return x_24; -} -else -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_24, 0); -x_39 = lean_ctor_get(x_24, 1); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_24); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -return x_40; -} -} -} -else -{ -uint8_t x_41; -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_12); -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_2); -lean_dec(x_1); -x_41 = !lean_is_exclusive(x_21); -if (x_41 == 0) -{ -return x_21; -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_21, 0); -x_43 = lean_ctor_get(x_21, 1); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_21); -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; -} -} -} -case 5: -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_45 = lean_ctor_get(x_11, 0); -lean_inc(x_45); -x_46 = lean_ctor_get(x_11, 1); -lean_inc(x_46); -lean_dec(x_11); -x_47 = lean_array_set(x_12, x_13, x_46); -x_48 = lean_unsigned_to_nat(1u); -x_49 = lean_nat_sub(x_13, x_48); -lean_dec(x_13); -x_11 = x_45; -x_12 = x_47; -x_13 = x_49; -goto _start; -} -default: -{ -lean_object* x_51; lean_object* x_52; lean_object* x_53; -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -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_2); -lean_dec(x_1); -x_51 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__1___closed__3; -x_52 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_52, 0, x_10); -lean_ctor_set(x_52, 1, x_51); -x_53 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_52, x_14, x_15, x_16, x_17, x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -return x_53; +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; } } } } -static lean_object* _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__3___closed__1() { +static lean_object* _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__2___closed__1() { _start: { lean_object* x_1; @@ -6432,27 +8068,16 @@ x_1 = lean_mk_string("', indices must occur before major premise"); return x_1; } } -static lean_object* _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__3___closed__2() { +static lean_object* _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__3___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__2___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__3___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__3___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___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, lean_object* x_12) { +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___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) { _start: { switch (lean_obj_tag(x_5)) { @@ -6461,7 +8086,7 @@ case 0: lean_object* x_13; lean_dec(x_7); lean_inc(x_2); -x_13 = l___private_Lean_Meta_RecursorInfo_3__checkMotive(x_2, x_5, x_6, x_8, x_9, x_10, x_11, x_12); +x_13 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive(x_2, x_5, x_6, 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; @@ -6469,12 +8094,12 @@ x_14 = lean_ctor_get(x_13, 1); lean_inc(x_14); lean_dec(x_13); x_15 = lean_unsigned_to_nat(0u); -x_16 = l___private_Lean_Meta_RecursorInfo_4__getNumParams___main(x_4, x_5, x_15); +x_16 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getNumParams(x_4, x_5, x_15); lean_inc(x_2); -x_17 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim(x_2, x_3, x_4, x_5, x_6, x_8, x_9, x_10, x_11, x_14); +x_17 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim(x_2, x_3, x_4, x_5, x_6, x_8, x_9, x_10, x_11, x_14); 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; uint8_t x_54; +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; uint8_t x_40; x_18 = lean_ctor_get(x_17, 0); lean_inc(x_18); x_19 = lean_ctor_get(x_18, 1); @@ -6490,95 +8115,40 @@ lean_inc(x_22); x_23 = lean_ctor_get(x_19, 1); lean_inc(x_23); lean_dec(x_19); -x_54 = lean_unbox(x_23); -if (x_54 == 0) +x_40 = lean_unbox(x_23); +if (x_40 == 0) { -lean_object* x_55; -x_55 = lean_array_get_size(x_6); -x_24 = x_55; -goto block_53; +lean_object* x_41; +x_41 = lean_array_get_size(x_6); +x_24 = x_41; +goto block_39; } else { -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_array_get_size(x_6); -x_57 = lean_unsigned_to_nat(1u); -x_58 = lean_nat_sub(x_56, x_57); -lean_dec(x_56); -x_24 = x_58; -goto block_53; +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_array_get_size(x_6); +x_43 = lean_unsigned_to_nat(1u); +x_44 = lean_nat_sub(x_42, x_43); +lean_dec(x_42); +x_24 = x_44; +goto block_39; } -block_53: +block_39: { uint8_t x_25; x_25 = lean_nat_dec_lt(x_22, x_24); if (x_25 == 0) { -lean_object* x_26; -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_26 = l_Lean_Meta_inferType___at___private_Lean_Meta_InferType_1__inferAppType___spec__1(x_21, x_8, x_9, x_10, x_11, x_20); -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; uint8_t x_34; lean_object* x_35; -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_Expr_getAppNumArgsAux___main(x_27, x_15); -x_30 = l_Lean_Expr_getAppArgs___closed__1; -lean_inc(x_29); -x_31 = lean_mk_array(x_29, x_30); -x_32 = lean_unsigned_to_nat(1u); -x_33 = lean_nat_sub(x_29, x_32); -lean_dec(x_29); -x_34 = lean_unbox(x_23); +lean_object* x_26; uint8_t x_27; lean_object* x_28; +x_26 = lean_box(0); +x_27 = lean_unbox(x_23); lean_dec(x_23); -x_35 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__1(x_1, x_2, x_4, x_5, x_6, x_16, x_22, x_34, x_24, x_27, x_31, x_33, x_8, x_9, x_10, x_11, x_28); -return x_35; +x_28 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__2___lambda__1(x_21, x_1, x_2, x_4, x_5, x_6, x_16, x_22, x_27, x_24, x_26, x_8, x_9, x_10, x_11, x_20); +return x_28; } else { -uint8_t x_36; -lean_dec(x_24); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_16); -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_36 = !lean_is_exclusive(x_26); -if (x_36 == 0) -{ -return x_26; -} -else -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_26, 0); -x_38 = lean_ctor_get(x_26, 1); -lean_inc(x_38); -lean_inc(x_37); -lean_dec(x_26); -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_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; uint8_t x_49; +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_dec(x_24); lean_dec(x_23); lean_dec(x_22); @@ -6588,49 +8158,45 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_40 = l_System_FilePath_dirName___closed__1; -x_41 = l_Lean_Name_toStringWithSep___main(x_40, x_2); -x_42 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_42, 0, x_41); -x_43 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_43, 0, x_42); -x_44 = l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__3; -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_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__3___closed__3; -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_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_47, x_8, x_9, x_10, x_11, x_20); +x_29 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_29, 0, x_2); +x_30 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__2; +x_31 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_29); +x_32 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__2___closed__2; +x_33 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_33, 0, x_31); +lean_ctor_set(x_33, 1, x_32); +x_34 = l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3___rarg(x_33, x_8, x_9, x_10, x_11, x_20); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -x_49 = !lean_is_exclusive(x_48); -if (x_49 == 0) +x_35 = !lean_is_exclusive(x_34); +if (x_35 == 0) { -return x_48; +return x_34; } else { -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); -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; +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_34, 0); +x_37 = lean_ctor_get(x_34, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_34); +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_59; +uint8_t x_45; lean_dec(x_16); lean_dec(x_11); lean_dec(x_10); @@ -6641,29 +8207,29 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_59 = !lean_is_exclusive(x_17); -if (x_59 == 0) +x_45 = !lean_is_exclusive(x_17); +if (x_45 == 0) { return x_17; } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_17, 0); -x_61 = lean_ctor_get(x_17, 1); -lean_inc(x_61); -lean_inc(x_60); +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_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; +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_63; +uint8_t x_49; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -6673,117 +8239,143 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_63 = !lean_is_exclusive(x_13); -if (x_63 == 0) +x_49 = !lean_is_exclusive(x_13); +if (x_49 == 0) { return x_13; } else { -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_13, 0); -x_65 = lean_ctor_get(x_13, 1); -lean_inc(x_65); -lean_inc(x_64); +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_13, 0); +x_51 = lean_ctor_get(x_13, 1); +lean_inc(x_51); +lean_inc(x_50); lean_dec(x_13); -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; +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; } } } case 1: { -lean_object* x_67; +lean_object* x_53; lean_dec(x_7); lean_inc(x_2); -x_67 = l___private_Lean_Meta_RecursorInfo_3__checkMotive(x_2, x_5, x_6, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_67) == 0) +x_53 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive(x_2, x_5, x_6, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_53) == 0) { -lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_68 = lean_ctor_get(x_67, 1); -lean_inc(x_68); -lean_dec(x_67); -x_69 = lean_unsigned_to_nat(0u); -x_70 = l___private_Lean_Meta_RecursorInfo_4__getNumParams___main(x_4, x_5, x_69); +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_54 = lean_ctor_get(x_53, 1); +lean_inc(x_54); +lean_dec(x_53); +x_55 = lean_unsigned_to_nat(0u); +x_56 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getNumParams(x_4, x_5, x_55); lean_inc(x_2); -x_71 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim(x_2, x_3, x_4, x_5, x_6, x_8, x_9, x_10, x_11, x_68); -if (lean_obj_tag(x_71) == 0) +x_57 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim(x_2, x_3, x_4, x_5, x_6, x_8, x_9, x_10, x_11, x_54); +if (lean_obj_tag(x_57) == 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; lean_object* x_78; uint8_t x_108; -x_72 = lean_ctor_get(x_71, 0); -lean_inc(x_72); -x_73 = lean_ctor_get(x_72, 1); -lean_inc(x_73); -x_74 = lean_ctor_get(x_71, 1); -lean_inc(x_74); -lean_dec(x_71); -x_75 = lean_ctor_get(x_72, 0); -lean_inc(x_75); -lean_dec(x_72); -x_76 = lean_ctor_get(x_73, 0); -lean_inc(x_76); -x_77 = lean_ctor_get(x_73, 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; uint8_t x_80; +x_58 = lean_ctor_get(x_57, 0); +lean_inc(x_58); +x_59 = lean_ctor_get(x_58, 1); +lean_inc(x_59); +x_60 = lean_ctor_get(x_57, 1); +lean_inc(x_60); +lean_dec(x_57); +x_61 = lean_ctor_get(x_58, 0); +lean_inc(x_61); +lean_dec(x_58); +x_62 = lean_ctor_get(x_59, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_59, 1); +lean_inc(x_63); +lean_dec(x_59); +x_80 = lean_unbox(x_63); +if (x_80 == 0) +{ +lean_object* x_81; +x_81 = lean_array_get_size(x_6); +x_64 = x_81; +goto block_79; +} +else +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_82 = lean_array_get_size(x_6); +x_83 = lean_unsigned_to_nat(1u); +x_84 = lean_nat_sub(x_82, x_83); +lean_dec(x_82); +x_64 = x_84; +goto block_79; +} +block_79: +{ +uint8_t x_65; +x_65 = lean_nat_dec_lt(x_62, x_64); +if (x_65 == 0) +{ +lean_object* x_66; uint8_t x_67; lean_object* x_68; +x_66 = lean_box(0); +x_67 = lean_unbox(x_63); +lean_dec(x_63); +x_68 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__2___lambda__1(x_61, x_1, x_2, x_4, x_5, x_6, x_56, x_62, x_67, x_64, x_66, x_8, x_9, x_10, x_11, x_60); +return x_68; +} +else +{ +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_dec(x_64); +lean_dec(x_63); +lean_dec(x_62); +lean_dec(x_61); +lean_dec(x_56); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_69 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_69, 0, x_2); +x_70 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__2; +x_71 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_71, 0, x_70); +lean_ctor_set(x_71, 1, x_69); +x_72 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__2___closed__2; +x_73 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_73, 0, x_71); +lean_ctor_set(x_73, 1, x_72); +x_74 = l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3___rarg(x_73, x_8, x_9, x_10, x_11, x_60); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_75 = !lean_is_exclusive(x_74); +if (x_75 == 0) +{ +return x_74; +} +else +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_76 = lean_ctor_get(x_74, 0); +x_77 = lean_ctor_get(x_74, 1); lean_inc(x_77); -lean_dec(x_73); -x_108 = lean_unbox(x_77); -if (x_108 == 0) -{ -lean_object* x_109; -x_109 = lean_array_get_size(x_6); -x_78 = x_109; -goto block_107; +lean_inc(x_76); +lean_dec(x_74); +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_110; lean_object* x_111; lean_object* x_112; -x_110 = lean_array_get_size(x_6); -x_111 = lean_unsigned_to_nat(1u); -x_112 = lean_nat_sub(x_110, x_111); -lean_dec(x_110); -x_78 = x_112; -goto block_107; -} -block_107: -{ -uint8_t x_79; -x_79 = lean_nat_dec_lt(x_76, x_78); -if (x_79 == 0) -{ -lean_object* x_80; -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_80 = l_Lean_Meta_inferType___at___private_Lean_Meta_InferType_1__inferAppType___spec__1(x_75, x_8, x_9, x_10, x_11, x_74); -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; uint8_t x_88; lean_object* x_89; -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_Expr_getAppNumArgsAux___main(x_81, x_69); -x_84 = l_Lean_Expr_getAppArgs___closed__1; -lean_inc(x_83); -x_85 = lean_mk_array(x_83, x_84); -x_86 = lean_unsigned_to_nat(1u); -x_87 = lean_nat_sub(x_83, x_86); -lean_dec(x_83); -x_88 = lean_unbox(x_77); -lean_dec(x_77); -x_89 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__1(x_1, x_2, x_4, x_5, x_6, x_70, x_76, x_88, x_78, x_81, x_85, x_87, x_8, x_9, x_10, x_11, x_82); -return x_89; -} -else -{ -uint8_t x_90; -lean_dec(x_78); -lean_dec(x_77); -lean_dec(x_76); -lean_dec(x_70); +uint8_t x_85; +lean_dec(x_56); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -6793,471 +8385,353 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_90 = !lean_is_exclusive(x_80); -if (x_90 == 0) +x_85 = !lean_is_exclusive(x_57); +if (x_85 == 0) { -return x_80; +return x_57; } else { -lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_91 = lean_ctor_get(x_80, 0); -x_92 = lean_ctor_get(x_80, 1); -lean_inc(x_92); +lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_86 = lean_ctor_get(x_57, 0); +x_87 = lean_ctor_get(x_57, 1); +lean_inc(x_87); +lean_inc(x_86); +lean_dec(x_57); +x_88 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_88, 0, x_86); +lean_ctor_set(x_88, 1, x_87); +return x_88; +} +} +} +else +{ +uint8_t x_89; +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_89 = !lean_is_exclusive(x_53); +if (x_89 == 0) +{ +return x_53; +} +else +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; +x_90 = lean_ctor_get(x_53, 0); +x_91 = lean_ctor_get(x_53, 1); lean_inc(x_91); -lean_dec(x_80); -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 -{ -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; uint8_t x_103; -lean_dec(x_78); -lean_dec(x_77); -lean_dec(x_76); -lean_dec(x_75); -lean_dec(x_70); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_94 = l_System_FilePath_dirName___closed__1; -x_95 = l_Lean_Name_toStringWithSep___main(x_94, x_2); -x_96 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_96, 0, x_95); -x_97 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_97, 0, x_96); -x_98 = l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__3; -x_99 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_99, 0, x_98); -lean_ctor_set(x_99, 1, x_97); -x_100 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__3___closed__3; -x_101 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_101, 0, x_99); -lean_ctor_set(x_101, 1, x_100); -x_102 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_101, x_8, x_9, x_10, x_11, x_74); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_103 = !lean_is_exclusive(x_102); -if (x_103 == 0) -{ -return x_102; -} -else -{ -lean_object* x_104; lean_object* x_105; lean_object* x_106; -x_104 = lean_ctor_get(x_102, 0); -x_105 = lean_ctor_get(x_102, 1); -lean_inc(x_105); -lean_inc(x_104); -lean_dec(x_102); -x_106 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_106, 0, x_104); -lean_ctor_set(x_106, 1, x_105); -return x_106; -} -} -} -} -else -{ -uint8_t x_113; -lean_dec(x_70); -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_113 = !lean_is_exclusive(x_71); -if (x_113 == 0) -{ -return x_71; -} -else -{ -lean_object* x_114; lean_object* x_115; lean_object* x_116; -x_114 = lean_ctor_get(x_71, 0); -x_115 = lean_ctor_get(x_71, 1); -lean_inc(x_115); -lean_inc(x_114); -lean_dec(x_71); -x_116 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_116, 0, x_114); -lean_ctor_set(x_116, 1, x_115); -return x_116; -} -} -} -else -{ -uint8_t x_117; -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_117 = !lean_is_exclusive(x_67); -if (x_117 == 0) -{ -return x_67; -} -else -{ -lean_object* x_118; lean_object* x_119; lean_object* x_120; -x_118 = lean_ctor_get(x_67, 0); -x_119 = lean_ctor_get(x_67, 1); -lean_inc(x_119); -lean_inc(x_118); -lean_dec(x_67); -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; +lean_inc(x_90); +lean_dec(x_53); +x_92 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_92, 0, x_90); +lean_ctor_set(x_92, 1, x_91); +return x_92; } } } case 2: { -lean_object* x_121; +lean_object* x_93; lean_dec(x_7); lean_inc(x_2); -x_121 = l___private_Lean_Meta_RecursorInfo_3__checkMotive(x_2, x_5, x_6, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_121) == 0) +x_93 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive(x_2, x_5, x_6, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_93) == 0) { -lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; -x_122 = lean_ctor_get(x_121, 1); -lean_inc(x_122); -lean_dec(x_121); -x_123 = lean_unsigned_to_nat(0u); -x_124 = l___private_Lean_Meta_RecursorInfo_4__getNumParams___main(x_4, x_5, x_123); +lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_94 = lean_ctor_get(x_93, 1); +lean_inc(x_94); +lean_dec(x_93); +x_95 = lean_unsigned_to_nat(0u); +x_96 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getNumParams(x_4, x_5, x_95); lean_inc(x_2); -x_125 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim(x_2, x_3, x_4, x_5, x_6, x_8, x_9, x_10, x_11, x_122); -if (lean_obj_tag(x_125) == 0) +x_97 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim(x_2, x_3, x_4, x_5, x_6, x_8, x_9, x_10, x_11, x_94); +if (lean_obj_tag(x_97) == 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; uint8_t x_162; -x_126 = lean_ctor_get(x_125, 0); -lean_inc(x_126); -x_127 = lean_ctor_get(x_126, 1); +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; uint8_t x_120; +x_98 = lean_ctor_get(x_97, 0); +lean_inc(x_98); +x_99 = lean_ctor_get(x_98, 1); +lean_inc(x_99); +x_100 = lean_ctor_get(x_97, 1); +lean_inc(x_100); +lean_dec(x_97); +x_101 = lean_ctor_get(x_98, 0); +lean_inc(x_101); +lean_dec(x_98); +x_102 = lean_ctor_get(x_99, 0); +lean_inc(x_102); +x_103 = lean_ctor_get(x_99, 1); +lean_inc(x_103); +lean_dec(x_99); +x_120 = lean_unbox(x_103); +if (x_120 == 0) +{ +lean_object* x_121; +x_121 = lean_array_get_size(x_6); +x_104 = x_121; +goto block_119; +} +else +{ +lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_122 = lean_array_get_size(x_6); +x_123 = lean_unsigned_to_nat(1u); +x_124 = lean_nat_sub(x_122, x_123); +lean_dec(x_122); +x_104 = x_124; +goto block_119; +} +block_119: +{ +uint8_t x_105; +x_105 = lean_nat_dec_lt(x_102, x_104); +if (x_105 == 0) +{ +lean_object* x_106; uint8_t x_107; lean_object* x_108; +x_106 = lean_box(0); +x_107 = lean_unbox(x_103); +lean_dec(x_103); +x_108 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__2___lambda__1(x_101, x_1, x_2, x_4, x_5, x_6, x_96, x_102, x_107, x_104, x_106, x_8, x_9, x_10, x_11, x_100); +return x_108; +} +else +{ +lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; +lean_dec(x_104); +lean_dec(x_103); +lean_dec(x_102); +lean_dec(x_101); +lean_dec(x_96); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_109 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_109, 0, x_2); +x_110 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__2; +x_111 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_109); +x_112 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__2___closed__2; +x_113 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_113, 0, x_111); +lean_ctor_set(x_113, 1, x_112); +x_114 = l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3___rarg(x_113, x_8, x_9, x_10, x_11, x_100); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_115 = !lean_is_exclusive(x_114); +if (x_115 == 0) +{ +return x_114; +} +else +{ +lean_object* x_116; lean_object* x_117; lean_object* x_118; +x_116 = lean_ctor_get(x_114, 0); +x_117 = lean_ctor_get(x_114, 1); +lean_inc(x_117); +lean_inc(x_116); +lean_dec(x_114); +x_118 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_118, 0, x_116); +lean_ctor_set(x_118, 1, x_117); +return x_118; +} +} +} +} +else +{ +uint8_t x_125; +lean_dec(x_96); +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_125 = !lean_is_exclusive(x_97); +if (x_125 == 0) +{ +return x_97; +} +else +{ +lean_object* x_126; lean_object* x_127; lean_object* x_128; +x_126 = lean_ctor_get(x_97, 0); +x_127 = lean_ctor_get(x_97, 1); lean_inc(x_127); -x_128 = lean_ctor_get(x_125, 1); -lean_inc(x_128); -lean_dec(x_125); -x_129 = lean_ctor_get(x_126, 0); -lean_inc(x_129); -lean_dec(x_126); -x_130 = lean_ctor_get(x_127, 0); -lean_inc(x_130); -x_131 = lean_ctor_get(x_127, 1); +lean_inc(x_126); +lean_dec(x_97); +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_129; +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_129 = !lean_is_exclusive(x_93); +if (x_129 == 0) +{ +return x_93; +} +else +{ +lean_object* x_130; lean_object* x_131; lean_object* x_132; +x_130 = lean_ctor_get(x_93, 0); +x_131 = lean_ctor_get(x_93, 1); lean_inc(x_131); -lean_dec(x_127); -x_162 = lean_unbox(x_131); -if (x_162 == 0) -{ -lean_object* x_163; -x_163 = lean_array_get_size(x_6); -x_132 = x_163; -goto block_161; -} -else -{ -lean_object* x_164; lean_object* x_165; lean_object* x_166; -x_164 = lean_array_get_size(x_6); -x_165 = lean_unsigned_to_nat(1u); -x_166 = lean_nat_sub(x_164, x_165); -lean_dec(x_164); -x_132 = x_166; -goto block_161; -} -block_161: -{ -uint8_t x_133; -x_133 = lean_nat_dec_lt(x_130, x_132); -if (x_133 == 0) -{ -lean_object* x_134; -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_134 = l_Lean_Meta_inferType___at___private_Lean_Meta_InferType_1__inferAppType___spec__1(x_129, x_8, x_9, x_10, x_11, x_128); -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; lean_object* x_141; uint8_t x_142; lean_object* x_143; -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 = l_Lean_Expr_getAppNumArgsAux___main(x_135, x_123); -x_138 = l_Lean_Expr_getAppArgs___closed__1; -lean_inc(x_137); -x_139 = lean_mk_array(x_137, x_138); -x_140 = lean_unsigned_to_nat(1u); -x_141 = lean_nat_sub(x_137, x_140); -lean_dec(x_137); -x_142 = lean_unbox(x_131); -lean_dec(x_131); -x_143 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__1(x_1, x_2, x_4, x_5, x_6, x_124, x_130, x_142, x_132, x_135, x_139, x_141, x_8, x_9, x_10, x_11, x_136); -return x_143; -} -else -{ -uint8_t x_144; -lean_dec(x_132); -lean_dec(x_131); -lean_dec(x_130); -lean_dec(x_124); -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_144 = !lean_is_exclusive(x_134); -if (x_144 == 0) -{ -return x_134; -} -else -{ -lean_object* x_145; lean_object* x_146; lean_object* x_147; -x_145 = lean_ctor_get(x_134, 0); -x_146 = lean_ctor_get(x_134, 1); -lean_inc(x_146); -lean_inc(x_145); -lean_dec(x_134); -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; -} -} -} -else -{ -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; uint8_t x_157; -lean_dec(x_132); -lean_dec(x_131); -lean_dec(x_130); -lean_dec(x_129); -lean_dec(x_124); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_148 = l_System_FilePath_dirName___closed__1; -x_149 = l_Lean_Name_toStringWithSep___main(x_148, x_2); -x_150 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_150, 0, x_149); -x_151 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_151, 0, x_150); -x_152 = l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__3; -x_153 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_153, 0, x_152); -lean_ctor_set(x_153, 1, x_151); -x_154 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__3___closed__3; -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_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_155, x_8, x_9, x_10, x_11, x_128); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_157 = !lean_is_exclusive(x_156); -if (x_157 == 0) -{ -return x_156; -} -else -{ -lean_object* x_158; lean_object* x_159; lean_object* x_160; -x_158 = lean_ctor_get(x_156, 0); -x_159 = lean_ctor_get(x_156, 1); -lean_inc(x_159); -lean_inc(x_158); -lean_dec(x_156); -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; -} -} -} -} -else -{ -uint8_t x_167; -lean_dec(x_124); -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_167 = !lean_is_exclusive(x_125); -if (x_167 == 0) -{ -return x_125; -} -else -{ -lean_object* x_168; lean_object* x_169; lean_object* x_170; -x_168 = lean_ctor_get(x_125, 0); -x_169 = lean_ctor_get(x_125, 1); -lean_inc(x_169); -lean_inc(x_168); -lean_dec(x_125); -x_170 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_170, 0, x_168); -lean_ctor_set(x_170, 1, x_169); -return x_170; -} -} -} -else -{ -uint8_t x_171; -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_171 = !lean_is_exclusive(x_121); -if (x_171 == 0) -{ -return x_121; -} -else -{ -lean_object* x_172; lean_object* x_173; lean_object* x_174; -x_172 = lean_ctor_get(x_121, 0); -x_173 = lean_ctor_get(x_121, 1); -lean_inc(x_173); -lean_inc(x_172); -lean_dec(x_121); -x_174 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_174, 0, x_172); -lean_ctor_set(x_174, 1, x_173); -return x_174; +lean_inc(x_130); +lean_dec(x_93); +x_132 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_132, 0, x_130); +lean_ctor_set(x_132, 1, x_131); +return x_132; } } } case 3: { -lean_object* x_175; +lean_object* x_133; lean_dec(x_7); lean_inc(x_2); -x_175 = l___private_Lean_Meta_RecursorInfo_3__checkMotive(x_2, x_5, x_6, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_175) == 0) +x_133 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive(x_2, x_5, x_6, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_133) == 0) { -lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; -x_176 = lean_ctor_get(x_175, 1); -lean_inc(x_176); -lean_dec(x_175); -x_177 = lean_unsigned_to_nat(0u); -x_178 = l___private_Lean_Meta_RecursorInfo_4__getNumParams___main(x_4, x_5, x_177); +lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; +x_134 = lean_ctor_get(x_133, 1); +lean_inc(x_134); +lean_dec(x_133); +x_135 = lean_unsigned_to_nat(0u); +x_136 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getNumParams(x_4, x_5, x_135); lean_inc(x_2); -x_179 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim(x_2, x_3, x_4, x_5, x_6, x_8, x_9, x_10, x_11, x_176); -if (lean_obj_tag(x_179) == 0) +x_137 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim(x_2, x_3, x_4, x_5, x_6, x_8, x_9, x_10, x_11, x_134); +if (lean_obj_tag(x_137) == 0) { -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; uint8_t x_216; -x_180 = lean_ctor_get(x_179, 0); -lean_inc(x_180); -x_181 = lean_ctor_get(x_180, 1); -lean_inc(x_181); -x_182 = lean_ctor_get(x_179, 1); -lean_inc(x_182); -lean_dec(x_179); -x_183 = lean_ctor_get(x_180, 0); -lean_inc(x_183); -lean_dec(x_180); -x_184 = lean_ctor_get(x_181, 0); -lean_inc(x_184); -x_185 = lean_ctor_get(x_181, 1); -lean_inc(x_185); -lean_dec(x_181); -x_216 = lean_unbox(x_185); -if (x_216 == 0) +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; uint8_t x_160; +x_138 = lean_ctor_get(x_137, 0); +lean_inc(x_138); +x_139 = lean_ctor_get(x_138, 1); +lean_inc(x_139); +x_140 = lean_ctor_get(x_137, 1); +lean_inc(x_140); +lean_dec(x_137); +x_141 = lean_ctor_get(x_138, 0); +lean_inc(x_141); +lean_dec(x_138); +x_142 = lean_ctor_get(x_139, 0); +lean_inc(x_142); +x_143 = lean_ctor_get(x_139, 1); +lean_inc(x_143); +lean_dec(x_139); +x_160 = lean_unbox(x_143); +if (x_160 == 0) { -lean_object* x_217; -x_217 = lean_array_get_size(x_6); -x_186 = x_217; -goto block_215; +lean_object* x_161; +x_161 = lean_array_get_size(x_6); +x_144 = x_161; +goto block_159; } else { -lean_object* x_218; lean_object* x_219; lean_object* x_220; -x_218 = lean_array_get_size(x_6); -x_219 = lean_unsigned_to_nat(1u); -x_220 = lean_nat_sub(x_218, x_219); -lean_dec(x_218); -x_186 = x_220; -goto block_215; +lean_object* x_162; lean_object* x_163; lean_object* x_164; +x_162 = lean_array_get_size(x_6); +x_163 = lean_unsigned_to_nat(1u); +x_164 = lean_nat_sub(x_162, x_163); +lean_dec(x_162); +x_144 = x_164; +goto block_159; } -block_215: +block_159: { -uint8_t x_187; -x_187 = lean_nat_dec_lt(x_184, x_186); -if (x_187 == 0) +uint8_t x_145; +x_145 = lean_nat_dec_lt(x_142, x_144); +if (x_145 == 0) { -lean_object* x_188; -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_188 = l_Lean_Meta_inferType___at___private_Lean_Meta_InferType_1__inferAppType___spec__1(x_183, x_8, x_9, x_10, x_11, x_182); -if (lean_obj_tag(x_188) == 0) -{ -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; uint8_t x_196; lean_object* x_197; -x_189 = lean_ctor_get(x_188, 0); -lean_inc(x_189); -x_190 = lean_ctor_get(x_188, 1); -lean_inc(x_190); -lean_dec(x_188); -x_191 = l_Lean_Expr_getAppNumArgsAux___main(x_189, x_177); -x_192 = l_Lean_Expr_getAppArgs___closed__1; -lean_inc(x_191); -x_193 = lean_mk_array(x_191, x_192); -x_194 = lean_unsigned_to_nat(1u); -x_195 = lean_nat_sub(x_191, x_194); -lean_dec(x_191); -x_196 = lean_unbox(x_185); -lean_dec(x_185); -x_197 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__1(x_1, x_2, x_4, x_5, x_6, x_178, x_184, x_196, x_186, x_189, x_193, x_195, x_8, x_9, x_10, x_11, x_190); -return x_197; +lean_object* x_146; uint8_t x_147; lean_object* x_148; +x_146 = lean_box(0); +x_147 = lean_unbox(x_143); +lean_dec(x_143); +x_148 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__2___lambda__1(x_141, x_1, x_2, x_4, x_5, x_6, x_136, x_142, x_147, x_144, x_146, x_8, x_9, x_10, x_11, x_140); +return x_148; } else { -uint8_t x_198; -lean_dec(x_186); -lean_dec(x_185); -lean_dec(x_184); -lean_dec(x_178); +lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; uint8_t x_155; +lean_dec(x_144); +lean_dec(x_143); +lean_dec(x_142); +lean_dec(x_141); +lean_dec(x_136); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_149 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_149, 0, x_2); +x_150 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__2; +x_151 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_151, 0, x_150); +lean_ctor_set(x_151, 1, x_149); +x_152 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__2___closed__2; +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_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3___rarg(x_153, x_8, x_9, x_10, x_11, x_140); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_155 = !lean_is_exclusive(x_154); +if (x_155 == 0) +{ +return x_154; +} +else +{ +lean_object* x_156; lean_object* x_157; lean_object* x_158; +x_156 = lean_ctor_get(x_154, 0); +x_157 = lean_ctor_get(x_154, 1); +lean_inc(x_157); +lean_inc(x_156); +lean_dec(x_154); +x_158 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_158, 0, x_156); +lean_ctor_set(x_158, 1, x_157); +return x_158; +} +} +} +} +else +{ +uint8_t x_165; +lean_dec(x_136); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -7267,82 +8741,29 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_198 = !lean_is_exclusive(x_188); -if (x_198 == 0) +x_165 = !lean_is_exclusive(x_137); +if (x_165 == 0) { -return x_188; +return x_137; } else { -lean_object* x_199; lean_object* x_200; lean_object* x_201; -x_199 = lean_ctor_get(x_188, 0); -x_200 = lean_ctor_get(x_188, 1); -lean_inc(x_200); -lean_inc(x_199); -lean_dec(x_188); -x_201 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_201, 0, x_199); -lean_ctor_set(x_201, 1, x_200); -return x_201; +lean_object* x_166; lean_object* x_167; lean_object* x_168; +x_166 = lean_ctor_get(x_137, 0); +x_167 = lean_ctor_get(x_137, 1); +lean_inc(x_167); +lean_inc(x_166); +lean_dec(x_137); +x_168 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_168, 0, x_166); +lean_ctor_set(x_168, 1, x_167); +return x_168; } } } 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; uint8_t x_211; -lean_dec(x_186); -lean_dec(x_185); -lean_dec(x_184); -lean_dec(x_183); -lean_dec(x_178); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_202 = l_System_FilePath_dirName___closed__1; -x_203 = l_Lean_Name_toStringWithSep___main(x_202, x_2); -x_204 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_204, 0, x_203); -x_205 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_205, 0, x_204); -x_206 = l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__3; -x_207 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_207, 0, x_206); -lean_ctor_set(x_207, 1, x_205); -x_208 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__3___closed__3; -x_209 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_209, 0, x_207); -lean_ctor_set(x_209, 1, x_208); -x_210 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_209, x_8, x_9, x_10, x_11, x_182); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_211 = !lean_is_exclusive(x_210); -if (x_211 == 0) -{ -return x_210; -} -else -{ -lean_object* x_212; lean_object* x_213; lean_object* x_214; -x_212 = lean_ctor_get(x_210, 0); -x_213 = lean_ctor_get(x_210, 1); -lean_inc(x_213); -lean_inc(x_212); -lean_dec(x_210); -x_214 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_214, 0, x_212); -lean_ctor_set(x_214, 1, x_213); -return x_214; -} -} -} -} -else -{ -uint8_t x_221; -lean_dec(x_178); +uint8_t x_169; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -7352,149 +8773,143 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_221 = !lean_is_exclusive(x_179); -if (x_221 == 0) +x_169 = !lean_is_exclusive(x_133); +if (x_169 == 0) { -return x_179; +return x_133; } else { -lean_object* x_222; lean_object* x_223; lean_object* x_224; -x_222 = lean_ctor_get(x_179, 0); -x_223 = lean_ctor_get(x_179, 1); -lean_inc(x_223); -lean_inc(x_222); -lean_dec(x_179); -x_224 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_224, 0, x_222); -lean_ctor_set(x_224, 1, x_223); -return x_224; -} -} -} -else -{ -uint8_t x_225; -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_225 = !lean_is_exclusive(x_175); -if (x_225 == 0) -{ -return x_175; -} -else -{ -lean_object* x_226; lean_object* x_227; lean_object* x_228; -x_226 = lean_ctor_get(x_175, 0); -x_227 = lean_ctor_get(x_175, 1); -lean_inc(x_227); -lean_inc(x_226); -lean_dec(x_175); -x_228 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_228, 0, x_226); -lean_ctor_set(x_228, 1, x_227); -return x_228; +lean_object* x_170; lean_object* x_171; lean_object* x_172; +x_170 = lean_ctor_get(x_133, 0); +x_171 = lean_ctor_get(x_133, 1); +lean_inc(x_171); +lean_inc(x_170); +lean_dec(x_133); +x_172 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_172, 0, x_170); +lean_ctor_set(x_172, 1, x_171); +return x_172; } } } case 4: { -lean_object* x_229; +lean_object* x_173; lean_dec(x_7); lean_inc(x_2); -x_229 = l___private_Lean_Meta_RecursorInfo_3__checkMotive(x_2, x_5, x_6, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_229) == 0) +x_173 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive(x_2, x_5, x_6, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_173) == 0) { -lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; -x_230 = lean_ctor_get(x_229, 1); -lean_inc(x_230); -lean_dec(x_229); -x_231 = lean_unsigned_to_nat(0u); -x_232 = l___private_Lean_Meta_RecursorInfo_4__getNumParams___main(x_4, x_5, x_231); +lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; +x_174 = lean_ctor_get(x_173, 1); +lean_inc(x_174); +lean_dec(x_173); +x_175 = lean_unsigned_to_nat(0u); +x_176 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getNumParams(x_4, x_5, x_175); lean_inc(x_2); -x_233 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim(x_2, x_3, x_4, x_5, x_6, x_8, x_9, x_10, x_11, x_230); -if (lean_obj_tag(x_233) == 0) +x_177 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim(x_2, x_3, x_4, x_5, x_6, x_8, x_9, x_10, x_11, x_174); +if (lean_obj_tag(x_177) == 0) { -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; uint8_t x_270; -x_234 = lean_ctor_get(x_233, 0); -lean_inc(x_234); -x_235 = lean_ctor_get(x_234, 1); -lean_inc(x_235); -x_236 = lean_ctor_get(x_233, 1); -lean_inc(x_236); -lean_dec(x_233); -x_237 = lean_ctor_get(x_234, 0); -lean_inc(x_237); -lean_dec(x_234); -x_238 = lean_ctor_get(x_235, 0); -lean_inc(x_238); -x_239 = lean_ctor_get(x_235, 1); -lean_inc(x_239); -lean_dec(x_235); -x_270 = lean_unbox(x_239); -if (x_270 == 0) +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; uint8_t x_200; +x_178 = lean_ctor_get(x_177, 0); +lean_inc(x_178); +x_179 = lean_ctor_get(x_178, 1); +lean_inc(x_179); +x_180 = lean_ctor_get(x_177, 1); +lean_inc(x_180); +lean_dec(x_177); +x_181 = lean_ctor_get(x_178, 0); +lean_inc(x_181); +lean_dec(x_178); +x_182 = lean_ctor_get(x_179, 0); +lean_inc(x_182); +x_183 = lean_ctor_get(x_179, 1); +lean_inc(x_183); +lean_dec(x_179); +x_200 = lean_unbox(x_183); +if (x_200 == 0) { -lean_object* x_271; -x_271 = lean_array_get_size(x_6); -x_240 = x_271; -goto block_269; +lean_object* x_201; +x_201 = lean_array_get_size(x_6); +x_184 = x_201; +goto block_199; } else { -lean_object* x_272; lean_object* x_273; lean_object* x_274; -x_272 = lean_array_get_size(x_6); -x_273 = lean_unsigned_to_nat(1u); -x_274 = lean_nat_sub(x_272, x_273); -lean_dec(x_272); -x_240 = x_274; -goto block_269; +lean_object* x_202; lean_object* x_203; lean_object* x_204; +x_202 = lean_array_get_size(x_6); +x_203 = lean_unsigned_to_nat(1u); +x_204 = lean_nat_sub(x_202, x_203); +lean_dec(x_202); +x_184 = x_204; +goto block_199; } -block_269: +block_199: { -uint8_t x_241; -x_241 = lean_nat_dec_lt(x_238, x_240); -if (x_241 == 0) +uint8_t x_185; +x_185 = lean_nat_dec_lt(x_182, x_184); +if (x_185 == 0) { -lean_object* x_242; -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_242 = l_Lean_Meta_inferType___at___private_Lean_Meta_InferType_1__inferAppType___spec__1(x_237, x_8, x_9, x_10, x_11, x_236); -if (lean_obj_tag(x_242) == 0) -{ -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; uint8_t x_250; lean_object* x_251; -x_243 = lean_ctor_get(x_242, 0); -lean_inc(x_243); -x_244 = lean_ctor_get(x_242, 1); -lean_inc(x_244); -lean_dec(x_242); -x_245 = l_Lean_Expr_getAppNumArgsAux___main(x_243, x_231); -x_246 = l_Lean_Expr_getAppArgs___closed__1; -lean_inc(x_245); -x_247 = lean_mk_array(x_245, x_246); -x_248 = lean_unsigned_to_nat(1u); -x_249 = lean_nat_sub(x_245, x_248); -lean_dec(x_245); -x_250 = lean_unbox(x_239); -lean_dec(x_239); -x_251 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__1(x_1, x_2, x_4, x_5, x_6, x_232, x_238, x_250, x_240, x_243, x_247, x_249, x_8, x_9, x_10, x_11, x_244); -return x_251; +lean_object* x_186; uint8_t x_187; lean_object* x_188; +x_186 = lean_box(0); +x_187 = lean_unbox(x_183); +lean_dec(x_183); +x_188 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__2___lambda__1(x_181, x_1, x_2, x_4, x_5, x_6, x_176, x_182, x_187, x_184, x_186, x_8, x_9, x_10, x_11, x_180); +return x_188; } else { -uint8_t x_252; -lean_dec(x_240); -lean_dec(x_239); -lean_dec(x_238); -lean_dec(x_232); +lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; uint8_t x_195; +lean_dec(x_184); +lean_dec(x_183); +lean_dec(x_182); +lean_dec(x_181); +lean_dec(x_176); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_189 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_189, 0, x_2); +x_190 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__2; +x_191 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_191, 0, x_190); +lean_ctor_set(x_191, 1, x_189); +x_192 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__2___closed__2; +x_193 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_193, 0, x_191); +lean_ctor_set(x_193, 1, x_192); +x_194 = l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3___rarg(x_193, x_8, x_9, x_10, x_11, x_180); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_195 = !lean_is_exclusive(x_194); +if (x_195 == 0) +{ +return x_194; +} +else +{ +lean_object* x_196; lean_object* x_197; lean_object* x_198; +x_196 = lean_ctor_get(x_194, 0); +x_197 = lean_ctor_get(x_194, 1); +lean_inc(x_197); +lean_inc(x_196); +lean_dec(x_194); +x_198 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_198, 0, x_196); +lean_ctor_set(x_198, 1, x_197); +return x_198; +} +} +} +} +else +{ +uint8_t x_205; +lean_dec(x_176); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -7504,82 +8919,29 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_252 = !lean_is_exclusive(x_242); -if (x_252 == 0) +x_205 = !lean_is_exclusive(x_177); +if (x_205 == 0) { -return x_242; +return x_177; } else { -lean_object* x_253; lean_object* x_254; lean_object* x_255; -x_253 = lean_ctor_get(x_242, 0); -x_254 = lean_ctor_get(x_242, 1); -lean_inc(x_254); -lean_inc(x_253); -lean_dec(x_242); -x_255 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_255, 0, x_253); -lean_ctor_set(x_255, 1, x_254); -return x_255; +lean_object* x_206; lean_object* x_207; lean_object* x_208; +x_206 = lean_ctor_get(x_177, 0); +x_207 = lean_ctor_get(x_177, 1); +lean_inc(x_207); +lean_inc(x_206); +lean_dec(x_177); +x_208 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_208, 0, x_206); +lean_ctor_set(x_208, 1, x_207); +return x_208; } } } else { -lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; uint8_t x_265; -lean_dec(x_240); -lean_dec(x_239); -lean_dec(x_238); -lean_dec(x_237); -lean_dec(x_232); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_256 = l_System_FilePath_dirName___closed__1; -x_257 = l_Lean_Name_toStringWithSep___main(x_256, x_2); -x_258 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_258, 0, x_257); -x_259 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_259, 0, x_258); -x_260 = l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__3; -x_261 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_261, 0, x_260); -lean_ctor_set(x_261, 1, x_259); -x_262 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__3___closed__3; -x_263 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_263, 0, x_261); -lean_ctor_set(x_263, 1, x_262); -x_264 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_263, x_8, x_9, x_10, x_11, x_236); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_265 = !lean_is_exclusive(x_264); -if (x_265 == 0) -{ -return x_264; -} -else -{ -lean_object* x_266; lean_object* x_267; lean_object* x_268; -x_266 = lean_ctor_get(x_264, 0); -x_267 = lean_ctor_get(x_264, 1); -lean_inc(x_267); -lean_inc(x_266); -lean_dec(x_264); -x_268 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_268, 0, x_266); -lean_ctor_set(x_268, 1, x_267); -return x_268; -} -} -} -} -else -{ -uint8_t x_275; -lean_dec(x_232); +uint8_t x_209; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -7589,166 +8951,160 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_275 = !lean_is_exclusive(x_233); -if (x_275 == 0) +x_209 = !lean_is_exclusive(x_173); +if (x_209 == 0) { -return x_233; +return x_173; } else { -lean_object* x_276; lean_object* x_277; lean_object* x_278; -x_276 = lean_ctor_get(x_233, 0); -x_277 = lean_ctor_get(x_233, 1); -lean_inc(x_277); -lean_inc(x_276); -lean_dec(x_233); -x_278 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_278, 0, x_276); -lean_ctor_set(x_278, 1, x_277); -return x_278; -} -} -} -else -{ -uint8_t x_279; -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_279 = !lean_is_exclusive(x_229); -if (x_279 == 0) -{ -return x_229; -} -else -{ -lean_object* x_280; lean_object* x_281; lean_object* x_282; -x_280 = lean_ctor_get(x_229, 0); -x_281 = lean_ctor_get(x_229, 1); -lean_inc(x_281); -lean_inc(x_280); -lean_dec(x_229); -x_282 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_282, 0, x_280); -lean_ctor_set(x_282, 1, x_281); -return x_282; +lean_object* x_210; lean_object* x_211; lean_object* x_212; +x_210 = lean_ctor_get(x_173, 0); +x_211 = lean_ctor_get(x_173, 1); +lean_inc(x_211); +lean_inc(x_210); +lean_dec(x_173); +x_212 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_212, 0, x_210); +lean_ctor_set(x_212, 1, x_211); +return x_212; } } } case 5: { -lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; -x_283 = lean_ctor_get(x_5, 0); -lean_inc(x_283); -x_284 = lean_ctor_get(x_5, 1); -lean_inc(x_284); +lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; +x_213 = lean_ctor_get(x_5, 0); +lean_inc(x_213); +x_214 = lean_ctor_get(x_5, 1); +lean_inc(x_214); lean_dec(x_5); -x_285 = lean_array_set(x_6, x_7, x_284); -x_286 = lean_unsigned_to_nat(1u); -x_287 = lean_nat_sub(x_7, x_286); +x_215 = lean_array_set(x_6, x_7, x_214); +x_216 = lean_unsigned_to_nat(1u); +x_217 = lean_nat_sub(x_7, x_216); lean_dec(x_7); -x_5 = x_283; -x_6 = x_285; -x_7 = x_287; +x_5 = x_213; +x_6 = x_215; +x_7 = x_217; goto _start; } case 6: { -lean_object* x_289; +lean_object* x_219; lean_dec(x_7); lean_inc(x_2); -x_289 = l___private_Lean_Meta_RecursorInfo_3__checkMotive(x_2, x_5, x_6, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_289) == 0) +x_219 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive(x_2, x_5, x_6, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_219) == 0) { -lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; -x_290 = lean_ctor_get(x_289, 1); -lean_inc(x_290); -lean_dec(x_289); -x_291 = lean_unsigned_to_nat(0u); -x_292 = l___private_Lean_Meta_RecursorInfo_4__getNumParams___main(x_4, x_5, x_291); +lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; +x_220 = lean_ctor_get(x_219, 1); +lean_inc(x_220); +lean_dec(x_219); +x_221 = lean_unsigned_to_nat(0u); +x_222 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getNumParams(x_4, x_5, x_221); lean_inc(x_2); -x_293 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim(x_2, x_3, x_4, x_5, x_6, x_8, x_9, x_10, x_11, x_290); -if (lean_obj_tag(x_293) == 0) +x_223 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim(x_2, x_3, x_4, x_5, x_6, x_8, x_9, x_10, x_11, x_220); +if (lean_obj_tag(x_223) == 0) { -lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; uint8_t x_330; -x_294 = lean_ctor_get(x_293, 0); -lean_inc(x_294); -x_295 = lean_ctor_get(x_294, 1); -lean_inc(x_295); -x_296 = lean_ctor_get(x_293, 1); -lean_inc(x_296); -lean_dec(x_293); -x_297 = lean_ctor_get(x_294, 0); -lean_inc(x_297); -lean_dec(x_294); -x_298 = lean_ctor_get(x_295, 0); -lean_inc(x_298); -x_299 = lean_ctor_get(x_295, 1); -lean_inc(x_299); -lean_dec(x_295); -x_330 = lean_unbox(x_299); -if (x_330 == 0) +lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; uint8_t x_246; +x_224 = lean_ctor_get(x_223, 0); +lean_inc(x_224); +x_225 = lean_ctor_get(x_224, 1); +lean_inc(x_225); +x_226 = lean_ctor_get(x_223, 1); +lean_inc(x_226); +lean_dec(x_223); +x_227 = lean_ctor_get(x_224, 0); +lean_inc(x_227); +lean_dec(x_224); +x_228 = lean_ctor_get(x_225, 0); +lean_inc(x_228); +x_229 = lean_ctor_get(x_225, 1); +lean_inc(x_229); +lean_dec(x_225); +x_246 = lean_unbox(x_229); +if (x_246 == 0) { -lean_object* x_331; -x_331 = lean_array_get_size(x_6); -x_300 = x_331; -goto block_329; +lean_object* x_247; +x_247 = lean_array_get_size(x_6); +x_230 = x_247; +goto block_245; } else { -lean_object* x_332; lean_object* x_333; lean_object* x_334; -x_332 = lean_array_get_size(x_6); -x_333 = lean_unsigned_to_nat(1u); -x_334 = lean_nat_sub(x_332, x_333); -lean_dec(x_332); -x_300 = x_334; -goto block_329; +lean_object* x_248; lean_object* x_249; lean_object* x_250; +x_248 = lean_array_get_size(x_6); +x_249 = lean_unsigned_to_nat(1u); +x_250 = lean_nat_sub(x_248, x_249); +lean_dec(x_248); +x_230 = x_250; +goto block_245; } -block_329: +block_245: { -uint8_t x_301; -x_301 = lean_nat_dec_lt(x_298, x_300); -if (x_301 == 0) +uint8_t x_231; +x_231 = lean_nat_dec_lt(x_228, x_230); +if (x_231 == 0) { -lean_object* x_302; -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_302 = l_Lean_Meta_inferType___at___private_Lean_Meta_InferType_1__inferAppType___spec__1(x_297, x_8, x_9, x_10, x_11, x_296); -if (lean_obj_tag(x_302) == 0) -{ -lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; uint8_t x_310; lean_object* x_311; -x_303 = lean_ctor_get(x_302, 0); -lean_inc(x_303); -x_304 = lean_ctor_get(x_302, 1); -lean_inc(x_304); -lean_dec(x_302); -x_305 = l_Lean_Expr_getAppNumArgsAux___main(x_303, x_291); -x_306 = l_Lean_Expr_getAppArgs___closed__1; -lean_inc(x_305); -x_307 = lean_mk_array(x_305, x_306); -x_308 = lean_unsigned_to_nat(1u); -x_309 = lean_nat_sub(x_305, x_308); -lean_dec(x_305); -x_310 = lean_unbox(x_299); -lean_dec(x_299); -x_311 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__1(x_1, x_2, x_4, x_5, x_6, x_292, x_298, x_310, x_300, x_303, x_307, x_309, x_8, x_9, x_10, x_11, x_304); -return x_311; +lean_object* x_232; uint8_t x_233; lean_object* x_234; +x_232 = lean_box(0); +x_233 = lean_unbox(x_229); +lean_dec(x_229); +x_234 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__2___lambda__1(x_227, x_1, x_2, x_4, x_5, x_6, x_222, x_228, x_233, x_230, x_232, x_8, x_9, x_10, x_11, x_226); +return x_234; } else { -uint8_t x_312; -lean_dec(x_300); -lean_dec(x_299); -lean_dec(x_298); -lean_dec(x_292); +lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; uint8_t x_241; +lean_dec(x_230); +lean_dec(x_229); +lean_dec(x_228); +lean_dec(x_227); +lean_dec(x_222); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_235 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_235, 0, x_2); +x_236 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__2; +x_237 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_237, 0, x_236); +lean_ctor_set(x_237, 1, x_235); +x_238 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__2___closed__2; +x_239 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_239, 0, x_237); +lean_ctor_set(x_239, 1, x_238); +x_240 = l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3___rarg(x_239, x_8, x_9, x_10, x_11, x_226); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_241 = !lean_is_exclusive(x_240); +if (x_241 == 0) +{ +return x_240; +} +else +{ +lean_object* x_242; lean_object* x_243; lean_object* x_244; +x_242 = lean_ctor_get(x_240, 0); +x_243 = lean_ctor_get(x_240, 1); +lean_inc(x_243); +lean_inc(x_242); +lean_dec(x_240); +x_244 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_244, 0, x_242); +lean_ctor_set(x_244, 1, x_243); +return x_244; +} +} +} +} +else +{ +uint8_t x_251; +lean_dec(x_222); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -7758,82 +9114,385 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_312 = !lean_is_exclusive(x_302); -if (x_312 == 0) +x_251 = !lean_is_exclusive(x_223); +if (x_251 == 0) { -return x_302; +return x_223; } else { -lean_object* x_313; lean_object* x_314; lean_object* x_315; -x_313 = lean_ctor_get(x_302, 0); -x_314 = lean_ctor_get(x_302, 1); -lean_inc(x_314); -lean_inc(x_313); -lean_dec(x_302); -x_315 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_315, 0, x_313); -lean_ctor_set(x_315, 1, x_314); -return x_315; +lean_object* x_252; lean_object* x_253; lean_object* x_254; +x_252 = lean_ctor_get(x_223, 0); +x_253 = lean_ctor_get(x_223, 1); +lean_inc(x_253); +lean_inc(x_252); +lean_dec(x_223); +x_254 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_254, 0, x_252); +lean_ctor_set(x_254, 1, x_253); +return x_254; } } } else { -lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; uint8_t x_325; -lean_dec(x_300); -lean_dec(x_299); -lean_dec(x_298); -lean_dec(x_297); -lean_dec(x_292); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_316 = l_System_FilePath_dirName___closed__1; -x_317 = l_Lean_Name_toStringWithSep___main(x_316, x_2); -x_318 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_318, 0, x_317); -x_319 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_319, 0, x_318); -x_320 = l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__3; -x_321 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_321, 0, x_320); -lean_ctor_set(x_321, 1, x_319); -x_322 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__3___closed__3; -x_323 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_323, 0, x_321); -lean_ctor_set(x_323, 1, x_322); -x_324 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_323, x_8, x_9, x_10, x_11, x_296); +uint8_t x_255; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -x_325 = !lean_is_exclusive(x_324); -if (x_325 == 0) +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_255 = !lean_is_exclusive(x_219); +if (x_255 == 0) { -return x_324; +return x_219; } else { -lean_object* x_326; lean_object* x_327; lean_object* x_328; -x_326 = lean_ctor_get(x_324, 0); -x_327 = lean_ctor_get(x_324, 1); -lean_inc(x_327); -lean_inc(x_326); -lean_dec(x_324); -x_328 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_328, 0, x_326); -lean_ctor_set(x_328, 1, x_327); -return x_328; +lean_object* x_256; lean_object* x_257; lean_object* x_258; +x_256 = lean_ctor_get(x_219, 0); +x_257 = lean_ctor_get(x_219, 1); +lean_inc(x_257); +lean_inc(x_256); +lean_dec(x_219); +x_258 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_258, 0, x_256); +lean_ctor_set(x_258, 1, x_257); +return x_258; } } } +case 7: +{ +lean_object* x_259; +lean_dec(x_7); +lean_inc(x_2); +x_259 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive(x_2, x_5, x_6, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_259) == 0) +{ +lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; +x_260 = lean_ctor_get(x_259, 1); +lean_inc(x_260); +lean_dec(x_259); +x_261 = lean_unsigned_to_nat(0u); +x_262 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getNumParams(x_4, x_5, x_261); +lean_inc(x_2); +x_263 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim(x_2, x_3, x_4, x_5, x_6, x_8, x_9, x_10, x_11, x_260); +if (lean_obj_tag(x_263) == 0) +{ +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; uint8_t x_286; +x_264 = lean_ctor_get(x_263, 0); +lean_inc(x_264); +x_265 = lean_ctor_get(x_264, 1); +lean_inc(x_265); +x_266 = lean_ctor_get(x_263, 1); +lean_inc(x_266); +lean_dec(x_263); +x_267 = lean_ctor_get(x_264, 0); +lean_inc(x_267); +lean_dec(x_264); +x_268 = lean_ctor_get(x_265, 0); +lean_inc(x_268); +x_269 = lean_ctor_get(x_265, 1); +lean_inc(x_269); +lean_dec(x_265); +x_286 = lean_unbox(x_269); +if (x_286 == 0) +{ +lean_object* x_287; +x_287 = lean_array_get_size(x_6); +x_270 = x_287; +goto block_285; +} +else +{ +lean_object* x_288; lean_object* x_289; lean_object* x_290; +x_288 = lean_array_get_size(x_6); +x_289 = lean_unsigned_to_nat(1u); +x_290 = lean_nat_sub(x_288, x_289); +lean_dec(x_288); +x_270 = x_290; +goto block_285; +} +block_285: +{ +uint8_t x_271; +x_271 = lean_nat_dec_lt(x_268, x_270); +if (x_271 == 0) +{ +lean_object* x_272; uint8_t x_273; lean_object* x_274; +x_272 = lean_box(0); +x_273 = lean_unbox(x_269); +lean_dec(x_269); +x_274 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__2___lambda__1(x_267, x_1, x_2, x_4, x_5, x_6, x_262, x_268, x_273, x_270, x_272, x_8, x_9, x_10, x_11, x_266); +return x_274; +} +else +{ +lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; uint8_t x_281; +lean_dec(x_270); +lean_dec(x_269); +lean_dec(x_268); +lean_dec(x_267); +lean_dec(x_262); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_275 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_275, 0, x_2); +x_276 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__2; +x_277 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_277, 0, x_276); +lean_ctor_set(x_277, 1, x_275); +x_278 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__2___closed__2; +x_279 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_279, 0, x_277); +lean_ctor_set(x_279, 1, x_278); +x_280 = l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3___rarg(x_279, x_8, x_9, x_10, x_11, x_266); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_281 = !lean_is_exclusive(x_280); +if (x_281 == 0) +{ +return x_280; +} +else +{ +lean_object* x_282; lean_object* x_283; lean_object* x_284; +x_282 = lean_ctor_get(x_280, 0); +x_283 = lean_ctor_get(x_280, 1); +lean_inc(x_283); +lean_inc(x_282); +lean_dec(x_280); +x_284 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_284, 0, x_282); +lean_ctor_set(x_284, 1, x_283); +return x_284; +} +} +} +} +else +{ +uint8_t x_291; +lean_dec(x_262); +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_291 = !lean_is_exclusive(x_263); +if (x_291 == 0) +{ +return x_263; +} +else +{ +lean_object* x_292; lean_object* x_293; lean_object* x_294; +x_292 = lean_ctor_get(x_263, 0); +x_293 = lean_ctor_get(x_263, 1); +lean_inc(x_293); +lean_inc(x_292); +lean_dec(x_263); +x_294 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_294, 0, x_292); +lean_ctor_set(x_294, 1, x_293); +return x_294; +} +} +} +else +{ +uint8_t x_295; +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_295 = !lean_is_exclusive(x_259); +if (x_295 == 0) +{ +return x_259; +} +else +{ +lean_object* x_296; lean_object* x_297; lean_object* x_298; +x_296 = lean_ctor_get(x_259, 0); +x_297 = lean_ctor_get(x_259, 1); +lean_inc(x_297); +lean_inc(x_296); +lean_dec(x_259); +x_298 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_298, 0, x_296); +lean_ctor_set(x_298, 1, x_297); +return x_298; +} +} +} +case 8: +{ +lean_object* x_299; +lean_dec(x_7); +lean_inc(x_2); +x_299 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive(x_2, x_5, x_6, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_299) == 0) +{ +lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; +x_300 = lean_ctor_get(x_299, 1); +lean_inc(x_300); +lean_dec(x_299); +x_301 = lean_unsigned_to_nat(0u); +x_302 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getNumParams(x_4, x_5, x_301); +lean_inc(x_2); +x_303 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim(x_2, x_3, x_4, x_5, x_6, x_8, x_9, x_10, x_11, x_300); +if (lean_obj_tag(x_303) == 0) +{ +lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; uint8_t x_326; +x_304 = lean_ctor_get(x_303, 0); +lean_inc(x_304); +x_305 = lean_ctor_get(x_304, 1); +lean_inc(x_305); +x_306 = lean_ctor_get(x_303, 1); +lean_inc(x_306); +lean_dec(x_303); +x_307 = lean_ctor_get(x_304, 0); +lean_inc(x_307); +lean_dec(x_304); +x_308 = lean_ctor_get(x_305, 0); +lean_inc(x_308); +x_309 = lean_ctor_get(x_305, 1); +lean_inc(x_309); +lean_dec(x_305); +x_326 = lean_unbox(x_309); +if (x_326 == 0) +{ +lean_object* x_327; +x_327 = lean_array_get_size(x_6); +x_310 = x_327; +goto block_325; +} +else +{ +lean_object* x_328; lean_object* x_329; lean_object* x_330; +x_328 = lean_array_get_size(x_6); +x_329 = lean_unsigned_to_nat(1u); +x_330 = lean_nat_sub(x_328, x_329); +lean_dec(x_328); +x_310 = x_330; +goto block_325; +} +block_325: +{ +uint8_t x_311; +x_311 = lean_nat_dec_lt(x_308, x_310); +if (x_311 == 0) +{ +lean_object* x_312; uint8_t x_313; lean_object* x_314; +x_312 = lean_box(0); +x_313 = lean_unbox(x_309); +lean_dec(x_309); +x_314 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__2___lambda__1(x_307, x_1, x_2, x_4, x_5, x_6, x_302, x_308, x_313, x_310, x_312, x_8, x_9, x_10, x_11, x_306); +return x_314; +} +else +{ +lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; uint8_t x_321; +lean_dec(x_310); +lean_dec(x_309); +lean_dec(x_308); +lean_dec(x_307); +lean_dec(x_302); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_315 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_315, 0, x_2); +x_316 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__2; +x_317 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_317, 0, x_316); +lean_ctor_set(x_317, 1, x_315); +x_318 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__2___closed__2; +x_319 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_319, 0, x_317); +lean_ctor_set(x_319, 1, x_318); +x_320 = l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3___rarg(x_319, x_8, x_9, x_10, x_11, x_306); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_321 = !lean_is_exclusive(x_320); +if (x_321 == 0) +{ +return x_320; +} +else +{ +lean_object* x_322; lean_object* x_323; lean_object* x_324; +x_322 = lean_ctor_get(x_320, 0); +x_323 = lean_ctor_get(x_320, 1); +lean_inc(x_323); +lean_inc(x_322); +lean_dec(x_320); +x_324 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_324, 0, x_322); +lean_ctor_set(x_324, 1, x_323); +return x_324; +} +} +} +} +else +{ +uint8_t x_331; +lean_dec(x_302); +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_331 = !lean_is_exclusive(x_303); +if (x_331 == 0) +{ +return x_303; +} +else +{ +lean_object* x_332; lean_object* x_333; lean_object* x_334; +x_332 = lean_ctor_get(x_303, 0); +x_333 = lean_ctor_get(x_303, 1); +lean_inc(x_333); +lean_inc(x_332); +lean_dec(x_303); +x_334 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_334, 0, x_332); +lean_ctor_set(x_334, 1, x_333); +return x_334; +} +} } else { uint8_t x_335; -lean_dec(x_292); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -7843,19 +9502,19 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_335 = !lean_is_exclusive(x_293); +x_335 = !lean_is_exclusive(x_299); if (x_335 == 0) { -return x_293; +return x_299; } else { lean_object* x_336; lean_object* x_337; lean_object* x_338; -x_336 = lean_ctor_get(x_293, 0); -x_337 = lean_ctor_get(x_293, 1); +x_336 = lean_ctor_get(x_299, 0); +x_337 = lean_ctor_get(x_299, 1); lean_inc(x_337); lean_inc(x_336); -lean_dec(x_293); +lean_dec(x_299); x_338 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_338, 0, x_336); lean_ctor_set(x_338, 1, x_337); @@ -7863,246 +9522,123 @@ return x_338; } } } -else +case 9: { -uint8_t x_339; -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_339 = !lean_is_exclusive(x_289); -if (x_339 == 0) -{ -return x_289; -} -else -{ -lean_object* x_340; lean_object* x_341; lean_object* x_342; -x_340 = lean_ctor_get(x_289, 0); -x_341 = lean_ctor_get(x_289, 1); -lean_inc(x_341); -lean_inc(x_340); -lean_dec(x_289); -x_342 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_342, 0, x_340); -lean_ctor_set(x_342, 1, x_341); -return x_342; -} -} -} -case 7: -{ -lean_object* x_343; +lean_object* x_339; lean_dec(x_7); lean_inc(x_2); -x_343 = l___private_Lean_Meta_RecursorInfo_3__checkMotive(x_2, x_5, x_6, x_8, x_9, x_10, x_11, x_12); +x_339 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive(x_2, x_5, x_6, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_339) == 0) +{ +lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; +x_340 = lean_ctor_get(x_339, 1); +lean_inc(x_340); +lean_dec(x_339); +x_341 = lean_unsigned_to_nat(0u); +x_342 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getNumParams(x_4, x_5, x_341); +lean_inc(x_2); +x_343 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim(x_2, x_3, x_4, x_5, x_6, x_8, x_9, x_10, x_11, x_340); if (lean_obj_tag(x_343) == 0) { -lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; -x_344 = lean_ctor_get(x_343, 1); +lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; uint8_t x_366; +x_344 = lean_ctor_get(x_343, 0); lean_inc(x_344); +x_345 = lean_ctor_get(x_344, 1); +lean_inc(x_345); +x_346 = lean_ctor_get(x_343, 1); +lean_inc(x_346); lean_dec(x_343); -x_345 = lean_unsigned_to_nat(0u); -x_346 = l___private_Lean_Meta_RecursorInfo_4__getNumParams___main(x_4, x_5, x_345); -lean_inc(x_2); -x_347 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim(x_2, x_3, x_4, x_5, x_6, x_8, x_9, x_10, x_11, x_344); -if (lean_obj_tag(x_347) == 0) -{ -lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; uint8_t x_384; -x_348 = lean_ctor_get(x_347, 0); +x_347 = lean_ctor_get(x_344, 0); +lean_inc(x_347); +lean_dec(x_344); +x_348 = lean_ctor_get(x_345, 0); lean_inc(x_348); -x_349 = lean_ctor_get(x_348, 1); +x_349 = lean_ctor_get(x_345, 1); lean_inc(x_349); -x_350 = lean_ctor_get(x_347, 1); -lean_inc(x_350); -lean_dec(x_347); -x_351 = lean_ctor_get(x_348, 0); -lean_inc(x_351); -lean_dec(x_348); -x_352 = lean_ctor_get(x_349, 0); -lean_inc(x_352); -x_353 = lean_ctor_get(x_349, 1); -lean_inc(x_353); -lean_dec(x_349); -x_384 = lean_unbox(x_353); -if (x_384 == 0) -{ -lean_object* x_385; -x_385 = lean_array_get_size(x_6); -x_354 = x_385; -goto block_383; -} -else -{ -lean_object* x_386; lean_object* x_387; lean_object* x_388; -x_386 = lean_array_get_size(x_6); -x_387 = lean_unsigned_to_nat(1u); -x_388 = lean_nat_sub(x_386, x_387); -lean_dec(x_386); -x_354 = x_388; -goto block_383; -} -block_383: -{ -uint8_t x_355; -x_355 = lean_nat_dec_lt(x_352, x_354); -if (x_355 == 0) -{ -lean_object* x_356; -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_356 = l_Lean_Meta_inferType___at___private_Lean_Meta_InferType_1__inferAppType___spec__1(x_351, x_8, x_9, x_10, x_11, x_350); -if (lean_obj_tag(x_356) == 0) -{ -lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; uint8_t x_364; lean_object* x_365; -x_357 = lean_ctor_get(x_356, 0); -lean_inc(x_357); -x_358 = lean_ctor_get(x_356, 1); -lean_inc(x_358); -lean_dec(x_356); -x_359 = l_Lean_Expr_getAppNumArgsAux___main(x_357, x_345); -x_360 = l_Lean_Expr_getAppArgs___closed__1; -lean_inc(x_359); -x_361 = lean_mk_array(x_359, x_360); -x_362 = lean_unsigned_to_nat(1u); -x_363 = lean_nat_sub(x_359, x_362); -lean_dec(x_359); -x_364 = lean_unbox(x_353); -lean_dec(x_353); -x_365 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__1(x_1, x_2, x_4, x_5, x_6, x_346, x_352, x_364, x_354, x_357, x_361, x_363, x_8, x_9, x_10, x_11, x_358); -return x_365; -} -else -{ -uint8_t x_366; -lean_dec(x_354); -lean_dec(x_353); -lean_dec(x_352); -lean_dec(x_346); -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_366 = !lean_is_exclusive(x_356); +lean_dec(x_345); +x_366 = lean_unbox(x_349); if (x_366 == 0) { -return x_356; +lean_object* x_367; +x_367 = lean_array_get_size(x_6); +x_350 = x_367; +goto block_365; } else { -lean_object* x_367; lean_object* x_368; lean_object* x_369; -x_367 = lean_ctor_get(x_356, 0); -x_368 = lean_ctor_get(x_356, 1); -lean_inc(x_368); -lean_inc(x_367); -lean_dec(x_356); -x_369 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_369, 0, x_367); -lean_ctor_set(x_369, 1, x_368); -return x_369; -} +lean_object* x_368; lean_object* x_369; lean_object* x_370; +x_368 = lean_array_get_size(x_6); +x_369 = lean_unsigned_to_nat(1u); +x_370 = lean_nat_sub(x_368, x_369); +lean_dec(x_368); +x_350 = x_370; +goto block_365; } +block_365: +{ +uint8_t x_351; +x_351 = lean_nat_dec_lt(x_348, x_350); +if (x_351 == 0) +{ +lean_object* x_352; uint8_t x_353; lean_object* x_354; +x_352 = lean_box(0); +x_353 = lean_unbox(x_349); +lean_dec(x_349); +x_354 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__2___lambda__1(x_347, x_1, x_2, x_4, x_5, x_6, x_342, x_348, x_353, x_350, x_352, x_8, x_9, x_10, x_11, x_346); +return x_354; } else { -lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; uint8_t x_379; -lean_dec(x_354); -lean_dec(x_353); -lean_dec(x_352); -lean_dec(x_351); -lean_dec(x_346); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_370 = l_System_FilePath_dirName___closed__1; -x_371 = l_Lean_Name_toStringWithSep___main(x_370, x_2); -x_372 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_372, 0, x_371); -x_373 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_373, 0, x_372); -x_374 = l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__3; -x_375 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_375, 0, x_374); -lean_ctor_set(x_375, 1, x_373); -x_376 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__3___closed__3; -x_377 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_377, 0, x_375); -lean_ctor_set(x_377, 1, x_376); -x_378 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_377, x_8, x_9, x_10, x_11, x_350); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_379 = !lean_is_exclusive(x_378); -if (x_379 == 0) -{ -return x_378; -} -else -{ -lean_object* x_380; lean_object* x_381; lean_object* x_382; -x_380 = lean_ctor_get(x_378, 0); -x_381 = lean_ctor_get(x_378, 1); -lean_inc(x_381); -lean_inc(x_380); -lean_dec(x_378); -x_382 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_382, 0, x_380); -lean_ctor_set(x_382, 1, x_381); -return x_382; -} -} -} -} -else -{ -uint8_t x_389; -lean_dec(x_346); -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_389 = !lean_is_exclusive(x_347); -if (x_389 == 0) -{ -return x_347; -} -else -{ -lean_object* x_390; lean_object* x_391; lean_object* x_392; -x_390 = lean_ctor_get(x_347, 0); -x_391 = lean_ctor_get(x_347, 1); -lean_inc(x_391); -lean_inc(x_390); +lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; uint8_t x_361; +lean_dec(x_350); +lean_dec(x_349); +lean_dec(x_348); lean_dec(x_347); -x_392 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_392, 0, x_390); -lean_ctor_set(x_392, 1, x_391); -return x_392; +lean_dec(x_342); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_355 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_355, 0, x_2); +x_356 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__2; +x_357 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_357, 0, x_356); +lean_ctor_set(x_357, 1, x_355); +x_358 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__2___closed__2; +x_359 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_359, 0, x_357); +lean_ctor_set(x_359, 1, x_358); +x_360 = l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3___rarg(x_359, x_8, x_9, x_10, x_11, x_346); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_361 = !lean_is_exclusive(x_360); +if (x_361 == 0) +{ +return x_360; +} +else +{ +lean_object* x_362; lean_object* x_363; lean_object* x_364; +x_362 = lean_ctor_get(x_360, 0); +x_363 = lean_ctor_get(x_360, 1); +lean_inc(x_363); +lean_inc(x_362); +lean_dec(x_360); +x_364 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_364, 0, x_362); +lean_ctor_set(x_364, 1, x_363); +return x_364; +} } } } else { -uint8_t x_393; +uint8_t x_371; +lean_dec(x_342); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -8112,117 +9648,29 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_393 = !lean_is_exclusive(x_343); -if (x_393 == 0) +x_371 = !lean_is_exclusive(x_343); +if (x_371 == 0) { return x_343; } else { -lean_object* x_394; lean_object* x_395; lean_object* x_396; -x_394 = lean_ctor_get(x_343, 0); -x_395 = lean_ctor_get(x_343, 1); -lean_inc(x_395); -lean_inc(x_394); +lean_object* x_372; lean_object* x_373; lean_object* x_374; +x_372 = lean_ctor_get(x_343, 0); +x_373 = lean_ctor_get(x_343, 1); +lean_inc(x_373); +lean_inc(x_372); lean_dec(x_343); -x_396 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_396, 0, x_394); -lean_ctor_set(x_396, 1, x_395); -return x_396; +x_374 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_374, 0, x_372); +lean_ctor_set(x_374, 1, x_373); +return x_374; } } } -case 8: -{ -lean_object* x_397; -lean_dec(x_7); -lean_inc(x_2); -x_397 = l___private_Lean_Meta_RecursorInfo_3__checkMotive(x_2, x_5, x_6, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_397) == 0) -{ -lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; -x_398 = lean_ctor_get(x_397, 1); -lean_inc(x_398); -lean_dec(x_397); -x_399 = lean_unsigned_to_nat(0u); -x_400 = l___private_Lean_Meta_RecursorInfo_4__getNumParams___main(x_4, x_5, x_399); -lean_inc(x_2); -x_401 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim(x_2, x_3, x_4, x_5, x_6, x_8, x_9, x_10, x_11, x_398); -if (lean_obj_tag(x_401) == 0) -{ -lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; uint8_t x_438; -x_402 = lean_ctor_get(x_401, 0); -lean_inc(x_402); -x_403 = lean_ctor_get(x_402, 1); -lean_inc(x_403); -x_404 = lean_ctor_get(x_401, 1); -lean_inc(x_404); -lean_dec(x_401); -x_405 = lean_ctor_get(x_402, 0); -lean_inc(x_405); -lean_dec(x_402); -x_406 = lean_ctor_get(x_403, 0); -lean_inc(x_406); -x_407 = lean_ctor_get(x_403, 1); -lean_inc(x_407); -lean_dec(x_403); -x_438 = lean_unbox(x_407); -if (x_438 == 0) -{ -lean_object* x_439; -x_439 = lean_array_get_size(x_6); -x_408 = x_439; -goto block_437; -} else { -lean_object* x_440; lean_object* x_441; lean_object* x_442; -x_440 = lean_array_get_size(x_6); -x_441 = lean_unsigned_to_nat(1u); -x_442 = lean_nat_sub(x_440, x_441); -lean_dec(x_440); -x_408 = x_442; -goto block_437; -} -block_437: -{ -uint8_t x_409; -x_409 = lean_nat_dec_lt(x_406, x_408); -if (x_409 == 0) -{ -lean_object* x_410; -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_410 = l_Lean_Meta_inferType___at___private_Lean_Meta_InferType_1__inferAppType___spec__1(x_405, x_8, x_9, x_10, x_11, x_404); -if (lean_obj_tag(x_410) == 0) -{ -lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; uint8_t x_418; lean_object* x_419; -x_411 = lean_ctor_get(x_410, 0); -lean_inc(x_411); -x_412 = lean_ctor_get(x_410, 1); -lean_inc(x_412); -lean_dec(x_410); -x_413 = l_Lean_Expr_getAppNumArgsAux___main(x_411, x_399); -x_414 = l_Lean_Expr_getAppArgs___closed__1; -lean_inc(x_413); -x_415 = lean_mk_array(x_413, x_414); -x_416 = lean_unsigned_to_nat(1u); -x_417 = lean_nat_sub(x_413, x_416); -lean_dec(x_413); -x_418 = lean_unbox(x_407); -lean_dec(x_407); -x_419 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__1(x_1, x_2, x_4, x_5, x_6, x_400, x_406, x_418, x_408, x_411, x_415, x_417, x_8, x_9, x_10, x_11, x_412); -return x_419; -} -else -{ -uint8_t x_420; -lean_dec(x_408); -lean_dec(x_407); -lean_dec(x_406); -lean_dec(x_400); +uint8_t x_375; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -8232,471 +9680,143 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_420 = !lean_is_exclusive(x_410); -if (x_420 == 0) +x_375 = !lean_is_exclusive(x_339); +if (x_375 == 0) { -return x_410; +return x_339; } else { -lean_object* x_421; lean_object* x_422; lean_object* x_423; -x_421 = lean_ctor_get(x_410, 0); -x_422 = lean_ctor_get(x_410, 1); -lean_inc(x_422); -lean_inc(x_421); -lean_dec(x_410); -x_423 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_423, 0, x_421); -lean_ctor_set(x_423, 1, x_422); -return x_423; -} -} -} -else -{ -lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; uint8_t x_433; -lean_dec(x_408); -lean_dec(x_407); -lean_dec(x_406); -lean_dec(x_405); -lean_dec(x_400); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_424 = l_System_FilePath_dirName___closed__1; -x_425 = l_Lean_Name_toStringWithSep___main(x_424, x_2); -x_426 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_426, 0, x_425); -x_427 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_427, 0, x_426); -x_428 = l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__3; -x_429 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_429, 0, x_428); -lean_ctor_set(x_429, 1, x_427); -x_430 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__3___closed__3; -x_431 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_431, 0, x_429); -lean_ctor_set(x_431, 1, x_430); -x_432 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_431, x_8, x_9, x_10, x_11, x_404); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_433 = !lean_is_exclusive(x_432); -if (x_433 == 0) -{ -return x_432; -} -else -{ -lean_object* x_434; lean_object* x_435; lean_object* x_436; -x_434 = lean_ctor_get(x_432, 0); -x_435 = lean_ctor_get(x_432, 1); -lean_inc(x_435); -lean_inc(x_434); -lean_dec(x_432); -x_436 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_436, 0, x_434); -lean_ctor_set(x_436, 1, x_435); -return x_436; -} -} -} -} -else -{ -uint8_t x_443; -lean_dec(x_400); -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_443 = !lean_is_exclusive(x_401); -if (x_443 == 0) -{ -return x_401; -} -else -{ -lean_object* x_444; lean_object* x_445; lean_object* x_446; -x_444 = lean_ctor_get(x_401, 0); -x_445 = lean_ctor_get(x_401, 1); -lean_inc(x_445); -lean_inc(x_444); -lean_dec(x_401); -x_446 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_446, 0, x_444); -lean_ctor_set(x_446, 1, x_445); -return x_446; -} -} -} -else -{ -uint8_t x_447; -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_447 = !lean_is_exclusive(x_397); -if (x_447 == 0) -{ -return x_397; -} -else -{ -lean_object* x_448; lean_object* x_449; lean_object* x_450; -x_448 = lean_ctor_get(x_397, 0); -x_449 = lean_ctor_get(x_397, 1); -lean_inc(x_449); -lean_inc(x_448); -lean_dec(x_397); -x_450 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_450, 0, x_448); -lean_ctor_set(x_450, 1, x_449); -return x_450; -} -} -} -case 9: -{ -lean_object* x_451; -lean_dec(x_7); -lean_inc(x_2); -x_451 = l___private_Lean_Meta_RecursorInfo_3__checkMotive(x_2, x_5, x_6, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_451) == 0) -{ -lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; -x_452 = lean_ctor_get(x_451, 1); -lean_inc(x_452); -lean_dec(x_451); -x_453 = lean_unsigned_to_nat(0u); -x_454 = l___private_Lean_Meta_RecursorInfo_4__getNumParams___main(x_4, x_5, x_453); -lean_inc(x_2); -x_455 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim(x_2, x_3, x_4, x_5, x_6, x_8, x_9, x_10, x_11, x_452); -if (lean_obj_tag(x_455) == 0) -{ -lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; uint8_t x_492; -x_456 = lean_ctor_get(x_455, 0); -lean_inc(x_456); -x_457 = lean_ctor_get(x_456, 1); -lean_inc(x_457); -x_458 = lean_ctor_get(x_455, 1); -lean_inc(x_458); -lean_dec(x_455); -x_459 = lean_ctor_get(x_456, 0); -lean_inc(x_459); -lean_dec(x_456); -x_460 = lean_ctor_get(x_457, 0); -lean_inc(x_460); -x_461 = lean_ctor_get(x_457, 1); -lean_inc(x_461); -lean_dec(x_457); -x_492 = lean_unbox(x_461); -if (x_492 == 0) -{ -lean_object* x_493; -x_493 = lean_array_get_size(x_6); -x_462 = x_493; -goto block_491; -} -else -{ -lean_object* x_494; lean_object* x_495; lean_object* x_496; -x_494 = lean_array_get_size(x_6); -x_495 = lean_unsigned_to_nat(1u); -x_496 = lean_nat_sub(x_494, x_495); -lean_dec(x_494); -x_462 = x_496; -goto block_491; -} -block_491: -{ -uint8_t x_463; -x_463 = lean_nat_dec_lt(x_460, x_462); -if (x_463 == 0) -{ -lean_object* x_464; -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_464 = l_Lean_Meta_inferType___at___private_Lean_Meta_InferType_1__inferAppType___spec__1(x_459, x_8, x_9, x_10, x_11, x_458); -if (lean_obj_tag(x_464) == 0) -{ -lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; uint8_t x_472; lean_object* x_473; -x_465 = lean_ctor_get(x_464, 0); -lean_inc(x_465); -x_466 = lean_ctor_get(x_464, 1); -lean_inc(x_466); -lean_dec(x_464); -x_467 = l_Lean_Expr_getAppNumArgsAux___main(x_465, x_453); -x_468 = l_Lean_Expr_getAppArgs___closed__1; -lean_inc(x_467); -x_469 = lean_mk_array(x_467, x_468); -x_470 = lean_unsigned_to_nat(1u); -x_471 = lean_nat_sub(x_467, x_470); -lean_dec(x_467); -x_472 = lean_unbox(x_461); -lean_dec(x_461); -x_473 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__1(x_1, x_2, x_4, x_5, x_6, x_454, x_460, x_472, x_462, x_465, x_469, x_471, x_8, x_9, x_10, x_11, x_466); -return x_473; -} -else -{ -uint8_t x_474; -lean_dec(x_462); -lean_dec(x_461); -lean_dec(x_460); -lean_dec(x_454); -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_474 = !lean_is_exclusive(x_464); -if (x_474 == 0) -{ -return x_464; -} -else -{ -lean_object* x_475; lean_object* x_476; lean_object* x_477; -x_475 = lean_ctor_get(x_464, 0); -x_476 = lean_ctor_get(x_464, 1); -lean_inc(x_476); -lean_inc(x_475); -lean_dec(x_464); -x_477 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_477, 0, x_475); -lean_ctor_set(x_477, 1, x_476); -return x_477; -} -} -} -else -{ -lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; uint8_t x_487; -lean_dec(x_462); -lean_dec(x_461); -lean_dec(x_460); -lean_dec(x_459); -lean_dec(x_454); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_478 = l_System_FilePath_dirName___closed__1; -x_479 = l_Lean_Name_toStringWithSep___main(x_478, x_2); -x_480 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_480, 0, x_479); -x_481 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_481, 0, x_480); -x_482 = l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__3; -x_483 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_483, 0, x_482); -lean_ctor_set(x_483, 1, x_481); -x_484 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__3___closed__3; -x_485 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_485, 0, x_483); -lean_ctor_set(x_485, 1, x_484); -x_486 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_485, x_8, x_9, x_10, x_11, x_458); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_487 = !lean_is_exclusive(x_486); -if (x_487 == 0) -{ -return x_486; -} -else -{ -lean_object* x_488; lean_object* x_489; lean_object* x_490; -x_488 = lean_ctor_get(x_486, 0); -x_489 = lean_ctor_get(x_486, 1); -lean_inc(x_489); -lean_inc(x_488); -lean_dec(x_486); -x_490 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_490, 0, x_488); -lean_ctor_set(x_490, 1, x_489); -return x_490; -} -} -} -} -else -{ -uint8_t x_497; -lean_dec(x_454); -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_497 = !lean_is_exclusive(x_455); -if (x_497 == 0) -{ -return x_455; -} -else -{ -lean_object* x_498; lean_object* x_499; lean_object* x_500; -x_498 = lean_ctor_get(x_455, 0); -x_499 = lean_ctor_get(x_455, 1); -lean_inc(x_499); -lean_inc(x_498); -lean_dec(x_455); -x_500 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_500, 0, x_498); -lean_ctor_set(x_500, 1, x_499); -return x_500; -} -} -} -else -{ -uint8_t x_501; -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_501 = !lean_is_exclusive(x_451); -if (x_501 == 0) -{ -return x_451; -} -else -{ -lean_object* x_502; lean_object* x_503; lean_object* x_504; -x_502 = lean_ctor_get(x_451, 0); -x_503 = lean_ctor_get(x_451, 1); -lean_inc(x_503); -lean_inc(x_502); -lean_dec(x_451); -x_504 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_504, 0, x_502); -lean_ctor_set(x_504, 1, x_503); -return x_504; +lean_object* x_376; lean_object* x_377; lean_object* x_378; +x_376 = lean_ctor_get(x_339, 0); +x_377 = lean_ctor_get(x_339, 1); +lean_inc(x_377); +lean_inc(x_376); +lean_dec(x_339); +x_378 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_378, 0, x_376); +lean_ctor_set(x_378, 1, x_377); +return x_378; } } } case 10: { -lean_object* x_505; +lean_object* x_379; lean_dec(x_7); lean_inc(x_2); -x_505 = l___private_Lean_Meta_RecursorInfo_3__checkMotive(x_2, x_5, x_6, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_505) == 0) +x_379 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive(x_2, x_5, x_6, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_379) == 0) { -lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; -x_506 = lean_ctor_get(x_505, 1); -lean_inc(x_506); -lean_dec(x_505); -x_507 = lean_unsigned_to_nat(0u); -x_508 = l___private_Lean_Meta_RecursorInfo_4__getNumParams___main(x_4, x_5, x_507); +lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; +x_380 = lean_ctor_get(x_379, 1); +lean_inc(x_380); +lean_dec(x_379); +x_381 = lean_unsigned_to_nat(0u); +x_382 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getNumParams(x_4, x_5, x_381); lean_inc(x_2); -x_509 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim(x_2, x_3, x_4, x_5, x_6, x_8, x_9, x_10, x_11, x_506); -if (lean_obj_tag(x_509) == 0) +x_383 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim(x_2, x_3, x_4, x_5, x_6, x_8, x_9, x_10, x_11, x_380); +if (lean_obj_tag(x_383) == 0) { -lean_object* x_510; lean_object* x_511; lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; lean_object* x_516; uint8_t x_546; -x_510 = lean_ctor_get(x_509, 0); -lean_inc(x_510); -x_511 = lean_ctor_get(x_510, 1); -lean_inc(x_511); -x_512 = lean_ctor_get(x_509, 1); -lean_inc(x_512); -lean_dec(x_509); -x_513 = lean_ctor_get(x_510, 0); -lean_inc(x_513); -lean_dec(x_510); -x_514 = lean_ctor_get(x_511, 0); -lean_inc(x_514); -x_515 = lean_ctor_get(x_511, 1); -lean_inc(x_515); -lean_dec(x_511); -x_546 = lean_unbox(x_515); -if (x_546 == 0) +lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; uint8_t x_406; +x_384 = lean_ctor_get(x_383, 0); +lean_inc(x_384); +x_385 = lean_ctor_get(x_384, 1); +lean_inc(x_385); +x_386 = lean_ctor_get(x_383, 1); +lean_inc(x_386); +lean_dec(x_383); +x_387 = lean_ctor_get(x_384, 0); +lean_inc(x_387); +lean_dec(x_384); +x_388 = lean_ctor_get(x_385, 0); +lean_inc(x_388); +x_389 = lean_ctor_get(x_385, 1); +lean_inc(x_389); +lean_dec(x_385); +x_406 = lean_unbox(x_389); +if (x_406 == 0) { -lean_object* x_547; -x_547 = lean_array_get_size(x_6); -x_516 = x_547; -goto block_545; +lean_object* x_407; +x_407 = lean_array_get_size(x_6); +x_390 = x_407; +goto block_405; } else { -lean_object* x_548; lean_object* x_549; lean_object* x_550; -x_548 = lean_array_get_size(x_6); -x_549 = lean_unsigned_to_nat(1u); -x_550 = lean_nat_sub(x_548, x_549); -lean_dec(x_548); -x_516 = x_550; -goto block_545; +lean_object* x_408; lean_object* x_409; lean_object* x_410; +x_408 = lean_array_get_size(x_6); +x_409 = lean_unsigned_to_nat(1u); +x_410 = lean_nat_sub(x_408, x_409); +lean_dec(x_408); +x_390 = x_410; +goto block_405; } -block_545: +block_405: { -uint8_t x_517; -x_517 = lean_nat_dec_lt(x_514, x_516); -if (x_517 == 0) +uint8_t x_391; +x_391 = lean_nat_dec_lt(x_388, x_390); +if (x_391 == 0) { -lean_object* x_518; -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_518 = l_Lean_Meta_inferType___at___private_Lean_Meta_InferType_1__inferAppType___spec__1(x_513, x_8, x_9, x_10, x_11, x_512); -if (lean_obj_tag(x_518) == 0) -{ -lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; uint8_t x_526; lean_object* x_527; -x_519 = lean_ctor_get(x_518, 0); -lean_inc(x_519); -x_520 = lean_ctor_get(x_518, 1); -lean_inc(x_520); -lean_dec(x_518); -x_521 = l_Lean_Expr_getAppNumArgsAux___main(x_519, x_507); -x_522 = l_Lean_Expr_getAppArgs___closed__1; -lean_inc(x_521); -x_523 = lean_mk_array(x_521, x_522); -x_524 = lean_unsigned_to_nat(1u); -x_525 = lean_nat_sub(x_521, x_524); -lean_dec(x_521); -x_526 = lean_unbox(x_515); -lean_dec(x_515); -x_527 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__1(x_1, x_2, x_4, x_5, x_6, x_508, x_514, x_526, x_516, x_519, x_523, x_525, x_8, x_9, x_10, x_11, x_520); -return x_527; +lean_object* x_392; uint8_t x_393; lean_object* x_394; +x_392 = lean_box(0); +x_393 = lean_unbox(x_389); +lean_dec(x_389); +x_394 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__2___lambda__1(x_387, x_1, x_2, x_4, x_5, x_6, x_382, x_388, x_393, x_390, x_392, x_8, x_9, x_10, x_11, x_386); +return x_394; } else { -uint8_t x_528; -lean_dec(x_516); -lean_dec(x_515); -lean_dec(x_514); -lean_dec(x_508); +lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; uint8_t x_401; +lean_dec(x_390); +lean_dec(x_389); +lean_dec(x_388); +lean_dec(x_387); +lean_dec(x_382); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_395 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_395, 0, x_2); +x_396 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__2; +x_397 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_397, 0, x_396); +lean_ctor_set(x_397, 1, x_395); +x_398 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__2___closed__2; +x_399 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_399, 0, x_397); +lean_ctor_set(x_399, 1, x_398); +x_400 = l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3___rarg(x_399, x_8, x_9, x_10, x_11, x_386); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_401 = !lean_is_exclusive(x_400); +if (x_401 == 0) +{ +return x_400; +} +else +{ +lean_object* x_402; lean_object* x_403; lean_object* x_404; +x_402 = lean_ctor_get(x_400, 0); +x_403 = lean_ctor_get(x_400, 1); +lean_inc(x_403); +lean_inc(x_402); +lean_dec(x_400); +x_404 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_404, 0, x_402); +lean_ctor_set(x_404, 1, x_403); +return x_404; +} +} +} +} +else +{ +uint8_t x_411; +lean_dec(x_382); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -8706,82 +9826,29 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_528 = !lean_is_exclusive(x_518); -if (x_528 == 0) +x_411 = !lean_is_exclusive(x_383); +if (x_411 == 0) { -return x_518; +return x_383; } else { -lean_object* x_529; lean_object* x_530; lean_object* x_531; -x_529 = lean_ctor_get(x_518, 0); -x_530 = lean_ctor_get(x_518, 1); -lean_inc(x_530); -lean_inc(x_529); -lean_dec(x_518); -x_531 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_531, 0, x_529); -lean_ctor_set(x_531, 1, x_530); -return x_531; +lean_object* x_412; lean_object* x_413; lean_object* x_414; +x_412 = lean_ctor_get(x_383, 0); +x_413 = lean_ctor_get(x_383, 1); +lean_inc(x_413); +lean_inc(x_412); +lean_dec(x_383); +x_414 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_414, 0, x_412); +lean_ctor_set(x_414, 1, x_413); +return x_414; } } } else { -lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; uint8_t x_541; -lean_dec(x_516); -lean_dec(x_515); -lean_dec(x_514); -lean_dec(x_513); -lean_dec(x_508); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_532 = l_System_FilePath_dirName___closed__1; -x_533 = l_Lean_Name_toStringWithSep___main(x_532, x_2); -x_534 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_534, 0, x_533); -x_535 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_535, 0, x_534); -x_536 = l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__3; -x_537 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_537, 0, x_536); -lean_ctor_set(x_537, 1, x_535); -x_538 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__3___closed__3; -x_539 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_539, 0, x_537); -lean_ctor_set(x_539, 1, x_538); -x_540 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_539, x_8, x_9, x_10, x_11, x_512); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_541 = !lean_is_exclusive(x_540); -if (x_541 == 0) -{ -return x_540; -} -else -{ -lean_object* x_542; lean_object* x_543; lean_object* x_544; -x_542 = lean_ctor_get(x_540, 0); -x_543 = lean_ctor_get(x_540, 1); -lean_inc(x_543); -lean_inc(x_542); -lean_dec(x_540); -x_544 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_544, 0, x_542); -lean_ctor_set(x_544, 1, x_543); -return x_544; -} -} -} -} -else -{ -uint8_t x_551; -lean_dec(x_508); +uint8_t x_415; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -8791,149 +9858,143 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_551 = !lean_is_exclusive(x_509); -if (x_551 == 0) +x_415 = !lean_is_exclusive(x_379); +if (x_415 == 0) { -return x_509; +return x_379; } else { -lean_object* x_552; lean_object* x_553; lean_object* x_554; -x_552 = lean_ctor_get(x_509, 0); -x_553 = lean_ctor_get(x_509, 1); -lean_inc(x_553); -lean_inc(x_552); -lean_dec(x_509); -x_554 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_554, 0, x_552); -lean_ctor_set(x_554, 1, x_553); -return x_554; -} -} -} -else -{ -uint8_t x_555; -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_555 = !lean_is_exclusive(x_505); -if (x_555 == 0) -{ -return x_505; -} -else -{ -lean_object* x_556; lean_object* x_557; lean_object* x_558; -x_556 = lean_ctor_get(x_505, 0); -x_557 = lean_ctor_get(x_505, 1); -lean_inc(x_557); -lean_inc(x_556); -lean_dec(x_505); -x_558 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_558, 0, x_556); -lean_ctor_set(x_558, 1, x_557); -return x_558; +lean_object* x_416; lean_object* x_417; lean_object* x_418; +x_416 = lean_ctor_get(x_379, 0); +x_417 = lean_ctor_get(x_379, 1); +lean_inc(x_417); +lean_inc(x_416); +lean_dec(x_379); +x_418 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_418, 0, x_416); +lean_ctor_set(x_418, 1, x_417); +return x_418; } } } case 11: { -lean_object* x_559; +lean_object* x_419; lean_dec(x_7); lean_inc(x_2); -x_559 = l___private_Lean_Meta_RecursorInfo_3__checkMotive(x_2, x_5, x_6, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_559) == 0) +x_419 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive(x_2, x_5, x_6, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_419) == 0) { -lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; -x_560 = lean_ctor_get(x_559, 1); -lean_inc(x_560); -lean_dec(x_559); -x_561 = lean_unsigned_to_nat(0u); -x_562 = l___private_Lean_Meta_RecursorInfo_4__getNumParams___main(x_4, x_5, x_561); +lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; +x_420 = lean_ctor_get(x_419, 1); +lean_inc(x_420); +lean_dec(x_419); +x_421 = lean_unsigned_to_nat(0u); +x_422 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getNumParams(x_4, x_5, x_421); lean_inc(x_2); -x_563 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim(x_2, x_3, x_4, x_5, x_6, x_8, x_9, x_10, x_11, x_560); -if (lean_obj_tag(x_563) == 0) +x_423 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim(x_2, x_3, x_4, x_5, x_6, x_8, x_9, x_10, x_11, x_420); +if (lean_obj_tag(x_423) == 0) { -lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; uint8_t x_600; -x_564 = lean_ctor_get(x_563, 0); -lean_inc(x_564); -x_565 = lean_ctor_get(x_564, 1); -lean_inc(x_565); -x_566 = lean_ctor_get(x_563, 1); -lean_inc(x_566); -lean_dec(x_563); -x_567 = lean_ctor_get(x_564, 0); -lean_inc(x_567); -lean_dec(x_564); -x_568 = lean_ctor_get(x_565, 0); -lean_inc(x_568); -x_569 = lean_ctor_get(x_565, 1); -lean_inc(x_569); -lean_dec(x_565); -x_600 = lean_unbox(x_569); -if (x_600 == 0) +lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; uint8_t x_446; +x_424 = lean_ctor_get(x_423, 0); +lean_inc(x_424); +x_425 = lean_ctor_get(x_424, 1); +lean_inc(x_425); +x_426 = lean_ctor_get(x_423, 1); +lean_inc(x_426); +lean_dec(x_423); +x_427 = lean_ctor_get(x_424, 0); +lean_inc(x_427); +lean_dec(x_424); +x_428 = lean_ctor_get(x_425, 0); +lean_inc(x_428); +x_429 = lean_ctor_get(x_425, 1); +lean_inc(x_429); +lean_dec(x_425); +x_446 = lean_unbox(x_429); +if (x_446 == 0) { -lean_object* x_601; -x_601 = lean_array_get_size(x_6); -x_570 = x_601; -goto block_599; +lean_object* x_447; +x_447 = lean_array_get_size(x_6); +x_430 = x_447; +goto block_445; } else { -lean_object* x_602; lean_object* x_603; lean_object* x_604; -x_602 = lean_array_get_size(x_6); -x_603 = lean_unsigned_to_nat(1u); -x_604 = lean_nat_sub(x_602, x_603); -lean_dec(x_602); -x_570 = x_604; -goto block_599; +lean_object* x_448; lean_object* x_449; lean_object* x_450; +x_448 = lean_array_get_size(x_6); +x_449 = lean_unsigned_to_nat(1u); +x_450 = lean_nat_sub(x_448, x_449); +lean_dec(x_448); +x_430 = x_450; +goto block_445; } -block_599: +block_445: { -uint8_t x_571; -x_571 = lean_nat_dec_lt(x_568, x_570); -if (x_571 == 0) +uint8_t x_431; +x_431 = lean_nat_dec_lt(x_428, x_430); +if (x_431 == 0) { -lean_object* x_572; -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_572 = l_Lean_Meta_inferType___at___private_Lean_Meta_InferType_1__inferAppType___spec__1(x_567, x_8, x_9, x_10, x_11, x_566); -if (lean_obj_tag(x_572) == 0) -{ -lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; uint8_t x_580; lean_object* x_581; -x_573 = lean_ctor_get(x_572, 0); -lean_inc(x_573); -x_574 = lean_ctor_get(x_572, 1); -lean_inc(x_574); -lean_dec(x_572); -x_575 = l_Lean_Expr_getAppNumArgsAux___main(x_573, x_561); -x_576 = l_Lean_Expr_getAppArgs___closed__1; -lean_inc(x_575); -x_577 = lean_mk_array(x_575, x_576); -x_578 = lean_unsigned_to_nat(1u); -x_579 = lean_nat_sub(x_575, x_578); -lean_dec(x_575); -x_580 = lean_unbox(x_569); -lean_dec(x_569); -x_581 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__1(x_1, x_2, x_4, x_5, x_6, x_562, x_568, x_580, x_570, x_573, x_577, x_579, x_8, x_9, x_10, x_11, x_574); -return x_581; +lean_object* x_432; uint8_t x_433; lean_object* x_434; +x_432 = lean_box(0); +x_433 = lean_unbox(x_429); +lean_dec(x_429); +x_434 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__2___lambda__1(x_427, x_1, x_2, x_4, x_5, x_6, x_422, x_428, x_433, x_430, x_432, x_8, x_9, x_10, x_11, x_426); +return x_434; } else { -uint8_t x_582; -lean_dec(x_570); -lean_dec(x_569); -lean_dec(x_568); -lean_dec(x_562); +lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; uint8_t x_441; +lean_dec(x_430); +lean_dec(x_429); +lean_dec(x_428); +lean_dec(x_427); +lean_dec(x_422); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_435 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_435, 0, x_2); +x_436 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__2; +x_437 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_437, 0, x_436); +lean_ctor_set(x_437, 1, x_435); +x_438 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__2___closed__2; +x_439 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_439, 0, x_437); +lean_ctor_set(x_439, 1, x_438); +x_440 = l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3___rarg(x_439, x_8, x_9, x_10, x_11, x_426); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_441 = !lean_is_exclusive(x_440); +if (x_441 == 0) +{ +return x_440; +} +else +{ +lean_object* x_442; lean_object* x_443; lean_object* x_444; +x_442 = lean_ctor_get(x_440, 0); +x_443 = lean_ctor_get(x_440, 1); +lean_inc(x_443); +lean_inc(x_442); +lean_dec(x_440); +x_444 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_444, 0, x_442); +lean_ctor_set(x_444, 1, x_443); +return x_444; +} +} +} +} +else +{ +uint8_t x_451; +lean_dec(x_422); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -8943,82 +10004,29 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_582 = !lean_is_exclusive(x_572); -if (x_582 == 0) +x_451 = !lean_is_exclusive(x_423); +if (x_451 == 0) { -return x_572; +return x_423; } else { -lean_object* x_583; lean_object* x_584; lean_object* x_585; -x_583 = lean_ctor_get(x_572, 0); -x_584 = lean_ctor_get(x_572, 1); -lean_inc(x_584); -lean_inc(x_583); -lean_dec(x_572); -x_585 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_585, 0, x_583); -lean_ctor_set(x_585, 1, x_584); -return x_585; +lean_object* x_452; lean_object* x_453; lean_object* x_454; +x_452 = lean_ctor_get(x_423, 0); +x_453 = lean_ctor_get(x_423, 1); +lean_inc(x_453); +lean_inc(x_452); +lean_dec(x_423); +x_454 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_454, 0, x_452); +lean_ctor_set(x_454, 1, x_453); +return x_454; } } } else { -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; uint8_t x_595; -lean_dec(x_570); -lean_dec(x_569); -lean_dec(x_568); -lean_dec(x_567); -lean_dec(x_562); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_586 = l_System_FilePath_dirName___closed__1; -x_587 = l_Lean_Name_toStringWithSep___main(x_586, x_2); -x_588 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_588, 0, x_587); -x_589 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_589, 0, x_588); -x_590 = l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__3; -x_591 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_591, 0, x_590); -lean_ctor_set(x_591, 1, x_589); -x_592 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__3___closed__3; -x_593 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_593, 0, x_591); -lean_ctor_set(x_593, 1, x_592); -x_594 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_593, x_8, x_9, x_10, x_11, x_566); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_595 = !lean_is_exclusive(x_594); -if (x_595 == 0) -{ -return x_594; -} -else -{ -lean_object* x_596; lean_object* x_597; lean_object* x_598; -x_596 = lean_ctor_get(x_594, 0); -x_597 = lean_ctor_get(x_594, 1); -lean_inc(x_597); -lean_inc(x_596); -lean_dec(x_594); -x_598 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_598, 0, x_596); -lean_ctor_set(x_598, 1, x_597); -return x_598; -} -} -} -} -else -{ -uint8_t x_605; -lean_dec(x_562); +uint8_t x_455; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -9028,149 +10036,143 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_605 = !lean_is_exclusive(x_563); -if (x_605 == 0) +x_455 = !lean_is_exclusive(x_419); +if (x_455 == 0) { -return x_563; +return x_419; } else { -lean_object* x_606; lean_object* x_607; lean_object* x_608; -x_606 = lean_ctor_get(x_563, 0); -x_607 = lean_ctor_get(x_563, 1); -lean_inc(x_607); -lean_inc(x_606); -lean_dec(x_563); -x_608 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_608, 0, x_606); -lean_ctor_set(x_608, 1, x_607); -return x_608; -} -} -} -else -{ -uint8_t x_609; -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_609 = !lean_is_exclusive(x_559); -if (x_609 == 0) -{ -return x_559; -} -else -{ -lean_object* x_610; lean_object* x_611; lean_object* x_612; -x_610 = lean_ctor_get(x_559, 0); -x_611 = lean_ctor_get(x_559, 1); -lean_inc(x_611); -lean_inc(x_610); -lean_dec(x_559); -x_612 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_612, 0, x_610); -lean_ctor_set(x_612, 1, x_611); -return x_612; +lean_object* x_456; lean_object* x_457; lean_object* x_458; +x_456 = lean_ctor_get(x_419, 0); +x_457 = lean_ctor_get(x_419, 1); +lean_inc(x_457); +lean_inc(x_456); +lean_dec(x_419); +x_458 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_458, 0, x_456); +lean_ctor_set(x_458, 1, x_457); +return x_458; } } } default: { -lean_object* x_613; +lean_object* x_459; lean_dec(x_7); lean_inc(x_2); -x_613 = l___private_Lean_Meta_RecursorInfo_3__checkMotive(x_2, x_5, x_6, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_613) == 0) +x_459 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive(x_2, x_5, x_6, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_459) == 0) { -lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; -x_614 = lean_ctor_get(x_613, 1); -lean_inc(x_614); -lean_dec(x_613); -x_615 = lean_unsigned_to_nat(0u); -x_616 = l___private_Lean_Meta_RecursorInfo_4__getNumParams___main(x_4, x_5, x_615); +lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; +x_460 = lean_ctor_get(x_459, 1); +lean_inc(x_460); +lean_dec(x_459); +x_461 = lean_unsigned_to_nat(0u); +x_462 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getNumParams(x_4, x_5, x_461); lean_inc(x_2); -x_617 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim(x_2, x_3, x_4, x_5, x_6, x_8, x_9, x_10, x_11, x_614); -if (lean_obj_tag(x_617) == 0) +x_463 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim(x_2, x_3, x_4, x_5, x_6, x_8, x_9, x_10, x_11, x_460); +if (lean_obj_tag(x_463) == 0) { -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_654; -x_618 = lean_ctor_get(x_617, 0); -lean_inc(x_618); -x_619 = lean_ctor_get(x_618, 1); -lean_inc(x_619); -x_620 = lean_ctor_get(x_617, 1); -lean_inc(x_620); -lean_dec(x_617); -x_621 = lean_ctor_get(x_618, 0); -lean_inc(x_621); -lean_dec(x_618); -x_622 = lean_ctor_get(x_619, 0); -lean_inc(x_622); -x_623 = lean_ctor_get(x_619, 1); -lean_inc(x_623); -lean_dec(x_619); -x_654 = lean_unbox(x_623); -if (x_654 == 0) +lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; uint8_t x_486; +x_464 = lean_ctor_get(x_463, 0); +lean_inc(x_464); +x_465 = lean_ctor_get(x_464, 1); +lean_inc(x_465); +x_466 = lean_ctor_get(x_463, 1); +lean_inc(x_466); +lean_dec(x_463); +x_467 = lean_ctor_get(x_464, 0); +lean_inc(x_467); +lean_dec(x_464); +x_468 = lean_ctor_get(x_465, 0); +lean_inc(x_468); +x_469 = lean_ctor_get(x_465, 1); +lean_inc(x_469); +lean_dec(x_465); +x_486 = lean_unbox(x_469); +if (x_486 == 0) { -lean_object* x_655; -x_655 = lean_array_get_size(x_6); -x_624 = x_655; -goto block_653; +lean_object* x_487; +x_487 = lean_array_get_size(x_6); +x_470 = x_487; +goto block_485; } else { -lean_object* x_656; lean_object* x_657; lean_object* x_658; -x_656 = lean_array_get_size(x_6); -x_657 = lean_unsigned_to_nat(1u); -x_658 = lean_nat_sub(x_656, x_657); -lean_dec(x_656); -x_624 = x_658; -goto block_653; +lean_object* x_488; lean_object* x_489; lean_object* x_490; +x_488 = lean_array_get_size(x_6); +x_489 = lean_unsigned_to_nat(1u); +x_490 = lean_nat_sub(x_488, x_489); +lean_dec(x_488); +x_470 = x_490; +goto block_485; } -block_653: +block_485: { -uint8_t x_625; -x_625 = lean_nat_dec_lt(x_622, x_624); -if (x_625 == 0) +uint8_t x_471; +x_471 = lean_nat_dec_lt(x_468, x_470); +if (x_471 == 0) { -lean_object* x_626; -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_626 = l_Lean_Meta_inferType___at___private_Lean_Meta_InferType_1__inferAppType___spec__1(x_621, x_8, x_9, x_10, x_11, x_620); -if (lean_obj_tag(x_626) == 0) -{ -lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; uint8_t x_634; lean_object* x_635; -x_627 = lean_ctor_get(x_626, 0); -lean_inc(x_627); -x_628 = lean_ctor_get(x_626, 1); -lean_inc(x_628); -lean_dec(x_626); -x_629 = l_Lean_Expr_getAppNumArgsAux___main(x_627, x_615); -x_630 = l_Lean_Expr_getAppArgs___closed__1; -lean_inc(x_629); -x_631 = lean_mk_array(x_629, x_630); -x_632 = lean_unsigned_to_nat(1u); -x_633 = lean_nat_sub(x_629, x_632); -lean_dec(x_629); -x_634 = lean_unbox(x_623); -lean_dec(x_623); -x_635 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__1(x_1, x_2, x_4, x_5, x_6, x_616, x_622, x_634, x_624, x_627, x_631, x_633, x_8, x_9, x_10, x_11, x_628); -return x_635; +lean_object* x_472; uint8_t x_473; lean_object* x_474; +x_472 = lean_box(0); +x_473 = lean_unbox(x_469); +lean_dec(x_469); +x_474 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__2___lambda__1(x_467, x_1, x_2, x_4, x_5, x_6, x_462, x_468, x_473, x_470, x_472, x_8, x_9, x_10, x_11, x_466); +return x_474; } else { -uint8_t x_636; -lean_dec(x_624); -lean_dec(x_623); -lean_dec(x_622); -lean_dec(x_616); +lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; uint8_t x_481; +lean_dec(x_470); +lean_dec(x_469); +lean_dec(x_468); +lean_dec(x_467); +lean_dec(x_462); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_475 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_475, 0, x_2); +x_476 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__2; +x_477 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_477, 0, x_476); +lean_ctor_set(x_477, 1, x_475); +x_478 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__2___closed__2; +x_479 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_479, 0, x_477); +lean_ctor_set(x_479, 1, x_478); +x_480 = l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3___rarg(x_479, x_8, x_9, x_10, x_11, x_466); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_481 = !lean_is_exclusive(x_480); +if (x_481 == 0) +{ +return x_480; +} +else +{ +lean_object* x_482; lean_object* x_483; lean_object* x_484; +x_482 = lean_ctor_get(x_480, 0); +x_483 = lean_ctor_get(x_480, 1); +lean_inc(x_483); +lean_inc(x_482); +lean_dec(x_480); +x_484 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_484, 0, x_482); +lean_ctor_set(x_484, 1, x_483); +return x_484; +} +} +} +} +else +{ +uint8_t x_491; +lean_dec(x_462); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -9180,82 +10182,29 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_636 = !lean_is_exclusive(x_626); -if (x_636 == 0) +x_491 = !lean_is_exclusive(x_463); +if (x_491 == 0) { -return x_626; +return x_463; } else { -lean_object* x_637; lean_object* x_638; lean_object* x_639; -x_637 = lean_ctor_get(x_626, 0); -x_638 = lean_ctor_get(x_626, 1); -lean_inc(x_638); -lean_inc(x_637); -lean_dec(x_626); -x_639 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_639, 0, x_637); -lean_ctor_set(x_639, 1, x_638); -return x_639; +lean_object* x_492; lean_object* x_493; lean_object* x_494; +x_492 = lean_ctor_get(x_463, 0); +x_493 = lean_ctor_get(x_463, 1); +lean_inc(x_493); +lean_inc(x_492); +lean_dec(x_463); +x_494 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_494, 0, x_492); +lean_ctor_set(x_494, 1, x_493); +return x_494; } } } else { -lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; uint8_t x_649; -lean_dec(x_624); -lean_dec(x_623); -lean_dec(x_622); -lean_dec(x_621); -lean_dec(x_616); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_640 = l_System_FilePath_dirName___closed__1; -x_641 = l_Lean_Name_toStringWithSep___main(x_640, x_2); -x_642 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_642, 0, x_641); -x_643 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_643, 0, x_642); -x_644 = l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__3; -x_645 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_645, 0, x_644); -lean_ctor_set(x_645, 1, x_643); -x_646 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__3___closed__3; -x_647 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_647, 0, x_645); -lean_ctor_set(x_647, 1, x_646); -x_648 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_647, x_8, x_9, x_10, x_11, x_620); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_649 = !lean_is_exclusive(x_648); -if (x_649 == 0) -{ -return x_648; -} -else -{ -lean_object* x_650; lean_object* x_651; lean_object* x_652; -x_650 = lean_ctor_get(x_648, 0); -x_651 = lean_ctor_get(x_648, 1); -lean_inc(x_651); -lean_inc(x_650); -lean_dec(x_648); -x_652 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_652, 0, x_650); -lean_ctor_set(x_652, 1, x_651); -return x_652; -} -} -} -} -else -{ -uint8_t x_659; -lean_dec(x_616); +uint8_t x_495; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -9265,62 +10214,30 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_659 = !lean_is_exclusive(x_617); -if (x_659 == 0) +x_495 = !lean_is_exclusive(x_459); +if (x_495 == 0) { -return x_617; +return x_459; } else { -lean_object* x_660; lean_object* x_661; lean_object* x_662; -x_660 = lean_ctor_get(x_617, 0); -x_661 = lean_ctor_get(x_617, 1); -lean_inc(x_661); -lean_inc(x_660); -lean_dec(x_617); -x_662 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_662, 0, x_660); -lean_ctor_set(x_662, 1, x_661); -return x_662; -} -} -} -else -{ -uint8_t x_663; -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_663 = !lean_is_exclusive(x_613); -if (x_663 == 0) -{ -return x_613; -} -else -{ -lean_object* x_664; lean_object* x_665; lean_object* x_666; -x_664 = lean_ctor_get(x_613, 0); -x_665 = lean_ctor_get(x_613, 1); -lean_inc(x_665); -lean_inc(x_664); -lean_dec(x_613); -x_666 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_666, 0, x_664); -lean_ctor_set(x_666, 1, x_665); -return x_666; +lean_object* x_496; lean_object* x_497; lean_object* x_498; +x_496 = lean_ctor_get(x_459, 0); +x_497 = lean_ctor_get(x_459, 1); +lean_inc(x_497); +lean_inc(x_496); +lean_dec(x_459); +x_498 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_498, 0, x_496); +lean_ctor_set(x_498, 1, x_497); +return x_498; } } } } } } -lean_object* l___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___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* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___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_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; @@ -9332,17 +10249,17 @@ x_14 = lean_mk_array(x_12, x_13); x_15 = lean_unsigned_to_nat(1u); x_16 = lean_nat_sub(x_12, x_15); lean_dec(x_12); -x_17 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__3(x_1, x_2, x_3, x_4, x_5, x_14, x_16, x_6, x_7, x_8, x_9, x_10); +x_17 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__2(x_1, x_2, x_3, x_4, x_5, x_14, x_16, x_6, x_7, x_8, x_9, x_10); return x_17; } } -lean_object* l___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux(lean_object* x_1, 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; x_8 = l_Lean_ConstantInfo_name(x_1); lean_inc(x_8); -x_9 = l___private_Lean_Meta_RecursorInfo_2__getMajorPosIfAuxRecursor_x3f(x_8, x_2, x_3, x_4, x_5, x_6, x_7); +x_9 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosIfAuxRecursor_x3f(x_8, x_2, 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; @@ -9352,11 +10269,11 @@ x_11 = lean_ctor_get(x_9, 1); lean_inc(x_11); lean_dec(x_9); x_12 = l_Lean_ConstantInfo_type(x_1); -x_13 = lean_alloc_closure((void*)(l___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___lambda__1___boxed), 10, 3); +x_13 = lean_alloc_closure((void*)(l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___lambda__1___boxed), 10, 3); lean_closure_set(x_13, 0, x_1); lean_closure_set(x_13, 1, x_8); lean_closure_set(x_13, 2, x_10); -x_14 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNamesImp___spec__3___rarg(x_12, x_13, x_3, x_4, x_5, x_6, x_11); +x_14 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__5___rarg(x_12, x_13, x_3, x_4, x_5, x_6, x_11); return x_14; } else @@ -9389,7 +10306,7 @@ return x_18; } } } -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__1___lambda__1___boxed(lean_object** _args) { +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__1___lambda__1___boxed(lean_object** _args) { lean_object* x_1 = _args[0]; lean_object* x_2 = _args[1]; lean_object* x_3 = _args[2]; @@ -9415,7 +10332,7 @@ _start: uint8_t x_21; lean_object* x_22; x_21 = lean_unbox(x_11); lean_dec(x_11); -x_22 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___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_21, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20); +x_22 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___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_21, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20); lean_dec(x_15); lean_dec(x_14); lean_dec(x_7); @@ -9426,7 +10343,7 @@ lean_dec(x_2); return x_22; } } -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__1___boxed(lean_object** _args) { +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__1___boxed(lean_object** _args) { lean_object* x_1 = _args[0]; lean_object* x_2 = _args[1]; lean_object* x_3 = _args[2]; @@ -9449,57 +10366,103 @@ _start: uint8_t x_18; lean_object* x_19; x_18 = lean_unbox(x_8); lean_dec(x_8); -x_19 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_18, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +x_19 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_18, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); return x_19; } } -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__2___boxed(lean_object** _args) { -lean_object* x_1 = _args[0]; -lean_object* x_2 = _args[1]; -lean_object* x_3 = _args[2]; -lean_object* x_4 = _args[3]; -lean_object* x_5 = _args[4]; -lean_object* x_6 = _args[5]; -lean_object* x_7 = _args[6]; -lean_object* x_8 = _args[7]; -lean_object* x_9 = _args[8]; -lean_object* x_10 = _args[9]; -lean_object* x_11 = _args[10]; -lean_object* x_12 = _args[11]; -lean_object* x_13 = _args[12]; -lean_object* x_14 = _args[13]; -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* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___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, lean_object* x_14, lean_object* x_15, lean_object* x_16) { _start: { -uint8_t x_19; lean_object* x_20; -x_19 = lean_unbox(x_8); -lean_dec(x_8); -x_20 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_19, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18); -return x_20; +uint8_t x_17; lean_object* x_18; +x_17 = lean_unbox(x_9); +lean_dec(x_9); +x_18 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__2___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_17, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +lean_dec(x_11); +return x_18; } } -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___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, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___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) { _start: { lean_object* x_13; -x_13 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__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 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___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); lean_dec(x_3); return x_13; } } -lean_object* l___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___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* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___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___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_3); return x_11; } } -static lean_object* _init_l___private_Lean_Meta_RecursorInfo_13__syntaxToMajorPos___closed__1() { +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_syntaxToMajorPos_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_syntaxToMajorPos_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_syntaxToMajorPos_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_syntaxToMajorPos_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 1) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_apply_2(x_2, x_4, x_5); +return x_6; +} +else +{ +lean_object* x_7; +lean_dec(x_2); +x_7 = lean_apply_1(x_3, x_1); +return x_7; +} +} +} +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_syntaxToMajorPos_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_syntaxToMajorPos_match__2___rarg), 3, 0); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_syntaxToMajorPos___closed__1() { _start: { lean_object* x_1; @@ -9507,17 +10470,17 @@ x_1 = lean_mk_string("unexpected kind of argument"); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_RecursorInfo_13__syntaxToMajorPos___closed__2() { +static lean_object* _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_syntaxToMajorPos___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_RecursorInfo_13__syntaxToMajorPos___closed__1; +x_1 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_syntaxToMajorPos___closed__1; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_RecursorInfo_13__syntaxToMajorPos___closed__3() { +static lean_object* _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_syntaxToMajorPos___closed__3() { _start: { lean_object* x_1; @@ -9525,17 +10488,17 @@ x_1 = lean_mk_string("major premise position must be greater than 0"); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_RecursorInfo_13__syntaxToMajorPos___closed__4() { +static lean_object* _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_syntaxToMajorPos___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_RecursorInfo_13__syntaxToMajorPos___closed__3; +x_1 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_syntaxToMajorPos___closed__3; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Meta_RecursorInfo_13__syntaxToMajorPos(lean_object* x_1) { +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_syntaxToMajorPos(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 1) @@ -9557,7 +10520,7 @@ lean_dec(x_7); if (lean_obj_tag(x_9) == 0) { lean_object* x_10; -x_10 = l___private_Lean_Meta_RecursorInfo_13__syntaxToMajorPos___closed__2; +x_10 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_syntaxToMajorPos___closed__2; return x_10; } else @@ -9581,7 +10544,7 @@ else { lean_object* x_16; lean_dec(x_11); -x_16 = l___private_Lean_Meta_RecursorInfo_13__syntaxToMajorPos___closed__4; +x_16 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_syntaxToMajorPos___closed__4; return x_16; } } @@ -9589,33 +10552,63 @@ return x_16; else { lean_object* x_17; -x_17 = l___private_Lean_Meta_RecursorInfo_13__syntaxToMajorPos___closed__2; +x_17 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_syntaxToMajorPos___closed__2; return x_17; } } else { lean_object* x_18; -x_18 = l___private_Lean_Meta_RecursorInfo_13__syntaxToMajorPos___closed__2; +x_18 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_syntaxToMajorPos___closed__2; return x_18; } } } -lean_object* l___private_Lean_Meta_RecursorInfo_13__syntaxToMajorPos___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_syntaxToMajorPos___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l___private_Lean_Meta_RecursorInfo_13__syntaxToMajorPos(x_1); +x_2 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_syntaxToMajorPos(x_1); lean_dec(x_1); return x_2; } } -lean_object* l___private_Lean_Meta_RecursorInfo_14__mkRecursorInfoCore(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoCore_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 7) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = lean_apply_1(x_3, x_1); +return x_6; +} +} +} +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoCore_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoCore_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoCore(lean_object* x_1, 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_inc(x_1); -x_8 = l_Lean_getConstInfo___at_Lean_Meta_getParamNamesImp___spec__1(x_1, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Lean_getConstInfo___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__2(x_1, x_3, x_4, x_5, x_6, x_7); if (lean_obj_tag(x_8) == 0) { lean_object* x_9; @@ -9631,7 +10624,7 @@ lean_dec(x_8); x_11 = lean_ctor_get(x_9, 0); lean_inc(x_11); lean_dec(x_9); -x_12 = l___private_Lean_Meta_RecursorInfo_1__mkRecursorInfoForKernelRec(x_1, x_11, x_3, x_4, x_5, x_6, x_10); +x_12 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec(x_1, x_11, x_3, x_4, x_5, x_6, x_10); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -9645,7 +10638,7 @@ lean_dec(x_1); x_13 = lean_ctor_get(x_8, 1); lean_inc(x_13); lean_dec(x_8); -x_14 = l___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux(x_9, x_2, x_3, x_4, x_5, x_6, x_13); +x_14 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux(x_9, x_2, x_3, x_4, x_5, x_6, x_13); return x_14; } } @@ -9679,7 +10672,7 @@ return x_18; } } } -lean_object* l_Lean_ofExcept___at_Lean_Meta_mkRecursorAttr___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_ofExcept___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { if (lean_obj_tag(x_1) == 0) @@ -9706,7 +10699,7 @@ return x_11; } } } -lean_object* l_Std_RBNode_fold___main___at_Lean_Meta_mkRecursorAttr___spec__3(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_RBNode_fold___main___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__3(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -9720,7 +10713,7 @@ x_3 = lean_ctor_get(x_2, 0); x_4 = lean_ctor_get(x_2, 1); x_5 = lean_ctor_get(x_2, 2); x_6 = lean_ctor_get(x_2, 3); -x_7 = l_Std_RBNode_fold___main___at_Lean_Meta_mkRecursorAttr___spec__3(x_1, x_3); +x_7 = l_Std_RBNode_fold___main___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__3(x_1, x_3); lean_inc(x_5); lean_inc(x_4); x_8 = lean_alloc_ctor(0, 2, 0); @@ -9733,7 +10726,7 @@ goto _start; } } } -static lean_object* _init_l___private_Init_Data_Array_QSort_1__qpartitionAux___main___at_Lean_Meta_mkRecursorAttr___spec__5___closed__1() { +static lean_object* _init_l___private_Init_Data_Array_QSort_1__qpartitionAux___main___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__5___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -9745,7 +10738,7 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* l___private_Init_Data_Array_QSort_1__qpartitionAux___main___at_Lean_Meta_mkRecursorAttr___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Init_Data_Array_QSort_1__qpartitionAux___main___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__5(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; @@ -9763,7 +10756,7 @@ return x_8; else { lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_9 = l___private_Init_Data_Array_QSort_1__qpartitionAux___main___at_Lean_Meta_mkRecursorAttr___spec__5___closed__1; +x_9 = l___private_Init_Data_Array_QSort_1__qpartitionAux___main___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__5___closed__1; x_10 = lean_array_get(x_9, x_3, x_5); x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); @@ -9797,7 +10790,7 @@ goto _start; } } } -lean_object* l_Array_qsortAux___main___at_Lean_Meta_mkRecursorAttr___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_qsortAux___main___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_13; @@ -9814,7 +10807,7 @@ x_14 = lean_nat_add(x_2, x_3); x_15 = lean_unsigned_to_nat(2u); x_16 = lean_nat_div(x_14, x_15); lean_dec(x_14); -x_42 = l___private_Init_Data_Array_QSort_1__qpartitionAux___main___at_Lean_Meta_mkRecursorAttr___spec__5___closed__1; +x_42 = l___private_Init_Data_Array_QSort_1__qpartitionAux___main___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__5___closed__1; x_43 = lean_array_get(x_42, x_1, x_16); x_44 = lean_array_get(x_42, x_1, x_2); x_45 = lean_ctor_get(x_43, 0); @@ -9841,7 +10834,7 @@ goto block_41; block_41: { lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; -x_18 = l___private_Init_Data_Array_QSort_1__qpartitionAux___main___at_Lean_Meta_mkRecursorAttr___spec__5___closed__1; +x_18 = l___private_Init_Data_Array_QSort_1__qpartitionAux___main___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__5___closed__1; x_19 = lean_array_get(x_18, x_17, x_3); x_20 = lean_array_get(x_18, x_17, x_2); x_21 = lean_ctor_get(x_19, 0); @@ -9866,7 +10859,7 @@ if (x_26 == 0) lean_object* x_27; lean_dec(x_16); lean_inc_n(x_2, 2); -x_27 = l___private_Init_Data_Array_QSort_1__qpartitionAux___main___at_Lean_Meta_mkRecursorAttr___spec__5(x_3, x_19, x_17, x_2, x_2); +x_27 = l___private_Init_Data_Array_QSort_1__qpartitionAux___main___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__5(x_3, x_19, x_17, x_2, x_2); lean_dec(x_19); x_4 = x_27; goto block_12; @@ -9879,7 +10872,7 @@ x_28 = lean_array_swap(x_17, x_16, x_3); lean_dec(x_16); x_29 = lean_array_get(x_18, x_28, x_3); lean_inc_n(x_2, 2); -x_30 = l___private_Init_Data_Array_QSort_1__qpartitionAux___main___at_Lean_Meta_mkRecursorAttr___spec__5(x_3, x_29, x_28, x_2, x_2); +x_30 = l___private_Init_Data_Array_QSort_1__qpartitionAux___main___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__5(x_3, x_29, x_28, x_2, x_2); lean_dec(x_29); x_4 = x_30; goto block_12; @@ -9906,7 +10899,7 @@ if (x_36 == 0) lean_object* x_37; lean_dec(x_16); lean_inc_n(x_2, 2); -x_37 = l___private_Init_Data_Array_QSort_1__qpartitionAux___main___at_Lean_Meta_mkRecursorAttr___spec__5(x_3, x_33, x_31, x_2, x_2); +x_37 = l___private_Init_Data_Array_QSort_1__qpartitionAux___main___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__5(x_3, x_33, x_31, x_2, x_2); lean_dec(x_33); x_4 = x_37; goto block_12; @@ -9919,7 +10912,7 @@ x_38 = lean_array_swap(x_31, x_16, x_3); lean_dec(x_16); x_39 = lean_array_get(x_18, x_38, x_3); lean_inc_n(x_2, 2); -x_40 = l___private_Init_Data_Array_QSort_1__qpartitionAux___main___at_Lean_Meta_mkRecursorAttr___spec__5(x_3, x_39, x_38, x_2, x_2); +x_40 = l___private_Init_Data_Array_QSort_1__qpartitionAux___main___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__5(x_3, x_39, x_38, x_2, x_2); lean_dec(x_39); x_4 = x_40; goto block_12; @@ -9939,7 +10932,7 @@ x_7 = lean_nat_dec_le(x_3, x_5); if (x_7 == 0) { lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_8 = l_Array_qsortAux___main___at_Lean_Meta_mkRecursorAttr___spec__4(x_6, x_2, x_5); +x_8 = l_Array_qsortAux___main___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__4(x_6, x_2, x_5); x_9 = lean_unsigned_to_nat(1u); x_10 = lean_nat_add(x_5, x_9); lean_dec(x_5); @@ -9956,7 +10949,7 @@ return x_6; } } } -uint8_t l_Array_anyRangeMAux___main___at_Lean_Meta_mkRecursorAttr___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +uint8_t l_Array_anyRangeMAux___main___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__7(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; @@ -9995,7 +10988,7 @@ return x_11; } } } -lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_Meta_mkRecursorAttr___spec__6(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__6(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; uint8_t x_5; @@ -10009,7 +11002,7 @@ x_6 = lean_ctor_get(x_4, 0); x_7 = lean_ctor_get(x_4, 1); x_8 = lean_array_get_size(x_6); x_9 = lean_unsigned_to_nat(0u); -x_10 = l_Array_anyRangeMAux___main___at_Lean_Meta_mkRecursorAttr___spec__7(x_1, x_6, x_6, x_8, x_9); +x_10 = l_Array_anyRangeMAux___main___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__7(x_1, x_6, x_6, x_8, x_9); lean_dec(x_8); lean_dec(x_6); if (x_10 == 0) @@ -10138,7 +11131,7 @@ lean_inc(x_45); lean_dec(x_4); x_47 = lean_array_get_size(x_45); x_48 = lean_unsigned_to_nat(0u); -x_49 = l_Array_anyRangeMAux___main___at_Lean_Meta_mkRecursorAttr___spec__7(x_1, x_45, x_45, x_47, x_48); +x_49 = l_Array_anyRangeMAux___main___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__7(x_1, x_45, x_45, x_47, x_48); lean_dec(x_47); lean_dec(x_45); if (x_49 == 0) @@ -10259,38 +11252,38 @@ return x_83; } } } -lean_object* l_Lean_registerParametricAttribute___at_Lean_Meta_mkRecursorAttr___spec__2___lambda__1(lean_object* x_1) { +lean_object* l_Lean_registerParametricAttribute___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__2___lambda__1(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; lean_object* x_7; lean_object* x_8; x_2 = l_Array_empty___closed__1; -x_3 = l_Std_RBNode_fold___main___at_Lean_Meta_mkRecursorAttr___spec__3(x_2, x_1); +x_3 = l_Std_RBNode_fold___main___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__3(x_2, x_1); x_4 = lean_array_get_size(x_3); x_5 = lean_unsigned_to_nat(1u); x_6 = lean_nat_sub(x_4, x_5); lean_dec(x_4); x_7 = lean_unsigned_to_nat(0u); -x_8 = l_Array_qsortAux___main___at_Lean_Meta_mkRecursorAttr___spec__4(x_3, x_7, x_6); +x_8 = l_Array_qsortAux___main___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__4(x_3, x_7, x_6); lean_dec(x_6); return x_8; } } -static lean_object* _init_l_Lean_registerParametricAttribute___at_Lean_Meta_mkRecursorAttr___spec__2___closed__1() { +static lean_object* _init_l_Lean_registerParametricAttribute___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__2___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_registerParametricAttribute___at_Lean_Meta_mkRecursorAttr___spec__2___lambda__1___boxed), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_registerParametricAttribute___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__2___lambda__1___boxed), 1, 0); return x_1; } } -lean_object* l_Lean_registerParametricAttribute___at_Lean_Meta_mkRecursorAttr___spec__2(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* l_Lean_registerParametricAttribute___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t 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; x_7 = l_Lean_registerParametricAttribute___rarg___closed__1; x_8 = l_Lean_registerParametricAttribute___rarg___closed__2; x_9 = l_Lean_registerParametricAttribute___rarg___closed__3; -x_10 = l_Lean_registerParametricAttribute___at_Lean_Meta_mkRecursorAttr___spec__2___closed__1; +x_10 = l_Lean_registerParametricAttribute___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__2___closed__1; x_11 = l_Lean_registerParametricAttribute___rarg___closed__4; lean_inc(x_1); x_12 = lean_alloc_ctor(0, 6, 0); @@ -10300,7 +11293,7 @@ lean_ctor_set(x_12, 2, x_8); lean_ctor_set(x_12, 3, x_9); lean_ctor_set(x_12, 4, x_10); lean_ctor_set(x_12, 5, x_11); -x_13 = l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_Meta_mkRecursorAttr___spec__6(x_12, x_6); +x_13 = l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__6(x_12, x_6); 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; @@ -10406,17 +11399,17 @@ return x_32; } } } -lean_object* l_Lean_Meta_mkRecursorAttr___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* l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____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; -x_7 = l___private_Lean_Meta_RecursorInfo_13__syntaxToMajorPos(x_2); -x_8 = l_Lean_ofExcept___at_Lean_Meta_mkRecursorAttr___spec__1(x_7, x_3, x_4, x_5, x_6); +x_7 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_syntaxToMajorPos(x_2); +x_8 = l_Lean_ofExcept___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__1(x_7, x_3, x_4, x_5, x_6); lean_dec(x_7); return x_8; } } -lean_object* l_Lean_Meta_mkRecursorAttr___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* l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____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: { 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; @@ -10431,7 +11424,7 @@ lean_inc(x_11); lean_dec(x_9); x_12 = l_Lean_Meta_hasEval___rarg___closed__2; lean_inc(x_10); -x_13 = l___private_Lean_Meta_RecursorInfo_14__mkRecursorInfoCore(x_1, x_7, x_12, x_10, x_4, x_5, x_11); +x_13 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoCore(x_1, x_7, x_12, x_10, x_4, x_5, x_11); if (lean_obj_tag(x_13) == 0) { lean_object* x_14; lean_object* x_15; uint8_t x_16; @@ -10488,7 +11481,7 @@ return x_25; } } } -static lean_object* _init_l_Lean_Meta_mkRecursorAttr___closed__1() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____closed__1() { _start: { lean_object* x_1; @@ -10496,17 +11489,17 @@ x_1 = lean_mk_string("recursor"); return x_1; } } -static lean_object* _init_l_Lean_Meta_mkRecursorAttr___closed__2() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____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_mkRecursorAttr___closed__1; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_mkRecursorAttr___closed__3() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____closed__3() { _start: { lean_object* x_1; @@ -10514,40 +11507,40 @@ x_1 = lean_mk_string("user defined recursor, numerical parameter specifies posit return x_1; } } -static lean_object* _init_l_Lean_Meta_mkRecursorAttr___closed__4() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____closed__4() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Meta_mkRecursorAttr___lambda__1___boxed), 6, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____lambda__1___boxed), 6, 0); return x_1; } } -static lean_object* _init_l_Lean_Meta_mkRecursorAttr___closed__5() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____closed__5() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Meta_mkRecursorAttr___lambda__2___boxed), 6, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____lambda__2___boxed), 6, 0); return x_1; } } -lean_object* l_Lean_Meta_mkRecursorAttr(lean_object* x_1) { +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; lean_object* x_7; -x_2 = l_Lean_Meta_mkRecursorAttr___closed__2; -x_3 = l_Lean_Meta_mkRecursorAttr___closed__3; -x_4 = l_Lean_Meta_mkRecursorAttr___closed__4; -x_5 = l_Lean_Meta_mkRecursorAttr___closed__5; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____closed__2; +x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____closed__3; +x_4 = l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____closed__4; +x_5 = l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____closed__5; x_6 = 0; -x_7 = l_Lean_registerParametricAttribute___at_Lean_Meta_mkRecursorAttr___spec__2(x_2, x_3, x_4, x_5, x_6, x_1); +x_7 = l_Lean_registerParametricAttribute___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__2(x_2, x_3, x_4, x_5, x_6, x_1); return x_7; } } -lean_object* l_Lean_ofExcept___at_Lean_Meta_mkRecursorAttr___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* l_Lean_ofExcept___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__1___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_ofExcept___at_Lean_Meta_mkRecursorAttr___spec__1(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Lean_ofExcept___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__1(x_1, x_2, x_3, x_4, x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); @@ -10555,39 +11548,39 @@ lean_dec(x_1); return x_6; } } -lean_object* l_Std_RBNode_fold___main___at_Lean_Meta_mkRecursorAttr___spec__3___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_RBNode_fold___main___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__3___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Std_RBNode_fold___main___at_Lean_Meta_mkRecursorAttr___spec__3(x_1, x_2); +x_3 = l_Std_RBNode_fold___main___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__3(x_1, x_2); lean_dec(x_2); return x_3; } } -lean_object* l___private_Init_Data_Array_QSort_1__qpartitionAux___main___at_Lean_Meta_mkRecursorAttr___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* l___private_Init_Data_Array_QSort_1__qpartitionAux___main___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__5___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___private_Init_Data_Array_QSort_1__qpartitionAux___main___at_Lean_Meta_mkRecursorAttr___spec__5(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Init_Data_Array_QSort_1__qpartitionAux___main___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__5(x_1, x_2, x_3, x_4, x_5); lean_dec(x_2); lean_dec(x_1); return x_6; } } -lean_object* l_Array_qsortAux___main___at_Lean_Meta_mkRecursorAttr___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_qsortAux___main___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Array_qsortAux___main___at_Lean_Meta_mkRecursorAttr___spec__4(x_1, x_2, x_3); +x_4 = l_Array_qsortAux___main___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__4(x_1, x_2, x_3); lean_dec(x_3); return x_4; } } -lean_object* l_Array_anyRangeMAux___main___at_Lean_Meta_mkRecursorAttr___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* l_Array_anyRangeMAux___main___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__7___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 = l_Array_anyRangeMAux___main___at_Lean_Meta_mkRecursorAttr___spec__7(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Array_anyRangeMAux___main___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__7(x_1, x_2, x_3, x_4, x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); @@ -10596,30 +11589,30 @@ x_7 = lean_box(x_6); return x_7; } } -lean_object* l_Lean_registerParametricAttribute___at_Lean_Meta_mkRecursorAttr___spec__2___lambda__1___boxed(lean_object* x_1) { +lean_object* l_Lean_registerParametricAttribute___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__2___lambda__1___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_registerParametricAttribute___at_Lean_Meta_mkRecursorAttr___spec__2___lambda__1(x_1); +x_2 = l_Lean_registerParametricAttribute___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__2___lambda__1(x_1); lean_dec(x_1); return x_2; } } -lean_object* l_Lean_registerParametricAttribute___at_Lean_Meta_mkRecursorAttr___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* l_Lean_registerParametricAttribute___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____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) { _start: { uint8_t x_7; lean_object* x_8; x_7 = lean_unbox(x_5); lean_dec(x_5); -x_8 = l_Lean_registerParametricAttribute___at_Lean_Meta_mkRecursorAttr___spec__2(x_1, x_2, x_3, x_4, x_7, x_6); +x_8 = l_Lean_registerParametricAttribute___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__2(x_1, x_2, x_3, x_4, x_7, x_6); return x_8; } } -lean_object* l_Lean_Meta_mkRecursorAttr___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* l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____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_mkRecursorAttr___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____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); @@ -10628,11 +11621,11 @@ lean_dec(x_1); return x_7; } } -lean_object* l_Lean_Meta_mkRecursorAttr___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* l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____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_Lean_Meta_mkRecursorAttr___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____lambda__2(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_3); return x_7; } @@ -10657,7 +11650,7 @@ x_7 = lean_nat_add(x_3, x_4); x_8 = lean_unsigned_to_nat(2u); x_9 = lean_nat_div(x_7, x_8); lean_dec(x_7); -x_10 = l___private_Init_Data_Array_QSort_1__qpartitionAux___main___at_Lean_Meta_mkRecursorAttr___spec__5___closed__1; +x_10 = l___private_Init_Data_Array_QSort_1__qpartitionAux___main___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__5___closed__1; x_11 = lean_array_get(x_10, x_1, x_9); x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); @@ -10828,97 +11821,153 @@ lean_dec(x_1); return x_3; } } +lean_object* l_Lean_Meta_mkRecursorInfo_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = lean_apply_1(x_3, x_1); +return x_6; +} +} +} +lean_object* l_Lean_Meta_mkRecursorInfo_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_mkRecursorInfo_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_mkRecursorInfo_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 7) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = lean_apply_1(x_3, x_1); +return x_6; +} +} +} +lean_object* l_Lean_Meta_mkRecursorInfo_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_mkRecursorInfo_match__2___rarg), 3, 0); +return x_2; +} +} lean_object* l_Lean_Meta_mkRecursorInfo(lean_object* x_1, 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_inc(x_1); -x_8 = l_Lean_getConstInfo___at_Lean_Meta_getParamNamesImp___spec__1(x_1, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Lean_getConstInfo___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__2(x_1, x_3, x_4, x_5, x_6, x_7); if (lean_obj_tag(x_8) == 0) { -lean_object* x_9; lean_object* x_10; lean_object* x_11; +lean_object* x_9; x_9 = lean_ctor_get(x_8, 0); lean_inc(x_9); +if (lean_obj_tag(x_9) == 7) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +lean_dec(x_2); x_10 = lean_ctor_get(x_8, 1); lean_inc(x_10); lean_dec(x_8); -if (lean_obj_tag(x_9) == 7) -{ -lean_object* x_20; lean_object* x_21; -lean_dec(x_2); -x_20 = lean_ctor_get(x_9, 0); -lean_inc(x_20); +x_11 = lean_ctor_get(x_9, 0); +lean_inc(x_11); lean_dec(x_9); -x_21 = l___private_Lean_Meta_RecursorInfo_1__mkRecursorInfoForKernelRec(x_1, x_20, x_3, x_4, x_5, x_6, x_10); +x_12 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec(x_1, x_11, x_3, x_4, x_5, x_6, x_10); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_21; +return x_12; } else { if (lean_obj_tag(x_2) == 0) { -lean_object* x_22; -x_22 = lean_box(0); -x_11 = x_22; -goto block_19; -} -else -{ -lean_object* x_23; -lean_dec(x_1); -x_23 = l___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux(x_9, x_2, x_3, x_4, x_5, x_6, x_10); -return x_23; -} -} -block_19: -{ -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_dec(x_11); -x_12 = lean_st_ref_get(x_6, x_10); -x_13 = lean_ctor_get(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; +x_13 = lean_ctor_get(x_8, 1); lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); -lean_inc(x_14); -lean_dec(x_12); -x_15 = lean_ctor_get(x_13, 0); +lean_dec(x_8); +x_14 = lean_st_ref_get(x_6, x_13); +x_15 = lean_ctor_get(x_14, 0); lean_inc(x_15); -lean_dec(x_13); -x_16 = l_Lean_Meta_recursorAttribute; -x_17 = l_Lean_ParametricAttribute_getParam___at_Lean_Meta_getMajorPos_x3f___spec__1(x_16, x_15, x_1); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = lean_ctor_get(x_15, 0); +lean_inc(x_17); lean_dec(x_15); -x_18 = l___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux(x_9, x_17, x_3, x_4, x_5, x_6, x_14); -return x_18; +x_18 = l_Lean_Meta_recursorAttribute; +x_19 = l_Lean_ParametricAttribute_getParam___at_Lean_Meta_getMajorPos_x3f___spec__1(x_18, x_17, x_1); +lean_dec(x_17); +x_20 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux(x_9, x_19, x_3, x_4, x_5, x_6, x_16); +return x_20; +} +else +{ +lean_object* x_21; lean_object* x_22; +lean_dec(x_1); +x_21 = lean_ctor_get(x_8, 1); +lean_inc(x_21); +lean_dec(x_8); +x_22 = l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux(x_9, x_2, x_3, x_4, x_5, x_6, x_21); +return x_22; +} } } else { -uint8_t x_24; +uint8_t x_23; 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_24 = !lean_is_exclusive(x_8); -if (x_24 == 0) +x_23 = !lean_is_exclusive(x_8); +if (x_23 == 0) { return x_8; } else { -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_8, 0); -x_26 = lean_ctor_get(x_8, 1); -lean_inc(x_26); +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_8, 0); +x_25 = lean_ctor_get(x_8, 1); lean_inc(x_25); +lean_inc(x_24); lean_dec(x_8); -x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_25); -lean_ctor_set(x_27, 1, x_26); -return x_27; +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; } } } @@ -10962,185 +12011,129 @@ l_Lean_Meta_binductionOnSuffix = _init_l_Lean_Meta_binductionOnSuffix(); lean_mark_persistent(l_Lean_Meta_binductionOnSuffix); l_Lean_Meta_RecursorUnivLevelPos_hasToString___closed__1 = _init_l_Lean_Meta_RecursorUnivLevelPos_hasToString___closed__1(); lean_mark_persistent(l_Lean_Meta_RecursorUnivLevelPos_hasToString___closed__1); -l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__2___closed__1 = _init_l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__2___closed__1(); -lean_mark_persistent(l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__2___closed__1); -l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__4___closed__1 = _init_l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__4___closed__1(); -lean_mark_persistent(l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__4___closed__1); -l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__8___closed__1 = _init_l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__8___closed__1(); -lean_mark_persistent(l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__8___closed__1); -l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__8___closed__2 = _init_l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__8___closed__2(); -lean_mark_persistent(l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__8___closed__2); -l_Lean_Meta_RecursorInfo_HasToString___closed__1 = _init_l_Lean_Meta_RecursorInfo_HasToString___closed__1(); -lean_mark_persistent(l_Lean_Meta_RecursorInfo_HasToString___closed__1); -l_Lean_Meta_RecursorInfo_HasToString___closed__2 = _init_l_Lean_Meta_RecursorInfo_HasToString___closed__2(); -lean_mark_persistent(l_Lean_Meta_RecursorInfo_HasToString___closed__2); -l_Lean_Meta_RecursorInfo_HasToString___closed__3 = _init_l_Lean_Meta_RecursorInfo_HasToString___closed__3(); -lean_mark_persistent(l_Lean_Meta_RecursorInfo_HasToString___closed__3); -l_Lean_Meta_RecursorInfo_HasToString___closed__4 = _init_l_Lean_Meta_RecursorInfo_HasToString___closed__4(); -lean_mark_persistent(l_Lean_Meta_RecursorInfo_HasToString___closed__4); -l_Lean_Meta_RecursorInfo_HasToString___closed__5 = _init_l_Lean_Meta_RecursorInfo_HasToString___closed__5(); -lean_mark_persistent(l_Lean_Meta_RecursorInfo_HasToString___closed__5); -l_Lean_Meta_RecursorInfo_HasToString___closed__6 = _init_l_Lean_Meta_RecursorInfo_HasToString___closed__6(); -lean_mark_persistent(l_Lean_Meta_RecursorInfo_HasToString___closed__6); -l_Lean_Meta_RecursorInfo_HasToString___closed__7 = _init_l_Lean_Meta_RecursorInfo_HasToString___closed__7(); -lean_mark_persistent(l_Lean_Meta_RecursorInfo_HasToString___closed__7); -l_Lean_Meta_RecursorInfo_HasToString___closed__8 = _init_l_Lean_Meta_RecursorInfo_HasToString___closed__8(); -lean_mark_persistent(l_Lean_Meta_RecursorInfo_HasToString___closed__8); -l_Lean_Meta_RecursorInfo_HasToString___closed__9 = _init_l_Lean_Meta_RecursorInfo_HasToString___closed__9(); -lean_mark_persistent(l_Lean_Meta_RecursorInfo_HasToString___closed__9); -l_Lean_Meta_RecursorInfo_HasToString___closed__10 = _init_l_Lean_Meta_RecursorInfo_HasToString___closed__10(); -lean_mark_persistent(l_Lean_Meta_RecursorInfo_HasToString___closed__10); -l_Lean_Meta_RecursorInfo_HasToString___closed__11 = _init_l_Lean_Meta_RecursorInfo_HasToString___closed__11(); -lean_mark_persistent(l_Lean_Meta_RecursorInfo_HasToString___closed__11); -l_Lean_Meta_RecursorInfo_HasToString___closed__12 = _init_l_Lean_Meta_RecursorInfo_HasToString___closed__12(); -lean_mark_persistent(l_Lean_Meta_RecursorInfo_HasToString___closed__12); -l_Lean_Meta_RecursorInfo_HasToString___closed__13 = _init_l_Lean_Meta_RecursorInfo_HasToString___closed__13(); -lean_mark_persistent(l_Lean_Meta_RecursorInfo_HasToString___closed__13); -l_Lean_Meta_RecursorInfo_HasToString___closed__14 = _init_l_Lean_Meta_RecursorInfo_HasToString___closed__14(); -lean_mark_persistent(l_Lean_Meta_RecursorInfo_HasToString___closed__14); -l_Lean_Meta_RecursorInfo_HasToString___closed__15 = _init_l_Lean_Meta_RecursorInfo_HasToString___closed__15(); -lean_mark_persistent(l_Lean_Meta_RecursorInfo_HasToString___closed__15); -l_Lean_Meta_RecursorInfo_HasToString___closed__16 = _init_l_Lean_Meta_RecursorInfo_HasToString___closed__16(); -lean_mark_persistent(l_Lean_Meta_RecursorInfo_HasToString___closed__16); -l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__1 = _init_l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__1); -l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__2 = _init_l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__2); -l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__3 = _init_l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__3); -l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__4 = _init_l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__4(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__4); -l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__5 = _init_l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__5(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__5); -l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__6 = _init_l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__6(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__6); -l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__7 = _init_l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__7(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__7); -l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__8 = _init_l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__8(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__8); -l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__9 = _init_l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__9(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_3__checkMotive___closed__9); -l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__1 = _init_l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__1); -l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__2 = _init_l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__2); -l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__3 = _init_l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__3); -l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__4 = _init_l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__4(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__4); -l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5 = _init_l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5); -l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__6 = _init_l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__6(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__6); -l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__7 = _init_l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__7(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__7); -l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__8 = _init_l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__8(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__8); -l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__9 = _init_l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__9(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__9); -l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__10 = _init_l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__10(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__10); -l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__11 = _init_l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__11(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__11); -l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__12 = _init_l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__12(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__12); -l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__13 = _init_l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__13(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__13); -l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__14 = _init_l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__14(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__14); -l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__15 = _init_l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__15(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__15); -l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__16 = _init_l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__16(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__16); -l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__17 = _init_l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__17(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__17); -l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__18 = _init_l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__18(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__18); -l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__19 = _init_l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__19(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__19); -l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__20 = _init_l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__20(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__20); -l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__21 = _init_l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__21(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__21); -l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_6__getParamsPos___spec__2___closed__1 = _init_l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_6__getParamsPos___spec__2___closed__1(); -lean_mark_persistent(l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_6__getParamsPos___spec__2___closed__1); -l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_6__getParamsPos___spec__2___closed__2 = _init_l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_6__getParamsPos___spec__2___closed__2(); -lean_mark_persistent(l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_6__getParamsPos___spec__2___closed__2); -l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_6__getParamsPos___spec__2___closed__3 = _init_l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_6__getParamsPos___spec__2___closed__3(); -lean_mark_persistent(l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_6__getParamsPos___spec__2___closed__3); -l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_7__getIndicesPos___spec__2___closed__1 = _init_l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_7__getIndicesPos___spec__2___closed__1(); -lean_mark_persistent(l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_7__getIndicesPos___spec__2___closed__1); -l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_7__getIndicesPos___spec__2___closed__2 = _init_l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_7__getIndicesPos___spec__2___closed__2(); -lean_mark_persistent(l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_7__getIndicesPos___spec__2___closed__2); -l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_7__getIndicesPos___spec__2___closed__3 = _init_l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_7__getIndicesPos___spec__2___closed__3(); -lean_mark_persistent(l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_7__getIndicesPos___spec__2___closed__3); -l___private_Lean_Meta_RecursorInfo_8__getMotiveLevel___closed__1 = _init_l___private_Lean_Meta_RecursorInfo_8__getMotiveLevel___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_8__getMotiveLevel___closed__1); -l___private_Lean_Meta_RecursorInfo_8__getMotiveLevel___closed__2 = _init_l___private_Lean_Meta_RecursorInfo_8__getMotiveLevel___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_8__getMotiveLevel___closed__2); -l___private_Lean_Meta_RecursorInfo_8__getMotiveLevel___closed__3 = _init_l___private_Lean_Meta_RecursorInfo_8__getMotiveLevel___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_8__getMotiveLevel___closed__3); -l_List_foldlM___main___at___private_Lean_Meta_RecursorInfo_9__getUnivLevelPos___spec__2___closed__1 = _init_l_List_foldlM___main___at___private_Lean_Meta_RecursorInfo_9__getUnivLevelPos___spec__2___closed__1(); -lean_mark_persistent(l_List_foldlM___main___at___private_Lean_Meta_RecursorInfo_9__getUnivLevelPos___spec__2___closed__1); -l_List_foldlM___main___at___private_Lean_Meta_RecursorInfo_9__getUnivLevelPos___spec__2___closed__2 = _init_l_List_foldlM___main___at___private_Lean_Meta_RecursorInfo_9__getUnivLevelPos___spec__2___closed__2(); -lean_mark_persistent(l_List_foldlM___main___at___private_Lean_Meta_RecursorInfo_9__getUnivLevelPos___spec__2___closed__2); -l_List_foldlM___main___at___private_Lean_Meta_RecursorInfo_9__getUnivLevelPos___spec__2___closed__3 = _init_l_List_foldlM___main___at___private_Lean_Meta_RecursorInfo_9__getUnivLevelPos___spec__2___closed__3(); -lean_mark_persistent(l_List_foldlM___main___at___private_Lean_Meta_RecursorInfo_9__getUnivLevelPos___spec__2___closed__3); -l___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___closed__1 = _init_l___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___closed__1); -l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__1 = _init_l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__1); -l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__2 = _init_l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__2); -l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__3 = _init_l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__3); -l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__4 = _init_l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__4(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__4); -l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__5 = _init_l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__5(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__5); -l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__6 = _init_l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__6(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__6); -l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__7 = _init_l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__7(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__7); -l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__8 = _init_l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__8(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__8); -l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__9 = _init_l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__9(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_11__checkMotiveResultType___closed__9); -l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__1___closed__1 = _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__1___closed__1(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__1___closed__1); -l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__1___closed__2 = _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__1___closed__2(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__1___closed__2); -l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__1___closed__3 = _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__1___closed__3(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__1___closed__3); -l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__3___closed__1 = _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__3___closed__1(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__3___closed__1); -l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__3___closed__2 = _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__3___closed__2(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__3___closed__2); -l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__3___closed__3 = _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__3___closed__3(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__3___closed__3); -l___private_Lean_Meta_RecursorInfo_13__syntaxToMajorPos___closed__1 = _init_l___private_Lean_Meta_RecursorInfo_13__syntaxToMajorPos___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_13__syntaxToMajorPos___closed__1); -l___private_Lean_Meta_RecursorInfo_13__syntaxToMajorPos___closed__2 = _init_l___private_Lean_Meta_RecursorInfo_13__syntaxToMajorPos___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_13__syntaxToMajorPos___closed__2); -l___private_Lean_Meta_RecursorInfo_13__syntaxToMajorPos___closed__3 = _init_l___private_Lean_Meta_RecursorInfo_13__syntaxToMajorPos___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_13__syntaxToMajorPos___closed__3); -l___private_Lean_Meta_RecursorInfo_13__syntaxToMajorPos___closed__4 = _init_l___private_Lean_Meta_RecursorInfo_13__syntaxToMajorPos___closed__4(); -lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_13__syntaxToMajorPos___closed__4); -l___private_Init_Data_Array_QSort_1__qpartitionAux___main___at_Lean_Meta_mkRecursorAttr___spec__5___closed__1 = _init_l___private_Init_Data_Array_QSort_1__qpartitionAux___main___at_Lean_Meta_mkRecursorAttr___spec__5___closed__1(); -lean_mark_persistent(l___private_Init_Data_Array_QSort_1__qpartitionAux___main___at_Lean_Meta_mkRecursorAttr___spec__5___closed__1); -l_Lean_registerParametricAttribute___at_Lean_Meta_mkRecursorAttr___spec__2___closed__1 = _init_l_Lean_registerParametricAttribute___at_Lean_Meta_mkRecursorAttr___spec__2___closed__1(); -lean_mark_persistent(l_Lean_registerParametricAttribute___at_Lean_Meta_mkRecursorAttr___spec__2___closed__1); -l_Lean_Meta_mkRecursorAttr___closed__1 = _init_l_Lean_Meta_mkRecursorAttr___closed__1(); -lean_mark_persistent(l_Lean_Meta_mkRecursorAttr___closed__1); -l_Lean_Meta_mkRecursorAttr___closed__2 = _init_l_Lean_Meta_mkRecursorAttr___closed__2(); -lean_mark_persistent(l_Lean_Meta_mkRecursorAttr___closed__2); -l_Lean_Meta_mkRecursorAttr___closed__3 = _init_l_Lean_Meta_mkRecursorAttr___closed__3(); -lean_mark_persistent(l_Lean_Meta_mkRecursorAttr___closed__3); -l_Lean_Meta_mkRecursorAttr___closed__4 = _init_l_Lean_Meta_mkRecursorAttr___closed__4(); -lean_mark_persistent(l_Lean_Meta_mkRecursorAttr___closed__4); -l_Lean_Meta_mkRecursorAttr___closed__5 = _init_l_Lean_Meta_mkRecursorAttr___closed__5(); -lean_mark_persistent(l_Lean_Meta_mkRecursorAttr___closed__5); -res = l_Lean_Meta_mkRecursorAttr(lean_io_mk_world()); +l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__2___closed__1 = _init_l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__2___closed__1(); +lean_mark_persistent(l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__2___closed__1); +l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__4___closed__1 = _init_l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__4___closed__1(); +lean_mark_persistent(l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__4___closed__1); +l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__8___closed__1 = _init_l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__8___closed__1(); +lean_mark_persistent(l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__8___closed__1); +l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__8___closed__2 = _init_l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__8___closed__2(); +lean_mark_persistent(l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___spec__8___closed__2); +l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__1 = _init_l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__1(); +lean_mark_persistent(l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__1); +l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__2 = _init_l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__2(); +lean_mark_persistent(l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__2); +l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__3 = _init_l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__3(); +lean_mark_persistent(l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__3); +l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__4 = _init_l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__4(); +lean_mark_persistent(l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__4); +l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__5 = _init_l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__5(); +lean_mark_persistent(l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__5); +l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__6 = _init_l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__6(); +lean_mark_persistent(l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__6); +l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__7 = _init_l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__7(); +lean_mark_persistent(l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__7); +l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__8 = _init_l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__8(); +lean_mark_persistent(l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__8); +l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__9 = _init_l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__9(); +lean_mark_persistent(l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__9); +l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__10 = _init_l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__10(); +lean_mark_persistent(l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__10); +l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__11 = _init_l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__11(); +lean_mark_persistent(l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__11); +l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__12 = _init_l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__12(); +lean_mark_persistent(l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__12); +l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__13 = _init_l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__13(); +lean_mark_persistent(l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__13); +l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__14 = _init_l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__14(); +lean_mark_persistent(l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__14); +l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__15 = _init_l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__15(); +lean_mark_persistent(l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__15); +l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__16 = _init_l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__16(); +lean_mark_persistent(l_Lean_Meta_RecursorInfo_Lean_Meta_RecursorInfo___instance__1___closed__16); +l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__1 = _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__1); +l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__2 = _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__2); +l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__3 = _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__3); +l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__4 = _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__4(); +lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotive___closed__4); +l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___lambda__1___closed__1 = _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___lambda__1___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___lambda__1___closed__1); +l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___lambda__1___closed__2 = _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___lambda__1___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___lambda__1___closed__2); +l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___lambda__1___closed__3 = _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___lambda__1___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___lambda__1___closed__3); +l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__1 = _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__1); +l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__2 = _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__2); +l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__3 = _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__3); +l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__4 = _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__4(); +lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__4); +l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__5 = _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__5(); +lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__5); +l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__6 = _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__6(); +lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__6); +l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__7 = _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__7(); +lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__7); +l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__8 = _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__8(); +lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___closed__8); +l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos___spec__4___closed__1 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos___spec__4___closed__1(); +lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos___spec__4___closed__1); +l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos___spec__4___closed__2 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos___spec__4___closed__2(); +lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos___spec__4___closed__2); +l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getIndicesPos___spec__2___closed__1 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getIndicesPos___spec__2___closed__1(); +lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getIndicesPos___spec__2___closed__1); +l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getIndicesPos___spec__2___closed__2 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getIndicesPos___spec__2___closed__2(); +lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getIndicesPos___spec__2___closed__2); +l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMotiveLevel___closed__1 = _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMotiveLevel___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMotiveLevel___closed__1); +l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMotiveLevel___closed__2 = _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMotiveLevel___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMotiveLevel___closed__2); +l_List_forInAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getUnivLevelPos___spec__2___closed__1 = _init_l_List_forInAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getUnivLevelPos___spec__2___closed__1(); +lean_mark_persistent(l_List_forInAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getUnivLevelPos___spec__2___closed__1); +l_List_forInAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getUnivLevelPos___spec__2___closed__2 = _init_l_List_forInAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getUnivLevelPos___spec__2___closed__2(); +lean_mark_persistent(l_List_forInAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getUnivLevelPos___spec__2___closed__2); +l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___closed__1 = _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___closed__1); +l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotiveResultType___closed__1 = _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotiveResultType___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotiveResultType___closed__1); +l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotiveResultType___closed__2 = _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotiveResultType___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_checkMotiveResultType___closed__2); +l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__1___closed__1 = _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__1___closed__1(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__1___closed__1); +l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__1___closed__2 = _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__1___closed__2(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__1___closed__2); +l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__2___closed__1 = _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__2___closed__1(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__2___closed__1); +l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__2___closed__2 = _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__2___closed__2(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux___spec__2___closed__2); +l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_syntaxToMajorPos___closed__1 = _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_syntaxToMajorPos___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_syntaxToMajorPos___closed__1); +l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_syntaxToMajorPos___closed__2 = _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_syntaxToMajorPos___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_syntaxToMajorPos___closed__2); +l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_syntaxToMajorPos___closed__3 = _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_syntaxToMajorPos___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_syntaxToMajorPos___closed__3); +l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_syntaxToMajorPos___closed__4 = _init_l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_syntaxToMajorPos___closed__4(); +lean_mark_persistent(l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_syntaxToMajorPos___closed__4); +l___private_Init_Data_Array_QSort_1__qpartitionAux___main___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__5___closed__1 = _init_l___private_Init_Data_Array_QSort_1__qpartitionAux___main___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__5___closed__1(); +lean_mark_persistent(l___private_Init_Data_Array_QSort_1__qpartitionAux___main___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__5___closed__1); +l_Lean_registerParametricAttribute___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__2___closed__1 = _init_l_Lean_registerParametricAttribute___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__2___closed__1(); +lean_mark_persistent(l_Lean_registerParametricAttribute___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____spec__2___closed__1); +l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____closed__1(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____closed__1); +l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____closed__2(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____closed__2); +l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____closed__3 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____closed__3(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____closed__3); +l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____closed__4 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____closed__4(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____closed__4); +l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____closed__5 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____closed__5(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080____closed__5); +res = l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2080_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l_Lean_Meta_recursorAttribute = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_Meta_recursorAttribute); diff --git a/stage0/stdlib/Lean/Meta/Reduce.c b/stage0/stdlib/Lean/Meta/Reduce.c index fac8106f9e..0de324c4fa 100644 --- a/stage0/stdlib/Lean/Meta/Reduce.c +++ b/stage0/stdlib/Lean/Meta/Reduce.c @@ -13,249 +13,443 @@ #ifdef __cplusplus extern "C" { #endif +extern lean_object* l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; +lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Meta_reduce_visit___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Expr_3__getAppArgsAux___main(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_whnf___at___private_Lean_Meta_Basic_16__isClassExpensive_x3f___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_InferType_18__isProofImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Std_HashMap_inhabited___closed__1; -lean_object* l_Nat_foldMAux___main___at_Lean_Meta_reduceAux___main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_isProof___at_Lean_Meta_reduce_visit___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_reduce_visit___boxed(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_object* l_Lean_Meta_reduce(lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_Lean_Expr_getAppFn___main(lean_object*); extern lean_object* l_Lean_Expr_getAppArgs___closed__1; -lean_object* l_Lean_Meta_reduceAux___main___lambda__1(uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Nat_foldMAux___main___at_Lean_Meta_reduceAux___main___spec__1(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* l_Lean_Meta_forallTelescope___at_Lean_Meta_reduce_visit___spec__6___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Meta_reduce_visit___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_reduce_visit___spec__2(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*); extern lean_object* l___private_Lean_Meta_Basic_6__liftMkBindingM___rarg___closed__3; -lean_object* l_Lean_Meta_reduceAux___main___lambda__2(uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppNumArgsAux___main(lean_object*, lean_object*); -lean_object* l_Lean_Meta_reduceAux(uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_reduceAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_lambdaTelescope___at_Lean_Meta_reduceAux___main___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Basic_19__forallTelescopeImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); extern lean_object* l_Lean_Expr_Inhabited___closed__1; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +lean_object* l_Lean_Meta_lambdaTelescope___at_Lean_Meta_reduce_visit___spec__4(lean_object*); +lean_object* l_Lean_Meta_reduce_visit___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_take(lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); -lean_object* l_Lean_Meta_reduceAux___main___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_Std_Range_forIn_loop___at_Lean_Meta_reduce_visit___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* l_Lean_Meta_forallTelescope___at_Lean_Meta_reduce_visit___spec__6(lean_object*); +lean_object* l_Lean_Meta_reduce_visit_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_reduce_visit___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_InferType_21__isTypeImp___at_Lean_Meta_isType___spec__1(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* lean_array_fset(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_isProof___at_Lean_Meta_reduceAux___main___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_reduceAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_reduceAux___main___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_reduce_visit___lambda__1(uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_lambdaTelescope___at_Lean_Meta_reduce_visit___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_isType___at_Lean_Meta_reduce_visit___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_isEmpty___rarg(lean_object*); +uint8_t l_Lean_Meta_ParamInfo_isExplicit(lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_reduceAux___main___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* l_Lean_Meta_reduce___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_isType___at_Lean_Meta_reduceAux___main___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_reduceAux___main(uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Meta_ParamInfo_inhabited; +uint8_t lean_nat_dec_le(lean_object*, lean_object*); +extern lean_object* l_Lean_Meta_whnfRef; lean_object* l_Lean_Meta_getFunInfoNArgs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_reduce_visit(uint8_t, uint8_t, uint8_t, 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_Meta_reduce_visit___lambda__2(uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_reduce_visit___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_reduce_visit_match__1(lean_object*); lean_object* l_Lean_MetavarContext_MkBinding_mkBinding(uint8_t, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkForallFVars___at___private_Lean_Meta_InferType_6__inferLambdaType___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_reduce_visit___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_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_5__inferForallType___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_lambdaTelescope___at_Lean_Meta_reduceAux___main___spec__3(lean_object*); +lean_object* l_Lean_Meta_whnf___at_Lean_Meta_reduce_visit___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_23__lambdaTelescopeImp___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_reduceAux___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -lean_object* l_Nat_foldMAux___main___at_Lean_Meta_reduceAux___main___spec__1(uint8_t x_1, uint8_t x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l_Lean_Meta_reduce_visit_match__1___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_13; uint8_t x_14; -x_13 = lean_unsigned_to_nat(0u); -x_14 = lean_nat_dec_eq(x_6, x_13); -if (x_14 == 0) +switch (lean_obj_tag(x_1)) { +case 5: { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_36; lean_object* x_37; uint8_t x_38; -x_15 = lean_unsigned_to_nat(1u); -x_16 = lean_nat_sub(x_6, x_15); +lean_object* x_6; lean_object* x_7; uint64_t x_8; lean_object* x_9; lean_object* x_10; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_1, 1); +lean_inc(x_7); +x_8 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +lean_dec(x_1); +x_9 = lean_box_uint64(x_8); +x_10 = lean_apply_3(x_2, x_6, x_7, x_9); +return x_10; +} +case 6: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint64_t x_14; lean_object* x_15; lean_object* x_16; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_11 = lean_ctor_get(x_1, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_1, 1); +lean_inc(x_12); +x_13 = lean_ctor_get(x_1, 2); +lean_inc(x_13); +x_14 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +lean_dec(x_1); +x_15 = lean_box_uint64(x_14); +x_16 = lean_apply_4(x_3, x_11, x_12, x_13, x_15); +return x_16; +} +case 7: +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; uint64_t x_20; lean_object* x_21; lean_object* x_22; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_17 = lean_ctor_get(x_1, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_1, 1); +lean_inc(x_18); +x_19 = lean_ctor_get(x_1, 2); +lean_inc(x_19); +x_20 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +lean_dec(x_1); +x_21 = lean_box_uint64(x_20); +x_22 = lean_apply_4(x_4, x_17, x_18, x_19, x_21); +return x_22; +} +default: +{ +lean_object* x_23; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_23 = lean_apply_1(x_5, x_1); +return x_23; +} +} +} +} +lean_object* l_Lean_Meta_reduce_visit_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_reduce_visit_match__1___rarg), 5, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_whnf___at_Lean_Meta_reduce_visit___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) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_7 = lean_ctor_get(x_4, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_4, 1); +lean_inc(x_8); +x_9 = lean_ctor_get(x_4, 2); +lean_inc(x_9); +x_10 = lean_ctor_get(x_4, 3); +lean_inc(x_10); +x_11 = lean_nat_dec_eq(x_8, x_9); +if (x_11 == 0) +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_4); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_13 = lean_ctor_get(x_4, 3); +lean_dec(x_13); +x_14 = lean_ctor_get(x_4, 2); +lean_dec(x_14); +x_15 = lean_ctor_get(x_4, 1); +lean_dec(x_15); +x_16 = lean_ctor_get(x_4, 0); +lean_dec(x_16); +x_17 = lean_unsigned_to_nat(1u); +x_18 = lean_nat_add(x_8, x_17); +lean_dec(x_8); +lean_ctor_set(x_4, 1, x_18); +x_19 = l_Lean_Meta_whnfRef; +x_20 = lean_st_ref_get(x_19, x_6); +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_apply_6(x_21, x_1, x_2, x_3, x_4, x_5, x_22); +return x_23; +} +else +{ +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_dec(x_4); +x_24 = lean_unsigned_to_nat(1u); +x_25 = lean_nat_add(x_8, x_24); +lean_dec(x_8); +x_26 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_26, 0, x_7); +lean_ctor_set(x_26, 1, x_25); +lean_ctor_set(x_26, 2, x_9); +lean_ctor_set(x_26, 3, x_10); +x_27 = l_Lean_Meta_whnfRef; +x_28 = lean_st_ref_get(x_27, 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_31 = lean_apply_6(x_29, x_1, x_2, x_3, x_26, x_5, x_30); +return x_31; +} +} +else +{ +lean_object* x_32; lean_object* x_33; uint8_t x_34; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_32 = l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; +x_33 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_32, 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); +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 0) +{ +return x_33; +} +else +{ +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_33, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_33); +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* l_Std_Range_forIn_loop___at_Lean_Meta_reduce_visit___spec__2(uint8_t x_1, uint8_t x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; uint8_t x_15; +x_14 = lean_ctor_get(x_5, 1); +x_15 = lean_nat_dec_le(x_14, x_7); +if (x_15 == 0) +{ +lean_object* x_16; uint8_t x_17; +x_16 = lean_unsigned_to_nat(0u); +x_17 = lean_nat_dec_eq(x_6, x_16); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_18 = lean_unsigned_to_nat(1u); +x_19 = lean_nat_sub(x_6, x_18); lean_dec(x_6); -x_17 = lean_nat_sub(x_5, x_16); -x_18 = lean_nat_sub(x_17, x_15); -lean_dec(x_17); -x_36 = lean_ctor_get(x_4, 0); -x_37 = lean_array_get_size(x_36); -x_38 = lean_nat_dec_lt(x_18, x_37); -lean_dec(x_37); +x_20 = lean_ctor_get(x_4, 0); +x_21 = lean_array_get_size(x_20); +x_22 = lean_nat_dec_lt(x_7, x_21); +lean_dec(x_21); +if (x_22 == 0) +{ +lean_object* x_23; uint8_t x_24; +x_23 = lean_array_get_size(x_8); +x_24 = lean_nat_dec_lt(x_7, x_23); +lean_dec(x_23); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_5, 2); +x_26 = lean_nat_add(x_7, x_25); +lean_dec(x_7); +x_6 = x_19; +x_7 = x_26; +goto _start; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_28 = lean_array_fget(x_8, x_7); +x_29 = l_Lean_Expr_Inhabited___closed__1; +x_30 = lean_array_fset(x_8, x_7, x_29); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +x_31 = l_Lean_Meta_reduce_visit(x_1, x_2, x_3, x_28, x_9, x_10, x_11, x_12, x_13); +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); +lean_dec(x_31); +x_34 = lean_array_fset(x_30, x_7, x_32); +x_35 = lean_ctor_get(x_5, 2); +x_36 = lean_nat_add(x_7, x_35); +lean_dec(x_7); +x_6 = x_19; +x_7 = x_36; +x_8 = x_34; +x_13 = x_33; +goto _start; +} +else +{ +uint8_t x_38; +lean_dec(x_30); +lean_dec(x_19); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_7); +x_38 = !lean_is_exclusive(x_31); if (x_38 == 0) { -lean_object* x_39; uint8_t x_40; -x_39 = lean_array_get_size(x_7); -x_40 = lean_nat_dec_lt(x_18, x_39); -lean_dec(x_39); -if (x_40 == 0) -{ -lean_dec(x_18); -x_6 = x_16; -goto _start; +return x_31; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_42 = lean_array_fget(x_7, x_18); -x_43 = l_Lean_Expr_Inhabited___closed__1; -x_44 = lean_array_fset(x_7, x_18, x_43); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_45 = l_Lean_Meta_reduceAux___main(x_1, x_2, x_3, x_42, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_45) == 0) -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_45, 0); -lean_inc(x_46); -x_47 = lean_ctor_get(x_45, 1); -lean_inc(x_47); -lean_dec(x_45); -x_48 = lean_array_fset(x_44, x_18, x_46); -lean_dec(x_18); -x_6 = x_16; -x_7 = x_48; -x_12 = x_47; -goto _start; -} -else -{ -uint8_t x_50; -lean_dec(x_44); -lean_dec(x_18); -lean_dec(x_16); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_50 = !lean_is_exclusive(x_45); -if (x_50 == 0) -{ -return x_45; -} -else -{ -lean_object* x_51; lean_object* x_52; lean_object* 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_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_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_31, 0); +x_40 = lean_ctor_get(x_31, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_31); +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 { +lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_42 = l_Lean_Meta_ParamInfo_inhabited; +x_43 = lean_array_get(x_42, x_20, x_7); if (x_1 == 0) { -lean_object* x_54; -x_54 = lean_box(0); -x_19 = x_54; -goto block_35; +uint8_t x_68; +lean_dec(x_43); +x_68 = 1; +x_44 = x_68; +goto block_67; } else { -lean_object* x_55; uint8_t x_56; -x_55 = lean_array_fget(x_36, x_18); -x_56 = lean_ctor_get_uint8(x_55, sizeof(void*)*1); -if (x_56 == 0) -{ -uint8_t x_57; -x_57 = lean_ctor_get_uint8(x_55, sizeof(void*)*1 + 1); -lean_dec(x_55); -if (x_57 == 0) -{ -lean_object* x_58; -x_58 = lean_box(0); -x_19 = x_58; -goto block_35; +uint8_t x_69; +x_69 = l_Lean_Meta_ParamInfo_isExplicit(x_43); +lean_dec(x_43); +x_44 = x_69; +goto block_67; } -else +block_67: { -lean_dec(x_18); -x_6 = x_16; -goto _start; -} -} -else +if (x_44 == 0) { -lean_dec(x_55); -lean_dec(x_18); -x_6 = x_16; -goto _start; -} -} -} -block_35: -{ -lean_object* x_20; uint8_t x_21; -lean_dec(x_19); -x_20 = lean_array_get_size(x_7); -x_21 = lean_nat_dec_lt(x_18, x_20); -lean_dec(x_20); -if (x_21 == 0) -{ -lean_dec(x_18); -x_6 = x_16; +lean_object* x_45; lean_object* x_46; +x_45 = lean_ctor_get(x_5, 2); +x_46 = lean_nat_add(x_7, x_45); +lean_dec(x_7); +x_6 = x_19; +x_7 = x_46; goto _start; } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_23 = lean_array_fget(x_7, x_18); -x_24 = l_Lean_Expr_Inhabited___closed__1; -x_25 = lean_array_fset(x_7, x_18, x_24); +lean_object* x_48; uint8_t x_49; +x_48 = lean_array_get_size(x_8); +x_49 = lean_nat_dec_lt(x_7, x_48); +lean_dec(x_48); +if (x_49 == 0) +{ +lean_object* x_50; lean_object* x_51; +x_50 = lean_ctor_get(x_5, 2); +x_51 = lean_nat_add(x_7, x_50); +lean_dec(x_7); +x_6 = x_19; +x_7 = x_51; +goto _start; +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_53 = lean_array_fget(x_8, x_7); +x_54 = l_Lean_Expr_Inhabited___closed__1; +x_55 = lean_array_fset(x_8, x_7, x_54); +lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -lean_inc(x_8); -x_26 = l_Lean_Meta_reduceAux___main(x_1, x_2, x_3, x_23, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_26) == 0) +x_56 = l_Lean_Meta_reduce_visit(x_1, x_2, x_3, x_53, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_56) == 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); -lean_dec(x_26); -x_29 = lean_array_fset(x_25, x_18, x_27); -lean_dec(x_18); -x_6 = x_16; -x_7 = x_29; -x_12 = x_28; +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_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_array_fset(x_55, x_7, x_57); +x_60 = lean_ctor_get(x_5, 2); +x_61 = lean_nat_add(x_7, x_60); +lean_dec(x_7); +x_6 = x_19; +x_7 = x_61; +x_8 = x_59; +x_13 = x_58; goto _start; } else { -uint8_t x_31; -lean_dec(x_25); -lean_dec(x_18); -lean_dec(x_16); +uint8_t x_63; +lean_dec(x_55); +lean_dec(x_19); +lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -lean_dec(x_8); -x_31 = !lean_is_exclusive(x_26); -if (x_31 == 0) +lean_dec(x_7); +x_63 = !lean_is_exclusive(x_56); +if (x_63 == 0) { -return x_26; +return x_56; } 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_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_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; +} +} } } } @@ -263,20 +457,36 @@ return x_34; } else { -lean_object* x_61; +lean_object* x_70; +lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -lean_dec(x_8); +lean_dec(x_7); lean_dec(x_6); -x_61 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_61, 0, x_7); -lean_ctor_set(x_61, 1, x_12); -return x_61; +x_70 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_70, 0, x_8); +lean_ctor_set(x_70, 1, x_13); +return x_70; +} +} +else +{ +lean_object* x_71; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +x_71 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_71, 0, x_8); +lean_ctor_set(x_71, 1, x_13); +return x_71; } } } -lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_reduceAux___main___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* l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_reduce_visit___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: { uint8_t x_8; @@ -487,7 +697,7 @@ return x_73; } } } -lean_object* l_Lean_Meta_lambdaTelescope___at_Lean_Meta_reduceAux___main___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Lean_Meta_lambdaTelescope___at_Lean_Meta_reduce_visit___spec__4___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { uint8_t x_8; lean_object* x_9; @@ -539,15 +749,284 @@ return x_17; } } } -lean_object* l_Lean_Meta_lambdaTelescope___at_Lean_Meta_reduceAux___main___spec__3(lean_object* x_1) { +lean_object* l_Lean_Meta_lambdaTelescope___at_Lean_Meta_reduce_visit___spec__4(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_lambdaTelescope___at_Lean_Meta_reduceAux___main___spec__3___rarg), 7, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_lambdaTelescope___at_Lean_Meta_reduce_visit___spec__4___rarg), 7, 0); return x_2; } } -lean_object* l_Lean_Meta_isProof___at_Lean_Meta_reduceAux___main___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* l_Lean_Meta_mkForallFVars___at_Lean_Meta_reduce_visit___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) { +_start: +{ +uint8_t x_8; +x_8 = l_Array_isEmpty___rarg(x_1); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; +x_9 = lean_st_ref_get(x_4, x_7); +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_ctor_get(x_10, 0); +lean_inc(x_12); +lean_dec(x_10); +x_13 = lean_st_ref_get(x_6, x_11); +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_ctor_get(x_14, 2); +lean_inc(x_16); +lean_dec(x_14); +x_17 = lean_ctor_get(x_3, 1); +lean_inc(x_17); +x_18 = l_Std_HashMap_inhabited___closed__1; +x_19 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_19, 0, x_12); +lean_ctor_set(x_19, 1, x_16); +lean_ctor_set(x_19, 2, x_18); +x_20 = 0; +x_21 = l_Lean_MetavarContext_MkBinding_mkBinding(x_20, x_17, x_1, x_2, x_20, x_20, x_19); +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; uint8_t x_29; +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_ctor_get(x_22, 0); +lean_inc(x_24); +lean_dec(x_22); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +x_26 = lean_st_ref_take(x_6, x_15); +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 = !lean_is_exclusive(x_27); +if (x_29 == 0) +{ +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_30 = lean_ctor_get(x_27, 2); +lean_dec(x_30); +lean_ctor_set(x_27, 2, x_25); +x_31 = lean_st_ref_set(x_6, x_27, x_28); +x_32 = lean_ctor_get(x_31, 1); +lean_inc(x_32); +lean_dec(x_31); +x_33 = lean_ctor_get(x_23, 0); +lean_inc(x_33); +lean_dec(x_23); +x_34 = l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(x_33, x_3, x_4, x_5, x_6, x_32); +lean_dec(x_3); +x_35 = !lean_is_exclusive(x_34); +if (x_35 == 0) +{ +lean_object* x_36; +x_36 = lean_ctor_get(x_34, 0); +lean_dec(x_36); +lean_ctor_set(x_34, 0, x_24); +return x_34; +} +else +{ +lean_object* x_37; lean_object* x_38; +x_37 = lean_ctor_get(x_34, 1); +lean_inc(x_37); +lean_dec(x_34); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_24); +lean_ctor_set(x_38, 1, x_37); +return x_38; +} +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_39 = lean_ctor_get(x_27, 0); +x_40 = lean_ctor_get(x_27, 1); +x_41 = lean_ctor_get(x_27, 3); +lean_inc(x_41); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_27); +x_42 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_42, 0, x_39); +lean_ctor_set(x_42, 1, x_40); +lean_ctor_set(x_42, 2, x_25); +lean_ctor_set(x_42, 3, x_41); +x_43 = lean_st_ref_set(x_6, x_42, x_28); +x_44 = lean_ctor_get(x_43, 1); +lean_inc(x_44); +lean_dec(x_43); +x_45 = lean_ctor_get(x_23, 0); +lean_inc(x_45); +lean_dec(x_23); +x_46 = l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(x_45, x_3, x_4, x_5, x_6, x_44); +lean_dec(x_3); +x_47 = lean_ctor_get(x_46, 1); +lean_inc(x_47); +if (lean_is_exclusive(x_46)) { + lean_ctor_release(x_46, 0); + lean_ctor_release(x_46, 1); + x_48 = x_46; +} else { + lean_dec_ref(x_46); + x_48 = lean_box(0); +} +if (lean_is_scalar(x_48)) { + x_49 = lean_alloc_ctor(0, 2, 0); +} else { + x_49 = x_48; +} +lean_ctor_set(x_49, 0, x_24); +lean_ctor_set(x_49, 1, x_47); +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; uint8_t x_58; +x_50 = lean_ctor_get(x_21, 1); +lean_inc(x_50); +lean_dec(x_21); +x_51 = lean_ctor_get(x_50, 0); +lean_inc(x_51); +x_52 = l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(x_51, x_3, x_4, x_5, x_6, x_15); +x_53 = lean_ctor_get(x_52, 1); +lean_inc(x_53); +lean_dec(x_52); +x_54 = lean_ctor_get(x_50, 1); +lean_inc(x_54); +lean_dec(x_50); +x_55 = lean_st_ref_take(x_6, x_53); +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_is_exclusive(x_56); +if (x_58 == 0) +{ +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_56, 2); +lean_dec(x_59); +lean_ctor_set(x_56, 2, x_54); +x_60 = lean_st_ref_set(x_6, x_56, x_57); +x_61 = lean_ctor_get(x_60, 1); +lean_inc(x_61); +lean_dec(x_60); +x_62 = l___private_Lean_Meta_Basic_6__liftMkBindingM___rarg___closed__3; +x_63 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_62, x_3, x_4, x_5, x_6, x_61); +lean_dec(x_3); +return x_63; +} +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_56, 0); +x_65 = lean_ctor_get(x_56, 1); +x_66 = lean_ctor_get(x_56, 3); +lean_inc(x_66); +lean_inc(x_65); +lean_inc(x_64); +lean_dec(x_56); +x_67 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_67, 0, x_64); +lean_ctor_set(x_67, 1, x_65); +lean_ctor_set(x_67, 2, x_54); +lean_ctor_set(x_67, 3, x_66); +x_68 = lean_st_ref_set(x_6, x_67, x_57); +x_69 = lean_ctor_get(x_68, 1); +lean_inc(x_69); +lean_dec(x_68); +x_70 = l___private_Lean_Meta_Basic_6__liftMkBindingM___rarg___closed__3; +x_71 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_70, x_3, x_4, x_5, x_6, x_69); +lean_dec(x_3); +return x_71; +} +} +} +else +{ +lean_object* x_72; +lean_dec(x_3); +lean_dec(x_1); +x_72 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_72, 0, x_2); +lean_ctor_set(x_72, 1, x_7); +return x_72; +} +} +} +lean_object* l_Lean_Meta_forallTelescope___at_Lean_Meta_reduce_visit___spec__6___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l___private_Lean_Meta_Basic_19__forallTelescopeImp___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_8) == 0) +{ +uint8_t x_9; +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) +{ +return x_8; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_8, 0); +x_11 = lean_ctor_get(x_8, 1); +lean_inc(x_11); +lean_inc(x_10); +lean_dec(x_8); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_11); +return x_12; +} +} +else +{ +uint8_t x_13; +x_13 = !lean_is_exclusive(x_8); +if (x_13 == 0) +{ +return x_8; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_8, 0); +x_15 = lean_ctor_get(x_8, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_8); +x_16 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_16, 1, x_15); +return x_16; +} +} +} +} +lean_object* l_Lean_Meta_forallTelescope___at_Lean_Meta_reduce_visit___spec__6(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescope___at_Lean_Meta_reduce_visit___spec__6___rarg), 7, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_isProof___at_Lean_Meta_reduce_visit___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) { _start: { lean_object* x_7; @@ -555,7 +1034,7 @@ x_7 = l___private_Lean_Meta_InferType_18__isProofImp(x_1, x_2, x_3, x_4, x_5, x_ return x_7; } } -lean_object* l_Lean_Meta_isType___at_Lean_Meta_reduceAux___main___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* l_Lean_Meta_isType___at_Lean_Meta_reduce_visit___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) { _start: { lean_object* x_7; @@ -563,7 +1042,7 @@ x_7 = l___private_Lean_Meta_InferType_21__isTypeImp___at_Lean_Meta_isType___spec return x_7; } } -lean_object* l_Lean_Meta_reduceAux___main___lambda__1(uint8_t x_1, uint8_t 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* l_Lean_Meta_reduce_visit___lambda__1(uint8_t x_1, uint8_t 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; @@ -571,7 +1050,7 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_11 = l_Lean_Meta_reduceAux___main(x_1, x_2, x_3, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_Meta_reduce_visit(x_1, x_2, x_3, x_5, 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; @@ -580,7 +1059,7 @@ lean_inc(x_12); x_13 = lean_ctor_get(x_11, 1); lean_inc(x_13); lean_dec(x_11); -x_14 = l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_reduceAux___main___spec__2(x_4, x_12, x_6, x_7, x_8, x_9, x_13); +x_14 = l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_reduce_visit___spec__3(x_4, x_12, x_6, x_7, x_8, x_9, x_13); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -615,7 +1094,7 @@ return x_18; } } } -lean_object* l_Lean_Meta_reduceAux___main___lambda__2(uint8_t x_1, uint8_t 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* l_Lean_Meta_reduce_visit___lambda__2(uint8_t x_1, uint8_t 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; @@ -623,7 +1102,7 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_11 = l_Lean_Meta_reduceAux___main(x_1, x_2, x_3, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_Meta_reduce_visit(x_1, x_2, x_3, x_5, 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; @@ -632,7 +1111,7 @@ lean_inc(x_12); x_13 = lean_ctor_get(x_11, 1); lean_inc(x_13); lean_dec(x_11); -x_14 = l_Lean_Meta_mkForallFVars___at___private_Lean_Meta_InferType_6__inferLambdaType___spec__1(x_4, x_12, x_6, x_7, x_8, x_9, x_13); +x_14 = l_Lean_Meta_mkForallFVars___at_Lean_Meta_reduce_visit___spec__5(x_4, x_12, x_6, x_7, x_8, x_9, x_13); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -667,110 +1146,25 @@ return x_18; } } } -lean_object* l_Lean_Meta_reduceAux___main(uint8_t x_1, uint8_t 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* l_Lean_Meta_reduce_visit(uint8_t x_1, uint8_t 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: { uint8_t x_10; lean_object* x_11; if (x_2 == 0) { -if (x_3 == 0) -{ -x_10 = x_3; +x_10 = x_2; x_11 = x_9; -goto block_64; +goto block_77; } else { -lean_object* x_65; +lean_object* x_78; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_65 = l___private_Lean_Meta_InferType_18__isProofImp(x_4, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_65) == 0) -{ -lean_object* x_66; lean_object* x_67; uint8_t x_68; -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 = lean_unbox(x_66); -lean_dec(x_66); -x_10 = x_68; -x_11 = x_67; -goto block_64; -} -else -{ -uint8_t x_69; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_69 = !lean_is_exclusive(x_65); -if (x_69 == 0) -{ -return x_65; -} -else -{ -lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_70 = lean_ctor_get(x_65, 0); -x_71 = lean_ctor_get(x_65, 1); -lean_inc(x_71); -lean_inc(x_70); -lean_dec(x_65); -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 -{ -lean_object* x_73; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_73 = l___private_Lean_Meta_InferType_21__isTypeImp___at_Lean_Meta_isType___spec__1(x_4, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_73) == 0) -{ -lean_object* x_74; uint8_t x_75; -x_74 = lean_ctor_get(x_73, 0); -lean_inc(x_74); -x_75 = lean_unbox(x_74); -lean_dec(x_74); -if (x_75 == 0) -{ -if (x_3 == 0) -{ -lean_object* x_76; -x_76 = lean_ctor_get(x_73, 1); -lean_inc(x_76); -lean_dec(x_73); -x_10 = x_3; -x_11 = x_76; -goto block_64; -} -else -{ -lean_object* x_77; lean_object* x_78; -x_77 = lean_ctor_get(x_73, 1); -lean_inc(x_77); -lean_dec(x_73); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_78 = l___private_Lean_Meta_InferType_18__isProofImp(x_4, x_5, x_6, x_7, x_8, x_77); +x_78 = l___private_Lean_Meta_InferType_21__isTypeImp___at_Lean_Meta_isType___spec__1(x_4, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_78) == 0) { lean_object* x_79; lean_object* x_80; uint8_t x_81; @@ -783,7 +1177,7 @@ x_81 = lean_unbox(x_79); lean_dec(x_79); x_10 = x_81; x_11 = x_80; -goto block_64; +goto block_77; } else { @@ -813,330 +1207,363 @@ return x_85; } } } +block_77: +{ +uint8_t x_12; lean_object* x_13; +if (x_3 == 0) +{ +x_12 = x_3; +x_13 = x_11; +goto block_68; } else { -uint8_t x_86; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_86 = !lean_is_exclusive(x_73); -if (x_86 == 0) +lean_object* x_69; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_69 = l___private_Lean_Meta_InferType_18__isProofImp(x_4, x_5, x_6, x_7, x_8, x_11); +if (lean_obj_tag(x_69) == 0) { -lean_object* x_87; -x_87 = lean_ctor_get(x_73, 0); -lean_dec(x_87); -lean_ctor_set(x_73, 0, x_4); -return x_73; +lean_object* x_70; lean_object* x_71; uint8_t x_72; +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_unbox(x_70); +lean_dec(x_70); +x_12 = x_72; +x_13 = x_71; +goto block_68; } else { -lean_object* x_88; lean_object* x_89; -x_88 = lean_ctor_get(x_73, 1); -lean_inc(x_88); -lean_dec(x_73); -x_89 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_89, 0, x_4); -lean_ctor_set(x_89, 1, x_88); -return x_89; -} -} -} -else -{ -uint8_t x_90; +uint8_t x_73; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_90 = !lean_is_exclusive(x_73); -if (x_90 == 0) +x_73 = !lean_is_exclusive(x_69); +if (x_73 == 0) { -return x_73; +return x_69; } else { -lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_91 = lean_ctor_get(x_73, 0); -x_92 = lean_ctor_get(x_73, 1); -lean_inc(x_92); -lean_inc(x_91); -lean_dec(x_73); -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; +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_69, 0); +x_75 = lean_ctor_get(x_69, 1); +lean_inc(x_75); +lean_inc(x_74); +lean_dec(x_69); +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; } } } -block_64: +block_68: { if (x_10 == 0) { -lean_object* x_12; +if (x_12 == 0) +{ +lean_object* x_14; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_12 = l_Lean_Meta_whnf___at___private_Lean_Meta_Basic_16__isClassExpensive_x3f___main___spec__2(x_4, x_5, x_6, x_7, x_8, x_11); -if (lean_obj_tag(x_12) == 0) +x_14 = l_Lean_Meta_whnf___at_Lean_Meta_reduce_visit___spec__1(x_4, x_5, x_6, x_7, x_8, x_13); +if (lean_obj_tag(x_14) == 0) { -lean_object* x_13; -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -switch (lean_obj_tag(x_13)) { +lean_object* x_15; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +switch (lean_obj_tag(x_15)) { case 5: { -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_14 = lean_ctor_get(x_12, 1); -lean_inc(x_14); -lean_dec(x_12); -x_15 = l_Lean_Expr_getAppFn___main(x_13); -x_16 = lean_unsigned_to_nat(0u); -x_17 = l_Lean_Expr_getAppNumArgsAux___main(x_13, x_16); +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = l_Lean_Expr_getAppFn___main(x_15); +x_18 = lean_unsigned_to_nat(0u); +x_19 = l_Lean_Expr_getAppNumArgsAux___main(x_15, x_18); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_17); -lean_inc(x_15); -x_18 = l_Lean_Meta_getFunInfoNArgs(x_15, x_17, x_5, x_6, x_7, x_8, 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; lean_object* x_26; lean_object* x_27; -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_Expr_getAppArgs___closed__1; lean_inc(x_17); -x_22 = lean_mk_array(x_17, x_21); -x_23 = lean_unsigned_to_nat(1u); -x_24 = lean_nat_sub(x_17, x_23); -lean_dec(x_17); -x_25 = l___private_Lean_Expr_3__getAppArgsAux___main(x_13, x_22, x_24); -x_26 = lean_array_get_size(x_25); -lean_inc(x_26); -x_27 = l_Nat_foldMAux___main___at_Lean_Meta_reduceAux___main___spec__1(x_1, x_2, x_3, x_19, x_26, x_26, x_25, x_5, x_6, x_7, x_8, x_20); -lean_dec(x_26); +x_20 = l_Lean_Meta_getFunInfoNArgs(x_17, x_19, x_5, x_6, x_7, x_8, x_16); +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; lean_object* x_28; lean_object* x_29; lean_object* x_30; +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_Expr_getAppArgs___closed__1; +lean_inc(x_19); +x_24 = lean_mk_array(x_19, x_23); +x_25 = lean_unsigned_to_nat(1u); +x_26 = lean_nat_sub(x_19, x_25); lean_dec(x_19); -if (lean_obj_tag(x_27) == 0) -{ -uint8_t x_28; -x_28 = !lean_is_exclusive(x_27); -if (x_28 == 0) -{ -lean_object* x_29; lean_object* x_30; -x_29 = lean_ctor_get(x_27, 0); -x_30 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_29, x_29, x_16, x_15); +x_27 = l___private_Lean_Expr_3__getAppArgsAux___main(x_15, x_24, x_26); +x_28 = lean_array_get_size(x_27); +lean_inc(x_28); +x_29 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_29, 0, x_18); +lean_ctor_set(x_29, 1, x_28); +lean_ctor_set(x_29, 2, x_25); +x_30 = l_Std_Range_forIn_loop___at_Lean_Meta_reduce_visit___spec__2(x_1, x_2, x_3, x_21, x_29, x_28, x_18, x_27, x_5, x_6, x_7, x_8, x_22); lean_dec(x_29); -lean_ctor_set(x_27, 0, x_30); -return x_27; +lean_dec(x_21); +if (lean_obj_tag(x_30) == 0) +{ +uint8_t x_31; +x_31 = !lean_is_exclusive(x_30); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; +x_32 = lean_ctor_get(x_30, 0); +x_33 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_32, x_32, x_18, x_17); +lean_dec(x_32); +lean_ctor_set(x_30, 0, x_33); +return x_30; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_31 = lean_ctor_get(x_27, 0); -x_32 = lean_ctor_get(x_27, 1); -lean_inc(x_32); -lean_inc(x_31); -lean_dec(x_27); -x_33 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_31, x_31, x_16, x_15); -lean_dec(x_31); -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; +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_34 = lean_ctor_get(x_30, 0); +x_35 = lean_ctor_get(x_30, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_30); +x_36 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_34, x_34, x_18, x_17); +lean_dec(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_35); +return x_37; } } else { -uint8_t x_35; -lean_dec(x_15); -x_35 = !lean_is_exclusive(x_27); -if (x_35 == 0) +uint8_t x_38; +lean_dec(x_17); +x_38 = !lean_is_exclusive(x_30); +if (x_38 == 0) { -return x_27; +return x_30; } else { -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_27, 0); -x_37 = lean_ctor_get(x_27, 1); -lean_inc(x_37); -lean_inc(x_36); -lean_dec(x_27); -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; +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_30, 0); +x_40 = lean_ctor_get(x_30, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_30); +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_39; +uint8_t x_42; +lean_dec(x_19); lean_dec(x_17); lean_dec(x_15); -lean_dec(x_13); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_39 = !lean_is_exclusive(x_18); -if (x_39 == 0) +x_42 = !lean_is_exclusive(x_20); +if (x_42 == 0) { -return x_18; +return x_20; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_18, 0); -x_41 = lean_ctor_get(x_18, 1); -lean_inc(x_41); -lean_inc(x_40); -lean_dec(x_18); -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_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_20, 0); +x_44 = lean_ctor_get(x_20, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_20); +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; } } } case 6: { -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_43 = lean_ctor_get(x_12, 1); -lean_inc(x_43); -lean_dec(x_12); -x_44 = lean_box(x_1); -x_45 = lean_box(x_2); -x_46 = lean_box(x_3); -x_47 = lean_alloc_closure((void*)(l_Lean_Meta_reduceAux___main___lambda__1___boxed), 10, 3); -lean_closure_set(x_47, 0, x_44); -lean_closure_set(x_47, 1, x_45); -lean_closure_set(x_47, 2, x_46); -x_48 = l_Lean_Meta_lambdaTelescope___at_Lean_Meta_reduceAux___main___spec__3___rarg(x_13, x_47, x_5, x_6, x_7, x_8, x_43); -return x_48; +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_46 = lean_ctor_get(x_14, 1); +lean_inc(x_46); +lean_dec(x_14); +x_47 = lean_box(x_1); +x_48 = lean_box(x_2); +x_49 = lean_box(x_3); +x_50 = lean_alloc_closure((void*)(l_Lean_Meta_reduce_visit___lambda__1___boxed), 10, 3); +lean_closure_set(x_50, 0, x_47); +lean_closure_set(x_50, 1, x_48); +lean_closure_set(x_50, 2, x_49); +x_51 = l_Lean_Meta_lambdaTelescope___at_Lean_Meta_reduce_visit___spec__4___rarg(x_15, x_50, x_5, x_6, x_7, x_8, x_46); +return x_51; } case 7: { -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 = lean_ctor_get(x_12, 1); -lean_inc(x_49); -lean_dec(x_12); -x_50 = lean_box(x_1); -x_51 = lean_box(x_2); -x_52 = lean_box(x_3); -x_53 = lean_alloc_closure((void*)(l_Lean_Meta_reduceAux___main___lambda__2___boxed), 10, 3); -lean_closure_set(x_53, 0, x_50); -lean_closure_set(x_53, 1, x_51); -lean_closure_set(x_53, 2, x_52); -x_54 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_5__inferForallType___spec__3___rarg(x_13, x_53, x_5, x_6, x_7, x_8, x_49); -return x_54; +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_14, 1); +lean_inc(x_52); +lean_dec(x_14); +x_53 = lean_box(x_1); +x_54 = lean_box(x_2); +x_55 = lean_box(x_3); +x_56 = lean_alloc_closure((void*)(l_Lean_Meta_reduce_visit___lambda__2___boxed), 10, 3); +lean_closure_set(x_56, 0, x_53); +lean_closure_set(x_56, 1, x_54); +lean_closure_set(x_56, 2, x_55); +x_57 = l_Lean_Meta_forallTelescope___at_Lean_Meta_reduce_visit___spec__6___rarg(x_15, x_56, x_5, x_6, x_7, x_8, x_52); +return x_57; } default: { -uint8_t x_55; +uint8_t x_58; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_55 = !lean_is_exclusive(x_12); -if (x_55 == 0) +x_58 = !lean_is_exclusive(x_14); +if (x_58 == 0) { -lean_object* x_56; -x_56 = lean_ctor_get(x_12, 0); -lean_dec(x_56); -return x_12; +lean_object* x_59; +x_59 = lean_ctor_get(x_14, 0); +lean_dec(x_59); +return x_14; } else { -lean_object* x_57; lean_object* x_58; -x_57 = lean_ctor_get(x_12, 1); -lean_inc(x_57); -lean_dec(x_12); -x_58 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_58, 0, x_13); -lean_ctor_set(x_58, 1, x_57); -return x_58; -} -} -} -} -else -{ -uint8_t x_59; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_59 = !lean_is_exclusive(x_12); -if (x_59 == 0) -{ -return x_12; -} -else -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_12, 0); -x_61 = lean_ctor_get(x_12, 1); -lean_inc(x_61); +lean_object* x_60; lean_object* x_61; +x_60 = lean_ctor_get(x_14, 1); lean_inc(x_60); -lean_dec(x_12); -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_dec(x_14); +x_61 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_61, 0, x_15); +lean_ctor_set(x_61, 1, x_60); +return x_61; +} } } } else { -lean_object* x_63; +uint8_t x_62; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_63 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_63, 0, x_4); -lean_ctor_set(x_63, 1, x_11); -return x_63; +x_62 = !lean_is_exclusive(x_14); +if (x_62 == 0) +{ +return x_14; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_14, 0); +x_64 = lean_ctor_get(x_14, 1); +lean_inc(x_64); +lean_inc(x_63); +lean_dec(x_14); +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_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_66 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_66, 0, x_4); +lean_ctor_set(x_66, 1, x_13); +return x_66; +} +} +else +{ +lean_object* x_67; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_67 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_67, 0, x_4); +lean_ctor_set(x_67, 1, x_13); +return x_67; } } } } -lean_object* l_Nat_foldMAux___main___at_Lean_Meta_reduceAux___main___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* l_Std_Range_forIn_loop___at_Lean_Meta_reduce_visit___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) { _start: { -uint8_t x_13; uint8_t x_14; uint8_t x_15; lean_object* x_16; -x_13 = lean_unbox(x_1); +uint8_t x_14; uint8_t x_15; uint8_t x_16; lean_object* x_17; +x_14 = lean_unbox(x_1); lean_dec(x_1); -x_14 = lean_unbox(x_2); +x_15 = lean_unbox(x_2); lean_dec(x_2); -x_15 = lean_unbox(x_3); +x_16 = lean_unbox(x_3); lean_dec(x_3); -x_16 = l_Nat_foldMAux___main___at_Lean_Meta_reduceAux___main___spec__1(x_13, x_14, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_17 = l_Std_Range_forIn_loop___at_Lean_Meta_reduce_visit___spec__2(x_14, x_15, x_16, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); lean_dec(x_5); lean_dec(x_4); -return x_16; +return x_17; } } -lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_reduceAux___main___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* l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_reduce_visit___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_Meta_mkLambdaFVars___at_Lean_Meta_reduceAux___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_reduce_visit___spec__3(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); return x_8; } } -lean_object* l_Lean_Meta_reduceAux___main___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* l_Lean_Meta_mkForallFVars___at_Lean_Meta_reduce_visit___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) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Meta_mkForallFVars___at_Lean_Meta_reduce_visit___spec__5(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); +return x_8; +} +} +lean_object* l_Lean_Meta_reduce_visit___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; uint8_t x_12; uint8_t x_13; lean_object* x_14; @@ -1146,11 +1573,11 @@ x_12 = lean_unbox(x_2); lean_dec(x_2); x_13 = lean_unbox(x_3); lean_dec(x_3); -x_14 = l_Lean_Meta_reduceAux___main___lambda__1(x_11, x_12, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_14 = l_Lean_Meta_reduce_visit___lambda__1(x_11, x_12, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10); return x_14; } } -lean_object* l_Lean_Meta_reduceAux___main___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* l_Lean_Meta_reduce_visit___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; uint8_t x_12; uint8_t x_13; lean_object* x_14; @@ -1160,11 +1587,11 @@ x_12 = lean_unbox(x_2); lean_dec(x_2); x_13 = lean_unbox(x_3); lean_dec(x_3); -x_14 = l_Lean_Meta_reduceAux___main___lambda__2(x_11, x_12, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_14 = l_Lean_Meta_reduce_visit___lambda__2(x_11, x_12, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10); return x_14; } } -lean_object* l_Lean_Meta_reduceAux___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_Meta_reduce_visit___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; uint8_t x_11; uint8_t x_12; lean_object* x_13; @@ -1174,29 +1601,7 @@ x_11 = lean_unbox(x_2); lean_dec(x_2); x_12 = lean_unbox(x_3); lean_dec(x_3); -x_13 = l_Lean_Meta_reduceAux___main(x_10, x_11, x_12, x_4, x_5, x_6, x_7, x_8, x_9); -return x_13; -} -} -lean_object* l_Lean_Meta_reduceAux(uint8_t x_1, uint8_t 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: -{ -lean_object* x_10; -x_10 = l_Lean_Meta_reduceAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_10; -} -} -lean_object* l_Lean_Meta_reduceAux___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; uint8_t x_11; uint8_t x_12; lean_object* x_13; -x_10 = lean_unbox(x_1); -lean_dec(x_1); -x_11 = lean_unbox(x_2); -lean_dec(x_2); -x_12 = lean_unbox(x_3); -lean_dec(x_3); -x_13 = l_Lean_Meta_reduceAux(x_10, x_11, x_12, x_4, x_5, x_6, x_7, x_8, x_9); +x_13 = l_Lean_Meta_reduce_visit(x_10, x_11, x_12, x_4, x_5, x_6, x_7, x_8, x_9); return x_13; } } @@ -1204,7 +1609,7 @@ lean_object* l_Lean_Meta_reduce(lean_object* x_1, uint8_t x_2, uint8_t x_3, uint _start: { lean_object* x_10; -x_10 = l_Lean_Meta_reduceAux___main(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lean_Meta_reduce_visit(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_8, x_9); return x_10; } } diff --git a/stage0/stdlib/Lean/Meta/ReduceEval.c b/stage0/stdlib/Lean/Meta/ReduceEval.c index 1bbf1fb541..36c766975a 100644 --- a/stage0/stdlib/Lean/Meta/ReduceEval.c +++ b/stage0/stdlib/Lean/Meta/ReduceEval.c @@ -13,46 +13,62 @@ #ifdef __cplusplus extern "C" { #endif +lean_object* l_Lean_Meta_reduceEval___at___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Init_LeanInit_15__quoteOption___rarg___closed__6; -lean_object* l_Lean_Meta_whnf___at___private_Lean_Meta_Basic_16__isClassExpensive_x3f___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_stringToMessageData(lean_object*); +extern lean_object* l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; +lean_object* l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___closed__5; +lean_object* l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___closed__3; lean_object* l_Lean_Meta_reduceEval___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_ReduceEval_1__evalName___main___closed__1; -lean_object* l___private_Lean_Meta_ReduceEval_1__evalName___main___closed__2; -lean_object* l_Lean_Meta_Nat_hasReduceEval(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Lean_Meta_ReduceEval___instance__1_match__1(lean_object*); +lean_object* lean_st_ref_get(lean_object*, lean_object*); +lean_object* l_Lean_Meta_Lean_Meta_ReduceEval___instance__2(lean_object*); extern lean_object* l___private_Init_LeanInit_15__quoteOption___rarg___closed__3; lean_object* l_Lean_Expr_getAppFn___main(lean_object*); -lean_object* l___private_Lean_Meta_ReduceEval_1__evalName___main___closed__4; +extern lean_object* l_String_splitAux___main___closed__1; +lean_object* l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg___closed__1; lean_object* l_Lean_Expr_appArg_x21(lean_object*); -lean_object* l_Lean_Meta_Nat_hasReduceEval___closed__3; +lean_object* l_Lean_Meta_evalNat(lean_object*); +lean_object* lean_nat_add(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg___closed__3; +lean_object* l_Lean_Meta_Lean_Meta_ReduceEval___instance__4; lean_object* l_Lean_Expr_getAppNumArgsAux___main(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_ReduceEval_1__evalName___main___closed__6; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); -lean_object* l_Lean_Meta_evalNat___main(lean_object*); +lean_object* l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___closed__6; +lean_object* l_Lean_Meta_Lean_Meta_ReduceEval___instance__3_match__1(lean_object*); +lean_object* l_Lean_Meta_Lean_Meta_ReduceEval___instance__2_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Lean_Meta_ReduceEval___instance__2_match__1(lean_object*); +lean_object* l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___closed__4; lean_object* lean_name_mk_string(lean_object*, lean_object*); -lean_object* lean_expr_dbg_to_string(lean_object*); -lean_object* l_Lean_Meta_Option_hasReduceEval___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_String_hasReduceEval(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_ReduceEval_1__evalName___main___closed__5; -lean_object* l___private_Lean_Meta_ReduceEval_1__evalName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___closed__2; +lean_object* l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval(lean_object*); +lean_object* l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___closed__1; +lean_object* l_Lean_Meta_Lean_Meta_ReduceEval___instance__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Lean_Meta_ReduceEval___instance__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Init_LeanInit_13__quoteName___main___closed__2; -lean_object* l_Lean_Meta_Name_hasReduceEval___closed__1; -lean_object* l___private_Lean_Meta_ReduceEval_1__evalName___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_reduceEval___at___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Lean_Meta_ReduceEval___instance__3_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getRevArg_x21___main(lean_object*, lean_object*); -lean_object* l_Lean_Meta_reduceEval___at___private_Lean_Meta_ReduceEval_1__evalName___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_reduceEval___at___private_Lean_Meta_ReduceEval_1__evalName___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_whnf___at_Lean_Meta_Lean_Meta_ReduceEval___instance__1___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName_match__1(lean_object*); +extern lean_object* l_Lean_Meta_whnfRef; +lean_object* l_Lean_Meta_Lean_Meta_ReduceEval___instance__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Init_LeanInit_13__quoteName___main___closed__1; -lean_object* l_Lean_Meta_Nat_hasReduceEval___closed__1; uint8_t l_Lean_Meta_TransparencyMode_lt(uint8_t, uint8_t); +lean_object* l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg___closed__2; lean_object* l_Lean_Meta_reduceEval(lean_object*); -lean_object* l_Lean_Meta_Option_hasReduceEval(lean_object*); -lean_object* l_Lean_Meta_Name_hasReduceEval; -lean_object* l___private_Lean_Meta_ReduceEval_1__evalName___main___closed__3; +lean_object* l_Lean_Meta_Lean_Meta_ReduceEval___instance__1_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_indentExpr(lean_object*); extern lean_object* l_Lean_mkAppStx___closed__2; +lean_object* l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Lean_Meta_ReduceEval___instance__4___closed__1; lean_object* lean_name_mk_numeral(lean_object*, lean_object*); -lean_object* l_Lean_Meta_Nat_hasReduceEval___closed__2; lean_object* l_Lean_Meta_reduceEval___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { @@ -488,35 +504,200 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Meta_reduceEval___rarg), 7, 0); return x_2; } } -static lean_object* _init_l_Lean_Meta_Nat_hasReduceEval___closed__1() { +static lean_object* _init_l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string("reduceEval: failed to evaluate argument: "); +x_1 = lean_mk_string("reduceEval: failed to evaluate argument"); return x_1; } } -static lean_object* _init_l_Lean_Meta_Nat_hasReduceEval___closed__2() { +static lean_object* _init_l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Nat_hasReduceEval___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_Nat_hasReduceEval___closed__3() { +static lean_object* _init_l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Nat_hasReduceEval___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_String_splitAux___main___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l_Lean_Meta_Nat_hasReduceEval(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___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) { +_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; +x_7 = l_Lean_indentExpr(x_1); +x_8 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg___closed__2; +x_9 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_7); +x_10 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg___closed__3; +x_11 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_11, 0, x_9); +lean_ctor_set(x_11, 1, x_10); +x_12 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_11, x_2, x_3, x_4, x_5, x_6); +return x_12; +} +} +lean_object* l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg___boxed), 6, 0); +return x_2; +} +} +lean_object* l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg(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); +return x_7; +} +} +lean_object* l_Lean_Meta_Lean_Meta_ReduceEval___instance__1_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; +lean_dec(x_2); +x_4 = lean_apply_1(x_3, x_1); +return x_4; +} +else +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_3); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_apply_1(x_2, x_5); +return x_6; +} +} +} +lean_object* l_Lean_Meta_Lean_Meta_ReduceEval___instance__1_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Lean_Meta_ReduceEval___instance__1_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_whnf___at_Lean_Meta_Lean_Meta_ReduceEval___instance__1___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) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_7 = lean_ctor_get(x_4, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_4, 1); +lean_inc(x_8); +x_9 = lean_ctor_get(x_4, 2); +lean_inc(x_9); +x_10 = lean_ctor_get(x_4, 3); +lean_inc(x_10); +x_11 = lean_nat_dec_eq(x_8, x_9); +if (x_11 == 0) +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_4); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_13 = lean_ctor_get(x_4, 3); +lean_dec(x_13); +x_14 = lean_ctor_get(x_4, 2); +lean_dec(x_14); +x_15 = lean_ctor_get(x_4, 1); +lean_dec(x_15); +x_16 = lean_ctor_get(x_4, 0); +lean_dec(x_16); +x_17 = lean_unsigned_to_nat(1u); +x_18 = lean_nat_add(x_8, x_17); +lean_dec(x_8); +lean_ctor_set(x_4, 1, x_18); +x_19 = l_Lean_Meta_whnfRef; +x_20 = lean_st_ref_get(x_19, x_6); +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_apply_6(x_21, x_1, x_2, x_3, x_4, x_5, x_22); +return x_23; +} +else +{ +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_dec(x_4); +x_24 = lean_unsigned_to_nat(1u); +x_25 = lean_nat_add(x_8, x_24); +lean_dec(x_8); +x_26 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_26, 0, x_7); +lean_ctor_set(x_26, 1, x_25); +lean_ctor_set(x_26, 2, x_9); +lean_ctor_set(x_26, 3, x_10); +x_27 = l_Lean_Meta_whnfRef; +x_28 = lean_st_ref_get(x_27, 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_31 = lean_apply_6(x_29, x_1, x_2, x_3, x_26, x_5, x_30); +return x_31; +} +} +else +{ +lean_object* x_32; lean_object* x_33; uint8_t x_34; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_32 = l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; +x_33 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_32, 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); +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 0) +{ +return x_33; +} +else +{ +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_33, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_33); +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* l_Lean_Meta_Lean_Meta_ReduceEval___instance__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; @@ -524,7 +705,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_7 = l_Lean_Meta_whnf___at___private_Lean_Meta_Basic_16__isClassExpensive_x3f___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_Meta_whnf___at_Lean_Meta_Lean_Meta_ReduceEval___instance__1___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); if (lean_obj_tag(x_7) == 0) { uint8_t x_8; @@ -535,22 +716,47 @@ lean_object* x_9; lean_object* x_10; lean_object* x_11; x_9 = lean_ctor_get(x_7, 0); x_10 = lean_ctor_get(x_7, 1); lean_inc(x_9); -x_11 = l_Lean_Meta_evalNat___main(x_9); +x_11 = l_Lean_Meta_evalNat(x_9); 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; +lean_object* x_12; lean_free_object(x_7); -x_12 = lean_expr_dbg_to_string(x_9); +x_12 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg(x_9, x_2, x_3, x_4, x_5, x_10); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_12; +} +else +{ +lean_object* x_13; lean_dec(x_9); -x_13 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_13, 0, x_12); -x_14 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_14, 0, x_13); -x_15 = l_Lean_Meta_Nat_hasReduceEval___closed__3; -x_16 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_14); -x_17 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_16, x_2, x_3, x_4, x_5, x_10); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_13 = lean_ctor_get(x_11, 0); +lean_inc(x_13); +lean_dec(x_11); +lean_ctor_set(x_7, 0, x_13); +return x_7; +} +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +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); +lean_inc(x_14); +x_16 = l_Lean_Meta_evalNat(x_14); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; +x_17 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg(x_14, x_2, x_3, x_4, x_5, x_15); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -559,96 +765,85 @@ return x_17; } else { -lean_object* x_18; -lean_dec(x_9); +lean_object* x_18; lean_object* x_19; +lean_dec(x_14); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_18 = lean_ctor_get(x_11, 0); +x_18 = lean_ctor_get(x_16, 0); lean_inc(x_18); -lean_dec(x_11); -lean_ctor_set(x_7, 0, x_18); -return x_7; -} -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_7, 0); -x_20 = lean_ctor_get(x_7, 1); -lean_inc(x_20); -lean_inc(x_19); -lean_dec(x_7); -lean_inc(x_19); -x_21 = l_Lean_Meta_evalNat___main(x_19); -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; -x_22 = lean_expr_dbg_to_string(x_19); -lean_dec(x_19); -x_23 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_23, 0, x_22); -x_24 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_24, 0, x_23); -x_25 = l_Lean_Meta_Nat_hasReduceEval___closed__3; -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_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_26, x_2, x_3, x_4, x_5, x_20); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_27; -} -else -{ -lean_object* x_28; lean_object* x_29; -lean_dec(x_19); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_28 = lean_ctor_get(x_21, 0); -lean_inc(x_28); -lean_dec(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_20); -return x_29; +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_15); +return x_19; } } } else { -uint8_t x_30; +uint8_t x_20; lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_30 = !lean_is_exclusive(x_7); -if (x_30 == 0) +x_20 = !lean_is_exclusive(x_7); +if (x_20 == 0) { return x_7; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_7, 0); -x_32 = lean_ctor_get(x_7, 1); -lean_inc(x_32); -lean_inc(x_31); +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_7, 0); +x_22 = lean_ctor_get(x_7, 1); +lean_inc(x_22); +lean_inc(x_21); lean_dec(x_7); -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_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_object* l_Lean_Meta_Option_hasReduceEval___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Lean_Meta_Lean_Meta_ReduceEval___instance__2_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 4) +{ +lean_object* x_4; lean_object* x_5; uint64_t x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +x_6 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +lean_dec(x_1); +x_7 = lean_box_uint64(x_6); +x_8 = lean_apply_3(x_2, x_4, x_5, x_7); +return x_8; +} +else +{ +lean_object* x_9; +lean_dec(x_2); +x_9 = lean_apply_1(x_3, x_1); +return x_9; +} +} +} +lean_object* l_Lean_Meta_Lean_Meta_ReduceEval___instance__2_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Lean_Meta_ReduceEval___instance__2_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_Lean_Meta_ReduceEval___instance__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; @@ -656,206 +851,140 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_8 = l_Lean_Meta_whnf___at___private_Lean_Meta_Basic_16__isClassExpensive_x3f___main___spec__2(x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Lean_Meta_whnf___at_Lean_Meta_Lean_Meta_ReduceEval___instance__1___spec__1(x_2, x_3, x_4, x_5, x_6, x_7); if (lean_obj_tag(x_8) == 0) { -uint8_t x_9; -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_20; -x_10 = lean_ctor_get(x_8, 0); -x_11 = lean_ctor_get(x_8, 1); -x_20 = l_Lean_Expr_getAppFn___main(x_10); -if (lean_obj_tag(x_20) == 4) -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -lean_dec(x_20); -x_22 = lean_unsigned_to_nat(0u); -x_23 = l_Lean_Expr_getAppNumArgsAux___main(x_10, x_22); -x_24 = l___private_Init_LeanInit_15__quoteOption___rarg___closed__3; -x_25 = lean_name_eq(x_21, x_24); -if (x_25 == 0) -{ -lean_object* x_26; uint8_t x_27; -lean_free_object(x_8); -x_26 = l___private_Init_LeanInit_15__quoteOption___rarg___closed__6; -x_27 = lean_name_eq(x_21, x_26); -lean_dec(x_21); -if (x_27 == 0) -{ -lean_object* x_28; -lean_dec(x_23); -lean_dec(x_1); -x_28 = lean_box(0); -x_12 = x_28; -goto block_19; +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_8, 1); +lean_inc(x_10); +if (lean_is_exclusive(x_8)) { + lean_ctor_release(x_8, 0); + lean_ctor_release(x_8, 1); + x_11 = x_8; +} else { + lean_dec_ref(x_8); + x_11 = lean_box(0); } -else +x_12 = l_Lean_Expr_getAppFn___main(x_9); +if (lean_obj_tag(x_12) == 4) { -lean_object* x_29; uint8_t x_30; -x_29 = lean_unsigned_to_nat(1u); -x_30 = lean_nat_dec_eq(x_23, x_29); -lean_dec(x_23); -if (x_30 == 0) -{ -lean_object* x_31; -lean_dec(x_1); -x_31 = lean_box(0); -x_12 = x_31; -goto block_19; -} -else -{ -lean_object* x_32; lean_object* x_33; -x_32 = l_Lean_Expr_appArg_x21(x_10); -lean_dec(x_10); -x_33 = l_Lean_Meta_reduceEval___rarg(x_1, x_32, x_3, x_4, x_5, x_6, x_11); -if (lean_obj_tag(x_33) == 0) -{ -uint8_t x_34; -x_34 = !lean_is_exclusive(x_33); -if (x_34 == 0) -{ -lean_object* x_35; lean_object* x_36; -x_35 = lean_ctor_get(x_33, 0); -x_36 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_33, 0, x_36); -return x_33; -} -else -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_37 = lean_ctor_get(x_33, 0); -x_38 = lean_ctor_get(x_33, 1); -lean_inc(x_38); -lean_inc(x_37); -lean_dec(x_33); -x_39 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_39, 0, x_37); -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_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_39; uint8_t x_40; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_unsigned_to_nat(0u); +x_15 = l_Lean_Expr_getAppNumArgsAux___main(x_9, x_14); +x_39 = l___private_Init_LeanInit_15__quoteOption___rarg___closed__3; +x_40 = lean_name_eq(x_13, x_39); +if (x_40 == 0) { uint8_t x_41; -x_41 = !lean_is_exclusive(x_33); -if (x_41 == 0) -{ -return x_33; +x_41 = 0; +x_16 = x_41; +goto block_38; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_33, 0); -x_43 = lean_ctor_get(x_33, 1); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_33); -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; +uint8_t x_42; +x_42 = lean_nat_dec_eq(x_15, x_14); +x_16 = x_42; +goto block_38; } -} -} -} -} -else +block_38: { -uint8_t x_45; -x_45 = lean_nat_dec_eq(x_23, x_22); -if (x_45 == 0) +if (x_16 == 0) { -lean_object* x_46; uint8_t x_47; -lean_free_object(x_8); -x_46 = l___private_Init_LeanInit_15__quoteOption___rarg___closed__6; -x_47 = lean_name_eq(x_21, x_46); -lean_dec(x_21); -if (x_47 == 0) +lean_object* x_17; uint8_t x_18; +lean_dec(x_11); +x_17 = l___private_Init_LeanInit_15__quoteOption___rarg___closed__6; +x_18 = lean_name_eq(x_13, x_17); +lean_dec(x_13); +if (x_18 == 0) { -lean_object* x_48; -lean_dec(x_23); +lean_object* x_19; +lean_dec(x_15); lean_dec(x_1); -x_48 = lean_box(0); -x_12 = x_48; -goto block_19; +x_19 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg(x_9, x_3, x_4, x_5, x_6, x_10); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_19; } else { -lean_object* x_49; uint8_t x_50; -x_49 = lean_unsigned_to_nat(1u); -x_50 = lean_nat_dec_eq(x_23, x_49); -lean_dec(x_23); -if (x_50 == 0) +lean_object* x_20; uint8_t x_21; +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_dec_eq(x_15, x_20); +lean_dec(x_15); +if (x_21 == 0) { -lean_object* x_51; +lean_object* x_22; lean_dec(x_1); -x_51 = lean_box(0); -x_12 = x_51; -goto block_19; +x_22 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg(x_9, x_3, x_4, x_5, x_6, x_10); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_22; } else { -lean_object* x_52; lean_object* x_53; -x_52 = l_Lean_Expr_appArg_x21(x_10); -lean_dec(x_10); -x_53 = l_Lean_Meta_reduceEval___rarg(x_1, x_52, x_3, x_4, x_5, x_6, x_11); -if (lean_obj_tag(x_53) == 0) +lean_object* x_23; lean_object* x_24; +x_23 = l_Lean_Expr_appArg_x21(x_9); +lean_dec(x_9); +x_24 = l_Lean_Meta_reduceEval___rarg(x_1, x_23, x_3, x_4, x_5, x_6, x_10); +if (lean_obj_tag(x_24) == 0) { -uint8_t x_54; -x_54 = !lean_is_exclusive(x_53); -if (x_54 == 0) +uint8_t x_25; +x_25 = !lean_is_exclusive(x_24); +if (x_25 == 0) { -lean_object* x_55; lean_object* x_56; -x_55 = lean_ctor_get(x_53, 0); -x_56 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_56, 0, x_55); -lean_ctor_set(x_53, 0, x_56); -return x_53; +lean_object* x_26; lean_object* x_27; +x_26 = lean_ctor_get(x_24, 0); +x_27 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_24, 0, x_27); +return x_24; } else { -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_57 = lean_ctor_get(x_53, 0); -x_58 = lean_ctor_get(x_53, 1); -lean_inc(x_58); -lean_inc(x_57); -lean_dec(x_53); -x_59 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_59, 0, x_57); -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_59); -lean_ctor_set(x_60, 1, x_58); -return x_60; +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_28 = lean_ctor_get(x_24, 0); +x_29 = lean_ctor_get(x_24, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_24); +x_30 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_30, 0, x_28); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_29); +return x_31; } } else { -uint8_t x_61; -x_61 = !lean_is_exclusive(x_53); -if (x_61 == 0) +uint8_t x_32; +x_32 = !lean_is_exclusive(x_24); +if (x_32 == 0) { -return x_53; +return x_24; } else { -lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_62 = lean_ctor_get(x_53, 0); -x_63 = lean_ctor_get(x_53, 1); -lean_inc(x_63); -lean_inc(x_62); -lean_dec(x_53); -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_33; lean_object* x_34; lean_object* x_35; +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_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +return x_35; } } } @@ -863,341 +992,126 @@ return x_64; } else { -lean_object* x_65; -lean_dec(x_23); -lean_dec(x_21); -lean_dec(x_10); +lean_object* x_36; lean_object* x_37; +lean_dec(x_15); +lean_dec(x_13); +lean_dec(x_9); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_65 = lean_box(0); -lean_ctor_set(x_8, 0, x_65); -return x_8; +x_36 = lean_box(0); +if (lean_is_scalar(x_11)) { + x_37 = lean_alloc_ctor(0, 2, 0); +} else { + x_37 = x_11; +} +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_10); +return x_37; } } } else { -lean_object* x_66; -lean_dec(x_20); -lean_free_object(x_8); -lean_dec(x_1); -x_66 = lean_box(0); -x_12 = x_66; -goto block_19; -} -block_19: -{ -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_43; lean_dec(x_12); -x_13 = lean_expr_dbg_to_string(x_10); -lean_dec(x_10); -x_14 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_14, 0, x_13); -x_15 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_15, 0, x_14); -x_16 = l_Lean_Meta_Nat_hasReduceEval___closed__3; -x_17 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_15); -x_18 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_17, x_3, x_4, x_5, x_6, x_11); +lean_dec(x_11); +lean_dec(x_1); +x_43 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg(x_9, x_3, x_4, x_5, x_6, x_10); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_18; +return x_43; } } else { -lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_77; -x_67 = lean_ctor_get(x_8, 0); -x_68 = lean_ctor_get(x_8, 1); -lean_inc(x_68); -lean_inc(x_67); -lean_dec(x_8); -x_77 = l_Lean_Expr_getAppFn___main(x_67); -if (lean_obj_tag(x_77) == 4) -{ -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_77, 0); -lean_inc(x_78); -lean_dec(x_77); -x_79 = lean_unsigned_to_nat(0u); -x_80 = l_Lean_Expr_getAppNumArgsAux___main(x_67, x_79); -x_81 = l___private_Init_LeanInit_15__quoteOption___rarg___closed__3; -x_82 = lean_name_eq(x_78, x_81); -if (x_82 == 0) -{ -lean_object* x_83; uint8_t x_84; -x_83 = l___private_Init_LeanInit_15__quoteOption___rarg___closed__6; -x_84 = lean_name_eq(x_78, x_83); -lean_dec(x_78); -if (x_84 == 0) -{ -lean_object* x_85; -lean_dec(x_80); -lean_dec(x_1); -x_85 = lean_box(0); -x_69 = x_85; -goto block_76; -} -else -{ -lean_object* x_86; uint8_t x_87; -x_86 = lean_unsigned_to_nat(1u); -x_87 = lean_nat_dec_eq(x_80, x_86); -lean_dec(x_80); -if (x_87 == 0) -{ -lean_object* x_88; -lean_dec(x_1); -x_88 = lean_box(0); -x_69 = x_88; -goto block_76; -} -else -{ -lean_object* x_89; lean_object* x_90; -x_89 = l_Lean_Expr_appArg_x21(x_67); -lean_dec(x_67); -x_90 = l_Lean_Meta_reduceEval___rarg(x_1, x_89, x_3, x_4, x_5, x_6, x_68); -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; -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); -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; -x_96 = lean_ctor_get(x_90, 0); -lean_inc(x_96); -x_97 = lean_ctor_get(x_90, 1); -lean_inc(x_97); -if (lean_is_exclusive(x_90)) { - lean_ctor_release(x_90, 0); - lean_ctor_release(x_90, 1); - x_98 = x_90; -} else { - lean_dec_ref(x_90); - 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; -x_100 = lean_nat_dec_eq(x_80, x_79); -if (x_100 == 0) -{ -lean_object* x_101; uint8_t x_102; -x_101 = l___private_Init_LeanInit_15__quoteOption___rarg___closed__6; -x_102 = lean_name_eq(x_78, x_101); -lean_dec(x_78); -if (x_102 == 0) -{ -lean_object* x_103; -lean_dec(x_80); -lean_dec(x_1); -x_103 = lean_box(0); -x_69 = x_103; -goto block_76; -} -else -{ -lean_object* x_104; uint8_t x_105; -x_104 = lean_unsigned_to_nat(1u); -x_105 = lean_nat_dec_eq(x_80, x_104); -lean_dec(x_80); -if (x_105 == 0) -{ -lean_object* x_106; -lean_dec(x_1); -x_106 = lean_box(0); -x_69 = x_106; -goto block_76; -} -else -{ -lean_object* x_107; lean_object* x_108; -x_107 = l_Lean_Expr_appArg_x21(x_67); -lean_dec(x_67); -x_108 = l_Lean_Meta_reduceEval___rarg(x_1, x_107, x_3, x_4, x_5, x_6, x_68); -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; -x_109 = lean_ctor_get(x_108, 0); -lean_inc(x_109); -x_110 = lean_ctor_get(x_108, 1); -lean_inc(x_110); -if (lean_is_exclusive(x_108)) { - lean_ctor_release(x_108, 0); - lean_ctor_release(x_108, 1); - x_111 = x_108; -} else { - lean_dec_ref(x_108); - x_111 = lean_box(0); -} -x_112 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_112, 0, x_109); -if (lean_is_scalar(x_111)) { - x_113 = lean_alloc_ctor(0, 2, 0); -} else { - x_113 = x_111; -} -lean_ctor_set(x_113, 0, x_112); -lean_ctor_set(x_113, 1, x_110); -return x_113; -} -else -{ -lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; -x_114 = lean_ctor_get(x_108, 0); -lean_inc(x_114); -x_115 = lean_ctor_get(x_108, 1); -lean_inc(x_115); -if (lean_is_exclusive(x_108)) { - lean_ctor_release(x_108, 0); - lean_ctor_release(x_108, 1); - x_116 = x_108; -} else { - lean_dec_ref(x_108); - x_116 = lean_box(0); -} -if (lean_is_scalar(x_116)) { - x_117 = lean_alloc_ctor(1, 2, 0); -} else { - x_117 = x_116; -} -lean_ctor_set(x_117, 0, x_114); -lean_ctor_set(x_117, 1, x_115); -return x_117; -} -} -} -} -else -{ -lean_object* x_118; lean_object* x_119; -lean_dec(x_80); -lean_dec(x_78); -lean_dec(x_67); +uint8_t x_44; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_118 = lean_box(0); -x_119 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_119, 0, x_118); -lean_ctor_set(x_119, 1, x_68); -return x_119; -} -} -} -else -{ -lean_object* x_120; -lean_dec(x_77); -lean_dec(x_1); -x_120 = lean_box(0); -x_69 = x_120; -goto block_76; -} -block_76: -{ -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_dec(x_69); -x_70 = lean_expr_dbg_to_string(x_67); -lean_dec(x_67); -x_71 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_71, 0, x_70); -x_72 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_72, 0, x_71); -x_73 = l_Lean_Meta_Nat_hasReduceEval___closed__3; -x_74 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_74, 0, x_73); -lean_ctor_set(x_74, 1, x_72); -x_75 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_74, x_3, x_4, x_5, x_6, x_68); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_75; -} -} -} -else -{ -uint8_t x_121; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_121 = !lean_is_exclusive(x_8); -if (x_121 == 0) +x_44 = !lean_is_exclusive(x_8); +if (x_44 == 0) { return x_8; } else { -lean_object* x_122; lean_object* x_123; lean_object* x_124; -x_122 = lean_ctor_get(x_8, 0); -x_123 = lean_ctor_get(x_8, 1); -lean_inc(x_123); -lean_inc(x_122); +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_8, 0); +x_46 = lean_ctor_get(x_8, 1); +lean_inc(x_46); +lean_inc(x_45); lean_dec(x_8); -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; +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; } } } } -lean_object* l_Lean_Meta_Option_hasReduceEval(lean_object* x_1) { +lean_object* l_Lean_Meta_Lean_Meta_ReduceEval___instance__2(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Option_hasReduceEval___rarg), 7, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Lean_Meta_ReduceEval___instance__2___rarg), 7, 0); return x_2; } } -lean_object* l_Lean_Meta_String_hasReduceEval(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Lean_Meta_Lean_Meta_ReduceEval___instance__3_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 9) +{ +lean_object* x_4; +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_5; +lean_dec(x_4); +lean_dec(x_2); +x_5 = lean_apply_1(x_3, x_1); +return x_5; +} +else +{ +uint64_t x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_3); +x_6 = lean_ctor_get_uint64(x_1, sizeof(void*)*1); +lean_dec(x_1); +x_7 = lean_ctor_get(x_4, 0); +lean_inc(x_7); +lean_dec(x_4); +x_8 = lean_box_uint64(x_6); +x_9 = lean_apply_2(x_2, x_7, x_8); +return x_9; +} +} +else +{ +lean_object* x_10; +lean_dec(x_2); +x_10 = lean_apply_1(x_3, x_1); +return x_10; +} +} +} +lean_object* l_Lean_Meta_Lean_Meta_ReduceEval___instance__3_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Lean_Meta_ReduceEval___instance__3_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_Lean_Meta_ReduceEval___instance__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) { _start: { lean_object* x_7; @@ -1206,177 +1120,147 @@ lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_7 = l_Lean_Meta_whnf___at___private_Lean_Meta_Basic_16__isClassExpensive_x3f___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_Meta_whnf___at_Lean_Meta_Lean_Meta_ReduceEval___instance__1___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); if (lean_obj_tag(x_7) == 0) { -uint8_t x_8; -x_8 = !lean_is_exclusive(x_7); -if (x_8 == 0) +lean_object* x_8; +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +if (lean_obj_tag(x_8) == 9) { -lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_9 = lean_ctor_get(x_7, 0); -x_10 = lean_ctor_get(x_7, 1); -if (lean_obj_tag(x_9) == 9) +lean_object* x_9; +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +lean_dec(x_8); +if (lean_obj_tag(x_9) == 0) { -lean_object* x_19; -x_19 = lean_ctor_get(x_9, 0); -lean_inc(x_19); +lean_object* x_10; lean_object* x_11; lean_dec(x_9); -if (lean_obj_tag(x_19) == 0) -{ -lean_object* x_20; -lean_dec(x_19); -lean_free_object(x_7); -x_20 = lean_box(0); -x_11 = x_20; -goto block_18; +x_10 = lean_ctor_get(x_7, 1); +lean_inc(x_10); +lean_dec(x_7); +x_11 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg(x_1, x_2, x_3, x_4, x_5, x_10); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_11; } else { -lean_object* x_21; +uint8_t x_12; lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_21 = lean_ctor_get(x_19, 0); -lean_inc(x_21); -lean_dec(x_19); -lean_ctor_set(x_7, 0, x_21); +x_12 = !lean_is_exclusive(x_7); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_ctor_get(x_7, 0); +lean_dec(x_13); +x_14 = lean_ctor_get(x_9, 0); +lean_inc(x_14); +lean_dec(x_9); +lean_ctor_set(x_7, 0, x_14); return x_7; } -} else { -lean_object* x_22; -lean_free_object(x_7); +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_7, 1); +lean_inc(x_15); +lean_dec(x_7); +x_16 = lean_ctor_get(x_9, 0); +lean_inc(x_16); lean_dec(x_9); -x_22 = lean_box(0); -x_11 = x_22; -goto block_18; -} -block_18: -{ -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_dec(x_11); -x_12 = lean_expr_dbg_to_string(x_1); -lean_dec(x_1); -x_13 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_13, 0, x_12); -x_14 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_14, 0, x_13); -x_15 = l_Lean_Meta_Nat_hasReduceEval___closed__3; -x_16 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_14); -x_17 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_16, x_2, x_3, x_4, x_5, x_10); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_15); return x_17; } } +} else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_7, 0); -x_24 = lean_ctor_get(x_7, 1); -lean_inc(x_24); -lean_inc(x_23); +lean_object* x_18; lean_object* x_19; +lean_dec(x_8); +x_18 = lean_ctor_get(x_7, 1); +lean_inc(x_18); lean_dec(x_7); -if (lean_obj_tag(x_23) == 9) -{ -lean_object* x_33; -x_33 = lean_ctor_get(x_23, 0); -lean_inc(x_33); -lean_dec(x_23); -if (lean_obj_tag(x_33) == 0) -{ -lean_object* x_34; -lean_dec(x_33); -x_34 = lean_box(0); -x_25 = x_34; -goto block_32; +x_19 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg(x_1, x_2, x_3, x_4, x_5, x_18); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_19; +} } else { -lean_object* x_35; lean_object* x_36; +uint8_t x_20; lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_35 = lean_ctor_get(x_33, 0); -lean_inc(x_35); -lean_dec(x_33); -x_36 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_24); -return x_36; -} -} -else -{ -lean_object* x_37; -lean_dec(x_23); -x_37 = lean_box(0); -x_25 = x_37; -goto block_32; -} -block_32: -{ -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_dec(x_25); -x_26 = lean_expr_dbg_to_string(x_1); -lean_dec(x_1); -x_27 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_27, 0, x_26); -x_28 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_28, 0, x_27); -x_29 = l_Lean_Meta_Nat_hasReduceEval___closed__3; -x_30 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_28); -x_31 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_30, x_2, x_3, x_4, x_5, x_24); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_31; -} -} -} -else -{ -uint8_t x_38; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_38 = !lean_is_exclusive(x_7); -if (x_38 == 0) +x_20 = !lean_is_exclusive(x_7); +if (x_20 == 0) { return x_7; } else { -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_7, 0); -x_40 = lean_ctor_get(x_7, 1); -lean_inc(x_40); -lean_inc(x_39); +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_7, 0); +x_22 = lean_ctor_get(x_7, 1); +lean_inc(x_22); +lean_inc(x_21); lean_dec(x_7); -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_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_object* l_Lean_Meta_reduceEval___at___private_Lean_Meta_ReduceEval_1__evalName___main___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* l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 4) +{ +lean_object* x_4; lean_object* x_5; uint64_t x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +x_6 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +lean_dec(x_1); +x_7 = lean_box_uint64(x_6); +x_8 = lean_apply_3(x_2, x_4, x_5, x_7); +return x_8; +} +else +{ +lean_object* x_9; +lean_dec(x_2); +x_9 = lean_apply_1(x_3, x_1); +return x_9; +} +} +} +lean_object* l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_reduceEval___at___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___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) { _start: { uint8_t x_7; @@ -1399,7 +1283,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_13 = l_Lean_Meta_whnf___at___private_Lean_Meta_Basic_16__isClassExpensive_x3f___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); +x_13 = l_Lean_Meta_whnf___at_Lean_Meta_Lean_Meta_ReduceEval___instance__1___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); if (lean_obj_tag(x_13) == 0) { uint8_t x_14; @@ -1410,882 +1294,802 @@ lean_object* x_15; lean_object* x_16; lean_object* x_17; x_15 = lean_ctor_get(x_13, 0); x_16 = lean_ctor_get(x_13, 1); lean_inc(x_15); -x_17 = l_Lean_Meta_evalNat___main(x_15); +x_17 = l_Lean_Meta_evalNat(x_15); 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; uint8_t x_24; +lean_object* x_18; uint8_t x_19; lean_free_object(x_13); -x_18 = lean_expr_dbg_to_string(x_15); -lean_dec(x_15); -x_19 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_19, 0, x_18); -x_20 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_20, 0, x_19); -x_21 = l_Lean_Meta_Nat_hasReduceEval___closed__3; -x_22 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_20); -x_23 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_22, x_2, x_3, x_4, x_5, x_16); +x_18 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg(x_15, x_2, x_3, x_4, x_5, x_16); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_24 = !lean_is_exclusive(x_23); -if (x_24 == 0) +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) { -return x_23; +return x_18; } else { -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_23, 0); -x_26 = lean_ctor_get(x_23, 1); -lean_inc(x_26); -lean_inc(x_25); -lean_dec(x_23); -x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_25); -lean_ctor_set(x_27, 1, x_26); -return x_27; +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_18, 0); +x_21 = lean_ctor_get(x_18, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_18); +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; } } else { -lean_object* x_28; +lean_object* x_23; lean_dec(x_15); lean_dec(x_2); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_28 = lean_ctor_get(x_17, 0); -lean_inc(x_28); +x_23 = lean_ctor_get(x_17, 0); +lean_inc(x_23); lean_dec(x_17); -lean_ctor_set(x_13, 0, x_28); +lean_ctor_set(x_13, 0, x_23); return x_13; } } else { -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_13, 0); -x_30 = lean_ctor_get(x_13, 1); -lean_inc(x_30); -lean_inc(x_29); +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); +lean_inc(x_24); +x_26 = l_Lean_Meta_evalNat(x_24); +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; +x_27 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg(x_24, x_2, x_3, x_4, x_5, x_25); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +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_31 = l_Lean_Meta_evalNat___main(x_29); -if (lean_obj_tag(x_31) == 0) +if (lean_is_exclusive(x_27)) { + lean_ctor_release(x_27, 0); + lean_ctor_release(x_27, 1); + x_30 = x_27; +} else { + lean_dec_ref(x_27); + x_30 = lean_box(0); +} +if (lean_is_scalar(x_30)) { + x_31 = lean_alloc_ctor(1, 2, 0); +} else { + x_31 = x_30; +} +lean_ctor_set(x_31, 0, x_28); +lean_ctor_set(x_31, 1, x_29); +return x_31; +} +else { -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_32 = lean_expr_dbg_to_string(x_29); -lean_dec(x_29); -x_33 = lean_alloc_ctor(2, 1, 0); +lean_object* x_32; lean_object* x_33; +lean_dec(x_24); +lean_dec(x_2); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_32 = lean_ctor_get(x_26, 0); +lean_inc(x_32); +lean_dec(x_26); +x_33 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_33, 0, x_32); -x_34 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_34, 0, x_33); -x_35 = l_Lean_Meta_Nat_hasReduceEval___closed__3; -x_36 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_34); -x_37 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_36, x_2, x_3, x_4, x_5, x_30); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -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); -} -if (lean_is_scalar(x_40)) { - x_41 = lean_alloc_ctor(1, 2, 0); -} else { - x_41 = x_40; -} -lean_ctor_set(x_41, 0, x_38); -lean_ctor_set(x_41, 1, x_39); -return x_41; -} -else -{ -lean_object* x_42; lean_object* x_43; -lean_dec(x_29); -lean_dec(x_2); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_42 = lean_ctor_get(x_31, 0); -lean_inc(x_42); -lean_dec(x_31); -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_30); -return x_43; +lean_ctor_set(x_33, 1, x_25); +return x_33; } } } else { -uint8_t x_44; +uint8_t x_34; lean_dec(x_2); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_44 = !lean_is_exclusive(x_13); +x_34 = !lean_is_exclusive(x_13); +if (x_34 == 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_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; +} +} +} +else +{ +lean_object* x_38; +lean_ctor_set_uint8(x_8, 5, x_11); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_38 = l_Lean_Meta_whnf___at_Lean_Meta_Lean_Meta_ReduceEval___instance__1___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_38) == 0) +{ +uint8_t x_39; +x_39 = !lean_is_exclusive(x_38); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_38, 0); +x_41 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +x_42 = l_Lean_Meta_evalNat(x_40); +if (lean_obj_tag(x_42) == 0) +{ +lean_object* x_43; uint8_t x_44; +lean_free_object(x_38); +x_43 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg(x_40, x_2, x_3, x_4, x_5, x_41); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_44 = !lean_is_exclusive(x_43); if (x_44 == 0) { -return x_13; +return x_43; } 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_43, 0); +x_46 = lean_ctor_get(x_43, 1); lean_inc(x_46); lean_inc(x_45); -lean_dec(x_13); +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; -lean_ctor_set_uint8(x_8, 5, x_11); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -x_48 = l_Lean_Meta_whnf___at___private_Lean_Meta_Basic_16__isClassExpensive_x3f___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); -if (lean_obj_tag(x_48) == 0) +lean_dec(x_40); +lean_dec(x_2); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_48 = lean_ctor_get(x_42, 0); +lean_inc(x_48); +lean_dec(x_42); +lean_ctor_set(x_38, 0, x_48); +return x_38; +} +} +else { -uint8_t x_49; -x_49 = !lean_is_exclusive(x_48); -if (x_49 == 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_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_38, 0); +x_50 = lean_ctor_get(x_38, 1); lean_inc(x_50); -x_52 = l_Lean_Meta_evalNat___main(x_50); -if (lean_obj_tag(x_52) == 0) +lean_inc(x_49); +lean_dec(x_38); +lean_inc(x_49); +x_51 = l_Lean_Meta_evalNat(x_49); +if (lean_obj_tag(x_51) == 0) { -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; -lean_free_object(x_48); -x_53 = lean_expr_dbg_to_string(x_50); -lean_dec(x_50); -x_54 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_54, 0, x_53); -x_55 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_55, 0, x_54); -x_56 = l_Lean_Meta_Nat_hasReduceEval___closed__3; -x_57 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_57, 0, x_56); -lean_ctor_set(x_57, 1, x_55); -x_58 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_57, x_2, x_3, x_4, x_5, x_51); +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_52 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg(x_49, x_2, x_3, x_4, x_5, x_50); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_59 = !lean_is_exclusive(x_58); +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); +if (lean_is_exclusive(x_52)) { + lean_ctor_release(x_52, 0); + lean_ctor_release(x_52, 1); + x_55 = x_52; +} else { + lean_dec_ref(x_52); + x_55 = lean_box(0); +} +if (lean_is_scalar(x_55)) { + x_56 = lean_alloc_ctor(1, 2, 0); +} else { + x_56 = x_55; +} +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_dec(x_49); +lean_dec(x_2); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_57 = lean_ctor_get(x_51, 0); +lean_inc(x_57); +lean_dec(x_51); +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set(x_58, 1, x_50); +return x_58; +} +} +} +else +{ +uint8_t x_59; +lean_dec(x_2); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_59 = !lean_is_exclusive(x_38); if (x_59 == 0) { -return x_58; +return x_38; } else { lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_58, 0); -x_61 = lean_ctor_get(x_58, 1); +x_60 = lean_ctor_get(x_38, 0); +x_61 = lean_ctor_get(x_38, 1); lean_inc(x_61); lean_inc(x_60); -lean_dec(x_58); +lean_dec(x_38); x_62 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_62, 0, x_60); lean_ctor_set(x_62, 1, x_61); return x_62; } } -else -{ -lean_object* x_63; -lean_dec(x_50); -lean_dec(x_2); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_63 = lean_ctor_get(x_52, 0); -lean_inc(x_63); -lean_dec(x_52); -lean_ctor_set(x_48, 0, x_63); -return x_48; } } else { -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_48, 0); -x_65 = lean_ctor_get(x_48, 1); -lean_inc(x_65); -lean_inc(x_64); -lean_dec(x_48); -lean_inc(x_64); -x_66 = l_Lean_Meta_evalNat___main(x_64); -if (lean_obj_tag(x_66) == 0) -{ -lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_67 = lean_expr_dbg_to_string(x_64); -lean_dec(x_64); -x_68 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_68, 0, x_67); -x_69 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_69, 0, x_68); -x_70 = l_Lean_Meta_Nat_hasReduceEval___closed__3; -x_71 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_71, 0, x_70); -lean_ctor_set(x_71, 1, x_69); -x_72 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_71, x_2, x_3, x_4, x_5, x_65); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -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); -} -if (lean_is_scalar(x_75)) { - x_76 = lean_alloc_ctor(1, 2, 0); -} else { - x_76 = x_75; -} -lean_ctor_set(x_76, 0, x_73); -lean_ctor_set(x_76, 1, x_74); -return x_76; -} -else -{ -lean_object* x_77; lean_object* x_78; -lean_dec(x_64); -lean_dec(x_2); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_77 = lean_ctor_get(x_66, 0); -lean_inc(x_77); -lean_dec(x_66); -x_78 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_78, 0, x_77); -lean_ctor_set(x_78, 1, x_65); -return x_78; -} -} -} -else -{ -uint8_t x_79; -lean_dec(x_2); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_79 = !lean_is_exclusive(x_48); -if (x_79 == 0) -{ -return x_48; -} -else -{ -lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_80 = lean_ctor_get(x_48, 0); -x_81 = lean_ctor_get(x_48, 1); -lean_inc(x_81); -lean_inc(x_80); -lean_dec(x_48); -x_82 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_82, 0, x_80); -lean_ctor_set(x_82, 1, x_81); -return x_82; -} -} -} -} -else -{ -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; -x_83 = lean_ctor_get_uint8(x_8, 0); -x_84 = lean_ctor_get_uint8(x_8, 1); -x_85 = lean_ctor_get_uint8(x_8, 2); -x_86 = lean_ctor_get_uint8(x_8, 3); -x_87 = lean_ctor_get_uint8(x_8, 4); -x_88 = lean_ctor_get_uint8(x_8, 5); -x_89 = lean_ctor_get_uint8(x_8, 6); -x_90 = lean_ctor_get_uint8(x_8, 7); +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; +x_63 = lean_ctor_get_uint8(x_8, 0); +x_64 = lean_ctor_get_uint8(x_8, 1); +x_65 = lean_ctor_get_uint8(x_8, 2); +x_66 = lean_ctor_get_uint8(x_8, 3); +x_67 = lean_ctor_get_uint8(x_8, 4); +x_68 = lean_ctor_get_uint8(x_8, 5); +x_69 = lean_ctor_get_uint8(x_8, 6); +x_70 = lean_ctor_get_uint8(x_8, 7); lean_dec(x_8); -x_91 = 1; -x_92 = l_Lean_Meta_TransparencyMode_lt(x_88, x_91); -if (x_92 == 0) +x_71 = 1; +x_72 = l_Lean_Meta_TransparencyMode_lt(x_68, x_71); +if (x_72 == 0) { -lean_object* x_93; lean_object* x_94; -x_93 = lean_alloc_ctor(0, 0, 8); -lean_ctor_set_uint8(x_93, 0, x_83); -lean_ctor_set_uint8(x_93, 1, x_84); -lean_ctor_set_uint8(x_93, 2, x_85); -lean_ctor_set_uint8(x_93, 3, x_86); -lean_ctor_set_uint8(x_93, 4, x_87); -lean_ctor_set_uint8(x_93, 5, x_88); -lean_ctor_set_uint8(x_93, 6, x_89); -lean_ctor_set_uint8(x_93, 7, x_90); -lean_ctor_set(x_2, 0, x_93); +lean_object* x_73; lean_object* x_74; +x_73 = lean_alloc_ctor(0, 0, 8); +lean_ctor_set_uint8(x_73, 0, x_63); +lean_ctor_set_uint8(x_73, 1, x_64); +lean_ctor_set_uint8(x_73, 2, x_65); +lean_ctor_set_uint8(x_73, 3, x_66); +lean_ctor_set_uint8(x_73, 4, x_67); +lean_ctor_set_uint8(x_73, 5, x_68); +lean_ctor_set_uint8(x_73, 6, x_69); +lean_ctor_set_uint8(x_73, 7, x_70); +lean_ctor_set(x_2, 0, x_73); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_94 = l_Lean_Meta_whnf___at___private_Lean_Meta_Basic_16__isClassExpensive_x3f___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); -if (lean_obj_tag(x_94) == 0) +x_74 = l_Lean_Meta_whnf___at_Lean_Meta_Lean_Meta_ReduceEval___instance__1___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_74) == 0) { -lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; -x_95 = lean_ctor_get(x_94, 0); -lean_inc(x_95); -x_96 = lean_ctor_get(x_94, 1); -lean_inc(x_96); -if (lean_is_exclusive(x_94)) { - lean_ctor_release(x_94, 0); - lean_ctor_release(x_94, 1); - x_97 = x_94; +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_75 = lean_ctor_get(x_74, 0); +lean_inc(x_75); +x_76 = lean_ctor_get(x_74, 1); +lean_inc(x_76); +if (lean_is_exclusive(x_74)) { + lean_ctor_release(x_74, 0); + lean_ctor_release(x_74, 1); + x_77 = x_74; } else { - lean_dec_ref(x_94); - x_97 = lean_box(0); + lean_dec_ref(x_74); + x_77 = lean_box(0); } -lean_inc(x_95); -x_98 = l_Lean_Meta_evalNat___main(x_95); -if (lean_obj_tag(x_98) == 0) +lean_inc(x_75); +x_78 = l_Lean_Meta_evalNat(x_75); +if (lean_obj_tag(x_78) == 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; lean_object* x_106; lean_object* x_107; lean_object* x_108; -lean_dec(x_97); -x_99 = lean_expr_dbg_to_string(x_95); -lean_dec(x_95); -x_100 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_100, 0, x_99); -x_101 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_101, 0, x_100); -x_102 = l_Lean_Meta_Nat_hasReduceEval___closed__3; -x_103 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_103, 0, x_102); -lean_ctor_set(x_103, 1, x_101); -x_104 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_103, x_2, x_3, x_4, x_5, x_96); +lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; +lean_dec(x_77); +x_79 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg(x_75, x_2, x_3, x_4, x_5, x_76); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_105 = lean_ctor_get(x_104, 0); -lean_inc(x_105); -x_106 = lean_ctor_get(x_104, 1); -lean_inc(x_106); -if (lean_is_exclusive(x_104)) { - lean_ctor_release(x_104, 0); - lean_ctor_release(x_104, 1); - x_107 = x_104; +x_80 = lean_ctor_get(x_79, 0); +lean_inc(x_80); +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; } else { - lean_dec_ref(x_104); - x_107 = lean_box(0); + lean_dec_ref(x_79); + x_82 = lean_box(0); } -if (lean_is_scalar(x_107)) { - x_108 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_82)) { + x_83 = lean_alloc_ctor(1, 2, 0); } else { - x_108 = x_107; + x_83 = x_82; } -lean_ctor_set(x_108, 0, x_105); -lean_ctor_set(x_108, 1, x_106); -return x_108; +lean_ctor_set(x_83, 0, x_80); +lean_ctor_set(x_83, 1, x_81); +return x_83; } else { -lean_object* x_109; lean_object* x_110; -lean_dec(x_95); +lean_object* x_84; lean_object* x_85; +lean_dec(x_75); lean_dec(x_2); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_109 = lean_ctor_get(x_98, 0); +x_84 = lean_ctor_get(x_78, 0); +lean_inc(x_84); +lean_dec(x_78); +if (lean_is_scalar(x_77)) { + x_85 = lean_alloc_ctor(0, 2, 0); +} else { + x_85 = x_77; +} +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_76); +return x_85; +} +} +else +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +lean_dec(x_2); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_86 = lean_ctor_get(x_74, 0); +lean_inc(x_86); +x_87 = lean_ctor_get(x_74, 1); +lean_inc(x_87); +if (lean_is_exclusive(x_74)) { + lean_ctor_release(x_74, 0); + lean_ctor_release(x_74, 1); + x_88 = x_74; +} else { + lean_dec_ref(x_74); + 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 +{ +lean_object* x_90; lean_object* x_91; +x_90 = lean_alloc_ctor(0, 0, 8); +lean_ctor_set_uint8(x_90, 0, x_63); +lean_ctor_set_uint8(x_90, 1, x_64); +lean_ctor_set_uint8(x_90, 2, x_65); +lean_ctor_set_uint8(x_90, 3, x_66); +lean_ctor_set_uint8(x_90, 4, x_67); +lean_ctor_set_uint8(x_90, 5, x_71); +lean_ctor_set_uint8(x_90, 6, x_69); +lean_ctor_set_uint8(x_90, 7, x_70); +lean_ctor_set(x_2, 0, x_90); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_91 = l_Lean_Meta_whnf___at_Lean_Meta_Lean_Meta_ReduceEval___instance__1___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_91) == 0) +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_92 = lean_ctor_get(x_91, 0); +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); + x_94 = x_91; +} else { + lean_dec_ref(x_91); + x_94 = lean_box(0); +} +lean_inc(x_92); +x_95 = l_Lean_Meta_evalNat(x_92); +if (lean_obj_tag(x_95) == 0) +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; +lean_dec(x_94); +x_96 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg(x_92, x_2, x_3, x_4, x_5, x_93); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_97 = lean_ctor_get(x_96, 0); +lean_inc(x_97); +x_98 = lean_ctor_get(x_96, 1); +lean_inc(x_98); +if (lean_is_exclusive(x_96)) { + lean_ctor_release(x_96, 0); + lean_ctor_release(x_96, 1); + x_99 = x_96; +} else { + lean_dec_ref(x_96); + 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_object* x_102; +lean_dec(x_92); +lean_dec(x_2); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_101 = lean_ctor_get(x_95, 0); +lean_inc(x_101); +lean_dec(x_95); +if (lean_is_scalar(x_94)) { + x_102 = lean_alloc_ctor(0, 2, 0); +} else { + x_102 = x_94; +} +lean_ctor_set(x_102, 0, x_101); +lean_ctor_set(x_102, 1, x_93); +return x_102; +} +} +else +{ +lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; +lean_dec(x_2); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_103 = lean_ctor_get(x_91, 0); +lean_inc(x_103); +x_104 = lean_ctor_get(x_91, 1); +lean_inc(x_104); +if (lean_is_exclusive(x_91)) { + lean_ctor_release(x_91, 0); + lean_ctor_release(x_91, 1); + x_105 = x_91; +} else { + lean_dec_ref(x_91); + x_105 = lean_box(0); +} +if (lean_is_scalar(x_105)) { + x_106 = lean_alloc_ctor(1, 2, 0); +} else { + x_106 = x_105; +} +lean_ctor_set(x_106, 0, x_103); +lean_ctor_set(x_106, 1, x_104); +return x_106; +} +} +} +} +else +{ +lean_object* x_107; lean_object* x_108; lean_object* 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; lean_object* x_118; uint8_t x_119; uint8_t x_120; +x_107 = lean_ctor_get(x_2, 0); +x_108 = lean_ctor_get(x_2, 1); +x_109 = lean_ctor_get(x_2, 2); lean_inc(x_109); -lean_dec(x_98); -if (lean_is_scalar(x_97)) { - x_110 = lean_alloc_ctor(0, 2, 0); -} else { - x_110 = x_97; -} -lean_ctor_set(x_110, 0, x_109); -lean_ctor_set(x_110, 1, x_96); -return x_110; -} -} -else -{ -lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; +lean_inc(x_108); +lean_inc(x_107); lean_dec(x_2); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_111 = lean_ctor_get(x_94, 0); -lean_inc(x_111); -x_112 = lean_ctor_get(x_94, 1); -lean_inc(x_112); -if (lean_is_exclusive(x_94)) { - lean_ctor_release(x_94, 0); - lean_ctor_release(x_94, 1); - x_113 = x_94; +x_110 = lean_ctor_get_uint8(x_107, 0); +x_111 = lean_ctor_get_uint8(x_107, 1); +x_112 = lean_ctor_get_uint8(x_107, 2); +x_113 = lean_ctor_get_uint8(x_107, 3); +x_114 = lean_ctor_get_uint8(x_107, 4); +x_115 = lean_ctor_get_uint8(x_107, 5); +x_116 = lean_ctor_get_uint8(x_107, 6); +x_117 = lean_ctor_get_uint8(x_107, 7); +if (lean_is_exclusive(x_107)) { + x_118 = x_107; } else { - lean_dec_ref(x_94); - x_113 = lean_box(0); + lean_dec_ref(x_107); + x_118 = lean_box(0); } -if (lean_is_scalar(x_113)) { - x_114 = lean_alloc_ctor(1, 2, 0); -} else { - x_114 = x_113; -} -lean_ctor_set(x_114, 0, x_111); -lean_ctor_set(x_114, 1, x_112); -return x_114; -} -} -else +x_119 = 1; +x_120 = l_Lean_Meta_TransparencyMode_lt(x_115, x_119); +if (x_120 == 0) { -lean_object* x_115; lean_object* x_116; -x_115 = lean_alloc_ctor(0, 0, 8); -lean_ctor_set_uint8(x_115, 0, x_83); -lean_ctor_set_uint8(x_115, 1, x_84); -lean_ctor_set_uint8(x_115, 2, x_85); -lean_ctor_set_uint8(x_115, 3, x_86); -lean_ctor_set_uint8(x_115, 4, x_87); -lean_ctor_set_uint8(x_115, 5, x_91); -lean_ctor_set_uint8(x_115, 6, x_89); -lean_ctor_set_uint8(x_115, 7, x_90); -lean_ctor_set(x_2, 0, x_115); +lean_object* x_121; lean_object* x_122; lean_object* x_123; +if (lean_is_scalar(x_118)) { + x_121 = lean_alloc_ctor(0, 0, 8); +} else { + x_121 = x_118; +} +lean_ctor_set_uint8(x_121, 0, x_110); +lean_ctor_set_uint8(x_121, 1, x_111); +lean_ctor_set_uint8(x_121, 2, x_112); +lean_ctor_set_uint8(x_121, 3, x_113); +lean_ctor_set_uint8(x_121, 4, x_114); +lean_ctor_set_uint8(x_121, 5, x_115); +lean_ctor_set_uint8(x_121, 6, x_116); +lean_ctor_set_uint8(x_121, 7, x_117); +x_122 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_122, 0, x_121); +lean_ctor_set(x_122, 1, x_108); +lean_ctor_set(x_122, 2, x_109); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_2); -x_116 = l_Lean_Meta_whnf___at___private_Lean_Meta_Basic_16__isClassExpensive_x3f___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); -if (lean_obj_tag(x_116) == 0) +lean_inc(x_122); +x_123 = l_Lean_Meta_whnf___at_Lean_Meta_Lean_Meta_ReduceEval___instance__1___spec__1(x_1, x_122, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_123) == 0) { -lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; -x_117 = lean_ctor_get(x_116, 0); -lean_inc(x_117); -x_118 = lean_ctor_get(x_116, 1); -lean_inc(x_118); -if (lean_is_exclusive(x_116)) { - lean_ctor_release(x_116, 0); - lean_ctor_release(x_116, 1); - x_119 = x_116; +lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; +x_124 = lean_ctor_get(x_123, 0); +lean_inc(x_124); +x_125 = lean_ctor_get(x_123, 1); +lean_inc(x_125); +if (lean_is_exclusive(x_123)) { + lean_ctor_release(x_123, 0); + lean_ctor_release(x_123, 1); + x_126 = x_123; } else { - lean_dec_ref(x_116); - x_119 = lean_box(0); + lean_dec_ref(x_123); + x_126 = lean_box(0); } -lean_inc(x_117); -x_120 = l_Lean_Meta_evalNat___main(x_117); -if (lean_obj_tag(x_120) == 0) +lean_inc(x_124); +x_127 = l_Lean_Meta_evalNat(x_124); +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_dec(x_119); -x_121 = lean_expr_dbg_to_string(x_117); -lean_dec(x_117); -x_122 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_122, 0, x_121); -x_123 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_123, 0, x_122); -x_124 = l_Lean_Meta_Nat_hasReduceEval___closed__3; -x_125 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_125, 0, x_124); -lean_ctor_set(x_125, 1, x_123); -x_126 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_125, x_2, x_3, x_4, x_5, x_118); +lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; +lean_dec(x_126); +x_128 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg(x_124, x_122, x_3, x_4, x_5, x_125); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_2); -x_127 = lean_ctor_get(x_126, 0); -lean_inc(x_127); -x_128 = lean_ctor_get(x_126, 1); -lean_inc(x_128); -if (lean_is_exclusive(x_126)) { - lean_ctor_release(x_126, 0); - lean_ctor_release(x_126, 1); - x_129 = x_126; +lean_dec(x_122); +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_126); - x_129 = lean_box(0); + lean_dec_ref(x_128); + x_131 = lean_box(0); } -if (lean_is_scalar(x_129)) { - x_130 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_131)) { + x_132 = lean_alloc_ctor(1, 2, 0); } else { - x_130 = x_129; + x_132 = x_131; } -lean_ctor_set(x_130, 0, x_127); -lean_ctor_set(x_130, 1, x_128); -return x_130; -} -else -{ -lean_object* x_131; lean_object* x_132; -lean_dec(x_117); -lean_dec(x_2); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_131 = lean_ctor_get(x_120, 0); -lean_inc(x_131); -lean_dec(x_120); -if (lean_is_scalar(x_119)) { - x_132 = lean_alloc_ctor(0, 2, 0); -} else { - x_132 = x_119; -} -lean_ctor_set(x_132, 0, x_131); -lean_ctor_set(x_132, 1, x_118); +lean_ctor_set(x_132, 0, x_129); +lean_ctor_set(x_132, 1, x_130); return x_132; } -} else { -lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; -lean_dec(x_2); +lean_object* x_133; lean_object* x_134; +lean_dec(x_124); +lean_dec(x_122); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_133 = lean_ctor_get(x_116, 0); +x_133 = lean_ctor_get(x_127, 0); lean_inc(x_133); -x_134 = lean_ctor_get(x_116, 1); -lean_inc(x_134); -if (lean_is_exclusive(x_116)) { - lean_ctor_release(x_116, 0); - lean_ctor_release(x_116, 1); - x_135 = x_116; +lean_dec(x_127); +if (lean_is_scalar(x_126)) { + x_134 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_116); - x_135 = lean_box(0); -} -if (lean_is_scalar(x_135)) { - x_136 = lean_alloc_ctor(1, 2, 0); -} else { - x_136 = x_135; -} -lean_ctor_set(x_136, 0, x_133); -lean_ctor_set(x_136, 1, x_134); -return x_136; -} + x_134 = x_126; } +lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 1, x_125); +return x_134; } } else { -lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; uint8_t x_141; uint8_t x_142; uint8_t x_143; uint8_t x_144; uint8_t x_145; uint8_t x_146; uint8_t x_147; lean_object* x_148; uint8_t x_149; uint8_t x_150; -x_137 = lean_ctor_get(x_2, 0); -x_138 = lean_ctor_get(x_2, 1); -x_139 = lean_ctor_get(x_2, 2); -lean_inc(x_139); -lean_inc(x_138); -lean_inc(x_137); -lean_dec(x_2); -x_140 = lean_ctor_get_uint8(x_137, 0); -x_141 = lean_ctor_get_uint8(x_137, 1); -x_142 = lean_ctor_get_uint8(x_137, 2); -x_143 = lean_ctor_get_uint8(x_137, 3); -x_144 = lean_ctor_get_uint8(x_137, 4); -x_145 = lean_ctor_get_uint8(x_137, 5); -x_146 = lean_ctor_get_uint8(x_137, 6); -x_147 = lean_ctor_get_uint8(x_137, 7); -if (lean_is_exclusive(x_137)) { - x_148 = x_137; +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; +lean_dec(x_122); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_135 = lean_ctor_get(x_123, 0); +lean_inc(x_135); +x_136 = lean_ctor_get(x_123, 1); +lean_inc(x_136); +if (lean_is_exclusive(x_123)) { + lean_ctor_release(x_123, 0); + lean_ctor_release(x_123, 1); + x_137 = x_123; } else { - lean_dec_ref(x_137); - x_148 = lean_box(0); + lean_dec_ref(x_123); + x_137 = lean_box(0); } -x_149 = 1; -x_150 = l_Lean_Meta_TransparencyMode_lt(x_145, x_149); -if (x_150 == 0) +if (lean_is_scalar(x_137)) { + x_138 = lean_alloc_ctor(1, 2, 0); +} else { + x_138 = x_137; +} +lean_ctor_set(x_138, 0, x_135); +lean_ctor_set(x_138, 1, x_136); +return x_138; +} +} +else { -lean_object* x_151; lean_object* x_152; lean_object* x_153; -if (lean_is_scalar(x_148)) { - x_151 = lean_alloc_ctor(0, 0, 8); +lean_object* x_139; lean_object* x_140; lean_object* x_141; +if (lean_is_scalar(x_118)) { + x_139 = lean_alloc_ctor(0, 0, 8); } else { - x_151 = x_148; + x_139 = x_118; +} +lean_ctor_set_uint8(x_139, 0, x_110); +lean_ctor_set_uint8(x_139, 1, x_111); +lean_ctor_set_uint8(x_139, 2, x_112); +lean_ctor_set_uint8(x_139, 3, x_113); +lean_ctor_set_uint8(x_139, 4, x_114); +lean_ctor_set_uint8(x_139, 5, x_119); +lean_ctor_set_uint8(x_139, 6, x_116); +lean_ctor_set_uint8(x_139, 7, x_117); +x_140 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_140, 0, x_139); +lean_ctor_set(x_140, 1, x_108); +lean_ctor_set(x_140, 2, x_109); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_140); +x_141 = l_Lean_Meta_whnf___at_Lean_Meta_Lean_Meta_ReduceEval___instance__1___spec__1(x_1, x_140, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_141) == 0) +{ +lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; +x_142 = lean_ctor_get(x_141, 0); +lean_inc(x_142); +x_143 = lean_ctor_get(x_141, 1); +lean_inc(x_143); +if (lean_is_exclusive(x_141)) { + lean_ctor_release(x_141, 0); + lean_ctor_release(x_141, 1); + x_144 = x_141; +} else { + lean_dec_ref(x_141); + x_144 = lean_box(0); +} +lean_inc(x_142); +x_145 = l_Lean_Meta_evalNat(x_142); +if (lean_obj_tag(x_145) == 0) +{ +lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; +lean_dec(x_144); +x_146 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg(x_142, x_140, x_3, x_4, x_5, x_143); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_140); +x_147 = lean_ctor_get(x_146, 0); +lean_inc(x_147); +x_148 = lean_ctor_get(x_146, 1); +lean_inc(x_148); +if (lean_is_exclusive(x_146)) { + lean_ctor_release(x_146, 0); + lean_ctor_release(x_146, 1); + x_149 = x_146; +} else { + lean_dec_ref(x_146); + x_149 = lean_box(0); +} +if (lean_is_scalar(x_149)) { + x_150 = lean_alloc_ctor(1, 2, 0); +} else { + x_150 = 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_151; lean_object* x_152; +lean_dec(x_142); +lean_dec(x_140); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_151 = lean_ctor_get(x_145, 0); +lean_inc(x_151); +lean_dec(x_145); +if (lean_is_scalar(x_144)) { + x_152 = lean_alloc_ctor(0, 2, 0); +} else { + x_152 = x_144; } -lean_ctor_set_uint8(x_151, 0, x_140); -lean_ctor_set_uint8(x_151, 1, x_141); -lean_ctor_set_uint8(x_151, 2, x_142); -lean_ctor_set_uint8(x_151, 3, x_143); -lean_ctor_set_uint8(x_151, 4, x_144); -lean_ctor_set_uint8(x_151, 5, x_145); -lean_ctor_set_uint8(x_151, 6, x_146); -lean_ctor_set_uint8(x_151, 7, x_147); -x_152 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_152, 0, x_151); -lean_ctor_set(x_152, 1, x_138); -lean_ctor_set(x_152, 2, x_139); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_152); -x_153 = l_Lean_Meta_whnf___at___private_Lean_Meta_Basic_16__isClassExpensive_x3f___main___spec__2(x_1, x_152, x_3, x_4, x_5, x_6); -if (lean_obj_tag(x_153) == 0) +lean_ctor_set(x_152, 1, x_143); +return x_152; +} +} +else { -lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; -x_154 = lean_ctor_get(x_153, 0); +lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; +lean_dec(x_140); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_153 = lean_ctor_get(x_141, 0); +lean_inc(x_153); +x_154 = lean_ctor_get(x_141, 1); lean_inc(x_154); -x_155 = lean_ctor_get(x_153, 1); -lean_inc(x_155); -if (lean_is_exclusive(x_153)) { - lean_ctor_release(x_153, 0); - lean_ctor_release(x_153, 1); - x_156 = x_153; +if (lean_is_exclusive(x_141)) { + lean_ctor_release(x_141, 0); + lean_ctor_release(x_141, 1); + x_155 = x_141; } else { - lean_dec_ref(x_153); - x_156 = lean_box(0); + lean_dec_ref(x_141); + x_155 = lean_box(0); } -lean_inc(x_154); -x_157 = l_Lean_Meta_evalNat___main(x_154); -if (lean_obj_tag(x_157) == 0) -{ -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_dec(x_156); -x_158 = lean_expr_dbg_to_string(x_154); -lean_dec(x_154); -x_159 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_159, 0, x_158); -x_160 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_160, 0, x_159); -x_161 = l_Lean_Meta_Nat_hasReduceEval___closed__3; -x_162 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_162, 0, x_161); -lean_ctor_set(x_162, 1, x_160); -x_163 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_162, x_152, x_3, x_4, x_5, x_155); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_152); -x_164 = lean_ctor_get(x_163, 0); -lean_inc(x_164); -x_165 = lean_ctor_get(x_163, 1); -lean_inc(x_165); -if (lean_is_exclusive(x_163)) { - lean_ctor_release(x_163, 0); - lean_ctor_release(x_163, 1); - x_166 = x_163; +if (lean_is_scalar(x_155)) { + x_156 = lean_alloc_ctor(1, 2, 0); } else { - lean_dec_ref(x_163); - x_166 = lean_box(0); + x_156 = x_155; } -if (lean_is_scalar(x_166)) { - x_167 = lean_alloc_ctor(1, 2, 0); -} else { - x_167 = x_166; -} -lean_ctor_set(x_167, 0, x_164); -lean_ctor_set(x_167, 1, x_165); -return x_167; -} -else -{ -lean_object* x_168; lean_object* x_169; -lean_dec(x_154); -lean_dec(x_152); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_168 = lean_ctor_get(x_157, 0); -lean_inc(x_168); -lean_dec(x_157); -if (lean_is_scalar(x_156)) { - x_169 = lean_alloc_ctor(0, 2, 0); -} else { - x_169 = x_156; -} -lean_ctor_set(x_169, 0, x_168); -lean_ctor_set(x_169, 1, x_155); -return x_169; -} -} -else -{ -lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; -lean_dec(x_152); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_170 = lean_ctor_get(x_153, 0); -lean_inc(x_170); -x_171 = lean_ctor_get(x_153, 1); -lean_inc(x_171); -if (lean_is_exclusive(x_153)) { - lean_ctor_release(x_153, 0); - lean_ctor_release(x_153, 1); - x_172 = x_153; -} else { - lean_dec_ref(x_153); - x_172 = lean_box(0); -} -if (lean_is_scalar(x_172)) { - x_173 = lean_alloc_ctor(1, 2, 0); -} else { - x_173 = x_172; -} -lean_ctor_set(x_173, 0, x_170); -lean_ctor_set(x_173, 1, x_171); -return x_173; -} -} -else -{ -lean_object* x_174; lean_object* x_175; lean_object* x_176; -if (lean_is_scalar(x_148)) { - x_174 = lean_alloc_ctor(0, 0, 8); -} else { - x_174 = x_148; -} -lean_ctor_set_uint8(x_174, 0, x_140); -lean_ctor_set_uint8(x_174, 1, x_141); -lean_ctor_set_uint8(x_174, 2, x_142); -lean_ctor_set_uint8(x_174, 3, x_143); -lean_ctor_set_uint8(x_174, 4, x_144); -lean_ctor_set_uint8(x_174, 5, x_149); -lean_ctor_set_uint8(x_174, 6, x_146); -lean_ctor_set_uint8(x_174, 7, x_147); -x_175 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_175, 0, x_174); -lean_ctor_set(x_175, 1, x_138); -lean_ctor_set(x_175, 2, x_139); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_175); -x_176 = l_Lean_Meta_whnf___at___private_Lean_Meta_Basic_16__isClassExpensive_x3f___main___spec__2(x_1, x_175, x_3, x_4, x_5, x_6); -if (lean_obj_tag(x_176) == 0) -{ -lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; -x_177 = lean_ctor_get(x_176, 0); -lean_inc(x_177); -x_178 = lean_ctor_get(x_176, 1); -lean_inc(x_178); -if (lean_is_exclusive(x_176)) { - lean_ctor_release(x_176, 0); - lean_ctor_release(x_176, 1); - x_179 = x_176; -} else { - lean_dec_ref(x_176); - x_179 = lean_box(0); -} -lean_inc(x_177); -x_180 = l_Lean_Meta_evalNat___main(x_177); -if (lean_obj_tag(x_180) == 0) -{ -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_dec(x_179); -x_181 = lean_expr_dbg_to_string(x_177); -lean_dec(x_177); -x_182 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_182, 0, x_181); -x_183 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_183, 0, x_182); -x_184 = l_Lean_Meta_Nat_hasReduceEval___closed__3; -x_185 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_185, 0, x_184); -lean_ctor_set(x_185, 1, x_183); -x_186 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_185, x_175, x_3, x_4, x_5, x_178); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_175); -x_187 = lean_ctor_get(x_186, 0); -lean_inc(x_187); -x_188 = lean_ctor_get(x_186, 1); -lean_inc(x_188); -if (lean_is_exclusive(x_186)) { - lean_ctor_release(x_186, 0); - lean_ctor_release(x_186, 1); - x_189 = x_186; -} else { - lean_dec_ref(x_186); - x_189 = lean_box(0); -} -if (lean_is_scalar(x_189)) { - x_190 = lean_alloc_ctor(1, 2, 0); -} else { - x_190 = 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_191; lean_object* x_192; -lean_dec(x_177); -lean_dec(x_175); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_191 = lean_ctor_get(x_180, 0); -lean_inc(x_191); -lean_dec(x_180); -if (lean_is_scalar(x_179)) { - x_192 = lean_alloc_ctor(0, 2, 0); -} else { - x_192 = x_179; -} -lean_ctor_set(x_192, 0, x_191); -lean_ctor_set(x_192, 1, x_178); -return x_192; -} -} -else -{ -lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; -lean_dec(x_175); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_193 = lean_ctor_get(x_176, 0); -lean_inc(x_193); -x_194 = lean_ctor_get(x_176, 1); -lean_inc(x_194); -if (lean_is_exclusive(x_176)) { - lean_ctor_release(x_176, 0); - lean_ctor_release(x_176, 1); - x_195 = x_176; -} else { - lean_dec_ref(x_176); - x_195 = lean_box(0); -} -if (lean_is_scalar(x_195)) { - x_196 = lean_alloc_ctor(1, 2, 0); -} else { - x_196 = x_195; -} -lean_ctor_set(x_196, 0, x_193); -lean_ctor_set(x_196, 1, x_194); -return x_196; +lean_ctor_set(x_156, 0, x_153); +lean_ctor_set(x_156, 1, x_154); +return x_156; } } } } } -lean_object* l_Lean_Meta_reduceEval___at___private_Lean_Meta_ReduceEval_1__evalName___main___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* l_Lean_Meta_reduceEval___at___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___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) { _start: { lean_object* x_7; uint8_t x_17; @@ -2309,635 +2113,777 @@ lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_23 = l_Lean_Meta_whnf___at___private_Lean_Meta_Basic_16__isClassExpensive_x3f___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); +x_23 = l_Lean_Meta_whnf___at_Lean_Meta_Lean_Meta_ReduceEval___instance__1___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); 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_24; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +if (lean_obj_tag(x_24) == 9) { -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_23, 0); -x_26 = lean_ctor_get(x_23, 1); -if (lean_obj_tag(x_25) == 9) +lean_object* x_25; +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +lean_dec(x_24); +if (lean_obj_tag(x_25) == 0) { -lean_object* x_35; -x_35 = lean_ctor_get(x_25, 0); -lean_inc(x_35); +lean_object* x_26; lean_object* x_27; lean_dec(x_25); -if (lean_obj_tag(x_35) == 0) -{ -lean_object* x_36; -lean_dec(x_35); -lean_free_object(x_23); -x_36 = lean_box(0); -x_27 = x_36; -goto block_34; +x_26 = lean_ctor_get(x_23, 1); +lean_inc(x_26); +lean_dec(x_23); +x_27 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg(x_1, x_2, x_3, x_4, x_5, x_26); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_7 = x_27; +goto block_16; } else { -lean_object* x_37; +uint8_t x_28; lean_dec(x_2); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_37 = lean_ctor_get(x_35, 0); -lean_inc(x_37); -lean_dec(x_35); -lean_ctor_set(x_23, 0, x_37); +x_28 = !lean_is_exclusive(x_23); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; +x_29 = lean_ctor_get(x_23, 0); +lean_dec(x_29); +x_30 = lean_ctor_get(x_25, 0); +lean_inc(x_30); +lean_dec(x_25); +lean_ctor_set(x_23, 0, x_30); x_7 = x_23; goto block_16; } -} else { -lean_object* x_38; -lean_free_object(x_23); +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_23, 1); +lean_inc(x_31); +lean_dec(x_23); +x_32 = lean_ctor_get(x_25, 0); +lean_inc(x_32); lean_dec(x_25); -x_38 = lean_box(0); -x_27 = x_38; -goto block_34; -} -block_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_dec(x_27); -x_28 = lean_expr_dbg_to_string(x_1); -lean_dec(x_1); -x_29 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_29, 0, x_28); -x_30 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_30, 0, x_29); -x_31 = l_Lean_Meta_Nat_hasReduceEval___closed__3; -x_32 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_30); -x_33 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_32, x_2, x_3, x_4, x_5, x_26); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_31); x_7 = x_33; goto block_16; } } +} else { -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_23, 0); -x_40 = lean_ctor_get(x_23, 1); -lean_inc(x_40); -lean_inc(x_39); +lean_object* x_34; lean_object* x_35; +lean_dec(x_24); +x_34 = lean_ctor_get(x_23, 1); +lean_inc(x_34); lean_dec(x_23); -if (lean_obj_tag(x_39) == 9) -{ -lean_object* x_49; -x_49 = lean_ctor_get(x_39, 0); -lean_inc(x_49); -lean_dec(x_39); -if (lean_obj_tag(x_49) == 0) -{ -lean_object* x_50; -lean_dec(x_49); -x_50 = lean_box(0); -x_41 = x_50; -goto block_48; -} -else -{ -lean_object* x_51; lean_object* x_52; -lean_dec(x_2); +x_35 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg(x_1, x_2, x_3, x_4, x_5, x_34); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_51 = lean_ctor_get(x_49, 0); -lean_inc(x_51); -lean_dec(x_49); -x_52 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_52, 1, x_40); -x_7 = x_52; +lean_dec(x_2); +x_7 = x_35; goto block_16; } } else { -lean_object* x_53; -lean_dec(x_39); -x_53 = lean_box(0); -x_41 = x_53; -goto block_48; -} -block_48: -{ -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_dec(x_41); -x_42 = lean_expr_dbg_to_string(x_1); -lean_dec(x_1); -x_43 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_43, 0, x_42); -x_44 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_44, 0, x_43); -x_45 = l_Lean_Meta_Nat_hasReduceEval___closed__3; -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_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_46, x_2, x_3, x_4, x_5, x_40); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_7 = x_47; -goto block_16; -} -} -} -else -{ -uint8_t x_54; +uint8_t x_36; lean_dec(x_2); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_54 = !lean_is_exclusive(x_23); -if (x_54 == 0) +x_36 = !lean_is_exclusive(x_23); +if (x_36 == 0) { x_7 = x_23; goto block_16; } else { -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_23, 0); -x_56 = lean_ctor_get(x_23, 1); -lean_inc(x_56); -lean_inc(x_55); +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_23, 0); +x_38 = lean_ctor_get(x_23, 1); +lean_inc(x_38); +lean_inc(x_37); lean_dec(x_23); -x_57 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_57, 0, x_55); -lean_ctor_set(x_57, 1, x_56); -x_7 = x_57; +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_7 = x_39; goto block_16; } } } else { -lean_object* x_58; +lean_object* x_40; lean_ctor_set_uint8(x_18, 5, x_21); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_58 = l_Lean_Meta_whnf___at___private_Lean_Meta_Basic_16__isClassExpensive_x3f___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); -if (lean_obj_tag(x_58) == 0) +x_40 = l_Lean_Meta_whnf___at_Lean_Meta_Lean_Meta_ReduceEval___instance__1___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_40) == 0) { -uint8_t x_59; -x_59 = !lean_is_exclusive(x_58); -if (x_59 == 0) +lean_object* x_41; +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +if (lean_obj_tag(x_41) == 9) { -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_58, 0); -x_61 = lean_ctor_get(x_58, 1); -if (lean_obj_tag(x_60) == 9) +lean_object* x_42; +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +lean_dec(x_41); +if (lean_obj_tag(x_42) == 0) +{ +lean_object* x_43; lean_object* x_44; +lean_dec(x_42); +x_43 = lean_ctor_get(x_40, 1); +lean_inc(x_43); +lean_dec(x_40); +x_44 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg(x_1, x_2, x_3, x_4, x_5, x_43); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_7 = x_44; +goto block_16; +} +else +{ +uint8_t x_45; +lean_dec(x_2); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_45 = !lean_is_exclusive(x_40); +if (x_45 == 0) +{ +lean_object* x_46; lean_object* x_47; +x_46 = lean_ctor_get(x_40, 0); +lean_dec(x_46); +x_47 = lean_ctor_get(x_42, 0); +lean_inc(x_47); +lean_dec(x_42); +lean_ctor_set(x_40, 0, x_47); +x_7 = x_40; +goto block_16; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_40, 1); +lean_inc(x_48); +lean_dec(x_40); +x_49 = lean_ctor_get(x_42, 0); +lean_inc(x_49); +lean_dec(x_42); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_48); +x_7 = x_50; +goto block_16; +} +} +} +else +{ +lean_object* x_51; lean_object* x_52; +lean_dec(x_41); +x_51 = lean_ctor_get(x_40, 1); +lean_inc(x_51); +lean_dec(x_40); +x_52 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg(x_1, x_2, x_3, x_4, x_5, x_51); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_7 = x_52; +goto block_16; +} +} +else +{ +uint8_t x_53; +lean_dec(x_2); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_53 = !lean_is_exclusive(x_40); +if (x_53 == 0) +{ +x_7 = x_40; +goto block_16; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_40, 0); +x_55 = lean_ctor_get(x_40, 1); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_40); +x_56 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_56, 0, x_54); +lean_ctor_set(x_56, 1, x_55); +x_7 = x_56; +goto block_16; +} +} +} +} +else +{ +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; +x_57 = lean_ctor_get_uint8(x_18, 0); +x_58 = lean_ctor_get_uint8(x_18, 1); +x_59 = lean_ctor_get_uint8(x_18, 2); +x_60 = lean_ctor_get_uint8(x_18, 3); +x_61 = lean_ctor_get_uint8(x_18, 4); +x_62 = lean_ctor_get_uint8(x_18, 5); +x_63 = lean_ctor_get_uint8(x_18, 6); +x_64 = lean_ctor_get_uint8(x_18, 7); +lean_dec(x_18); +x_65 = 1; +x_66 = l_Lean_Meta_TransparencyMode_lt(x_62, x_65); +if (x_66 == 0) +{ +lean_object* x_67; lean_object* x_68; +x_67 = lean_alloc_ctor(0, 0, 8); +lean_ctor_set_uint8(x_67, 0, x_57); +lean_ctor_set_uint8(x_67, 1, x_58); +lean_ctor_set_uint8(x_67, 2, x_59); +lean_ctor_set_uint8(x_67, 3, x_60); +lean_ctor_set_uint8(x_67, 4, x_61); +lean_ctor_set_uint8(x_67, 5, x_62); +lean_ctor_set_uint8(x_67, 6, x_63); +lean_ctor_set_uint8(x_67, 7, x_64); +lean_ctor_set(x_2, 0, x_67); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_68 = l_Lean_Meta_whnf___at_Lean_Meta_Lean_Meta_ReduceEval___instance__1___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_68) == 0) +{ +lean_object* x_69; +x_69 = lean_ctor_get(x_68, 0); +lean_inc(x_69); +if (lean_obj_tag(x_69) == 9) { lean_object* x_70; -x_70 = lean_ctor_get(x_60, 0); +x_70 = lean_ctor_get(x_69, 0); lean_inc(x_70); -lean_dec(x_60); +lean_dec(x_69); if (lean_obj_tag(x_70) == 0) { -lean_object* x_71; +lean_object* x_71; lean_object* x_72; lean_dec(x_70); -lean_free_object(x_58); -x_71 = lean_box(0); -x_62 = x_71; -goto block_69; +x_71 = lean_ctor_get(x_68, 1); +lean_inc(x_71); +lean_dec(x_68); +x_72 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg(x_1, x_2, x_3, x_4, x_5, x_71); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_7 = x_72; +goto block_16; } else { -lean_object* x_72; +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_dec(x_2); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_72 = lean_ctor_get(x_70, 0); -lean_inc(x_72); -lean_dec(x_70); -lean_ctor_set(x_58, 0, x_72); -x_7 = x_58; -goto block_16; +x_73 = lean_ctor_get(x_68, 1); +lean_inc(x_73); +if (lean_is_exclusive(x_68)) { + lean_ctor_release(x_68, 0); + lean_ctor_release(x_68, 1); + x_74 = x_68; +} else { + lean_dec_ref(x_68); + x_74 = lean_box(0); } -} -else -{ -lean_object* x_73; -lean_free_object(x_58); -lean_dec(x_60); -x_73 = lean_box(0); -x_62 = x_73; -goto block_69; -} -block_69: -{ -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_dec(x_62); -x_63 = lean_expr_dbg_to_string(x_1); -lean_dec(x_1); -x_64 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_64, 0, x_63); -x_65 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_65, 0, x_64); -x_66 = l_Lean_Meta_Nat_hasReduceEval___closed__3; -x_67 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_65); -x_68 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_67, x_2, x_3, x_4, x_5, x_61); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_7 = x_68; -goto block_16; -} -} -else -{ -lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_74 = lean_ctor_get(x_58, 0); -x_75 = lean_ctor_get(x_58, 1); +x_75 = lean_ctor_get(x_70, 0); lean_inc(x_75); -lean_inc(x_74); -lean_dec(x_58); -if (lean_obj_tag(x_74) == 9) -{ -lean_object* x_84; -x_84 = lean_ctor_get(x_74, 0); -lean_inc(x_84); -lean_dec(x_74); -if (lean_obj_tag(x_84) == 0) -{ -lean_object* x_85; -lean_dec(x_84); -x_85 = lean_box(0); -x_76 = x_85; -goto block_83; +lean_dec(x_70); +if (lean_is_scalar(x_74)) { + x_76 = lean_alloc_ctor(0, 2, 0); +} else { + x_76 = x_74; } -else -{ -lean_object* x_86; lean_object* x_87; -lean_dec(x_2); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_86 = lean_ctor_get(x_84, 0); -lean_inc(x_86); -lean_dec(x_84); -x_87 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_87, 0, x_86); -lean_ctor_set(x_87, 1, x_75); -x_7 = x_87; +lean_ctor_set(x_76, 0, x_75); +lean_ctor_set(x_76, 1, x_73); +x_7 = x_76; goto block_16; } } else { -lean_object* x_88; -lean_dec(x_74); -x_88 = lean_box(0); -x_76 = x_88; -goto block_83; -} -block_83: -{ -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_dec(x_76); -x_77 = lean_expr_dbg_to_string(x_1); -lean_dec(x_1); -x_78 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_78, 0, x_77); -x_79 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_79, 0, x_78); -x_80 = l_Lean_Meta_Nat_hasReduceEval___closed__3; -x_81 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_81, 0, x_80); -lean_ctor_set(x_81, 1, x_79); -x_82 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_81, x_2, x_3, x_4, x_5, x_75); +lean_object* x_77; lean_object* x_78; +lean_dec(x_69); +x_77 = lean_ctor_get(x_68, 1); +lean_inc(x_77); +lean_dec(x_68); +x_78 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg(x_1, x_2, x_3, x_4, x_5, x_77); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); +x_7 = x_78; +goto block_16; +} +} +else +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; +lean_dec(x_2); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_79 = lean_ctor_get(x_68, 0); +lean_inc(x_79); +x_80 = lean_ctor_get(x_68, 1); +lean_inc(x_80); +if (lean_is_exclusive(x_68)) { + lean_ctor_release(x_68, 0); + lean_ctor_release(x_68, 1); + x_81 = x_68; +} else { + lean_dec_ref(x_68); + x_81 = lean_box(0); +} +if (lean_is_scalar(x_81)) { + x_82 = lean_alloc_ctor(1, 2, 0); +} else { + x_82 = x_81; +} +lean_ctor_set(x_82, 0, x_79); +lean_ctor_set(x_82, 1, x_80); x_7 = x_82; goto block_16; } } +else +{ +lean_object* x_83; lean_object* x_84; +x_83 = lean_alloc_ctor(0, 0, 8); +lean_ctor_set_uint8(x_83, 0, x_57); +lean_ctor_set_uint8(x_83, 1, x_58); +lean_ctor_set_uint8(x_83, 2, x_59); +lean_ctor_set_uint8(x_83, 3, x_60); +lean_ctor_set_uint8(x_83, 4, x_61); +lean_ctor_set_uint8(x_83, 5, x_65); +lean_ctor_set_uint8(x_83, 6, x_63); +lean_ctor_set_uint8(x_83, 7, x_64); +lean_ctor_set(x_2, 0, x_83); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_84 = l_Lean_Meta_whnf___at_Lean_Meta_Lean_Meta_ReduceEval___instance__1___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_84) == 0) +{ +lean_object* x_85; +x_85 = lean_ctor_get(x_84, 0); +lean_inc(x_85); +if (lean_obj_tag(x_85) == 9) +{ +lean_object* x_86; +x_86 = lean_ctor_get(x_85, 0); +lean_inc(x_86); +lean_dec(x_85); +if (lean_obj_tag(x_86) == 0) +{ +lean_object* x_87; lean_object* x_88; +lean_dec(x_86); +x_87 = lean_ctor_get(x_84, 1); +lean_inc(x_87); +lean_dec(x_84); +x_88 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg(x_1, x_2, x_3, x_4, x_5, x_87); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_7 = x_88; +goto block_16; } else { -uint8_t x_89; +lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_dec(x_2); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_89 = !lean_is_exclusive(x_58); -if (x_89 == 0) -{ -x_7 = x_58; -goto block_16; +x_89 = lean_ctor_get(x_84, 1); +lean_inc(x_89); +if (lean_is_exclusive(x_84)) { + lean_ctor_release(x_84, 0); + lean_ctor_release(x_84, 1); + x_90 = x_84; +} else { + lean_dec_ref(x_84); + x_90 = lean_box(0); } -else -{ -lean_object* x_90; lean_object* x_91; lean_object* x_92; -x_90 = lean_ctor_get(x_58, 0); -x_91 = lean_ctor_get(x_58, 1); +x_91 = lean_ctor_get(x_86, 0); lean_inc(x_91); -lean_inc(x_90); -lean_dec(x_58); -x_92 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_92, 0, x_90); -lean_ctor_set(x_92, 1, x_91); +lean_dec(x_86); +if (lean_is_scalar(x_90)) { + x_92 = lean_alloc_ctor(0, 2, 0); +} else { + x_92 = x_90; +} +lean_ctor_set(x_92, 0, x_91); +lean_ctor_set(x_92, 1, x_89); x_7 = x_92; goto block_16; } } +else +{ +lean_object* x_93; lean_object* x_94; +lean_dec(x_85); +x_93 = lean_ctor_get(x_84, 1); +lean_inc(x_93); +lean_dec(x_84); +x_94 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg(x_1, x_2, x_3, x_4, x_5, x_93); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_7 = x_94; +goto block_16; } } else { -uint8_t x_93; uint8_t x_94; uint8_t x_95; uint8_t x_96; uint8_t x_97; uint8_t x_98; uint8_t x_99; uint8_t x_100; uint8_t x_101; uint8_t x_102; -x_93 = lean_ctor_get_uint8(x_18, 0); -x_94 = lean_ctor_get_uint8(x_18, 1); -x_95 = lean_ctor_get_uint8(x_18, 2); -x_96 = lean_ctor_get_uint8(x_18, 3); -x_97 = lean_ctor_get_uint8(x_18, 4); -x_98 = lean_ctor_get_uint8(x_18, 5); -x_99 = lean_ctor_get_uint8(x_18, 6); -x_100 = lean_ctor_get_uint8(x_18, 7); -lean_dec(x_18); -x_101 = 1; -x_102 = l_Lean_Meta_TransparencyMode_lt(x_98, x_101); -if (x_102 == 0) -{ -lean_object* x_103; lean_object* x_104; -x_103 = lean_alloc_ctor(0, 0, 8); -lean_ctor_set_uint8(x_103, 0, x_93); -lean_ctor_set_uint8(x_103, 1, x_94); -lean_ctor_set_uint8(x_103, 2, x_95); -lean_ctor_set_uint8(x_103, 3, x_96); -lean_ctor_set_uint8(x_103, 4, x_97); -lean_ctor_set_uint8(x_103, 5, x_98); -lean_ctor_set_uint8(x_103, 6, x_99); -lean_ctor_set_uint8(x_103, 7, x_100); -lean_ctor_set(x_2, 0, x_103); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_1); -x_104 = l_Lean_Meta_whnf___at___private_Lean_Meta_Basic_16__isClassExpensive_x3f___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); -if (lean_obj_tag(x_104) == 0) -{ -lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_105 = lean_ctor_get(x_104, 0); -lean_inc(x_105); -x_106 = lean_ctor_get(x_104, 1); -lean_inc(x_106); -if (lean_is_exclusive(x_104)) { - lean_ctor_release(x_104, 0); - lean_ctor_release(x_104, 1); - x_107 = x_104; -} else { - lean_dec_ref(x_104); - x_107 = lean_box(0); -} -if (lean_obj_tag(x_105) == 9) -{ -lean_object* x_116; -x_116 = lean_ctor_get(x_105, 0); -lean_inc(x_116); -lean_dec(x_105); -if (lean_obj_tag(x_116) == 0) -{ -lean_object* x_117; -lean_dec(x_116); -lean_dec(x_107); -x_117 = lean_box(0); -x_108 = x_117; -goto block_115; -} -else -{ -lean_object* x_118; lean_object* x_119; +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_dec(x_2); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_118 = lean_ctor_get(x_116, 0); -lean_inc(x_118); -lean_dec(x_116); -if (lean_is_scalar(x_107)) { - x_119 = lean_alloc_ctor(0, 2, 0); +x_95 = lean_ctor_get(x_84, 0); +lean_inc(x_95); +x_96 = lean_ctor_get(x_84, 1); +lean_inc(x_96); +if (lean_is_exclusive(x_84)) { + lean_ctor_release(x_84, 0); + lean_ctor_release(x_84, 1); + x_97 = x_84; } else { - x_119 = x_107; + lean_dec_ref(x_84); + x_97 = lean_box(0); } -lean_ctor_set(x_119, 0, x_118); -lean_ctor_set(x_119, 1, x_106); +if (lean_is_scalar(x_97)) { + x_98 = lean_alloc_ctor(1, 2, 0); +} else { + x_98 = x_97; +} +lean_ctor_set(x_98, 0, x_95); +lean_ctor_set(x_98, 1, x_96); +x_7 = x_98; +goto block_16; +} +} +} +} +else +{ +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; lean_object* x_110; uint8_t x_111; uint8_t x_112; +x_99 = lean_ctor_get(x_2, 0); +x_100 = lean_ctor_get(x_2, 1); +x_101 = lean_ctor_get(x_2, 2); +lean_inc(x_101); +lean_inc(x_100); +lean_inc(x_99); +lean_dec(x_2); +x_102 = lean_ctor_get_uint8(x_99, 0); +x_103 = lean_ctor_get_uint8(x_99, 1); +x_104 = lean_ctor_get_uint8(x_99, 2); +x_105 = lean_ctor_get_uint8(x_99, 3); +x_106 = lean_ctor_get_uint8(x_99, 4); +x_107 = lean_ctor_get_uint8(x_99, 5); +x_108 = lean_ctor_get_uint8(x_99, 6); +x_109 = lean_ctor_get_uint8(x_99, 7); +if (lean_is_exclusive(x_99)) { + x_110 = x_99; +} else { + lean_dec_ref(x_99); + x_110 = lean_box(0); +} +x_111 = 1; +x_112 = l_Lean_Meta_TransparencyMode_lt(x_107, x_111); +if (x_112 == 0) +{ +lean_object* x_113; lean_object* x_114; lean_object* x_115; +if (lean_is_scalar(x_110)) { + x_113 = lean_alloc_ctor(0, 0, 8); +} else { + x_113 = x_110; +} +lean_ctor_set_uint8(x_113, 0, x_102); +lean_ctor_set_uint8(x_113, 1, x_103); +lean_ctor_set_uint8(x_113, 2, x_104); +lean_ctor_set_uint8(x_113, 3, x_105); +lean_ctor_set_uint8(x_113, 4, x_106); +lean_ctor_set_uint8(x_113, 5, x_107); +lean_ctor_set_uint8(x_113, 6, x_108); +lean_ctor_set_uint8(x_113, 7, x_109); +x_114 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_114, 0, x_113); +lean_ctor_set(x_114, 1, x_100); +lean_ctor_set(x_114, 2, x_101); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_114); +lean_inc(x_1); +x_115 = l_Lean_Meta_whnf___at_Lean_Meta_Lean_Meta_ReduceEval___instance__1___spec__1(x_1, x_114, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_115) == 0) +{ +lean_object* x_116; +x_116 = lean_ctor_get(x_115, 0); +lean_inc(x_116); +if (lean_obj_tag(x_116) == 9) +{ +lean_object* x_117; +x_117 = lean_ctor_get(x_116, 0); +lean_inc(x_117); +lean_dec(x_116); +if (lean_obj_tag(x_117) == 0) +{ +lean_object* x_118; lean_object* x_119; +lean_dec(x_117); +x_118 = lean_ctor_get(x_115, 1); +lean_inc(x_118); +lean_dec(x_115); +x_119 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg(x_1, x_114, x_3, x_4, x_5, x_118); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_114); x_7 = x_119; goto block_16; } -} else { -lean_object* x_120; -lean_dec(x_107); -lean_dec(x_105); -x_120 = lean_box(0); -x_108 = x_120; -goto block_115; -} -block_115: -{ -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_dec(x_108); -x_109 = lean_expr_dbg_to_string(x_1); -lean_dec(x_1); -x_110 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_110, 0, x_109); -x_111 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_111, 0, x_110); -x_112 = l_Lean_Meta_Nat_hasReduceEval___closed__3; -x_113 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_113, 0, x_112); -lean_ctor_set(x_113, 1, x_111); -x_114 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_113, x_2, x_3, x_4, x_5, x_106); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_7 = x_114; -goto block_16; -} -} -else -{ -lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; -lean_dec(x_2); +lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; +lean_dec(x_114); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_121 = lean_ctor_get(x_104, 0); -lean_inc(x_121); -x_122 = lean_ctor_get(x_104, 1); +x_120 = lean_ctor_get(x_115, 1); +lean_inc(x_120); +if (lean_is_exclusive(x_115)) { + lean_ctor_release(x_115, 0); + lean_ctor_release(x_115, 1); + x_121 = x_115; +} else { + lean_dec_ref(x_115); + x_121 = lean_box(0); +} +x_122 = lean_ctor_get(x_117, 0); lean_inc(x_122); -if (lean_is_exclusive(x_104)) { - lean_ctor_release(x_104, 0); - lean_ctor_release(x_104, 1); - x_123 = x_104; +lean_dec(x_117); +if (lean_is_scalar(x_121)) { + x_123 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_104); - x_123 = lean_box(0); + x_123 = x_121; } -if (lean_is_scalar(x_123)) { - x_124 = lean_alloc_ctor(1, 2, 0); -} else { - x_124 = x_123; -} -lean_ctor_set(x_124, 0, x_121); -lean_ctor_set(x_124, 1, x_122); -x_7 = x_124; +lean_ctor_set(x_123, 0, x_122); +lean_ctor_set(x_123, 1, x_120); +x_7 = x_123; goto block_16; } } else { -lean_object* x_125; lean_object* x_126; -x_125 = lean_alloc_ctor(0, 0, 8); -lean_ctor_set_uint8(x_125, 0, x_93); -lean_ctor_set_uint8(x_125, 1, x_94); -lean_ctor_set_uint8(x_125, 2, x_95); -lean_ctor_set_uint8(x_125, 3, x_96); -lean_ctor_set_uint8(x_125, 4, x_97); -lean_ctor_set_uint8(x_125, 5, x_101); -lean_ctor_set_uint8(x_125, 6, x_99); -lean_ctor_set_uint8(x_125, 7, x_100); -lean_ctor_set(x_2, 0, x_125); +lean_object* x_124; lean_object* x_125; +lean_dec(x_116); +x_124 = lean_ctor_get(x_115, 1); +lean_inc(x_124); +lean_dec(x_115); +x_125 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg(x_1, x_114, x_3, x_4, x_5, x_124); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_114); +x_7 = x_125; +goto block_16; +} +} +else +{ +lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; +lean_dec(x_114); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_126 = lean_ctor_get(x_115, 0); +lean_inc(x_126); +x_127 = lean_ctor_get(x_115, 1); +lean_inc(x_127); +if (lean_is_exclusive(x_115)) { + lean_ctor_release(x_115, 0); + lean_ctor_release(x_115, 1); + x_128 = x_115; +} else { + lean_dec_ref(x_115); + x_128 = lean_box(0); +} +if (lean_is_scalar(x_128)) { + x_129 = lean_alloc_ctor(1, 2, 0); +} else { + x_129 = x_128; +} +lean_ctor_set(x_129, 0, x_126); +lean_ctor_set(x_129, 1, x_127); +x_7 = x_129; +goto block_16; +} +} +else +{ +lean_object* x_130; lean_object* x_131; lean_object* x_132; +if (lean_is_scalar(x_110)) { + x_130 = lean_alloc_ctor(0, 0, 8); +} else { + x_130 = x_110; +} +lean_ctor_set_uint8(x_130, 0, x_102); +lean_ctor_set_uint8(x_130, 1, x_103); +lean_ctor_set_uint8(x_130, 2, x_104); +lean_ctor_set_uint8(x_130, 3, x_105); +lean_ctor_set_uint8(x_130, 4, x_106); +lean_ctor_set_uint8(x_130, 5, x_111); +lean_ctor_set_uint8(x_130, 6, x_108); +lean_ctor_set_uint8(x_130, 7, x_109); +x_131 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_131, 0, x_130); +lean_ctor_set(x_131, 1, x_100); +lean_ctor_set(x_131, 2, x_101); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_2); +lean_inc(x_131); lean_inc(x_1); -x_126 = l_Lean_Meta_whnf___at___private_Lean_Meta_Basic_16__isClassExpensive_x3f___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); -if (lean_obj_tag(x_126) == 0) +x_132 = l_Lean_Meta_whnf___at_Lean_Meta_Lean_Meta_ReduceEval___instance__1___spec__1(x_1, x_131, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_132) == 0) { -lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; -x_127 = lean_ctor_get(x_126, 0); -lean_inc(x_127); -x_128 = lean_ctor_get(x_126, 1); -lean_inc(x_128); -if (lean_is_exclusive(x_126)) { - lean_ctor_release(x_126, 0); - lean_ctor_release(x_126, 1); - x_129 = x_126; -} else { - lean_dec_ref(x_126); - x_129 = lean_box(0); -} -if (lean_obj_tag(x_127) == 9) +lean_object* x_133; +x_133 = lean_ctor_get(x_132, 0); +lean_inc(x_133); +if (lean_obj_tag(x_133) == 9) { -lean_object* x_138; -x_138 = lean_ctor_get(x_127, 0); -lean_inc(x_138); -lean_dec(x_127); -if (lean_obj_tag(x_138) == 0) +lean_object* x_134; +x_134 = lean_ctor_get(x_133, 0); +lean_inc(x_134); +lean_dec(x_133); +if (lean_obj_tag(x_134) == 0) { -lean_object* x_139; -lean_dec(x_138); -lean_dec(x_129); -x_139 = lean_box(0); -x_130 = x_139; -goto block_137; +lean_object* x_135; lean_object* x_136; +lean_dec(x_134); +x_135 = lean_ctor_get(x_132, 1); +lean_inc(x_135); +lean_dec(x_132); +x_136 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg(x_1, x_131, x_3, x_4, x_5, x_135); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_131); +x_7 = x_136; +goto block_16; } else { -lean_object* x_140; lean_object* x_141; -lean_dec(x_2); +lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; +lean_dec(x_131); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_140 = lean_ctor_get(x_138, 0); -lean_inc(x_140); -lean_dec(x_138); -if (lean_is_scalar(x_129)) { - x_141 = lean_alloc_ctor(0, 2, 0); +x_137 = lean_ctor_get(x_132, 1); +lean_inc(x_137); +if (lean_is_exclusive(x_132)) { + lean_ctor_release(x_132, 0); + lean_ctor_release(x_132, 1); + x_138 = x_132; } else { - x_141 = x_129; + lean_dec_ref(x_132); + x_138 = lean_box(0); } -lean_ctor_set(x_141, 0, x_140); -lean_ctor_set(x_141, 1, x_128); -x_7 = x_141; +x_139 = lean_ctor_get(x_134, 0); +lean_inc(x_139); +lean_dec(x_134); +if (lean_is_scalar(x_138)) { + x_140 = lean_alloc_ctor(0, 2, 0); +} else { + x_140 = x_138; +} +lean_ctor_set(x_140, 0, x_139); +lean_ctor_set(x_140, 1, x_137); +x_7 = x_140; goto block_16; } } else { -lean_object* x_142; -lean_dec(x_129); -lean_dec(x_127); -x_142 = lean_box(0); -x_130 = x_142; -goto block_137; -} -block_137: -{ -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_dec(x_130); -x_131 = lean_expr_dbg_to_string(x_1); -lean_dec(x_1); -x_132 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_132, 0, x_131); -x_133 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_133, 0, x_132); -x_134 = l_Lean_Meta_Nat_hasReduceEval___closed__3; -x_135 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_135, 0, x_134); -lean_ctor_set(x_135, 1, x_133); -x_136 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_135, x_2, x_3, x_4, x_5, x_128); +lean_object* x_141; lean_object* x_142; +lean_dec(x_133); +x_141 = lean_ctor_get(x_132, 1); +lean_inc(x_141); +lean_dec(x_132); +x_142 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg(x_1, x_131, x_3, x_4, x_5, x_141); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_2); -x_7 = x_136; +lean_dec(x_131); +x_7 = x_142; goto block_16; } } else { lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; -lean_dec(x_2); +lean_dec(x_131); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_143 = lean_ctor_get(x_126, 0); +x_143 = lean_ctor_get(x_132, 0); lean_inc(x_143); -x_144 = lean_ctor_get(x_126, 1); +x_144 = lean_ctor_get(x_132, 1); lean_inc(x_144); -if (lean_is_exclusive(x_126)) { - lean_ctor_release(x_126, 0); - lean_ctor_release(x_126, 1); - x_145 = x_126; +if (lean_is_exclusive(x_132)) { + lean_ctor_release(x_132, 0); + lean_ctor_release(x_132, 1); + x_145 = x_132; } else { - lean_dec_ref(x_126); + lean_dec_ref(x_132); x_145 = lean_box(0); } if (lean_is_scalar(x_145)) { @@ -2952,316 +2898,6 @@ goto block_16; } } } -} -else -{ -lean_object* x_147; lean_object* x_148; lean_object* 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; lean_object* x_158; uint8_t x_159; uint8_t x_160; -x_147 = lean_ctor_get(x_2, 0); -x_148 = lean_ctor_get(x_2, 1); -x_149 = lean_ctor_get(x_2, 2); -lean_inc(x_149); -lean_inc(x_148); -lean_inc(x_147); -lean_dec(x_2); -x_150 = lean_ctor_get_uint8(x_147, 0); -x_151 = lean_ctor_get_uint8(x_147, 1); -x_152 = lean_ctor_get_uint8(x_147, 2); -x_153 = lean_ctor_get_uint8(x_147, 3); -x_154 = lean_ctor_get_uint8(x_147, 4); -x_155 = lean_ctor_get_uint8(x_147, 5); -x_156 = lean_ctor_get_uint8(x_147, 6); -x_157 = lean_ctor_get_uint8(x_147, 7); -if (lean_is_exclusive(x_147)) { - x_158 = x_147; -} else { - lean_dec_ref(x_147); - x_158 = lean_box(0); -} -x_159 = 1; -x_160 = l_Lean_Meta_TransparencyMode_lt(x_155, x_159); -if (x_160 == 0) -{ -lean_object* x_161; lean_object* x_162; lean_object* x_163; -if (lean_is_scalar(x_158)) { - x_161 = lean_alloc_ctor(0, 0, 8); -} else { - x_161 = x_158; -} -lean_ctor_set_uint8(x_161, 0, x_150); -lean_ctor_set_uint8(x_161, 1, x_151); -lean_ctor_set_uint8(x_161, 2, x_152); -lean_ctor_set_uint8(x_161, 3, x_153); -lean_ctor_set_uint8(x_161, 4, x_154); -lean_ctor_set_uint8(x_161, 5, x_155); -lean_ctor_set_uint8(x_161, 6, x_156); -lean_ctor_set_uint8(x_161, 7, x_157); -x_162 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_162, 0, x_161); -lean_ctor_set(x_162, 1, x_148); -lean_ctor_set(x_162, 2, x_149); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_162); -lean_inc(x_1); -x_163 = l_Lean_Meta_whnf___at___private_Lean_Meta_Basic_16__isClassExpensive_x3f___main___spec__2(x_1, x_162, x_3, x_4, x_5, x_6); -if (lean_obj_tag(x_163) == 0) -{ -lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; -x_164 = lean_ctor_get(x_163, 0); -lean_inc(x_164); -x_165 = lean_ctor_get(x_163, 1); -lean_inc(x_165); -if (lean_is_exclusive(x_163)) { - lean_ctor_release(x_163, 0); - lean_ctor_release(x_163, 1); - x_166 = x_163; -} else { - lean_dec_ref(x_163); - x_166 = lean_box(0); -} -if (lean_obj_tag(x_164) == 9) -{ -lean_object* x_175; -x_175 = lean_ctor_get(x_164, 0); -lean_inc(x_175); -lean_dec(x_164); -if (lean_obj_tag(x_175) == 0) -{ -lean_object* x_176; -lean_dec(x_175); -lean_dec(x_166); -x_176 = lean_box(0); -x_167 = x_176; -goto block_174; -} -else -{ -lean_object* x_177; lean_object* x_178; -lean_dec(x_162); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_177 = lean_ctor_get(x_175, 0); -lean_inc(x_177); -lean_dec(x_175); -if (lean_is_scalar(x_166)) { - x_178 = lean_alloc_ctor(0, 2, 0); -} else { - x_178 = x_166; -} -lean_ctor_set(x_178, 0, x_177); -lean_ctor_set(x_178, 1, x_165); -x_7 = x_178; -goto block_16; -} -} -else -{ -lean_object* x_179; -lean_dec(x_166); -lean_dec(x_164); -x_179 = lean_box(0); -x_167 = x_179; -goto block_174; -} -block_174: -{ -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_dec(x_167); -x_168 = lean_expr_dbg_to_string(x_1); -lean_dec(x_1); -x_169 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_169, 0, x_168); -x_170 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_170, 0, x_169); -x_171 = l_Lean_Meta_Nat_hasReduceEval___closed__3; -x_172 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_172, 0, x_171); -lean_ctor_set(x_172, 1, x_170); -x_173 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_172, x_162, x_3, x_4, x_5, x_165); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_162); -x_7 = x_173; -goto block_16; -} -} -else -{ -lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; -lean_dec(x_162); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_180 = lean_ctor_get(x_163, 0); -lean_inc(x_180); -x_181 = lean_ctor_get(x_163, 1); -lean_inc(x_181); -if (lean_is_exclusive(x_163)) { - lean_ctor_release(x_163, 0); - lean_ctor_release(x_163, 1); - x_182 = x_163; -} else { - lean_dec_ref(x_163); - 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); -x_7 = x_183; -goto block_16; -} -} -else -{ -lean_object* x_184; lean_object* x_185; lean_object* x_186; -if (lean_is_scalar(x_158)) { - x_184 = lean_alloc_ctor(0, 0, 8); -} else { - x_184 = x_158; -} -lean_ctor_set_uint8(x_184, 0, x_150); -lean_ctor_set_uint8(x_184, 1, x_151); -lean_ctor_set_uint8(x_184, 2, x_152); -lean_ctor_set_uint8(x_184, 3, x_153); -lean_ctor_set_uint8(x_184, 4, x_154); -lean_ctor_set_uint8(x_184, 5, x_159); -lean_ctor_set_uint8(x_184, 6, x_156); -lean_ctor_set_uint8(x_184, 7, x_157); -x_185 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_185, 0, x_184); -lean_ctor_set(x_185, 1, x_148); -lean_ctor_set(x_185, 2, x_149); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_185); -lean_inc(x_1); -x_186 = l_Lean_Meta_whnf___at___private_Lean_Meta_Basic_16__isClassExpensive_x3f___main___spec__2(x_1, x_185, x_3, x_4, x_5, x_6); -if (lean_obj_tag(x_186) == 0) -{ -lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; -x_187 = lean_ctor_get(x_186, 0); -lean_inc(x_187); -x_188 = lean_ctor_get(x_186, 1); -lean_inc(x_188); -if (lean_is_exclusive(x_186)) { - lean_ctor_release(x_186, 0); - lean_ctor_release(x_186, 1); - x_189 = x_186; -} else { - lean_dec_ref(x_186); - x_189 = lean_box(0); -} -if (lean_obj_tag(x_187) == 9) -{ -lean_object* x_198; -x_198 = lean_ctor_get(x_187, 0); -lean_inc(x_198); -lean_dec(x_187); -if (lean_obj_tag(x_198) == 0) -{ -lean_object* x_199; -lean_dec(x_198); -lean_dec(x_189); -x_199 = lean_box(0); -x_190 = x_199; -goto block_197; -} -else -{ -lean_object* x_200; lean_object* x_201; -lean_dec(x_185); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_200 = lean_ctor_get(x_198, 0); -lean_inc(x_200); -lean_dec(x_198); -if (lean_is_scalar(x_189)) { - x_201 = lean_alloc_ctor(0, 2, 0); -} else { - x_201 = x_189; -} -lean_ctor_set(x_201, 0, x_200); -lean_ctor_set(x_201, 1, x_188); -x_7 = x_201; -goto block_16; -} -} -else -{ -lean_object* x_202; -lean_dec(x_189); -lean_dec(x_187); -x_202 = lean_box(0); -x_190 = x_202; -goto block_197; -} -block_197: -{ -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_dec(x_190); -x_191 = lean_expr_dbg_to_string(x_1); -lean_dec(x_1); -x_192 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_192, 0, x_191); -x_193 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_193, 0, x_192); -x_194 = l_Lean_Meta_Nat_hasReduceEval___closed__3; -x_195 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_195, 0, x_194); -lean_ctor_set(x_195, 1, x_193); -x_196 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_195, x_185, x_3, x_4, x_5, x_188); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_185); -x_7 = x_196; -goto block_16; -} -} -else -{ -lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; -lean_dec(x_185); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_203 = lean_ctor_get(x_186, 0); -lean_inc(x_203); -x_204 = lean_ctor_get(x_186, 1); -lean_inc(x_204); -if (lean_is_exclusive(x_186)) { - lean_ctor_release(x_186, 0); - lean_ctor_release(x_186, 1); - x_205 = x_186; -} else { - lean_dec_ref(x_186); - x_205 = lean_box(0); -} -if (lean_is_scalar(x_205)) { - x_206 = lean_alloc_ctor(1, 2, 0); -} else { - x_206 = x_205; -} -lean_ctor_set(x_206, 0, x_203); -lean_ctor_set(x_206, 1, x_204); -x_7 = x_206; -goto block_16; -} -} -} block_16: { if (lean_obj_tag(x_7) == 0) @@ -3311,7 +2947,7 @@ return x_15; } } } -static lean_object* _init_l___private_Lean_Meta_ReduceEval_1__evalName___main___closed__1() { +static lean_object* _init_l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -3321,7 +2957,7 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Meta_ReduceEval_1__evalName___main___closed__2() { +static lean_object* _init_l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___closed__2() { _start: { lean_object* x_1; @@ -3329,17 +2965,27 @@ x_1 = lean_mk_string("num"); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_ReduceEval_1__evalName___main___closed__3() { +static lean_object* _init_l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_ReduceEval_1__evalName___main___closed__1; -x_2 = l___private_Lean_Meta_ReduceEval_1__evalName___main___closed__2; +x_1 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___closed__1; +x_2 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___closed__2; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Meta_ReduceEval_1__evalName___main___closed__4() { +static lean_object* _init_l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___closed__1; +x_2 = l___private_Init_LeanInit_13__quoteName___main___closed__2; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___closed__5() { _start: { lean_object* x_1; @@ -3347,27 +2993,17 @@ x_1 = lean_mk_string("str"); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_ReduceEval_1__evalName___main___closed__5() { +static lean_object* _init_l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_ReduceEval_1__evalName___main___closed__1; -x_2 = l___private_Lean_Meta_ReduceEval_1__evalName___main___closed__4; +x_1 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___closed__1; +x_2 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___closed__5; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Meta_ReduceEval_1__evalName___main___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_ReduceEval_1__evalName___main___closed__1; -x_2 = l___private_Init_LeanInit_13__quoteName___main___closed__2; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* l___private_Lean_Meta_ReduceEval_1__evalName___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* l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName(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; @@ -3375,781 +3011,755 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_7 = l_Lean_Meta_whnf___at___private_Lean_Meta_Basic_16__isClassExpensive_x3f___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_Meta_whnf___at_Lean_Meta_Lean_Meta_ReduceEval___instance__1___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); if (lean_obj_tag(x_7) == 0) { uint8_t x_8; 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_19; +lean_object* x_9; lean_object* x_10; lean_object* x_11; x_9 = lean_ctor_get(x_7, 0); x_10 = lean_ctor_get(x_7, 1); -x_19 = l_Lean_Expr_getAppFn___main(x_9); -if (lean_obj_tag(x_19) == 4) +x_11 = l_Lean_Expr_getAppFn___main(x_9); +if (lean_obj_tag(x_11) == 4) { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_57; lean_object* x_91; uint8_t x_92; -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -lean_dec(x_19); -x_21 = lean_unsigned_to_nat(0u); -x_22 = l_Lean_Expr_getAppNumArgsAux___main(x_9, x_21); -x_91 = l___private_Lean_Meta_ReduceEval_1__evalName___main___closed__6; -x_92 = lean_name_eq(x_20, x_91); -if (x_92 == 0) +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_75; uint8_t x_76; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +lean_dec(x_11); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Lean_Expr_getAppNumArgsAux___main(x_9, x_13); +x_75 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___closed__4; +x_76 = lean_name_eq(x_12, x_75); +if (x_76 == 0) { -lean_object* x_93; +lean_object* x_77; uint8_t x_78; lean_free_object(x_7); -x_93 = lean_box(0); -x_57 = x_93; -goto block_90; +x_77 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___closed__6; +x_78 = lean_name_eq(x_12, x_77); +if (x_78 == 0) +{ +uint8_t x_79; +x_79 = 0; +x_15 = x_79; +goto block_74; } else { -uint8_t x_94; -x_94 = lean_nat_dec_eq(x_22, x_21); -if (x_94 == 0) -{ -lean_object* x_95; -lean_free_object(x_7); -x_95 = lean_box(0); -x_57 = x_95; -goto block_90; -} -else -{ -lean_object* x_96; -lean_dec(x_22); -lean_dec(x_20); -lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_96 = lean_box(0); -lean_ctor_set(x_7, 0, x_96); -return x_7; -} -} -block_56: -{ -lean_object* x_24; uint8_t x_25; -lean_dec(x_23); -x_24 = l___private_Lean_Meta_ReduceEval_1__evalName___main___closed__3; -x_25 = lean_name_eq(x_20, x_24); -lean_dec(x_20); -if (x_25 == 0) -{ -lean_object* x_26; -lean_dec(x_22); -x_26 = lean_box(0); -x_11 = x_26; -goto block_18; -} -else -{ -lean_object* x_27; uint8_t x_28; -x_27 = lean_unsigned_to_nat(3u); -x_28 = lean_nat_dec_eq(x_22, x_27); -if (x_28 == 0) -{ -lean_object* x_29; -lean_dec(x_22); -x_29 = lean_box(0); -x_11 = x_29; -goto block_18; -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_30 = lean_nat_sub(x_22, x_21); -x_31 = lean_unsigned_to_nat(1u); -x_32 = lean_nat_sub(x_30, x_31); -lean_dec(x_30); -x_33 = l_Lean_Expr_getRevArg_x21___main(x_9, x_32); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -x_34 = l___private_Lean_Meta_ReduceEval_1__evalName___main(x_33, x_2, x_3, x_4, x_5, x_10); -if (lean_obj_tag(x_34) == 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; -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_37 = lean_nat_sub(x_22, x_31); -lean_dec(x_22); -x_38 = lean_nat_sub(x_37, x_31); -lean_dec(x_37); -x_39 = l_Lean_Expr_getRevArg_x21___main(x_9, x_38); -lean_dec(x_9); -x_40 = l_Lean_Meta_reduceEval___at___private_Lean_Meta_ReduceEval_1__evalName___main___spec__1(x_39, x_2, x_3, x_4, x_5, x_36); -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; lean_object* x_43; -x_42 = lean_ctor_get(x_40, 0); -x_43 = lean_name_mk_numeral(x_35, x_42); -lean_ctor_set(x_40, 0, x_43); -return x_40; -} -else -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_44 = lean_ctor_get(x_40, 0); -x_45 = lean_ctor_get(x_40, 1); -lean_inc(x_45); -lean_inc(x_44); -lean_dec(x_40); -x_46 = lean_name_mk_numeral(x_35, x_44); -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -return x_47; -} -} -else -{ -uint8_t x_48; -lean_dec(x_35); -x_48 = !lean_is_exclusive(x_40); -if (x_48 == 0) -{ -return x_40; -} -else -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_40, 0); -x_50 = lean_ctor_get(x_40, 1); -lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_40); -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_22); -lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_52 = !lean_is_exclusive(x_34); -if (x_52 == 0) -{ -return x_34; -} -else -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_34, 0); -x_54 = lean_ctor_get(x_34, 1); -lean_inc(x_54); -lean_inc(x_53); -lean_dec(x_34); -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; -} -} -} -} -} -block_90: -{ -lean_object* x_58; uint8_t x_59; -lean_dec(x_57); -x_58 = l___private_Lean_Meta_ReduceEval_1__evalName___main___closed__5; -x_59 = lean_name_eq(x_20, x_58); -if (x_59 == 0) -{ -lean_object* x_60; -x_60 = lean_box(0); -x_23 = x_60; -goto block_56; -} -else -{ -lean_object* x_61; uint8_t x_62; -x_61 = lean_unsigned_to_nat(3u); -x_62 = lean_nat_dec_eq(x_22, x_61); -if (x_62 == 0) -{ -lean_object* x_63; -x_63 = lean_box(0); -x_23 = x_63; -goto block_56; -} -else -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; -lean_dec(x_20); -x_64 = lean_nat_sub(x_22, x_21); -x_65 = lean_unsigned_to_nat(1u); -x_66 = lean_nat_sub(x_64, x_65); -lean_dec(x_64); -x_67 = l_Lean_Expr_getRevArg_x21___main(x_9, x_66); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -x_68 = l___private_Lean_Meta_ReduceEval_1__evalName___main(x_67, x_2, x_3, x_4, x_5, x_10); -if (lean_obj_tag(x_68) == 0) -{ -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_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); -x_71 = lean_nat_sub(x_22, x_65); -lean_dec(x_22); -x_72 = lean_nat_sub(x_71, x_65); -lean_dec(x_71); -x_73 = l_Lean_Expr_getRevArg_x21___main(x_9, x_72); -lean_dec(x_9); -x_74 = l_Lean_Meta_reduceEval___at___private_Lean_Meta_ReduceEval_1__evalName___main___spec__2(x_73, x_2, x_3, x_4, x_5, x_70); -if (lean_obj_tag(x_74) == 0) -{ -uint8_t x_75; -x_75 = !lean_is_exclusive(x_74); -if (x_75 == 0) -{ -lean_object* x_76; lean_object* x_77; -x_76 = lean_ctor_get(x_74, 0); -x_77 = lean_name_mk_string(x_69, x_76); -lean_ctor_set(x_74, 0, x_77); -return x_74; -} -else -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_78 = lean_ctor_get(x_74, 0); -x_79 = lean_ctor_get(x_74, 1); -lean_inc(x_79); -lean_inc(x_78); -lean_dec(x_74); -x_80 = lean_name_mk_string(x_69, x_78); -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; +lean_object* x_80; uint8_t x_81; +x_80 = lean_unsigned_to_nat(3u); +x_81 = lean_nat_dec_eq(x_14, x_80); +x_15 = x_81; +goto block_74; } } else { uint8_t x_82; -lean_dec(x_69); -x_82 = !lean_is_exclusive(x_74); +x_82 = lean_nat_dec_eq(x_14, x_13); if (x_82 == 0) { -return x_74; +lean_object* x_83; uint8_t x_84; +lean_free_object(x_7); +x_83 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___closed__6; +x_84 = lean_name_eq(x_12, x_83); +if (x_84 == 0) +{ +uint8_t x_85; +x_85 = 0; +x_15 = x_85; +goto block_74; } else { -lean_object* x_83; lean_object* x_84; lean_object* x_85; -x_83 = lean_ctor_get(x_74, 0); -x_84 = lean_ctor_get(x_74, 1); -lean_inc(x_84); -lean_inc(x_83); -lean_dec(x_74); -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_86; uint8_t x_87; +x_86 = lean_unsigned_to_nat(3u); +x_87 = lean_nat_dec_eq(x_14, x_86); +x_15 = x_87; +goto block_74; } } else { -uint8_t x_86; -lean_dec(x_22); +lean_object* x_88; +lean_dec(x_14); +lean_dec(x_12); lean_dec(x_9); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_86 = !lean_is_exclusive(x_68); -if (x_86 == 0) +x_88 = lean_box(0); +lean_ctor_set(x_7, 0, x_88); +return x_7; +} +} +block_74: { -return x_68; +if (x_15 == 0) +{ +lean_object* x_16; uint8_t x_17; +x_16 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___closed__3; +x_17 = lean_name_eq(x_12, x_16); +lean_dec(x_12); +if (x_17 == 0) +{ +lean_object* x_18; +lean_dec(x_14); +x_18 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg(x_9, x_2, x_3, x_4, x_5, x_10); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_18; } else { -lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_87 = lean_ctor_get(x_68, 0); -x_88 = lean_ctor_get(x_68, 1); -lean_inc(x_88); -lean_inc(x_87); -lean_dec(x_68); -x_89 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_89, 0, x_87); -lean_ctor_set(x_89, 1, x_88); +lean_object* x_19; uint8_t x_20; +x_19 = lean_unsigned_to_nat(3u); +x_20 = lean_nat_dec_eq(x_14, x_19); +if (x_20 == 0) +{ +lean_object* x_21; +lean_dec(x_14); +x_21 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg(x_9, x_2, x_3, x_4, x_5, x_10); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_21; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_22 = lean_nat_sub(x_14, x_13); +x_23 = lean_unsigned_to_nat(1u); +x_24 = lean_nat_sub(x_22, x_23); +lean_dec(x_22); +x_25 = l_Lean_Expr_getRevArg_x21___main(x_9, x_24); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_26 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName(x_25, x_2, x_3, x_4, x_5, x_10); +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; +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 = lean_nat_sub(x_14, x_23); +lean_dec(x_14); +x_30 = lean_nat_sub(x_29, x_23); +lean_dec(x_29); +x_31 = l_Lean_Expr_getRevArg_x21___main(x_9, x_30); +lean_dec(x_9); +x_32 = l_Lean_Meta_reduceEval___at___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___spec__1(x_31, x_2, x_3, x_4, x_5, x_28); +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; lean_object* x_35; +x_34 = lean_ctor_get(x_32, 0); +x_35 = lean_name_mk_numeral(x_27, x_34); +lean_ctor_set(x_32, 0, x_35); +return x_32; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_36 = lean_ctor_get(x_32, 0); +x_37 = lean_ctor_get(x_32, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_32); +x_38 = lean_name_mk_numeral(x_27, x_36); +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_27); +x_40 = !lean_is_exclusive(x_32); +if (x_40 == 0) +{ +return x_32; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_32, 0); +x_42 = lean_ctor_get(x_32, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_32); +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_14); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_44 = !lean_is_exclusive(x_26); +if (x_44 == 0) +{ +return x_26; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_26, 0); +x_46 = lean_ctor_get(x_26, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_26); +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_dec(x_12); +x_48 = lean_nat_sub(x_14, x_13); +x_49 = lean_unsigned_to_nat(1u); +x_50 = lean_nat_sub(x_48, x_49); +lean_dec(x_48); +x_51 = l_Lean_Expr_getRevArg_x21___main(x_9, x_50); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_52 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName(x_51, x_2, x_3, x_4, x_5, x_10); +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; lean_object* x_58; +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_nat_sub(x_14, x_49); +lean_dec(x_14); +x_56 = lean_nat_sub(x_55, x_49); +lean_dec(x_55); +x_57 = l_Lean_Expr_getRevArg_x21___main(x_9, x_56); +lean_dec(x_9); +x_58 = l_Lean_Meta_reduceEval___at___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___spec__2(x_57, x_2, x_3, x_4, x_5, x_54); +if (lean_obj_tag(x_58) == 0) +{ +uint8_t x_59; +x_59 = !lean_is_exclusive(x_58); +if (x_59 == 0) +{ +lean_object* x_60; lean_object* x_61; +x_60 = lean_ctor_get(x_58, 0); +x_61 = lean_name_mk_string(x_53, x_60); +lean_ctor_set(x_58, 0, x_61); +return x_58; +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_62 = lean_ctor_get(x_58, 0); +x_63 = lean_ctor_get(x_58, 1); +lean_inc(x_63); +lean_inc(x_62); +lean_dec(x_58); +x_64 = lean_name_mk_string(x_53, x_62); +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; +} +} +else +{ +uint8_t x_66; +lean_dec(x_53); +x_66 = !lean_is_exclusive(x_58); +if (x_66 == 0) +{ +return x_58; +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_58, 0); +x_68 = lean_ctor_get(x_58, 1); +lean_inc(x_68); +lean_inc(x_67); +lean_dec(x_58); +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; +} +} +} +else +{ +uint8_t x_70; +lean_dec(x_14); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_70 = !lean_is_exclusive(x_52); +if (x_70 == 0) +{ +return x_52; +} +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_52, 0); +x_72 = lean_ctor_get(x_52, 1); +lean_inc(x_72); +lean_inc(x_71); +lean_dec(x_52); +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; +} +} +} +} +} +else +{ +lean_object* x_89; +lean_dec(x_11); +lean_free_object(x_7); +x_89 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg(x_9, x_2, x_3, x_4, x_5, x_10); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); return x_89; } } -} -} -} -} else { -lean_object* x_97; -lean_dec(x_19); -lean_free_object(x_7); -x_97 = lean_box(0); -x_11 = x_97; -goto block_18; -} -block_18: -{ -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_dec(x_11); -x_12 = lean_expr_dbg_to_string(x_9); -lean_dec(x_9); -x_13 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_13, 0, x_12); -x_14 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_14, 0, x_13); -x_15 = l_Lean_Meta_Nat_hasReduceEval___closed__3; -x_16 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_14); -x_17 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_16, x_2, x_3, x_4, x_5, x_10); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_17; -} -} -else -{ -lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_108; -x_98 = lean_ctor_get(x_7, 0); -x_99 = lean_ctor_get(x_7, 1); -lean_inc(x_99); -lean_inc(x_98); +lean_object* x_90; lean_object* x_91; lean_object* x_92; +x_90 = lean_ctor_get(x_7, 0); +x_91 = lean_ctor_get(x_7, 1); +lean_inc(x_91); +lean_inc(x_90); lean_dec(x_7); -x_108 = l_Lean_Expr_getAppFn___main(x_98); -if (lean_obj_tag(x_108) == 4) +x_92 = l_Lean_Expr_getAppFn___main(x_90); +if (lean_obj_tag(x_92) == 4) { -lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_144; lean_object* x_176; uint8_t x_177; -x_109 = lean_ctor_get(x_108, 0); -lean_inc(x_109); -lean_dec(x_108); -x_110 = lean_unsigned_to_nat(0u); -x_111 = l_Lean_Expr_getAppNumArgsAux___main(x_98, x_110); -x_176 = l___private_Lean_Meta_ReduceEval_1__evalName___main___closed__6; -x_177 = lean_name_eq(x_109, x_176); -if (x_177 == 0) +lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_96; lean_object* x_152; uint8_t x_153; +x_93 = lean_ctor_get(x_92, 0); +lean_inc(x_93); +lean_dec(x_92); +x_94 = lean_unsigned_to_nat(0u); +x_95 = l_Lean_Expr_getAppNumArgsAux___main(x_90, x_94); +x_152 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___closed__4; +x_153 = lean_name_eq(x_93, x_152); +if (x_153 == 0) { -lean_object* x_178; -x_178 = lean_box(0); -x_144 = x_178; -goto block_175; +lean_object* x_154; uint8_t x_155; +x_154 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___closed__6; +x_155 = lean_name_eq(x_93, x_154); +if (x_155 == 0) +{ +uint8_t x_156; +x_156 = 0; +x_96 = x_156; +goto block_151; } else { -uint8_t x_179; -x_179 = lean_nat_dec_eq(x_111, x_110); -if (x_179 == 0) -{ -lean_object* x_180; -x_180 = lean_box(0); -x_144 = x_180; -goto block_175; +lean_object* x_157; uint8_t x_158; +x_157 = lean_unsigned_to_nat(3u); +x_158 = lean_nat_dec_eq(x_95, x_157); +x_96 = x_158; +goto block_151; +} } else { -lean_object* x_181; lean_object* x_182; -lean_dec(x_111); -lean_dec(x_109); -lean_dec(x_98); +uint8_t x_159; +x_159 = lean_nat_dec_eq(x_95, x_94); +if (x_159 == 0) +{ +lean_object* x_160; uint8_t x_161; +x_160 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___closed__6; +x_161 = lean_name_eq(x_93, x_160); +if (x_161 == 0) +{ +uint8_t x_162; +x_162 = 0; +x_96 = x_162; +goto block_151; +} +else +{ +lean_object* x_163; uint8_t x_164; +x_163 = lean_unsigned_to_nat(3u); +x_164 = lean_nat_dec_eq(x_95, x_163); +x_96 = x_164; +goto block_151; +} +} +else +{ +lean_object* x_165; lean_object* x_166; +lean_dec(x_95); +lean_dec(x_93); +lean_dec(x_90); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_181 = lean_box(0); -x_182 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_182, 0, x_181); -lean_ctor_set(x_182, 1, x_99); -return x_182; -} -} -block_143: -{ -lean_object* x_113; uint8_t x_114; -lean_dec(x_112); -x_113 = l___private_Lean_Meta_ReduceEval_1__evalName___main___closed__3; -x_114 = lean_name_eq(x_109, x_113); -lean_dec(x_109); -if (x_114 == 0) -{ -lean_object* x_115; -lean_dec(x_111); -x_115 = lean_box(0); -x_100 = x_115; -goto block_107; -} -else -{ -lean_object* x_116; uint8_t x_117; -x_116 = lean_unsigned_to_nat(3u); -x_117 = lean_nat_dec_eq(x_111, x_116); -if (x_117 == 0) -{ -lean_object* x_118; -lean_dec(x_111); -x_118 = lean_box(0); -x_100 = x_118; -goto block_107; -} -else -{ -lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; -x_119 = lean_nat_sub(x_111, x_110); -x_120 = lean_unsigned_to_nat(1u); -x_121 = lean_nat_sub(x_119, x_120); -lean_dec(x_119); -x_122 = l_Lean_Expr_getRevArg_x21___main(x_98, x_121); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -x_123 = l___private_Lean_Meta_ReduceEval_1__evalName___main(x_122, x_2, x_3, x_4, x_5, x_99); -if (lean_obj_tag(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; -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_nat_sub(x_111, x_120); -lean_dec(x_111); -x_127 = lean_nat_sub(x_126, x_120); -lean_dec(x_126); -x_128 = l_Lean_Expr_getRevArg_x21___main(x_98, x_127); -lean_dec(x_98); -x_129 = l_Lean_Meta_reduceEval___at___private_Lean_Meta_ReduceEval_1__evalName___main___spec__1(x_128, x_2, x_3, x_4, x_5, x_125); -if (lean_obj_tag(x_129) == 0) -{ -lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; -x_130 = lean_ctor_get(x_129, 0); -lean_inc(x_130); -x_131 = lean_ctor_get(x_129, 1); -lean_inc(x_131); -if (lean_is_exclusive(x_129)) { - lean_ctor_release(x_129, 0); - lean_ctor_release(x_129, 1); - x_132 = x_129; -} else { - lean_dec_ref(x_129); - x_132 = lean_box(0); -} -x_133 = lean_name_mk_numeral(x_124, x_130); -if (lean_is_scalar(x_132)) { - x_134 = lean_alloc_ctor(0, 2, 0); -} else { - x_134 = x_132; -} -lean_ctor_set(x_134, 0, x_133); -lean_ctor_set(x_134, 1, x_131); -return x_134; -} -else -{ -lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; -lean_dec(x_124); -x_135 = lean_ctor_get(x_129, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_129, 1); -lean_inc(x_136); -if (lean_is_exclusive(x_129)) { - lean_ctor_release(x_129, 0); - lean_ctor_release(x_129, 1); - x_137 = x_129; -} else { - lean_dec_ref(x_129); - x_137 = lean_box(0); -} -if (lean_is_scalar(x_137)) { - x_138 = lean_alloc_ctor(1, 2, 0); -} else { - x_138 = x_137; -} -lean_ctor_set(x_138, 0, x_135); -lean_ctor_set(x_138, 1, x_136); -return x_138; -} -} -else -{ -lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; -lean_dec(x_111); -lean_dec(x_98); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_139 = lean_ctor_get(x_123, 0); -lean_inc(x_139); -x_140 = lean_ctor_get(x_123, 1); -lean_inc(x_140); -if (lean_is_exclusive(x_123)) { - lean_ctor_release(x_123, 0); - lean_ctor_release(x_123, 1); - x_141 = x_123; -} else { - lean_dec_ref(x_123); - x_141 = lean_box(0); -} -if (lean_is_scalar(x_141)) { - x_142 = lean_alloc_ctor(1, 2, 0); -} else { - x_142 = x_141; -} -lean_ctor_set(x_142, 0, x_139); -lean_ctor_set(x_142, 1, x_140); -return x_142; -} -} -} -} -block_175: -{ -lean_object* x_145; uint8_t x_146; -lean_dec(x_144); -x_145 = l___private_Lean_Meta_ReduceEval_1__evalName___main___closed__5; -x_146 = lean_name_eq(x_109, x_145); -if (x_146 == 0) -{ -lean_object* x_147; -x_147 = lean_box(0); -x_112 = x_147; -goto block_143; -} -else -{ -lean_object* x_148; uint8_t x_149; -x_148 = lean_unsigned_to_nat(3u); -x_149 = lean_nat_dec_eq(x_111, x_148); -if (x_149 == 0) -{ -lean_object* x_150; -x_150 = lean_box(0); -x_112 = x_150; -goto block_143; -} -else -{ -lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; -lean_dec(x_109); -x_151 = lean_nat_sub(x_111, x_110); -x_152 = lean_unsigned_to_nat(1u); -x_153 = lean_nat_sub(x_151, x_152); -lean_dec(x_151); -x_154 = l_Lean_Expr_getRevArg_x21___main(x_98, x_153); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -x_155 = l___private_Lean_Meta_ReduceEval_1__evalName___main(x_154, x_2, x_3, x_4, x_5, x_99); -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; -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_nat_sub(x_111, x_152); -lean_dec(x_111); -x_159 = lean_nat_sub(x_158, x_152); -lean_dec(x_158); -x_160 = l_Lean_Expr_getRevArg_x21___main(x_98, x_159); -lean_dec(x_98); -x_161 = l_Lean_Meta_reduceEval___at___private_Lean_Meta_ReduceEval_1__evalName___main___spec__2(x_160, x_2, x_3, x_4, x_5, x_157); -if (lean_obj_tag(x_161) == 0) -{ -lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; -x_162 = lean_ctor_get(x_161, 0); -lean_inc(x_162); -x_163 = lean_ctor_get(x_161, 1); -lean_inc(x_163); -if (lean_is_exclusive(x_161)) { - lean_ctor_release(x_161, 0); - lean_ctor_release(x_161, 1); - x_164 = x_161; -} else { - lean_dec_ref(x_161); - x_164 = lean_box(0); -} -x_165 = lean_name_mk_string(x_156, x_162); -if (lean_is_scalar(x_164)) { - x_166 = lean_alloc_ctor(0, 2, 0); -} else { - x_166 = x_164; -} +x_165 = lean_box(0); +x_166 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_166, 0, x_165); -lean_ctor_set(x_166, 1, x_163); +lean_ctor_set(x_166, 1, x_91); return x_166; } -else +} +block_151: { -lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; -lean_dec(x_156); -x_167 = lean_ctor_get(x_161, 0); -lean_inc(x_167); -x_168 = lean_ctor_get(x_161, 1); -lean_inc(x_168); -if (lean_is_exclusive(x_161)) { - lean_ctor_release(x_161, 0); - lean_ctor_release(x_161, 1); - x_169 = x_161; -} else { - lean_dec_ref(x_161); - x_169 = lean_box(0); -} -if (lean_is_scalar(x_169)) { - x_170 = lean_alloc_ctor(1, 2, 0); -} else { - x_170 = x_169; -} -lean_ctor_set(x_170, 0, x_167); -lean_ctor_set(x_170, 1, x_168); -return x_170; -} -} -else +if (x_96 == 0) { -lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; -lean_dec(x_111); -lean_dec(x_98); +lean_object* x_97; uint8_t x_98; +x_97 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___closed__3; +x_98 = lean_name_eq(x_93, x_97); +lean_dec(x_93); +if (x_98 == 0) +{ +lean_object* x_99; +lean_dec(x_95); +x_99 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg(x_90, x_2, x_3, x_4, x_5, x_91); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_171 = lean_ctor_get(x_155, 0); -lean_inc(x_171); -x_172 = lean_ctor_get(x_155, 1); -lean_inc(x_172); -if (lean_is_exclusive(x_155)) { - lean_ctor_release(x_155, 0); - lean_ctor_release(x_155, 1); - x_173 = x_155; -} else { - lean_dec_ref(x_155); - x_173 = lean_box(0); -} -if (lean_is_scalar(x_173)) { - x_174 = lean_alloc_ctor(1, 2, 0); -} else { - x_174 = x_173; -} -lean_ctor_set(x_174, 0, x_171); -lean_ctor_set(x_174, 1, x_172); -return x_174; -} -} -} -} +return x_99; } else { -lean_object* x_183; +lean_object* x_100; uint8_t x_101; +x_100 = lean_unsigned_to_nat(3u); +x_101 = lean_nat_dec_eq(x_95, x_100); +if (x_101 == 0) +{ +lean_object* x_102; +lean_dec(x_95); +x_102 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg(x_90, x_2, x_3, x_4, x_5, x_91); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_102; +} +else +{ +lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; +x_103 = lean_nat_sub(x_95, x_94); +x_104 = lean_unsigned_to_nat(1u); +x_105 = lean_nat_sub(x_103, x_104); +lean_dec(x_103); +x_106 = l_Lean_Expr_getRevArg_x21___main(x_90, x_105); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_107 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName(x_106, x_2, x_3, x_4, x_5, x_91); +if (lean_obj_tag(x_107) == 0) +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; +x_108 = lean_ctor_get(x_107, 0); +lean_inc(x_108); +x_109 = lean_ctor_get(x_107, 1); +lean_inc(x_109); +lean_dec(x_107); +x_110 = lean_nat_sub(x_95, x_104); +lean_dec(x_95); +x_111 = lean_nat_sub(x_110, x_104); +lean_dec(x_110); +x_112 = l_Lean_Expr_getRevArg_x21___main(x_90, x_111); +lean_dec(x_90); +x_113 = l_Lean_Meta_reduceEval___at___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___spec__1(x_112, x_2, x_3, x_4, x_5, x_109); +if (lean_obj_tag(x_113) == 0) +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; +x_114 = lean_ctor_get(x_113, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_113, 1); +lean_inc(x_115); +if (lean_is_exclusive(x_113)) { + lean_ctor_release(x_113, 0); + lean_ctor_release(x_113, 1); + x_116 = x_113; +} else { + lean_dec_ref(x_113); + x_116 = lean_box(0); +} +x_117 = lean_name_mk_numeral(x_108, x_114); +if (lean_is_scalar(x_116)) { + x_118 = lean_alloc_ctor(0, 2, 0); +} else { + x_118 = x_116; +} +lean_ctor_set(x_118, 0, x_117); +lean_ctor_set(x_118, 1, x_115); +return x_118; +} +else +{ +lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_dec(x_108); -x_183 = lean_box(0); -x_100 = x_183; -goto block_107; +x_119 = lean_ctor_get(x_113, 0); +lean_inc(x_119); +x_120 = lean_ctor_get(x_113, 1); +lean_inc(x_120); +if (lean_is_exclusive(x_113)) { + lean_ctor_release(x_113, 0); + lean_ctor_release(x_113, 1); + x_121 = x_113; +} else { + lean_dec_ref(x_113); + x_121 = lean_box(0); } -block_107: +if (lean_is_scalar(x_121)) { + x_122 = lean_alloc_ctor(1, 2, 0); +} else { + x_122 = x_121; +} +lean_ctor_set(x_122, 0, x_119); +lean_ctor_set(x_122, 1, x_120); +return x_122; +} +} +else { -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_dec(x_100); -x_101 = lean_expr_dbg_to_string(x_98); -lean_dec(x_98); -x_102 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_102, 0, x_101); -x_103 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_103, 0, x_102); -x_104 = l_Lean_Meta_Nat_hasReduceEval___closed__3; -x_105 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_105, 0, x_104); -lean_ctor_set(x_105, 1, x_103); -x_106 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_105, x_2, x_3, x_4, x_5, x_99); +lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; +lean_dec(x_95); +lean_dec(x_90); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_106; +x_123 = lean_ctor_get(x_107, 0); +lean_inc(x_123); +x_124 = lean_ctor_get(x_107, 1); +lean_inc(x_124); +if (lean_is_exclusive(x_107)) { + lean_ctor_release(x_107, 0); + lean_ctor_release(x_107, 1); + x_125 = x_107; +} else { + lean_dec_ref(x_107); + x_125 = lean_box(0); +} +if (lean_is_scalar(x_125)) { + x_126 = lean_alloc_ctor(1, 2, 0); +} else { + x_126 = x_125; +} +lean_ctor_set(x_126, 0, x_123); +lean_ctor_set(x_126, 1, x_124); +return x_126; +} } } } else { -uint8_t x_184; +lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; +lean_dec(x_93); +x_127 = lean_nat_sub(x_95, x_94); +x_128 = lean_unsigned_to_nat(1u); +x_129 = lean_nat_sub(x_127, x_128); +lean_dec(x_127); +x_130 = l_Lean_Expr_getRevArg_x21___main(x_90, x_129); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_131 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName(x_130, x_2, x_3, x_4, x_5, x_91); +if (lean_obj_tag(x_131) == 0) +{ +lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; +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_134 = lean_nat_sub(x_95, x_128); +lean_dec(x_95); +x_135 = lean_nat_sub(x_134, x_128); +lean_dec(x_134); +x_136 = l_Lean_Expr_getRevArg_x21___main(x_90, x_135); +lean_dec(x_90); +x_137 = l_Lean_Meta_reduceEval___at___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___spec__2(x_136, x_2, x_3, x_4, x_5, x_133); +if (lean_obj_tag(x_137) == 0) +{ +lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; +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 { + lean_dec_ref(x_137); + x_140 = lean_box(0); +} +x_141 = lean_name_mk_string(x_132, x_138); +if (lean_is_scalar(x_140)) { + x_142 = lean_alloc_ctor(0, 2, 0); +} else { + x_142 = x_140; +} +lean_ctor_set(x_142, 0, x_141); +lean_ctor_set(x_142, 1, x_139); +return x_142; +} +else +{ +lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; +lean_dec(x_132); +x_143 = lean_ctor_get(x_137, 0); +lean_inc(x_143); +x_144 = lean_ctor_get(x_137, 1); +lean_inc(x_144); +if (lean_is_exclusive(x_137)) { + lean_ctor_release(x_137, 0); + lean_ctor_release(x_137, 1); + x_145 = x_137; +} else { + lean_dec_ref(x_137); + x_145 = lean_box(0); +} +if (lean_is_scalar(x_145)) { + x_146 = lean_alloc_ctor(1, 2, 0); +} else { + x_146 = x_145; +} +lean_ctor_set(x_146, 0, x_143); +lean_ctor_set(x_146, 1, x_144); +return x_146; +} +} +else +{ +lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; +lean_dec(x_95); +lean_dec(x_90); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_184 = !lean_is_exclusive(x_7); -if (x_184 == 0) +x_147 = lean_ctor_get(x_131, 0); +lean_inc(x_147); +x_148 = lean_ctor_get(x_131, 1); +lean_inc(x_148); +if (lean_is_exclusive(x_131)) { + lean_ctor_release(x_131, 0); + lean_ctor_release(x_131, 1); + x_149 = x_131; +} else { + lean_dec_ref(x_131); + x_149 = lean_box(0); +} +if (lean_is_scalar(x_149)) { + x_150 = lean_alloc_ctor(1, 2, 0); +} else { + x_150 = 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_167; +lean_dec(x_92); +x_167 = l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg(x_90, x_2, x_3, x_4, x_5, x_91); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_167; +} +} +} +else +{ +uint8_t x_168; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_168 = !lean_is_exclusive(x_7); +if (x_168 == 0) { return x_7; } else { -lean_object* x_185; lean_object* x_186; lean_object* x_187; -x_185 = lean_ctor_get(x_7, 0); -x_186 = lean_ctor_get(x_7, 1); -lean_inc(x_186); -lean_inc(x_185); +lean_object* x_169; lean_object* x_170; lean_object* x_171; +x_169 = lean_ctor_get(x_7, 0); +x_170 = lean_ctor_get(x_7, 1); +lean_inc(x_170); +lean_inc(x_169); lean_dec(x_7); -x_187 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_187, 0, x_185); -lean_ctor_set(x_187, 1, x_186); -return x_187; +x_171 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_171, 0, x_169); +lean_ctor_set(x_171, 1, x_170); +return x_171; } } } } -lean_object* l___private_Lean_Meta_ReduceEval_1__evalName(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___private_Lean_Meta_ReduceEval_1__evalName___main(x_1, x_2, x_3, x_4, x_5, x_6); -return x_7; -} -} -static lean_object* _init_l_Lean_Meta_Name_hasReduceEval___closed__1() { +static lean_object* _init_l_Lean_Meta_Lean_Meta_ReduceEval___instance__4___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_ReduceEval_1__evalName), 6, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName), 6, 0); return x_1; } } -static lean_object* _init_l_Lean_Meta_Name_hasReduceEval() { +static lean_object* _init_l_Lean_Meta_Lean_Meta_ReduceEval___instance__4() { _start: { lean_object* x_1; -x_1 = l_Lean_Meta_Name_hasReduceEval___closed__1; +x_1 = l_Lean_Meta_Lean_Meta_ReduceEval___instance__4___closed__1; return x_1; } } @@ -4166,28 +3776,28 @@ lean_dec_ref(res); res = initialize_Lean_Meta_Offset(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Lean_Meta_Nat_hasReduceEval___closed__1 = _init_l_Lean_Meta_Nat_hasReduceEval___closed__1(); -lean_mark_persistent(l_Lean_Meta_Nat_hasReduceEval___closed__1); -l_Lean_Meta_Nat_hasReduceEval___closed__2 = _init_l_Lean_Meta_Nat_hasReduceEval___closed__2(); -lean_mark_persistent(l_Lean_Meta_Nat_hasReduceEval___closed__2); -l_Lean_Meta_Nat_hasReduceEval___closed__3 = _init_l_Lean_Meta_Nat_hasReduceEval___closed__3(); -lean_mark_persistent(l_Lean_Meta_Nat_hasReduceEval___closed__3); -l___private_Lean_Meta_ReduceEval_1__evalName___main___closed__1 = _init_l___private_Lean_Meta_ReduceEval_1__evalName___main___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_ReduceEval_1__evalName___main___closed__1); -l___private_Lean_Meta_ReduceEval_1__evalName___main___closed__2 = _init_l___private_Lean_Meta_ReduceEval_1__evalName___main___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_ReduceEval_1__evalName___main___closed__2); -l___private_Lean_Meta_ReduceEval_1__evalName___main___closed__3 = _init_l___private_Lean_Meta_ReduceEval_1__evalName___main___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_ReduceEval_1__evalName___main___closed__3); -l___private_Lean_Meta_ReduceEval_1__evalName___main___closed__4 = _init_l___private_Lean_Meta_ReduceEval_1__evalName___main___closed__4(); -lean_mark_persistent(l___private_Lean_Meta_ReduceEval_1__evalName___main___closed__4); -l___private_Lean_Meta_ReduceEval_1__evalName___main___closed__5 = _init_l___private_Lean_Meta_ReduceEval_1__evalName___main___closed__5(); -lean_mark_persistent(l___private_Lean_Meta_ReduceEval_1__evalName___main___closed__5); -l___private_Lean_Meta_ReduceEval_1__evalName___main___closed__6 = _init_l___private_Lean_Meta_ReduceEval_1__evalName___main___closed__6(); -lean_mark_persistent(l___private_Lean_Meta_ReduceEval_1__evalName___main___closed__6); -l_Lean_Meta_Name_hasReduceEval___closed__1 = _init_l_Lean_Meta_Name_hasReduceEval___closed__1(); -lean_mark_persistent(l_Lean_Meta_Name_hasReduceEval___closed__1); -l_Lean_Meta_Name_hasReduceEval = _init_l_Lean_Meta_Name_hasReduceEval(); -lean_mark_persistent(l_Lean_Meta_Name_hasReduceEval); +l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg___closed__1 = _init_l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg___closed__1); +l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg___closed__2 = _init_l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg___closed__2); +l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg___closed__3 = _init_l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_ReduceEval_0__Lean_Meta_throwFailedToEval___rarg___closed__3); +l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___closed__1 = _init_l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___closed__1); +l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___closed__2 = _init_l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___closed__2); +l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___closed__3 = _init_l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___closed__3); +l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___closed__4 = _init_l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___closed__4(); +lean_mark_persistent(l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___closed__4); +l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___closed__5 = _init_l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___closed__5(); +lean_mark_persistent(l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___closed__5); +l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___closed__6 = _init_l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___closed__6(); +lean_mark_persistent(l___private_Lean_Meta_ReduceEval_0__Lean_Meta_evalName___closed__6); +l_Lean_Meta_Lean_Meta_ReduceEval___instance__4___closed__1 = _init_l_Lean_Meta_Lean_Meta_ReduceEval___instance__4___closed__1(); +lean_mark_persistent(l_Lean_Meta_Lean_Meta_ReduceEval___instance__4___closed__1); +l_Lean_Meta_Lean_Meta_ReduceEval___instance__4 = _init_l_Lean_Meta_Lean_Meta_ReduceEval___instance__4(); +lean_mark_persistent(l_Lean_Meta_Lean_Meta_ReduceEval___instance__4); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Meta/Tactic/Cases.c b/stage0/stdlib/Lean/Meta/Tactic/Cases.c index 1e95edba9b..ab7d4f7531 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Cases.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Cases.c @@ -30,7 +30,6 @@ extern lean_object* l_Lean_Expr_eq_x3f___closed__2; lean_object* l_Lean_Expr_mvarId_x21(lean_object*); lean_object* l_Lean_Meta_generalizeIndices_match__3___rarg(lean_object*, lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___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* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__13(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); @@ -41,28 +40,25 @@ lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeE lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loop___rarg___closed__2; lean_object* l_Lean_LocalDecl_userName(lean_object*); lean_object* l___private_Lean_Expr_3__getAppArgsAux___main(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_isExprDefEq___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__3; lean_object* l_Lean_Meta_Cases_cases___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__22(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___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* l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__37___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_anyAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__12(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_substCore___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___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_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6___closed__2; +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___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*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_Meta_generalizeIndices_match__3(lean_object*); lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_inductionCasesOn___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_object* l___private_Lean_Util_Trace_4__addNode___at_Lean_Meta_isLevelDefEq___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_generalizeIndices___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__30___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_assignExprMVar___at_Lean_Meta_admit___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__19___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_generalizeIndices___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_generalizeIndices_match__2___rarg(lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__25___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___closed__3; lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__17(lean_object*, lean_object*, lean_object*); lean_object* l_Array_extract___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__7; @@ -70,8 +66,8 @@ uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cas lean_object* lean_metavar_ctx_get_expr_assignment(lean_object*, lean_object*); lean_object* l_Lean_Meta_Cases_cases___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; +lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_environment_find(lean_object*, lean_object*); -lean_object* l_Lean_Meta_isExprDefEqAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__39___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addTrace___at_Lean_Meta_substCore___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Cases_Context_majorTypeIndices___default___boxed(lean_object*, lean_object*); @@ -83,10 +79,8 @@ lean_object* lean_st_ref_get(lean_object*, lean_object*); uint8_t l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__37(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isApp(lean_object*); lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___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* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__20___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__11(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___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*); extern lean_object* l___private_Lean_Meta_AppBuilder_5__mkEqReflImp___closed__2; lean_object* l_Lean_Expr_appFn_x21(lean_object*); lean_object* l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -94,6 +88,7 @@ lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_m lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__5; lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__36___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_isExprDefEq___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos___spec__1(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_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__18(lean_object*, lean_object*, lean_object*); @@ -112,8 +107,8 @@ lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_m lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_elimAuxIndices_match__1(lean_object*); lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__3; lean_object* l_Lean_Expr_appArg_x21(lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___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* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_toCasesSubgoals___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__6___closed__2; lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__22___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -124,19 +119,18 @@ extern lean_object* l___private_Lean_Meta_AppBuilder_6__mkHEqReflImp___closed__1 lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__8___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_mkCasesContext_x3f_match__1(lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6___closed__3; lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__24___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Cases_cases___lambda__1___closed__5; lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_elimAuxIndices___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__32___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___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*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__15___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__20___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppNumArgsAux___main(lean_object*, lean_object*); extern lean_object* l_Lean_Meta_casesOnSuffix; -lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_Lean_AddMessageContext___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___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*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__6(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_whnfD___at_Lean_Meta_getInductiveUniverseAndParams___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -147,18 +141,15 @@ uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lea lean_object* lean_array_fget(lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__29(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_elimAuxIndices___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Meta_isExprDefEq___rarg___closed__2; lean_object* l_Lean_Meta_substCore(lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqs___spec__1(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_eq(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_elimAuxIndices___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___closed__2; lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__18(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__21___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_substCore___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_st_ref_take(lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__16(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__6___rarg(lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__10(lean_object*, lean_object*, lean_object*); @@ -168,19 +159,17 @@ uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lea lean_object* l___private_Lean_MetavarContext_6__visit_x3f(lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__36(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__6; -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___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*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loop___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* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___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_Meta_Tactic_Cases_0__Lean_Meta_Cases_toCasesSubgoals(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Cases_cases_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loop(lean_object*); lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_substCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_FVarSubst_apply(lean_object*, lean_object*); extern lean_object* l_Lean_Expr_heq_x3f___closed__2; -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__35___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__3(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_injectionCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_fvarId_x21(lean_object*); @@ -191,14 +180,13 @@ lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Le lean_object* l_List_lengthAux___main___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_clear(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_generalizeIndices(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__6___closed__3; lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__24(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getInductiveUniverseAndParams(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_cases(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6___closed__1; uint8_t l_Nat_anyAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__23___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__8(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__2; lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__5(lean_object*, lean_object*, lean_object*); @@ -210,18 +198,21 @@ lean_object* l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0_ lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_generalizeIndices_match__1(lean_object*); lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_inductionCasesOn_match__1(lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___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_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__3(lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_mkCasesContext_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__13(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_mkCasesContext_x3f___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* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__46___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__1; extern lean_object* l___private_Lean_Meta_Basic_5__mkFreshExprMVarWithIdCore___rarg___closed__1; lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__9(lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__17___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__24(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_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_object*, lean_object*, lean_object*); uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__2; lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__25(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loop___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*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__33(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -237,9 +228,7 @@ lean_object* l_Lean_Meta_introNCore(lean_object*, lean_object*, lean_object*, ui lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqs_match__1___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_AppBuilder_24__mkNoConfusionImp___closed__5; lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__1___rarg(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Basic_20__forallTelescopeReducingImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_redLength___main___rarg(lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___closed__1; lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__17___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__8; uint8_t l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__42(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -249,7 +238,7 @@ lean_object* l_Lean_mkFVar(lean_object*); uint8_t l_Lean_Expr_isAppOfArity___main(lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__40(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_generalizeIndices_match__2(lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___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* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___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_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__4; lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__23___boxed(lean_object*, lean_object*, lean_object*); @@ -258,9 +247,7 @@ lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Cases___hyg_2406_(lean_o lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_fvarId(lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__1___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___spec__1(lean_object*); extern lean_object* l_Std_HashSet_Inhabited___closed__1; -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___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*); uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__14(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_type(lean_object*); lean_object* l_Lean_Meta_Cases_cases___lambda__1___closed__2; @@ -269,12 +256,13 @@ lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Meta_assertAfter___spec__13(lea extern lean_object* l_Lean_Meta_casesOnSuffix___closed__1; lean_object* l_Lean_Meta_throwTacticEx___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_FVarSubst_get(lean_object*, lean_object*); -lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Cases_cases___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Cases_Context_nminors___default___boxed(lean_object*); +lean_object* l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_inductionCasesOn___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___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* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__5(lean_object*); -lean_object* l___private_Lean_Meta_LevelDefEq_15__runDefEqM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___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* l_Lean_Meta_Cases_Context_nminors___default(lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__6___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Cases_cases(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -297,9 +285,9 @@ lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tacti uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__28(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkApp(lean_object*, lean_object*); uint8_t l_Lean_Expr_hasMVar(lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_FVarSubst_insert(lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__40___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_isExprDefEq___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_mkEqAndProof___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_whnf___at_Lean_Meta_introNCore___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqs_match__1(lean_object*); @@ -307,15 +295,12 @@ lean_object* l_Lean_Meta_getLocalInstances___at_Lean_Meta_assertAfter___spec__2( lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Cases_cases_match__1(lean_object*); -lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_generalizeIndices___spec__1(lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__22___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkApp4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_AssocList_erase___at_Lean_Meta_FVarSubst_erase___spec__1(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loop_match__1(lean_object*); lean_object* l___private_Lean_Meta_AppBuilder_14__mkEqOfHEqImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__7(lean_object*, lean_object*, lean_object*); -lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isFVar(lean_object*); lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__18___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_generalizeIndices_match__1___rarg(lean_object*, lean_object*); @@ -337,14 +322,14 @@ lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0 lean_object* l_Lean_Meta_inferType___at_Lean_Meta_injectionCore___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_Inhabited; -lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_isLevelDefEq___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__42___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__15(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__30(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loop___rarg___closed__1; uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__6___closed__1; lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__11___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__5___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__1(lean_object*); @@ -364,7 +349,7 @@ lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndic lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_throwTacticEx___rarg___closed__6; -lean_object* l___private_Lean_Util_Trace_5__getResetTraces___at_Lean_Meta_isLevelDefEq___spec__4___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__14___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__20(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -403,52 +388,6 @@ uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_inductionCasesOn(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_cases___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___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) { -_start: -{ -lean_object* x_7; lean_object* x_8; uint8_t x_9; -x_7 = lean_ctor_get(x_4, 3); -x_8 = l_Lean_addMessageContextFull___at_Lean_Meta_Lean_AddMessageContext___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); -x_9 = !lean_is_exclusive(x_8); -if (x_9 == 0) -{ -lean_object* x_10; lean_object* x_11; -x_10 = lean_ctor_get(x_8, 0); -lean_inc(x_7); -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_7); -lean_ctor_set(x_11, 1, x_10); -lean_ctor_set_tag(x_8, 1); -lean_ctor_set(x_8, 0, x_11); -return x_8; -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_12 = lean_ctor_get(x_8, 0); -x_13 = lean_ctor_get(x_8, 1); -lean_inc(x_13); -lean_inc(x_12); -lean_dec(x_8); -lean_inc(x_7); -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_7); -lean_ctor_set(x_14, 1, x_12); -x_15 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_13); -return x_15; -} -} -} -lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___spec__1(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_throwError___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___spec__1___rarg___boxed), 6, 0); -return x_2; -} -} static lean_object* _init_l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___rarg___closed__1() { _start: { @@ -479,7 +418,7 @@ x_10 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_11 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_11, 0, x_9); lean_ctor_set(x_11, 1, x_10); -x_12 = l_Lean_throwError___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___spec__1___rarg(x_11, x_2, x_3, x_4, x_5, x_6); +x_12 = l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__3___rarg(x_11, x_2, x_3, x_4, x_5, x_6); return x_12; } } @@ -491,18 +430,6 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta return x_2; } } -lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___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) { -_start: -{ -lean_object* x_7; -x_7 = l_Lean_throwError___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___spec__1___rarg(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); -return x_7; -} -} lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { @@ -956,952 +883,6 @@ return x_56; } } } -lean_object* l_Lean_Meta_isExprDefEq___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_mkEqAndProof___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) { -_start: -{ -lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_236; lean_object* x_237; lean_object* x_238; uint8_t x_239; -lean_inc(x_2); -lean_inc(x_1); -x_8 = lean_alloc_closure((void*)(l_Lean_Meta_isExprDefEqAux), 8, 2); -lean_closure_set(x_8, 0, x_1); -lean_closure_set(x_8, 1, x_2); -x_236 = lean_st_ref_get(x_6, x_7); -x_237 = lean_ctor_get(x_236, 0); -lean_inc(x_237); -x_238 = lean_ctor_get(x_237, 3); -lean_inc(x_238); -lean_dec(x_237); -x_239 = lean_ctor_get_uint8(x_238, sizeof(void*)*1); -lean_dec(x_238); -if (x_239 == 0) -{ -lean_object* x_240; uint8_t x_241; -x_240 = lean_ctor_get(x_236, 1); -lean_inc(x_240); -lean_dec(x_236); -x_241 = 0; -x_9 = x_241; -x_10 = x_240; -goto block_235; -} -else -{ -lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; uint8_t x_247; -x_242 = lean_ctor_get(x_236, 1); -lean_inc(x_242); -lean_dec(x_236); -x_243 = l_Lean_Meta_isExprDefEq___rarg___closed__2; -x_244 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_isLevelDefEq___spec__1(x_243, x_3, x_4, x_5, x_6, x_242); -x_245 = lean_ctor_get(x_244, 0); -lean_inc(x_245); -x_246 = lean_ctor_get(x_244, 1); -lean_inc(x_246); -lean_dec(x_244); -x_247 = lean_unbox(x_245); -lean_dec(x_245); -x_9 = x_247; -x_10 = x_246; -goto block_235; -} -block_235: -{ -if (x_9 == 0) -{ -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; lean_object* x_18; lean_object* x_19; uint8_t x_20; -x_11 = lean_st_ref_get(x_6, x_10); -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_12, 3); -lean_inc(x_13); -lean_dec(x_12); -x_14 = lean_ctor_get(x_11, 1); -lean_inc(x_14); -lean_dec(x_11); -x_15 = lean_ctor_get_uint8(x_13, sizeof(void*)*1); -lean_dec(x_13); -x_16 = lean_st_ref_take(x_6, x_14); -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -x_18 = lean_ctor_get(x_17, 3); -lean_inc(x_18); -x_19 = lean_ctor_get(x_16, 1); -lean_inc(x_19); -lean_dec(x_16); -x_20 = !lean_is_exclusive(x_17); -if (x_20 == 0) -{ -lean_object* x_21; uint8_t x_22; -x_21 = lean_ctor_get(x_17, 3); -lean_dec(x_21); -x_22 = !lean_is_exclusive(x_18); -if (x_22 == 0) -{ -uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_60; -x_23 = 0; -lean_ctor_set_uint8(x_18, sizeof(void*)*1, x_23); -x_24 = lean_st_ref_set(x_6, x_17, x_19); -x_25 = lean_ctor_get(x_24, 1); -lean_inc(x_25); -lean_dec(x_24); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_60 = l___private_Lean_Meta_LevelDefEq_15__runDefEqM(x_8, x_3, x_4, x_5, x_6, x_25); -if (lean_obj_tag(x_60) == 0) -{ -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; uint8_t x_73; -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_closure((void*)(l_Lean_Meta_isExprDefEq___rarg___lambda__1___boxed), 4, 3); -lean_closure_set(x_63, 0, x_1); -lean_closure_set(x_63, 1, x_2); -lean_closure_set(x_63, 2, x_61); -x_64 = l_Lean_Meta_isExprDefEq___rarg___closed__2; -x_65 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_64, x_63, x_3, x_4, x_5, x_6, x_62); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_66 = lean_ctor_get(x_65, 1); -lean_inc(x_66); -lean_dec(x_65); -x_67 = lean_st_ref_get(x_6, x_66); -x_68 = lean_ctor_get(x_67, 1); -lean_inc(x_68); -lean_dec(x_67); -x_69 = lean_st_ref_take(x_6, x_68); -x_70 = lean_ctor_get(x_69, 0); -lean_inc(x_70); -x_71 = lean_ctor_get(x_70, 3); -lean_inc(x_71); -x_72 = lean_ctor_get(x_69, 1); -lean_inc(x_72); -lean_dec(x_69); -x_73 = !lean_is_exclusive(x_70); -if (x_73 == 0) -{ -lean_object* x_74; uint8_t x_75; -x_74 = lean_ctor_get(x_70, 3); -lean_dec(x_74); -x_75 = !lean_is_exclusive(x_71); -if (x_75 == 0) -{ -lean_object* x_76; uint8_t x_77; -lean_ctor_set_uint8(x_71, sizeof(void*)*1, x_15); -x_76 = lean_st_ref_set(x_6, x_70, x_72); -lean_dec(x_6); -x_77 = !lean_is_exclusive(x_76); -if (x_77 == 0) -{ -lean_object* x_78; -x_78 = lean_ctor_get(x_76, 0); -lean_dec(x_78); -lean_ctor_set(x_76, 0, x_61); -return x_76; -} -else -{ -lean_object* x_79; lean_object* x_80; -x_79 = lean_ctor_get(x_76, 1); -lean_inc(x_79); -lean_dec(x_76); -x_80 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_80, 0, x_61); -lean_ctor_set(x_80, 1, x_79); -return x_80; -} -} -else -{ -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_81 = lean_ctor_get(x_71, 0); -lean_inc(x_81); -lean_dec(x_71); -x_82 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_82, 0, x_81); -lean_ctor_set_uint8(x_82, sizeof(void*)*1, x_15); -lean_ctor_set(x_70, 3, x_82); -x_83 = lean_st_ref_set(x_6, x_70, x_72); -lean_dec(x_6); -x_84 = lean_ctor_get(x_83, 1); -lean_inc(x_84); -if (lean_is_exclusive(x_83)) { - lean_ctor_release(x_83, 0); - lean_ctor_release(x_83, 1); - x_85 = x_83; -} else { - lean_dec_ref(x_83); - x_85 = lean_box(0); -} -if (lean_is_scalar(x_85)) { - x_86 = lean_alloc_ctor(0, 2, 0); -} else { - x_86 = x_85; -} -lean_ctor_set(x_86, 0, x_61); -lean_ctor_set(x_86, 1, x_84); -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_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_70, 0); -x_88 = lean_ctor_get(x_70, 1); -x_89 = lean_ctor_get(x_70, 2); -lean_inc(x_89); -lean_inc(x_88); -lean_inc(x_87); -lean_dec(x_70); -x_90 = lean_ctor_get(x_71, 0); -lean_inc(x_90); -if (lean_is_exclusive(x_71)) { - lean_ctor_release(x_71, 0); - x_91 = x_71; -} else { - lean_dec_ref(x_71); - x_91 = lean_box(0); -} -if (lean_is_scalar(x_91)) { - x_92 = lean_alloc_ctor(0, 1, 1); -} else { - x_92 = x_91; -} -lean_ctor_set(x_92, 0, x_90); -lean_ctor_set_uint8(x_92, sizeof(void*)*1, x_15); -x_93 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_93, 0, x_87); -lean_ctor_set(x_93, 1, x_88); -lean_ctor_set(x_93, 2, x_89); -lean_ctor_set(x_93, 3, x_92); -x_94 = lean_st_ref_set(x_6, x_93, x_72); -lean_dec(x_6); -x_95 = lean_ctor_get(x_94, 1); -lean_inc(x_95); -if (lean_is_exclusive(x_94)) { - lean_ctor_release(x_94, 0); - lean_ctor_release(x_94, 1); - x_96 = x_94; -} else { - lean_dec_ref(x_94); - x_96 = lean_box(0); -} -if (lean_is_scalar(x_96)) { - x_97 = lean_alloc_ctor(0, 2, 0); -} else { - x_97 = x_96; -} -lean_ctor_set(x_97, 0, x_61); -lean_ctor_set(x_97, 1, x_95); -return x_97; -} -} -else -{ -lean_object* x_98; lean_object* x_99; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_98 = lean_ctor_get(x_60, 0); -lean_inc(x_98); -x_99 = lean_ctor_get(x_60, 1); -lean_inc(x_99); -lean_dec(x_60); -x_26 = x_98; -x_27 = x_99; -goto block_59; -} -block_59: -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; -x_28 = lean_st_ref_get(x_6, x_27); -x_29 = lean_ctor_get(x_28, 1); -lean_inc(x_29); -lean_dec(x_28); -x_30 = lean_st_ref_take(x_6, x_29); -x_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_31, 3); -lean_inc(x_32); -x_33 = lean_ctor_get(x_30, 1); -lean_inc(x_33); -lean_dec(x_30); -x_34 = !lean_is_exclusive(x_31); -if (x_34 == 0) -{ -lean_object* x_35; uint8_t x_36; -x_35 = lean_ctor_get(x_31, 3); -lean_dec(x_35); -x_36 = !lean_is_exclusive(x_32); -if (x_36 == 0) -{ -lean_object* x_37; uint8_t x_38; -lean_ctor_set_uint8(x_32, sizeof(void*)*1, x_15); -x_37 = lean_st_ref_set(x_6, x_31, x_33); -lean_dec(x_6); -x_38 = !lean_is_exclusive(x_37); -if (x_38 == 0) -{ -lean_object* x_39; -x_39 = lean_ctor_get(x_37, 0); -lean_dec(x_39); -lean_ctor_set_tag(x_37, 1); -lean_ctor_set(x_37, 0, x_26); -return x_37; -} -else -{ -lean_object* x_40; lean_object* x_41; -x_40 = lean_ctor_get(x_37, 1); -lean_inc(x_40); -lean_dec(x_37); -x_41 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_41, 0, x_26); -lean_ctor_set(x_41, 1, x_40); -return x_41; -} -} -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; -x_42 = lean_ctor_get(x_32, 0); -lean_inc(x_42); -lean_dec(x_32); -x_43 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set_uint8(x_43, sizeof(void*)*1, x_15); -lean_ctor_set(x_31, 3, x_43); -x_44 = lean_st_ref_set(x_6, x_31, x_33); -lean_dec(x_6); -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_44); - 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_tag(x_47, 1); -} -lean_ctor_set(x_47, 0, x_26); -lean_ctor_set(x_47, 1, x_45); -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; lean_object* x_57; lean_object* x_58; -x_48 = lean_ctor_get(x_31, 0); -x_49 = lean_ctor_get(x_31, 1); -x_50 = lean_ctor_get(x_31, 2); -lean_inc(x_50); -lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_31); -x_51 = lean_ctor_get(x_32, 0); -lean_inc(x_51); -if (lean_is_exclusive(x_32)) { - lean_ctor_release(x_32, 0); - x_52 = x_32; -} else { - lean_dec_ref(x_32); - x_52 = lean_box(0); -} -if (lean_is_scalar(x_52)) { - x_53 = lean_alloc_ctor(0, 1, 1); -} else { - x_53 = x_52; -} -lean_ctor_set(x_53, 0, x_51); -lean_ctor_set_uint8(x_53, sizeof(void*)*1, x_15); -x_54 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_54, 0, x_48); -lean_ctor_set(x_54, 1, x_49); -lean_ctor_set(x_54, 2, x_50); -lean_ctor_set(x_54, 3, x_53); -x_55 = lean_st_ref_set(x_6, x_54, x_33); -lean_dec(x_6); -x_56 = lean_ctor_get(x_55, 1); -lean_inc(x_56); -if (lean_is_exclusive(x_55)) { - lean_ctor_release(x_55, 0); - lean_ctor_release(x_55, 1); - x_57 = x_55; -} else { - lean_dec_ref(x_55); - 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_tag(x_58, 1); -} -lean_ctor_set(x_58, 0, x_26); -lean_ctor_set(x_58, 1, x_56); -return x_58; -} -} -} -else -{ -lean_object* x_100; uint8_t 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_126; -x_100 = lean_ctor_get(x_18, 0); -lean_inc(x_100); -lean_dec(x_18); -x_101 = 0; -x_102 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_102, 0, x_100); -lean_ctor_set_uint8(x_102, sizeof(void*)*1, x_101); -lean_ctor_set(x_17, 3, x_102); -x_103 = lean_st_ref_set(x_6, x_17, x_19); -x_104 = lean_ctor_get(x_103, 1); -lean_inc(x_104); -lean_dec(x_103); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_126 = l___private_Lean_Meta_LevelDefEq_15__runDefEqM(x_8, x_3, x_4, x_5, x_6, x_104); -if (lean_obj_tag(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; 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_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_127); -x_129 = lean_alloc_closure((void*)(l_Lean_Meta_isExprDefEq___rarg___lambda__1___boxed), 4, 3); -lean_closure_set(x_129, 0, x_1); -lean_closure_set(x_129, 1, x_2); -lean_closure_set(x_129, 2, x_127); -x_130 = l_Lean_Meta_isExprDefEq___rarg___closed__2; -x_131 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_130, x_129, x_3, x_4, x_5, x_6, x_128); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_132 = lean_ctor_get(x_131, 1); -lean_inc(x_132); -lean_dec(x_131); -x_133 = lean_st_ref_get(x_6, x_132); -x_134 = lean_ctor_get(x_133, 1); -lean_inc(x_134); -lean_dec(x_133); -x_135 = lean_st_ref_take(x_6, x_134); -x_136 = lean_ctor_get(x_135, 0); -lean_inc(x_136); -x_137 = lean_ctor_get(x_136, 3); -lean_inc(x_137); -x_138 = lean_ctor_get(x_135, 1); -lean_inc(x_138); -lean_dec(x_135); -x_139 = lean_ctor_get(x_136, 0); -lean_inc(x_139); -x_140 = lean_ctor_get(x_136, 1); -lean_inc(x_140); -x_141 = lean_ctor_get(x_136, 2); -lean_inc(x_141); -if (lean_is_exclusive(x_136)) { - lean_ctor_release(x_136, 0); - lean_ctor_release(x_136, 1); - lean_ctor_release(x_136, 2); - lean_ctor_release(x_136, 3); - x_142 = x_136; -} else { - lean_dec_ref(x_136); - x_142 = lean_box(0); -} -x_143 = lean_ctor_get(x_137, 0); -lean_inc(x_143); -if (lean_is_exclusive(x_137)) { - lean_ctor_release(x_137, 0); - x_144 = x_137; -} else { - lean_dec_ref(x_137); - x_144 = lean_box(0); -} -if (lean_is_scalar(x_144)) { - x_145 = lean_alloc_ctor(0, 1, 1); -} else { - x_145 = x_144; -} -lean_ctor_set(x_145, 0, x_143); -lean_ctor_set_uint8(x_145, sizeof(void*)*1, x_15); -if (lean_is_scalar(x_142)) { - x_146 = lean_alloc_ctor(0, 4, 0); -} else { - x_146 = x_142; -} -lean_ctor_set(x_146, 0, x_139); -lean_ctor_set(x_146, 1, x_140); -lean_ctor_set(x_146, 2, x_141); -lean_ctor_set(x_146, 3, x_145); -x_147 = lean_st_ref_set(x_6, x_146, x_138); -lean_dec(x_6); -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; -} else { - lean_dec_ref(x_147); - x_149 = lean_box(0); -} -if (lean_is_scalar(x_149)) { - x_150 = lean_alloc_ctor(0, 2, 0); -} else { - x_150 = x_149; -} -lean_ctor_set(x_150, 0, x_127); -lean_ctor_set(x_150, 1, x_148); -return x_150; -} -else -{ -lean_object* x_151; lean_object* x_152; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_151 = lean_ctor_get(x_126, 0); -lean_inc(x_151); -x_152 = lean_ctor_get(x_126, 1); -lean_inc(x_152); -lean_dec(x_126); -x_105 = x_151; -x_106 = x_152; -goto block_125; -} -block_125: -{ -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; -x_107 = lean_st_ref_get(x_6, x_106); -x_108 = lean_ctor_get(x_107, 1); -lean_inc(x_108); -lean_dec(x_107); -x_109 = lean_st_ref_take(x_6, x_108); -x_110 = lean_ctor_get(x_109, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_110, 3); -lean_inc(x_111); -x_112 = lean_ctor_get(x_109, 1); -lean_inc(x_112); -lean_dec(x_109); -x_113 = lean_ctor_get(x_110, 0); -lean_inc(x_113); -x_114 = lean_ctor_get(x_110, 1); -lean_inc(x_114); -x_115 = lean_ctor_get(x_110, 2); -lean_inc(x_115); -if (lean_is_exclusive(x_110)) { - lean_ctor_release(x_110, 0); - lean_ctor_release(x_110, 1); - lean_ctor_release(x_110, 2); - lean_ctor_release(x_110, 3); - x_116 = x_110; -} else { - lean_dec_ref(x_110); - x_116 = lean_box(0); -} -x_117 = lean_ctor_get(x_111, 0); -lean_inc(x_117); -if (lean_is_exclusive(x_111)) { - lean_ctor_release(x_111, 0); - x_118 = x_111; -} else { - lean_dec_ref(x_111); - x_118 = lean_box(0); -} -if (lean_is_scalar(x_118)) { - x_119 = lean_alloc_ctor(0, 1, 1); -} else { - x_119 = x_118; -} -lean_ctor_set(x_119, 0, x_117); -lean_ctor_set_uint8(x_119, sizeof(void*)*1, x_15); -if (lean_is_scalar(x_116)) { - x_120 = lean_alloc_ctor(0, 4, 0); -} else { - x_120 = x_116; -} -lean_ctor_set(x_120, 0, x_113); -lean_ctor_set(x_120, 1, x_114); -lean_ctor_set(x_120, 2, x_115); -lean_ctor_set(x_120, 3, x_119); -x_121 = lean_st_ref_set(x_6, x_120, x_112); -lean_dec(x_6); -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); -} -if (lean_is_scalar(x_123)) { - x_124 = lean_alloc_ctor(1, 2, 0); -} else { - x_124 = x_123; - lean_ctor_set_tag(x_124, 1); -} -lean_ctor_set(x_124, 0, x_105); -lean_ctor_set(x_124, 1, x_122); -return x_124; -} -} -} -else -{ -lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t 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_184; -x_153 = lean_ctor_get(x_17, 0); -x_154 = lean_ctor_get(x_17, 1); -x_155 = lean_ctor_get(x_17, 2); -lean_inc(x_155); -lean_inc(x_154); -lean_inc(x_153); -lean_dec(x_17); -x_156 = lean_ctor_get(x_18, 0); -lean_inc(x_156); -if (lean_is_exclusive(x_18)) { - lean_ctor_release(x_18, 0); - x_157 = x_18; -} else { - lean_dec_ref(x_18); - x_157 = lean_box(0); -} -x_158 = 0; -if (lean_is_scalar(x_157)) { - x_159 = lean_alloc_ctor(0, 1, 1); -} else { - x_159 = x_157; -} -lean_ctor_set(x_159, 0, x_156); -lean_ctor_set_uint8(x_159, sizeof(void*)*1, x_158); -x_160 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_160, 0, x_153); -lean_ctor_set(x_160, 1, x_154); -lean_ctor_set(x_160, 2, x_155); -lean_ctor_set(x_160, 3, x_159); -x_161 = lean_st_ref_set(x_6, x_160, x_19); -x_162 = lean_ctor_get(x_161, 1); -lean_inc(x_162); -lean_dec(x_161); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_184 = l___private_Lean_Meta_LevelDefEq_15__runDefEqM(x_8, x_3, x_4, x_5, x_6, x_162); -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_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; lean_object* x_206; lean_object* x_207; lean_object* x_208; -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_185); -x_187 = lean_alloc_closure((void*)(l_Lean_Meta_isExprDefEq___rarg___lambda__1___boxed), 4, 3); -lean_closure_set(x_187, 0, x_1); -lean_closure_set(x_187, 1, x_2); -lean_closure_set(x_187, 2, x_185); -x_188 = l_Lean_Meta_isExprDefEq___rarg___closed__2; -x_189 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_188, x_187, x_3, x_4, x_5, x_6, x_186); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_190 = lean_ctor_get(x_189, 1); -lean_inc(x_190); -lean_dec(x_189); -x_191 = lean_st_ref_get(x_6, x_190); -x_192 = lean_ctor_get(x_191, 1); -lean_inc(x_192); -lean_dec(x_191); -x_193 = lean_st_ref_take(x_6, x_192); -x_194 = lean_ctor_get(x_193, 0); -lean_inc(x_194); -x_195 = lean_ctor_get(x_194, 3); -lean_inc(x_195); -x_196 = lean_ctor_get(x_193, 1); -lean_inc(x_196); -lean_dec(x_193); -x_197 = lean_ctor_get(x_194, 0); -lean_inc(x_197); -x_198 = lean_ctor_get(x_194, 1); -lean_inc(x_198); -x_199 = lean_ctor_get(x_194, 2); -lean_inc(x_199); -if (lean_is_exclusive(x_194)) { - lean_ctor_release(x_194, 0); - lean_ctor_release(x_194, 1); - lean_ctor_release(x_194, 2); - lean_ctor_release(x_194, 3); - x_200 = x_194; -} else { - lean_dec_ref(x_194); - x_200 = lean_box(0); -} -x_201 = lean_ctor_get(x_195, 0); -lean_inc(x_201); -if (lean_is_exclusive(x_195)) { - lean_ctor_release(x_195, 0); - x_202 = x_195; -} else { - lean_dec_ref(x_195); - x_202 = lean_box(0); -} -if (lean_is_scalar(x_202)) { - x_203 = lean_alloc_ctor(0, 1, 1); -} else { - x_203 = x_202; -} -lean_ctor_set(x_203, 0, x_201); -lean_ctor_set_uint8(x_203, sizeof(void*)*1, x_15); -if (lean_is_scalar(x_200)) { - x_204 = lean_alloc_ctor(0, 4, 0); -} else { - x_204 = x_200; -} -lean_ctor_set(x_204, 0, x_197); -lean_ctor_set(x_204, 1, x_198); -lean_ctor_set(x_204, 2, x_199); -lean_ctor_set(x_204, 3, x_203); -x_205 = lean_st_ref_set(x_6, x_204, x_196); -lean_dec(x_6); -x_206 = lean_ctor_get(x_205, 1); -lean_inc(x_206); -if (lean_is_exclusive(x_205)) { - lean_ctor_release(x_205, 0); - lean_ctor_release(x_205, 1); - x_207 = x_205; -} else { - lean_dec_ref(x_205); - x_207 = lean_box(0); -} -if (lean_is_scalar(x_207)) { - x_208 = lean_alloc_ctor(0, 2, 0); -} else { - x_208 = x_207; -} -lean_ctor_set(x_208, 0, x_185); -lean_ctor_set(x_208, 1, x_206); -return x_208; -} -else -{ -lean_object* x_209; lean_object* x_210; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_209 = lean_ctor_get(x_184, 0); -lean_inc(x_209); -x_210 = lean_ctor_get(x_184, 1); -lean_inc(x_210); -lean_dec(x_184); -x_163 = x_209; -x_164 = x_210; -goto block_183; -} -block_183: -{ -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; -x_165 = lean_st_ref_get(x_6, x_164); -x_166 = lean_ctor_get(x_165, 1); -lean_inc(x_166); -lean_dec(x_165); -x_167 = lean_st_ref_take(x_6, x_166); -x_168 = lean_ctor_get(x_167, 0); -lean_inc(x_168); -x_169 = lean_ctor_get(x_168, 3); -lean_inc(x_169); -x_170 = lean_ctor_get(x_167, 1); -lean_inc(x_170); -lean_dec(x_167); -x_171 = lean_ctor_get(x_168, 0); -lean_inc(x_171); -x_172 = lean_ctor_get(x_168, 1); -lean_inc(x_172); -x_173 = lean_ctor_get(x_168, 2); -lean_inc(x_173); -if (lean_is_exclusive(x_168)) { - lean_ctor_release(x_168, 0); - lean_ctor_release(x_168, 1); - lean_ctor_release(x_168, 2); - lean_ctor_release(x_168, 3); - x_174 = x_168; -} else { - lean_dec_ref(x_168); - x_174 = lean_box(0); -} -x_175 = lean_ctor_get(x_169, 0); -lean_inc(x_175); -if (lean_is_exclusive(x_169)) { - lean_ctor_release(x_169, 0); - x_176 = x_169; -} else { - lean_dec_ref(x_169); - x_176 = lean_box(0); -} -if (lean_is_scalar(x_176)) { - x_177 = lean_alloc_ctor(0, 1, 1); -} else { - x_177 = x_176; -} -lean_ctor_set(x_177, 0, x_175); -lean_ctor_set_uint8(x_177, sizeof(void*)*1, x_15); -if (lean_is_scalar(x_174)) { - x_178 = lean_alloc_ctor(0, 4, 0); -} else { - x_178 = x_174; -} -lean_ctor_set(x_178, 0, x_171); -lean_ctor_set(x_178, 1, x_172); -lean_ctor_set(x_178, 2, x_173); -lean_ctor_set(x_178, 3, x_177); -x_179 = lean_st_ref_set(x_6, x_178, x_170); -lean_dec(x_6); -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_163); -lean_ctor_set(x_182, 1, x_180); -return x_182; -} -} -} -else -{ -lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; -x_211 = lean_ctor_get(x_5, 3); -lean_inc(x_211); -x_212 = l___private_Lean_Util_Trace_5__getResetTraces___at_Lean_Meta_isLevelDefEq___spec__4___rarg(x_6, x_10); -x_213 = lean_ctor_get(x_212, 0); -lean_inc(x_213); -x_214 = lean_ctor_get(x_212, 1); -lean_inc(x_214); -lean_dec(x_212); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_215 = l___private_Lean_Meta_LevelDefEq_15__runDefEqM(x_8, x_3, x_4, x_5, x_6, x_214); -if (lean_obj_tag(x_215) == 0) -{ -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; uint8_t x_223; -x_216 = lean_ctor_get(x_215, 0); -lean_inc(x_216); -x_217 = lean_ctor_get(x_215, 1); -lean_inc(x_217); -lean_dec(x_215); -lean_inc(x_216); -x_218 = lean_alloc_closure((void*)(l_Lean_Meta_isExprDefEq___rarg___lambda__1___boxed), 4, 3); -lean_closure_set(x_218, 0, x_1); -lean_closure_set(x_218, 1, x_2); -lean_closure_set(x_218, 2, x_216); -x_219 = l_Lean_Meta_isExprDefEq___rarg___closed__2; -x_220 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_219, x_218, x_3, x_4, x_5, x_6, x_217); -x_221 = lean_ctor_get(x_220, 1); -lean_inc(x_221); -lean_dec(x_220); -x_222 = l___private_Lean_Util_Trace_4__addNode___at_Lean_Meta_isLevelDefEq___spec__5(x_213, x_219, x_211, x_3, x_4, x_5, x_6, x_221); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_223 = !lean_is_exclusive(x_222); -if (x_223 == 0) -{ -lean_object* x_224; -x_224 = lean_ctor_get(x_222, 0); -lean_dec(x_224); -lean_ctor_set(x_222, 0, x_216); -return x_222; -} -else -{ -lean_object* x_225; lean_object* x_226; -x_225 = lean_ctor_get(x_222, 1); -lean_inc(x_225); -lean_dec(x_222); -x_226 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_226, 0, x_216); -lean_ctor_set(x_226, 1, x_225); -return x_226; -} -} -else -{ -lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; uint8_t x_231; -lean_dec(x_2); -lean_dec(x_1); -x_227 = lean_ctor_get(x_215, 0); -lean_inc(x_227); -x_228 = lean_ctor_get(x_215, 1); -lean_inc(x_228); -lean_dec(x_215); -x_229 = l_Lean_Meta_isExprDefEq___rarg___closed__2; -x_230 = l___private_Lean_Util_Trace_4__addNode___at_Lean_Meta_isLevelDefEq___spec__5(x_213, x_229, x_211, x_3, x_4, x_5, x_6, x_228); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_231 = !lean_is_exclusive(x_230); -if (x_231 == 0) -{ -lean_object* x_232; -x_232 = lean_ctor_get(x_230, 0); -lean_dec(x_232); -lean_ctor_set_tag(x_230, 1); -lean_ctor_set(x_230, 0, x_227); -return x_230; -} -else -{ -lean_object* x_233; lean_object* x_234; -x_233 = lean_ctor_get(x_230, 1); -lean_inc(x_233); -lean_dec(x_230); -x_234 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_234, 0, x_227); -lean_ctor_set(x_234, 1, x_233); -return x_234; -} -} -} -} -} -} lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_mkEqAndProof(lean_object* x_1, 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: { @@ -1950,7 +931,7 @@ lean_inc(x_16); lean_dec(x_14); lean_inc(x_12); lean_inc(x_9); -x_17 = l_Lean_Meta_isExprDefEq___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_mkEqAndProof___spec__1(x_9, x_12, x_3, x_4, x_5, x_6, x_16); +x_17 = l_Lean_Meta_isExprDefEq___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos___spec__1(x_9, x_12, x_3, x_4, x_5, x_6, x_16); if (lean_obj_tag(x_17) == 0) { lean_object* x_18; uint8_t x_19; @@ -2428,66 +1409,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Meta_generalizeIndices_match__3___rarg), return x_2; } } -lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_generalizeIndices___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) { -_start: -{ -lean_object* x_8; -x_8 = l___private_Lean_Meta_Basic_20__forallTelescopeReducingImp___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_8) == 0) -{ -uint8_t x_9; -x_9 = !lean_is_exclusive(x_8); -if (x_9 == 0) -{ -return x_8; -} -else -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_10 = lean_ctor_get(x_8, 0); -x_11 = lean_ctor_get(x_8, 1); -lean_inc(x_11); -lean_inc(x_10); -lean_dec(x_8); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_10); -lean_ctor_set(x_12, 1, x_11); -return x_12; -} -} -else -{ -uint8_t x_13; -x_13 = !lean_is_exclusive(x_8); -if (x_13 == 0) -{ -return x_8; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_8, 0); -x_15 = lean_ctor_get(x_8, 1); -lean_inc(x_15); -lean_inc(x_14); -lean_dec(x_8); -x_16 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_16, 0, x_14); -lean_ctor_set(x_16, 1, x_15); -return x_16; -} -} -} -} -lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_generalizeIndices___spec__1(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_generalizeIndices___spec__1___rarg), 7, 0); -return x_2; -} -} -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___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, lean_object* x_14, lean_object* x_15) { +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___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, lean_object* x_13, lean_object* x_14, lean_object* x_15) { _start: { lean_object* x_16; lean_object* x_17; @@ -2862,7 +1784,7 @@ return x_94; } } } -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___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* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___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; @@ -2888,7 +1810,7 @@ x_20 = lean_ctor_get(x_17, 1); lean_inc(x_20); lean_dec(x_17); x_21 = lean_array_push(x_9, x_20); -x_22 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__1___boxed), 15, 9); +x_22 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__1___boxed), 15, 9); lean_closure_set(x_22, 0, x_8); lean_closure_set(x_22, 1, x_3); lean_closure_set(x_22, 2, x_2); @@ -2940,13 +1862,13 @@ return x_29; } } } -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; lean_object* x_14; lean_inc(x_6); lean_inc(x_3); -x_13 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__2___boxed), 14, 7); +x_13 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__2___boxed), 14, 7); lean_closure_set(x_13, 0, x_1); lean_closure_set(x_13, 1, x_7); lean_closure_set(x_13, 2, x_2); @@ -2958,14 +1880,14 @@ x_14 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs___rarg(x_ return x_14; } } -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___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, lean_object* x_13) { +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___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, lean_object* x_13) { _start: { lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; x_14 = lean_unsigned_to_nat(0u); x_15 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_7, x_7, x_14, x_1); x_16 = l_Lean_LocalDecl_userName(x_2); -x_17 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__3), 12, 6); +x_17 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__3), 12, 6); lean_closure_set(x_17, 0, x_2); lean_closure_set(x_17, 1, x_3); lean_closure_set(x_17, 2, x_7); @@ -2977,7 +1899,7 @@ x_19 = l_Lean_Meta_withLocalDecl___at_Lean_Meta_substCore___spec__7___rarg(x_16, return x_19; } } -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, 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; 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; @@ -3009,14 +1931,14 @@ lean_inc(x_23); x_24 = lean_ctor_get(x_22, 1); lean_inc(x_24); lean_dec(x_22); -x_25 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__4___boxed), 13, 6); +x_25 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__4___boxed), 13, 6); lean_closure_set(x_25, 0, x_21); lean_closure_set(x_25, 1, x_4); lean_closure_set(x_25, 2, x_5); lean_closure_set(x_25, 3, x_6); lean_closure_set(x_25, 4, x_7); lean_closure_set(x_25, 5, x_17); -x_26 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_generalizeIndices___spec__1___rarg(x_23, x_25, x_9, x_10, x_11, x_12, x_24); +x_26 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__5___rarg(x_23, x_25, x_9, x_10, x_11, x_12, x_24); return x_26; } else @@ -3053,7 +1975,7 @@ return x_30; } } } -static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6___closed__1() { +static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__6___closed__1() { _start: { lean_object* x_1; @@ -3061,27 +1983,27 @@ x_1 = lean_mk_string("ill-formed inductive datatype"); return x_1; } } -static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6___closed__2() { +static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__6___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6___closed__1; +x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__6___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_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6___closed__3() { +static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__6___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6___closed__2; +x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__6___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__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, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__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, 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; uint8_t x_19; @@ -3105,7 +2027,7 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_20 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6___closed__3; +x_20 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__6___closed__3; x_21 = lean_box(0); x_22 = l_Lean_Meta_throwTacticEx___rarg(x_8, x_5, x_20, x_21, x_10, x_11, x_12, x_13, x_14); lean_dec(x_13); @@ -3136,12 +2058,12 @@ else lean_object* x_27; lean_object* x_28; lean_dec(x_8); x_27 = lean_box(0); -x_28 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_27, x_10, x_11, x_12, x_13, x_14); +x_28 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_27, x_10, x_11, x_12, x_13, x_14); return x_28; } } } -static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___closed__1() { +static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__1() { _start: { lean_object* x_1; @@ -3149,27 +2071,27 @@ x_1 = lean_mk_string("indexed inductive type expected"); return x_1; } } -static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___closed__2() { +static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___closed__1; +x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___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_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___closed__3() { +static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___closed__2; +x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___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* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { switch (lean_obj_tag(x_6)) { @@ -3232,7 +2154,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_28 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___closed__3; +x_28 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__3; x_29 = lean_box(0); x_30 = l_Lean_Meta_throwTacticEx___rarg(x_4, x_1, x_28, x_29, x_9, x_10, x_11, x_12, x_17); lean_dec(x_12); @@ -3262,7 +2184,7 @@ else { lean_object* x_35; lean_object* x_36; x_35 = lean_box(0); -x_36 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6(x_7, x_24, x_6, x_5, x_1, x_2, x_3, x_4, x_35, x_9, x_10, x_11, x_12, x_17); +x_36 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__6(x_7, x_24, x_6, x_5, x_1, x_2, x_3, x_4, x_35, x_9, x_10, x_11, x_12, x_17); return x_36; } } @@ -3393,7 +2315,7 @@ x_25 = lean_mk_array(x_23, x_24); x_26 = lean_unsigned_to_nat(1u); x_27 = lean_nat_sub(x_23, x_26); lean_dec(x_23); -x_28 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2(x_1, x_3, x_10, x_12, x_16, x_20, x_25, x_27, x_4, x_5, x_6, x_7, x_21); +x_28 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1(x_1, x_3, x_10, x_12, x_16, x_20, x_25, x_27, x_4, x_5, x_6, x_7, x_21); return x_28; } else @@ -3505,48 +2427,48 @@ x_11 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(x_1, x_ return x_11; } } -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___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, lean_object* x_14, lean_object* x_15) { +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___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, lean_object* x_13, lean_object* x_14, lean_object* x_15) { _start: { lean_object* x_16; -x_16 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___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, x_14, x_15); +x_16 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___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, x_13, x_14, x_15); lean_dec(x_9); lean_dec(x_7); return x_16; } } -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___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, 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* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___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, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { lean_object* x_15; -x_15 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__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); +x_15 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__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_1); return x_15; } } -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___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, lean_object* x_13) { +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___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, lean_object* x_13) { _start: { lean_object* x_14; -x_14 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___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, x_13); +x_14 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___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, x_13); lean_dec(x_8); return x_14; } } -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___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, lean_object* x_12, lean_object* x_13) { +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___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, lean_object* x_12, lean_object* x_13) { _start: { lean_object* x_14; -x_14 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__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, x_13); +x_14 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__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, x_13); lean_dec(x_8); return x_14; } } -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { lean_object* x_15; -x_15 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6(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_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__6(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); return x_15; } @@ -14036,7 +12958,7 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_26); lean_inc(x_25); -x_27 = l_Lean_Meta_isExprDefEq___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_mkEqAndProof___spec__1(x_25, x_26, x_8, x_9, x_10, x_11, x_12); +x_27 = l_Lean_Meta_isExprDefEq___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos___spec__1(x_25, x_26, x_8, x_9, x_10, x_11, x_12); if (lean_obj_tag(x_27) == 0) { lean_object* x_28; uint8_t x_29; @@ -19216,18 +18138,18 @@ l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loop___rarg___cl lean_mark_persistent(l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loop___rarg___closed__1); l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loop___rarg___closed__2 = _init_l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loop___rarg___closed__2(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loop___rarg___closed__2); -l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6___closed__1 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6___closed__1(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6___closed__1); -l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6___closed__2 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6___closed__2(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6___closed__2); -l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6___closed__3 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6___closed__3(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6___closed__3); -l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___closed__1 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___closed__1(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___closed__1); -l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___closed__2 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___closed__2(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___closed__2); -l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___closed__3 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___closed__3(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___closed__3); +l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__6___closed__1 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__6___closed__1(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__6___closed__1); +l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__6___closed__2 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__6___closed__2(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__6___closed__2); +l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__6___closed__3 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__6___closed__3(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__6___closed__3); +l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__1 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__1(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__1); +l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__2 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__2(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__2); +l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__3 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__3(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__3); l_Lean_Meta_generalizeIndices___lambda__1___closed__1 = _init_l_Lean_Meta_generalizeIndices___lambda__1___closed__1(); lean_mark_persistent(l_Lean_Meta_generalizeIndices___lambda__1___closed__1); l_Lean_Meta_generalizeIndices___lambda__1___closed__2 = _init_l_Lean_Meta_generalizeIndices___lambda__1___closed__2(); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Induction.c b/stage0/stdlib/Lean/Meta/Tactic/Induction.c index 8bcdf345b2..f67051b4a7 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Induction.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Induction.c @@ -13,185 +13,178 @@ #ifdef __cplusplus extern "C" { #endif +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___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* l_Lean_fmt___at_Lean_Position_Lean_HasFormat___spec__1(lean_object*); -lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_induction___boxed(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_object* l_Lean_Meta_synthInstance___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15___lambda__2___closed__3; +lean_object* l___private_Lean_Meta_WHNF_12__whnfEasyCases___main___at_Lean_Meta_induction___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15___closed__2; lean_object* l_Lean_Level_normalize___main(lean_object*); lean_object* l_Lean_Expr_mvarId_x21(lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); lean_object* l_Lean_Meta_induction___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__7; lean_object* l_Lean_Meta_induction_match__7___rarg(lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); -lean_object* l___private_Lean_Meta_WHNF_12__whnfEasyCases___main___at_Lean_Meta_induction___spec__4___boxed(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_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_throwUnexpectedMajorType___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; +lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_whnfUntil___at_Lean_Meta_induction___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_unreachable_x21___rarg(lean_object*); -lean_object* l_List_forM___main___at_Lean_Meta_induction___spec__5(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_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_induction___spec__15(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_getLevel___at_Lean_Meta_induction___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop_match__1___rarg(lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_Meta_induction___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop_match__3(lean_object*); lean_object* l_Lean_Meta_assignExprMVar___at_Lean_Meta_admit___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_getLevel___at_Lean_Meta_induction___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__2; lean_object* l_Lean_Meta_induction___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___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_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at_Lean_Meta_induction___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldlM___main___at_Lean_Meta_induction___spec__11___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_Meta_induction_match__10(lean_object*); +lean_object* l_Lean_Meta_normalizeLevel___at_Lean_Meta_induction___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_WHNF_19__unfoldDefinitionImp_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_whnfForall___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__1; +lean_object* l___private_Lean_Meta_WHNF_12__whnfEasyCases___main___at_Lean_Meta_induction___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarTag(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___lambda__1___closed__1; lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_LocalContext_getFVars___spec__1(lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__2; -lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__1; -lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___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* l_List_foldlM___main___at_Lean_Meta_induction___spec__12___lambda__1(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_withAppAux___main___at_Lean_Meta_induction___spec__15___lambda__2___closed__1; +lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___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*); uint8_t l_Lean_Expr_isAppOf(lean_object*, lean_object*); lean_object* l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_induction___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_InductionSubgoal_fields___default; lean_object* lean_expr_instantiate1(lean_object*, lean_object*); +lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___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* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___lambda__1___closed__2; lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); -lean_object* l_Lean_Meta_whnfHeadPredAux___main___at_Lean_Meta_induction___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8(lean_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_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2___closed__3; +lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Name_inhabited; extern lean_object* l_Lean_Level_Inhabited; -lean_object* l_Lean_addTrace___at_Lean_Meta_induction___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_getAppArgs___closed__1; -lean_object* l_List_foldlM___main___at_Lean_Meta_induction___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* l___private_Lean_Meta_InferType_4__getLevelImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___boxed(lean_object**); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___lambda__2___boxed(lean_object**); lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__8; lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__4; +lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___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_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_induction_match__8(lean_object*); lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Induction___hyg_2132_(lean_object*); +lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__2; lean_object* l_Lean_Meta_checkNotAssigned___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___closed__2; +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15___lambda__2___closed__2; lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_elem___main___at_Lean_Meta_induction___spec__6___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15___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*); lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___lambda__3___closed__3; lean_object* lean_nat_add(lean_object*, lean_object*); -lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___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*, lean_object*, lean_object*); -lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___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_object*, lean_object*); -lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__1___closed__1; +lean_object* l_Lean_Meta_whnfHeadPredAux___main___at_Lean_Meta_induction___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___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*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_induction___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_elem___main___at_Lean_Meta_induction___spec__5___boxed(lean_object*, lean_object*); +lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__1; lean_object* l_Lean_Expr_getAppNumArgsAux___main(lean_object*, lean_object*); lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_Lean_AddMessageContext___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___closed__2; lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize(lean_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_Tactic_Induction_0__Lean_Meta_getTypeBody(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_getTypeBody___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_intro1Core(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_synthInstance_x3f___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_induction_match__7(lean_object*); -lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__1; lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___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*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___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_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_induction___spec__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_SynthInstance_8__synthInstanceImp_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_getLocalDecl___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_synthInstance___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_foldAux___main___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___spec__1___boxed(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_object* l_Lean_Meta_induction_match__9___rarg(lean_object*, lean_object*); +lean_object* l_List_forM___main___at_Lean_Meta_induction___spec__4(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_Tactic_Induction_0__Lean_Meta_finalize_loop_match__4(lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__4; -uint8_t l_List_elem___main___at_Lean_Meta_induction___spec__6(lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___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_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_append___main(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams_match__2(lean_object*); lean_object* l_Lean_Meta_induction_match__5___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_tryClear(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_headBeta(lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___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* l_Lean_Meta_induction_match__8___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_introNCore___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop_match__5___rarg(lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); +lean_object* l_List_forM___main___at_Lean_Meta_induction___spec__4___closed__2; lean_object* l_Lean_Expr_fvarId_x21(lean_object*); lean_object* l_Lean_Meta_InductionSubgoal_subst___default; lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___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*, uint8_t, lean_object*, lean_object*, 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*); lean_object* l_List_lengthAux___main___rarg(lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___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*); uint8_t l_Lean_Expr_isHeadBetaTarget(lean_object*); +lean_object* l_List_forM___main___at_Lean_Meta_induction___spec__4___closed__1; lean_object* l_Lean_Meta_induction_match__6(lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___closed__1; +lean_object* l_Lean_Meta_normalizeLevel___at_Lean_Meta_induction___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___spec__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*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___lambda__2___boxed(lean_object**); -extern lean_object* l_Lean_Meta_inferTypeRef; -lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__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*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___closed__1; +lean_object* l_List_forM___main___at_Lean_Meta_induction___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_whnfUntil___at_Lean_Meta_induction___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__7; lean_object* l_Lean_Meta_getExprMVarAssignment_x3f___at___private_Lean_Meta_Basic_9__isClassQuick_x3f___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_Meta_induction_match__6___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__2; lean_object* l_Lean_Meta_revert(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_instantiateLevelMVars___at_Lean_Meta_normalizeLevel___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___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*); -lean_object* l_List_foldlM___main___at_Lean_Meta_induction___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* l_Lean_Meta_induction_match__2___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldlM___main___at_Lean_Meta_induction___spec__12___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___closed__1; lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop_match__5(lean_object*); +lean_object* l_List_foldlM___main___at_Lean_Meta_induction___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*); lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams_match__1(lean_object*); +lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__4; lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___lambda__3___boxed(lean_object**); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__1___boxed(lean_object**); lean_object* l_Lean_MetavarContext_localDeclDependsOn(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__3; lean_object* l___private_Lean_Meta_WHNF_12__whnfEasyCases___main___at___private_Lean_Meta_WHNF_17__whnfCoreImp___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2___closed__1; -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2___closed__2; uint8_t l_Array_isEmpty___rarg(lean_object*); +lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___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* l_Lean_Meta_introNCore(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_forM___main___at_Lean_Meta_induction___spec__5___closed__1; -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__6; -lean_object* l_List_forM___main___at_Lean_Meta_induction___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* l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__1; lean_object* l_List_redLength___main___rarg(lean_object*); +lean_object* l_Lean_addTrace___at_Lean_Meta_induction___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_induction___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_RecursorInfo_firstIndexPos(lean_object*); lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___lambda__3___closed__1; uint8_t l_Lean_Expr_isForall(lean_object*); uint8_t l_Lean_BinderInfo_isInstImplicit(uint8_t); +lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__2; +lean_object* l_List_foldlM___main___at_Lean_Meta_induction___spec__11___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkFVar(lean_object*); -lean_object* l_List_forM___main___at_Lean_Meta_induction___spec__5___closed__2; uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_getTargetArity_match__1(lean_object*); lean_object* l_Lean_Meta_InductionSubgoal_inhabited___closed__1; -lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_induction___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_SynthInstance_10__synthInstanceImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__2; lean_object* l_Lean_Meta_induction_match__2(lean_object*); -lean_object* l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_List_elem___main___at_Lean_Meta_induction___spec__5(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop_match__2(lean_object*); lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop_match__2___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkRecursorInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_type(lean_object*); -lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_exprDependsOn(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__5; lean_object* l_Lean_Meta_throwTacticEx___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__4; lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop_match__6(lean_object*); lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_getTargetArity(lean_object*); +lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___lambda__2___closed__2; lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); -lean_object* l_Lean_Meta_whnfUntil___at_Lean_Meta_induction___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop_match__1(lean_object*); @@ -201,80 +194,81 @@ lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___ lean_object* l_Lean_mkApp(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__1; lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop_match__6___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__5; lean_object* l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__7; -lean_object* l_Lean_Meta_throwUnknownFVar___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_FVarSubst_insert(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_induction_match__4___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_whnf___at_Lean_Meta_introNCore___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___boxed(lean_object**); +lean_object* l_Lean_Meta_inferType___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_panic_fn(lean_object*, lean_object*); lean_object* l_Lean_Meta_induction_match__1(lean_object*); lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop_match__3___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_WHNF_12__whnfEasyCases___main___at_Lean_Meta_induction___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__6; extern lean_object* l___private_Lean_Meta_Basic_9__isClassQuick_x3f___main___closed__1; -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__1; +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___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* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop(lean_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_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___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_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__3; extern lean_object* l_Lean_ResolveName_resolveNamespaceUsingScope___closed__3; -lean_object* l_Lean_Meta_whnfUntil___at_Lean_Meta_induction___spec__2___boxed(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_Meta_induction_match__3___rarg(lean_object*, lean_object*); uint8_t l_Lean_Expr_isFVar(lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__3; +lean_object* l_Lean_addTrace___at_Lean_Meta_induction___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___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*); lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_revert___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__1___closed__2; -lean_object* l_Lean_addTrace___at_Lean_Meta_induction___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___lambda__2___closed__1; +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15___lambda__1___boxed(lean_object**); lean_object* l_Nat_foldAux___main___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_toList___rarg(lean_object*); -lean_object* l_Lean_Meta_normalizeLevel___at_Lean_Meta_induction___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15___closed__1; extern lean_object* l_Lean_Expr_Inhabited; lean_object* lean_mk_array(lean_object*, lean_object*); lean_object* l_Lean_Meta_induction_match__5(lean_object*); lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams_match__1___rarg(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Level_isZero(lean_object*); lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_inferType___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__5; lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_throwUnexpectedMajorType(lean_object*); lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___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_Expr_withAppAux___main___at_Lean_Meta_induction___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*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkOptionalNode___closed__2; +lean_object* l_Lean_Meta_whnfHeadPredAux___main___at_Lean_Meta_induction___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_getTargetArity_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___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_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_normalizeLevel___at_Lean_Meta_induction___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_throwUnexpectedMajorType___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__2___boxed(lean_object**); lean_object* l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__5; lean_object* l_List_toArrayAux___main___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_throwUnexpectedMajorType___rarg___closed__1; +lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__3; lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16(lean_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_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___boxed(lean_object**); lean_object* l_Lean_Meta_induction_match__10___rarg(lean_object*, lean_object*, lean_object*); -lean_object* lean_local_ctx_find(lean_object*, lean_object*); +lean_object* l_List_foldlM___main___at_Lean_Meta_induction___spec__11(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_induction_match__4(lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__8; extern lean_object* l_Lean_Meta_throwTacticEx___rarg___closed__6; lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop_match__4___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_InductionSubgoal_inhabited; lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_throwUnexpectedMajorType___rarg___closed__2; lean_object* l_Lean_Meta_induction_match__3(lean_object*); lean_object* l_Lean_indentExpr(lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__4; lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__6; lean_object* l_Lean_Meta_induction_match__9(lean_object*); -lean_object* l_Array_iterateMAux___main___at_Lean_Meta_induction___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getConfig___at___private_Lean_Meta_WHNF_17__whnfCoreImp___main___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__3; lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___lambda__3___closed__2; +lean_object* l_Array_iterateMAux___main___at_Lean_Meta_induction___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_getTypeBody_match__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_whnfHeadPredAux___main___at_Lean_Meta_induction___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_whnfForall___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Util_2__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___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*); lean_object* l_Lean_Meta_induction_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_induction(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_222____closed__2; lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp___spec__1(lean_object*, lean_object*); -lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15(lean_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*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_getTypeBody_match__1(lean_object*); lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_getTargetArity_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { @@ -466,107 +460,7 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Induction_0__Lean_ return x_2; } } -lean_object* l_Lean_Meta_inferType___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___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) { -_start: -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_7 = lean_ctor_get(x_4, 0); -lean_inc(x_7); -x_8 = lean_ctor_get(x_4, 1); -lean_inc(x_8); -x_9 = lean_ctor_get(x_4, 2); -lean_inc(x_9); -x_10 = lean_ctor_get(x_4, 3); -lean_inc(x_10); -x_11 = lean_nat_dec_eq(x_8, x_9); -if (x_11 == 0) -{ -uint8_t x_12; -x_12 = !lean_is_exclusive(x_4); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_13 = lean_ctor_get(x_4, 3); -lean_dec(x_13); -x_14 = lean_ctor_get(x_4, 2); -lean_dec(x_14); -x_15 = lean_ctor_get(x_4, 1); -lean_dec(x_15); -x_16 = lean_ctor_get(x_4, 0); -lean_dec(x_16); -x_17 = lean_unsigned_to_nat(1u); -x_18 = lean_nat_add(x_8, x_17); -lean_dec(x_8); -lean_ctor_set(x_4, 1, x_18); -x_19 = l_Lean_Meta_inferTypeRef; -x_20 = lean_st_ref_get(x_19, x_6); -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_apply_6(x_21, x_1, x_2, x_3, x_4, x_5, x_22); -return x_23; -} -else -{ -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_dec(x_4); -x_24 = lean_unsigned_to_nat(1u); -x_25 = lean_nat_add(x_8, x_24); -lean_dec(x_8); -x_26 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_26, 0, x_7); -lean_ctor_set(x_26, 1, x_25); -lean_ctor_set(x_26, 2, x_9); -lean_ctor_set(x_26, 3, x_10); -x_27 = l_Lean_Meta_inferTypeRef; -x_28 = lean_st_ref_get(x_27, 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_31 = lean_apply_6(x_29, x_1, x_2, x_3, x_26, x_5, x_30); -return x_31; -} -} -else -{ -lean_object* x_32; lean_object* x_33; uint8_t x_34; -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_1); -x_32 = l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; -x_33 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_32, 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); -x_34 = !lean_is_exclusive(x_33); -if (x_34 == 0) -{ -return x_33; -} -else -{ -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_33, 1); -lean_inc(x_36); -lean_inc(x_35); -lean_dec(x_33); -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* l_Lean_Meta_whnfForall___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___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* l_Lean_Meta_whnfForall___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___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) { _start: { lean_object* x_7; @@ -647,7 +541,7 @@ return x_19; } } } -lean_object* l_Lean_Meta_synthInstance___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___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* l_Lean_Meta_synthInstance___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___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) { _start: { lean_object* x_7; @@ -767,7 +661,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_13 = l_Lean_Meta_inferType___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___spec__1(x_4, x_5, x_6, x_7, x_8, x_9); +x_13 = l_Lean_Meta_inferType___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__1(x_4, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_13) == 0) { lean_object* x_14; lean_object* x_15; lean_object* x_16; @@ -780,7 +674,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_16 = l_Lean_Meta_whnfForall___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___spec__2(x_14, x_5, x_6, x_7, x_8, x_15); +x_16 = l_Lean_Meta_whnfForall___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___spec__1(x_14, x_5, x_6, x_7, x_8, x_15); if (lean_obj_tag(x_16) == 0) { lean_object* x_17; @@ -1060,7 +954,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_9 = l_Lean_Meta_whnfForall___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___spec__2(x_2, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Lean_Meta_whnfForall___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); if (lean_obj_tag(x_9) == 0) { lean_object* x_10; @@ -2175,7 +2069,7 @@ lean_inc(x_19); lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); -x_21 = l_Lean_Meta_whnfForall___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___spec__2(x_13, x_16, x_17, x_18, x_19, x_20); +x_21 = l_Lean_Meta_whnfForall___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___spec__1(x_13, 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; uint8_t x_81; @@ -2693,7 +2587,7 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_18 = l_Lean_Meta_inferType___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___spec__1(x_8, x_9, x_10, x_11, x_12, x_16); +x_18 = l_Lean_Meta_inferType___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__1(x_8, 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; uint8_t x_28; lean_object* x_29; lean_object* x_30; @@ -3110,37 +3004,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Meta_induction_match__10___rarg), 3, 0); return x_2; } } -lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_induction___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) { -_start: -{ -lean_object* x_7; lean_object* x_8; -x_7 = lean_ctor_get(x_2, 1); -lean_inc(x_7); -lean_inc(x_1); -x_8 = lean_local_ctx_find(x_7, x_1); -if (lean_obj_tag(x_8) == 0) -{ -lean_object* x_9; -x_9 = l_Lean_Meta_throwUnknownFVar___rarg(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_2); -return x_9; -} -else -{ -lean_object* x_10; lean_object* x_11; -lean_dec(x_2); -lean_dec(x_1); -x_10 = lean_ctor_get(x_8, 0); -lean_inc(x_10); -lean_dec(x_8); -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_10); -lean_ctor_set(x_11, 1, x_6); -return x_11; -} -} -} -lean_object* l___private_Lean_Meta_WHNF_12__whnfEasyCases___main___at_Lean_Meta_induction___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* l___private_Lean_Meta_WHNF_12__whnfEasyCases___main___at_Lean_Meta_induction___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: { switch (lean_obj_tag(x_2)) { @@ -4521,19 +4385,19 @@ return x_245; } } } -lean_object* l_Lean_Meta_whnfHeadPredAux___main___at_Lean_Meta_induction___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* l_Lean_Meta_whnfHeadPredAux___main___at_Lean_Meta_induction___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 = l___private_Lean_Meta_WHNF_12__whnfEasyCases___main___at_Lean_Meta_induction___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l___private_Lean_Meta_WHNF_12__whnfEasyCases___main___at_Lean_Meta_induction___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7); return x_8; } } -lean_object* l_Lean_Meta_whnfUntil___at_Lean_Meta_induction___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* l_Lean_Meta_whnfUntil___at_Lean_Meta_induction___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) { _start: { lean_object* x_8; -x_8 = l___private_Lean_Meta_WHNF_12__whnfEasyCases___main___at_Lean_Meta_induction___spec__4(x_2, x_1, x_3, x_4, x_5, x_6, x_7); +x_8 = l___private_Lean_Meta_WHNF_12__whnfEasyCases___main___at_Lean_Meta_induction___spec__3(x_2, x_1, x_3, x_4, x_5, x_6, x_7); if (lean_obj_tag(x_8) == 0) { uint8_t x_9; @@ -4615,7 +4479,7 @@ return x_24; } } } -static lean_object* _init_l_List_forM___main___at_Lean_Meta_induction___spec__5___closed__1() { +static lean_object* _init_l_List_forM___main___at_Lean_Meta_induction___spec__4___closed__1() { _start: { lean_object* x_1; @@ -4623,16 +4487,16 @@ x_1 = lean_mk_string("major premise type is ill-formed"); return x_1; } } -static lean_object* _init_l_List_forM___main___at_Lean_Meta_induction___spec__5___closed__2() { +static lean_object* _init_l_List_forM___main___at_Lean_Meta_induction___spec__4___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_List_forM___main___at_Lean_Meta_induction___spec__5___closed__1; +x_1 = l_List_forM___main___at_Lean_Meta_induction___spec__4___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l_List_forM___main___at_Lean_Meta_induction___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* l_List_forM___main___at_Lean_Meta_induction___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: { if (lean_obj_tag(x_5) == 0) @@ -4675,7 +4539,7 @@ 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; uint8_t x_28; x_21 = l_Lean_indentExpr(x_3); -x_22 = l_List_forM___main___at_Lean_Meta_induction___spec__5___closed__2; +x_22 = l_List_forM___main___at_Lean_Meta_induction___spec__4___closed__2; x_23 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_23, 0, x_22); lean_ctor_set(x_23, 1, x_21); @@ -4708,7 +4572,7 @@ return x_31; } } } -uint8_t l_List_elem___main___at_Lean_Meta_induction___spec__6(lean_object* x_1, lean_object* x_2) { +uint8_t l_List_elem___main___at_Lean_Meta_induction___spec__5(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -4737,7 +4601,7 @@ return x_8; } } } -static lean_object* _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__1___closed__1() { +static lean_object* _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___lambda__1___closed__1() { _start: { lean_object* x_1; @@ -4745,16 +4609,16 @@ x_1 = lean_mk_string("' is an index in major premise, but it depends on index oc return x_1; } } -static lean_object* _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__1___closed__2() { +static lean_object* _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___lambda__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__1___closed__1; +x_1 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___lambda__1___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___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_object* x_13, lean_object* x_14) { +lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___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: { uint8_t x_15; uint8_t x_67; @@ -4769,7 +4633,7 @@ goto block_66; else { uint8_t x_69; -x_69 = l_List_elem___main___at_Lean_Meta_induction___spec__6(x_4, x_8); +x_69 = l_List_elem___main___at_Lean_Meta_induction___spec__5(x_4, x_8); if (x_69 == 0) { uint8_t x_70; @@ -4806,7 +4670,7 @@ else lean_object* x_18; lean_object* x_19; x_18 = l_Lean_Expr_fvarId_x21(x_1); lean_inc(x_10); -x_19 = l_Lean_Meta_getLocalDecl___at_Lean_Meta_induction___spec__1(x_18, x_10, x_11, x_12, x_13, x_14); +x_19 = l_Lean_Meta_getLocalDecl___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos___spec__3(x_18, x_10, x_11, x_12, x_13, x_14); if (lean_obj_tag(x_19) == 0) { uint8_t x_20; @@ -4842,7 +4706,7 @@ x_28 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__5; x_29 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_29, 0, x_28); lean_ctor_set(x_29, 1, x_27); -x_30 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__1___closed__2; +x_30 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___lambda__1___closed__2; x_31 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_31, 0, x_29); lean_ctor_set(x_31, 1, x_30); @@ -4899,7 +4763,7 @@ x_49 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__5; x_50 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_50, 0, x_49); lean_ctor_set(x_50, 1, x_48); -x_51 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__1___closed__2; +x_51 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___lambda__1___closed__2; x_52 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_52, 0, x_50); lean_ctor_set(x_52, 1, x_51); @@ -4953,7 +4817,7 @@ return x_65; } } } -static lean_object* _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__1() { +static lean_object* _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___lambda__2___closed__1() { _start: { lean_object* x_1; @@ -4961,16 +4825,16 @@ x_1 = lean_mk_string("' is an index in major premise, but it occurs in previous return x_1; } } -static lean_object* _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__2() { +static lean_object* _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___lambda__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__1; +x_1 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___lambda__2___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___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) { +lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___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: { uint8_t x_16; @@ -4980,7 +4844,7 @@ if (x_16 == 0) lean_object* x_17; lean_object* x_18; lean_dec(x_9); x_17 = lean_box(0); -x_18 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_17, x_11, x_12, x_13, x_14, x_15); +x_18 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_17, x_11, x_12, x_13, x_14, x_15); lean_dec(x_2); return x_18; } @@ -4999,7 +4863,7 @@ if (x_21 == 0) lean_object* x_22; lean_object* x_23; lean_dec(x_9); x_22 = lean_box(0); -x_23 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_22, x_11, x_12, x_13, x_14, x_15); +x_23 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_22, x_11, x_12, x_13, x_14, x_15); lean_dec(x_2); return x_23; } @@ -5014,7 +4878,7 @@ x_25 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__5; 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_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__2; +x_27 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___lambda__2___closed__2; x_28 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_28, 0, x_26); lean_ctor_set(x_28, 1, x_27); @@ -5051,7 +4915,7 @@ return x_38; } } } -static lean_object* _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___closed__1() { +static lean_object* _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__1() { _start: { lean_object* x_1; @@ -5059,16 +4923,16 @@ x_1 = lean_mk_string("' is an index in major premise, but it occurs more than on return x_1; } } -static lean_object* _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___closed__2() { +static lean_object* _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___closed__1; +x_1 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___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_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* l_Nat_forMAux___main___at_Lean_Meta_induction___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, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { _start: { lean_object* x_17; uint8_t x_18; @@ -5100,7 +4964,7 @@ lean_inc(x_1); lean_inc(x_2); lean_inc(x_6); lean_inc(x_9); -x_28 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__2(x_9, x_24, x_6, x_22, x_2, x_1, x_8, x_7, x_4, x_27, x_12, x_13, x_14, x_15, x_16); +x_28 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___lambda__2(x_9, x_24, x_6, x_22, x_2, x_1, x_8, x_7, x_4, x_27, x_12, x_13, x_14, x_15, x_16); lean_dec(x_22); if (lean_obj_tag(x_28) == 0) { @@ -5155,7 +5019,7 @@ x_36 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__5; x_37 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_37, 0, x_36); lean_ctor_set(x_37, 1, x_35); -x_38 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___closed__2; +x_38 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__2; x_39 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_39, 0, x_37); lean_ctor_set(x_39, 1, x_38); @@ -5200,7 +5064,7 @@ lean_inc(x_1); lean_inc(x_2); lean_inc(x_6); lean_inc(x_9); -x_51 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__2(x_9, x_24, x_6, x_22, x_2, x_1, x_8, x_7, x_4, x_50, x_12, x_13, x_14, x_15, x_16); +x_51 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___lambda__2(x_9, x_24, x_6, x_22, x_2, x_1, x_8, x_7, x_4, x_50, x_12, x_13, x_14, x_15, x_16); lean_dec(x_22); if (lean_obj_tag(x_51) == 0) { @@ -5261,14 +5125,14 @@ return x_59; } } } -lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___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, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___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_object* x_13, lean_object* x_14, lean_object* x_15) { _start: { lean_object* x_16; lean_object* x_17; x_16 = lean_array_get_size(x_1); lean_inc(x_16); lean_inc(x_9); -x_17 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7(x_2, x_3, x_4, x_5, x_1, x_6, x_7, x_8, x_9, x_16, x_16, x_11, x_12, x_13, x_14, x_15); +x_17 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6(x_2, x_3, x_4, x_5, x_1, x_6, x_7, x_8, x_9, x_16, x_16, x_11, x_12, x_13, x_14, x_15); lean_dec(x_16); if (lean_obj_tag(x_17) == 0) { @@ -5319,7 +5183,7 @@ return x_25; } } } -static lean_object* _init_l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__1() { +static lean_object* _init_l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__1() { _start: { lean_object* x_1; @@ -5327,16 +5191,16 @@ x_1 = lean_mk_string("major premise type index "); return x_1; } } -static lean_object* _init_l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__2() { +static lean_object* _init_l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__1; +x_1 = l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__3() { +static lean_object* _init_l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__3() { _start: { lean_object* x_1; @@ -5344,16 +5208,16 @@ x_1 = lean_mk_string(" is not variable"); return x_1; } } -static lean_object* _init_l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__4() { +static lean_object* _init_l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__3; +x_1 = l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__3; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___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* l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___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; uint8_t x_17; @@ -5366,11 +5230,11 @@ lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean lean_dec(x_7); x_18 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_18, 0, x_16); -x_19 = l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__2; +x_19 = l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__2; x_20 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_20, 0, x_19); lean_ctor_set(x_20, 1, x_18); -x_21 = l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__4; +x_21 = l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__4; x_22 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_22, 0, x_20); lean_ctor_set(x_22, 1, x_21); @@ -5408,12 +5272,12 @@ else { lean_object* x_33; lean_object* x_34; x_33 = lean_box(0); -x_34 = l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__1(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_2, x_16, x_33, x_10, x_11, x_12, x_13, x_14); +x_34 = l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___lambda__1(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_2, x_16, x_33, x_10, x_11, x_12, x_13, x_14); return x_34; } } } -lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___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_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___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_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { lean_object* x_15; uint8_t x_16; @@ -5454,7 +5318,7 @@ lean_inc(x_6); lean_inc(x_4); lean_inc(x_2); lean_inc(x_1); -x_26 = l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2(x_5, x_22, x_1, x_2, x_3, x_4, x_6, x_7, x_25, x_10, x_11, x_12, x_13, x_14); +x_26 = l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___lambda__2(x_5, x_22, x_1, x_2, x_3, x_4, x_6, x_7, x_25, x_10, x_11, x_12, x_13, x_14); lean_dec(x_22); if (lean_obj_tag(x_26) == 0) { @@ -5512,7 +5376,7 @@ lean_dec(x_21); lean_dec(x_8); lean_dec(x_6); x_38 = l_Lean_indentExpr(x_4); -x_39 = l_List_forM___main___at_Lean_Meta_induction___spec__5___closed__2; +x_39 = l_List_forM___main___at_Lean_Meta_induction___spec__4___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); @@ -5545,7 +5409,7 @@ return x_48; } } } -lean_object* l_Array_iterateMAux___main___at_Lean_Meta_induction___spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Array_iterateMAux___main___at_Lean_Meta_induction___spec__8(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; uint8_t x_7; @@ -5576,7 +5440,7 @@ goto _start; } } } -lean_object* l_Lean_Meta_getLevel___at_Lean_Meta_induction___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* l_Lean_Meta_getLevel___at_Lean_Meta_induction___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) { _start: { lean_object* x_7; @@ -5584,7 +5448,7 @@ x_7 = l___private_Lean_Meta_InferType_4__getLevelImp(x_1, x_2, x_3, x_4, x_5, x_ return x_7; } } -lean_object* l_Lean_Meta_normalizeLevel___at_Lean_Meta_induction___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* l_Lean_Meta_normalizeLevel___at_Lean_Meta_induction___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) { _start: { lean_object* x_7; uint8_t x_8; @@ -5616,7 +5480,7 @@ return x_14; } } } -lean_object* l_List_foldlM___main___at_Lean_Meta_induction___spec__12___lambda__1(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* l_List_foldlM___main___at_Lean_Meta_induction___spec__11___lambda__1(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; lean_object* x_15; lean_object* x_16; @@ -5633,7 +5497,7 @@ lean_ctor_set(x_16, 1, x_10); return x_16; } } -lean_object* l_List_foldlM___main___at_Lean_Meta_induction___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* l_List_foldlM___main___at_Lean_Meta_induction___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: { if (lean_obj_tag(x_6) == 0) @@ -5709,7 +5573,7 @@ lean_object* x_35; uint8_t x_36; lean_object* x_37; lean_object* x_38; lean_obje x_35 = lean_box(0); x_36 = lean_unbox(x_31); lean_dec(x_31); -x_37 = l_List_foldlM___main___at_Lean_Meta_induction___spec__12___lambda__1(x_4, x_32, x_30, x_36, x_35, x_7, x_8, x_9, x_10, x_11); +x_37 = l_List_foldlM___main___at_Lean_Meta_induction___spec__11___lambda__1(x_4, x_32, x_30, x_36, x_35, x_7, x_8, x_9, x_10, x_11); x_38 = lean_ctor_get(x_37, 0); lean_inc(x_38); x_39 = lean_ctor_get(x_37, 1); @@ -5752,7 +5616,7 @@ return x_47; } } } -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___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_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___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; @@ -5805,7 +5669,7 @@ return x_23; } } } -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___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, lean_object* x_16, lean_object* x_17, lean_object* x_18) { +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___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, lean_object* x_16, lean_object* x_17, lean_object* x_18) { _start: { lean_object* x_19; lean_object* x_20; lean_object* x_21; @@ -5829,7 +5693,7 @@ lean_inc(x_23); x_24 = lean_ctor_get(x_21, 1); lean_inc(x_24); lean_dec(x_21); -x_25 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___lambda__1(x_6, x_23, x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_14, x_15, x_16, x_17, x_24); +x_25 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__1(x_6, x_23, x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_14, x_15, x_16, x_17, x_24); return x_25; } else @@ -5853,7 +5717,7 @@ lean_inc(x_31); x_32 = lean_ctor_get(x_30, 1); lean_inc(x_32); lean_dec(x_30); -x_33 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___lambda__1(x_6, x_26, x_3, x_7, x_8, x_9, x_10, x_11, x_31, x_14, x_15, x_16, x_17, x_32); +x_33 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__1(x_6, x_26, x_3, x_7, x_8, x_9, x_10, x_11, x_31, x_14, x_15, x_16, x_17, x_32); return x_33; } else @@ -5922,7 +5786,7 @@ return x_41; } } } -static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__1() { +static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__1() { _start: { lean_object* x_1; @@ -5930,27 +5794,40 @@ x_1 = lean_mk_string("major premise is not of the form (C ...)"); return x_1; } } -static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__2() { +static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__1; +x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___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_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__3() { +static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__2; +x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___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_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__4() { +static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__4() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Array_empty___closed__1; +x_2 = 0; +x_3 = lean_box(x_2); +x_4 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__5() { _start: { lean_object* x_1; @@ -5958,16 +5835,16 @@ x_1 = lean_mk_string("recursor '"); return x_1; } } -static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__5() { +static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__4; +x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__5; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__6() { +static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__7() { _start: { lean_object* x_1; @@ -5975,16 +5852,16 @@ x_1 = lean_mk_string("' can only eliminate into Prop"); return x_1; } } -static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__7() { +static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__8() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__6; +x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__7; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___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, 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* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___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_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) { _start: { switch (lean_obj_tag(x_13)) { @@ -6000,11 +5877,11 @@ x_23 = lean_mk_empty_array_with_capacity(x_22); lean_dec(x_22); x_24 = l_List_toArrayAux___main___rarg(x_21, x_23); x_25 = lean_ctor_get(x_4, 2); -x_26 = l___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___closed__1; +x_26 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__4; lean_inc(x_12); lean_inc(x_7); lean_inc(x_3); -x_27 = l_List_foldlM___main___at_Lean_Meta_induction___spec__12(x_3, x_7, x_12, x_24, x_26, x_25, x_16, x_17, x_18, x_19, x_20); +x_27 = l_List_foldlM___main___at_Lean_Meta_induction___spec__11(x_3, x_7, x_12, x_24, x_26, x_25, x_16, x_17, x_18, x_19, x_20); lean_dec(x_24); if (lean_obj_tag(x_27) == 0) { @@ -6056,7 +5933,7 @@ if (x_32 == 0) lean_object* x_33; lean_object* x_34; lean_dec(x_3); x_33 = lean_box(0); -x_34 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___lambda__2(x_30, x_1, x_7, x_14, x_5, x_9, x_2, x_4, x_6, x_10, x_8, x_11, x_33, x_16, x_17, x_18, x_19, x_29); +x_34 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__2(x_30, x_1, x_7, x_14, x_5, x_9, x_2, x_4, x_6, x_10, x_8, x_11, x_33, x_16, x_17, x_18, x_19, x_29); lean_dec(x_14); lean_dec(x_30); return x_34; @@ -6072,11 +5949,11 @@ lean_dec(x_9); lean_dec(x_8); x_35 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_35, 0, x_1); -x_36 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__5; +x_36 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__6; x_37 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_37, 0, x_36); lean_ctor_set(x_37, 1, x_35); -x_38 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__7; +x_38 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__8; x_39 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_39, 0, x_37); lean_ctor_set(x_39, 1, x_38); @@ -6172,7 +6049,7 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_1); -x_62 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__3; +x_62 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__3; x_63 = lean_box(0); x_64 = l_Lean_Meta_throwTacticEx___rarg(x_3, x_7, x_62, x_63, x_16, x_17, x_18, x_19, x_20); lean_dec(x_19); @@ -6184,7 +6061,7 @@ return x_64; } } } -lean_object* l_Lean_addTrace___at_Lean_Meta_induction___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* l_Lean_addTrace___at_Lean_Meta_induction___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) { _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; uint8_t x_16; @@ -6351,7 +6228,7 @@ return x_56; } } } -lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_induction___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* l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_induction___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) { _start: { lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; @@ -6364,7 +6241,7 @@ lean_ctor_set(x_10, 1, x_6); return x_10; } } -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___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_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18) { +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15___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_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18) { _start: { lean_object* x_19; @@ -6382,14 +6259,14 @@ lean_inc(x_20); x_21 = lean_ctor_get(x_19, 1); lean_inc(x_21); lean_dec(x_19); -x_22 = l_Lean_Meta_normalizeLevel___at_Lean_Meta_induction___spec__11(x_20, x_14, x_15, x_16, x_17, x_21); +x_22 = l_Lean_Meta_normalizeLevel___at_Lean_Meta_induction___spec__10(x_20, x_14, x_15, x_16, x_17, 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); lean_inc(x_14); -x_25 = l_Lean_Meta_getLocalDecl___at_Lean_Meta_induction___spec__1(x_1, x_14, x_15, x_16, x_17, x_24); +x_25 = l_Lean_Meta_getLocalDecl___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos___spec__3(x_1, x_14, x_15, x_16, x_17, x_24); if (lean_obj_tag(x_25) == 0) { lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; @@ -6405,7 +6282,7 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_inc(x_28); -x_29 = l_Lean_Meta_whnfUntil___at_Lean_Meta_induction___spec__2(x_28, x_2, x_14, x_15, x_16, x_17, x_27); +x_29 = l_Lean_Meta_whnfUntil___at_Lean_Meta_induction___spec__1(x_28, x_2, x_14, x_15, x_16, x_17, x_27); if (lean_obj_tag(x_29) == 0) { lean_object* x_30; @@ -6449,7 +6326,7 @@ x_38 = lean_mk_array(x_36, x_37); x_39 = lean_unsigned_to_nat(1u); x_40 = lean_nat_sub(x_36, x_39); lean_dec(x_36); -x_41 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13(x_4, x_5, x_6, x_7, x_8, x_9, x_3, x_10, x_11, x_12, x_13, x_23, x_34, x_38, x_40, x_14, x_15, x_16, x_17, x_33); +x_41 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12(x_4, x_5, x_6, x_7, x_8, x_9, x_3, x_10, x_11, x_12, x_13, x_23, x_34, x_38, x_40, x_14, x_15, x_16, x_17, x_33); return x_41; } } @@ -6560,7 +6437,7 @@ return x_53; } } } -static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2___closed__1() { +static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15___lambda__2___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -6570,7 +6447,7 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2___closed__2() { +static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15___lambda__2___closed__2() { _start: { lean_object* x_1; @@ -6578,16 +6455,16 @@ x_1 = lean_mk_string("after revert&intro\n"); return x_1; } } -static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2___closed__3() { +static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15___lambda__2___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2___closed__2; +x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15___lambda__2___closed__2; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___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) { +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15___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_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; @@ -6655,7 +6532,7 @@ x_38 = lean_ctor_get(x_35, 1); lean_inc(x_38); lean_dec(x_35); x_39 = lean_box(0); -x_40 = l_Array_iterateMAux___main___at_Lean_Meta_induction___spec__9(x_1, x_32, x_1, x_17, x_39); +x_40 = l_Array_iterateMAux___main___at_Lean_Meta_induction___spec__8(x_1, x_32, x_1, x_17, x_39); lean_dec(x_1); x_62 = lean_st_ref_get(x_14, x_36); x_63 = lean_ctor_get(x_62, 0); @@ -6682,8 +6559,8 @@ lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean x_68 = lean_ctor_get(x_62, 1); lean_inc(x_68); lean_dec(x_62); -x_69 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2___closed__1; -x_70 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_induction___spec__15(x_69, x_11, x_12, x_13, x_14, x_68); +x_69 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15___lambda__2___closed__1; +x_70 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_induction___spec__14(x_69, x_11, x_12, x_13, x_14, x_68); x_71 = lean_ctor_get(x_70, 0); lean_inc(x_71); x_72 = lean_ctor_get(x_70, 1); @@ -6707,7 +6584,7 @@ lean_inc(x_38); x_46 = lean_alloc_closure((void*)(l_Lean_Meta_getMVarType___boxed), 6, 1); lean_closure_set(x_46, 0, x_38); lean_inc(x_38); -x_47 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__1___boxed), 18, 12); +x_47 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15___lambda__1___boxed), 18, 12); lean_closure_set(x_47, 0, x_37); lean_closure_set(x_47, 1, x_4); lean_closure_set(x_47, 2, x_38); @@ -6739,7 +6616,7 @@ lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean lean_inc(x_38); x_53 = lean_alloc_ctor(5, 1, 0); lean_ctor_set(x_53, 0, x_38); -x_54 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2___closed__3; +x_54 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15___lambda__2___closed__3; x_55 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_55, 0, x_54); lean_ctor_set(x_55, 1, x_53); @@ -6747,8 +6624,8 @@ x_56 = l_Lean_Meta_throwTacticEx___rarg___closed__6; 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_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2___closed__1; -x_59 = l_Lean_addTrace___at_Lean_Meta_induction___spec__14(x_58, x_57, x_11, x_12, x_13, x_14, x_52); +x_58 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15___lambda__2___closed__1; +x_59 = l_Lean_addTrace___at_Lean_Meta_induction___spec__13(x_58, x_57, x_11, x_12, x_13, x_14, x_52); x_60 = lean_ctor_get(x_59, 1); lean_inc(x_60); lean_dec(x_59); @@ -6863,7 +6740,7 @@ return x_85; } } } -static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___closed__1() { +static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15___closed__1() { _start: { lean_object* x_1; @@ -6871,16 +6748,16 @@ x_1 = lean_mk_string("' does not support dependent elimination, but conclusion d return x_1; } } -static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___closed__2() { +static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___closed__1; +x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___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_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* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___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_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { _start: { if (lean_obj_tag(x_9) == 5) @@ -6910,7 +6787,7 @@ lean_inc(x_23); lean_inc(x_8); lean_inc(x_5); lean_inc(x_1); -x_24 = l_List_forM___main___at_Lean_Meta_induction___spec__5(x_1, x_5, x_8, x_10, x_23, x_12, x_13, x_14, x_15, x_16); +x_24 = l_List_forM___main___at_Lean_Meta_induction___spec__4(x_1, x_5, x_8, x_10, x_23, x_12, x_13, x_14, x_15, x_16); 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; 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; @@ -6939,7 +6816,7 @@ lean_inc(x_29); lean_inc(x_6); lean_inc(x_5); lean_inc(x_1); -x_36 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___boxed), 14, 9); +x_36 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___boxed), 14, 9); lean_closure_set(x_36, 0, x_1); lean_closure_set(x_36, 1, x_5); lean_closure_set(x_36, 2, x_6); @@ -6984,7 +6861,7 @@ if (x_46 == 0) { lean_object* x_47; lean_object* x_48; x_47 = lean_box(0); -x_48 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2(x_39, x_2, x_1, x_7, x_3, x_4, x_5, x_6, x_23, x_47, x_12, x_13, x_14, x_15, x_44); +x_48 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15___lambda__2(x_39, x_2, x_1, x_7, x_3, x_4, x_5, x_6, x_23, x_47, x_12, x_13, x_14, x_15, x_44); return x_48; } else @@ -6998,11 +6875,11 @@ lean_dec(x_4); lean_dec(x_2); x_49 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_49, 0, x_3); -x_50 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__5; +x_50 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__6; x_51 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_51, 0, x_50); lean_ctor_set(x_51, 1, x_49); -x_52 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___closed__2; +x_52 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15___closed__2; x_53 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_53, 0, x_51); lean_ctor_set(x_53, 1, x_52); @@ -7040,7 +6917,7 @@ x_60 = lean_ctor_get(x_41, 1); lean_inc(x_60); lean_dec(x_41); x_61 = lean_box(0); -x_62 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2(x_39, x_2, x_1, x_7, x_3, x_4, x_5, x_6, x_23, x_61, x_12, x_13, x_14, x_15, x_60); +x_62 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15___lambda__2(x_39, x_2, x_1, x_7, x_3, x_4, x_5, x_6, x_23, x_61, x_12, x_13, x_14, x_15, x_60); return x_62; } } @@ -7162,7 +7039,7 @@ _start: lean_object* x_12; lean_inc(x_7); lean_inc(x_1); -x_12 = l_Lean_Meta_getLocalDecl___at_Lean_Meta_induction___spec__1(x_1, x_7, x_8, x_9, x_10, x_11); +x_12 = l_Lean_Meta_getLocalDecl___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getParamsPos___spec__3(x_1, 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; @@ -7195,7 +7072,7 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_19); -x_21 = l_Lean_Meta_whnfUntil___at_Lean_Meta_induction___spec__2(x_19, x_20, x_7, x_8, x_9, x_10, x_18); +x_21 = l_Lean_Meta_whnfUntil___at_Lean_Meta_induction___spec__1(x_19, x_20, x_7, x_8, x_9, x_10, x_18); if (lean_obj_tag(x_21) == 0) { lean_object* x_22; @@ -7239,7 +7116,7 @@ x_31 = lean_unsigned_to_nat(1u); x_32 = lean_nat_sub(x_28, x_31); lean_dec(x_28); lean_inc(x_26); -x_33 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16(x_3, x_1, x_2, x_4, x_5, x_17, x_20, x_26, x_26, x_30, x_32, x_7, x_8, x_9, x_10, x_25); +x_33 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15(x_3, x_1, x_2, x_4, x_5, x_17, x_20, x_26, x_26, x_30, x_32, x_7, x_8, x_9, x_10, x_25); return x_33; } } @@ -7367,49 +7244,38 @@ x_15 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(x_1, x_ return x_15; } } -lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_induction___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) { -_start: -{ -lean_object* x_7; -x_7 = l_Lean_Meta_getLocalDecl___at_Lean_Meta_induction___spec__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); -return x_7; -} -} -lean_object* l___private_Lean_Meta_WHNF_12__whnfEasyCases___main___at_Lean_Meta_induction___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* l___private_Lean_Meta_WHNF_12__whnfEasyCases___main___at_Lean_Meta_induction___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___private_Lean_Meta_WHNF_12__whnfEasyCases___main___at_Lean_Meta_induction___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l___private_Lean_Meta_WHNF_12__whnfEasyCases___main___at_Lean_Meta_induction___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_1); return x_8; } } -lean_object* l_Lean_Meta_whnfHeadPredAux___main___at_Lean_Meta_induction___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* l_Lean_Meta_whnfHeadPredAux___main___at_Lean_Meta_induction___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_Meta_whnfHeadPredAux___main___at_Lean_Meta_induction___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Lean_Meta_whnfHeadPredAux___main___at_Lean_Meta_induction___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_1); return x_8; } } -lean_object* l_Lean_Meta_whnfUntil___at_Lean_Meta_induction___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* l_Lean_Meta_whnfUntil___at_Lean_Meta_induction___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) { _start: { lean_object* x_8; -x_8 = l_Lean_Meta_whnfUntil___at_Lean_Meta_induction___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Lean_Meta_whnfUntil___at_Lean_Meta_induction___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_2); return x_8; } } -lean_object* l_List_forM___main___at_Lean_Meta_induction___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* l_List_forM___main___at_Lean_Meta_induction___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) { _start: { lean_object* x_11; -x_11 = l_List_forM___main___at_Lean_Meta_induction___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_List_forM___main___at_Lean_Meta_induction___spec__4(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); @@ -7419,22 +7285,22 @@ lean_dec(x_4); return x_11; } } -lean_object* l_List_elem___main___at_Lean_Meta_induction___spec__6___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_elem___main___at_Lean_Meta_induction___spec__5___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_List_elem___main___at_Lean_Meta_induction___spec__6(x_1, x_2); +x_3 = l_List_elem___main___at_Lean_Meta_induction___spec__5(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); return x_4; } } -lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___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_object* x_13, lean_object* x_14) { +lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___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_Nat_forMAux___main___at_Lean_Meta_induction___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, x_14); +x_15 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___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_13); lean_dec(x_12); lean_dec(x_11); @@ -7446,11 +7312,11 @@ lean_dec(x_2); return x_15; } } -lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___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, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___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, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { _start: { lean_object* x_16; -x_16 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__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, x_15); +x_16 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___lambda__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, x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -7461,11 +7327,11 @@ lean_dec(x_4); return x_16; } } -lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___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, 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* l_Nat_forMAux___main___at_Lean_Meta_induction___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, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { _start: { lean_object* x_17; -x_17 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7(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, x_16); +x_17 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6(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, x_16); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -7477,11 +7343,11 @@ lean_dec(x_3); return x_17; } } -lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___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, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___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_object* x_13, lean_object* x_14, lean_object* x_15) { _start: { lean_object* x_16; -x_16 = l_Array_umapMAux___main___at_Lean_Meta_induction___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, x_13, x_14, x_15); +x_16 = l_Array_umapMAux___main___at_Lean_Meta_induction___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, x_14, x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -7493,11 +7359,11 @@ lean_dec(x_1); return x_16; } } -lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___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, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___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, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { lean_object* x_15; -x_15 = l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__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); +x_15 = l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___lambda__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_12); lean_dec(x_11); @@ -7509,11 +7375,11 @@ lean_dec(x_1); return x_15; } } -lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___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_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___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, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { lean_object* x_15; -x_15 = l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8(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_Array_umapMAux___main___at_Lean_Meta_induction___spec__7(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_12); lean_dec(x_11); @@ -7523,22 +7389,22 @@ lean_dec(x_3); return x_15; } } -lean_object* l_Array_iterateMAux___main___at_Lean_Meta_induction___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* l_Array_iterateMAux___main___at_Lean_Meta_induction___spec__8___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_Array_iterateMAux___main___at_Lean_Meta_induction___spec__9(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Array_iterateMAux___main___at_Lean_Meta_induction___spec__8(x_1, x_2, x_3, x_4, x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); return x_6; } } -lean_object* l_Lean_Meta_normalizeLevel___at_Lean_Meta_induction___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* l_Lean_Meta_normalizeLevel___at_Lean_Meta_induction___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) { _start: { lean_object* x_7; -x_7 = l_Lean_Meta_normalizeLevel___at_Lean_Meta_induction___spec__11(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_Meta_normalizeLevel___at_Lean_Meta_induction___spec__10(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -7546,13 +7412,13 @@ lean_dec(x_2); return x_7; } } -lean_object* l_List_foldlM___main___at_Lean_Meta_induction___spec__12___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* l_List_foldlM___main___at_Lean_Meta_induction___spec__11___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_4); lean_dec(x_4); -x_12 = l_List_foldlM___main___at_Lean_Meta_induction___spec__12___lambda__1(x_1, x_2, x_3, x_11, x_5, x_6, x_7, x_8, x_9, x_10); +x_12 = l_List_foldlM___main___at_Lean_Meta_induction___spec__11___lambda__1(x_1, x_2, x_3, x_11, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -7563,11 +7429,11 @@ lean_dec(x_1); return x_12; } } -lean_object* l_List_foldlM___main___at_Lean_Meta_induction___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* l_List_foldlM___main___at_Lean_Meta_induction___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_object* x_11) { _start: { lean_object* x_12; -x_12 = l_List_foldlM___main___at_Lean_Meta_induction___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 = l_List_foldlM___main___at_Lean_Meta_induction___spec__11(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); @@ -7577,18 +7443,18 @@ lean_dec(x_4); return x_12; } } -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___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* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___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_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___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_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___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_6); lean_dec(x_5); lean_dec(x_4); return x_15; } } -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___lambda__2___boxed(lean_object** _args) { +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__2___boxed(lean_object** _args) { lean_object* x_1 = _args[0]; lean_object* x_2 = _args[1]; lean_object* x_3 = _args[2]; @@ -7610,7 +7476,7 @@ lean_object* x_18 = _args[17]; _start: { lean_object* x_19; -x_19 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___lambda__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, x_15, x_16, x_17, x_18); +x_19 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__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, x_15, x_16, x_17, x_18); lean_dec(x_13); lean_dec(x_9); lean_dec(x_8); @@ -7621,7 +7487,7 @@ lean_dec(x_1); return x_19; } } -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___boxed(lean_object** _args) { +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___boxed(lean_object** _args) { lean_object* x_1 = _args[0]; lean_object* x_2 = _args[1]; lean_object* x_3 = _args[2]; @@ -7645,7 +7511,7 @@ lean_object* x_20 = _args[19]; _start: { lean_object* x_21; -x_21 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___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, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20); +x_21 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___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, x_14, x_15, x_16, x_17, x_18, x_19, x_20); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -7653,11 +7519,11 @@ lean_dec(x_2); return x_21; } } -lean_object* l_Lean_addTrace___at_Lean_Meta_induction___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* l_Lean_addTrace___at_Lean_Meta_induction___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) { _start: { lean_object* x_8; -x_8 = l_Lean_addTrace___at_Lean_Meta_induction___spec__14(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Lean_addTrace___at_Lean_Meta_induction___spec__13(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); @@ -7665,11 +7531,11 @@ lean_dec(x_3); return x_8; } } -lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_induction___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* l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_induction___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) { _start: { lean_object* x_7; -x_7 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_induction___spec__15(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_induction___spec__14(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -7677,7 +7543,7 @@ lean_dec(x_2); return x_7; } } -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__1___boxed(lean_object** _args) { +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15___lambda__1___boxed(lean_object** _args) { lean_object* x_1 = _args[0]; lean_object* x_2 = _args[1]; lean_object* x_3 = _args[2]; @@ -7699,7 +7565,7 @@ lean_object* x_18 = _args[17]; _start: { lean_object* x_19; -x_19 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___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, x_16, x_17, x_18); +x_19 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15___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, x_16, x_17, x_18); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -7708,11 +7574,11 @@ lean_dec(x_2); return x_19; } } -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___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, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15___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, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { _start: { lean_object* x_16; -x_16 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__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, x_15); +x_16 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15___lambda__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, x_15); lean_dec(x_10); return x_16; } @@ -7740,7 +7606,7 @@ lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Induction___hyg_2132_(le _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2___closed__1; +x_2 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15___lambda__2___closed__1; x_3 = l_Lean_registerTraceClass(x_2, x_1); return x_3; } @@ -7816,54 +7682,56 @@ l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_throwUnexpectedMajorType___r lean_mark_persistent(l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_throwUnexpectedMajorType___rarg___closed__1); l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_throwUnexpectedMajorType___rarg___closed__2 = _init_l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_throwUnexpectedMajorType___rarg___closed__2(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_throwUnexpectedMajorType___rarg___closed__2); -l_List_forM___main___at_Lean_Meta_induction___spec__5___closed__1 = _init_l_List_forM___main___at_Lean_Meta_induction___spec__5___closed__1(); -lean_mark_persistent(l_List_forM___main___at_Lean_Meta_induction___spec__5___closed__1); -l_List_forM___main___at_Lean_Meta_induction___spec__5___closed__2 = _init_l_List_forM___main___at_Lean_Meta_induction___spec__5___closed__2(); -lean_mark_persistent(l_List_forM___main___at_Lean_Meta_induction___spec__5___closed__2); -l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__1___closed__1 = _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__1___closed__1(); -lean_mark_persistent(l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__1___closed__1); -l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__1___closed__2 = _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__1___closed__2(); -lean_mark_persistent(l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__1___closed__2); -l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__1 = _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__1(); -lean_mark_persistent(l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__1); -l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__2 = _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__2(); -lean_mark_persistent(l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__2); -l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___closed__1 = _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___closed__1(); -lean_mark_persistent(l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___closed__1); -l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___closed__2 = _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___closed__2(); -lean_mark_persistent(l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___closed__2); -l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__1 = _init_l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__1(); -lean_mark_persistent(l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__1); -l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__2 = _init_l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__2(); -lean_mark_persistent(l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__2); -l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__3 = _init_l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__3(); -lean_mark_persistent(l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__3); -l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__4 = _init_l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__4(); -lean_mark_persistent(l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__4); -l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__1 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__1(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__1); -l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__2 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__2(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__2); -l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__3 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__3(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__3); -l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__4 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__4(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__4); -l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__5 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__5(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__5); -l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__6 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__6(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__6); -l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__7 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__7(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__7); -l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2___closed__1 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2___closed__1(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2___closed__1); -l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2___closed__2 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2___closed__2(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2___closed__2); -l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2___closed__3 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2___closed__3(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2___closed__3); -l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___closed__1 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___closed__1(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___closed__1); -l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___closed__2 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___closed__2(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___closed__2); +l_List_forM___main___at_Lean_Meta_induction___spec__4___closed__1 = _init_l_List_forM___main___at_Lean_Meta_induction___spec__4___closed__1(); +lean_mark_persistent(l_List_forM___main___at_Lean_Meta_induction___spec__4___closed__1); +l_List_forM___main___at_Lean_Meta_induction___spec__4___closed__2 = _init_l_List_forM___main___at_Lean_Meta_induction___spec__4___closed__2(); +lean_mark_persistent(l_List_forM___main___at_Lean_Meta_induction___spec__4___closed__2); +l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___lambda__1___closed__1 = _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___lambda__1___closed__1(); +lean_mark_persistent(l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___lambda__1___closed__1); +l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___lambda__1___closed__2 = _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___lambda__1___closed__2(); +lean_mark_persistent(l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___lambda__1___closed__2); +l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___lambda__2___closed__1 = _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___lambda__2___closed__1(); +lean_mark_persistent(l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___lambda__2___closed__1); +l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___lambda__2___closed__2 = _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___lambda__2___closed__2(); +lean_mark_persistent(l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___lambda__2___closed__2); +l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__1 = _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__1(); +lean_mark_persistent(l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__1); +l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__2 = _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__2(); +lean_mark_persistent(l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__2); +l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__1 = _init_l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__1(); +lean_mark_persistent(l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__1); +l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__2 = _init_l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__2(); +lean_mark_persistent(l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__2); +l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__3 = _init_l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__3(); +lean_mark_persistent(l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__3); +l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__4 = _init_l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__4(); +lean_mark_persistent(l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__4); +l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__1 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__1(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__1); +l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__2 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__2(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__2); +l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__3 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__3(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__3); +l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__4 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__4(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__4); +l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__5 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__5(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__5); +l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__6 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__6(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__6); +l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__7 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__7(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__7); +l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__8 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__8(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__8); +l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15___lambda__2___closed__1 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15___lambda__2___closed__1); +l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15___lambda__2___closed__2 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15___lambda__2___closed__2); +l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15___lambda__2___closed__3 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15___lambda__2___closed__3(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15___lambda__2___closed__3); +l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15___closed__1 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15___closed__1(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15___closed__1); +l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15___closed__2 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15___closed__2(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__15___closed__2); res = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Induction___hyg_2132_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); diff --git a/stage0/stdlib/Lean/Meta/TransparencyMode.c b/stage0/stdlib/Lean/Meta/TransparencyMode.c index 16101e2d94..2cc6e6987d 100644 --- a/stage0/stdlib/Lean/Meta/TransparencyMode.c +++ b/stage0/stdlib/Lean/Meta/TransparencyMode.c @@ -14,17 +14,26 @@ extern "C" { #endif size_t l_Lean_Meta_TransparencyMode_hash(uint8_t); -lean_object* l_Lean_Meta_TransparencyMode_Hashable___closed__1; +lean_object* l_Lean_Meta_TransparencyMode_beq_match__1(lean_object*); +lean_object* l_Lean_Meta_TransparencyMode_beq_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_TransparencyMode_beq_match__1___rarg(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_TransparencyMode_hash_match__1(lean_object*); lean_object* l_Lean_Meta_TransparencyMode_lt___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Meta_TransparencyMode_Hashable; -uint8_t l_Lean_Meta_TransparencyMode_Inhabited; -lean_object* l_Lean_Meta_TransparencyMode_HasBeq___closed__1; +lean_object* l_Lean_Meta_TransparencyMode_Lean_Meta_TransparencyMode___instance__2; uint8_t l_Lean_Meta_TransparencyMode_beq(uint8_t, uint8_t); -lean_object* l_Lean_Meta_TransparencyMode_HasBeq; +lean_object* l_Lean_Meta_TransparencyMode_Lean_Meta_TransparencyMode___instance__2___closed__1; +lean_object* l_Lean_Meta_TransparencyMode_Lean_Meta_TransparencyMode___instance__3___closed__1; +lean_object* l_Lean_Meta_TransparencyMode_hash_match__1___rarg(uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_TransparencyMode_beq___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Meta_TransparencyMode_lt_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Meta_TransparencyMode_lt(uint8_t, uint8_t); +uint8_t l_Lean_Meta_TransparencyMode_Lean_Meta_TransparencyMode___instance__1; +lean_object* l_Lean_Meta_TransparencyMode_Lean_Meta_TransparencyMode___instance__3; +lean_object* l_Lean_Meta_TransparencyMode_hash_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_TransparencyMode_lt_match__1(lean_object*); lean_object* l_Lean_Meta_TransparencyMode_hash___boxed(lean_object*); -static uint8_t _init_l_Lean_Meta_TransparencyMode_Inhabited() { +lean_object* l_Lean_Meta_TransparencyMode_lt_match__1___rarg(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +static uint8_t _init_l_Lean_Meta_TransparencyMode_Lean_Meta_TransparencyMode___instance__1() { _start: { uint8_t x_1; @@ -32,6 +41,108 @@ x_1 = 1; return x_1; } } +lean_object* l_Lean_Meta_TransparencyMode_beq_match__1___rarg(uint8_t x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +switch (x_1) { +case 0: +{ +lean_object* x_7; +lean_dec(x_5); +lean_dec(x_4); +x_7 = lean_box(x_2); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +lean_dec(x_6); +x_8 = lean_box(0); +x_9 = lean_apply_1(x_3, x_8); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +lean_dec(x_7); +lean_dec(x_3); +x_10 = lean_box(x_1); +x_11 = lean_box(x_2); +x_12 = lean_apply_2(x_6, x_10, x_11); +return x_12; +} +} +case 1: +{ +lean_object* x_13; +lean_dec(x_5); +lean_dec(x_3); +x_13 = lean_box(x_2); +if (lean_obj_tag(x_13) == 1) +{ +lean_object* x_14; lean_object* x_15; +lean_dec(x_6); +x_14 = lean_box(0); +x_15 = lean_apply_1(x_4, x_14); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +lean_dec(x_13); +lean_dec(x_4); +x_16 = lean_box(x_1); +x_17 = lean_box(x_2); +x_18 = lean_apply_2(x_6, x_16, x_17); +return x_18; +} +} +default: +{ +lean_object* x_19; +lean_dec(x_4); +lean_dec(x_3); +x_19 = lean_box(x_2); +if (lean_obj_tag(x_19) == 2) +{ +lean_object* x_20; lean_object* x_21; +lean_dec(x_6); +x_20 = lean_box(0); +x_21 = lean_apply_1(x_5, x_20); +return x_21; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +lean_dec(x_19); +lean_dec(x_5); +x_22 = lean_box(x_1); +x_23 = lean_box(x_2); +x_24 = lean_apply_2(x_6, x_22, x_23); +return x_24; +} +} +} +} +} +lean_object* l_Lean_Meta_TransparencyMode_beq_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_TransparencyMode_beq_match__1___rarg___boxed), 6, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_TransparencyMode_beq_match__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; uint8_t x_8; lean_object* x_9; +x_7 = lean_unbox(x_1); +lean_dec(x_1); +x_8 = lean_unbox(x_2); +lean_dec(x_2); +x_9 = l_Lean_Meta_TransparencyMode_beq_match__1___rarg(x_7, x_8, x_3, x_4, x_5, x_6); +return x_9; +} +} uint8_t l_Lean_Meta_TransparencyMode_beq(uint8_t x_1, uint8_t x_2) { _start: { @@ -106,7 +217,7 @@ x_6 = lean_box(x_5); return x_6; } } -static lean_object* _init_l_Lean_Meta_TransparencyMode_HasBeq___closed__1() { +static lean_object* _init_l_Lean_Meta_TransparencyMode_Lean_Meta_TransparencyMode___instance__2___closed__1() { _start: { lean_object* x_1; @@ -114,14 +225,66 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Meta_TransparencyMode_beq___boxed), 2, 0 return x_1; } } -static lean_object* _init_l_Lean_Meta_TransparencyMode_HasBeq() { +static lean_object* _init_l_Lean_Meta_TransparencyMode_Lean_Meta_TransparencyMode___instance__2() { _start: { lean_object* x_1; -x_1 = l_Lean_Meta_TransparencyMode_HasBeq___closed__1; +x_1 = l_Lean_Meta_TransparencyMode_Lean_Meta_TransparencyMode___instance__2___closed__1; return x_1; } } +lean_object* l_Lean_Meta_TransparencyMode_hash_match__1___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +switch (x_1) { +case 0: +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_4); +lean_dec(x_3); +x_5 = lean_box(0); +x_6 = lean_apply_1(x_2, x_5); +return x_6; +} +case 1: +{ +lean_object* x_7; lean_object* x_8; +lean_dec(x_4); +lean_dec(x_2); +x_7 = lean_box(0); +x_8 = lean_apply_1(x_3, x_7); +return x_8; +} +default: +{ +lean_object* x_9; lean_object* x_10; +lean_dec(x_3); +lean_dec(x_2); +x_9 = lean_box(0); +x_10 = lean_apply_1(x_4, x_9); +return x_10; +} +} +} +} +lean_object* l_Lean_Meta_TransparencyMode_hash_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_TransparencyMode_hash_match__1___rarg___boxed), 4, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_TransparencyMode_hash_match__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; lean_object* x_6; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = l_Lean_Meta_TransparencyMode_hash_match__1___rarg(x_5, x_2, x_3, x_4); +return x_6; +} +} size_t l_Lean_Meta_TransparencyMode_hash(uint8_t x_1) { _start: { @@ -158,7 +321,7 @@ x_4 = lean_box_usize(x_3); return x_4; } } -static lean_object* _init_l_Lean_Meta_TransparencyMode_Hashable___closed__1() { +static lean_object* _init_l_Lean_Meta_TransparencyMode_Lean_Meta_TransparencyMode___instance__3___closed__1() { _start: { lean_object* x_1; @@ -166,14 +329,119 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Meta_TransparencyMode_hash___boxed), 1, return x_1; } } -static lean_object* _init_l_Lean_Meta_TransparencyMode_Hashable() { +static lean_object* _init_l_Lean_Meta_TransparencyMode_Lean_Meta_TransparencyMode___instance__3() { _start: { lean_object* x_1; -x_1 = l_Lean_Meta_TransparencyMode_Hashable___closed__1; +x_1 = l_Lean_Meta_TransparencyMode_Lean_Meta_TransparencyMode___instance__3___closed__1; return x_1; } } +lean_object* l_Lean_Meta_TransparencyMode_lt_match__1___rarg(uint8_t x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +switch (x_1) { +case 0: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_7 = lean_box(x_1); +x_8 = lean_box(x_2); +x_9 = lean_apply_2(x_6, x_7, x_8); +return x_9; +} +case 1: +{ +lean_dec(x_4); +lean_dec(x_3); +switch (x_2) { +case 0: +{ +lean_object* x_10; lean_object* x_11; +lean_dec(x_6); +x_10 = lean_box(0); +x_11 = lean_apply_1(x_5, x_10); +return x_11; +} +case 1: +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_dec(x_5); +x_12 = lean_box(x_2); +x_13 = lean_box(x_2); +x_14 = lean_apply_2(x_6, x_12, x_13); +return x_14; +} +default: +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +lean_dec(x_5); +x_15 = lean_box(x_1); +x_16 = lean_box(x_2); +x_17 = lean_apply_2(x_6, x_15, x_16); +return x_17; +} +} +} +default: +{ +lean_dec(x_5); +switch (x_2) { +case 0: +{ +lean_object* x_18; lean_object* x_19; +lean_dec(x_6); +lean_dec(x_3); +x_18 = lean_box(0); +x_19 = lean_apply_1(x_4, x_18); +return x_19; +} +case 1: +{ +lean_object* x_20; lean_object* x_21; +lean_dec(x_6); +lean_dec(x_4); +x_20 = lean_box(0); +x_21 = lean_apply_1(x_3, x_20); +return x_21; +} +default: +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +lean_dec(x_4); +lean_dec(x_3); +x_22 = lean_box(x_2); +x_23 = lean_box(x_2); +x_24 = lean_apply_2(x_6, x_22, x_23); +return x_24; +} +} +} +} +} +} +lean_object* l_Lean_Meta_TransparencyMode_lt_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_TransparencyMode_lt_match__1___rarg___boxed), 6, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_TransparencyMode_lt_match__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; uint8_t x_8; lean_object* x_9; +x_7 = lean_unbox(x_1); +lean_dec(x_1); +x_8 = lean_unbox(x_2); +lean_dec(x_2); +x_9 = l_Lean_Meta_TransparencyMode_lt_match__1___rarg(x_7, x_8, x_3, x_4, x_5, x_6); +return x_9; +} +} uint8_t l_Lean_Meta_TransparencyMode_lt(uint8_t x_1, uint8_t x_2) { _start: { @@ -245,15 +513,15 @@ _G_initialized = true; res = initialize_Init(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Lean_Meta_TransparencyMode_Inhabited = _init_l_Lean_Meta_TransparencyMode_Inhabited(); -l_Lean_Meta_TransparencyMode_HasBeq___closed__1 = _init_l_Lean_Meta_TransparencyMode_HasBeq___closed__1(); -lean_mark_persistent(l_Lean_Meta_TransparencyMode_HasBeq___closed__1); -l_Lean_Meta_TransparencyMode_HasBeq = _init_l_Lean_Meta_TransparencyMode_HasBeq(); -lean_mark_persistent(l_Lean_Meta_TransparencyMode_HasBeq); -l_Lean_Meta_TransparencyMode_Hashable___closed__1 = _init_l_Lean_Meta_TransparencyMode_Hashable___closed__1(); -lean_mark_persistent(l_Lean_Meta_TransparencyMode_Hashable___closed__1); -l_Lean_Meta_TransparencyMode_Hashable = _init_l_Lean_Meta_TransparencyMode_Hashable(); -lean_mark_persistent(l_Lean_Meta_TransparencyMode_Hashable); +l_Lean_Meta_TransparencyMode_Lean_Meta_TransparencyMode___instance__1 = _init_l_Lean_Meta_TransparencyMode_Lean_Meta_TransparencyMode___instance__1(); +l_Lean_Meta_TransparencyMode_Lean_Meta_TransparencyMode___instance__2___closed__1 = _init_l_Lean_Meta_TransparencyMode_Lean_Meta_TransparencyMode___instance__2___closed__1(); +lean_mark_persistent(l_Lean_Meta_TransparencyMode_Lean_Meta_TransparencyMode___instance__2___closed__1); +l_Lean_Meta_TransparencyMode_Lean_Meta_TransparencyMode___instance__2 = _init_l_Lean_Meta_TransparencyMode_Lean_Meta_TransparencyMode___instance__2(); +lean_mark_persistent(l_Lean_Meta_TransparencyMode_Lean_Meta_TransparencyMode___instance__2); +l_Lean_Meta_TransparencyMode_Lean_Meta_TransparencyMode___instance__3___closed__1 = _init_l_Lean_Meta_TransparencyMode_Lean_Meta_TransparencyMode___instance__3___closed__1(); +lean_mark_persistent(l_Lean_Meta_TransparencyMode_Lean_Meta_TransparencyMode___instance__3___closed__1); +l_Lean_Meta_TransparencyMode_Lean_Meta_TransparencyMode___instance__3 = _init_l_Lean_Meta_TransparencyMode_Lean_Meta_TransparencyMode___instance__3(); +lean_mark_persistent(l_Lean_Meta_TransparencyMode_Lean_Meta_TransparencyMode___instance__3); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus